/* ==========================================================================
   Theater Toffen Kinderstück – Theme «Das kleine Gespenst» 2027
   Contao 4.13 / 5.x · Webagentur Publitiv
   ========================================================================== */

/* ---------- Fonts (selbst gehostet, DSG/DSGVO-freundlich) ---------- */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../../files/gespenst/fonts/fraunces-latin-full-normal.woff2") format("woff2-variations"), url("../../files/gespenst/fonts/fraunces-latin-full-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url("../../files/gespenst/fonts/fraunces-latin-full-italic.woff2") format("woff2-variations"), url("../../files/gespenst/fonts/fraunces-latin-full-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../../files/gespenst/fonts/bricolage-grotesque-latin-standard-normal.woff2") format("woff2-variations"), url("../../files/gespenst/fonts/bricolage-grotesque-latin-standard-normal.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  --ink: #0B1030;
  --ink-deep: #070A22;
  --night: #121A48;
  --dusk: #1E2766;
  --mist: #BCC4F0;
  --paper: #F4EEDF;
  --ghost: #FBF8F1;
  --plum: #2B3488;
  --moon: #F6C945;
  --line-dark: rgba(188, 196, 240, .18);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1280px;
  --gutter: 64px;
  --radius: 28px;
  --ease-pop: cubic-bezier(.3, 1.6, .5, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.gespenst {
  margin: 0;
  background: var(--ink);
  color: var(--ghost);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
.gespenst img { max-width: 100%; height: auto; }
.gespenst a { color: inherit; }
.gespenst p { margin: 0 0 1em; }
.gespenst figure { margin: 0; }
.gespenst h1, .gespenst h2, .gespenst h3, .gespenst h4 {
  font-family: var(--serif);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
}
.gespenst h2 { font-size: clamp(40px, 5.6vw, 84px); line-height: .98; letter-spacing: -.02em; }
.gespenst h3 { font-size: clamp(26px, 2.6vw, 36px); }
.gespenst .invisible, .sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.gespenst :focus-visible { outline: 3px dashed var(--moon); outline-offset: 4px; border-radius: 6px; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--moon); color: var(--ink) !important; padding: 12px 18px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- Helpers usable in the backend (CSS-Klassen) ---------- */
.kicker { display: block; font-family: var(--sans); font-size: 13px !important; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--moon); margin-top: 0 !important; margin-bottom: 18px !important; }
.paper .kicker { color: var(--plum); }
.lead, .lead p { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-family: var(--sans); font-weight: 700; font-size: 16px; line-height: 1.1;
  text-decoration: none !important; border: 2px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease-pop), background-color .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-3px) rotate(-1.5deg); }
.btn::after { content: "→"; font-weight: 700; transition: transform .25s var(--ease-pop); }
.btn:hover::after { transform: translateX(3px); }
.btn.btn-noarrow::after { content: none; }
.btn-moon { background: var(--moon); color: var(--ink) !important; }
.btn-line { border-color: rgba(251, 248, 241, .45); color: var(--ghost) !important; }
.btn-line:hover { background: rgba(251, 248, 241, .08); }
.btn-ink { background: var(--ink); color: var(--ghost) !important; }
.btn-outline { border-color: var(--ink); color: var(--ink) !important; }
.gespenst .btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 44px; margin-bottom: 0; }

/* ---------- Top banner (Layout-Bereich «topbanner») ---------- */
.topbanner-bar {
  background: var(--moon); color: var(--ink); text-align: center;
  font-size: 14px; font-weight: 600; padding: 10px 16px; line-height: 1.4;
}
.topbanner-bar p { margin: 0; }
.topbanner-bar a { font-weight: 700; }

/* ---------- Header / Navigation ---------- */
#header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(11, 16, 48, .82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-dark);
}
#header > .inside {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
  height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.site-logo { display: block; flex: none; }
.site-logo img { height: 34px; width: auto; display: block; }
#header .mod_navigation ul { list-style: none; margin: 0; padding: 0; }
#header .mod_navigation .level_1 { display: flex; align-items: center; gap: 2px; }
#header .mod_navigation .level_1 > li { position: relative; }
#header .mod_navigation a, #header .mod_navigation strong {
  display: block; text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 10px 14px; border-radius: 999px; color: var(--mist); white-space: nowrap;
  transition: background-color .2s, color .2s;
}
#header .mod_navigation a:hover { color: var(--ink); background: var(--moon); }
#header .mod_navigation strong.active, #header .mod_navigation a.trail, #header .mod_navigation strong.trail {
  color: var(--ghost); background: rgba(251, 248, 241, .1); font-weight: 600;
}
#header .mod_navigation .level_2 {
  position: absolute; left: 0; top: 100%; min-width: 200px; padding: 8px !important;
  background: var(--night); border: 1px solid var(--line-dark); border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .35);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
#header .mod_navigation li:hover > .level_2,
#header .mod_navigation li:focus-within > .level_2 { opacity: 1; visibility: visible; transform: none; }
#header .mod_navigation .level_2 a, #header .mod_navigation .level_2 strong { border-radius: 12px; }
.nav-toggle {
  display: none; align-items: center; gap: 10px; min-height: 46px; padding: 0 18px;
  border-radius: 999px; border: 1.5px solid rgba(251, 248, 241, .35); background: transparent;
  color: var(--ghost); font: 600 15px var(--sans); cursor: pointer;
}
.nav-toggle-bars { position: relative; width: 18px; height: 12px; }
.nav-toggle-bars::before, .nav-toggle-bars::after, .nav-toggle-bars span {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s, opacity .2s;
}
.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars span { top: 5px; }
.nav-toggle-bars::after { bottom: 0; }
.nav-open .nav-toggle-bars::before { transform: translateY(5px) rotate(45deg); }
.nav-open .nav-toggle-bars span { opacity: 0; }
.nav-open .nav-toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }

/* ---------- Main + article sections ---------- */
#container, #main, #main > .inside { width: 100%; }
#main .mod_article { position: relative; }
.sec { padding: 140px 0; }
body.gespenst .sec > * { width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--wrap) - 2 * var(--gutter)); margin-left: auto; margin-right: auto; }
.sec.tight-top { padding-top: 40px; }
.sec.tight-bottom { padding-bottom: 40px; }
.night { background: var(--ink); color: var(--ghost); }
.paper { background: var(--paper); color: var(--ink); }
.paper a:not(.btn) { color: var(--plum); }
.moonbg { background: var(--moon); color: var(--ink); }

/* ---------- Home hero ---------- */
.sec.hero { padding: 0; }
body.gespenst .sec.hero > * { width: 100%; max-width: none; margin: 0; }
.hero-stage {
  position: relative; min-height: 880px; overflow: hidden; isolation: isolate;
  background: radial-gradient(1200px 700px at 78% 22%, #27307A 0%, #141B4C 45%, #0B1030 80%);
  --mx: -600px; --my: -600px;
}
.stars { position: absolute; inset: 0 0 25% 0; pointer-events: none; }
.star { position: absolute; border-radius: 50%; background: #fff; animation: g-twinkle 3.6s ease-in-out infinite; }
@keyframes g-twinkle { 0%, 100% { opacity: .25; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.15); } }
.moon {
  position: absolute; right: 7%; top: 80px; width: 360px; aspect-ratio: 1; border-radius: 50%; background: var(--moon);
  box-shadow: 0 0 0 26px rgba(246, 201, 69, .07), 0 0 0 64px rgba(246, 201, 69, .045), 0 0 160px 40px rgba(246, 201, 69, .28);
  animation: g-float 9s ease-in-out infinite;
}
.moon i { position: absolute; border-radius: 50%; background: rgba(11, 16, 48, .08); }
.moon i:nth-child(1) { left: 17%; top: 24%; width: 19%; height: 19%; }
.moon i:nth-child(2) { left: 55%; top: 52%; width: 29%; height: 29%; }
.moon i:nth-child(3) { left: 33%; top: 69%; width: 11%; height: 11%; }
.moon i:nth-child(4) { left: 65%; top: 17%; width: 8%; height: 8%; }
@keyframes g-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.cloud { position: absolute; height: 28px; border-radius: 999px; background: rgba(188, 196, 240, .07); filter: blur(6px); animation: g-drift 38s linear infinite; pointer-events: none; }
.cloud.c1 { top: 96px; width: 260px; animation-delay: -6s; }
.cloud.c2 { top: 430px; width: 180px; animation-delay: -21s; animation-duration: 52s; }
@keyframes g-drift { from { transform: translateX(-30vw); } to { transform: translateX(120vw); } }
.badge { position: absolute; right: calc(7% + 210px); top: 545px; width: 190px; height: 190px; }
.badge svg.ring { width: 100%; height: 100%; animation: g-spin 26s linear infinite; }
.badge svg.clock { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; }
@keyframes g-spin { to { transform: rotate(360deg); } }
.torch {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  -webkit-mask-image: radial-gradient(170px 170px at var(--mx) var(--my), #000 0%, rgba(0, 0, 0, .6) 45%, transparent 100%);
  mask-image: radial-gradient(170px 170px at var(--mx) var(--my), #000 0%, rgba(0, 0, 0, .6) 45%, transparent 100%);
}
.torch-glow { position: absolute; inset: 0; pointer-events: none; z-index: 1; background: radial-gradient(220px 220px at var(--mx) var(--my), rgba(246, 201, 69, .10), transparent 70%); }
.torch span { position: absolute; font-family: var(--serif); font-style: italic; font-weight: 800; color: transparent; -webkit-text-stroke: 1.5px rgba(246, 201, 69, .85); font-variation-settings: "SOFT" 100, "WONK" 1; white-space: nowrap; }
.hero-copy { position: relative; z-index: 3; max-width: var(--wrap); margin: 0 auto; padding: 140px var(--gutter) 330px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px;
  background: rgba(251, 248, 241, .08); border: 1px solid rgba(251, 248, 241, .18);
  font-size: 14px; font-weight: 600; color: var(--ghost); line-height: 1.3; margin: 0;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--moon); box-shadow: 0 0 12px var(--moon); animation: g-pulse 1.8s ease-in-out infinite; flex: none; }
@keyframes g-pulse { 50% { opacity: .35; } }
.hero-copy h1 { margin: 30px 0 0; font-weight: 800; }
.hero-copy .h1a { display: block; font-size: clamp(34px, 4.4vw, 64px); font-style: italic; font-weight: 400; line-height: 1; color: var(--mist); }
.hero-copy .h1b { display: block; font-size: clamp(80px, 14.6vw, 212px); line-height: .88; letter-spacing: -.035em; color: var(--ghost); text-shadow: 0 0 60px rgba(188, 196, 240, .35); margin-left: -.03em; }
.h1b .ch { display: inline-block; animation: g-wob 5s ease-in-out infinite; }
@keyframes g-wob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(-1.5deg); } }
.hero-sub { max-width: 540px; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--mist); margin: 30px 0 0 !important; }
.land { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 300px; z-index: 2; display: block; }
.window-glow { animation: g-flicker 4s ease-in-out infinite; }
@keyframes g-flicker { 0%, 100% { opacity: 1; } 45% { opacity: .75; } 50% { opacity: 1; } 70% { opacity: .85; } }

/* ---------- Page head (Unterseiten) ---------- */
.sec.pagehead { padding: 0; }
body.gespenst .sec.pagehead > * { width: 100%; max-width: none; margin: 0; }
.pagehead-stage {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(900px 500px at 85% 10%, #27307A 0%, #141B4C 50%, #0B1030 85%);
  padding: 120px 0 110px;
}
.pagehead-stage .moon { width: 200px; top: 50px; right: 8%; }
.pagehead-stage .inner { position: relative; z-index: 2; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.pagehead-stage h1 { font-size: clamp(56px, 9vw, 140px); font-weight: 800; line-height: .9; letter-spacing: -.03em; margin: 0; max-width: 16ch; }
.pagehead-stage .intro { max-width: 640px; color: var(--mist); font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; margin: 28px 0 0 !important; }
.pagehead-stage .hills { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 70px; display: block; }
.pagehead-stage.curtain { background: #0B1030 url("../../files/gespenst/img/vorhang.jpg") center 30% / cover no-repeat; padding: 180px 0 120px; }
.pagehead-stage.curtain::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 16, 48, .35) 0%, rgba(11, 16, 48, .92) 100%); z-index: 0; }

/* ---------- Marquee ---------- */
.sec.marquee { padding: 0; }
body.gespenst .sec.marquee > * { width: 100%; max-width: none; margin: 0; }
.marquee-band { background: var(--moon); color: var(--ink); overflow: hidden; padding: 20px 0; border-block: 2px solid var(--ink); }
.marquee-track { display: flex; width: max-content; animation: g-marquee 36s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 34px; white-space: nowrap; font-variation-settings: "SOFT" 100, "WONK" 1; line-height: 1.2; }
.marquee-track span::after { content: "✦"; font-style: normal; font-size: 24px; }
@keyframes g-marquee { to { transform: translateX(-50%); } }

/* ---------- Split layouts ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; align-items: start; }
.split.even { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; }
.split.center { align-items: center; }
.split .sticky { position: sticky; top: 130px; }
.signature { display: flex; gap: 14px; align-items: center; color: var(--mist); font-size: 16px; margin-top: 36px !important; }

/* ---------- Poem ---------- */
.poem p { font-family: var(--serif); font-variation-settings: "SOFT" 100, "WONK" 1; font-size: clamp(26px, 3.1vw, 44px); line-height: 1.28; letter-spacing: -.01em; margin: 0; }
.poem p:nth-child(3n) { height: .55em; overflow: hidden; }
.poem p:nth-child(3n+2) { padding-left: 1.3em; color: var(--mist); font-style: italic; }
.poem p:last-child { color: var(--moon); font-weight: 700; font-size: clamp(34px, 4.1vw, 58px); padding-left: 0; margin-top: 14px; }

/* ---------- Facts ---------- */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 64px; }
.fact {
  background: var(--ghost); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 28px 24px; min-height: 240px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  box-shadow: 6px 6px 0 var(--ink); transition: transform .3s var(--ease-pop), box-shadow .3s var(--ease-pop);
}
.fact:hover { transform: translate(-3px, -3px) rotate(-1deg); box-shadow: 9px 9px 0 var(--ink); }
.fact .kicker { color: var(--ink) !important; margin: 0 !important; }
.fact strong { font-family: var(--serif); font-variation-settings: "SOFT" 100, "WONK" 1; font-weight: 700; font-size: clamp(26px, 2.3vw, 34px); line-height: 1.05; }
.fact.is-moon { background: var(--moon); }
.fact.is-ink { background: var(--ink); color: var(--ghost); }
.fact.is-ink .kicker { color: var(--moon) !important; }

.announce { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: end; }
.announce h2 { margin: 0; }
.announce .ce_text p:last-child, .announce .content-text p:last-child { margin-bottom: 0; }

/* ---------- Spielort ---------- */
.ce_text.addr p:first-child, .content-text.addr p:first-child { font-family: var(--serif); font-variation-settings: "SOFT" 100, "WONK" 1; font-size: clamp(24px, 2.2vw, 30px); font-weight: 600; margin-bottom: .5em; }
.ce_text.addr, .content-text.addr { color: var(--mist); }
.ce_text.addr p:first-child, .content-text.addr p:first-child { color: var(--ghost); }
.warn { display: flex; gap: 20px; align-items: flex-start; background: rgba(246, 201, 69, .1); border: 1.5px dashed var(--moon); border-radius: 24px; padding: 24px 26px; margin-top: 32px; }
.warn-ic { flex: none; width: 52px; height: 52px; border-radius: 16px; background: var(--moon); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.warn strong { display: block; font-size: 19px; margin-bottom: 4px; }
.warn p { color: var(--mist); margin: 0; font-size: 17px; line-height: 1.55; }
.mapwrap { position: relative; transform: rotate(1.2deg); }
.mapwrap .ce_hyperlink, .mapwrap figure, .mapwrap .content-hyperlink { margin: 0; }
.mapwrap figure { border-radius: 36px; overflow: hidden; border: 2px solid rgba(188, 196, 240, .25); box-shadow: 0 40px 80px rgba(0, 0, 0, .45); }
.mapwrap img { display: block; width: 100%; height: 520px; object-fit: cover; filter: hue-rotate(180deg) saturate(.55) brightness(.62) contrast(1.1); transition: filter .4s; }
.mapwrap:hover img { filter: hue-rotate(180deg) saturate(.7) brightness(.72) contrast(1.1); }
.map-pin { position: absolute; left: 33%; top: 57%; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; pointer-events: none; animation: g-bob 2.6s ease-in-out infinite; }
@keyframes g-bob { 50% { transform: translate(-50%, calc(-100% - 12px)); } }
.map-pin span { background: var(--moon); color: var(--ink); font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 999px; white-space: nowrap; margin-bottom: 8px; }
.map-pin svg { filter: drop-shadow(0 0 12px rgba(251, 248, 241, .8)); }

/* ---------- Quote / Über uns ---------- */
.quote p { font-family: var(--serif); font-variation-settings: "SOFT" 100, "WONK" 1; font-style: italic; font-weight: 500; font-size: clamp(36px, 5.3vw, 76px); line-height: 1.04; letter-spacing: -.02em; margin: 0; max-width: 1100px; }
.quote em, .quote strong { font-style: italic; font-weight: 600; background: var(--moon); color: var(--ink); padding: 0 .12em; border-radius: 12px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; margin-top: 90px; }
.cols-2 .ce_text h2, .cols-2 .ce_text h3, .cols-2 .content-text h2, .cols-2 .content-text h3 { font-size: clamp(28px, 2.4vw, 34px); margin-bottom: 16px; }
.cols-2 .ce_text p, .cols-2 .content-text p { font-size: 19px; line-height: 1.65; }
.region { margin-top: 80px; padding-top: 34px; border-top: 2px solid currentColor; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.region p { font-family: var(--serif); font-variation-settings: "SOFT" 100, "WONK" 1; font-size: clamp(26px, 2.8vw, 40px); font-weight: 700; margin: 0; line-height: 1.1; }
.region .btn-row { margin: 0; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.stat { border: 1.5px solid rgba(188, 196, 240, .25); border-radius: var(--radius); padding: 30px; }
.stat b { display: block; font-family: var(--serif); font-variation-settings: "SOFT" 100, "WONK" 1; font-size: clamp(56px, 6vw, 84px); line-height: 1; color: var(--moon); font-weight: 800; margin-bottom: 8px; }
.stat span { color: var(--mist); font-size: 16px; }

/* ---------- Timeline (Chronik) ---------- */
.timeline { position: relative; margin-top: 30px; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-1px); background: repeating-linear-gradient(to bottom, rgba(188, 196, 240, .35) 0 8px, transparent 8px 16px); }
.timeline h3 {
  position: relative; display: block; width: max-content; margin: 70px auto 40px; padding: 6px 28px; text-align: center;
  font-size: clamp(40px, 4.4vw, 64px); font-weight: 800; line-height: 1.1;
  background: var(--ink); border: 2px solid rgba(188, 196, 240, .3); border-radius: 999px;
}
.timeline h3:first-child { margin-top: 0; }
.timeline p { position: relative; width: 50%; padding: 0 64px 44px; margin: 0; color: var(--mist); font-size: 18px; line-height: 1.6; }
.timeline p:nth-of-type(odd) { margin-right: 50%; text-align: right; }
.timeline p:nth-of-type(even) { margin-left: 50%; }
.timeline p::after { content: ""; position: absolute; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: var(--moon); box-shadow: 0 0 0 6px rgba(246, 201, 69, .18); }
.timeline p:nth-of-type(odd)::after { right: -7px; }
.timeline p:nth-of-type(even)::after { left: -7px; }
.timeline p strong { display: block; font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--moon); margin-bottom: 8px; }
.timeline p strong br { display: none; }
.next-chapter { position: relative; max-width: 640px !important; box-sizing: border-box; margin: 40px auto 0; text-align: center; background: var(--moon); color: var(--ink); border-radius: 36px; padding: 44px 40px !important; box-shadow: 0 0 120px rgba(246, 201, 69, .3); }
.next-chapter .kicker { color: var(--ink) !important; }
.next-chapter .big { font-family: var(--serif); font-variation-settings: "SOFT" 100, "WONK" 1; font-size: clamp(32px, 3.2vw, 44px); font-weight: 800; line-height: 1; margin: 0 0 12px; }
.next-chapter p:last-child { margin: 0; }

/* ---------- Archiv ---------- */
.story { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; margin-top: 90px; }
.ce_text.credits p, .content-text.credits p { font-size: 19px; line-height: 1.45; margin: 0 0 6px; }
.ce_text.credits p:first-child, .content-text.credits p:first-child { font-family: var(--serif); font-style: italic; font-size: 26px; font-variation-settings: "SOFT" 100, "WONK" 1; }
.ce_text.credits p:last-child, .content-text.credits p:last-child { margin-top: 18px; color: var(--moon); font-weight: 700; }
.ce_text.storytext p, .content-text.storytext p { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.65; color: var(--mist); }
.ce_text.storytext h3, .content-text.storytext h3 { font-family: var(--sans); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--moon); font-weight: 700; margin-bottom: 18px; }
.ce_text.storytext p:first-of-type::first-letter, .content-text.storytext p:first-of-type::first-letter { font-family: var(--serif); font-size: 84px; float: left; line-height: .8; margin: 8px 12px 0 0; color: var(--moon); font-weight: 800; }
.ce_gallery, .content-gallery { margin-top: 90px; }
.ce_gallery > h2, .ce_gallery > h3, .content-gallery > h2, .content-gallery > h3 { font-size: clamp(30px, 3vw, 40px); }
.ce_gallery ul, .content-gallery ul { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 220px; grid-auto-flow: dense; gap: 14px; }
.ce_gallery li, .content-gallery li { margin: 0; border-radius: 22px; overflow: hidden; background: var(--night); }
.ce_gallery li:nth-child(7n+1), .content-gallery li:nth-child(7n+1) { grid-column: span 2; grid-row: span 2; }
.ce_gallery li:nth-child(7n+4), .content-gallery li:nth-child(7n+4) { grid-row: span 2; }
.ce_gallery figure, .ce_gallery a, .ce_gallery picture, .content-gallery figure, .content-gallery a, .content-gallery picture { display: block; width: 100%; height: 100%; }
.ce_gallery img, .content-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2, .7, .2, 1), filter .4s; }
.ce_gallery li:hover img, .content-gallery li:hover img { transform: scale(1.06); filter: brightness(1.08); }
.ce_gallery figcaption, .content-gallery figcaption { display: none; }

/* ---------- Sponsoren ---------- */
.tier-title { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; border-bottom: 2px solid var(--ink); padding-bottom: 14px !important; margin-top: 70px !important; margin-bottom: 22px !important; }
.paper h2.ce_headline.tier-title, .paper .tier-title, .paper h2.content-headline.tier-title { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; }
.slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.slots .ce_hyperlink, .slot-free, .slots .content-hyperlink { margin: 0; }
.slots .ce_hyperlink figure, .slots .ce_hyperlink > a, .slots .content-hyperlink figure, .slots .content-hyperlink > a {
  height: 100%; min-height: 150px; border-radius: 24px; border: 2px solid var(--ink); background: #fff;
  display: flex; align-items: center; justify-content: center; padding: 22px; transition: transform .3s var(--ease-pop);
}
.slots .ce_hyperlink figure:hover, .slots .content-hyperlink figure:hover { transform: translateY(-4px) rotate(-1deg); }
.slots .ce_hyperlink img, .slots .content-hyperlink img { max-height: 110px; width: auto; object-fit: contain; }
.slot-free {
  min-height: 150px; border-radius: 24px; border: 2px dashed rgba(11, 16, 48, .35); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 20px;
  color: rgba(11, 16, 48, .62) !important; font-size: 14px; font-weight: 600; text-decoration: none !important; transition: all .3s var(--ease-pop);
}
.slot-free svg { opacity: .55; transition: transform .4s, opacity .3s; }
.slot-free:hover { border-color: var(--ink); color: var(--ink) !important; background: rgba(246, 201, 69, .3); transform: translateY(-4px); }
.slot-free:hover svg { opacity: 1; transform: translateY(-6px); }
.main-sp { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); border: 2px solid var(--ink); border-radius: 36px; overflow: hidden; box-shadow: 8px 8px 0 var(--ink); background: #fff; }
.main-sp-logo { display: flex; align-items: center; justify-content: center; background: #fff; padding: 40px; border-right: 2px solid var(--ink); min-height: 320px; }
.main-sp-logo .ce_hyperlink, .main-sp-logo figure, .main-sp-logo .content-hyperlink { margin: 0; }
.main-sp-logo img { max-height: 230px; width: auto; }
.main-sp-txt { padding: 48px; display: flex; flex-direction: column; justify-content: center; gap: 14px; background: var(--moon); color: var(--ink); }
.main-sp-txt .big { font-family: var(--serif); font-variation-settings: "SOFT" 100, "WONK" 1; font-size: clamp(32px, 3.2vw, 44px); font-weight: 800; line-height: 1; margin: 0; }
.main-sp-txt a { color: var(--ink) !important; font-weight: 700; }
.main-sp-txt .kicker { color: var(--ink) !important; margin: 0 !important; }

/* ---------- Kontakt / Formular ---------- */
.mail-big, .mail-big a { font-family: var(--serif); font-variation-settings: "SOFT" 100, "WONK" 1; font-size: clamp(20px, 1.9vw, 27px); font-weight: 600; text-decoration: none !important; border-bottom: 2px solid var(--moon); overflow-wrap: anywhere; }
.mail-big { border-bottom: 0; margin: 0 0 8px !important; }
.mail-big a { display: inline; }
.ce_form { background: var(--night); border: 1.5px solid var(--line-dark); border-radius: 36px; padding: 44px; }
.ce_form h2, .ce_form h3 { font-size: clamp(26px, 2.4vw, 34px); }
.ce_form .formbody { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; }
.ce_form .formbody > .widget { grid-column: span 2; display: flex; flex-direction: column; gap: 8px; margin: 0; }
.ce_form .formbody > .widget-text:nth-child(1 of .widget-text), .ce_form .formbody > .widget-text:nth-child(2 of .widget-text) { grid-column: span 1; }
.ce_form label { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mist); }
.ce_form label .mandatory { color: var(--moon); margin-left: 2px; }
.ce_form input.text, .ce_form input[type="text"], .ce_form input[type="email"], .ce_form input[type="tel"], .ce_form textarea, .ce_form select {
  width: 100%; font: inherit; font-size: 17px; color: var(--ghost); background: rgba(251, 248, 241, .05);
  border: 1.5px solid rgba(188, 196, 240, .25); border-radius: 16px; padding: 15px 18px; outline: none; transition: border-color .2s, background-color .2s;
}
.ce_form select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--moon) 50%), linear-gradient(135deg, var(--moon) 50%, transparent 50%); background-position: calc(100% - 24px) 55%, calc(100% - 18px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 48px; }
.ce_form select option { color: var(--ink); }
.ce_form textarea { min-height: 160px; resize: vertical; }
.ce_form input:focus, .ce_form textarea:focus, .ce_form select:focus { border-color: var(--moon); background-color: rgba(251, 248, 241, .09); }
.ce_form .error { color: #FFB4A8; font-size: 14px; margin: 0; }
.ce_form input.error, .ce_form textarea.error, .ce_form select.error { border-color: #FF8A7A; }
.ce_form button.submit, .ce_form .widget-submit button {
  align-self: flex-start; min-height: 54px; padding: 0 30px; border-radius: 999px; border: 0; background: var(--moon); color: var(--ink);
  font: 700 16px var(--sans); cursor: pointer; transition: transform .25s var(--ease-pop);
}
.ce_form button.submit:hover { transform: translateY(-3px) rotate(-1.5deg); }

/* ---------- Generische Textseiten (Impressum, Datenschutz, Archivseiten) ---------- */
.legal h1 { font-size: clamp(40px, 5vw, 64px); }
.legal h2 { font-size: clamp(28px, 3vw, 40px); margin-top: 1.4em; }
.legal h3 { font-size: clamp(22px, 2vw, 28px); margin-top: 1.2em; }
.legal table { width: 100% !important; height: auto !important; border-collapse: collapse; margin: 0 0 1.4em; }
.legal td, .legal th { padding: 10px 12px; border-bottom: 1px solid rgba(11, 16, 48, .15); vertical-align: top; height: auto !important; }
.night .legal td { border-bottom-color: var(--line-dark); }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .4em; }
body.gespenst .sec.legal > * { max-width: 900px; }

/* ---------- Footer ---------- */
#footer { background: var(--ink-deep); color: var(--mist); }
#footer > .inside { max-width: var(--wrap); margin: 0 auto; padding: 100px var(--gutter) 40px; }
.foot-logo { display: block; width: 100%; max-width: 1150px; height: auto; opacity: .95; }
.foot-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-top: 70px; padding-top: 30px; border-top: 1px solid var(--line-dark); font-size: 15px; flex-wrap: wrap; }
.foot-row.small { margin-top: 24px; font-size: 14px; align-items: center; }
.foot-row address { font-style: normal; line-height: 1.7; }
.foot-row a { color: var(--mist); }
.foot-row a:hover { color: var(--moon); }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-sp { display: flex; align-items: center; gap: 18px; text-decoration: none; }
.foot-sp img { height: 70px; width: auto; border-radius: 8px; background: #fff; padding: 6px; display: block; }

/* ---------- Das kleine Gespenst (fliegend) ---------- */
.g-ghost { position: fixed; left: 0; top: 0; z-index: 90; width: 92px; height: 108px; pointer-events: none; will-change: transform, opacity; --rot: 0deg; --face: 1; opacity: 0; transition: opacity .6s; }
.g-ghost.is-ready { opacity: 1; }
.g-ghost button { pointer-events: auto; cursor: pointer; background: none; border: 0; padding: 0; width: 100%; height: 100%; display: block; }
.g-ghost button:focus-visible { outline: 2px dashed var(--moon); outline-offset: 6px; border-radius: 40px; }
.g-ghost-body { width: 100%; height: 100%; transform: rotate(var(--rot)) scaleX(var(--face)); filter: drop-shadow(0 0 18px rgba(214, 224, 255, .6)) drop-shadow(0 12px 18px rgba(0, 0, 0, .35)); }
.g-ghost-body svg { width: 100%; height: 100%; overflow: visible; display: block; }
.g-ghost .hem { animation: g-hem 1.1s ease-in-out infinite alternate; transform-origin: 60px 60px; }
@keyframes g-hem { from { transform: skewX(-4deg); } to { transform: skewX(4deg); } }
.g-ghost .arm-l { animation: g-wave 1.6s ease-in-out infinite; transform-origin: 20px 70px; }
@keyframes g-wave { 50% { transform: rotate(-16deg); } }
.g-ghost .blink { animation: g-blink 5s infinite; transform-origin: 60px 54px; }
@keyframes g-blink { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
.g-bubble {
  position: absolute; bottom: calc(100% + 6px); left: 60%; background: var(--ghost); color: var(--ink);
  font-family: var(--serif); font-variation-settings: "SOFT" 100, "WONK" 1; font-weight: 700; font-style: italic; font-size: 18px; line-height: 1.2;
  padding: 10px 16px; border-radius: 20px 20px 20px 4px; white-space: nowrap; box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  opacity: 0; transform: scale(.3); transform-origin: bottom left; transition: opacity .2s, transform .35s var(--ease-pop); pointer-events: none;
}
.g-ghost.talks .g-bubble { opacity: 1; transform: none; }
.g-ghost[data-v="b"] .g-bubble { bottom: auto; top: calc(100% + 6px); }
.g-ghost[data-side="l"] .g-bubble { left: auto; right: 60%; border-radius: 20px 20px 4px 20px; transform-origin: bottom right; }

/* ---------- Scroll reveal ---------- */
.js-reveal .sec > .rv-item { opacity: 0; transform: translateY(48px); transition: opacity .8s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.js-reveal .sec > .rv-item.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gespenst *, .gespenst *::before, .gespenst *::after { animation: none !important; transition: none !important; }
  .js-reveal .sec > .rv-item { opacity: 1; transform: none; }
}

/* ==========================================================================
   Farbton der hellen Abschnitte («paper»)
   Standard = Mondnebel. Umschalten im Backend: Layout «Gespenst - Standard»
   → Feld «CSS-Klasse» (body): ton-flieder | ton-schnee | ton-daemmerung | ton-pergament
   ========================================================================== */
:root {
  --paper-bg: #E3E7FA;          /* Mondnebel: kühles, helles Blau */
  --paper-fg: #0B1030;
  --paper-accent: #2B3488;
  --paper-line: #0B1030;
  --paper-muted: rgba(11, 16, 48, .62);
  --paper-dash: rgba(11, 16, 48, .32);
  --paper-card: #FFFFFF;
}
body.ton-flieder { --paper-bg: #ECE5F8; --paper-accent: #5A3E9E; }
body.ton-schnee { --paper-bg: #F6F7FD; }
body.ton-pergament { --paper-bg: #F4EEDF; --paper-card: #FBF8F1; }
body.ton-daemmerung {
  --paper-bg: #2B3488; --paper-fg: #FBF8F1; --paper-accent: #F6C945; --paper-line: rgba(251, 248, 241, .5);
  --paper-muted: rgba(251, 248, 241, .78); --paper-dash: rgba(251, 248, 241, .45); --paper-card: #FBF8F1;
}
.paper { background: var(--paper-bg); color: var(--paper-fg); }
.paper .kicker { color: var(--paper-accent); }
.paper a:not(.btn):not(.slot-free) { color: var(--paper-accent); }
.paper .fact:not(.is-moon):not(.is-ink) { background: var(--paper-card); }
.paper .btn-outline { border-color: var(--paper-fg); color: var(--paper-fg) !important; }
.paper .tier-title { border-bottom-color: var(--paper-line); }
.paper .region { border-top-color: var(--paper-line); }
.paper .slot-free { border-color: var(--paper-dash); color: var(--paper-muted) !important; }
.paper .slot-free:hover { border-color: var(--paper-fg); color: var(--paper-fg) !important; }
.paper .legal td, .paper.legal td, .paper.legal th { border-bottom-color: var(--paper-dash); }
.pagehead-stage .hills path { fill: var(--paper-bg); }
body.ton-daemmerung .paper .btn-ink { background: var(--moon); color: var(--ink) !important; }

/* ---------- Spielplan ---------- */
.ce_text.spielplan, .content-text.spielplan { margin-top: 56px; }
.ce_text.moral, .content-text.moral { margin-top: 72px; }
.spielplan table { width: 100% !important; border-collapse: collapse; font-size: 18px; }
.spielplan th { text-align: left; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--paper-accent, var(--plum)); padding: 0 16px 14px 0; border-bottom: 2px solid currentColor; }
.spielplan td { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--paper-dash, rgba(11,16,48,.2)); vertical-align: middle; }
.spielplan tr:first-child td { font-weight: 700; }
.spielplan td:first-child { font-family: var(--serif); font-variation-settings: "SOFT" 100, "WONK" 1; font-weight: 700; font-size: 22px; }
.spielplan td:nth-child(3), .spielplan td:nth-child(4) { white-space: nowrap; }
.spielplan td:nth-child(3):not(:empty), .spielplan td:nth-child(4):not(:empty) { }
.spielplan .zeit { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--moon); color: var(--ink); font-weight: 700; font-size: 15px; }
.spielplan p { font-size: 15px; color: var(--paper-muted, inherit); margin-top: 16px; }

/* ---------- Karten: Preise, Stufen, Präsenz ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cards-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.card {
  border-radius: var(--radius); padding: 30px 28px; background: var(--paper-card); color: var(--ink);
  border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); display: flex; flex-direction: column; gap: 12px;
}
.night .card { background: var(--night); color: var(--ghost); border: 1.5px solid var(--line-dark); box-shadow: none; }
.card .kicker { margin: 0 !important; }
.card .price { font-family: var(--serif); font-variation-settings: "SOFT" 100, "WONK" 1; font-weight: 800; font-size: clamp(40px, 4vw, 56px); line-height: 1; }
.card .price small { font-size: .42em; font-weight: 600; margin-right: 6px; }
.card h3 { font-size: clamp(24px, 2.2vw, 30px); margin: 0; }
.card p, .card li { font-size: 16px; line-height: 1.55; margin: 0; }
.card ul { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.card li { position: relative; padding-left: 26px; }
.card li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: var(--moon); }
.card.is-moon { background: var(--moon); color: var(--ink); border-color: var(--ink); }
.card.is-moon li::before { background: var(--ink); }
.night .card.is-moon { border: 0; }
.card.is-feature { transform: translateY(-14px); }
.tier-step { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--moon); font-family: var(--serif); font-weight: 800; font-size: 22px; }
.night .tier-step { background: var(--moon); color: var(--ink); }
.card.is-moon .tier-step { background: var(--ink); color: var(--moon); }
.perk-ic { width: 52px; height: 52px; border-radius: 16px; background: var(--moon); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.note { font-size: 15px; opacity: .8; margin-top: 18px !important; }

/* ---------- Geschichte / Intro ---------- */
.tale { text-align: center; max-width: 860px !important; }
.tale .sfx { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2vw, 28px); color: var(--moon); letter-spacing: .08em; margin-bottom: 28px; }
.tale p { font-family: var(--serif); font-variation-settings: "SOFT" 100, "WONK" 1; font-style: italic; font-size: clamp(20px, 1.9vw, 26px); line-height: 1.5; color: var(--mist); margin: 0 0 .4em; }
.tale .ask { font-style: normal; font-weight: 700; font-size: clamp(26px, 2.8vw, 38px); line-height: 1.2; color: var(--ghost); margin: 30px 0 !important; }
.tale .end { color: var(--moon); font-weight: 700; font-style: normal; margin-top: 26px; }
.moral p { font-family: var(--serif); font-variation-settings: "SOFT" 100, "WONK" 1; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.25; font-weight: 600; color: var(--moon); margin: 0; }
.contact-card { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; background: var(--moon); color: var(--ink); border-radius: 40px; padding: 56px; }
.contact-card h2 { margin: 0 0 18px; }
.contact-card p { margin: 0 0 8px; font-size: 18px; }
.contact-card a { color: var(--ink) !important; font-weight: 700; }
.contact-card .btn-ink { color: var(--ghost) !important; }
.contact-card address { font-style: normal; font-size: 18px; line-height: 1.7; }

@media (max-width: 980px) {
  .cards-3, .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card.is-feature { transform: none; }
  .contact-card { grid-template-columns: minmax(0, 1fr); padding: 36px; }
}
@media (max-width: 760px) {
  .cards-3, .cards-4 { grid-template-columns: minmax(0, 1fr); }
  .spielplan table, .spielplan tbody, .spielplan tr, .spielplan td { display: block; width: 100%; }
  .spielplan thead { display: none; }
  .spielplan tr { padding: 14px 0; border-bottom: 1px solid var(--paper-dash, rgba(11,16,48,.2)); }
  .spielplan td { border: 0; padding: 2px 0; display: inline-block; width: auto; margin-right: 8px; }
  .spielplan td:first-child { display: block; }
  .contact-card { padding: 28px; border-radius: 28px; }
}

/* ---------- Lightbox ---------- */
.g-lb { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; background: rgba(7, 10, 34, .94); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.g-lb.is-open { opacity: 1; visibility: visible; }
.g-lb-lock, .g-lb-lock body { overflow: hidden; }
.g-lb-stage { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; width: 100%; height: 100%; padding: 70px 96px; }
.g-lb img { max-width: 100%; max-height: calc(100vh - 170px); width: auto; height: auto; border-radius: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); transition: opacity .2s; }
.g-lb.is-loading img { opacity: .3; }
.g-lb-cap { color: var(--mist); font-size: 15px; margin: 0 !important; min-height: 1em; text-align: center; }
.g-lb-btn { position: absolute; width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid rgba(251, 248, 241, .35); background: rgba(11, 16, 48, .6); color: var(--ghost); font-size: 22px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background-color .2s, color .2s, transform .25s var(--ease-pop); }
.g-lb-btn:hover { background: var(--moon); color: var(--ink); border-color: var(--moon); transform: scale(1.08); }
.g-lb-prev { left: 24px; top: 50%; margin-top: -28px; }
.g-lb-next { right: 24px; top: 50%; margin-top: -28px; }
.g-lb-close { right: 24px; top: 20px; }
.g-lb-count { position: absolute; left: 50%; top: 32px; transform: translateX(-50%); color: var(--mist); font-size: 14px; font-weight: 600; letter-spacing: .12em; }
.g-lb.is-single .g-lb-prev, .g-lb.is-single .g-lb-next, .g-lb.is-single .g-lb-count { display: none; }
@media (max-width: 760px) {
  .g-lb-stage { padding: 70px 12px 90px; }
  .g-lb-prev, .g-lb-next { top: auto; bottom: 20px; margin-top: 0; }
  .g-lb-prev { left: calc(50% - 70px); }
  .g-lb-next { right: calc(50% - 70px); }
  .g-lb img { max-height: calc(100vh - 200px); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1380px) {
  .badge { display: none; }
}
@media (max-width: 1180px) {
  #header .mod_navigation a, #header .mod_navigation strong { padding: 8px 10px; font-size: 14px; }
  .moon { width: 260px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  :root { --gutter: 32px; }
  .nav-toggle { display: inline-flex; }
  #header .mod_navigation {
    position: fixed; left: 0; right: 0; top: var(--header-h, 78px); bottom: 0; background: var(--ink); overflow-y: auto;
    padding: 24px var(--gutter) 60px; opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav-open #header .mod_navigation { opacity: 1; visibility: visible; transform: none; }
  .nav-open #header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--ink); }
  .nav-open { overflow: hidden; }
  #header .mod_navigation .level_1 { flex-direction: column; align-items: stretch; gap: 4px; }
  #header .mod_navigation .level_1 > li > a, #header .mod_navigation .level_1 > li > strong { font-family: var(--serif); font-size: 34px; font-weight: 700; padding: 10px 0; border-radius: 0; background: none !important; color: var(--ghost); font-variation-settings: "SOFT" 100, "WONK" 1; }
  #header .mod_navigation .level_1 > li > a:hover { color: var(--moon); }
  #header .mod_navigation .level_2 { position: static; opacity: 1; visibility: visible; transform: none; background: none; border: 0; box-shadow: none; padding: 0 0 10px 4px !important; }
  #header .mod_navigation .level_2 a, #header .mod_navigation .level_2 strong { font-size: 18px; padding: 6px 0; background: none !important; }
  .split, .split.even, .announce, .story, .cols-2, .main-sp { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .split .sticky { position: static; }
  .main-sp-logo { border-right: 0; border-bottom: 2px solid var(--ink); }
}
@media (max-width: 760px) {
  :root { --gutter: 20px; }
  body.gespenst { font-size: 17px; }
  .sec { padding: 84px 0; }
  #header > .inside { height: 66px; }
  .site-logo img { height: 24px; }
  .topbanner-bar { font-size: 12px; }
  .hero-stage { min-height: 0; }
  .hero-copy { padding: 190px var(--gutter) 230px; }
  .pill { font-size: 13px; }
  .moon { width: 150px; right: 20px; top: 26px; }
  .cloud { display: none; }
  .land { height: 200px; }
  .torch, .torch-glow { display: none; }
  .marquee-track span { font-size: 24px; }
  .facts { grid-template-columns: minmax(0, 1fr); margin-top: 44px; }
  .fact { min-height: 0; }
  .mapwrap img { height: 340px; }
  .cols-2 { margin-top: 50px; }
  .region { flex-direction: column; align-items: flex-start; }
  .timeline::before { left: 8px; }
  .timeline h3 { margin: 40px 0 28px; }
  .timeline p, .timeline p:nth-of-type(odd), .timeline p:nth-of-type(even) { width: 100%; margin: 0; text-align: left; padding: 0 0 36px 40px; }
  .timeline p:nth-of-type(odd)::after, .timeline p:nth-of-type(even)::after { left: 1px; right: auto; }
  .next-chapter { padding: 32px 24px !important; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .story { margin-top: 56px; }
  .ce_gallery ul, .content-gallery ul { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; }
  .slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .main-sp-txt { padding: 30px; }
  .ce_form { padding: 26px; border-radius: 28px; }
  .ce_form .formbody > .widget-text:nth-child(1 of .widget-text), .ce_form .formbody > .widget-text:nth-child(2 of .widget-text) { grid-column: span 2; }
  .pagehead-stage { padding: 80px 0 90px; }
  .pagehead-stage .moon { width: 120px; top: 24px; right: -20px; }
  .pagehead-stage.curtain { padding: 140px 0 90px; }
  #footer > .inside { padding: 60px var(--gutter) 30px; }
  .g-ghost { width: 64px; height: 76px; }
  .g-bubble { font-size: 15px; }
}
@media print {
  .g-ghost, .nav-toggle, .torch, .torch-glow, .stars, .cloud, .marquee-band { display: none !important; }
  #header { position: static; }
}


/* Spielplan (vereinfacht, ab Update 2): Datum | Zeiten */
.spielplan td:last-child { text-align: right; white-space: nowrap; }
.spielplan .zeit + .zeit { margin-left: 6px; }
.spielplan .tag { display: inline-block; margin-left: 12px; padding: 3px 12px; border-radius: 999px; border: 1.5px solid currentColor; font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; vertical-align: middle; }
.spielplan tr:first-child td { border-top: 2px solid currentColor; }
@media (max-width: 760px) {
  .spielplan td:last-child { text-align: left; display: block; margin-top: 8px; }
  .spielplan tr:first-child td { border-top: 0; }
  .spielplan tr:first-child { border-top: 2px solid currentColor; }
  .spielplan .tag { margin-left: 8px; }
}

/* ==========================================================================
   Update 3: Seitenkopf immer mit Wellenkante in den hellen Abschnitt
   ========================================================================== */
.pagehead-stage .hills { display: none; }
.pagehead-stage::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 70px; z-index: 3; pointer-events: none;
  background: var(--paper-bg);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath d='M0 40 C 240 10 480 30 720 24 C 960 18 1200 44 1440 30 L1440 70 L0 70 Z'/%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath d='M0 40 C 240 10 480 30 720 24 C 960 18 1200 44 1440 30 L1440 70 L0 70 Z'/%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%;
}
@media (max-width: 760px) { .pagehead-stage::after { height: 40px; } }

/* Komponenten, die bisher nur auf dunklem Grund standen, auf hellem Grund lesbar */
.paper .content-text.addr, .paper .ce_text.addr { color: var(--paper-muted); }
.paper .content-text.addr p:first-child, .paper .ce_text.addr p:first-child { color: var(--paper-fg); }
.paper .warn { background: rgba(43, 52, 136, .07); border-color: var(--paper-accent); }
.paper .warn p { color: var(--paper-muted); }
.paper .btn-line { border-color: var(--paper-fg); color: var(--paper-fg) !important; }
.paper .btn-line:hover { background: rgba(11, 16, 48, .06); }
.paper .mapwrap figure { border-color: rgba(11, 16, 48, .2); box-shadow: 0 30px 60px rgba(11, 16, 48, .25); }
.paper .mapwrap img { filter: saturate(.85) contrast(1.02); }
.paper .mapwrap:hover img { filter: none; }
.paper .map-pin svg { filter: drop-shadow(0 4px 10px rgba(11, 16, 48, .45)); }
.paper .timeline::before { background: repeating-linear-gradient(to bottom, rgba(11, 16, 48, .3) 0 8px, transparent 8px 16px); }
.paper .timeline h3 { background: var(--paper-bg); border-color: var(--paper-line); color: var(--paper-fg); }
.paper .timeline p { color: var(--paper-muted); }
.paper .timeline p strong { color: var(--paper-accent); }
.paper .timeline p::after { box-shadow: 0 0 0 6px rgba(246, 201, 69, .35); }
.paper .stat { border-color: var(--paper-dash); background: var(--paper-card); }
.paper .stat b { color: var(--paper-accent); }
.paper .stat span { color: var(--paper-muted); }
.paper .content-text.storytext p, .paper .ce_text.storytext p { color: var(--paper-muted); }
.paper .content-text.storytext h3, .paper .ce_text.storytext h3,
.paper .content-text.storytext p:first-of-type::first-letter, .paper .ce_text.storytext p:first-of-type::first-letter,
.paper .content-text.credits p:last-child, .paper .ce_text.credits p:last-child { color: var(--paper-accent); }
.paper [style*="color:var(--mist)"] { color: var(--paper-muted) !important; }
.paper .mail-big a { border-bottom-color: var(--paper-accent); }
.paper .ce_form { box-shadow: 0 30px 60px rgba(11, 16, 48, .2); color: var(--ghost); }
.paper .ce_form h2, .paper .ce_form h3 { color: var(--ghost); }
body.ton-daemmerung .paper .ce_form { border-color: rgba(251, 248, 241, .25); }

/* Contao 5: Galerie-Markup (content-gallery > ul > li > figure) */
.content-gallery ul { list-style: none; }
.content-gallery li::marker { content: none; }
.content-text .rte > :last-child { margin-bottom: 0; }

/* ==========================================================================
   Update 4: Kapitelseiten mit Abschnitten, Leiste «Auf dieser Seite»,
   Zurück/Weiter, Personen, Namensliste, Karte mit Legende
   ========================================================================== */

/* Lange Wörter (z. B. «Barrierefreiheit») brechen auf dem Handy mit Trennstrich um */
.gespenst h1, .gespenst h2, .gespenst h3 { overflow-wrap: break-word; }
@media (max-width: 760px) { .gespenst h1, .gespenst h2, .gespenst h3 { -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 10 4 4; } }
@media (max-width: 420px) { .pagehead-stage h1 { font-size: 44px; } }

/* ---------- Abschnittskopf ---------- */
.sechead { scroll-margin-top: calc(var(--hh, 78px) + 70px); }
.sec > .sechead--anker { display: block; height: 0; margin-top: 0; margin-bottom: 0; }
.sec > .sechead--anker + *, .sec > .sechead--titel + *, .sec > .sechead--band + * { margin-top: 0; }

.sechead--titel { margin-bottom: 44px; }
.sec > * + .sechead--titel { margin-top: 120px; }
.sechead--titel h2 { margin: 0; }
.sechead--titel .intro { max-width: 640px; margin: 22px 0 0 !important; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: var(--paper-muted); }
.night .sechead--titel .intro { color: var(--mist); }

.sechead--band {
  position: relative; overflow: hidden; isolation: isolate; color: var(--ghost);
  background: radial-gradient(820px 440px at 86% 0%, #27307A 0%, #141B4C 55%, #0B1030 92%);
  padding: 140px 0 130px;
}
body.gespenst .sec > .sechead--band { width: 100%; max-width: none; margin: 0 0 90px; }
body.gespenst .sec > * + .sechead--band { margin-top: 120px; }
body.gespenst .sec > .sechead--band:first-child { margin-top: -140px; }
body.gespenst .sec.tight-top > .sechead--band:first-child { margin-top: -40px; }
.sechead--band .stars { inset: 0; }
.sechead--band .sechead-inner { position: relative; z-index: 2; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sechead--band .kicker { color: var(--moon) !important; }
.sechead--band h2 { font-size: clamp(44px, 7vw, 108px); font-weight: 800; line-height: .92; letter-spacing: -.03em; margin: 0; max-width: 18ch; color: var(--ghost); }
.sechead--band .intro { max-width: 620px; color: var(--mist); font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; margin: 26px 0 0 !important; }
.sechead--band::before, .sechead--band::after {
  content: ""; position: absolute; left: 0; right: 0; height: 70px; z-index: 3; pointer-events: none; background: var(--paper-bg);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath d='M0 40 C 240 10 480 30 720 24 C 960 18 1200 44 1440 30 L1440 70 L0 70 Z'/%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath d='M0 40 C 240 10 480 30 720 24 C 960 18 1200 44 1440 30 L1440 70 L0 70 Z'/%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%;
}
.sechead--band::before { top: -1px; transform: rotate(180deg); }
.sechead--band::after { bottom: -1px; }
/* Übergänge an dunkle Nachbarn anpassen */
.sec.night + .sec > .sechead--band:first-child::before { display: none; }
.sec.night > .sechead--band::after { background: var(--ink); }
.sec.night > .sechead--band:not(:first-child)::before { background: var(--ink); }

/* ---------- Leiste «Auf dieser Seite» ---------- */
.secbar {
  position: sticky; top: var(--hh, 78px); z-index: 55;
  background: var(--paper-bg); color: var(--paper-fg);
  border-bottom: 1px solid var(--paper-dash); box-shadow: 0 10px 24px -18px rgba(11, 16, 48, .5);
}
.secbar-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 16px; min-height: 60px; }
.secbar-label { flex: none; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--paper-accent); }
.secbar ul { position: relative; list-style: none; margin: 0; padding: 8px 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.secbar ul::-webkit-scrollbar { display: none; }
.secbar a { display: block; padding: 8px 15px; border-radius: 999px; font-size: 15px; font-weight: 600; line-height: 1.2; color: var(--paper-fg) !important; text-decoration: none; white-space: nowrap; transition: background-color .2s, color .2s; }
.secbar a:hover { background: rgba(11, 16, 48, .07); }
.secbar a.is-current { background: var(--ink); color: var(--ghost) !important; }
body.ton-daemmerung .secbar a:hover { background: rgba(251, 248, 241, .12); }
body.ton-daemmerung .secbar a.is-current { background: var(--moon); color: var(--ink) !important; }

/* ---------- Zurück / Weiter am Seitenende ---------- */
.chapnav { background: var(--ink); border-top: 1px solid var(--line-dark); }
.chapnav-inner { max-width: var(--wrap); margin: 0 auto; padding: 64px var(--gutter); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.chapnav a {
  display: flex; flex-direction: column; gap: 8px; padding: 28px 32px; border-radius: var(--radius);
  border: 1.5px solid rgba(188, 196, 240, .25); color: var(--ghost) !important; text-decoration: none;
  transition: transform .3s var(--ease-pop), background-color .2s, border-color .2s, color .2s;
}
.chapnav a:hover { background: var(--moon); border-color: var(--moon); color: var(--ink) !important; transform: translateY(-4px) rotate(-.8deg); }
.chapnav .dir { font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--moon); }
.chapnav a:hover .dir { color: var(--ink); }
.chapnav .ttl { font-family: var(--serif); font-variation-settings: "SOFT" 100, "WONK" 1; font-size: clamp(26px, 3vw, 42px); font-weight: 800; line-height: 1.02; letter-spacing: -.015em; }
.chapnav .is-next { grid-column: 2; text-align: right; align-items: flex-end; }

/* ---------- Das Stück (Einleitung) ---------- */
.content-text.stueck-intro .rte, .ce_text.stueck-intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: center; }
.stueck-intro .credit { font-family: var(--serif); font-variation-settings: "SOFT" 100, "WONK" 1; font-style: italic; font-weight: 500; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.12; letter-spacing: -.01em; margin: 0; }
.stueck-intro .credit .kicker { font-style: normal; }
.stueck-intro ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.stueck-intro li { background: var(--paper-card); color: var(--ink); border: 2px solid var(--ink); border-radius: 22px; padding: 16px 22px; box-shadow: 5px 5px 0 var(--ink); font-size: 18px; line-height: 1.4; font-weight: 600; }
.stueck-intro li:nth-child(2) { background: var(--moon); transform: rotate(-1deg); }
.stueck-intro li strong { display: block; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--plum); margin-bottom: 4px; }

/* ---------- Personen ---------- */
.persons { display: grid; gap: 28px 22px; }
.persons--kacheln { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.persons--gross { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; }
.person { margin: 0; min-width: 0; }
.persons--kacheln .person:nth-child(3n+2) { transform: translateY(36px); }
.persons--kacheln { padding-bottom: 36px; }
.person-photo {
  aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--paper-card);
  border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); transition: transform .35s var(--ease-pop);
}
.persons--gross .person-photo { max-width: 340px; }
.person:hover .person-photo { transform: translateY(-4px) rotate(-1.2deg); }
.person-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.person-ph {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  color: rgba(11, 16, 48, .16); background: repeating-linear-gradient(-45deg, transparent 0 14px, rgba(11, 16, 48, .035) 14px 28px);
}
.person-ph span { color: var(--paper-muted); font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.person-body { padding: 22px 4px 0; }
.gespenst .person-name { font-size: clamp(22px, 2.1vw, 30px); margin: 0 0 6px; }
.person-role { font-size: 16px; font-weight: 600; line-height: 1.45; color: var(--paper-accent); margin: 0 !important; }
.person-text { margin-top: 18px; color: var(--paper-muted); font-size: 17px; line-height: 1.65; }
.person-text p:last-child { margin-bottom: 0; }
.person-link { margin: 20px 0 0 !important; }
.btn-small { min-height: 42px; padding: 0 18px; font-size: 14px; }
.night .person-role { color: var(--moon); }
.night .person-text { color: var(--mist); }

/* ---------- Namensliste (Hinter der Bühne) ---------- */
.crew { border-top: 2px solid var(--paper-line); }
.crew-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--paper-dash); }
.crew-name { font-family: var(--serif); font-variation-settings: "SOFT" 100, "WONK" 1; font-weight: 700; font-size: 22px; line-height: 1.25; margin: 0 !important; }
.crew-tasks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.crew-tasks li { padding: 5px 13px; border-radius: 999px; background: var(--paper-card); border: 1.5px solid var(--paper-dash); font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--ink); }

/* ---------- Spielort: Anreise mit einer Karte und Legende ---------- */
.split.anreise { align-items: start; }
.split.anreise .mapwrap { position: sticky; top: calc(var(--hh, 78px) + 96px); }
.mapwrap--full img, .paper .mapwrap--full img { height: auto; object-fit: initial; }
.kicker-gap { margin-top: 110px !important; }
.map-legend {
  list-style: none; margin: 18px 0 0; padding: 16px 20px; display: flex; flex-wrap: wrap; gap: 10px 22px;
  background: var(--paper-card); color: var(--ink); border: 2px solid var(--ink); border-radius: 22px; box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-1.2deg); font-size: 15px; font-weight: 600; line-height: 1.3;
}
.map-legend li { display: flex; align-items: center; gap: 10px; }
.map-legend b { flex: none; width: 28px; height: 28px; border-radius: 50%; background: #1D5FA8; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; border: 2px solid #fff; box-shadow: 0 0 0 1.5px #1D5FA8; }

/* ---------- Barrierefreiheit: Checkliste ---------- */
.checklist ul { list-style: none; padding: 0; margin: 30px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.checklist li { position: relative; margin: 0; background: var(--paper-card); color: var(--ink); border: 1.5px solid var(--paper-dash); border-radius: 20px; padding: 18px 20px 18px 60px; font-size: 17px; line-height: 1.5; }
.checklist li::before { content: "✓"; position: absolute; left: 18px; top: 17px; width: 28px; height: 28px; border-radius: 50%; background: var(--moon); color: var(--ink); font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.checklist li:has(strong) { border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.checklist li:has(strong)::before { content: "!"; background: var(--ink); color: var(--moon); }
.checklist .rte > p:first-child { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; max-width: 820px; }

/* ---------- Bistro / Wen suchen wir ---------- */
.bistro-card .perk-ic { background: var(--ink); color: var(--moon); }
.bistro-card h3 { margin: 4px 0 0; }
.cards-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.cards-2 > .card { margin: 0; }
.content-text.card .rte > * { margin: 0 0 12px; }
.content-text.card .rte > :last-child { margin-bottom: 0; }
.content-text.card h3 { margin-bottom: 4px !important; }
.content-text.card a[href^="mailto:"] { font-weight: 700; overflow-wrap: anywhere; }

@media (max-width: 1180px) {
  .persons--kacheln .person:nth-child(3n+2) { transform: none; }
  .persons--kacheln { padding-bottom: 0; }
}
@media (max-width: 980px) {
  .content-text.stueck-intro .rte, .ce_text.stueck-intro { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .persons--kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .persons--gross { gap: 48px; }
  .split.anreise .mapwrap { position: relative; top: auto; }
  .chapnav-inner { padding: 44px var(--gutter); }
}
@media (max-width: 760px) {
  .sechead--band { padding: 86px 0 84px; }
  body.gespenst .sec > .sechead--band { margin-bottom: 56px; }
  body.gespenst .sec > * + .sechead--band { margin-top: 80px; }
  body.gespenst .sec > .sechead--band:first-child { margin-top: -84px; }
  .sechead--band::before, .sechead--band::after { height: 40px; }
  .sec > * + .sechead--titel { margin-top: 80px; }
  .sechead--titel { margin-bottom: 32px; }
  .secbar-label { display: none; }
  .secbar-inner { padding: 0; min-height: 54px; }
  .secbar ul { padding: 8px var(--gutter); scroll-padding-inline: var(--gutter); }
  .secbar a { font-size: 14px; padding: 8px 13px; }
  .chapnav-inner { gap: 10px; padding: 32px var(--gutter); }
  .chapnav a { padding: 18px; border-radius: 22px; }
  .chapnav .dir { font-size: 11px; letter-spacing: .12em; }
  .chapnav .ttl { font-size: 21px; }
  .persons--gross { grid-template-columns: minmax(0, 1fr); }
  .persons--gross .person-photo { max-width: 280px; }
  .persons--kacheln { gap: 22px 14px; }
  .person-body { padding-top: 14px; }
  .gespenst .persons--kacheln .person-name { font-size: 19px; }
  .persons--kacheln .person-role { font-size: 14px; }
  .crew-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .kicker-gap { margin-top: 64px !important; }
  .map-legend { flex-direction: column; }
  .checklist ul { grid-template-columns: minmax(0, 1fr); }
  .cards-2 { grid-template-columns: minmax(0, 1fr); }
}
@media print {
  .secbar, .chapnav { display: none !important; }
}

/* Nachträge Update 4 */
.paper .moral p { color: var(--paper-accent); }
.sec:has(+ .sec > .sechead--band:first-child) { padding-bottom: 100px; }
.sec.paper + .sec.night:has(> .sechead) { position: relative; }
.sec.paper + .sec.night:has(> .sechead)::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 70px; z-index: 1; pointer-events: none; background: var(--paper-bg); transform: rotate(180deg);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath d='M0 40 C 240 10 480 30 720 24 C 960 18 1200 44 1440 30 L1440 70 L0 70 Z'/%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath d='M0 40 C 240 10 480 30 720 24 C 960 18 1200 44 1440 30 L1440 70 L0 70 Z'/%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%;
}
@media (max-width: 760px) {
  .sec:has(+ .sec > .sechead--band:first-child) { padding-bottom: 64px; }
  .sec.paper + .sec.night:has(> .sechead)::before { height: 40px; }
}
@media (max-width: 760px) {
  .sechead--band h2 { font-size: clamp(34px, 10.4vw, 44px); }
}

/* ==========================================================================
   Update 5: Startseite als «Eintrittstor», Zurück/Weiter in Gelb, ohne Footer-Emblem
   ========================================================================== */
/* Startbild kompakter: vom gelben Banner bis zum Laufband auf einem Bildschirm */
@media (min-width: 761px) {
  .hero-stage { --moon-w: clamp(170px, 28vh, 320px); --moon-top: clamp(24px, 5vh, 70px); --land-h: 300px;
    min-height: clamp(470px, calc(100vh - var(--hh, 78px) - 130px), 820px); display: flex; flex-direction: column; justify-content: center; }
  .hero-copy { width: 100%; padding: clamp(28px, 5vh, 100px) var(--gutter) 178px; }
  .pill { font-size: 13px; }
  .hero-copy h1 { margin-top: 16px; }
  .hero-copy .h1a { font-size: clamp(30px, min(4vw, 6.4vh), 60px); }
  .hero-copy .h1b { font-size: clamp(70px, min(12vw, 16.5vh), 190px); }
  .hero-sub { max-width: 640px; margin-top: 18px !important; font-size: clamp(17px, min(1.5vw, 2.4vh), 21px); }
  .hero-copy .btn-row { margin-top: clamp(18px, 3.4vh, 36px); }
  .land { height: var(--land-h); }
  .hero-stage .moon { width: var(--moon-w); top: var(--moon-top); }
  .badge { top: calc(var(--moon-top) + var(--moon-w) + 8px); right: calc(7% + var(--moon-w) * .62); width: clamp(120px, 18vh, 170px); height: clamp(120px, 18vh, 170px); }
}
/* Willkommen mit Gedicht: platzsparend, normale Schrift */
.content-text.poem-kompakt, .ce_text.poem-kompakt { margin-top: 18px; }
.poem-kompakt .rte, .ce_text.poem-kompakt { columns: 2; column-gap: 64px; max-width: 760px; }
.poem-kompakt p { font-family: var(--sans); font-size: 19px; line-height: 1.55; margin: 0; color: var(--mist); break-inside: avoid; }
.poem-kompakt p:last-child { color: var(--moon); font-weight: 700; }
.paper .poem-kompakt p { color: var(--paper-muted); }
.paper .poem-kompakt p:last-child { color: var(--paper-accent); }
@media (max-width: 760px) { .poem-kompakt .rte, .ce_text.poem-kompakt { columns: 1; } .poem-kompakt p { font-size: 17px; } }

/* Zurück / Weiter: gelbe Karten statt Blau in Blau */
.chapnav a { background: var(--moon); border-color: var(--moon); color: var(--ink) !important; box-shadow: 0 10px 30px rgba(246, 201, 69, .18); }
.chapnav .dir { color: var(--ink); opacity: .75; }
.chapnav a:hover { background: var(--ghost); border-color: var(--ghost); color: var(--ink) !important; }
.chapnav a:hover .dir { opacity: 1; }

/* Footer ohne grosses Emblem */
.foot-logo-link { display: none; }
#footer > .inside { padding-top: 56px; }
#footer .foot-row:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

/* Spielplan: Türöffnung hervorgehoben */
.spielplan p strong { color: var(--paper-fg, var(--ink)); }

/* «Wen suchen wir?»: eine einzelne Karte nicht nur halb breit */
.cards-2 > .card:only-child { grid-column: 1 / -1; max-width: 760px; }
@media (max-width: 760px) { #footer > .inside { padding-top: 40px; } }
.chapnav .is-next:only-child { grid-column: 2; }
.chapnav .is-prev:only-child { grid-column: 1; }
.foot-logo-link + .foot-row { margin-top: 0; padding-top: 0; border-top: 0; }
/* Startseite: Willkommen-Titel kleiner */
.sec > .content-headline:has(+ .poem-kompakt), .sec > .ce_headline:has(+ .poem-kompakt) { font-size: clamp(32px, 3.6vw, 54px); margin-bottom: 26px; }

/* ==========================================================================
   Update 6 (16.10.2026)
   ========================================================================== */

/* Startseite: «Das Wichtigste in Kürze» unter dem Gedicht – schlicht */
.kurz { max-width: 760px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line-dark); }
.kurz-titel { font-family: var(--sans) !important; font-size: 13px !important; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--moon); margin: 0 0 18px !important; line-height: 1.3; }
.kurz-liste { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 32px; margin: 0; }
.kurz-liste > div { margin: 0; }
.kurz-liste dt { font-size: 14px; color: var(--mist); margin: 0; }
.kurz-liste dd { margin: 4px 0 0; font-size: 18px; font-weight: 700; line-height: 1.35; color: var(--ghost); }
.kurz-links { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 32px; }
.kurz-links li { margin: 0; padding: 0; }
.kurz-links li::before { content: none; }
.kurz-links a { color: var(--moon) !important; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.kurz-links a:hover { color: var(--ghost) !important; }
.paper .kurz { border-top-color: var(--paper-dash); }
.paper .kurz-titel, .paper .kurz-links a { color: var(--paper-accent) !important; }
.paper .kurz-liste dt { color: var(--paper-muted); }
.paper .kurz-liste dd { color: var(--paper-fg); }
@media (max-width: 760px) { .kurz-liste { grid-template-columns: minmax(0, 1fr); } .kurz { margin-top: 36px; } }

/* Sponsoren: Logogrösse nach Stufe (100 % = Freunde)
   Stufe: Klasse am <div class="slots …"> · Feinschliff je Logo: Feld «CSS-Klasse»
   des Hyperlink-Elements, z. B. logo-90 oder logo-115 (wirkt zusätzlich zur Stufe). */
.slots { --logo-stufe: 1; }
.slots--wegbegleiter { --logo-stufe: 1.2; }
.slots--freunde { --logo-stufe: 1; }
.slots--entdecker { --logo-stufe: .8; }
.slots--traumpartner { --logo-stufe: 1; }
.slots .ce_hyperlink, .slots .content-hyperlink { --logo-fein: 1; position: relative; }
.slots .ce_hyperlink figure, .slots .ce_hyperlink > a, .slots .content-hyperlink figure, .slots .content-hyperlink > a { container-type: inline-size; }
.slots .ce_hyperlink a, .slots .content-hyperlink a { display: flex; align-items: center; justify-content: center; }
.slots .ce_hyperlink img, .slots .content-hyperlink img {
  width: auto; height: auto;
  max-width: min(100cqi, calc(80cqi * var(--logo-stufe) * var(--logo-fein)));
  max-height: calc(100px * var(--logo-stufe) * var(--logo-fein));
}
.slots--wegbegleiter .ce_hyperlink figure, .slots--wegbegleiter .content-hyperlink figure,
.slots--wegbegleiter .ce_hyperlink > a, .slots--wegbegleiter .content-hyperlink > a,
.slots--wegbegleiter .slot-free { min-height: 170px; }
.logo-70 { --logo-fein: .7 !important; }
.logo-80 { --logo-fein: .8 !important; }
.logo-85 { --logo-fein: .85 !important; }
.logo-90 { --logo-fein: .9 !important; }
.logo-95 { --logo-fein: .95 !important; }
.logo-105 { --logo-fein: 1.05 !important; }
.logo-110 { --logo-fein: 1.1 !important; }
.logo-115 { --logo-fein: 1.15 !important; }
.logo-120 { --logo-fein: 1.2 !important; }
.logo-130 { --logo-fein: 1.3 !important; }

/* Beispiel-Logos (Update 6) zur Veranschaulichung der Stufen – vor der Aufschaltung entfernen */
.slots .demo-logo::after {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  padding: 2px 10px; border-radius: 999px; background: var(--moon); color: var(--ink);
  font-size: 12px; font-weight: 700; white-space: nowrap; pointer-events: none;
  content: "Beispiel";
}
.slots--wegbegleiter .demo-logo::after { content: "Beispiel · 120 %"; }
.slots--freunde .demo-logo::after { content: "Beispiel · 100 %"; }
.slots--entdecker .demo-logo::after { content: "Beispiel · 80 %"; }
.slots--traumpartner .demo-logo::after { content: "Beispiel · 100 %"; }

