/* Importfertig – Gestaltung. Richtung „Type and nothing else“: Kobaltblau auf Sand, zwei Schriften, keine Verzierung. */

:root {
  --bg: #e6dbc7;
  --surface: #ddd0b9;
  --ink: #062b8a;
  --ink-hell: #0a3aa8;
  --muted: #3a5aa8;
  --accent: #062b8a;
  --accent-ink: #e6dbc7;

  --font-display: 'Imbue', 'Times New Roman', serif;
  --font-text: 'Albert Sans', system-ui, sans-serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1.02rem + 0.12vw, 1.125rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(1.75rem, 1.3rem + 1.2vw, 2.25rem);
  --step-display: clamp(2.6rem, 1rem + 8.5vw, 9.5rem);

  --margin: 18px;
  --gutter: clamp(1rem, 2vw, 2rem);
  --section: clamp(7rem, 12vw, 14rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
}
@media (max-width: 48em) { :root { --margin: 16px; } }

/* ---------- Grundlage ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-text); font-size: var(--step-body); line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, p, figure, ul, ol { margin: 0; }
img { display: block; max-width: 100%; height: auto; background: var(--surface); }
a { color: inherit; }
button, select, output { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
p { text-wrap: pretty; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.ueberschrift { font-family: var(--font-text); font-weight: 500; font-size: var(--step-head); line-height: 1.1; letter-spacing: -0.01em; text-wrap: balance; }
.gross { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: -0.01em; line-height: 0.9; font-optical-sizing: auto; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0 1.4rem; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 500; white-space: nowrap; transition: transform 140ms var(--ease-out), background-color 180ms ease, color 180ms ease; }
.button:hover { background: var(--ink-hell); }
.button:active { transform: scale(0.97); }
.feld--tinte .button { background: var(--bg); color: var(--ink); }
.feld--tinte .button:hover { background: #fff; }

.link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.2em; text-decoration-thickness: 0.07em; transition: text-decoration-color 180ms ease; }
.link:hover, .link:focus-visible { text-decoration-color: currentColor; }

.raster { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.feld--tinte { background: var(--ink); color: var(--bg); }
.feld--tinte img { background: var(--ink-hell); }
.feld--flaeche { background: var(--surface); }

/* ---------- Erster Bildschirm: der Name über die ganze Breite ---------- */
.hero { min-height: 100svh; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr auto; padding: var(--margin); row-gap: 1.5rem; }
.hero__satz { grid-column: 1; grid-row: 1; max-width: 36ch; font-size: 18px; line-height: 1.4; }
.hero__satz .button { margin-top: 16px; }
.hero__oben { grid-column: 2; grid-row: 1; justify-self: end; display: flex; gap: 1.5rem; font-size: 16px; }
.hero__oben a { text-decoration: none; }
.wortmarke { grid-column: 1 / -1; grid-row: 2; align-self: center; margin: 0; white-space: nowrap; font-size: 18vw; line-height: 0.86; text-align: center; }
.wortmarke .fit { display: inline-block; }
.hero__unten-links { grid-column: 1; grid-row: 3; align-self: end; font-size: 16px; }
.hero__unten-rechts { grid-column: 2; grid-row: 3; justify-self: end; align-self: end; display: flex; gap: 1.5rem; font-size: 16px; }
.hero__unten-rechts a { text-decoration: none; }
.hero__bild { display: none; }
.hero__bild img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }

@media (max-width: 48em) {
  .hero { grid-template-columns: 1fr; grid-template-rows: auto auto auto auto minmax(0, 1fr); row-gap: 0; padding-bottom: 0; }
  .hero__oben { grid-column: 1; grid-row: 1; }
  .hero__oben a:not(:last-child) { display: none; }
  .wortmarke { grid-row: 2; align-self: start; margin-top: calc(22svh - 3.2rem); font-size: 19vw; }
  .hero__satz { grid-row: 3; grid-column: 1; margin-top: 1.5rem; font-size: 18px; max-width: none; }
  .hero__satz .button { display: flex; width: 100%; }
  .hero__unten-links { grid-row: 4; grid-column: 1; margin-top: 1.25rem; font-size: 15px; }
  .hero__unten-rechts { display: none; }
  .hero__bild { display: block; grid-row: 5; grid-column: 1; margin: 1.25rem calc(var(--margin) * -1) 0; min-height: 44svh; overflow: hidden; }
  .hero__bild img { aspect-ratio: 4 / 5; height: auto; min-height: 100%; }
}

/* ---------- Vergleich: zwei riesige Wörter ---------- */
.vergleich { padding: var(--section) var(--margin) 0; }
.vergleich__kopf { align-items: start; }
.vergleich__kopf h2 { grid-column: 1 / 6; }
.vergleich__kopf p { grid-column: 7 / 13; max-width: 60ch; }
.vergleich__paar { --probe: clamp(180px, 31vw, 450px); margin-top: 12vh; }
.vergleich__paar figure:first-child { grid-column: 1 / 7; }
.vergleich__paar figure:last-child { grid-column: 7 / 13; text-align: right; }
.probe-box { height: calc(var(--probe) * 0.5); overflow: hidden; }
.vergleich__paar figcaption { font-size: 16px; margin-top: 0.75rem; }
.probe { font-size: var(--probe); line-height: 0.8; }
@media (max-width: 48em) {
  .vergleich__kopf h2, .vergleich__kopf p { grid-column: 1 / -1; }
  .vergleich__kopf p { margin-top: 1rem; }
  .vergleich__paar { --probe: 62vw; margin-top: 3rem; row-gap: 0; margin-inline: calc(var(--margin) * -1); }
  .vergleich__paar figure { grid-column: 1 / -1 !important; text-align: left; padding: 1.5rem var(--margin) 1.25rem; }
  .probe-box { height: 30svh; }
  .vergleich__paar figure:last-child { background: var(--ink); color: var(--bg); }
}

/* ---------- Drei Umwandlungen ---------- */
.beispiele { padding: var(--section) var(--margin) 0; }
.beispiele__kopf { align-items: start; }
.beispiele__kopf h2 { grid-column: 1 / 6; }
.beispiele__kopf p { grid-column: 7 / 13; max-width: 56ch; }
.paar { margin-top: clamp(4rem, 8vw, 7rem); align-items: start; }
.paar figure:first-child { grid-column: 1 / 7; }
.paar figure:last-child { grid-column: 7 / 13; margin-top: clamp(3rem, 6vw, 6rem); }
.paar--versetzt figure:first-child { margin-top: clamp(3rem, 6vw, 6rem); }
.paar--versetzt figure:last-child { margin-top: 0; }
.paar img { width: 100%; aspect-ratio: 1200 / 760; object-fit: cover; }
.paar figcaption { margin-top: 0.8rem; font-size: 16px; max-width: 46ch; line-height: 1.45; }
.paar figcaption b { font-weight: 500; }
@media (max-width: 48em) {
  .beispiele__kopf h2, .beispiele__kopf p { grid-column: 1 / -1; }
  .beispiele__kopf p { margin-top: 1rem; }
  .paar figure { grid-column: 1 / -1 !important; margin-top: 0 !important; }
  .paar figure + figure { margin-top: 2rem !important; }
  .paar { margin-top: 4rem; }
}

/* ---------- Archivbild als Band ---------- */
.band { margin-top: var(--section); }
.band__rahmen { height: 80svh; overflow: hidden; }
.band__rahmen img { width: 100%; height: 112%; object-fit: cover; object-position: center 40%; }
.band figcaption { padding: 1.5rem var(--margin) 0; }
.band figcaption p { font-size: var(--step-lead); line-height: 1.3; max-width: 28ch; margin-left: 50%; }
.band figcaption small { display: block; margin-top: 0.75rem; font-size: var(--step-small); margin-left: 50%; }
@media (max-width: 48em) {
  .band__rahmen { height: 60svh; }
  .band figcaption p, .band figcaption small { margin-left: 0; }
}

/* ---------- Ablauf: Beleg auf blauem Grund ---------- */
.ablauf { margin-top: var(--section); padding: var(--section) var(--margin) 6rem; align-items: start; }
.ablauf__kopf { grid-column: 1 / 6; }
.ablauf__kopf h2 { font-family: var(--font-text); font-weight: 500; font-size: clamp(40px, 4.4vw, 68px); line-height: 1.02; letter-spacing: -0.02em; max-width: 12ch; }
.ablauf__kopf p { margin-top: 1.5rem; max-width: 30ch; }
.beleg { grid-column: 7 / 12; max-width: 480px; background: var(--bg); color: var(--ink); padding: 2rem 1.75rem 3rem; font-size: 16px; font-variant-numeric: tabular-nums; clip-path: polygon(0 0, 100% 0, 100.00% 100%, 96.43% calc(100% - 12px), 92.86% 100%, 89.29% calc(100% - 12px), 85.71% 100%, 82.14% calc(100% - 12px), 78.57% 100%, 75.00% calc(100% - 12px), 71.43% 100%, 67.86% calc(100% - 12px), 64.29% 100%, 60.71% calc(100% - 12px), 57.14% 100%, 53.57% calc(100% - 12px), 50.00% 100%, 46.43% calc(100% - 12px), 42.86% 100%, 39.29% calc(100% - 12px), 35.71% 100%, 32.14% calc(100% - 12px), 28.57% 100%, 25.00% calc(100% - 12px), 21.43% 100%, 17.86% calc(100% - 12px), 14.29% 100%, 10.71% calc(100% - 12px), 7.14% 100%, 3.57% calc(100% - 12px), 0.00% 100%); }
.beleg h3 { font-size: 16px; font-weight: 500; margin-top: 28px; }
.beleg h3:first-child { margin-top: 0; }
.beleg .zeile { display: flex; align-items: baseline; gap: 0.5rem; margin-top: 0.55rem; }
.beleg .zeile span:first-child { flex: 0 1 auto; }
.beleg .punkte { flex: 1 1 0; min-width: 1.5ch; overflow: hidden; white-space: nowrap; letter-spacing: 0.3em; color: var(--muted); line-height: 1; }
.beleg .punkte::after { content: "·······································································································"; }
.beleg .zeile span:last-child { flex: 0 0 auto; white-space: nowrap; }
.beleg__ergebnis { margin: 1.75rem -1.75rem 0; background: var(--ink); color: var(--bg); min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.4rem 1.75rem; font-weight: 500; }
@media (max-width: 48em) {
  .ablauf__kopf, .beleg { grid-column: 1 / -1; }
  .beleg { margin-top: 3rem; max-width: none; }
}

/* ---------- Preis: ein Satz ---------- */
.preis { padding: 5rem var(--margin) var(--section); }
.preis__satz { font-size: var(--step-display); line-height: 0.95; }
.preis__satz .block { display: inline-block; background: var(--accent); color: var(--accent-ink); padding: 0 0.15em; line-height: 0.95; }
.preis__zeile { margin-top: 64px; align-items: end; }
.preis__dazu { grid-column: 1 / 7; font-size: 20px; line-height: 1.4; max-width: 44ch; }
.preis__zeile .button { grid-column: 10 / 13; justify-self: end; }
.rechner { margin-top: clamp(3.5rem, 7vw, 6rem); row-gap: 1.25rem; align-items: start; }
.rechner__titel { grid-column: 1 / -1; font-weight: 500; }
.rechner label { display: block; font-size: var(--step-body); }
.rechner label:nth-of-type(1) { grid-column: 1 / 4; }
.rechner label:nth-of-type(2) { grid-column: 4 / 7; }
.rechner select { display: block; width: 100%; margin-top: 0.4rem; min-height: 3rem; padding: 0.5rem 0.8rem; background: var(--bg); color: var(--ink); border: 0; font-size: max(1rem, var(--step-body)); }
.rechner output { grid-column: 7 / 13; font-size: var(--step-lead); line-height: 1.3; max-width: 30ch; min-height: 3rem; }
.rechner output b { font-weight: 500; }
.rechner .button { grid-column: 7 / 13; justify-self: start; margin-top: 0.5rem; }
@media (max-width: 48em) {
  .preis__satz { font-size: 10.5vw; }
  .preis__zeile { margin-top: 2.5rem; }
  .preis__dazu, .preis__zeile .button, .rechner label:nth-of-type(1), .rechner label:nth-of-type(2), .rechner output, .rechner .button { grid-column: 1 / -1; }
  .rechner output { max-width: none; }
  .preis__zeile .button { justify-self: stretch; display: flex; margin-top: 1.5rem; }
  .rechner .button { justify-self: stretch; display: flex; }
}

/* ---------- Fragen als Lesetext ---------- */
.fragen { padding: 5rem var(--margin) var(--section); align-items: start; }
.fragen__links { grid-column: 1 / 4; }
.fragen__links figure { margin-top: 2rem; }
.fragen__links figcaption { margin-top: 0.6rem; font-size: var(--step-small); }
.fragen__text { grid-column: 5 / 13; columns: 2; column-gap: 56px; line-height: 1.55; }
.fragen__text p { break-inside: avoid; margin-bottom: 20px; }
.fragen__text b { font-weight: 500; }
@media (max-width: 64em) { .fragen__text { columns: 1; grid-column: 5 / 13; } }
@media (max-width: 48em) {
  .fragen__links, .fragen__text { grid-column: 1 / -1; }
  .fragen__links figure { display: none; }
  .fragen__text { margin-top: 2rem; font-size: 16px; }
  .fragen__text p { margin-bottom: 18px; }
}

/* ---------- Probe oder Frage: Frage an beiden Rändern ---------- */
.frage { position: relative; min-height: 100svh; padding: 32px var(--margin) 24px; text-align: center; display: flex; flex-direction: column; justify-content: space-between; }
.frage__h { font-size: clamp(110px, 11vw, 168px); line-height: 1; display: flex; flex-direction: column; justify-content: space-between; flex: 1 1 auto; }
.frage__mitte { position: absolute; left: var(--margin); right: var(--margin); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 16px; }
.frage__knoepfe { display: flex; align-items: center; gap: 0; }
.frage__knoepfe .button { width: 200px; min-height: 56px; }
.frage__oder { width: 240px; text-align: center; font-size: 16px; color: var(--surface); }
.frage__hinweis { font-size: 16px; color: var(--surface); }
@media (max-width: 48em) {
  .frage { min-height: 0; padding: 3rem var(--margin) 3.5rem; display: block; }
  .frage__h { font-size: 18vw; display: block; }
  .frage__h span { display: block; }
  .frage__mitte { position: static; transform: none; margin-top: 2.5rem; }
  .frage__knoepfe { flex-direction: column; gap: 12px; width: 72%; }
  .frage__knoepfe .button { width: 100%; }
  .frage__oder { width: auto; }
}

/* ---------- Fußzeile: der Name zuerst ---------- */
.fuss { padding: 6rem var(--margin) 2rem; }
.fuss__name { white-space: nowrap; font-size: 18vw; line-height: 0.85; text-align: center; }
.fuss__zeile { margin-top: 72px; align-items: start; }
.fuss__orte { grid-column: 1 / 6; font-size: clamp(26px, 2.4vw, 36px); line-height: 1.25; }
.fuss__orte a { display: block; text-decoration: none; width: fit-content; }
.fuss__links { grid-column: 7 / 13; display: grid; grid-template-columns: repeat(3, 1fr); column-gap: var(--gutter); font-size: 16px; line-height: 1.5; }
.fuss__links b { display: block; font-weight: 500; margin-bottom: 0.5rem; }
.fuss__links a { display: block; text-decoration: none; width: fit-content; }
.fuss__recht { margin-top: 96px; display: flex; justify-content: space-between; gap: 1rem; font-size: var(--step-small); }
.fuss__recht a { text-decoration: none; }
.credits { margin-top: 1.5rem; font-size: var(--step-small); max-width: 90ch; line-height: 1.5; }
@media (max-width: 48em) {
  .fuss { padding-top: 4rem; }
  .fuss__orte, .fuss__links { grid-column: 1 / -1; }
  .fuss__orte { font-size: 26px; }
  .fuss__links { margin-top: 2.5rem; grid-template-columns: repeat(2, 1fr); row-gap: 1.5rem; }
  .fuss__recht { margin-top: 4rem; }
}

/* ---------- Unterseiten (Impressum, Datenschutz) ---------- */
.unterseite { padding: var(--margin) var(--margin) var(--section); max-width: 70ch; }
.unterseite__kopf { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4rem; font-size: 15px; }
.unterseite__kopf a { text-decoration: none; }
.unterseite h1 { font-family: var(--font-text); font-weight: 500; font-size: var(--step-head); line-height: 1.1; margin-bottom: 2rem; }
.unterseite h2 { font-family: var(--font-text); font-weight: 500; font-size: var(--step-lead); line-height: 1.2; margin-top: 2.5rem; margin-bottom: 0.75rem; }
.unterseite p + p { margin-top: 0.9em; }
.unterseite ul { padding-left: 1.2em; margin: 0.5em 0; }

/* ---------- Bewegung (Inhalt bleibt ohne Script sichtbar) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-line] { display: inline-block; transform: translateY(105%); animation: zeile-hoch 900ms var(--ease-out) forwards; animation-delay: 150ms; }
  .wortmarke { overflow: hidden; }
  .js [data-load] { opacity: 0; transform: translateY(12px); animation: laden 500ms var(--ease-out) forwards; animation-delay: var(--d, 400ms); }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .hero__bild { clip-path: inset(0 0 100% 0); animation: oeffnen 1000ms var(--ease-in-out) 300ms forwards; }
  .js .hero__bild img { transform: scale(1.08); animation: setzen 1100ms var(--ease-expo) 250ms forwards; }
  .paar img, .fragen__links img { transition: transform 600ms var(--ease-soft); }
  .paar figure:hover img, .fragen__links figure:hover img { transform: scale(1.015); }
  @supports (animation-timeline: view()) {
    .wortmarke .fit { animation: schwer linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; transform-origin: 50% 50%; }
    .band__rahmen img { animation: treiben linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    .fuss__name .fit { animation: ankommen linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; transform-origin: 50% 100%; }
  }
}
@keyframes zeile-hoch { to { transform: none; } }
@keyframes laden { to { opacity: 1; transform: none; } }
@keyframes oeffnen { to { clip-path: inset(0); } }
@keyframes setzen { to { transform: none; } }
@keyframes schwer { from { transform: scale(1); } to { transform: scale(0.94); } }
@keyframes treiben { from { transform: translateY(-6%); } to { transform: translateY(0); } }
@keyframes ankommen { from { transform: scale(0.94); } to { transform: none; } }
