/* Landingpage und Anlass-Seiten im Jazzclub-Design (body.nacht): Grammofon im Scheinwerferkegel, Stationen als Panels,
   Programmzettel für Preise, Vertrauen und FAQ. Baut auf den Tokens aus app.css auf, mobile-first.
   Ganz unten die Regeln für die Rechtsseiten, die dieses Stylesheet im hellen Thema laden. */

body.nacht .inhalt { max-width: none; padding: 0; }
html:has(body.nacht) { overflow-x: clip; }
body.nacht .kopf { position: sticky; top: 0; z-index: 40; }

.caps { font-family: var(--schrift); font-variant: all-small-caps; letter-spacing: .14em; font-size: .95rem; }
.l-sub { text-align: center; color: var(--messing); margin: 0 0 var(--a5); }

/* Hero */
.l-hero {
  min-height: calc(100vh - 60px);
  display: grid; place-items: center; text-align: center;
  padding: 72px 16px 40px; position: relative;
  background: radial-gradient(ellipse 70% 55% at 50% 0%, rgba(74, 16, 36, .85), rgba(23, 18, 26, 0) 70%);
}
.l-kicker { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--messing); margin: 0 0 26px; }
.l-kicker i { display: block; width: 44px; height: 1px; background: var(--messing); }
.l-hero h1 { font-size: clamp(2.35rem, 6.4vw, 4.6rem); line-height: 1.02; max-width: 16ch; margin: 0 auto; }
.l-hero-anlass h1 { font-size: clamp(2.1rem, 5vw, 4rem); max-width: 18ch; }
.l-hero-anlass .l-hint { display: none; } /* auf Anlass-Seiten folgt erst der Fragen-Block, der Scroll-Hinweis wäre irreführend */
.l-lead { font-family: var(--schrift-serif); font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.85rem); color: var(--creme-hell); max-width: 34ch; margin: 26px auto 0; line-height: 1.35; }
.l-hero-knopf { margin: 32px 0 0; }
.l-hero-knopf .btn { font-size: 1.05rem; padding: 0 30px; min-height: 52px; }
.l-nebenbei { color: var(--rauch); font-size: .9rem; margin: 14px 0 0; }
.l-hint { margin-top: 28px; color: var(--rauch); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.l-hint svg { width: 22px; height: 22px; stroke: var(--messing); animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* Reise: klebender Canvas, vier Stationen */
.journey { position: relative; height: 520vh; }
.stage {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  background: radial-gradient(ellipse 60% 50% at 50% 12%, rgba(74, 16, 36, .9), rgba(23, 18, 26, 0) 70%), var(--nacht);
}
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.fallback { display: none; width: min(560px, 80vw); margin: 0 auto; padding: 40px 0 20px; }
.fallback svg { width: 100%; height: auto; }

.station { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 5; pointer-events: none; }
.station.sichtbar .panel, html.static .panel { pointer-events: auto; }
.panel {
  position: relative; background: rgba(23, 18, 26, .78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(201, 169, 97, .6); border-radius: 18px; padding: 22px 20px 20px; max-height: 66vh; overflow: auto;
  opacity: 0; visibility: hidden; transform: translateY(28px);
  transition: opacity .35s ease-out, transform .35s ease-out, visibility .35s;
  scrollbar-width: thin; scrollbar-color: rgba(201, 169, 97, .45) transparent;
}
.station.sichtbar .panel { opacity: 1; visibility: visible; transform: none; }
.panel::before { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(201, 169, 97, .3); border-radius: 13px; pointer-events: none; }
.panel .head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.num {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 2px dotted var(--messing); display: grid; place-items: center;
  box-shadow: inset 0 0 0 4px var(--nacht), inset 0 0 0 5px var(--messing);
}
.num b { font-family: var(--schrift-display); font-weight: 400; color: var(--gold); font-size: 1.15rem; line-height: 1; }
.panel .kicker { color: var(--messing); }
.panel h2 { font-size: clamp(1.55rem, 2.6vw, 2.4rem); line-height: 1.1; margin: 0 0 12px; letter-spacing: 0; }
.panel p { color: var(--creme-hell); font-size: 1rem; max-width: 44ch; margin: 0; }
.panel p + p { margin-top: 8px; }
.panel .note { color: var(--rauch); font-size: .9rem; margin-top: 12px; }
/* Knopf klebt am Panelfuß, damit er beim Überlauf des Programmzettels nie unter der Kante verschwindet */
.l-panel-knopf { position: sticky; bottom: -20px; margin: 12px -20px -20px; padding: 12px 20px 20px; background: linear-gradient(to top, rgba(23, 18, 26, .96) 70%, rgba(23, 18, 26, 0)); }
.program .item { padding: 6px 0; }
@media (max-height: 800px) { .program .name small { display: none; } }

/* Hörprobe */
.probe { margin-top: 16px; display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid rgba(201, 169, 97, .4); border-radius: 14px; }
.play { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--gold); color: var(--nacht); display: grid; place-items: center; cursor: pointer; padding: 0; }
.play svg { width: 18px; height: 18px; fill: currentColor; grid-area: 1 / 1; }
.play .ik-pause, .playing .play .ik-play { display: none; }
.playing .play .ik-pause { display: block; }
.probe .meta { flex: 1; min-width: 0; }
.probe .meta small { color: var(--rauch); display: block; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 26px; margin-top: 6px; }
.bars i { display: block; width: 3px; background: var(--messing); height: 30%; border-radius: 2px; opacity: .7; }
.playing .bars i { animation: eq .9s ease-in-out infinite alternate; }
.bars i:nth-child(2n) { animation-delay: -.3s; height: 60%; }
.bars i:nth-child(3n) { animation-delay: -.6s; height: 90%; }
.bars i:nth-child(5n) { height: 45%; }
@keyframes eq { from { transform: scaleY(.4); } to { transform: scaleY(1.2); } }
.probe .time { font-family: var(--schrift-display); color: var(--gold); font-size: 1rem; }
.probe audio { display: none; }
.line { font-family: var(--schrift-serif); font-style: italic; font-size: 1.25rem; color: var(--creme-hell); line-height: 1.35; }
.panel .l-zeile { margin-top: 12px; }

/* Wischkarte */
.swipe { margin-top: 14px; border: 1px solid var(--messing); border-radius: 16px; padding: 16px 16px 14px; position: relative; background: rgba(74, 16, 36, .35); }
.swipe::before { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(201, 169, 97, .35); border-radius: 11px; pointer-events: none; }
.swipe .count { color: var(--messing); display: flex; justify-content: space-between; align-items: center; }
.swipe .line { font-size: 1.45rem; margin: 10px 0 14px; }
.swipe .row { display: flex; gap: 10px; }
.swipe .row button { flex: 1; min-height: 44px; border: 0; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--messing); background: transparent; color: var(--gold); font: inherit; font-weight: 500; cursor: pointer; }
.swipe .row button.yes { background: var(--gold); color: var(--nacht); box-shadow: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chips span { font-size: .85rem; color: var(--rauch); padding: 6px 10px; border: 1px solid rgba(138, 130, 144, .45); border-radius: 999px; }

/* Refrain */
.panel .refrain { margin-top: 14px; font-family: var(--schrift-serif); font-style: italic; font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.45; border-left: 1px solid var(--messing); padding-left: 16px; }
.refrain em { font-style: inherit; color: var(--gold); }
.seg { display: inline-flex; margin-top: 14px; border: 1px solid var(--messing); border-radius: 999px; overflow: hidden; }
.seg button { min-height: 44px; padding: 0 18px; border: 0; background: transparent; color: var(--gold); font: inherit; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--gold); color: var(--nacht); }

/* Programmzettel im Panel */
.program { margin-top: 14px; border-top: 1px solid var(--messing); border-bottom: 1px solid var(--messing); padding: 10px 0; }
.program .title { text-align: center; color: var(--messing); margin-bottom: 8px; }
.program .item { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 10px; padding: 8px 0; }
.program .item + .item { border-top: 1px dotted rgba(201, 169, 97, .4); }
.program .name { font-family: var(--schrift-display); font-weight: 400; color: var(--gold); font-size: 1.15rem; white-space: nowrap; max-width: 60%; }
.program .name small { display: block; font-family: var(--schrift); font-size: .78rem; color: var(--creme-hell); letter-spacing: 0; font-weight: 400; white-space: normal; }
.program .dots { border-bottom: 1px dotted rgba(201, 169, 97, .6); align-self: end; margin-bottom: 6px; }
.program .price { font-family: var(--schrift-display); color: var(--creme-hell); font-size: 1.15rem; white-space: nowrap; }
.badge { display: inline-block; font-family: var(--schrift); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--nacht); background: var(--gold); padding: 2px 8px; border-radius: 999px; margin-left: 8px; vertical-align: middle; }
.panel .extras { margin-top: 10px; color: var(--rauch); font-size: .9rem; line-height: 1.7; }
.extras b { color: var(--creme-hell); font-weight: 500; }

/* Vertrauen, Anlässe, FAQ */
.trust { padding: 96px 16px; background: linear-gradient(to bottom, var(--nacht), var(--samt) 30%, var(--samt) 70%, var(--nacht)); }
.trust .wrap, .l-anlaesse-block, .l-faq-block, .l-fragen-block { max-width: 1100px; margin: 0 auto; }
.trust h2, .l-anlaesse-block h2, .l-faq-block h2, .l-fragen-block h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); text-align: center; line-height: 1.1; margin: 0 0 10px; }
.zettel { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--messing); border-bottom: 1px solid var(--messing); padding: 6px 0; list-style: none; }
.zettel .item { display: grid; grid-template-columns: auto 1fr minmax(0, 26ch); align-items: baseline; gap: 12px; padding: 14px 0; }
.zettel .item + .item { border-top: 1px dotted rgba(201, 169, 97, .4); }
.zettel h3 { font-family: var(--schrift-serif); font-style: italic; font-weight: 500; font-size: 1.45rem; color: var(--gold); line-height: 1.2; margin: 0; letter-spacing: 0; }
.zettel .dots { border-bottom: 1px dotted rgba(201, 169, 97, .6); align-self: end; margin-bottom: 6px; }
.zettel p { color: var(--creme-hell); font-size: .98rem; margin: 0; }
.cta { margin: 56px 0 0; text-align: center; }
.cta .btn { font-size: 1.05rem; padding: 0 30px; min-height: 52px; }

.l-fragen-block { padding: 24px 16px 40px; }
.l-fragen.zettel { padding-left: 0; }
.l-fragen .item { grid-template-columns: auto 1fr; align-items: center; }
.l-fragen p { font-family: var(--schrift-serif); font-style: italic; font-size: 1.35rem; }

.l-anlaesse-block { padding: 72px 16px 48px; }
.l-anlaesse { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
.l-anlass {
  display: flex; align-items: center; gap: 16px; padding: 16px; height: 100%;
  background: rgba(23, 18, 26, .6); border: 1px solid rgba(201, 169, 97, .45); border-radius: 16px;
  text-decoration: none; color: var(--creme-hell); transition: border-color var(--dauer), transform var(--dauer);
}
.l-anlass:hover { border-color: var(--gold); color: var(--creme-hell); transform: translateY(-2px); }
.l-anlass img { flex: none; width: 48px; height: 48px; filter: invert(.88) sepia(.6) saturate(1.6) brightness(1.05); } /* dunkle Icons werden auf Nacht messingfarben */
.l-anlass strong { display: block; font-family: var(--schrift-display); font-weight: 400; color: var(--gold); font-size: 1.1rem; }
.l-anlass .klein { color: var(--rauch); }

.l-faq-block { padding: 48px 16px 96px; }
.l-faq { border-top: 1px dotted rgba(201, 169, 97, .4); }
.l-faq:first-child { border-top: 0; }
.l-faq summary {
  cursor: pointer; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
  font-family: var(--schrift-serif); font-style: italic; font-weight: 500; font-size: 1.35rem; color: var(--gold); line-height: 1.25;
}
.l-faq summary::-webkit-details-marker { display: none; }
.l-faq summary::after { content: "+"; font-family: var(--schrift-display); color: var(--messing); font-size: 1.4rem; line-height: 1; flex: none; }
.l-faq[open] summary::after { content: "−"; }
.l-faq p { color: var(--creme-hell); max-width: 60ch; padding-bottom: 16px; margin: 0; }

/* Fallback ohne WebGL oder bei reduzierter Bewegung: Zeichnung und Panels untereinander */
html.static .journey { height: auto; }
html.static .stage { position: static; height: auto; overflow: visible; padding-bottom: 20px; }
html.static .stage canvas { display: none; }
html.static .fallback { display: block; }
html.static .station { position: static; max-width: 640px; margin: 0 auto 20px; padding: 0 16px; transform: none; width: auto; }
html.static .panel { opacity: 1; visibility: visible; transform: none; max-height: none; }
html.static .l-hint { display: none; }

@media (max-width: 599px) {
  .zettel .item { grid-template-columns: 1fr; gap: 6px; }
  .zettel .dots { display: none; }
  .l-fragen .item { grid-template-columns: auto 1fr; }
}
@media (min-width: 640px) {
  .l-anlaesse { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .l-hero { min-height: calc(100vh - 72px); padding-top: 96px; }
  .station { left: auto; right: auto; bottom: auto; top: 50%; transform: translateY(-50%); width: 440px; }
  .station.l { left: 6vw; }
  .station.r { right: 6vw; }
  .panel { padding: 32px 30px 28px; max-height: 84vh; }
}
@media (min-width: 960px) {
  .l-anlaesse { grid-template-columns: repeat(3, 1fr); }
}

/* Rechtsseiten (helles Thema, laden dieses Stylesheet für die Regeln hier) */
.recht h2 { font-size: 1.25rem; margin-top: var(--a6); }
.recht ul { display: grid; gap: var(--a2); }
mark.anwalt { background: #FFF1C9; color: var(--text); padding: 0 .2em; border-radius: 3px; font-size: .95em; }
