/* ==========================================================================
   Blüming Pictures – gemeinsame Styles aller Seiten
   Farben laut Laura-Alina (06.11.2026)
   ========================================================================== */
@font-face { font-family: "Comichate"; src: url("../fonts/comichate.woff2") format("woff2"); font-display: block; }

:root {
  color-scheme: dark;
  /* Corporate Design */
  --weiss: #fffaed;        /* Hintergründe, Header */
  --gelb: #f3bf1d;         /* Gold-Gelb: Umrandungen, gelbe Schrift */
  --beige: #d2b58a;        /* Gold-Beige: Buttons bei News */
  --rot: #cc2b0c;          /* rote Schrift auf Weiß */
  --blau: #add6ff;         /* FAQ, Überweisung */
  /* Ergänzende Töne */
  --kino-rot: #8e1608;
  --kino-dunkel: #4a0703;
  --band-rot: #6e0c05;
  --gold-hell: #f3e2ae;
  --gold-text: #ecd9a2;
  --gold-tiefe: #7a4a06;
  --gold-bild: url("../img/gold.jpg");
  --tinte: #141210;
  --text: #ffffff;
  --text-ruhig: #f3e7e2;
  --schrift-titel: "Comichate", "Comic Sans MS", cursive;
  --schrift-text: "myriad-pro", "Myriad Pro", "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --kopf-hoehe: 76px;
  --adminbar: 0px;
}
@media (max-width: 640px) { :root { --kopf-hoehe: 62px; } }
body.admin-bar { --adminbar: 32px; }
@media (max-width: 782px) { body.admin-bar { --adminbar: 46px; } }

[hidden] { display: none !important; }
/* Kein blaues Antipp-Rechteck auf Handys; Fokusrahmen nur bei Tastaturbedienung */
* { -webkit-tap-highlight-color: transparent; }
:focus:not(:focus-visible) { outline: none; }
button, summary, a, [role="tab"], [role="button"], .ws-tab, .kopf-knopf { -webkit-touch-callout: none; touch-action: manipulation; }
html { overflow-x: clip; background: var(--kino-rot); scroll-padding-top: calc(var(--kopf-hoehe) + var(--adminbar) + 12px); }
body { margin: 0; overflow-x: clip; min-height: 100dvh; background: var(--kino-rot); color: var(--text); font-family: var(--schrift-text); font-size: calc(17px * var(--sf, 1)); line-height: 1.5; }
img, video { max-width: 100%; height: auto; }
a { color: var(--gelb); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Statischer roter Hintergrund – nur der Inhalt scrollt */
.hintergrund { position: fixed; top: 0; left: 0; right: 0; height: 100vh; height: 100lvh; z-index: 0; background: var(--kino-rot) url("../img/hintergrund.jpg") center / cover no-repeat; }
.inhalt { position: relative; z-index: 2; }

/* ---------- Header ---------- */
.kopf {
  position: fixed; left: 0; right: 0; top: var(--adminbar); z-index: 50;
  height: var(--kopf-hoehe);
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--weiss); color: var(--tinte);
  box-shadow: 0 2px 14px rgba(0,0,0,.25);
  transition: background-color .3s, box-shadow .3s, color .3s;
  --klappe-streifen: var(--weiss);
}
.kopf-logo { display: block; height: calc(var(--kopf-hoehe) - 24px); position: relative; aspect-ratio: 700 / 211; }
.kopf-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .3s; }
.kopf-logo .gold-logo { opacity: 0; }
.kopf-aktionen { display: flex; align-items: center; gap: clamp(10px, 2.4vw, 22px); }
.kopf-knopf { background: none; border: 0; padding: 6px; margin: 0; cursor: pointer; color: inherit; display: grid; place-items: center; border-radius: 8px; font: inherit; text-decoration: none; }
.kopf-knopf svg { width: 34px; height: 34px; display: block; }
.kopf-knopf:focus-visible, .menue a:focus-visible { outline: 3px solid var(--gelb); outline-offset: 2px; }
.sprache-knopf { display: flex; align-items: center; white-space: nowrap; font-weight: 700; font-size: calc(16px * var(--sf, 1)); letter-spacing: .02em; }
.sprache-knopf span { font-weight: 400; opacity: .6; margin: 0 3px; }

/* Startseite ganz oben: transparenter Header mit Gold-Logo; beim ersten Scrollen sofort weiß */
.kopf.oben { background: transparent; box-shadow: none; color: var(--gold-text); --klappe-streifen: var(--kino-dunkel); }
.kopf.oben .gold-logo { opacity: 1; }
.kopf.oben .schwarz-logo { opacity: 0; }
.kopf.oben .kopf-knopf svg { filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }

/* Filmklappe: klappt beim Drüberfahren bzw. Klick zu */
.klappe-arm { transform-box: view-box; transform-origin: 5px 15.2px; }
.klappe-knopf:hover .klappe-arm, .klappe-knopf:focus-visible .klappe-arm, .klappe-knopf.klappt .klappe-arm { animation: klapp .5s cubic-bezier(.5,0,.4,1); }
@keyframes klapp { 0% { transform: rotate(0); } 12% { transform: rotate(-6deg); } 38% { transform: rotate(12.5deg); } 48% { transform: rotate(10.5deg); } 56% { transform: rotate(12.5deg); } 100% { transform: rotate(0); } }

/* Drei Striche werden beim Öffnen zum X */
.burger line { transition: transform .3s cubic-bezier(.6,0,.3,1), opacity .2s; transform-box: view-box; transform-origin: 20px 20px; }
#menue-knopf[aria-expanded="true"] .burger .b1 { transform: translateY(8px) rotate(45deg); }
#menue-knopf[aria-expanded="true"] .burger .b2 { opacity: 0; transform: scaleX(.2); }
#menue-knopf[aria-expanded="true"] .burger .b3 { transform: translateY(-8px) rotate(-45deg); }

/* Ausklappmenüs */
.menue-anker { position: relative; }
.menue {
  display: none; position: absolute; right: 0; top: calc(100% + 12px); min-width: 230px;
  background: var(--weiss); color: var(--tinte); list-style: none; margin: 0; padding: 10px 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35); z-index: 55;
}
.menue.offen { display: block; }
.menue li + li { border-top: 1.5px solid var(--rot); }
.menue a, .menue button { display: block; width: 100%; text-align: left; padding: 9px 2px; color: var(--tinte); text-decoration: none; font: inherit; font-size: calc(16px * var(--sf, 1)); background: none; border: 0; cursor: pointer; }
.menue a:hover { color: var(--rot); }
.menue .current-menu-item > a, .menue [aria-current="page"] { font-weight: 700; }

/* ---------- Filmvorhang (nur beim ersten Besuch) ---------- */
.vorhang { display: none; }
html.vorhang-an .vorhang { display: block; position: fixed; inset: 0; z-index: 9999; overflow: hidden; cursor: pointer; background: var(--band-rot) var(--vorhang-start) center / cover no-repeat; }
html.vorhang-an .vorhang.laeuft, html.vorhang-an .vorhang.ende { background: transparent; }
.vorhang video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Die beiden Hälften zeigen das Bild genau so zugeschnitten wie das Video (cover), damit es am Ende nicht springt */
.vorhang-haelfte { position: absolute; top: 0; bottom: 0; width: 50%; overflow: hidden; opacity: 0; transition: transform .9s cubic-bezier(.55,0,.35,1); will-change: transform; }
.vorhang-haelfte::before { content: ""; position: absolute; top: 0; bottom: 0; width: 200%; background: var(--bild) center / cover no-repeat; }
.vorhang-haelfte.links { left: 0; }
.vorhang-haelfte.links::before { left: 0; }
.vorhang-haelfte.rechts { right: 0; }
.vorhang-haelfte.rechts::before { right: 0; }
/* Ende: Video wird durch zwei Hälften des letzten Bildes ersetzt, die komplett aus dem Bild fahren */
.vorhang.ende video { visibility: hidden; }
.vorhang.ende .vorhang-haelfte { opacity: 1; }
.vorhang.raus .vorhang-haelfte.links { transform: translateX(-102%); }
.vorhang.raus .vorhang-haelfte.rechts { transform: translateX(102%); }
.vorhang.weg { opacity: 0; transition: opacity .3s; pointer-events: none; }

/* ---------- Echtes Gold mit wanderndem Glanzlicht ---------- */
.gold {
  position: relative; overflow: hidden; isolation: isolate;
  background: #e8b10e var(--gold-bild) center / cover;
  color: #fff; text-shadow: 0 1px 0 var(--gold-tiefe), 1px 2px 2px rgba(90, 50, 0, .55);
  box-shadow: 0 6px 0 rgba(0,0,0,.28), inset 0 1px 0 rgba(255,250,220,.9), inset 0 -2px 3px rgba(120,70,0,.45);
}
/* Glanz als Verlauf, der über die Fläche wandert: bleibt immer exakt in der (runden) Knopfform,
   auch in Safari/iOS. Kein bewegtes Element, kein Überstand, nichts kann stehen bleiben. */
.gold::after, .gold::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background-repeat: no-repeat; background-size: 300% 100%; background-position: 95% 0;
}
.gold::after { background-image: linear-gradient(110deg, transparent 38%, rgba(255,252,235,.55) 46%, rgba(255,255,255,.95) 50%, rgba(255,250,225,.5) 54%, transparent 62%); mix-blend-mode: soft-light; }
.gold::before { background-image: linear-gradient(110deg, transparent 46%, rgba(255,255,240,.7) 50%, transparent 54%); }
@keyframes glanz { 0% { background-position: 95% 0; } 55%, 100% { background-position: 5% 0; } }
/* Glanz beim Drüberfahren nur mit echter Maus (auf Handys bliebe er nach dem Antippen hängen); dauerhaft mit .glanz-immer */
@media (hover: hover) and (pointer: fine) {
  .gold:hover::after, .gold:hover::before { animation: glanz 2.4s ease-in-out infinite; }
}
.gold:focus-visible::after, .gold:focus-visible::before { animation: glanz 2.4s ease-in-out infinite; }
.gold.glanz-immer::after, .gold.glanz-immer::before { animation: glanz 3.6s ease-in-out infinite; }

/* ---------- Footer ---------- */
.fuss {
  position: relative; z-index: 1;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 56px calc(56px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; align-items: center; gap: 26px;
}
.sozial { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; list-style: none; margin: 0; padding: 0; }
.sozial a {
  width: 54px; height: 54px; border-radius: 50%; background: var(--weiss); color: var(--kino-dunkel);
  display: grid; place-items: center; text-decoration: none; box-shadow: 0 4px 12px rgba(0,0,0,.35);
  transition: transform .2s, background-color .2s; overflow: hidden;
}
.sozial a:hover { transform: translateY(-3px) scale(1.06); background: var(--gold-hell); }
.sozial a:focus-visible { outline: 3px solid var(--gelb); outline-offset: 3px; }
.sozial svg { width: 30px; height: 30px; }
.sozial .sozial-imdb svg { width: 42px; height: 42px; }
.sozial .sozial-crewunited img { width: 46px; height: 46px; object-fit: contain; }
.rechtliches { font-style: italic; font-size: calc(15px * var(--sf, 1)); margin: 0; }
.rechtliches a { color: var(--text); text-decoration: none; }
.rechtliches a:hover { text-decoration: underline; }
.rechtliches span { margin: 0 6px; opacity: .8; }

/* ---------- Bausteine ---------- */
.seite-rahmen {
  position: relative; z-index: 1; max-width: 1100px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: calc(var(--kopf-hoehe) + 40px) 24px;
}
/* Großer Seitentitel: Platzhalter in Gold, bis die Kino-Schrift-Grafik eingebaut ist */
.seitentitel {
  position: relative; display: inline-block; margin: 0 0 28px;
  font-family: var(--schrift-titel); font-weight: 400; font-size: calc(clamp(40px, 8vw, 76px) * var(--tf, 1)); line-height: 1.05; letter-spacing: .02em;
  background: #e8b10e var(--gold-bild) center / cover; -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(2px 3px 0 #5a0b04) drop-shadow(0 8px 14px rgba(0,0,0,.35));
}
.seitentitel-h1 { margin: 0 0 28px; }
.seitentitel-h1 .seitentitel-bild { margin: 0; }
.seitentitel-bild { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(clamp(54px, 9vw, 96px) * var(--kf, 1)); margin: 0 0 28px; filter: drop-shadow(0 8px 14px rgba(0,0,0,.35)); }
/* nie quetschen: Breite und Höhe skalieren zusammen; zweizeilige Variante fürs Handy darf höher sein */
picture.seitentitel-bild-rahmen { display: block; max-width: 100%; }
@media (max-width: 600px) { picture.seitentitel-bild-rahmen .seitentitel-bild { max-height: calc(112px * var(--kf, 1)); } }
.zwischentitel { font-family: var(--schrift-titel); font-weight: 400; color: var(--gelb); font-size: calc(clamp(26px, 4.4vw, 38px) * var(--tf, 1)); line-height: 1.15; margin: 0 0 14px; text-shadow: 2px 2px 0 #c4420a, 0 3px 10px rgba(0,0,0,.35); text-wrap: balance; }
.weisse-karte { background: var(--weiss); color: var(--tinte); padding: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.weisse-karte a { color: var(--rot); }
.gold-box {
  border: 2px solid transparent; border-radius: 22px; padding: clamp(18px, 3vw, 28px);
  background:
    linear-gradient(160deg, rgba(74, 7, 3, .88), rgba(110, 14, 6, .82)) padding-box,
    linear-gradient(115deg, #7a4a06, #f6e7a6 22%, #c08a24 45%, #fff3c4 62%, #9a6510 82%, #e9cf86) border-box;
  box-shadow: 0 14px 34px rgba(0,0,0,.35);
}
.knopf { display: inline-block; text-decoration: none; font-family: var(--schrift-titel); font-size: calc(clamp(22px, 3vw, 28px) * var(--tf, 1)); line-height: 1; padding: 12px 22px 13px; border-radius: 12px; border: 0; cursor: pointer; transition: transform .15s; }
.knopf:hover { transform: translateY(-2px); }
.knopf:focus-visible { outline: 3px solid var(--gelb); outline-offset: 4px; }

/* ---------- Text-Seiten (Datenschutz, Impressum, …) ---------- */
.inhalt-text { max-width: 820px; }
.inhalt-text h2, .inhalt-text h3, .inhalt-text h4 { font-family: var(--schrift-titel); font-weight: 400; color: var(--gelb); line-height: 1.2; margin: 1.6em 0 .5em; }
.inhalt-text h2 { font-size: calc(clamp(24px, 3.4vw, 32px) * var(--sf, 1)); }
.inhalt-text h3 { font-size: calc(clamp(20px, 2.8vw, 26px) * var(--sf, 1)); }
.inhalt-text p, .inhalt-text li { color: var(--text-ruhig); }
.inhalt-text a { color: var(--gelb); }
.inhalt-text img { border-radius: 4px; }

/* Einfache Beitragsliste (wird in Schritt 2 durch das News-Raster ersetzt) */
.beitrags-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.beitrag-kurz img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.beitrag-kurz h2 { font-size: calc(18px * var(--sf, 1)); margin: 10px 4px 2px; line-height: 1.25; }
.beitrag-kurz h2 a { color: var(--tinte); text-decoration: none; }
.beitrag-kurz .datum, .beitrag-voll .datum { font-size: calc(14px * var(--sf, 1)); color: #6b625c; margin: 0 4px 6px; }
.beitrag-kurz p { margin: 0 4px 8px; font-size: calc(15px * var(--sf, 1)); }
.beitrag-voll { padding: 16px; max-width: 820px; }
.beitrag-voll h1 { margin: 4px 0 12px; line-height: 1.2; }
.beitrag-voll .inhalt-text p, .beitrag-voll .inhalt-text li { color: var(--tinte); }
.fehler-seite p { font-size: calc(19px * var(--sf, 1)); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Altersabfrage (Filme ab 16) ---------- */
html.alter-dialog-offen { overflow: hidden; }
.alter-dialog-huelle { position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center; padding: 16px; background: rgba(20,4,2,.62); animation: alter-ein .2s ease-out; }
@keyframes alter-ein { from { opacity: 0; } }
.alter-dialog {
  position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  background: #c32d1a; border: clamp(10px, 1.4vw, 18px) solid #6a150a; border-radius: 10px; padding: clamp(22px, 3vw, 38px) clamp(20px, 3vw, 40px) clamp(24px, 3vw, 34px);
  box-shadow: 0 24px 60px rgba(0,0,0,.55);
}
.alter-warnung { margin: 0 0 22px; color: var(--tinte); font-style: italic; font-weight: 700; font-size: calc(clamp(19px, 2.3vw, 26px) * var(--sf, 1)); line-height: 1.3; }
.alter-frage { margin: 0 0 14px; text-align: center; color: #fff; font-style: italic; font-weight: 700; font-size: calc(clamp(19px, 2.2vw, 24px) * var(--sf, 1)); }
.alter-wahl { display: flex; flex-direction: column; background: var(--weiss); border-radius: 14px; padding: 6px 18px; box-shadow: inset 0 2px 6px rgba(0,0,0,.15); }
.alter-wahl button { font: inherit; text-align: left; background: none; border: 0; border-bottom: 1px solid rgba(20,18,16,.35); padding: 12px 6px; color: var(--tinte); font-size: calc(17px * var(--sf, 1)); cursor: pointer; }
.alter-wahl button:last-child { border-bottom: 0; }
.alter-wahl button b { font-family: var(--schrift-titel); font-weight: 400; font-size: 1.4em; line-height: 1; }
.alter-wahl button:hover, .alter-wahl button:focus-visible { background: rgba(243,191,29,.35); outline: none; border-radius: 6px; }
.alter-zu { position: absolute; right: 8px; top: 6px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; color: #fff; font-size: calc(30px * var(--sf, 1)); line-height: 1; cursor: pointer; }
.alter-zu:hover, .alter-zu:focus-visible { background: rgba(0,0,0,.2); outline: none; }
