/* WIRZEIT – wirzeit.com. Gestaltung wie die App („B+C“): Cremeweiß, Sand, Rosé, Salbei, Lavendel, mattes Gold.
   Fraunces (Überschriften), DM Sans (Text), Cormorant Garamond kursiv (Zitate). Schriften selbst gehostet (OFL). */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/fraunces-500.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/fraunces-600.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/dm-sans-400.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/dm-sans-500.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500; font-display: swap; src: url('/fonts/cormorant-500-italic.woff2') format('woff2'); }

:root {
  --bg: #fbf7f1; --paper: #fffdf9; --surface: #ffffff; --sand: #efe4d3; --sand-l: #f6efe5; --line: #e6dccd;
  --ink: #2e2925; --muted: #665a52; --soft: #6e635b;
  --rose: #e9bcb4; --rose-d: #9c5751; --sage: #b4c9b0; --sage-d: #4f7352; --lav: #d3c9ea; --lav-d: #6b5ca0;
  --gold: #866536; --gold-l: #c9a46a;
  --nacht: #1f1b18; --nacht-2: #2a2420; --nacht-ink: #f3ede6; --nacht-muted: #c9bdb0;
  --shadow: 0 18px 50px rgba(80, 60, 40, 0.10), 0 3px 10px rgba(80, 60, 40, 0.06);
  --r: 22px;
  --breite: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1816; --paper: #221e1b; --surface: #26221f; --sand: #3a322b; --sand-l: #2e2925; --line: #3a332d;
    --ink: #f3ede6; --muted: #c2b6a9; --soft: #b3a799;
    --rose: #7a4d48; --rose-d: #e6a59c; --sage: #44593f; --sage-d: #a9cfa2; --lav: #4b4266; --lav-d: #c3b6ee;
    --gold: #e2b56f; --gold-l: #e2b56f;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.40);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
/* zarte Papier-Körnung (wie „Papier & Tiefe“ in der App), rein dekorativ */
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='k'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .37 0 0 0 0 .28 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23k)'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) { body::before { opacity: .25; } }
main, header, footer { position: relative; z-index: 1; }
main { overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rose-d); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--rose-d); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; font-weight: 500; letter-spacing: -0.012em; margin: 0; color: var(--ink); }
h1 { font-size: clamp(2.35rem, 6.4vw, 4.1rem); line-height: 1.04; }
h2 { font-size: clamp(1.75rem, 4.2vw, 2.6rem); line-height: 1.12; }
h3 { font-size: 1.28rem; line-height: 1.25; }
p { margin: 0; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; z-index: 10; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.huelle { width: 100%; max-width: var(--breite); margin: 0 auto; padding: 0 20px; }
.marke-text { font: 500 13px/1 'DM Sans', sans-serif; letter-spacing: .3em; text-transform: uppercase; color: var(--rose-d); }
.etikett { font: 500 12px/1.3 'DM Sans', sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.leise { color: var(--muted); }
.klein { font-size: .9rem; }

/* ---------- Kopf ---------- */
.kopf { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo img { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 2px 8px rgba(80, 60, 40, .18); }
.logo .marke-text { font-size: 14px; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-size: .95rem; padding: 6px 0; }
.nav a:hover { color: var(--ink); }
.nav .nur-breit { display: none; }
@media (min-width: 760px) { .nav .nur-breit { display: inline; } }

/* ---------- Herz-Linie (Motiv des App-Symbols) ---------- */
.herz-linie { width: 220px; max-width: 60%; height: auto; color: var(--gold); display: block; }
.herz-linie .strich { stroke-dasharray: 1; stroke-dashoffset: 1; animation: zeichnen 2.4s .3s ease-out forwards; }
.herz-linie .perle { opacity: 0; animation: perle .6s 2.2s ease-out forwards; }
.herz-linie .perle.spaet { animation-delay: 2.5s; }
@keyframes zeichnen { to { stroke-dashoffset: 0; } }
@keyframes perle { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .herz-linie .strich { animation: none; stroke-dashoffset: 0; }
  .herz-linie .perle { animation: none; opacity: 1; }
}

/* ---------- Bühne (Start) ---------- */
.buehne { padding-top: 18px; padding-bottom: 64px; }
.buehne-raster { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .buehne-raster { grid-template-columns: 1.05fr .95fr; gap: 56px; } .buehne { padding-top: 40px; padding-bottom: 96px; } }
.buehne .etikett { margin-bottom: 18px; }
.buehne h1 .zeile { display: block; }
.buehne h1 .zeile.kursiv { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-weight: 500; color: var(--rose-d); letter-spacing: 0; font-size: 1.08em; line-height: 1; }
.buehne .herz-linie { margin: 18px 0 22px; }
.einleitung { font-size: 1.15rem; line-height: 1.6; color: var(--muted); max-width: 34em; }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; align-items: center; }
.knopf { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 13px 24px; border-radius: 999px; font-weight: 500; text-decoration: none; background: var(--ink); color: var(--bg); border: 1px solid var(--ink); }
.knopf:hover { text-decoration: none; filter: brightness(1.12); }
.knopf.hell { background: transparent; color: var(--ink); border-color: var(--line); }
.knopf.hell:hover { background: var(--surface); }
.status { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 8px 16px 8px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.status .punkt { width: 9px; height: 9px; border-radius: 50%; background: var(--sage-d); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sage-d) 18%, transparent); flex: none; }
.status strong { color: var(--ink); font-weight: 500; }

.buehne-bild { position: relative; min-height: 520px; display: grid; place-items: center; }
.buehne-bild .familie { position: absolute; inset: 6% -6% 18% -6%; border-radius: 28px; overflow: hidden; }
.buehne-bild .familie img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; opacity: .6; filter: saturate(.85) sepia(.12);
  -webkit-mask-image: radial-gradient(ellipse at 50% 42%, #000 35%, transparent 72%); mask-image: radial-gradient(ellipse at 50% 42%, #000 35%, transparent 72%); }
@media (prefers-color-scheme: dark) { .buehne-bild .familie img { opacity: .38; } }
.buehne-bild .telefon { position: relative; width: min(300px, 76vw); }

/* ---------- Telefon-Rahmen ---------- */
.telefon { border-radius: 44px; padding: 10px; background: #1f1b18; box-shadow: var(--shadow), inset 0 0 0 1.5px #3b342e; }
.telefon img { border-radius: 34px; width: 100%; aspect-ratio: 390 / 844; object-fit: cover; background: #f6efe5; }

/* ---------- Abschnitte ---------- */
.abschnitt { padding: 72px 0; }
@media (min-width: 900px) { .abschnitt { padding: 104px 0; } }
.kopfzeile { max-width: 40em; margin-bottom: 40px; }
.kopfzeile .etikett { display: block; margin-bottom: 14px; }
.kopfzeile p { margin-top: 16px; color: var(--muted); font-size: 1.08rem; }

/* ---------- „Erstellt mit WIRZEIT“ (wie die Schlusskarte im Video) ---------- */
.nacht { background: radial-gradient(120% 90% at 20% 0%, var(--nacht-2), var(--nacht)); color: var(--nacht-ink); }
.nacht h2 { color: var(--nacht-ink); }
.nacht p { color: var(--nacht-muted); }
.nacht .etikett { color: #e2b56f; }
.nacht a { color: #e9c58c; }
@media (prefers-color-scheme: dark) { .nacht { border-block: 1px solid var(--line); } }
.video-raster { display: grid; gap: 44px; align-items: center; }
@media (min-width: 900px) { .video-raster { grid-template-columns: 1fr .8fr; gap: 72px; } }
.schlusskarte { text-align: left; margin-bottom: 26px; }
.schlusskarte svg { width: 44px; height: 44px; color: #e2b56f; margin-bottom: 14px; }
.schlusskarte .klein-gross { display: block; font: 500 13px 'DM Sans'; letter-spacing: .32em; text-transform: uppercase; color: #b8ab9d; }
.schlusskarte .wort { display: block; font: 500 clamp(2rem, 5vw, 2.8rem)/1.1 'DM Sans'; letter-spacing: .32em; color: #fbf7f1; margin-top: 6px; }
.video-text h2 { margin-bottom: 18px; }
.video-text p + p { margin-top: 14px; }
.video-text .punkte { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.video-text .punkte li { display: flex; gap: 12px; color: var(--nacht-muted); }
.video-text .punkte svg { flex: none; width: 22px; height: 22px; color: #e2b56f; margin-top: 2px; }
.verwandlung { position: relative; width: min(360px, 82vw); margin: 0 auto; }
.verwandlung .rahmen { position: relative; aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; box-shadow: 0 30px 70px rgba(0, 0, 0, .45); background: #2a2420; }
.verwandlung .rahmen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: morph 15s infinite; }
.verwandlung .rahmen img:nth-child(1) { animation-delay: 0s; }
.verwandlung .rahmen img:nth-child(2) { animation-delay: 3s; }
.verwandlung .rahmen img:nth-child(3) { animation-delay: 6s; }
.verwandlung .rahmen img:nth-child(4) { animation-delay: 9s; }
.verwandlung .rahmen img:nth-child(5) { animation-delay: 12s; }
@keyframes morph { 0% { opacity: 0; } 6% { opacity: 1; } 20% { opacity: 1; } 27% { opacity: 0; } 100% { opacity: 0; } }
.verwandlung .alter { position: absolute; left: 18px; bottom: 16px; font: 500 1.3rem 'Fraunces', serif; color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, .5); }
.verwandlung .alter span { position: absolute; left: 0; bottom: 0; white-space: nowrap; opacity: 0; animation: morph 15s infinite; }
.verwandlung .alter span:nth-child(1) { animation-delay: 0s; } .verwandlung .alter span:nth-child(2) { animation-delay: 3s; }
.verwandlung .alter span:nth-child(3) { animation-delay: 6s; } .verwandlung .alter span:nth-child(4) { animation-delay: 9s; }
.verwandlung .alter span:nth-child(5) { animation-delay: 12s; }
.verwandlung .ecke { position: absolute; right: 16px; bottom: 18px; display: flex; align-items: center; gap: 6px; font: 500 11px 'DM Sans'; letter-spacing: .24em; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.verwandlung .ecke svg { width: 14px; height: 14px; color: #e2b56f; }
.verwandlung figcaption { margin-top: 14px; font-size: .85rem; color: #b8ab9d; text-align: center; }
@media (prefers-reduced-motion: reduce) {
  .verwandlung .rahmen img, .verwandlung .alter span { animation: none; }
  .verwandlung .rahmen img:nth-child(3), .verwandlung .alter span:nth-child(3) { opacity: 1; }
}

/* ---------- Funktionen ---------- */
.karten { display: grid; gap: 18px; }
@media (min-width: 680px) { .karten { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .karten { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.karte { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 24px 24px; box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 8px 28px rgba(80, 60, 40, .06); }
.karte .symbol { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--sand-l); color: var(--rose-d); margin-bottom: 18px; }
.karte .symbol svg { width: 24px; height: 24px; }
.karte.salbei .symbol { color: var(--sage-d); } .karte.lavendel .symbol { color: var(--lav-d); } .karte.gold .symbol { color: var(--gold); }
.karte h3 { margin-bottom: 8px; }
.karte p { color: var(--muted); }
.karte .beispiel { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-size: 1.22rem; line-height: 1.35; color: var(--ink); }
.karte .beispiel small { display: block; margin-top: 4px; font: 400 .82rem 'DM Sans', sans-serif; font-style: normal; color: var(--soft); }
.karte.breit > div + div { margin-top: 22px; }
@media (min-width: 1000px) { .karte.breit > div + div { margin-top: 0; } }
.karte.breit { background: linear-gradient(150deg, var(--paper), color-mix(in srgb, var(--rose) 22%, var(--paper))); }
@media (min-width: 1000px) { .karte.breit { grid-column: span 3; display: grid; grid-template-columns: 1fr 1.3fr; gap: 36px; align-items: center; } }
.zahl { font: 500 clamp(2.4rem, 6vw, 3.4rem)/1 'Fraunces', serif; color: var(--rose-d); }
.zahl-text { margin-top: 10px; color: var(--ink); font-size: 1.05rem; }

/* ---------- Galerie der Bildschirme ---------- */
.galerie { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 20px 26px; margin: 0 -20px; scrollbar-width: thin; }
.galerie figure { margin: 0; flex: 0 0 min(250px, 68vw); scroll-snap-align: center; }
.galerie figcaption { margin-top: 14px; text-align: center; font-size: .93rem; color: var(--muted); }
.galerie figcaption strong { display: block; color: var(--ink); font-weight: 500; }
@media (min-width: 1100px) { .galerie { justify-content: center; overflow: visible; } }
.hinweis-demo { margin-top: 6px; font-size: .85rem; color: var(--soft); text-align: center; }

/* ---------- Erinnerungsstücke ---------- */
.stuecke-raster { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .stuecke-raster { grid-template-columns: 1fr 1fr; gap: 64px; } }
.stuecke-bilder { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; align-items: end; }
.stuecke-bilder figure { margin: 0; background: linear-gradient(160deg, #f4efe7, #e8e0d4); border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }
.stuecke-bilder figure img { width: 100%; }
.stuecke-text .liste { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.stuecke-text .liste li { padding-left: 22px; position: relative; color: var(--muted); }
.stuecke-text .liste li::before { content: ''; position: absolute; left: 4px; top: .7em; width: 7px; height: 7px; transform: rotate(45deg); background: var(--gold-l); }

/* ---------- Werbefrei / lokal ---------- */
.ruhe { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--sage) 22%, transparent) 30%, color-mix(in srgb, var(--sage) 22%, transparent) 70%, transparent); }
.ruhe-raster { display: grid; gap: 18px; }
@media (min-width: 760px) { .ruhe-raster { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .ruhe-raster { grid-template-columns: repeat(4, 1fr); } }
.ruhe-punkt { padding: 22px 20px; border-radius: 18px; background: color-mix(in srgb, var(--paper) 86%, transparent); border: 1px solid var(--line); }
.ruhe-punkt svg { width: 26px; height: 26px; color: var(--sage-d); margin-bottom: 12px; }
.ruhe-punkt h3 { font-size: 1.1rem; margin-bottom: 6px; }
.ruhe-punkt p { color: var(--muted); font-size: .97rem; }

/* ---------- Entstehung ---------- */
.zitat-block { max-width: 760px; margin: 0 auto; text-align: center; }
.zitat-block .etikett { display: block; margin-bottom: 22px; }
.zitat-block blockquote { margin: 0; font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-weight: 500; font-size: clamp(1.55rem, 3.6vw, 2.15rem); line-height: 1.32; color: var(--ink); }
.zitat-block blockquote p + p { margin-top: 18px; }
.zitat-block .von { margin-top: 24px; color: var(--muted); }
.zitat-block .von strong { color: var(--ink); font-weight: 500; }
.zitat-block .herz-linie { margin: 0 auto 26px; width: 180px; }
.zitat-block .nachsatz { margin-top: 28px; color: var(--muted); font-size: 1rem; }

/* ---------- Testphase ---------- */
.bald { border-radius: 28px; padding: 40px 26px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); text-align: center; position: relative; overflow: hidden; }
@media (min-width: 760px) { .bald { padding: 56px 48px; } }
.bald img.symbol-gross { width: 88px; height: 88px; border-radius: 22px; margin: 0 auto 22px; box-shadow: 0 10px 30px rgba(156, 87, 81, .25); }
.bald p { color: var(--muted); max-width: 36em; margin: 14px auto 0; }

/* ---------- Fuß ---------- */
.fuss { border-top: 1px solid var(--line); padding: 36px 0 44px; margin-top: 40px; font-size: .93rem; color: var(--muted); }
.fuss-raster { display: flex; flex-wrap: wrap; gap: 18px 32px; justify-content: space-between; align-items: center; }
.fuss nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.fuss a { color: var(--muted); }
.fuss a:hover { color: var(--ink); }

/* ---------- Textseiten (Datenschutz, Impressum) ---------- */
.textseite { padding-top: 24px; padding-bottom: 40px; }
.textseite .inhalt { max-width: 760px; }
.textseite h1 { font-size: clamp(2.1rem, 5vw, 3rem); margin-bottom: 10px; }
.textseite .stand { color: var(--muted); margin-bottom: 30px; }
.textseite h2 { font-size: 1.55rem; margin: 46px 0 14px; padding-top: 6px; }
.textseite h3 { font-size: 1.15rem; margin: 28px 0 8px; }
.textseite p, .textseite li { color: var(--ink); }
.textseite p + p { margin-top: 12px; }
.textseite ul { padding-left: 1.2em; margin: 10px 0; }
.textseite li + li { margin-top: 6px; }
.textseite address { font-style: normal; }
.kurz { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px; margin: 6px 0 10px; }
.kurz h2 { margin: 0 0 10px; font-size: 1.25rem; }
.kurz ul { margin: 0; }
.inhaltsverzeichnis { columns: 2 220px; margin: 18px 0 0; padding: 0; list-style: none; font-size: .95rem; }
.inhaltsverzeichnis li { margin: 0 0 6px; break-inside: avoid; }
.platzhalter { background: #fff3c4; color: #5a3d00; border: 1px dashed #b07d00; padding: 1px 6px; border-radius: 6px; font-weight: 500; }
.leer-seite { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-top: 60px; padding-bottom: 60px; }
.leer-seite .herz-linie { margin: 22px auto 0; }
