/*
Theme Name: CONTIXX
Description: Helle Wissensbibliothek mit Platinenmotiv und drei Lernstufen.
Version: 1.4.1
Requires at least: 6.8
Requires PHP: 8.3
Text Domain: contixx
License: GPL-2.0-or-later
*/

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f8f7f3;
  color: #203b3e;
  font:
    16px/1.65 system-ui,
    sans-serif;
}
.site-header {
  height: 76px;
  background: white;
  border-bottom: 1px solid #dce5e2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  position: sticky;
  top: 0;
  z-index: 2;
}
.logo {
  font-size: 26px;
  font-weight: 850;
  letter-spacing: 4px;
  color: #084c50;
}
.logo small {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  line-height: 1;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
  border: 0;
  border-radius: 7px;
  background: #075357;
  color: white;
  padding: 9px 15px;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #cb9b50;
  outline-offset: 3px;
}
input {
  border: 1px solid #b5c7c4;
  border-radius: 8px;
  padding: 9px;
  width: min(35vw, 340px);
}
.layout {
  display: grid;
  grid-template-columns: 265px 1fr;
  max-width: 1600px;
  margin: auto;
}
aside {
  padding: 28px 18px;
  border-right: 1px solid #dae3df;
  background: #eff3f0;
  min-height: 90vh;
}
aside small,
.eyebrow {
  font-weight: 750;
  letter-spacing: 2px;
  font-size: 11px;
}
details {
  margin: 13px 0;
}
summary {
  cursor: pointer;
  font-weight: 650;
  color: #164d50;
}
aside button {
  display: block;
  background: none;
  color: #305356;
  text-align: left;
  padding: 5px 6px 5px 22px;
  width: 100%;
  font-size: 14px;
}
aside button:hover {
  background: #dce9e5;
}
main {
  padding: 30px clamp(18px, 4vw, 60px);
  min-width: 0;
}
.hero {
  background: #063b40;
  color: white;
  border-radius: 18px;
  padding: 42px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero h1 {
  font-size: clamp(33px, 5vw, 60px);
  line-height: 1.12;
  letter-spacing: -2px;
  margin: 15px 0;
}
.hero p {
  max-width: 480px;
  color: #d0e5df;
}
.hero button {
  background: #d5e9e3;
  color: #063b40;
  font-weight: 700;
}
.orbit {
  position: absolute;
  width: 300px;
  height: 300px;
  right: -30px;
  top: -30px;
  border: 1px solid #70a7a3;
  border-radius: 50%;
  z-index: -1;
  opacity: 0.5;
}
.orbit:before,
.orbit:after {
  content: "";
  position: absolute;
  inset: 35px;
  border: 1px solid #90c2b9;
  border-radius: 50%;
  transform: rotate(40deg) scaleX(0.45);
  animation: spin 18s linear infinite;
}
.orbit:after {
  inset: 10px;
  animation-direction: reverse;
  background: radial-gradient(circle, #51a5a266, transparent 65%);
}
@keyframes spin {
  to {
    transform: rotate(400deg) scaleX(0.45);
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
  }
}
h2 {
  font-size: 25px;
  letter-spacing: -0.6px;
  margin: 32px 0 12px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.card {
  background: white;
  border: 1px solid #dbe4df;
  border-radius: 12px;
  padding: 22px;
}
.card b {
  font-size: 20px;
}
.card p {
  font-size: 14px;
  color: #516767;
}
.number {
  color: #377b78;
  font-weight: 800;
  font-size: 13px;
}
.link {
  background: none;
  color: #075357;
  padding: 0;
  font-weight: 700;
  text-align: left;
}
.items {
  display: grid;
  gap: 10px;
}
.item {
  background: white;
  border: 1px solid #dbe4df;
  border-radius: 9px;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.tag {
  font-size: 11px;
  background: #e5eeea;
  padding: 4px 8px;
  border-radius: 5px;
}
.security {
  border-left: 4px solid #17676a;
  background: #e7efea;
  padding: 20px;
  margin-top: 25px;
  border-radius: 8px;
}
footer {
  font-size: 12px;
  color: #526765;
  margin: 30px 0;
}
pre {
  white-space: pre-wrap;
  font: inherit;
  background: #eef3f0;
  padding: 20px;
  border-radius: 8px;
}
#menu {
  display: none;
}
table {
  border-collapse: collapse;
  width: 100%;
  background: white;
}
td,
th {
  padding: 10px;
  border: 1px solid #dbe4df;
  text-align: left;
}
@media (max-width: 760px) {
  .layout {
    display: block;
  }
  aside {
    display: none;
    min-height: 0;
  }
  aside.open {
    display: block;
  }
  #menu {
    display: block;
  }
  .site-header {
    gap: 10px;
  }
  .logo {
    font-size: 19px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 26px;
  }
  .orbit {
    opacity: 0.22;
  }
  main {
    padding: 18px;
  }
  .item {
    align-items: flex-start;
    flex-direction: column;
  }
}

:root {
  font-size: 100%;
}
body {
  font-size: 1.1875rem;
  line-height: 1.58;
  font-weight: 650;
  color: #101414;
  background: #fff;
}
.site-header {
  height: auto;
  min-height: 76px;
  position: static;
  flex-wrap: wrap;
  padding: 14px 3%;
  gap: 12px;
}
.logo {
  font-size: 1.65rem;
}
.logo small {
  font-size: 0.75rem;
  line-height: 1.4;
}
input {
  width: min(100%, 320px);
  min-width: 0;
  color: #111;
  border: 2px solid #506765;
}
button {
  font-weight: 750;
  min-height: 44px;
}
.layout {
  grid-template-columns: minmax(235px, 23%) minmax(0, 1fr);
  max-width: 1800px;
}
aside {
  padding: 22px 14px;
  background: #f1f5f4;
}
aside small,
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 1px;
}
summary {
  font-weight: 850;
  color: #073b40;
}
aside button {
  font-size: 1rem;
  color: #111;
  font-weight: 700;
  padding: 8px 8px 8px 18px;
}
main {
  padding: 22px clamp(14px, 2vw, 32px);
}
.hero {
  padding: 28px;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  margin: 8px 0;
}
.hero p {
  max-width: 65ch;
  color: #fff;
  margin: 10px 0 16px;
}
.hero button {
  font-weight: 850;
}
h1,
h2 {
  font-weight: 850;
  line-height: 1.25;
  overflow-wrap: normal;
}
h2 {
  font-size: 1.55rem;
  margin: 24px 0 12px;
}
.cards {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 12px;
}
.card {
  padding: 16px;
  border: 2px solid #c9d8d5;
}
.card b {
  font-size: 1.2rem;
  font-weight: 850;
}
.card p {
  font-size: 1rem;
  color: #111;
  margin: 8px 0;
}
.number,
.tag {
  font-size: 0.8rem;
  font-weight: 800;
  color: #063b40;
}
.link {
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: #063b40;
}
.item {
  padding: 10px 14px;
  border: 2px solid #d4dfdc;
}
.security {
  background: #eaf2ef;
  color: #111;
}
.security b {
  font-weight: 850;
}
footer {
  font-size: 0.9rem;
  color: #222;
}
pre {
  overflow-wrap: normal;
  word-break: normal;
}
table {
  table-layout: fixed;
  overflow-wrap: normal;
}
td,
th {
  padding: 8px;
}
.tools {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.tools button {
  padding: 6px 12px;
}
.quick {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 10px;
  margin: 12px 0;
}
.quick button {
  text-align: left;
  background: #eef4f2;
  color: #092e31;
  border: 2px solid #b9cfca;
  padding: 12px;
}
.orbit {
  opacity: 0.3;
}
.skip {
  position: absolute;
  left: 8px;
  top: -100px;
  background: white;
  color: black;
  padding: 12px;
  z-index: 9;
}
.skip:focus {
  top: 8px;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 3px solid #b66a00;
  outline-offset: 3px;
}
@media (max-width: 900px) {
  .layout {
    display: block;
  }
  aside {
    display: none;
    min-height: 0;
  }
  aside.open {
    display: block;
  }
  #menu {
    display: block;
  }
  .site-header {
    gap: 10px;
  }
  .cards {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  }
  .hero {
    padding: 22px;
  }
  main {
    padding: 14px;
  }
  .item {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}
@media (max-width: 430px) {
  .site-header input {
    width: 100%;
  }
  .tools {
    width: 100%;
  }
  .hero h1 {
    letter-spacing: 0;
  }
  .item {
    flex-direction: column;
    gap: 3px;
  }
  td,
  th {
    padding: 5px;
  }
}

/* Responsive layout, including narrow effective viewports at browser zoom. */
html {
  touch-action: auto;
}
body {
  overflow-wrap: normal;
}
.site-header > * {
  min-width: 0;
  max-width: 100%;
}
main,
aside,
.card,
.item,
.quick,
.cards,
.tools {
  min-width: 0;
  max-width: 100%;
}
button {
  white-space: normal;
  overflow-wrap: normal;
  max-width: 100%;
}
pre {
  max-width: 100%;
}
img,
svg,
video {
  max-width: 100%;
  height: auto;
}
.comparison {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
}
.comparison th,
.comparison td {
  overflow-wrap: normal;
  vertical-align: top;
}
.comparison thead {
  background: #063b40;
  color: white;
}
.comparison tbody th {
  background: #eff3f0;
}
.comparison tbody td {
  color: #111;
}
.comparison tbody tr:nth-child(even) td {
  background: #f6f8f7;
}
@media (max-width: 650px) {
  .comparison,
  .comparison tbody,
  .comparison tr,
  .comparison th,
  .comparison td {
    display: block;
    width: 100%;
    max-width: 100%;
  }
  .comparison {
    border: 0;
    background: transparent;
  }
  .comparison thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .comparison tbody tr {
    margin: 0 0 12px;
    border: 2px solid #b9cfca;
    border-radius: 8px;
    background: white;
  }
  .comparison tbody th {
    border: 0;
    border-bottom: 1px solid #b9cfca;
    padding: 12px;
    font-size: 1.1rem;
  }
  .comparison tbody td {
    border: 0;
    padding: 12px;
  }
  .comparison tbody td:before {
    content: "Typischer Einsatz";
    display: block;
    font-size: 0.85rem;
    font-weight: 800;
    color: #063b40;
    margin-bottom: 4px;
  }
  .tools {
    width: auto;
  }
  .site-header input {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
  }
  .hero h1 {
    font-size: clamp(1.65rem, 8vw, 3rem);
  }
  .hero {
    padding: 18px;
  }
  .logo {
    letter-spacing: 2px;
  }
  main {
    padding: 12px;
  }
  .quick {
    grid-template-columns: 1fr;
  }
  .cards {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 340px) {
  .site-header {
    padding: 10px;
  }
  .hero {
    padding: 12px;
  }
  .logo {
    font-size: 1.35rem;
  }
  main {
    padding: 8px;
  }
  .card {
    padding: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* Native links and accessible disclosures preserve the approved design. */
a {
  color: #063b40;
}
.site-header a.logo {
  text-decoration: none;
}
.site-search {
  display: flex;
  flex: 0 1 380px;
  align-items: center;
  gap: 0.5rem;
}
.site-search input {
  flex: 1 1 10rem;
  width: 100%;
}
.logo {
  flex: 0 1 auto;
}
#mobile-nav {
  display: none;
}
.menu-switch {
  display: none;
}
.library-nav a {
  display: block;
  min-height: 44px;
  padding: 8px 8px 8px 18px;
  color: #111;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 7px;
}
.library-nav a:hover,
.library-nav a[aria-current="page"] {
  background: #dce9e5;
  text-decoration: underline;
}
.library-nav ul {
  margin: 0 0 0 0.55rem;
  padding: 0 0 0 0.45rem;
  border-left: 1px solid #b9cfca;
  list-style: none;
}
.library-nav summary {
  min-height: 44px;
  align-content: center;
}
.library-nav details {
  margin: 4px 0;
}
.button-link {
  display: inline-block;
  min-height: 44px;
  padding: 9px 15px;
  border-radius: 7px;
  background: #d5e9e3;
  color: #063b40;
  font-weight: 850;
}
.quick a {
  display: block;
  padding: 12px;
  background: #eef4f2;
  border: 2px solid #b9cfca;
  border-radius: 7px;
  font-weight: 800;
}
.site-footer a + a {
  margin-inline-start: 0.75em;
}
.article-content {
  max-width: 82ch;
}
.article-content ol,
.article-content ul {
  padding-inline-start: 1.5em;
}
.article-content li {
  margin-block: 0.4em;
}
.copy-status {
  margin-inline-start: 0.5em;
  font-size: 0.9em;
}
.preview-note {
  font-size: 0.88rem;
  margin: 0 0 0.8rem;
  color: #303b39;
}
.wp-block-table {
  max-width: 100%;
  margin-inline: 0;
}
.wp-block-table table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
}
.comparison caption {
  text-align: left;
  font-size: 0.9em;
  padding: 0.35em 0;
}
@media (max-width: 900px) {
  .menu-switch {
    display: block;
  }
  .menu-switch summary {
    background: #075357;
    color: white;
    border-radius: 7px;
    padding: 9px 15px;
  }
  body:has(#mobile-menu[open]) .library-nav {
    display: block;
  }
}
@media (max-width: 650px) {
  .site-search {
    flex-basis: 100%;
  }
  .comparison caption {
    display: block;
  }
  .comparison tbody td:before {
    content: attr(data-label);
  }
}
.card h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 850;
  line-height: 1.35;
}

/* CONTIXX – Elfenbein, Kupfer und Petrol */
:root {
  --ink: #183c3e;
  --petrol: #07585b;
  --paper: #fbf8f2;
  --line: #d9dcd2;
}
body {
  background: var(--paper);
  color: var(--ink);
  font-weight: 450;
  font-size: 1.125rem;
  line-height: 1.65;
  hyphens: auto;
  word-break: normal;
}
.site-header {
  background: #fffdf8;
  border-color: var(--line);
}
.logo, .eyebrow { hyphens: none; }
.site-search { display: grid; grid-template-columns: minmax(0, 1fr) max-content; }
.site-search input { max-width: none; font-size: 1rem; }
.site-search button, .menu-switch summary {
  white-space: nowrap;
  hyphens: none;
  background: var(--petrol);
}
.library-nav { background: #f5f2e9; border-color: var(--line); }
.library-nav nav > a { padding-inline-start: 0; font-weight: 650; }
.library-nav summary,
.library-nav .nav-safety a {
  padding: .4em .15em;
  font-size: 1rem;
  font-weight: 670;
}
.library-nav .nav-safety a { color: #073b40; align-content: center; }
.library-nav a { color: var(--ink); }
.nav-intro { border-bottom: 1px solid var(--line); padding-bottom: .8rem; }
.nav-levels { margin: 1.3rem 0; }
.nav-levels h2 { font-size: 1.45rem; margin: 0 0 .8rem; }
.nav-levels details {
  background: #fffdf9;
  border: 1px solid var(--line);
  border-inline-start: 3px solid #489088;
  border-radius: .6rem;
  margin: .55rem 0;
  padding: .25rem .55rem;
}
.nav-levels details[open] { padding-bottom: .6rem; }
.nav-safety { border-top: 1px solid var(--line); padding-top: .8rem; }
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  padding: 0;
  background: #f7eee2;
  color: var(--ink);
  border: 1px solid #dfd6c9;
}
.hero-copy { padding: clamp(1.2rem, 3vw, 3rem); min-width: 0; }
.hero::after {
  content: "";
  background: url("images/platine.webp") right center / cover no-repeat;
}
.hero h1 { color: var(--ink); }
.hero p, .card p { color: #345153; }
.button-link { color: white; background: var(--petrol); text-decoration: none; }
.card { border: 1px solid var(--line); padding: 1.2rem; }
.card::before {
  content: "";
  display: block;
  height: 4rem;
  margin: -1.2rem -1.2rem 1rem;
  border-radius: .7rem .7rem 0 0;
  background: #f7eee2 url("images/platine.webp") 12% 78% / 230% auto no-repeat;
}
.card:nth-child(2)::before { background-position: 57% 62%; }
.card:nth-child(3)::before { background-position: 96% 43%; }
.quick a, .item { border: 1px solid var(--line); }
.security { background: #f0f2eb; border-color: #93aaa2; }
article.article-content { max-width: 72ch; }
.article-content h1 {
  font-size: clamp(1.42rem, 4.8vw, 2.9rem);
  line-height: 1.2;
  letter-spacing: -.025em;
  hyphens: auto;
}
pre { overflow-x: auto; hyphens: manual; }
.wp-block-table { overflow-x: auto; }
.site-footer { border-top: 1px solid var(--line); padding-top: 1rem; }
@media (max-width: 700px) {
  .hero { display: flex; flex-direction: column; }
  .hero::after { order: -1; height: clamp(5rem, 19vw, 8rem); background-position: 85% 55%; }
  .site-search { flex-basis: 100%; }
}

.logo small {
  font-size: .8rem;
  letter-spacing: .02em;
  text-transform: none;
}
.subpage-art {
  height: clamp(5rem, 11vw, 9rem);
  background: #f7eee2 url("images/platine.webp") right 53% / cover no-repeat;
  border: 1px solid #dfd6c9;
  border-radius: .75rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 700px) {
  .subpage-art { background-position: 82% 52%; }
}
