@font-face { font-family: "Caveat Brush"; src: url("schrift/CaveatBrush-Regular.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Nunito"; src: url("schrift/Nunito.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }

:root {
  --papier: #faf6ee;
  --karte: #fffdf8;
  --tinte: #282d46;
  --klecks: #3b4e8c;
  --leise: #565b73;
  --rand: #e9e1d0;
  --nacht: #1f3763;
  --kante: 24px;
  --rahmen: min(1200px, 100% - clamp(40px, 10vw, 160px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--papier); color: var(--tinte);
  font: 18px/1.65 "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--klecks); }
h1, h2, h3 { font-family: "Caveat Brush", "Nunito", system-ui, sans-serif; font-weight: normal; line-height: 1.08; text-wrap: balance; margin: 0; }
p { margin: 0; }

.rahmen { width: var(--rahmen); margin-inline: auto; }
.sprung { position: absolute; left: 12px; top: -60px; background: var(--tinte); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 10; }
.sprung:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--klecks); outline-offset: 3px; }
.held :focus-visible, .schluss :focus-visible, .fuss :focus-visible { outline-color: #ffd37a; }

/* Knöpfe: ein Paar, hell auf Nacht, dunkel auf Papier */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px;
  background: var(--klecks); color: #fff; text-decoration: none; font-weight: 800; font-size: 1.05rem;
  border-radius: 999px; border: 2px solid var(--klecks);
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.knopf:hover { transform: translateY(-2px); background: #34447a; box-shadow: 0 8px 20px rgba(40,45,70,.25); }
.knopf:active { transform: translateY(1px); box-shadow: none; }
.knopf.klein { align-self: flex-start; margin-top: 8px; min-height: 48px; }
.knopf.zweit { background: rgba(255,253,248,.92); color: var(--tinte); border-color: rgba(255,253,248,.92); }
.knopf.zweit:hover { background: #fff; }

/* Held: eine Nacht auf der Scholle, allein auf dem ersten Bildschirm */
.held { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-start; align-items: center; color: #fff; overflow: hidden; background: var(--nacht); text-align: center; padding: 3vh 0 8vh; isolation: isolate; }
.held > picture, .held > picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; z-index: -1; }
.held-text { width: min(860px, 100% - 48px); margin-top: 5vh; }
.leiste { width: var(--rahmen); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.marke { display: inline-flex; align-items: center; gap: 12px; font-family: "Caveat Brush", sans-serif; font-size: 1.8rem; color: #fff; text-decoration: none; min-height: 44px; }
.marke img { width: 44px; height: 44px; border-radius: 50%; border: 3px solid rgba(255,253,248,.9); }
.leiste ul { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; }
.leiste ul a { white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; color: #fff; text-decoration: none; font-weight: 700; border-radius: 999px; background: linear-gradient(currentColor, currentColor) 14px calc(100% - 9px) / 0 2px no-repeat; transition: background-size .3s ease; }
.leiste ul a:hover, .leiste ul a:focus-visible { background-size: calc(100% - 28px) 2px; }
.held h1 { font-size: clamp(2.5rem, 6.2vw, 5rem); text-shadow: 0 2px 18px rgba(14,24,50,.55); }
.vorsatz { display: inline-block; margin: 18px auto 0; max-width: 60ch; padding: 8px 20px; background: var(--nacht); border-radius: 999px; font-size: clamp(1rem, 1.6vw, 1.2rem); }
.held-aktion { margin-top: auto; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* Abschnitte: je ein Bildschirm, gleiche Ränder */
.abschnitt { padding: clamp(56px, 9vh, 96px) 0; min-height: 100svh; display: flex; align-items: center; }
.abschnitt > .rahmen { width: var(--rahmen); }
.abschnitt h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); text-align: left; margin-bottom: clamp(28px, 5vh, 48px); }

.karten { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.karte { background: var(--karte); border: 1px solid var(--rand); border-radius: var(--kante); overflow: hidden; box-shadow: 0 6px 24px rgba(40,45,70,.08); transition: transform .2s ease, box-shadow .2s ease; display: flex; flex-direction: column; }
.karte:not(.bald):hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(40,45,70,.14); }
.bildlink { display: block; overflow: hidden; aspect-ratio: 16 / 9; background: var(--rand); }
.bildlink img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.karte:not(.bald):hover .bildlink img { transform: scale(1.03); }
.karte-text { padding: 24px 28px 30px; display: flex; flex-direction: column; gap: 10px; }
.karte h3 { font-size: 2rem; }
.karte h3 a { color: var(--tinte); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 3px no-repeat; transition: background-size .3s ease; }
.karte h3 a:hover, .karte h3 a:focus-visible { background-size: 100% 3px; }
.karte p { color: var(--tinte); }
.stand { font-size: .88rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--leise); }
.stand.jetzt { color: var(--klecks); }
.bald .bildlink img { filter: saturate(.85); }

.zwei { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.bildspalte img { width: 100%; max-width: 440px; margin-inline: auto; }
.eltern .bildspalte img { mix-blend-mode: multiply; }
.eltern { background: #f3ecdd; }
.eltern .zwei { grid-template-columns: .8fr 1.4fr; align-items: start; }
.zeilen { list-style: none; margin: 0; padding: 0; }
.zeilen li { display: grid; grid-template-columns: 72px 1fr; gap: 20px; align-items: center; padding: 22px 0; border-top: 1px solid #d9cfba; }
.zeilen li:last-child { border-bottom: 1px solid #d9cfba; }
.zeilen img { width: 72px; height: 72px; object-fit: contain; mix-blend-mode: multiply; transition: transform .25s ease; }
.zeilen li:hover img { transform: scale(1.06); }
.zeilen h3 { font-size: 1.8rem; margin-bottom: 4px; }
.zeilen p { color: var(--tinte); }

.schluss { background: var(--nacht); color: #fff; }
.schluss .textspalte { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.schluss h2 { margin: 0; font-size: clamp(3rem, 7vw, 6rem); }
.schluss p { max-width: 36ch; font-size: 1.3rem; margin-bottom: 12px; }
.schluss .schlaf { width: min(440px, 80%); justify-self: center; aspect-ratio: 1; object-fit: contain; padding: 26px; background: var(--papier); border-radius: 50%; border: 6px solid rgba(255,253,248,.9); }

.fuss { background: var(--nacht); color: #dfe5f5; border-top: 1px solid rgba(255,255,255,.14); padding: 22px 0 26px; font-size: .95rem; }
.fuss .rahmen { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; }
.fuss a { color: #dfe5f5; margin-right: 6px; padding: 0 6px; display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 4px; }
.fuss a:hover { color: #fff; }

/* Einmaliger Auftritt beim Laden, sonst bewegt sich nichts durchs Scrollen */
@keyframes auf { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.held-text > *, .held-aktion { animation: auf .45s ease both; }
.held-text > :nth-child(2) { animation-delay: .05s; }
.held-text > :nth-child(3) { animation-delay: .1s; }
.held-aktion { animation-delay: .2s; }
@keyframes atmen { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.schluss .schlaf { animation: atmen 5s ease-in-out infinite; }

@media (max-width: 900px) {
  .zwei, .eltern .zwei { grid-template-columns: 1fr; }
  .bildspalte img { max-width: 260px; margin-inline: 0; }
  .karten { grid-template-columns: 1fr; }
  .abschnitt { min-height: 0; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .leiste ul li:first-child { display: none; }
  .leiste ul li:nth-child(2) { display: none; }
  .leiste ul a { padding: 0 10px; }
  .leiste ul { gap: 2px; }
  .held-aktion { flex-direction: column; width: min(100% - 48px, 420px); }
  .knopf { width: 100%; }
  .karte-text { padding: 20px 20px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Marke im Kopf und Klecks-wird-Tier */
.wortmarke { display: block; width: min(420px, 78%); height: auto; margin: 0 auto 14px; }
.werden-reihe { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: clamp(16px, 4vw, 48px); align-items: center; }
.werden-reihe p { font-size: 1.3rem; max-width: 30ch; margin: 0; }
.werden-reihe img { width: 100%; height: auto; }
.schluss { padding-block: clamp(40px, 7vw, 80px); }
@media (max-width: 900px) { .werden-reihe { grid-template-columns: 1fr 1fr; } .werden-reihe p { grid-column: 1 / -1; max-width: none; } }
@media (max-width: 560px) { .werden-reihe { grid-template-columns: 1fr; } .werden-reihe img { max-width: 320px; margin-inline: auto; } }
.werden, .schluss { min-height: 0; }

/* Impressum und Datenschutz */
.kopf-schlicht { background: var(--nacht); color: #fff; padding: 12px 0; display: flex; justify-content: center; }
.recht { width: min(760px, 100% - clamp(40px, 10vw, 160px)); margin: clamp(40px, 8vh, 88px) auto; }
.recht h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); text-align: left; margin-bottom: 28px; }
.recht h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); text-align: left; margin: 36px 0 10px; }
.recht p { max-width: 68ch; margin: 0 0 14px; }
.recht a { color: var(--klecks); text-underline-offset: 3px; }
.recht a:hover { text-decoration-thickness: 2px; }
.stand-text { color: var(--leise); font-size: .95rem; margin-top: 32px; }
.fuss a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
