/* meinenadja.de – Stylesheet */

@font-face { font-family: "Cormorant"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/cormorant-garamond-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/cormorant-garamond-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant"; font-style: italic; font-weight: 500; font-display: swap; src: url(fonts/cormorant-garamond-latin-500-italic.woff2) format("woff2"); }
@font-face { font-family: "Cormorant"; font-style: italic; font-weight: 600; font-display: swap; src: url(fonts/cormorant-garamond-latin-600-italic.woff2) format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/dm-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/dm-sans-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/dm-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/caveat-latin-600-normal.woff2) format("woff2"); }

:root {
  --paper: #FBF5EE;
  --paper-2: #F5EBE0;
  --card: #FFFDFA;
  --ink: #2E1A24;
  --ink-soft: #5A4450;
  --muted: #8A7580;
  --line: rgba(46, 26, 36, .12);
  --rose: #C4506A;
  --rose-deep: #A33A55;
  --rose-soft: #F4DCE0;
  --gold: #B8904A;
  --gold-soft: #E9D6AE;
  --night: #1B1D3A;
  --dusk: #4A3E78;
  --serif: "Cormorant", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hand: "Caveat", "Segoe Script", cursive;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(46, 26, 36, .06), 0 12px 32px -12px rgba(46, 26, 36, .22);
  --shadow-lg: 0 2px 4px rgba(46, 26, 36, .06), 0 30px 60px -20px rgba(46, 26, 36, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(196, 80, 106, .08), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(184, 144, 74, .08), transparent 60%),
    var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; line-height: 1.02; margin: 0; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow {
  font: 600 12px/1 var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--rose);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 26px;
  border: 0; border-radius: 999px;
  font: 600 15px/1 var(--sans); letter-spacing: .02em;
  text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.btn-primary { background: var(--rose); color: #fff; box-shadow: 0 10px 24px -10px rgba(196, 80, 106, .7); }
.btn-primary:hover { background: var(--rose-deep); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink-soft); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ------------------------------------------------ Einblend-Animation */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
html.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ------------------------------------------------ Topbar */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter);
  padding-top: max(14px, env(safe-area-inset-top));
  background: rgba(251, 245, 238, .78);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.topbar.is-scrolled { border-bottom-color: var(--line); }
.monogram { font: italic 500 26px/1 var(--serif); text-decoration: none; letter-spacing: .02em; }
.monogram span { color: var(--rose); margin: 0 .08em; }
.topbar nav { display: flex; gap: 6px; }
.topbar nav a {
  font: 500 14px/1 var(--sans); text-decoration: none; color: var(--ink-soft);
  padding: 10px 14px; border-radius: 999px; transition: background .2s, color .2s;
}
.topbar nav a:hover { background: rgba(46, 26, 36, .06); color: var(--ink); }

/* ------------------------------------------------ Login */
.page-login {
  background:
    radial-gradient(900px 600px at 50% 110%, rgba(196, 80, 106, .22), transparent 65%),
    radial-gradient(700px 500px at 10% -10%, rgba(184, 144, 74, .16), transparent 60%),
    var(--paper);
}
.login { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 24px 16px; position: relative; z-index: 1; }
.login-card {
  width: 100%; max-width: 420px; text-align: center;
  padding: clamp(32px, 7vw, 52px) clamp(22px, 6vw, 44px);
  background: rgba(255, 253, 250, .72);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  animation: rise 1.1s var(--ease) both;
}
.login-heart { width: 44px; height: 44px; margin: 0 auto 18px; fill: var(--rose); animation: beat 2.4s ease-in-out infinite; }
.login-card h1 { font-size: clamp(48px, 13vw, 68px); font-style: italic; margin: 12px 0 10px; }
.login-card .lead { color: var(--ink-soft); font-size: 16px; margin-bottom: 28px; }
.login-form { display: flex; flex-direction: column; gap: 12px; }
.login-form input {
  height: 54px; width: 100%;
  border: 1.5px solid var(--line); border-radius: 14px;
  background: #fff; padding: 0 18px;
  font: 500 17px var(--sans); color: var(--ink); text-align: center; letter-spacing: .06em;
  transition: border-color .2s, box-shadow .2s;
}
.login-form input:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 4px rgba(196, 80, 106, .14); }
.login-form .btn { height: 54px; font-size: 16px; }
.login-error { margin-top: 16px; color: var(--rose-deep); font-weight: 500; font-size: 15px; animation: shake .4s; }
.login-hint { margin-top: 22px; color: var(--muted); font-size: 14px; }
.login-hint span { font: 600 18px var(--hand); color: var(--rose); margin-right: 4px; }

.petals { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.petals span {
  position: absolute; top: -40px;
  left: calc(var(--i) * 7.3% + 2%);
  width: 14px; height: 14px;
  background: radial-gradient(circle at 30% 30%, #f7c9d1, #e58fa0);
  border-radius: 14px 0 14px 0;
  opacity: .55;
  animation: fall calc(11s + var(--i) * .9s) linear infinite;
  animation-delay: calc(var(--i) * -1.7s);
}
.petals span:nth-child(3n) { width: 10px; height: 10px; opacity: .4; }
.petals span:nth-child(4n) { background: radial-gradient(circle at 30% 30%, #f3e2bd, #d8b56f); }
@keyframes fall {
  0% { transform: translate3d(0, -5vh, 0) rotate(0); }
  50% { transform: translate3d(40px, 50vh, 0) rotate(180deg); }
  100% { transform: translate3d(-20px, 110vh, 0) rotate(360deg); }
}
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes beat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.12); } 24% { transform: scale(1); } 36% { transform: scale(1.08); } }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { .petals, .login-heart { animation: none; } .petals { display: none; } }

/* ------------------------------------------------ Hero */
.hero {
  min-height: calc(100svh - 70px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 40px var(--gutter) 60px;
}
.hero h1 { font-size: clamp(64px, 16vw, 168px); margin: 20px 0 8px; }
.hero h1 em { color: var(--rose); font-weight: 500; }
.counter { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 18px 0 26px; }
.counter-num { font: 600 clamp(40px, 8vw, 64px)/1 var(--serif); color: var(--gold); font-variant-numeric: lining-nums tabular-nums; }
.counter-label { font-size: 14px; color: var(--muted); letter-spacing: .04em; }
.hero-text { max-width: 560px; font: italic 500 clamp(20px, 3vw, 24px)/1.45 var(--serif); color: var(--ink-soft); }
.scroll-hint {
  margin-top: 42px; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--line);
  transition: box-shadow .2s;
}
.scroll-hint svg { width: 20px; height: 20px; fill: none; stroke: var(--ink-soft); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; animation: nudge 2.2s ease-in-out infinite; }
.scroll-hint:hover { box-shadow: inset 0 0 0 1.5px var(--rose); }
@keyframes nudge { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }

/* ------------------------------------------------ Kapitel-Karten */
.chapters {
  display: grid; gap: clamp(14px, 2vw, 24px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1240px; margin: 0 auto; padding: 20px var(--gutter) 40px;
  scroll-margin-top: 80px;
}
.chapter-card {
  position: relative; overflow: hidden; isolation: isolate;
  aspect-ratio: 3 / 4.1; border-radius: 24px;
  text-decoration: none; color: #fff;
  box-shadow: var(--shadow);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), opacity .9s var(--ease);
}
.chapter-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.chapter-card:focus-visible { outline: 3px solid var(--rose); outline-offset: 4px; }
.chapter-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.chapter-card:hover .chapter-img { transform: scale(1.05); }
.chapter-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 10, 16, .05) 30%, rgba(20, 10, 16, .72) 100%); }
.chapter-art { position: absolute; inset: 0; z-index: -2; }
.chapter-art + .chapter-shade { background: linear-gradient(180deg, transparent 45%, rgba(20, 10, 16, .38) 100%); }
.chapter-vergangenheit .chapter-art {
  background:
    radial-gradient(circle at 70% 25%, rgba(255, 236, 205, .55), transparent 40%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 9px),
    linear-gradient(160deg, #D8B48A, #9C6A4E 60%, #6E4536);
}
.chapter-gegenwart .chapter-art {
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 220, 226, .7), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(255, 196, 150, .45), transparent 45%),
    linear-gradient(160deg, #EBA3AE, #C4506A 65%, #8E3149);
}
.chapter-zukunft .chapter-art {
  background:
    radial-gradient(1.5px 1.5px at 20% 20%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 60% 12%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 80% 30%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 35% 38%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 48%, rgba(255,255,255,.8) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 12% 55%, rgba(255,255,255,.7) 50%, transparent 51%),
    radial-gradient(120% 60% at 50% 105%, #F2B38E, rgba(242, 179, 142, 0) 60%),
    linear-gradient(180deg, #1B1D3A, #3C3468 55%, #7B5A8C);
}
.chapter-body { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(20px, 2.4vw, 30px); display: flex; flex-direction: column; }
.chapter-num { font: italic 500 22px/1 var(--serif); opacity: .85; margin-bottom: 10px; }
.chapter-title { font: 500 clamp(34px, 3.6vw, 46px)/1 var(--serif); }
.chapter-kicker { font: italic 500 20px/1.3 var(--serif); opacity: .9; margin-top: 6px; }
.chapter-meta { margin-top: 16px; font: 500 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.chapter-arrow {
  position: absolute; top: 18px; right: 18px; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .18); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background .3s, transform .4s var(--ease);
}
.chapter-arrow svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chapter-card:hover .chapter-arrow { background: var(--rose); transform: rotate(-45deg); }

@media (max-width: 860px) {
  .chapters { grid-template-columns: 1fr; max-width: 520px; }
  .chapter-card { aspect-ratio: 16 / 11; }
}

/* ------------------------------------------------ Geschenk / Rubbellos */
.gift { text-align: center; padding: clamp(60px, 10vw, 120px) var(--gutter) clamp(50px, 8vw, 90px); }
.gift h2 { font-size: clamp(40px, 7vw, 64px); margin: 16px 0 10px; }
.gift h2 + .gift-lead { color: var(--muted); margin-bottom: 34px; }

.scratch {
  position: relative; margin: 0 auto; max-width: 580px;
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
}
.voucher {
  position: relative; display: flex;
  min-height: 330px;
  background:
    radial-gradient(circle at 100% 0, rgba(233, 214, 174, .55), transparent 40%),
    radial-gradient(circle at 0 100%, rgba(244, 220, 224, .8), transparent 45%),
    var(--card);
  border-radius: 22px; overflow: hidden;
  color: var(--ink);
}
.voucher::before {
  content: ""; position: absolute; inset: 12px; border-radius: 14px;
  border: 1.5px solid var(--gold-soft); pointer-events: none;
}
.voucher-edge {
  position: absolute; left: -15px; top: 50%; width: 30px; height: 30px; margin-top: -15px;
  border-radius: 50%; background: var(--paper); z-index: 1;
  box-shadow: inset -4px 0 6px -4px rgba(46, 26, 36, .18);
}
.voucher-edge.right { left: auto; right: -15px; box-shadow: inset 4px 0 6px -4px rgba(46, 26, 36, .18); }
.voucher-inner { flex: 1; padding: clamp(34px, 6vw, 46px) clamp(30px, 6vw, 52px); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.voucher-label { font: 600 12px/1 var(--sans); letter-spacing: .4em; text-transform: uppercase; color: var(--gold); padding-left: .4em; }
.voucher-title { font: italic 500 clamp(46px, 10vw, 68px)/1 var(--serif); color: var(--rose); margin: 14px 0 8px; }
.voucher-amount { font: 500 18px/1.3 var(--serif); color: var(--ink-soft); }
.voucher-amount strong { display: block; font: 600 clamp(40px, 8vw, 54px)/1.05 var(--serif); font-variant-numeric: lining-nums; color: var(--ink); margin-top: 4px; }
.voucher-text { max-width: 400px; margin-top: 16px; color: var(--ink-soft); font-size: 15px; }
.voucher-foot { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 6px 18px; margin-top: 22px; font-size: 13px; color: var(--muted); }
.voucher-sign { font: 600 24px/1 var(--hand); color: var(--rose); }

.scratch-canvas, .confetti { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 22px; }
.scratch-canvas { touch-action: none; cursor: grab; transition: opacity .9s var(--ease); }
.scratch-canvas:active { cursor: grabbing; }
.scratch.is-done .scratch-canvas { opacity: 0; pointer-events: none; }
.confetti { pointer-events: none; border-radius: 0; inset: -80px; width: calc(100% + 160px); height: calc(100% + 160px); }
.scratch::after {
  content: ""; position: absolute; inset: 0; border-radius: 22px; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .5) 50%, transparent 62%) no-repeat;
  background-size: 260% 100%;
  animation: shimmer 3.4s ease-in-out 1s infinite;
  mix-blend-mode: soft-light;
}
.scratch.is-started::after { display: none; }
@keyframes shimmer { 0% { background-position: 130% 0; } 60%, 100% { background-position: -30% 0; } }
.scratch.is-done { animation: pop .7s var(--ease); }
@keyframes pop { 40% { transform: scale(1.025); } }
.scratch-reset {
  margin-top: 22px; background: none; border: 0; color: var(--muted); font-size: 14px;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.scratch-reset:hover { color: var(--ink); }

.footer { text-align: center; padding: 30px 16px calc(40px + env(safe-area-inset-bottom)); color: var(--muted); font-size: 13px; letter-spacing: .04em; }

/* ------------------------------------------------ Kapitel-Seite */
.chapter { max-width: 1180px; margin: 0 auto; padding: 18px var(--gutter) 60px; }
.back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; text-decoration: none; color: var(--ink-soft);
  padding: 8px 14px 8px 10px; margin-left: -10px; border-radius: 999px; transition: background .2s;
}
.back:hover { background: rgba(46, 26, 36, .06); }
.back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chapter-head { text-align: center; padding: clamp(24px, 6vw, 60px) 0 clamp(30px, 6vw, 56px); }
.chapter-head-num { font: italic 500 26px/1 var(--serif); color: var(--rose); }
.chapter-head h1 { font-size: clamp(56px, 12vw, 120px); margin: 12px 0 6px; }
.chapter-head-kicker { font: italic 500 clamp(22px, 3vw, 28px)/1.3 var(--serif); color: var(--ink-soft); }
.chapter-head-intro { max-width: 580px; margin: 20px auto 0; color: var(--muted); }

.feature-video { margin: 0 auto clamp(30px, 5vw, 56px); max-width: 1000px; }
.feature-video video { width: 100%; border-radius: 20px; background: #000; box-shadow: var(--shadow-lg); aspect-ratio: 16 / 9; }
.feature-video figcaption { text-align: center; margin-top: 12px; font: italic 500 19px var(--serif); color: var(--ink-soft); }

.gallery { columns: 3 260px; column-gap: clamp(10px, 1.6vw, 18px); }
.tile {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  margin: 0 0 clamp(10px, 1.6vw, 18px); break-inside: avoid;
  border-radius: 14px; overflow: hidden; background: var(--paper-2);
  box-shadow: 0 1px 2px rgba(46, 26, 36, .06);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), opacity .9s var(--ease);
}
.tile:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.tile:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile.is-video { cursor: pointer; }
.play {
  position: absolute; left: 50%; top: 50%; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, .88); box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  transition: transform .3s var(--ease);
}
.play svg { width: 26px; height: 26px; fill: var(--rose); margin-left: 3px; }
.tile:hover .play { transform: scale(1.08); }
.tile-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; text-align: left;
  background: linear-gradient(transparent, rgba(20, 10, 16, .65)); color: #fff;
  font: italic 500 17px/1.25 var(--serif);
}
@media (max-width: 600px) { .gallery { columns: 2; } .tile-cap { font-size: 15px; padding: 24px 10px 8px; } }

.empty { text-align: center; padding: 40px 0 20px; color: var(--muted); }
.empty svg { width: 54px; height: 54px; margin: 0 auto 14px; fill: var(--rose-soft); }
.empty p { font: italic 500 22px var(--serif); margin-bottom: 20px; }

.chapter-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: clamp(40px, 7vw, 80px); padding-top: 28px; border-top: 1px solid var(--line); }
.chapter-nav-link { display: flex; flex-direction: column; gap: 4px; text-decoration: none; font: italic 500 26px/1.1 var(--serif); transition: color .2s; }
.chapter-nav-link span { font: 600 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-style: normal; }
.chapter-nav-link.next { text-align: right; align-items: flex-end; }
.chapter-nav-link:hover { color: var(--rose); }

/* Kapitel-Themen */
.chapter-theme-vergangenheit {
  background:
    radial-gradient(900px 500px at 90% -5%, rgba(184, 144, 74, .16), transparent 60%),
    radial-gradient(700px 500px at 0 40%, rgba(156, 106, 78, .08), transparent 60%),
    #F8F0E5;
}
.chapter-theme-vergangenheit .topbar { background: rgba(248, 240, 229, .8); }
.chapter-theme-vergangenheit .tile img { filter: sepia(.08) saturate(.95); }

.chapter-theme-zukunft {
  --ink: #F6EEE8; --ink-soft: #D9CCD8; --muted: #A99DB9; --line: rgba(255, 255, 255, .14); --paper-2: #2A2A52;
  background:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.8) 50%, transparent 51%) 0 0 / 340px 340px,
    radial-gradient(1.4px 1.4px at 68% 42%, rgba(255,255,255,.7) 50%, transparent 51%) 0 0 / 420px 420px,
    radial-gradient(1px 1px at 38% 76%, rgba(255,255,255,.6) 50%, transparent 51%) 0 0 / 280px 280px,
    radial-gradient(1400px 700px at 50% 120%, rgba(242, 179, 142, .35), transparent 60%),
    linear-gradient(180deg, #16182F, #262650 50%, #3A3066);
  background-attachment: fixed;
  color: var(--ink);
}
.chapter-theme-zukunft .topbar { background: rgba(22, 24, 47, .7); }
.chapter-theme-zukunft .topbar nav a:hover, .chapter-theme-zukunft .back:hover { background: rgba(255, 255, 255, .08); }
.chapter-theme-zukunft .chapter-head-num, .chapter-theme-zukunft .monogram span { color: #F2B38E; }
.chapter-theme-zukunft .chapter-nav-link:hover { color: #F2B38E; }
.chapter-theme-zukunft .feature-video video { box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08); }

/* ------------------------------------------------ Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: grid; grid-template-rows: 1fr auto auto; place-items: center;
  background: rgba(18, 10, 15, .96);
  padding: max(56px, env(safe-area-inset-top)) 12px max(18px, env(safe-area-inset-bottom));
  animation: fade .3s ease;
  touch-action: pan-y;
}
.lightbox[hidden] { display: none; }
.lb-stage { width: 100%; height: 100%; display: grid; place-items: center; min-height: 0; }
.lb-stage img, .lb-stage video { max-width: min(96vw, 1600px); max-height: calc(100svh - 150px); width: auto; height: auto; border-radius: 6px; object-fit: contain; animation: fade .35s ease; }
.lb-caption { color: #F3E7EA; font: italic 500 21px/1.3 var(--serif); text-align: center; padding: 14px 16px 2px; min-height: 1em; max-width: 720px; }
.lb-count { color: rgba(255, 255, 255, .45); font-size: 12px; letter-spacing: .14em; padding-top: 4px; }
.lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, .08); border-radius: 50%; width: 48px; height: 48px; display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.lightbox button:hover { background: rgba(255, 255, 255, .18); }
.lightbox button svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lb-close { top: max(10px, env(safe-area-inset-top)); right: 12px; }
.lb-prev { left: 12px; top: 50%; margin-top: -24px; }
.lb-next { right: 12px; top: 50%; margin-top: -24px; }
@media (max-width: 700px) { .lb-prev, .lb-next { top: auto; bottom: max(14px, env(safe-area-inset-bottom)); margin: 0; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
body.no-scroll { overflow: hidden; }

/* ------------------------------------------------ Einrichtung & Admin */
.install { min-height: 100vh; display: grid; place-items: center; padding: 30px 16px; }
.install-card, .admin-card {
  width: 100%; max-width: 640px; background: var(--card); border-radius: 22px; box-shadow: var(--shadow);
  padding: clamp(24px, 5vw, 44px);
}
.install-card h1 { font-size: clamp(40px, 8vw, 56px); margin: 10px 0 8px; }
.lead { color: var(--ink-soft); }
.checks { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 4px; font-size: 14px; }
.checks .ok { color: #3C7A4E; }
.checks .bad { color: var(--rose-deep); font-weight: 600; }
.alert { background: #FBE7EA; color: var(--rose-deep); border-radius: 12px; padding: 12px 16px; margin: 12px 0; font-size: 14px; }
.notice { background: #E8F3EA; color: #2F6B40; border-radius: 12px; padding: 12px 16px; margin: 12px 0; font-size: 14px; }
.form { display: grid; gap: 16px; margin-top: 18px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.form input, .form textarea, .form select {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  background: #fff; font: 400 16px var(--sans); color: var(--ink);
}
.form textarea { min-height: 90px; resize: vertical; line-height: 1.5; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 4px rgba(196, 80, 106, .12); }
.form fieldset { border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px 18px; margin: 0; display: grid; gap: 12px; }
.form legend { font: 600 15px var(--sans); padding: 0 6px; color: var(--ink); }
.help { font-size: 13px; color: var(--muted); margin-top: -4px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }

.admin { max-width: 1100px; margin: 0 auto; padding: 20px var(--gutter) 80px; }
.admin h1 { font-size: clamp(40px, 7vw, 60px); margin: 16px 0 6px; }
.admin h2 { font-size: 32px; margin-bottom: 4px; }
.admin-login { min-height: 80vh; display: grid; place-items: center; }
.admin-login .admin-card { max-width: 420px; text-align: center; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 26px 0 18px; }
.tab {
  border: 0; background: rgba(46, 26, 36, .05); border-radius: 999px; padding: 10px 18px; cursor: pointer;
  font-weight: 500; font-size: 14px; color: var(--ink-soft); transition: background .2s, color .2s;
}
.tab.is-active { background: var(--ink); color: #fff; }
.panel[hidden] { display: none; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.panel-head a { font-size: 14px; color: var(--rose); }
.dropzone {
  display: grid; place-items: center; text-align: center; gap: 8px;
  border: 2px dashed rgba(196, 80, 106, .35); border-radius: 18px; background: rgba(244, 220, 224, .25);
  padding: 34px 18px; cursor: pointer; transition: background .2s, border-color .2s;
}
.dropzone:hover, .dropzone.is-over { background: rgba(244, 220, 224, .55); border-color: var(--rose); }
.dropzone strong { font: italic 500 24px var(--serif); }
.dropzone small { color: var(--muted); }
.dropzone input { display: none; }
.queue { display: grid; gap: 8px; margin: 14px 0; }
.qitem { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; background: #fff; border-radius: 12px; padding: 10px 14px; font-size: 14px; box-shadow: 0 1px 2px rgba(46, 26, 36, .06); }
.qitem .bar { grid-column: 1 / -1; height: 5px; border-radius: 3px; background: var(--paper-2); overflow: hidden; }
.qitem .bar i { display: block; height: 100%; width: 0; background: var(--rose); transition: width .2s; }
.qitem.ok .bar i { background: #3C7A4E; }
.qitem.err { color: var(--rose-deep); }
.qitem .qname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qitem .qstate { color: var(--muted); font-size: 13px; }

.mlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-top: 18px; }
.mitem { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 2px rgba(46, 26, 36, .06), 0 6px 16px -10px rgba(46, 26, 36, .25); display: flex; flex-direction: column; }
.mthumb { position: relative; aspect-ratio: 4 / 3; background: var(--paper-2); }
.mthumb img { width: 100%; height: 100%; object-fit: cover; }
.mthumb .badge { position: absolute; top: 8px; left: 8px; background: rgba(20, 10, 16, .7); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .06em; padding: 4px 8px; border-radius: 999px; }
.mthumb .badge.cover { left: auto; right: 8px; background: var(--gold); }
.mitem input { border: 0; border-top: 1px solid var(--line); padding: 10px 12px; font: 400 14px var(--sans); width: 100%; background: #fff; color: var(--ink); }
.mitem input:focus { outline: none; background: #FFF8F4; }
.mactions { display: flex; border-top: 1px solid var(--line); }
.mactions button { flex: 1; border: 0; background: none; padding: 9px 4px; cursor: pointer; font-size: 13px; color: var(--ink-soft); }
.mactions button + button { border-left: 1px solid var(--line); }
.mactions button:hover { background: var(--paper); color: var(--ink); }
.mactions button.del:hover { color: var(--rose-deep); background: #FBE7EA; }
.mactions button:disabled { opacity: .3; cursor: default; background: none; }
.muted { color: var(--muted); font-size: 14px; }
.guard { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 12px 16px; border-radius: 12px; background: rgba(46, 26, 36, .04); margin-top: 16px; }
.guard.ok { background: #E8F3EA; color: #2F6B40; }
.guard.bad { background: #FBE7EA; color: var(--rose-deep); font-weight: 500; }
.tab-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--rose); margin-left: 4px; vertical-align: 2px; }
.act-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 860px) { .act-summary { grid-template-columns: 1fr 1fr; } }
.act-card { background: #fff; border-radius: 16px; padding: 16px 18px; box-shadow: 0 1px 2px rgba(46, 26, 36, .06); display: flex; flex-direction: column; gap: 4px; }
.act-card span { font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.act-card strong { font: italic 500 22px/1.2 var(--serif); color: var(--ink); }
.act-card small { font-size: 13px; color: var(--muted); }
.act-card.is-yes { background: #FBEEF0; }
.act-card.is-yes strong { color: var(--rose-deep); }
.act-list { margin-top: 14px; background: #fff; border-radius: 16px; padding: 6px 18px 12px; box-shadow: 0 1px 2px rgba(46, 26, 36, .06); }
.act-day { font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--rose); margin: 18px 0 6px; }
.act-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--line); font-size: 15px; }
.act-day + .act-item { border-top: 0; }
.act-item time { font-variant-numeric: tabular-nums; color: var(--ink-soft); font-weight: 500; }
.act-item em { font-style: normal; color: var(--muted); }
.act-item em::before { content: "· "; }
.act-dev { color: var(--muted); font-size: 13px; text-align: right; }
.act-rubbellos .act-what, .act-film .act-what { color: var(--rose-deep); font-weight: 500; }
@media (max-width: 560px) { .act-item { grid-template-columns: 48px 1fr; } .act-dev { grid-column: 2; text-align: left; margin-top: -6px; } }
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 14px;
  opacity: 0; transition: opacity .3s, transform .3s var(--ease); z-index: 200; pointer-events: none;
}
.toast.is-on { opacity: 1; transform: translateX(-50%); }
