/* Zerlegt – gemeinsame Stile. Keine externen Ressourcen. Schrift: Manrope (OFL), liegt unter /fonts/. */

@font-face { font-family: "Manrope"; src: url("/fonts/manrope_medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/fonts/manrope_semibold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/fonts/manrope_bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/fonts/manrope_extrabold.ttf") format("truetype"); font-weight: 800; font-display: swap; }

:root {
  --bg: #ffffff;
  --surface: #f7f7f8;
  --text: #15161a;
  --muted: #63666e;
  --line: #eaeaec;
  --accent: #2563eb;
  --accent-ink: #ffffff;
  --mark-ph-bg: #ffd966;
  --mark-ph-fg: #2e2300;
  --mark-chk-bg: #fde3b8;
  --mark-chk-fg: #3a2300;
  --draft-bg: #fff3d6;
  --draft-fg: #3a2800;
  --draft-line: #c98a00;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 8px;
  --gutter: 18px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15161a;
    --surface: #1f2026;
    --text: #eeeef0;
    --muted: #a3a6ae;
    --line: #2c2d33;
    --accent: #8fb2f7;
    --accent-ink: #10203f;
    --mark-ph-bg: #6b5200;
    --mark-ph-fg: #fff2c4;
    --mark-chk-bg: #5a3b00;
    --mark-chk-fg: #ffe9c2;
    --draft-bg: #2b2210;
    --draft-fg: #f6e6bd;
    --draft-line: #b98a1c;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #15161a;
  --surface: #1f2026;
  --text: #eeeef0;
  --muted: #a3a6ae;
  --line: #2c2d33;
  --accent: #8fb2f7;
  --accent-ink: #10203f;
  --mark-ph-bg: #6b5200;
  --mark-ph-fg: #fff2c4;
  --mark-chk-bg: #5a3b00;
  --mark-chk-fg: #ffe9c2;
  --draft-bg: #2b2210;
  --draft-fg: #f6e6bd;
  --draft-line: #b98a1c;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: 46rem; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.wrap-wide { max-width: 82.5rem; }

a { color: var(--text); text-underline-offset: 0.2em; text-decoration-thickness: 0.08em; transition: color 150ms ease-out; }
a:hover { color: var(--accent); }
a:focus-visible, label:focus-visible, .k:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: var(--gutter); top: -4rem; background: var(--text); color: var(--bg); padding: 0.6rem 1rem; border-radius: 8px; z-index: 10; text-decoration: none; }
.skip:focus { top: 0.75rem; }

/* Kopf */

.site-header { position: sticky; top: 0; z-index: 5; background: var(--bg); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.25rem; padding-top: 1rem; padding-bottom: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; }
.brand:hover { color: var(--text); }
.mark { width: 1.5rem; height: 1.66rem; flex: none; }
.mark path { fill: none; stroke: currentColor; stroke-width: 4.2; stroke-linejoin: round; stroke-linecap: round; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem clamp(0.9rem, 2.4vw, 1.75rem); align-items: center; }
.site-nav a { display: inline-block; padding: 0.35rem 0; text-decoration: none; font-size: 0.94rem; font-weight: 600; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.3em; }
.site-nav .lang a { color: var(--muted); }
.site-nav .lang a:hover { color: var(--text); }
.nav-play { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--text); color: var(--bg); border-radius: 999px; padding: 0.5rem 1rem; font-size: 0.875rem; font-weight: 700; }
.nav-play svg, .play svg { width: 0.9rem; height: 0.9rem; flex: none; }
.nav-play svg path, .play svg path { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; }

/* Inhalt allgemein */

main { flex: 1 0 auto; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.4rem); letter-spacing: -0.035em; line-height: 1.02; }
h2 { font-size: 1.5rem; margin-top: 2.75rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.15rem; font-weight: 700; margin-top: 1.9rem; margin-bottom: 0.5rem; }
p, ul, ol { margin: 0 0 1rem; }
ul, ol { padding-left: 1.3rem; }
li { margin-bottom: 0.35rem; }

/* Rechtstexte */

.prose { padding-top: 2.5rem; padding-bottom: 3.5rem; }
.prose h1 { margin-bottom: 0.75rem; }
.prose > p:first-of-type { color: var(--muted); }
.prose h2 { scroll-margin-top: 5rem; }
.toc { background: var(--surface); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1.5rem 0 0.5rem; font-size: 0.97rem; }
.toc strong { display: block; margin-bottom: 0.4rem; }
.toc ul { margin: 0; padding-left: 0; list-style: none; columns: 1; }
.toc li { margin-bottom: 0.2rem; }

mark { border-radius: 4px; padding: 0.05em 0.3em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
mark.ph { background: var(--mark-ph-bg); color: var(--mark-ph-fg); font-weight: 600; }
mark.check { background: var(--mark-chk-bg); color: var(--mark-chk-fg); font-size: 0.93em; }
.draft { background: var(--draft-bg); color: var(--draft-fg); border-radius: 10px; padding: 0.8rem 1rem; margin: 1.25rem 0 0; font-size: 0.95rem; }
.draft p { margin: 0; }
.legal-note { background: var(--surface); border-radius: 10px; padding: 0.8rem 1rem; margin: 1.25rem 0 0; font-size: 0.95rem; color: var(--muted); }
.legal-note p { margin: 0; }

/* Startseite: Kopfbereich */

.hero { padding-top: clamp(2.5rem, 7vw, 6rem); }
.hero h1 { font-size: clamp(2.75rem, 8.2vw, 7.75rem); line-height: 0.95; letter-spacing: -0.045em; max-width: 13ch; text-wrap: balance; }
.hero-grid { margin-top: clamp(2rem, 5vw, 4rem); display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: start; }
.hero-copy { max-width: 28rem; }
.lead { font-size: clamp(1.19rem, 1.6vw, 1.375rem); line-height: 1.5; margin: 0 0 1.25rem; text-wrap: pretty; }
.facts { margin: 0 0 1.5rem; }
.play { display: inline-flex; align-items: center; gap: 0.75rem; background: var(--text); color: var(--bg); border-radius: 999px; padding: 0.85rem 1.5rem 0.85rem 1.25rem; font-weight: 700; font-size: 1.06rem; line-height: 1.15; margin: 0; }
.play svg { width: 1.2rem; height: 1.2rem; }
.play small { display: block; font-weight: 500; font-size: 0.8rem; opacity: 0.75; }
.hint { margin: 1.75rem 0 0; font-size: 0.94rem; color: var(--muted); max-width: 36ch; }

/* Die Leiter: ohne JavaScript, Radioknoepfe + Labels */

.leiter { position: relative; min-width: 0; scroll-margin-top: 5.5rem; }
.eb { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; pointer-events: none; }
.stage { position: relative; aspect-ratio: 5 / 4; border-radius: var(--radius); overflow: hidden; background-color: #e7eef9; transition: background-color 520ms var(--ease); }
.lv { position: absolute; left: 50%; top: 40%; max-width: 80%; height: auto; mix-blend-mode: multiply; opacity: 0; transform: translate(-50%, -50%) scale(0.92); transition: opacity 300ms var(--ease), transform 460ms var(--ease); pointer-events: none; }
.go { position: absolute; inset: 0; cursor: pointer; display: none; }
.caps { position: absolute; left: clamp(0.75rem, 2.4vw, 1.5rem); right: clamp(0.75rem, 2.4vw, 1.5rem); bottom: clamp(0.75rem, 2.4vw, 1.5rem); max-width: 35rem; display: grid; pointer-events: none; }
.cap { grid-area: 1 / 1; margin: 0; background: #ffffff; color: #15161a; border-radius: 20px; box-shadow: 0 2px 6px rgba(21, 22, 26, 0.1); padding: clamp(1rem, 2.2vw, 1.5rem) clamp(1.1rem, 2.6vw, 1.75rem); display: flex; flex-direction: column; gap: 0.25rem; opacity: 0; visibility: hidden; transition: opacity 250ms var(--ease), visibility 250ms; }
.cap-label { font-size: 0.875rem; font-weight: 600; color: #63666e; }
.cap strong { font-size: clamp(1.375rem, 2.4vw, 1.875rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.cap-text { font-size: 1rem; line-height: 1.5; color: #63666e; margin-top: 0.25rem; text-wrap: pretty; }
.leiter-bar { margin-top: 0.875rem; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.chips { display: flex; gap: 0.375rem; flex-wrap: wrap; }
.c { border-radius: 999px; padding: 0.5rem 0.875rem; font-size: 0.875rem; font-weight: 700; background: var(--surface); color: var(--muted); cursor: pointer; user-select: none; transition: background-color 200ms ease-out, color 200ms ease-out, transform 120ms ease-out; }
.c:hover { color: var(--text); }
.c:active, .t:active { transform: scale(0.96); }
.t { display: none; align-items: center; font-size: 0.94rem; font-weight: 700; cursor: pointer; padding: 0.5rem 0.125rem; user-select: none; transition: color 150ms ease-out, transform 120ms ease-out; }
.t:hover { color: var(--accent); }

/* Je Ebene: Buehnenfarbe (Wissensfarben.kt), Bild, Text, gewaehlter Chip */
.lv-1 { width: 46%; }
#eb-1:checked ~ .stage { background-color: #e7eef9; }
#eb-1:checked ~ .stage .lv-1 { opacity: 1; transform: translate(-50%, -50%) scale(1); }
#eb-1:checked ~ .stage .go-1 { display: block; }
#eb-1:checked ~ .stage .cap-1 { opacity: 1; visibility: visible; }
#eb-1:checked ~ .leiter-bar .c-1 { background: var(--text); color: var(--bg); }
#eb-1:checked ~ .leiter-bar .t-1 { display: inline-flex; }
#eb-1:focus-visible ~ .leiter-bar .c-1 { outline: 3px solid var(--accent); outline-offset: 2px; }
.lv-2 { width: 50%; }
#eb-2:checked ~ .stage { background-color: #f5eee3; }
#eb-2:checked ~ .stage .lv-2 { opacity: 1; transform: translate(-50%, -50%) scale(1); }
#eb-2:checked ~ .stage .go-2 { display: block; }
#eb-2:checked ~ .stage .cap-2 { opacity: 1; visibility: visible; }
#eb-2:checked ~ .leiter-bar .c-2 { background: var(--text); color: var(--bg); }
#eb-2:checked ~ .leiter-bar .t-2 { display: inline-flex; }
#eb-2:focus-visible ~ .leiter-bar .c-2 { outline: 3px solid var(--accent); outline-offset: 2px; }
.lv-3 { width: 46%; }
#eb-3:checked ~ .stage { background-color: #e8f1e7; }
#eb-3:checked ~ .stage .lv-3 { opacity: 1; transform: translate(-50%, -50%) scale(1); }
#eb-3:checked ~ .stage .go-3 { display: block; }
#eb-3:checked ~ .stage .cap-3 { opacity: 1; visibility: visible; }
#eb-3:checked ~ .leiter-bar .c-3 { background: var(--text); color: var(--bg); }
#eb-3:checked ~ .leiter-bar .t-3 { display: inline-flex; }
#eb-3:focus-visible ~ .leiter-bar .c-3 { outline: 3px solid var(--accent); outline-offset: 2px; }
.lv-4 { width: 50%; }
#eb-4:checked ~ .stage { background-color: #fcede0; }
#eb-4:checked ~ .stage .lv-4 { opacity: 1; transform: translate(-50%, -50%) scale(1); }
#eb-4:checked ~ .stage .go-4 { display: block; }
#eb-4:checked ~ .stage .cap-4 { opacity: 1; visibility: visible; }
#eb-4:checked ~ .leiter-bar .c-4 { background: var(--text); color: var(--bg); }
#eb-4:checked ~ .leiter-bar .t-4 { display: inline-flex; }
#eb-4:focus-visible ~ .leiter-bar .c-4 { outline: 3px solid var(--accent); outline-offset: 2px; }
.lv-5 { width: 46%; }
#eb-5:checked ~ .stage { background-color: #e9eef3; }
#eb-5:checked ~ .stage .lv-5 { opacity: 1; transform: translate(-50%, -50%) scale(1); }
#eb-5:checked ~ .stage .go-5 { display: block; }
#eb-5:checked ~ .stage .cap-5 { opacity: 1; visibility: visible; }
#eb-5:checked ~ .leiter-bar .c-5 { background: var(--text); color: var(--bg); }
#eb-5:checked ~ .leiter-bar .t-5 { display: inline-flex; }
#eb-5:focus-visible ~ .leiter-bar .c-5 { outline: 3px solid var(--accent); outline-offset: 2px; }
.lv-6 { width: 42%; }
#eb-6:checked ~ .stage { background-color: #f1e9f7; }
#eb-6:checked ~ .stage .lv-6 { opacity: 1; transform: translate(-50%, -50%) scale(1); }
#eb-6:checked ~ .stage .go-6 { display: block; }
#eb-6:checked ~ .stage .cap-6 { opacity: 1; visibility: visible; }
#eb-6:checked ~ .leiter-bar .c-6 { background: var(--text); color: var(--bg); }
#eb-6:checked ~ .leiter-bar .t-6 { display: inline-flex; }
#eb-6:focus-visible ~ .leiter-bar .c-6 { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Startseite: Abschnitte */

.section { padding-top: clamp(6rem, 13vw, 11.25rem); }
.big { font-size: clamp(2.125rem, 5vw, 4.25rem); line-height: 1; letter-spacing: -0.04em; max-width: 16ch; margin: 0; }
.intro { margin: 1.5rem 0 0; font-size: 1.19rem; line-height: 1.55; max-width: 46ch; text-wrap: pretty; }

.whys { margin-top: clamp(2.5rem, 6vw, 4.5rem); display: flex; flex-direction: column; gap: clamp(2.5rem, 6vw, 4.5rem); }
.why { display: flex; flex-wrap: wrap; gap: clamp(1.25rem, 4vw, 3.5rem); align-items: center; }
.why-bild { flex: none; width: clamp(11.25rem, 24vw, 18.75rem); aspect-ratio: 1 / 1; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; }
.why-bild img { width: 84%; height: auto; mix-blend-mode: multiply; }
.f-objekt { background: #e7eef9; }
.f-bauteil { background: #f5eee3; }
.f-werkstoff { background: #e8f1e7; }
.why-text { flex: 1 1 20rem; max-width: 40rem; }
.why-text h3 { margin: 0; font-size: clamp(1.5rem, 2.8vw, 2.25rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; }
.why-text p { margin: 0.875rem 0 0; font-size: 1.125rem; line-height: 1.55; text-wrap: pretty; }

.kat-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem; }
.kat-head .big { max-width: 14ch; }
.kat-head p { margin: 0; font-size: 1.125rem; line-height: 1.55; max-width: 40ch; text-wrap: pretty; }
.katalog { list-style: none; padding: 0; margin: clamp(2rem, 4vw, 3rem) 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 11.25rem), 1fr)); gap: 0.5rem; }
.k { margin: 0; background: #f7f7f8; color: #15161a; border-radius: var(--radius); padding: 0.875rem 0.875rem 1rem; display: flex; flex-direction: column; gap: 0.625rem; cursor: pointer; transition: transform 160ms ease-out; }
.k:active { transform: scale(0.98); }
.k-bild { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; }
.k-bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: opacity 240ms var(--ease), transform 320ms var(--ease); }
.k-auf { opacity: 0; transform: scale(0.94); }
.k-name { font-size: 0.94rem; font-weight: 700; }
.note { margin: 1.75rem 0 0; font-size: 1rem; line-height: 1.6; color: var(--muted); max-width: 62ch; text-wrap: pretty; }

.mehr { margin: clamp(2.25rem, 5vw, 3.5rem) 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.25rem), 1fr)); gap: clamp(1.75rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3.5rem); }
.mehr div { display: flex; flex-direction: column; gap: 0.625rem; }
.mehr dt { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.02em; }
.mehr dd { margin: 0; font-size: 1.06rem; line-height: 1.55; }

.ds { background: var(--surface); border-radius: var(--radius); padding: clamp(1.75rem, 5vw, 4.5rem); display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 5vw, 4.5rem); }
.ds h2 { flex: 1 1 17.5rem; margin: 0; font-size: clamp(1.875rem, 3.8vw, 3.25rem); line-height: 1.02; letter-spacing: -0.035em; max-width: 12ch; }
.ds > div { flex: 1.4 1 21rem; max-width: 62ch; }
.ds p { margin: 0 0 1rem; }
.ds p:last-child { margin-bottom: 0; }

/* Fuss */

.site-footer { margin-top: clamp(6rem, 13vw, 11.25rem); padding-bottom: 2rem; }
.prose ~ .site-footer, main.err ~ .site-footer { margin-top: 2rem; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem; }
.foot-contact { margin: 0; display: flex; flex-direction: column; gap: 0.5rem; font-size: 1.125rem; font-weight: 700; }
.foot-contact a { font-size: clamp(1.375rem, 3vw, 2.125rem); font-weight: 800; letter-spacing: -0.02em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; font-size: 0.94rem; font-weight: 600; }
.site-footer li { margin: 0; }
.foot-end { margin-top: clamp(3rem, 7vw, 6rem); display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.foot-end p { margin: 0; font-size: 0.875rem; color: var(--muted); padding-bottom: 0.5rem; }
.foot-end .foot-word { font-weight: 800; font-size: clamp(4.5rem, 19vw, 17.5rem); line-height: 0.8; letter-spacing: -0.06em; margin-left: -0.04em; color: var(--text); padding: 0; }

/* Platzhalter: nur das Wort */

.site-header-solo { display: none; }
.solo { flex: 1 0 auto; min-height: calc(100vh - 6rem); display: flex; align-items: center; }
.solo-word { font-size: clamp(5rem, 24vw, 22rem); line-height: 0.85; letter-spacing: -0.06em; margin: 0 0 0 -0.04em; font-weight: 800; }
.foot-min { margin-top: 0; }
.foot-min .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; padding-top: 1.25rem; font-size: 0.94rem; color: var(--muted); }
.foot-min p { margin: 0; }
.prose ~ .foot-min, main.err ~ .foot-min { margin-top: 2rem; }

/* Fehlerseite */

.err { padding-top: 3.5rem; padding-bottom: 3rem; }
.err .code { font-size: clamp(3.5rem, 16vw, 6rem); font-weight: 800; line-height: 1; margin: 0 0 0.75rem; color: var(--muted); }

@media (hover: hover) {
  .k:hover .k-zu { opacity: 0; }
  .k:hover .k-auf { opacity: 1; transform: scale(1); }
}
.k:focus .k-zu, .k:focus-within .k-zu { opacity: 0; }
.k:focus .k-auf, .k:focus-within .k-auf { opacity: 1; transform: scale(1); }

@media (max-width: 40rem) {
  .nav-play { display: none; }
}

@media (min-width: 40rem) {
  :root { --gutter: 24px; }
  .toc ul { columns: 2; column-gap: 2rem; }
}

@media (min-width: 60rem) {
  :root { --gutter: 32px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 3.5rem; }
  .hero-copy { padding-top: 0.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-nav, .skip, .draft { display: none; }
  .site-header { position: static; }
  body { background: #fff; color: #000; }
}
