/* =========================================================
   CINARIO – Take 50 (Aktion Black Weeks / Winter-Edition 2026)
   baut auf /assets/css/main.css auf · Seite immer dunkel
   ========================================================= */

/* Ausgabe nach Datum (data-ausgabe am <html>): black | winter | ende */
html[data-ausgabe="black"] [data-nur]:not([data-nur~="black"]):not([data-nur~="aktiv"]),
html[data-ausgabe="winter"] [data-nur]:not([data-nur~="winter"]):not([data-nur~="aktiv"]),
html[data-ausgabe="ende"] [data-nur]:not([data-nur~="ende"]) { display: none !important; }

.t50 { --rec: #c8321e; --ice: #d9e6ef; background: var(--bg); }
html { scroll-padding-top: 16px; }

/* ---------- Kopf ---------- */
.t50-top {
  height: 64px; max-width: 1320px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 32px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; position: relative; z-index: 5;
}

/* ---------- Bühne ---------- */
.t50-buehne { max-width: 1240px; margin: 0 auto; padding: 0 clamp(12px, 3vw, 32px); }
.t50-stage {
  position: relative; width: 100%;
  height: calc(100vh - 64px - 56px); height: calc(100svh - 64px - 56px);
  min-height: 460px; max-height: 720px;
  border-radius: 18px; overflow: hidden; background: #0b0a09; isolation: isolate;
  box-shadow: 0 0 0 1px rgba(238, 229, 218, 0.08), 0 30px 80px rgba(0, 0, 0, 0.45);
  touch-action: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}
html[data-ausgabe="winter"] .t50-stage { box-shadow: 0 0 0 1px rgba(217, 230, 239, 0.16), 0 30px 90px rgba(40, 60, 80, 0.35); }
html[data-ausgabe="ende"] .t50-stage { cursor: default; }
.t50-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* Bildschirme über dem Spiel */
.t50-screen {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: clamp(64px, 11%, 90px) 22px; overflow-y: auto;
  background: radial-gradient(ellipse 80% 70% at 50% 50%, rgba(10, 9, 8, 0.5), rgba(10, 9, 8, 0.84));
  animation: t50-in 0.45s var(--ease-out) both;
}
.t50-screen[hidden] { display: none; }
.t50-screen__inner { max-width: 560px; margin: auto; }
.t50-screen--start { align-items: flex-end; background: linear-gradient(to bottom, rgba(10, 9, 8, 0) 18%, rgba(10, 9, 8, 0.55) 52%, rgba(10, 9, 8, 0.86)); }
.t50-screen--start .t50-screen__inner { margin: auto auto 0; }
@keyframes t50-in { from { opacity: 0; } to { opacity: 1; } }

.t50-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 0.74rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--cream-2); font-weight: 400; }
.t50-rec { width: 8px; height: 8px; border-radius: 50%; background: var(--rec); box-shadow: 0 0 10px rgba(200, 50, 30, 0.7); animation: t50-blink 1.2s steps(1) infinite; flex: none; }
html[data-ausgabe="ende"] .t50-rec { animation: none; background: var(--muted); box-shadow: none; }
@keyframes t50-blink { 50% { opacity: 0.15; } }
.t50-h1 { margin: 0; font-weight: 400; font-size: clamp(3rem, 1.6rem + 6vw, 5.6rem); line-height: 1; letter-spacing: -0.01em; }
.t50-lead { margin: 16px auto 0; max-width: 30em; color: var(--cream-2); font-size: clamp(0.98rem, 0.92rem + 0.3vw, 1.12rem); }
.t50-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }
.t50-hint { margin: 16px 0 0; font-size: 0.8rem; color: var(--muted); }
.t50-link {
  margin-top: 16px; padding: 6px 4px; border: 0; background: none; font: inherit; font-size: 0.86rem; color: var(--cream-2);
  text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(238, 229, 218, 0.35); cursor: pointer;
}
.t50-link:hover { color: var(--cream); text-decoration-color: var(--cream); }

/* Schnitt */
.t50-cut__word { margin: 0; font-weight: 300; font-size: clamp(2.6rem, 1.6rem + 5vw, 4.6rem); line-height: 1; letter-spacing: -0.01em; }
.t50-cut__info { margin: 12px 0 0; color: var(--cream-2); }
.t50-cut__info strong { color: var(--cream); font-weight: 500; }

/* Filmklappe (Schnitt) */
.t50-klappe { position: relative; width: 74px; height: 56px; margin: 0 auto 20px; }
.t50-klappe__body, .t50-klappe__top { position: absolute; left: 0; right: 0; border-radius: 4px; }
.t50-klappe__body { bottom: 0; height: 40px; background: #1d1a17; border: 1px solid var(--line-strong); }
.t50-klappe__body::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: repeating-linear-gradient(135deg, var(--cream) 0 8px, #121110 8px 16px); border-radius: 3px 3px 0 0; }
.t50-klappe__top { top: 0; height: 11px; background: repeating-linear-gradient(135deg, var(--cream) 0 8px, #121110 8px 16px); transform-origin: 2px 100%; animation: t50-klappe 0.5s cubic-bezier(.5, 0, .7, 1.4) both 0.05s; }
@keyframes t50-klappe { from { transform: rotate(-24deg); } to { transform: rotate(0deg); } }

/* Banner bei Zwischenständen */
.t50-banner {
  position: absolute; z-index: 1; left: 50%; top: calc(7.8% + 14px); margin: 0; max-width: calc(100% - 32px);
  transform: translate(-50%, -6px); opacity: 0; pointer-events: none;
  padding: 8px 18px; border: 1px solid var(--line-strong);
  background: rgba(14, 13, 12, 0.78); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 0.84rem; line-height: 1.4; text-align: center; width: max-content; border-radius: 16px;
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease-out);
}
.t50-banner strong { font-weight: 500; }
.t50-banner.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Drehschein ---------- */
.t50-screen--win { padding: 18px; }
.t50-sheet {
  width: min(440px, 100%); margin: auto; text-align: left; border-radius: 16px; overflow: hidden;
  background: linear-gradient(to bottom, #1d1a17, #141210); border: 1px solid var(--line-strong);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); cursor: default;
  animation: t50-sheet 0.7s var(--ease-out) both;
}
@keyframes t50-sheet { from { opacity: 0; transform: translateY(22px) scale(0.98); } to { opacity: 1; transform: none; } }
.t50-sheet__clap { position: relative; height: 34px; background: #0f0e0d; }
.t50-sheet__clap::before, .t50-sheet__clap span { content: ""; position: absolute; left: 0; right: 0; height: 17px; background: repeating-linear-gradient(135deg, var(--cream) 0 14px, #121110 14px 28px); }
.t50-sheet__clap::before { bottom: 0; }
.t50-sheet__clap span { top: 0; transform-origin: 0 100%; animation: t50-klappe 0.55s cubic-bezier(.5, 0, .7, 1.4) both 0.45s; }
html[data-ausgabe="winter"] .t50-sheet__clap::before, html[data-ausgabe="winter"] .t50-sheet__clap span { background: repeating-linear-gradient(135deg, var(--ice) 0 14px, #121110 14px 28px); }
.t50-sheet__body { padding: 20px 24px 22px; }
.t50-sheet__eyebrow { margin: 0; font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }
.t50-sheet__title { margin: 4px 0 14px; font-weight: 400; font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.5rem); line-height: 1.1; }
.t50-sheet__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0 0 16px; border-top: 1px solid var(--line); }
.t50-sheet__facts div { padding: 8px 0; border-bottom: 1px solid var(--line); }
.t50-sheet__facts div:nth-child(odd) { padding-right: 12px; border-right: 1px solid var(--line); }
.t50-sheet__facts div:nth-child(even) { padding-left: 14px; }
.t50-sheet__facts dt { font-size: 0.64rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.t50-sheet__facts dd { margin: 2px 0 0; font-size: 0.9rem; }
.t50-sheet__label { margin: 0 0 6px; font-size: 0.8rem; color: var(--cream-2); }
.t50-sheet__code {
  margin: 0; padding: 12px 14px; border-radius: 10px; border: 1px dashed var(--line-strong); background: rgba(0, 0, 0, 0.28);
  font-weight: 500; font-size: clamp(1.15rem, 0.9rem + 1.3vw, 1.5rem); letter-spacing: 0.12em; text-align: center;
  -webkit-user-select: all; user-select: all; cursor: text;
}
.t50-sheet__terms { margin: 8px 0 0; font-size: 0.8rem; color: var(--muted); text-align: center; }
.t50-sheet .t50-actions { margin-top: 16px; }
.t50-sheet .t50-actions .btn { flex: 1 1 auto; }
.t50-sheet__more { display: flex; justify-content: center; align-items: center; gap: 6px; color: var(--muted); }
.t50-sheet__more .t50-link { margin-top: 8px; }
.t50-sheet__note { margin: 6px 0 0; font-size: 0.74rem; color: var(--muted); text-align: center; }

/* ---------- Leiste unter der Bühne ---------- */
.t50-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 4px; font-size: 0.8rem; color: var(--muted); }
.t50-ton {
  display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 38px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--cream-2); font: inherit; font-size: 0.82rem; cursor: pointer;
  transition: border-color 0.3s, color 0.3s, background-color 0.3s;
}
.t50-ton:hover { color: var(--cream); border-color: rgba(238, 229, 218, 0.6); }
.t50-ton svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.t50-ton .t50-ton__aus { display: none; }
.t50-ton[aria-pressed="true"] { color: var(--cream); background: rgba(238, 229, 218, 0.08); }
.t50-ton[aria-pressed="true"] .t50-ton__aus { display: inline; }
.t50-ton[aria-pressed="true"] .t50-ton__an { display: none; }

/* ---------- Info ---------- */
.t50-info { padding: clamp(64px, 10vh, 120px) 0 clamp(48px, 8vh, 90px); }
.t50-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.t50-steps li { padding: 26px 24px 28px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(to bottom, rgba(238, 229, 218, 0.03), rgba(238, 229, 218, 0)); }
.t50-steps__nr { display: block; font-size: 0.78rem; letter-spacing: 0.24em; color: var(--muted); }
.t50-steps h3 { margin: 18px 0 8px; font-weight: 400; font-size: 1.3rem; }
.t50-steps p { margin: 0; color: var(--cream-2); font-size: 0.95rem; }

.t50-terms { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: clamp(28px, 5vw, 80px); margin-top: clamp(64px, 10vh, 110px); padding-top: clamp(40px, 6vh, 64px); border-top: 1px solid var(--line); }
.t50-terms__h { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.4rem); }
.t50-terms ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; font-size: 0.93rem; color: var(--cream-2); }
.t50-terms li { position: relative; padding-left: 22px; }
.t50-terms li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 10px; height: 1px; background: var(--muted); }
.t50-terms strong { color: var(--cream); font-weight: 500; }
.t50-terms a { text-underline-offset: 3px; }

.t50-cta { margin-top: clamp(64px, 10vh, 110px); text-align: center; }
.t50-cta p { margin: 0; font-size: clamp(1.2rem, 1rem + 0.8vw, 1.6rem); font-weight: 300; }

.t50-foot {
  max-width: 1320px; margin: 0 auto; padding: 26px clamp(16px, 3vw, 32px) 34px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: 0.8rem; color: var(--muted);
}
.t50-foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.t50-foot a { color: var(--cream-2); text-decoration: none; }
.t50-foot a:hover { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }

.t50-toast {
  position: fixed; z-index: 60; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); margin: 0;
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  padding: 10px 18px; border-radius: 999px; background: var(--cream); color: var(--on-cream); font-size: 0.88rem; font-weight: 500;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4); transition: opacity 0.3s, transform 0.4s var(--ease-out);
}
.t50-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Handy ---------- */
@media (max-width: 860px) {
  .t50-steps { grid-template-columns: 1fr; }
  .t50-terms { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .t50-top { height: 56px; }
  .t50-top .btn { min-height: 36px; padding: 6px 14px; font-size: 0.8rem; }
  .t50-buehne { padding: 0; }
  .t50-stage { border-radius: 0; height: calc(100vh - 56px - 52px); height: calc(100svh - 56px - 52px); min-height: 430px; max-height: none; box-shadow: none; }
  .t50-bar { min-height: 52px; padding: 0 16px; }
  .t50-bar__hint { font-size: 0.74rem; line-height: 1.35; }
  .t50-screen { padding: 64px 18px; }
  .t50-sheet__body { padding: 16px 18px 18px; }
  .t50-sheet__title { margin-bottom: 10px; }
  .t50-sheet__facts { margin-bottom: 12px; }
}
@media (max-height: 640px) and (max-width: 640px) {
  .t50-sheet__facts { display: none; }
  .t50-lead { font-size: 0.92rem; }
}
@media (prefers-reduced-motion: reduce) {
  .t50-screen, .t50-sheet, .t50-klappe__top, .t50-sheet__clap span { animation: none; }
  .t50-rec { animation: none; }
}
.t50-stage:focus { outline: none; }
.t50-cut__cp { font-size: 0.86rem; color: var(--muted); }

/* ---------- Teilen-Leiste ---------- */
.t50-share { position: absolute; inset: 0; z-index: 4; display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(8, 7, 6, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: t50-in 0.3s var(--ease-out) both; cursor: default; overflow-y: auto; }
.t50-share[hidden] { display: none; }
.t50-share__box { position: relative; width: min(420px, 100%); margin: auto; padding: 22px 22px 18px; border-radius: 16px; background: linear-gradient(to bottom, #1d1a17, #141210); border: 1px solid var(--line-strong); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); text-align: left; animation: t50-sheet 0.5s var(--ease-out) both; }
.t50-share__zu { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: var(--muted); font: inherit; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.t50-share__zu:hover { color: var(--cream); background: rgba(238, 229, 218, 0.08); }
.t50-share__text { margin: 6px 36px 16px 0; font-size: 0.92rem; color: var(--cream-2); }
.t50-share__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.t50-share__btn { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(238, 229, 218, 0.03); color: var(--cream); font: inherit; font-size: 0.88rem; text-align: left; text-decoration: none; cursor: pointer; transition: background-color 0.25s, border-color 0.25s, transform 0.3s var(--ease); }
.t50-share__btn:hover { background: rgba(238, 229, 218, 0.09); border-color: rgba(238, 229, 218, 0.55); transform: translateY(-1px); }
.t50-share__btn[hidden] { display: none; }
.t50-share__btn svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.t50-share__btn--breit { grid-column: 1 / -1; }
.t50-rahmen__bild { display: block; width: 100%; height: auto; aspect-ratio: 1080 / 1350; max-height: 52vh; max-height: 52svh; object-fit: contain; margin: 12px auto 0; border-radius: 8px; background: #0b0a09; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); }
#t50-p-rahmen .t50-actions { margin-top: 16px; }
#t50-p-rahmen .t50-actions .btn { flex: 1 1 auto; }
#t50-p-rahmen .t50-share__hint { text-align: center; }

/* Drehschein: Zusatz-Buttons */
.t50-sheet__extra { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.t50-mini {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 8px 10px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(238, 229, 218, 0.03); color: var(--cream-2); font: inherit; font-size: 0.82rem; line-height: 1.2; cursor: pointer;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}
.t50-mini:hover { color: var(--cream); border-color: rgba(238, 229, 218, 0.5); background: rgba(238, 229, 218, 0.08); }
.t50-mini svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.t50-share__hint { margin: 12px 0 0; font-size: 0.8rem; color: var(--muted); }
.t50-share__hint:empty { display: none; }
@media (prefers-reduced-motion: reduce) { .t50-share, .t50-share__box { animation: none; } }

/* Bedingungen kurz (Fassung 5) */
.t50-terms { display: block; max-width: 760px; margin: 0 auto; padding: 0; border: 0; text-align: center; }
.t50-terms__kurz { margin: 0; font-size: clamp(1rem, 0.94rem + 0.3vw, 1.12rem); line-height: 1.6; color: var(--cream-2); }
.t50-klein { margin-top: 18px; font-size: 0.85rem; color: var(--muted); }
.t50-klein summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; letter-spacing: 0.08em; text-underline-offset: 4px; }
.t50-klein summary::-webkit-details-marker { display: none; }
.t50-klein summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 0.25s; }
.t50-klein[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.t50-klein summary:hover { color: var(--cream); text-decoration: underline; }
.t50-klein p { margin: 12px auto 0; max-width: 640px; line-height: 1.6; }
.t50-klein a { color: inherit; text-underline-offset: 3px; }
.t50-info .t50-cta { margin-top: clamp(40px, 6vh, 64px); }
.t50-info { padding-top: clamp(40px, 6vh, 64px); }
