[hidden] { display: none !important; }
/*
 * ravir – dunkles Design nach Apples Grundsätzen (Skill apple-design):
 * Systemschrift mit größenabhängiger Laufweite, Flächen statt Rahmen, durchscheinende Kopfzeile,
 * Rückmeldung beim Drücken, Tippflächen ≥ 44 px, Rücksicht auf reduzierte Bewegung/Transparenz.
 */
:root {
  color-scheme: dark;

  /* Flächen (Ebenen werden heller, je weiter sie „oben“ liegen) */
  --bg: #000;
  --surface: #161618;
  --surface-2: #232326;
  --surface-3: #2e2e32;
  --separator: rgba(255, 255, 255, 0.09);

  /* Text */
  --text: #f5f5f7;
  --text-2: rgba(235, 235, 245, 0.64);
  --text-3: rgba(235, 235, 245, 0.42);

  /* ravir-Rot nur als Fläche (Buttons, Logo, große Zeichen). Als kleine Schrift auf Schwarz hätte das CI-Rot nur 3,8:1
     Kontrast (nötig 4,5:1) – Links sind deshalb hell und unterstrichen. */
  --brand: #ce1a1d; /* CI-Rot (wie im Logo) */
  --brand-press: #b01417;
  --link: var(--text);
  --link-line: rgba(245, 245, 247, 0.4);

  --ok: #30d158;
  --warn: #ffd60a;
  --bad: #ff6961;
  --danger: #ff453a; /* Apple systemRed (Dunkelmodus) für Löschen/Entfernen, nur Schrift */

  --radius: 14px;
  --radius-s: 10px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

* { box-sizing: border-box; }
/* Platz für den Scrollbalken immer freihalten: kein Seitenruck, wenn eine Seite lang genug zum Scrollen wird */
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 100%/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
body { min-height: 100dvh; }

a { color: var(--link); text-decoration: none; border-radius: 4px; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
/* Links im Fließtext und einzelne Textlinks: hell, dezent unterstrichen (Farbe allein trägt keinen Link mehr) */
main :is(p, li, dd, td, .small, .film-own, .note) a:not(.btn), a.small {
  text-decoration: underline; text-decoration-color: var(--link-line); text-decoration-thickness: 1px;
}
main :is(p, li, dd, td, .small, .film-own, .note) a:not(.btn):hover, a.small:hover { text-decoration-color: currentColor; }
/* Fokus neutral hell – Rot bleibt Fehlern und Buttons vorbehalten */
:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.75); outline-offset: 2px; }

/* Typografie: große Schrift enger laufen lassen und knapper setzen */
h1, h2, h3 { margin: 0 0 0.4em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 2.75rem); line-height: 1.08; letter-spacing: -0.025em; }
h2 { font-size: 1.5rem; line-height: 1.15; letter-spacing: -0.015em; }
h3 { font-size: 1.125rem; line-height: 1.25; letter-spacing: -0.01em; font-weight: 600; }
p { margin: 0; }
.lead { font-size: 1.125rem; line-height: 1.55; color: var(--text-2); max-width: 40rem; }
.muted { color: var(--text-2); }
.small { font-size: 0.8125rem; letter-spacing: 0.005em; }
.eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }

.wrap { max-width: 68rem; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }

/* ---------- Demo-Leiste (nur Prototyp) ---------- */
.demo { background: #1d1a0c; color: #e9dfa8; font-size: 0.8125rem; }
.demo form { display: flex; gap: 8px 14px; align-items: center; flex-wrap: wrap; padding: 6px 0; }
.demo b { color: var(--warn); font-weight: 600; }
.demo .muted { color: rgba(233, 223, 168, 0.6); }
.demo label.row { gap: 6px; }
.demo select, .demo button { min-height: 30px; padding: 2px 10px; font-size: 0.8125rem; border-radius: 8px; }
.demo select { width: auto; background-color: rgba(255, 255, 255, 0.08); padding-right: 28px; background-position: right 9px center; }
.demo button.ghost { background: rgba(255, 255, 255, 0.1); }

/* ---------- Kopfzeile: durchscheinende Ebene, Inhalt läuft darunter ---------- */
header.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 var(--separator);
}
header.top .wrap { display: flex; align-items: center; gap: 8px 24px; min-height: 56px; flex-wrap: wrap; }
header.top .brand { font-weight: 800; font-size: 1.375rem; letter-spacing: -0.03em; color: var(--text); }
header.top .brand:hover { text-decoration: none; }
header.top nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
header.top nav a {
  color: var(--text-2); font-size: 0.9375rem; padding: 8px 10px; border-radius: 8px;
  transition: color 150ms var(--ease-out), background-color 150ms var(--ease-out);
}
header.top nav a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
header.top .user { color: var(--text-2); font-size: 0.8125rem; display: flex; gap: 10px; align-items: center; min-width: 0; }
header.top .user > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 16rem; }
/* Sprachumschalter: dezent, beschriftet in der Zielsprache */
header.top .lang-switch { color: var(--text-2); text-decoration: none; padding: 6px 8px; border-radius: 8px; white-space: nowrap; min-height: 34px; display: inline-flex; align-items: center; }
header.top .lang-switch .short { display: none; font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.02em; }
header.top .lang-switch:hover { color: var(--text); background: rgba(255,255,255,.06); }

/* Verwaltung: gleiche Bauweise, aber klar als eigener Bereich erkennbar */
.brand-tag { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0; color: var(--text-2); margin-left: 4px; vertical-align: 2px; }
header.top nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }

main { padding: 40px 0 96px; }

/* ---------- Layout ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px 20px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.stack > * + * { margin-top: 16px; }
.section { margin-top: 56px; }
.narrow { max-width: 28rem; }

/* Fläche statt Rahmen */
.card { background: var(--surface); border-radius: var(--radius); padding: 20px; }
.card-sub { background: var(--surface-2); }

/* Kachel im Katalog: das Bild ist die Kachel, Text darunter */
.tile { display: block; color: inherit; }
.tile:hover { text-decoration: none; }
.tile .poster { transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out); }
@media (hover: hover) { .tile:hover .poster { transform: scale(1.015); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6); } }
.tile:active .poster { transform: scale(0.985); transition-duration: 100ms; }
.tile h3 { margin: 14px 0 10px; }
.tile .meta { color: var(--text-2); font-size: 0.875rem; margin-top: 10px; }

.poster {
  position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden;
  background:
    radial-gradient(120% 90% at 15% 0%, rgba(206, 26, 29, 0.32), transparent 60%),
    linear-gradient(160deg, #26262b, #0d0d0f);
  display: flex; align-items: flex-end; padding: 18px 20px;
  color: var(--text); font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1;
}
/* Mit Bild: Bild füllt die Fläche, unten ein Verlauf, damit der Titel lesbar bleibt */
.poster.has-image { background-size: cover; background-position: center; background-repeat: no-repeat; background-color: var(--surface); }
.poster.has-image::before { content: ""; position: absolute; inset: -1px; background: linear-gradient(to top, rgba(0,0,0,.7), rgba(0,0,0,0) 55%); }
.poster > * { position: relative; }
.poster h3, .poster h1 { margin: 0; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5); }
.poster.hero { aspect-ratio: 16/9; padding: clamp(20px, 4vw, 32px); }
.poster.hero h1 { margin: 0; }

/* ---------- Kennzeichen ---------- */
.badge {
  display: inline-flex; align-items: center; font-size: 0.75rem; font-weight: 500; line-height: 1;
  padding: 5px 9px; border-radius: 9px; background: var(--surface-2); color: var(--text-2);
  line-height: 1.2; text-wrap: balance;
}
.badge.ok { color: var(--ok); background: rgba(48, 209, 88, 0.14); }
.badge.warn { color: var(--warn); background: rgba(255, 214, 10, 0.13); }
.badge.bad { color: var(--bad); background: rgba(255, 105, 97, 0.14); }

/* ---------- Buttons: Rückmeldung sofort beim Drücken ---------- */
button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border: 0; border-radius: 12px;
  background: var(--brand); color: #fff;
  font: inherit; font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.005em;
  cursor: pointer; text-decoration: none; user-select: none;
  transition: transform 100ms var(--ease-out), background-color 150ms var(--ease-out);
}
button:hover, .btn:hover { background: #dc2226; text-decoration: none; }
button:active, .btn:active { transform: scale(0.97); background: var(--brand-press); }
button.ghost, .btn.ghost { background: var(--surface-2); color: var(--text); font-weight: 500; }
button.ghost:hover, .btn.ghost:hover { background: var(--surface-3); }
.user .btn.ghost, .user button.ghost { min-height: 34px; padding: 0 12px; font-size: 0.8125rem; }
button:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.btn.block, button.block { width: 100%; }

/* ---------- Formulare (16 px Schrift: kein Zoom beim Antippen auf dem iPhone) ---------- */
input, select, textarea {
  width: 100%; min-height: 44px; padding: 10px 14px;
  background: var(--surface-2); color: var(--text);
  border: 1px solid transparent; border-radius: var(--radius-s);
  font: inherit; font-size: 1rem;
  transition: border-color 150ms var(--ease-out), background-color 150ms var(--ease-out);
}
input::placeholder { color: var(--text-3); }
/* Safari zeichnet native Auswahllisten flach und ignoriert die Höhe: eigene Form, gleiche Höhe wie Textfelder */
select {
  -webkit-appearance: none; appearance: none; padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='16' viewBox='0 0 12 16' fill='none' stroke='%23ebebf5' stroke-opacity='.64' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6l3-3 3 3M3 10l3 3 3-3'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 16px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: rgba(255, 255, 255, 0.4); background-color: var(--surface-3); }
input[type="checkbox"], input[type="radio"] { width: 20px; min-height: 0; height: 20px; padding: 0; accent-color: var(--brand); flex: none; }
label { display: block; }
label > span { display: block; font-size: 0.8125rem; font-weight: 500; color: var(--text-2); margin-bottom: 6px; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.8125rem; line-height: 1.45; color: var(--text-2); cursor: pointer; }
label.check input { margin-top: 1px; }
/* Häkchen, bei denen nur das Kästchen selbst schaltet (Text ist nicht klickbar) */
div.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.8125rem; line-height: 1.45; color: var(--text-2); }
div.check input { margin-top: 1px; cursor: pointer; }

/* ---------- Meldungen ---------- */
.flash { padding: 12px 16px; border-radius: var(--radius-s); font-size: 0.9375rem; }
/* Hinweis über dem Seitentitel: deutlich abgesetzt, nicht am Titel klebend */
.stack > .flash:not(:last-child) { margin-bottom: 16px; }
.stack > .flash + .flash { margin-top: -8px; }
.flash.ok { background: rgba(48, 209, 88, 0.12); color: #b8f5c8; }
.flash.fehler { background: rgba(255, 105, 97, 0.13); color: #ffc9c5; }

/* ---------- Angebote ---------- */
.offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; max-width: 48rem; }
.price { font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }

/* ---------- Tabellen (Admin, Bibliothek) ---------- */
.table-wrap { overflow-x: auto; background: var(--surface); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
th, td { text-align: left; padding: 12px 14px; vertical-align: middle; }
tr + tr td, tbody tr td { border-top: 1px solid var(--separator); }
th { color: var(--text-3); font-weight: 500; font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; }
td .btn { min-height: 36px; padding: 0 14px; font-size: 0.875rem; }

/* ---------- Bibliothek als Liste ---------- */
.list { background: var(--surface); border-radius: var(--radius); }
.list-item { display: flex; gap: 16px; align-items: center; padding: 14px 16px; flex-wrap: wrap; }
.list-item + .list-item { border-top: 1px solid var(--separator); }
.list-item .thumb { width: 96px; aspect-ratio: 16/9; border-radius: 8px; flex: none; padding: 0; font-size: 0; }
.list-item .body { flex: 1; min-width: 12rem; }
.list-item .body h3 { margin: 0 0 4px; }

/* Formulare in der Verwaltung */
textarea { resize: vertical; min-height: 6rem; line-height: 1.5; }
/* Wächst mit dem Text (Skript im Verwaltungs-Layout), leer bleibt eine sinnvolle Mindesthöhe */
textarea[data-autosize] { resize: none; overflow-y: hidden; min-height: 9rem; }
textarea[data-autosize].short { min-height: 5.5rem; }
.mono, input.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9375rem; }
.field-hint, .field-error { display: block; font-style: normal; font-size: 0.75rem; margin-top: 6px; }
.field-hint { color: var(--text-3); }
.field-error { color: var(--bad); }
label.invalid input, label.invalid textarea { border-color: var(--bad); }
.prefixed { display: flex; align-items: center; background: var(--surface-2); border-radius: var(--radius-s); border: 1px solid transparent; }
.prefixed:focus-within { border-color: rgba(255, 255, 255, 0.4); background: var(--surface-3); }
label.invalid .prefixed { border-color: var(--bad); }
.prefixed b { padding-left: 14px; color: var(--text-3); font-weight: 500; }
.prefixed input { background: transparent; border: 0; padding-left: 2px; }
.prefixed input:focus { background: transparent; border: 0; }
input[type="file"] { padding: 10px; min-height: 0; font-size: 0.875rem; }
input[type="file"]::file-selector-button { font: inherit; font-weight: 500; color: var(--text); background: var(--surface-3); border: 0; border-radius: 8px; padding: 6px 12px; margin-right: 12px; cursor: pointer; }
.poster-edit { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.poster-edit .poster { width: 280px; max-width: 100%; justify-content: center; align-items: center; }
.poster-edit .poster.has-image::before { display: none; }
.form-actions { position: sticky; bottom: 0; padding: 14px 0; background: linear-gradient(to top, var(--bg) 70%, transparent); }
.page-head { justify-content: space-between; }
.page-head h1 { margin: 0; }
.chevron { color: var(--text-3); font-size: 1.5rem; line-height: 1; }
a.list-item { transition: background-color 150ms var(--ease-out); }
a.list-item:hover { background: var(--surface-2); text-decoration: none; }
a.list-item:first-child { border-radius: var(--radius) var(--radius) 0 0; }
a.list-item:last-child { border-radius: 0 0 var(--radius) var(--radius); }
a.list-item:only-child { border-radius: var(--radius); }

/* Filmauswahl für Pakete: ganze Zeile antippbar, Häkchen links */
.film-picker { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 10px; }
.film-pick { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-s); background: var(--surface-2); cursor: pointer; min-height: 56px;
  transition: background-color 150ms var(--ease-out), box-shadow 150ms var(--ease-out); }
.film-pick:hover { background: var(--surface-3); }
.film-pick:has(input:checked) { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55); background: var(--surface-3); }
.film-pick .thumb { width: 64px; aspect-ratio: 16/9; border-radius: 6px; flex: none; padding: 0; font-size: 0; }
.film-pick > span { margin-bottom: 0; }
.film-pick > .film-pick-title { flex: 1; font-size: 0.9375rem; font-weight: 500; color: var(--text); }
.kind-pick { align-items: flex-start; }
.kind-pick input { margin-top: 2px; }
.kind-pick .field-hint { font-weight: 400; }
.code-step { display: grid; gap: 10px; }
.film-picker.invalid .film-pick { box-shadow: inset 0 0 0 1px var(--bad); }
/* Pakete: Filme als Karten mit großem Bild, Häkchen liegt oben links auf dem Bild */
.film-picker.cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.film-picker.cards .film-pick { position: relative; flex-direction: column; align-items: stretch; gap: 10px; padding: 8px 8px 12px; }
.film-picker.cards .film-pick .thumb { width: 100%; border-radius: 8px; }
.film-picker.cards .film-pick > input { position: absolute; top: 16px; left: 16px; z-index: 1; margin: 0; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); }
.film-picker.cards .film-pick > .film-pick-title { padding: 0 4px; line-height: 1.3; }
.film-picker.cards .film-pick > .badge { align-self: flex-start; margin: 0 4px; }
.film-picker.cards .film-pick:not(:has(input:checked)) .thumb { opacity: 0.85; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Löschen/Entfernen: grauer Button wie die anderen, Schrift im CI-Rot */
button.danger, .btn.danger, button.ghost.danger { color: var(--danger); font-weight: 600; }
.push-right { margin-left: auto; }
/* Codes: frisch erzeugte Charge mit allen Codes zum Kopieren */
.new-codes { box-shadow: inset 0 0 0 1px rgba(48, 209, 88, 0.35); }
.new-codes-head { justify-content: space-between; align-items: center; gap: 12px; }
.new-codes-head h2 { margin: 0; }
.new-code-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 8px; }
.new-code-list li { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 12px; border-radius: var(--radius-s); background: var(--surface-2); min-width: 0; }
.new-code-list code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 0.9375rem; }
.new-code-list .btn, .new-code-list button.small { min-height: 32px; padding: 0 10px; }
/* Fieldset nur zum Sperren (disabled), ohne eigenen Rahmen */
fieldset.plain-fs { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.card.plain-fs { padding: 20px; }
fieldset.plain-fs[disabled] :is(input, select, textarea), #film-form :is(input, select, textarea):disabled { opacity: 0.55; cursor: not-allowed; }
.cf-del-list { margin: 0; padding-left: 1.2em; color: var(--text-2); display: grid; gap: 8px; }

/* Systemprüfung */
.check-item { align-items: flex-start; }
.check-icon { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 0.875rem; margin-top: 2px; }
.check-icon.ok { background: rgba(48, 209, 88, 0.16); color: var(--ok); }
.check-icon.warn { background: rgba(255, 214, 10, 0.15); color: var(--warn); }
.check-icon.bad { background: rgba(255, 105, 97, 0.16); color: var(--bad); }

.formgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; }

/* ---------- Player ---------- */
.player { aspect-ratio: 16/9; width: 100%; border: 0; border-radius: var(--radius); background: #000; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7); }
.player.demo-player { display: grid; place-items: center; text-align: center; padding: 24px; color: var(--text-2); background: var(--surface); }

code { background: var(--surface-2); padding: 2px 6px; border-radius: 6px; font-size: 0.8125rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.empty { text-align: center; padding: 56px 20px; }
.empty p + p { margin-top: 16px; }

/* ---------- Barrierefreiheit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .tile:hover .poster, .tile:active .poster, button:active, .btn:active { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  header.top { background: #000; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --text-2: rgba(235, 235, 245, 0.85); --text-3: rgba(235, 235, 245, 0.7); --separator: rgba(255, 255, 255, 0.3); }
  .card, .list, .table-wrap, input, select { border: 1px solid rgba(255, 255, 255, 0.35); }
}

@media (max-width: 640px) {
  main { padding: 24px 0 72px; }
  .card { padding: 16px; }
  .section { margin-top: 40px; }
}

/* Seitenfuß (PHP-Version): Pflichtangaben und Quellenhinweis der Länder-Datenbank */
.foot { margin-top: 48px; padding: 20px 0 32px; border-top: 1px solid var(--separator); color: var(--text-3); font-size: 0.75rem; }
.foot a { color: var(--text-2); }
.foot .wrap { display: flex; gap: 8px 18px; flex-wrap: wrap; }
details summary { cursor: pointer; color: var(--text-2); min-height: 44px; display: flex; align-items: center; }
details[open] summary { color: var(--text); }

/* Trailer: Button auf dem Titelbild als heller, durchscheinender Belag; der Player erscheint an derselben Stelle */
.hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.player-under { gap: 10px; align-items: center; }
.trailer-link { text-decoration: none; min-height: 36px; padding: 6px 14px; font-size: 0.875rem; }
.hero-actions { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; }
.trailer-btn { background: rgba(255, 255, 255, 0.16); color: #fff; -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); font-size: 0.9375rem; letter-spacing: 0; }
.hero-note { flex-basis: 100%; margin: 0; color: rgba(255, 255, 255, 0.85); font-size: 0.875rem; line-height: 1.35; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6); }
.trailer-btn:hover { background: rgba(255, 255, 255, 0.26); }
.trailer-btn:active { background: rgba(255, 255, 255, 0.12); }
.trailer-wrap { display: flex; flex-direction: column; gap: 12px; }
.trailer-wrap h1 { margin: 0; }
.player-box.trailer { animation: trailer-in 220ms var(--ease-out); }
@keyframes trailer-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .player-box.trailer { animation: none; } }
@media (prefers-reduced-transparency: reduce) { .trailer-btn { background: var(--surface-2); -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* Rechtstexte */
.legal { max-width: 40rem; }
.legal h2 { font-size: 1rem; margin: 0 0 4px; }
.legal p, .legal li { margin: 0; line-height: 1.55; }
.legal .legal-note { color: var(--text-2); font-size: 0.875rem; border-left: 2px solid var(--surface-3); padding-left: 12px; }
.legal p + p { margin-top: 8px; }
.legal ul { margin: 6px 0 0; padding-left: 1.2em; }
.legal h3 { font-size: 1.0625rem; letter-spacing: -0.01em; margin: 28px 0 6px; }
.legal h4 { font-size: 0.9375rem; font-weight: 600; color: var(--text-2); margin: 16px 0 4px; }
.legal h2 + p, .legal h3 + p, .legal h4 + p { margin-top: 0; }
.legal h1 + h2 { display: none; }
.offer-legal { font-size: 0.75rem; color: var(--text-3, var(--text-2)); margin: 0; }

/* Auswahl von Bunny-Videos im Filmformular */
dialog.picker { width: min(640px, calc(100vw - 32px)); max-height: min(80vh, 720px); padding: 20px; border: 0; border-radius: var(--radius); background: var(--surface); color: var(--text); }
dialog.picker::backdrop { background: rgba(0, 0, 0, 0.6); }
.picker-list { display: grid; gap: 6px; overflow-y: auto; max-height: 55vh; }
.picker-item { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; width: 100%; padding: 10px 12px; border-radius: var(--radius-s); background: var(--surface-2); color: var(--text); border: 0; cursor: pointer; font: inherit; }
.picker-item:hover, .picker-item:focus-visible { background: var(--surface-3); }
.picked { color: var(--ok); }

/* Umschalter der Sprachfassung über dem Player */
.versions { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); align-self: flex-start; flex-wrap: wrap; }
.versions a { padding: 6px 14px; border-radius: 999px; color: var(--text-2); font-size: 0.875rem; text-decoration: none; }
.versions a:hover { color: var(--text); }
.versions a[aria-current] { background: var(--surface-3); color: var(--text); font-weight: 600; }


/* Video-ID und zugehörige Untertitel als Paar nebeneinander */
@media (min-width: 640px) { .formgrid.pairs { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }

/* Eingabefeld mit „Aus Bunny wählen“ daneben */
.input-pick { display: flex; gap: 8px; align-items: stretch; }
.input-pick input { flex: 1; min-width: 0; }
.input-pick button { flex: none; white-space: nowrap; }

/* ---------- Filmseite: mehr Luft, ruhigere Beschreibung, knappe Angebote ---------- */
.film-meta { margin-top: 20px !important; max-width: 48rem; }
.film-desc { max-width: 40rem; color: var(--text-2); font-size: 1rem; line-height: 1.7;
  hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 8 4 3; }
.film-desc p + p { margin-top: 0.9em; }
.film-desc + .offers, .film-meta + .offers { margin-top: 40px; }
.film-desc { margin-top: 24px !important; }
.offer { display: flex; flex-direction: column; gap: 6px; }
.offer .btn, .offer .badge { margin-top: 14px; align-self: stretch; text-align: center; }

/* ---------- Bestellschritt ---------- */
.checkout-step { max-width: 34rem; margin-inline: auto; }
.checkout-card { padding: clamp(20px, 4vw, 32px); display: flex; flex-direction: column; gap: 28px; }
.checkout-film { display: flex; gap: 16px; align-items: center; }
.checkout-film .thumb { width: 120px; flex: none; padding: 0; font-size: 0; border-radius: 8px; }
.checkout-title { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
.checkout-facts { margin: 0; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.checkout-facts > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.checkout-facts dt { color: var(--text-2); }
.checkout-facts dd { margin: 0; text-align: right; }
.checkout-total dt { color: var(--text); font-weight: 600; }
.checkout-total dd { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.checkout-total dd .small { font-weight: 400; letter-spacing: 0; }
.checkout-code summary { cursor: pointer; color: var(--text-2); width: fit-content; list-style: none; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.3); }
.checkout-code summary::-webkit-details-marker { display: none; }
.checkout-code summary:hover { color: var(--text); }
.checkout-code[open] summary { margin-bottom: 10px; }
.checkout-waiver { line-height: 1.5; }
.checkout-submit { display: flex; flex-direction: column; gap: 12px; }
.checkout-submit .offer-legal { text-align: center; line-height: 1.6; }

/* Button, der wie ein Link aussieht (z. B. „Meintest du …?“) */
.linkish { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: var(--link); text-decoration: underline; text-decoration-color: var(--link-line); text-underline-offset: 3px;
  text-underline-offset: 2px; cursor: pointer; min-height: 0; border-radius: 0; box-shadow: none; }
.linkish:hover { background: none; }

/* Admin → Kunden: Adresse ändern aufklappbar in der Tabellenzeile */
.customer-edit summary { list-style: none; cursor: pointer; white-space: nowrap; }
.customer-edit summary::-webkit-details-marker { display: none; }
.customer-edit[open] summary { margin-bottom: 8px; }
.customer-edit form { flex-wrap: nowrap; }
.customer-edit input { min-width: 14rem; }

/* Admin: Stornieren/Löschen aufklappbar in der Tabelle */
.order-actions-open { white-space: nowrap; }
dialog.order-dialog, dialog.batch-dialog { width: min(460px, calc(100vw - 32px)); white-space: normal; text-align: left; }
.batch-table .batch-actions .batch-dialog button[type="submit"] { min-height: 44px; padding: 0 20px; font-size: 1rem; }
.batch-dialog { font-size: 1rem; }
.order-dialog .order-delete { padding-top: 16px; border-top: 1px solid var(--separator); }

/* ---------- Filmlisten (Verwaltung, Bibliothek): Liste oder Kacheln ---------- */
.view-switch { display: inline-flex; background: var(--surface-2); border-radius: 10px; padding: 3px; gap: 2px; }
.view-switch button { min-height: 32px; padding: 0 14px; font-size: 0.875rem; font-weight: 500; background: transparent; color: var(--text-2); border-radius: 8px; }
.view-switch button:hover { color: var(--text); background: transparent; }
.view-switch button[aria-pressed="true"] { background: var(--surface-3); color: var(--text); }
.media-list .tiles-only { display: none; }
.media-list[data-view="list"] .list-item { padding: 16px 20px; gap: 20px; }
.media-list[data-view="list"] .thumb { width: 200px; border-radius: 10px; }
.media-list[data-view="tiles"] { background: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.media-list[data-view="tiles"] .list-item { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0; padding: 0; background: var(--surface); border: 0; border-radius: var(--radius); overflow: hidden; }
.media-list[data-view="tiles"] .list-item + .list-item { border-top: 0; }
.media-list[data-view="tiles"] .thumb { width: 100%; border-radius: 0; }
.media-list[data-view="tiles"] .body { min-width: 0; padding: 14px 16px 16px; }
.media-list[data-view="tiles"] .chevron, .media-list[data-view="tiles"] .list-only { display: none; }
.media-list[data-view="tiles"] .tiles-only { display: inline; }
.media-list[data-view="tiles"] .list-item > .btn, .media-list[data-view="tiles"] .list-item > .item-action { margin: 0 16px 16px; align-self: flex-start; }
.media-list[data-view="tiles"] .list-item > a:first-child .thumb { width: 100%; }
.media-list[data-view="list"] .list-item > a:first-child { flex: none; }
.media-list .list-item > a:first-child { display: block; }
.media-list .body h3 { margin: 0 0 10px; }
.media-list .item-meta { margin-top: 10px; line-height: 1.6; }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.dialog-head h2 { margin: 0; outline: none; }
.dialog-close { flex: none; width: 32px; height: 32px; min-height: 0; padding: 0; border-radius: 50%; background: var(--surface-2); color: var(--text-2); font-size: 1.25rem; line-height: 1; font-weight: 400; }
.dialog-close:hover { background: var(--surface-3); color: var(--text); }

/* Verwaltungstabellen: keine Umbrüche mitten in Zellen, lieber seitlich scrollen */
.table-wrap td { white-space: nowrap; }
.table-wrap td .muted { line-height: 1.4; }
.batch-table .badges { display: flex; flex-wrap: wrap; gap: 6px; min-width: 9rem; }
.batch-table .batch-actions { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.batch-table .batch-actions .btn, .batch-table .batch-actions button { min-height: 34px; padding: 0 14px; font-size: 0.875rem; }
.wrap.wide { max-width: 90rem; }
.table-wrap th, .table-wrap td { padding: 12px 12px; }
.code-copy { display: flex; align-items: center; gap: 4px; }
.code-copy + .code-copy { margin-top: 4px; }
.link-list { display: flex; flex-direction: column; border-top: 1px solid var(--separator); }
.link-row { display: grid; grid-template-columns: 9rem minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding: 8px 0; border-bottom: 1px solid var(--separator); }
.link-label { color: var(--text-2); font-size: 0.875rem; }
.link-url { overflow-wrap: anywhere; font-size: 0.8125rem; user-select: all; }
@media (max-width: 640px) { .link-row { grid-template-columns: minmax(0, 1fr) auto; } .link-label { grid-column: 1 / -1; } }
.copy-btn { min-height: 0; width: 28px; height: 28px; padding: 0; display: inline-grid; place-items: center; background: transparent; color: var(--text-3); border-radius: 6px; }
.copy-btn:hover { background: var(--surface-2); color: var(--text); }
.copy-btn .i-ok { display: none; }
.copy-btn.copied { color: var(--ok); }
.copy-btn.copied .i-copy { display: none; }
.copy-btn.copied .i-ok { display: block; }

/* Filmseite: Bild über volle Breite, darunter Beschreibung links und Ansehen/Kaufen rechts */
.film-layout { display: grid; gap: 32px; margin-top: 24px !important; }
.film-main > .film-meta { margin-top: 0 !important; max-width: none; }
.film-main .film-desc { max-width: 46rem; }
.film-side { display: flex; flex-direction: column; gap: 24px; }
.film-side .offers { max-width: none; grid-template-columns: 1fr; margin-top: 0 !important; }
.film-side p { margin: 0; }
/* Karte „Du hast den Film“: Status oben, Frist, dann der Button mit eigenem Abstand */
.film-own { display: flex; flex-direction: column; gap: 6px; }
.film-own-note { color: var(--text-2); font-size: 0.9375rem; line-height: 1.45; }
.film-own .btn { margin-top: 14px; }
.film-own-link { text-align: center; margin-top: 4px !important; }
.film-side-hint { margin-bottom: -12px !important; }
.film-side-code { line-height: 1.5; }
@media (min-width: 900px) {
  .film-layout { grid-template-columns: minmax(0, 1fr) minmax(280px, 22rem); gap: 48px; align-items: start; }
  .film-side { position: sticky; top: 88px; }
}

/* Bibliothek: Frist knapp → auffällig; Abgelaufenes ruhiger */
.status-soon { color: var(--warn); font-weight: 500; }
.section-title { font-size: 1.25rem; margin: 40px 0 0 !important; }
.media-list-past .thumb { opacity: 0.55; filter: grayscale(0.4); }
.media-list-past h3 a { color: var(--text-2) !important; }

/* Handy: Liste = kompakte Zeilen (kleines Bild links, Text rechts, Button darunter), Kacheln = große Bilder */
@media (max-width: 560px) {
  .media-list[data-view="list"] .list-item { gap: 14px; padding: 14px 16px; align-items: flex-start; }
  .media-list[data-view="list"] .thumb { width: 120px; border-radius: 8px; }
  .media-list[data-view="list"] .body { min-width: 0; flex: 1 1 0; }
  .media-list[data-view="list"] .body h3 { font-size: 1rem; }
  .media-list[data-view="list"] .chevron { align-self: center; }
  .media-list[data-view="list"] .list-item > .btn, .media-list[data-view="list"] .list-item > .item-action { flex: 1 0 100%; max-width: none !important; }
  .media-list[data-view="list"] .list-item > .btn { min-height: 40px; }
}

/* Bilder ohne Text darauf (Vorschaubilder, Katalog-Kacheln): kein Abdunkel-Verlauf.
   Verhindert auch eine helle Kante unten, wenn der Verlauf durch Rundung einen Pixel zu kurz ist. */
.poster.has-image:empty::before, .poster.thumb.has-image::before { display: none; }

/* Schwarzer 16:9-Rahmen um den Film-Player; das iframe ragt 2 px über und wird abgeschnitten (keine hellen Kanten) */
.player-box { position: relative; aspect-ratio: 16/9; width: 100%; background: #000; border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7); }
.player-box.has-poster { background-size: cover; background-position: center; }
.player-box .player { position: absolute; top: -2px; left: -2px; width: calc(100% + 4px); height: calc(100% + 4px); aspect-ratio: auto; border-radius: 0; box-shadow: none; }
/* Handy: Player von Rand zu Rand, ohne Rundung und Schatten (kein Rahmen-Eindruck um das schwarze Bild).
   Muss nach der allgemeinen .player-box-Regel stehen, sonst gewinnt deren Breite und Rundung */
@media (max-width: 640px) {
  .player-box, .player:not(.demo-player):not(.player-box .player) {
    width: 100vw; max-width: none; height: auto; aspect-ratio: 16/9;
    margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
    border-radius: 0; box-shadow: none; display: block;
  }
}
/* Player erst zeigen, wenn er geladen ist (kein weißes Aufblitzen); ohne JavaScript nach 3 s trotzdem sichtbar */
.player-box .player { opacity: 0; transition: opacity 250ms var(--ease-out); animation: player-show 0s 3s forwards; }
.player-box .player.is-loaded { opacity: 1; animation: none; }
/* Mit Titelbild dahinter: Player sofort zeigen – die Bunny-Seite ist beim Laden durchsichtig, man sieht das Titelbild
   und darauf direkt das Vorschaubild. color-scheme wie die Bunny-Seite, sonst malt der Browser eine weiße Fläche
   (unsere Seite ist dunkel, die eingebettete nicht). */
.player-box.has-poster .player { opacity: 1; animation: none; transition: none; color-scheme: light; }
@keyframes player-show { to { opacity: 1; } }

/* ---------- Kopfzeile und Tab-Leiste: Tablet und Handy ---------- */
.tabbar { display: none; }
/* Bis Laptop-Breite: E-Mail-Adresse nicht in der Kopfzeile (steht als Tooltip am Abmelden-Button) */
@media (max-width: 1023px) {
  header.top .user > span { display: none; }
  header.top nav { flex-wrap: nowrap; }
  header.top nav a { white-space: nowrap; }
}
@media (max-width: 640px) {
  /* Shop: oben nur Marke, Sprache, Konto – eine Zeile */
  header.top .wrap { flex-wrap: nowrap; min-height: 52px; gap: 8px; }
  header.top .brand { flex: 1; }
  header.top:not(.admin-top) nav { display: none; }
  header.top .user { gap: 6px; flex: none; }
  header.top .user .btn.ghost, header.top .user button.ghost { min-height: 34px; padding: 0 12px; }
  header.top .lang-switch .long { display: none; }
  header.top .lang-switch .short { display: inline; }


  /* Tab-Leiste unten (wie iOS): durchscheinend, Inhalt läuft darunter, Abstand zum Home-Balken */
  .tabbar {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
    padding: 4px max(8px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    background: rgba(18, 18, 20, 0.78);
    -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0 -1px 0 var(--separator);
  }
  .tabbar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    min-height: 50px; color: var(--text-3); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.01em;
    text-decoration: none; border-radius: 10px;
    transition: color 150ms var(--ease-out), transform 100ms var(--ease-out);
  }
  .tabbar a:active { transform: scale(0.94); }
  .tabbar a[aria-current="page"] { color: var(--text); }
  .tabbar svg { flex: none; }
  body:has(.tabbar) { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }

  /* Prototyp-Leiste: eine wischbare Zeile statt drei */
  .demo form { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
  .demo form::-webkit-scrollbar { display: none; }
  .demo label.row { flex-wrap: nowrap; }
  .demo select { max-width: 11rem; }

  /* Fußzeile: Links groß genug zum Antippen */
  .foot { margin-top: 32px; }
  .foot .wrap { gap: 0 18px; align-items: center; }
  .foot a { display: inline-block; padding: 8px 0; }
}
@media (prefers-reduced-transparency: reduce) {
  .tabbar { background: #121214; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* Filmseite ohne Seitenspalte (Tablet): Leihen und Kaufen nebeneinander */
@media (max-width: 899px) {
  .film-side .offers { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
}

/* Sehr schmale Handys (z. B. iPhone SE): Marke nicht umbrechen, Vorschaubild in Listen kleiner */
header.top .brand { white-space: nowrap; }
@media (max-width: 380px) {
  .media-list[data-view="list"] .thumb { width: 88px; }
  .media-list[data-view="list"] .list-item { gap: 12px; padding: 12px 14px; }
  header.admin-top .user .btn.ghost, header.admin-top .user button.ghost { padding: 0 10px; }
}

@media (max-width: 380px) { header.admin-top .brand-tag { display: none; } }

/* Aufklappbereiche: eigener Pfeil (der Browser-Pfeil fehlt bei display:flex), dreht sich beim Öffnen */
details:not(.checkout-code):not(.customer-edit) > summary { list-style: none; gap: 10px; width: fit-content; user-select: none; }
details:not(.checkout-code):not(.customer-edit) > summary::-webkit-details-marker { display: none; }
details:not(.checkout-code):not(.customer-edit) > summary::before {
  content: ""; flex: none; width: 7px; height: 7px; margin: 0 3px 0 1px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; border-radius: 1px;
  transform: rotate(-45deg); transition: transform 200ms var(--ease-out);
}
details[open]:not(.checkout-code):not(.customer-edit) > summary::before { transform: rotate(45deg) translate(-2px, -2px); }
details:not(.checkout-code):not(.customer-edit) > summary:hover { color: var(--text); }

/* Filmformular „Englisch“: als antippbare Zeile mit Fläche, klar als Schalter erkennbar */
details.lang-en:not(.x):not(.y) > summary {
  width: 100%; padding: 0 14px; border-radius: var(--radius-s); background: var(--surface-2); color: var(--text);
  font-weight: 500; transition: background-color 150ms var(--ease-out);
}
details.lang-en > summary:hover { background: var(--surface-3); }
details.lang-en > summary:active { background: var(--surface-3); }
details.lang-en > summary .hint { margin-left: auto; color: var(--text-3); font-size: 0.8125rem; font-weight: 400; }
details.lang-en[open] > summary { margin-bottom: 14px; }

/* Filmformular: Deutsch und International als zwei gleich aufgebaute Spalten (Handy: untereinander) */
.version-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; }
/* Unterraster: gleiche Felder stehen in beiden Spalten auf derselben Höhe, auch wenn ein Hinweis länger ist */
.version-col { padding: 18px; border-radius: var(--radius); background: var(--surface-2); min-width: 0;
  display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 16px; align-content: start; }
.version-head { margin: 0; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); }
.version-col input, .version-col .input-pick button:not(:hover) { background: var(--surface-3); }
.version-col input:focus { background: #3a3a3f; }
.version-col .input-pick button { padding: 0 16px; }
.field-group { display: flex; flex-direction: column; }
.field-label { font-size: 0.8125rem; font-weight: 500; color: var(--text-2); margin-bottom: 6px; }
.version-col .poster-edit { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.version-col .poster-edit .poster { width: 100%; }
.poster-edit .poster .poster-note { color: var(--text-3); font-size: 0.8125rem; position: relative; }
.poster-edit .poster.is-fallback::before { display: block; background: rgba(22, 22, 24, 0.62); }
.version-col button.ghost { background: var(--surface-3); }
.version-col button.ghost:hover { background: #3a3a3f; }
.poster-edit-actions button { min-height: 44px; }
.poster-edit .poster.is-fallback .poster-note { color: #fff; font-weight: 600; font-size: 0.875rem; background: rgba(0,0,0,.55); padding: 4px 10px; border-radius: 8px; }
.poster-edit-actions { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; }
.poster-edit-actions label { flex: 1; min-width: 12rem; }
.version-col input[type="file"] { background: var(--surface-3); }

/* Logo wie auf ravir.de: das Schild hängt groß an der Oberkante und ragt über die schmale Kopfzeile hinaus.
   Beim Scrollen schrumpft es auf Kopfzeilenhöhe (wie große Titel in iOS) – per transform, ohne Layout-Sprung. */
header.top { --logo-h: 88px; --logo-small: 0.62; }
header.top .brand { position: relative; align-self: stretch; display: block; flex: none; line-height: 0;
  width: calc(var(--logo-h) * 1.199); margin-right: 20px; }
header.top .brand .logo { position: absolute; top: 0; left: 0; height: var(--logo-h); width: auto; max-width: none; z-index: 1;
  transform-origin: top left; transition: transform 320ms var(--ease-out); }
header.top.is-scrolled .brand .logo { transform: scale(var(--logo-small)); }
header.top a.brand:active .logo { transform: scale(0.97); transition-duration: 100ms; }
header.top.is-scrolled a.brand:active .logo { transform: scale(calc(var(--logo-small) * 0.97)); }
header.top .brand .brand-tag { position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%); line-height: 1; margin: 0; white-space: nowrap; }
/* Verwaltung: kompakt (darunter liegt auf Handy und Tablet die Bereichszeile), schrumpft nicht */
header.top .user { margin-left: auto; }
header.admin-top { --logo-h: 52px; }
header.admin-top .brand { margin-right: 92px; }
header.admin-top.is-scrolled .brand .logo { transform: none; }
@media (max-width: 640px) {
  header.top { --logo-h: 64px; --logo-small: 0.78; }
  header.admin-top { --logo-h: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  header.top .brand .logo { transition: none; }
}

/* Fußzeile immer am unteren Rand, auch bei kurzen Seiten */
body { display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
body > .foot { flex: none; }

/* Platz unter dem überstehenden Logo: Inhalt beginnt erst darunter */
body:has(header.top:not(.admin-top)) > main { padding-top: clamp(64px, 9vh, 104px); }
@media (max-width: 640px) {
  body:has(header.top:not(.admin-top)) > main { padding-top: 48px; }
  header.top .brand { margin-right: 8px; }
}

/* Trennlinie unter der Kopfzeile nur, wenn Inhalt darunter scrollt (sonst liefe sie durch das große Logo) */
header.top:not(.admin-top) { box-shadow: 0 1px 0 transparent; transition: box-shadow 200ms var(--ease-out); }
header.top:not(.admin-top).is-scrolled { box-shadow: 0 1px 0 var(--separator); }

/* Player auf der Filmseite: beim Hinscrollen unter der Kopfzeile bleiben; Button zeigt kurz, dass geladen wird */
.trailer-wrap { scroll-margin-top: 80px; }
.btn[aria-busy="true"] { opacity: 0.6; pointer-events: none; }

/* Filmseite: Titel immer über Titelbild bzw. Player */
h1.film-title { margin: 0; text-wrap: balance; }

/* Meine Filme auf dem Handy: nur Kacheln, kein Umschalter */
@media (max-width: 560px) { .view-switch[data-phone="tiles"] { display: none; } }

/* Kopfzeile: Menüpunkte, Sprache und Buttons einheitlich – gleiche Höhe, Rundung, Schrift */
header.top { --top-h: 34px; --top-r: 10px; --top-fs: 0.875rem; }
header.top nav { align-items: center; }
header.top nav a, header.top .lang-switch,
header.top .user .btn.ghost, header.top .user button.ghost {
  min-height: var(--top-h); height: var(--top-h); padding: 0 12px; border-radius: var(--top-r);
  font-size: var(--top-fs); font-weight: 500; line-height: 1; display: inline-flex; align-items: center;
}
header.top .user { font-size: var(--top-fs); }
header.top .user form { display: flex; }

/* Verwaltung → Filme: Reihenfolge per Ziehen. Der Link umfasst Bild und Text (display: contents),
   der Griff liegt daneben – so öffnet ein Tippen den Film, Ziehen am Griff sortiert. */
.sortable .list-item { position: relative; transition: background-color 150ms var(--ease-out); }
.sortable .item-link { display: contents; color: inherit; text-decoration: none; }
.sortable .list-item:has(.item-link:hover) { background: var(--surface-2); }
.sortable[data-view="list"] .list-item:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.sortable[data-view="list"] .list-item:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.drag-handle {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; min-height: 44px; height: 44px; padding: 0; margin: -6px -4px; border-radius: 10px;
  background: transparent; color: var(--text-3); cursor: grab; touch-action: none;
}
.drag-handle:hover { background: var(--surface-3); color: var(--text); }
.drag-handle:active { transform: none; background: var(--surface-3); }
.drag-handle:focus-visible { outline: 2px solid var(--text); outline-offset: -2px; color: var(--text); }
.sortable[data-view="tiles"] .drag-handle {
  position: absolute; top: 10px; left: 10px; z-index: 2; margin: 0; width: 40px; height: 40px; min-height: 40px;
  color: var(--text); background: rgba(0, 0, 0, 0.45); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
/* Beim Ziehen: Element hebt sich ab und folgt dem Zeiger; für die Trefferprüfung durchlässig */
.sortable.is-sorting { cursor: grabbing; user-select: none; -webkit-user-select: none; }
.sortable.is-sorting .drag-handle { cursor: grabbing; }
.sortable .list-item.is-dragging {
  z-index: 10; pointer-events: none; background: var(--surface-2); border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--separator); scale: 1.02;
  transition: scale 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
.sortable .list-item.is-dragging + .list-item { border-top-color: transparent; }
@media (prefers-reduced-motion: reduce) { .sortable .list-item.is-dragging { scale: none; } }

/* Verwaltung → Nutzer und Admin-Anmeldung */
.grow { flex: 1 1 14rem; min-width: 0; }
#passkey-add-row { align-items: flex-end; }
.user-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.user-actions form { margin: 0; }
.role-form select { min-height: 44px; width: auto; padding-right: 36px; }
.role-picker { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.role-picker legend { padding: 0; margin-bottom: 8px; font-size: 0.8125rem; color: var(--text-2); }
.role-option { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--radius-s); background: var(--surface-2); cursor: pointer;
  transition: background-color 150ms var(--ease-out), box-shadow 150ms var(--ease-out); }
.role-option:hover { background: var(--surface-3); }
.role-option:has(input:checked) { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55); background: var(--surface-3); }
.role-option input { margin-top: 2px; flex: none; }
.role-option span { display: grid; gap: 4px; margin: 0; }
.role-option b { color: var(--text); font-size: 0.9375rem; }
.role-option em { font-style: normal; color: var(--text-2); font-size: 0.8125rem; line-height: 1.35; }
@media (max-width: 560px) { .user-list .list-item { flex-wrap: wrap; } .user-list .item-action { margin-left: 0; width: 100%; justify-content: flex-start; } }
.add-user button, #passkey-add-row button { flex: none; }
.user-list .list-item { flex-wrap: nowrap; }
.user-list .body h3 { font-size: 1rem; overflow-wrap: anywhere; }
.user-list .item-action { margin-left: auto; }
.admin-login #passkey-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.admin-login .login-link summary { cursor: pointer; color: var(--text-2); }
.btn[aria-busy="true"], button[aria-busy="true"] { opacity: 0.6; pointer-events: none; }

/* Verwaltung: sieben Menüpunkte in einer Zeile – bei mittlerer Breite die E-Mail-Adresse ausblenden statt umzubrechen */
@media (min-width: 1024px) {
  header.admin-top nav { flex-wrap: nowrap; }
  header.admin-top nav a { white-space: nowrap; }
}
@media (max-width: 1279px) { header.admin-top .user > span { display: none; } }

/* Schmale Seiten (Code einlösen, Anmelden, Meldungen): mittig mit Luft nach oben statt oben links;
   Überschrift und Einleitung zentriert, Formulare bleiben linksbündig */
main .narrow { margin-inline: auto; padding-top: clamp(8px, 7vh, 80px); }
main .narrow > h1, main .narrow > p { text-align: center; text-wrap: balance; }
/* Anmeldung mit Ziel (Leih-/Kauf-Link von außen): Film und Angebot über der Überschrift */
.login-film { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 14px; background: var(--surface); color: inherit; text-decoration: none; }
.login-film:hover { background: var(--surface-2); }
.login-film-poster.poster { flex: none; width: 112px; aspect-ratio: 16/9; border-radius: 8px; padding: 0; }
.login-film-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.login-film-text b { font-size: 1rem; line-height: 1.25; }
main .narrow > p.muted { margin-inline: auto; max-width: 26rem; }

.badge.super { color: var(--text); background: rgba(206, 26, 29, 0.35); }

/* Titelbild wählen: eigener Button statt „Datei auswählen / Keine Datei ausgewählt“ */
.file-pick { position: relative; min-height: 44px; cursor: pointer; }
.file-pick input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; padding: 0; }
.file-pick:has(input:focus-visible) { outline: 2px solid rgba(255, 255, 255, 0.75); outline-offset: 2px; }
.file-pick.invalid { box-shadow: inset 0 0 0 1px var(--bad); }
.version-col .file-pick.btn.ghost { background: var(--surface-3); }
.version-col .file-pick.btn.ghost:hover { background: #3a3a3f; }
.file-chosen { margin: 0; overflow-wrap: anywhere; }

/* Meine Filme: Sortieren und Ansicht nebeneinander, auf dem Handy bleibt nur das Sortieren */
.library-tools { gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.sort-switch button { display: inline-flex; align-items: center; gap: 4px; }
.sort-dir { display: inline-block; min-width: 0.7em; font-size: 0.8125rem; color: var(--text-2); }
.sort-dir:empty { display: none; }

/* Datum/Uhrzeit: iOS gibt den Feldern eine feste Eigenbreite – auf Spaltenbreite zwingen, Wert linksbündig */
input[type="datetime-local"], input[type="date"], input[type="time"] {
  -webkit-appearance: none; appearance: none; display: block; min-width: 0; max-width: 100%; text-align: left; }
input::-webkit-date-and-time-value { text-align: left; }

/* Verwaltung schmaler als die Menüzeile: Bereiche hinter einem Menüknopf (zeigt den aktuellen Bereich),
   aufgeklappt als Tafel unter der Kopfzeile. Auf dem Handy liegt dort auch „Abmelden“. */
header.admin-top .user button.menu-btn, header.admin-top .nav-extra { display: none; }
@media (max-width: 1099px) {
  header.admin-top .wrap { position: relative; flex-wrap: nowrap; }
  header.admin-top .user button.menu-btn { display: inline-flex; align-items: center; gap: 6px; }
  header.admin-top .menu-btn svg { transition: transform 200ms var(--ease-out); }
  header.admin-top .menu-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
  header.admin-top nav {
    position: absolute; top: calc(100% + 1px); left: 0; right: 0; z-index: 20;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px;
    margin: 0; padding: 10px 16px 16px; flex: none;
    background: #121214;
    box-shadow: 0 1px 0 var(--separator), 0 18px 40px rgba(0, 0, 0, 0.5);
    opacity: 0; transform: translateY(-6px); visibility: hidden; pointer-events: none;
    transition: opacity 160ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s linear 200ms;
  }
  header.admin-top.menu-open nav {
    opacity: 1; transform: none; visibility: visible; pointer-events: auto;
    transition: opacity 160ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s;
  }
  header.admin-top nav a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; font-size: 1rem; white-space: nowrap; }
}
@media (max-width: 640px) {
  header.admin-top .user > form { display: none; }
  header.admin-top .nav-extra { display: contents; }
  header.admin-top nav .nav-sep { grid-column: 1 / -1; height: 1px; background: var(--separator); margin: 6px 0; }
  header.admin-top nav form { display: flex; }
  header.admin-top nav form button { flex: 1; justify-content: flex-start; min-height: 44px; padding: 0 14px; font-size: 1rem;
    background: transparent; color: var(--text-2); font-weight: 400; border-radius: 8px; }
  header.admin-top nav form button:hover { background: var(--surface-2); color: var(--text); }
}
@media (prefers-reduced-motion: reduce) {
  header.admin-top nav, header.admin-top.menu-open nav, header.admin-top .menu-btn svg { transition: none; transform: none; }
}

/* Storno-Dialog: Erstatten ja/nein als klare Wahl */
.refund-choice { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.refund-choice legend { padding: 0; margin: 6px 0 8px; font-weight: 600; color: var(--text); }
.refund-choice label.check { padding: 12px 14px; border-radius: var(--radius-s); background: var(--surface-2); color: var(--text-2); }
.refund-choice label.check b { color: var(--text); font-weight: 600; }
.refund-choice label.check:has(input:checked) { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.5); }
.refund-choice input[type="radio"] { width: auto; min-height: 0; accent-color: var(--brand, #e30613); margin-top: 3px; }

/* Vorgemerkter Rabatt-Code: alter Preis durchgestrichen, klein daneben */
.price-was { font-size: 1rem; font-weight: 400; letter-spacing: 0; color: var(--text-2); }
.status-ok { color: #30d158; }

/* Code einlösen: Eingabe in Festbreitenschrift, Platzhalter normal (kein Muster, das ein festes Format vortäuscht) */
.code-input { font-size: 1.25rem; letter-spacing: 0.08em; text-transform: uppercase; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.code-input::placeholder { font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif; font-size: 1rem; letter-spacing: 0; text-transform: none; }

/* Code einlösen, Schritt 2: bestätigter Code oben in der Karte */
.code-ok { padding: 12px 14px; border-radius: var(--radius-s); background: rgba(48, 209, 88, 0.1); }
.code-ok code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.06em; }

/* Erfolgshinweis blendet sich nach 5 s aus: erst durchsichtig, dann klappt der Platz zusammen */
.flash.flash-out { overflow: hidden; opacity: 0; padding-top: 0; padding-bottom: 0; margin-bottom: 0 !important;
  transition: opacity 240ms ease, height 320ms cubic-bezier(0.23, 1, 0.32, 1) 120ms, padding 320ms cubic-bezier(0.23, 1, 0.32, 1) 120ms, margin 320ms cubic-bezier(0.23, 1, 0.32, 1) 120ms; }

/* Anfrage Vorführlizenz: etwas breiter als die Anmeldung, damit E-Mail/Telefon und Termin/Ort nebeneinander passen */
main .narrow.license-request { max-width: 36rem; }
.license-request .hp, .withdraw .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
fieldset.choice { border: 0; margin-inline: 0; margin-bottom: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
fieldset.choice legend { padding: 0; margin-bottom: 6px; font-size: 0.8125rem; font-weight: 500; color: var(--text-2); }
.film-side-private a { white-space: nowrap; }

/* Datumsauswahl (public/datepicker.js): Feld mit Kalender-Symbol, darunter der Monat mit Kalenderwochen;
   Klick auf den Monatstitel → 12 Jahre → Monate → Tage */
.dp { position: relative; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.dp-field { position: relative; flex: 1 1 9.75rem; min-width: 0; }
.dp-with-time .dp-time { flex: 1 1 6rem; }
.dp-field .dp-text { padding-left: 42px; font-variant-numeric: tabular-nums; }
.dp-field .dp-icon { position: absolute; left: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; min-height: 0; padding: 0;
  display: grid; place-items: center; background: transparent; color: var(--text-2); border-radius: 8px; cursor: pointer; }
.dp-field span.dp-icon { cursor: default; pointer-events: none; }
.dp-field button.dp-icon:hover { color: var(--text); }
.dp-pop { position: fixed; z-index: 1000; width: 19rem; max-width: calc(100vw - 32px); padding: 12px 12px 10px;
  background: var(--surface-2); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.35); animation: dp-in 160ms var(--ease-out); transform-origin: top left; }
.dp-pop.dp-up { transform-origin: bottom left; }
@keyframes dp-in { from { opacity: 0; transform: scale(0.97) translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .dp-pop { animation: none; } }
.dp-pop button { min-height: 0; padding: 0; background: transparent; color: var(--text); border: 0; font: inherit; cursor: pointer; }
.dp-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 8px; }
.dp-head .dp-title { font-weight: 600; font-size: 0.9375rem; padding: 6px 8px; border-radius: 8px; letter-spacing: -0.01em; }
.dp-head .dp-title { display: inline-flex; align-items: center; gap: 4px; }
.dp-head .dp-title .dp-chev { color: var(--text-2); display: inline-flex; }
.dp-head .dp-title .dp-chev svg { width: 13px; height: 13px; }
.dp-head .dp-title:hover, .dp-nav button:hover { background: var(--surface-3); }
.dp-nav { display: flex; gap: 0; }
.dp-nav button { width: 26px; height: 32px; display: grid; place-items: center; border-radius: 8px; color: var(--text-2); }
.dp-nav button.dp-today-btn { width: 18px; color: #ff5a5d; }
.dp-days { display: grid; grid-template-columns: 1.6rem repeat(7, 1fr); gap: 2px 0; align-items: center; justify-items: center; }
.dp-dow { font-size: 0.6875rem; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.02em; padding: 2px 0 6px; }
.dp-wk { font-size: 0.6875rem; color: var(--text-3); font-variant-numeric: tabular-nums; }
.dp-day { width: 34px; height: 34px; border-radius: 50%; font-size: 0.875rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.dp-day:hover:not(:disabled) { background: var(--surface-3); }
.dp-day.dp-out { color: var(--text-3); }
.dp-day.dp-today { color: #ff5a5d; font-weight: 700; }
.dp-pop .dp-sel, .dp-pop .dp-sel:hover { background: var(--brand); color: #fff; font-weight: 600; }
.dp-pop button:disabled { color: rgba(235, 235, 245, 0.18); cursor: default; }
.dp-pop button:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.7); outline-offset: 1px; }
.dp-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 2px 0 4px; }
.dp-grid3 button { height: 40px; border-radius: 999px; font-size: 0.9375rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.dp-grid3 button:hover:not(:disabled) { background: var(--surface-3); }
.dp-grid3 button.dp-today:not(.dp-sel) { color: #ff5a5d; }
.dp-tpop { width: 10rem; max-height: 18rem; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 0 6px 6px; border-radius: 12px; }
.dp-tpop .dp-thead { position: sticky; top: 0; z-index: 1; margin: 0 -6px 4px; padding: 11px 16px 9px; background: var(--surface-2); border-bottom: 1px solid var(--separator); color: var(--text-3); font-size: 0.8125rem; white-space: nowrap; }
.dp-tpop button { display: block; width: 100%; height: 38px; padding: 0 12px; border-radius: 8px; text-align: left; font-size: 0.9375rem; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.dp-tpop button:hover:not(.dp-sel) { background: var(--surface-3); }
.dp-tpop .dp-sel, .dp-tpop .dp-sel:hover { background: rgba(206, 26, 29, 0.24); box-shadow: inset 0 0 0 1px rgba(255, 90, 93, 0.35); color: #fff; font-weight: 600; }

/* ---------- Crowdfunding ---------- */
.flash.warn { background: rgba(255, 214, 10, 0.1); color: #ffe78a; }
.cf-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 12px; }
.cf-stat { background: var(--surface); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.cf-stat-label { font-size: 0.8125rem; color: var(--text-2); }
.cf-stat-value { font-size: 1.875rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.cf-stat-value.ok { color: var(--ok); }
.cf-stat-sub { font-size: 0.8125rem; color: var(--text-3); font-variant-numeric: tabular-nums; }
.cf-stat-sub.bad { color: var(--bad); }
.cf-mail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.cf-mail textarea { font-family: inherit; line-height: 1.5; }
.cf-preview iframe { display: block; width: 100%; height: 34rem; border: 0; border-radius: var(--radius-s); background: #fff; color-scheme: light; }
.cf-search { max-width: 20rem; }
.cf-table td:nth-child(2) { white-space: normal; min-width: 14rem; }
@media (max-width: 900px) { .cf-mail { grid-template-columns: 1fr; } }
button.link-btn, button.link-btn:hover, button.link-btn:active { background: none; padding: 0; min-height: 0; border-radius: 0; font: inherit; color: var(--text); text-decoration: underline; text-decoration-color: var(--link-line); text-underline-offset: 3px; transform: none; }
.cf-table td:nth-child(5) { white-space: normal; min-width: 10rem; }
.cf-send-bar { background: var(--surface-2); border-radius: var(--radius-s); padding: 14px 16px; }
.cf-send-bar > * + * { margin-top: 10px; }
.cf-batch input { width: 5.5rem; text-align: center; font-variant-numeric: tabular-nums; }
.cf-filter select { width: auto; }
.cf-filter .cf-search { flex: 1 1 12rem; }
.cf-table .cf-check { width: 1%; padding-right: 0; }
#cf-progress progress { width: 100%; height: 8px; accent-color: var(--brand); }
.cf-log { max-height: 10rem; overflow-y: auto; margin: 0; padding-left: 1.2em; }
.cf-log:empty { display: none; }
.cf-table .cf-check input { width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; accent-color: var(--brand); }

/* Crowdfunding-Auswertung: Farben mit dem Palette-Validator auf der dunklen Karte (#161618) geprüft */
.cf-viz {
  --cf-watched: #86b6ef; --cf-redeemed: #5598e7; --cf-open: #2a78d6; --cf-new: #184f95; --cf-error: #d03b3b;
  --cf-line-sent: #d95926; --cf-line-redeemed: #3987e5; --cf-line-watched: #199e70;
}
.cf-viz h3 { margin: 0; font-size: 1rem; }
.cf-block { padding-top: 20px; border-top: 1px solid var(--separator); }
.cf-seg { display: flex; gap: 2px; height: 28px; }
.cf-seg-part { min-width: 4px; border-radius: 4px; display: flex; align-items: center; padding: 0 8px; overflow: hidden; outline-offset: 2px; }
.cf-seg-part span { font-size: 0.8125rem; font-weight: 600; white-space: nowrap; }
.cf-ink-dark { color: #0b0b0b; }
.cf-ink-light { color: #fff; }
.cf-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; padding: 0; margin: 12px 0 0; font-size: 0.8125rem; color: var(--text-2); }
.cf-legend li { display: flex; align-items: center; gap: 6px; }
.cf-legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.cf-legend i.cf-key, .cf-tip i.cf-key { width: 14px; height: 2px; border-radius: 1px; }
.cf-tip i.cf-key { display: inline-block; vertical-align: middle; margin-right: 6px; }
.cf-line { width: 100%; min-height: 240px; }
.cf-line svg { display: block; overflow: visible; }
.cf-grid { stroke: rgba(255, 255, 255, 0.08); stroke-width: 1; }
.cf-axis { fill: var(--text-3); font-size: 11px; font-variant-numeric: tabular-nums; }
.cf-endlabel { fill: var(--text-2); font-size: 12px; font-weight: 500; }
.cf-ring { stroke: var(--surface); stroke-width: 2; }
.cf-cross line { stroke: rgba(255, 255, 255, 0.25); stroke-width: 1; }
.cf-tip { position: fixed; z-index: 1100; pointer-events: none; background: var(--surface-3); color: var(--text); border-radius: 8px; padding: 8px 10px;
  font-size: 0.8125rem; line-height: 1.5; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); white-space: nowrap; }
.cf-tiers { display: grid; gap: 4px; }
.cf-tier { display: grid; grid-template-columns: minmax(8rem, 14rem) 1fr auto; gap: 14px; align-items: center; padding: 6px 4px; border-radius: 8px; font-size: 0.875rem; }
.cf-tier:hover, .cf-tier:focus-visible { background: var(--surface-2); }
.cf-tier-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-tier-val { font-variant-numeric: tabular-nums; white-space: nowrap; }
.cf-meter { height: 8px; border-radius: 4px; background: #184f95; overflow: hidden; }
.cf-meter span { display: block; height: 100%; border-radius: 4px; background: #3987e5; }
@media (max-width: 560px) { .cf-tier { grid-template-columns: 1fr auto; } .cf-meter { grid-column: 1 / -1; grid-row: 2; } }
.cf-block > .cf-legend { margin-top: 8px; }
.cf-bar { height: 12px; }
.cf-bar span { display: block; height: 100%; min-width: 2px; border-radius: 0 4px 4px 0; background: #3987e5; }

/* Crowdfunding-Kampagne: Kopf mit Filmbild, Eckdaten als Plaketten, Einstellungen als Button */
.stack > .cf-head { margin-top: 8px; }
.cf-head { display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; grid-template-areas: "poster title btn" "poster facts btn";
  align-items: center; column-gap: 24px; row-gap: 12px; }
.cf-head-poster { grid-area: poster; width: 200px; aspect-ratio: 16/9; border-radius: 10px; padding: 0; font-size: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.08); transition: transform 150ms var(--ease-out); }
.cf-head-poster:hover { transform: scale(1.02); }
.cf-head-title { grid-area: title; align-self: end; min-width: 0; }
.cf-head-film { margin: 0 0 2px; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; }
main .cf-head p.cf-head-film a { color: var(--text-2); text-decoration: none; }
main .cf-head p.cf-head-film a:hover { color: var(--text); }
.cf-head h1 { margin: 0; }
.cf-facts { grid-area: facts; align-self: start; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cf-facts li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 10px; border-radius: 999px;
  background: var(--surface-2); color: var(--text); font-size: 0.8125rem; line-height: 1.2; white-space: nowrap; }
.cf-facts em { font-style: normal; color: var(--text-3); }
.cf-facts code { font-size: 0.8125rem; }
.cf-facts svg, .cf-head-btn svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cf-facts svg { color: var(--text-2); }
.cf-head-btn { grid-area: btn; display: inline-flex; align-items: center; gap: 8px; align-self: start; }
@media (max-width: 760px) {
  .cf-head { grid-template-columns: 120px minmax(0, 1fr); grid-template-areas: "poster title" "facts facts" "btn btn"; column-gap: 16px; }
  .cf-head-poster { width: 120px; }
  .cf-head-title { align-self: center; }
  .cf-head-btn { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) { .cf-head-poster { transition: none; } .cf-head-poster:hover { transform: none; } }

/* Crowdfunding-Liste: jede Kampagne als Karte, ganze Karte antippbar */
.cf-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.cf-card { position: relative; display: grid; grid-template-columns: 160px minmax(0, 1fr) auto 20px; align-items: center; gap: 20px;
  padding: 14px 18px 14px 14px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: background-color 150ms var(--ease-out), transform 100ms var(--ease-out); }
.cf-card:hover { background: var(--surface-2); }
.cf-card:active { transform: scale(0.995); }
.cf-card:has(.cf-card-link:focus-visible) { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.6); }
.cf-card > .thumb { width: 160px; aspect-ratio: 16/9; border-radius: 8px; padding: 0; font-size: 0; }
.cf-card-main { min-width: 0; }
.cf-card h3 { margin: 0 0 4px; font-size: 1.125rem; letter-spacing: -0.01em; }
main li.cf-card a.cf-card-link { color: var(--text); text-decoration: none; outline: none; }
.cf-card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.cf-card-meta { margin: 0; color: var(--text-2); font-size: 0.875rem; }
.cf-card-meta + .cf-card-meta { margin-top: 4px; }
.cf-card-meta code { font-size: 0.8125rem; color: var(--text-3); }
.cf-card-nums { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(5.5rem, auto)); column-gap: 20px; row-gap: 10px; }
.cf-card-nums dt { color: var(--text-3); font-size: 0.75rem; }
.cf-card-nums dd { margin: 2px 0 0; font-size: 1.375rem; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.cf-card-nums dd small { font-size: 0.8125rem; font-weight: 500; color: var(--text-2); }
.cf-card-nums .cf-meter { grid-column: 1 / -1; height: 6px; }
.cf-card-chevron { color: var(--text-3); font-size: 1.5rem; line-height: 1; transition: transform 150ms var(--ease-out), color 150ms var(--ease-out); }
.cf-card:hover .cf-card-chevron { color: var(--text); transform: translateX(2px); }
/* Pakete: bis zu drei Filmbilder leicht versetzt übereinander */
.bundle-stack { position: relative; width: 160px; aspect-ratio: 16/9; }
.bundle-stack .thumb { position: absolute; width: 132px; aspect-ratio: 16/9; border-radius: 8px; padding: 0; font-size: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.bundle-stack[data-n="0"] .thumb, .bundle-stack[data-n="1"] .thumb { width: 160px; inset: 0; }
.bundle-stack[data-n="2"] .thumb:nth-child(1) { top: 0; left: 28px; width: 132px; filter: brightness(0.7); }
.bundle-stack[data-n="2"] .thumb:nth-child(2) { bottom: 0; left: 0; width: 132px; }
.bundle-stack[data-n="3"] .thumb { width: 118px; }
.bundle-stack[data-n="3"] .thumb:nth-child(1) { top: 0; left: 42px; filter: brightness(0.55); }
.bundle-stack[data-n="3"] .thumb:nth-child(2) { top: 11px; left: 21px; filter: brightness(0.75); }
.bundle-stack[data-n="3"] .thumb:nth-child(3) { top: 22px; left: 0; }
@media (max-width: 900px) {
  .cf-card { grid-template-columns: 120px minmax(0, 1fr) 20px; }
  .cf-card > .thumb { width: 120px; }
  .bundle-stack { transform: scale(0.75); transform-origin: left center; margin-block: -11px; }
  .cf-card-nums { grid-column: 1 / -1; grid-row: 2; grid-template-columns: repeat(4, 1fr); column-gap: 12px; }
}
@media (max-width: 480px) { .cf-card-nums dd { font-size: 1.125rem; } }
@media (prefers-reduced-motion: reduce) { .cf-card, .cf-card-chevron { transition: none; } .cf-card:active { transform: none; } }


/* Tippflächen nach Apple-Vorgabe (44 pt): kompakte Bedienelemente behalten ihre Optik,
   die tippbare Fläche wird unsichtbar erweitert. Mono-Felder auf dem Handy in 16 px, sonst zoomt iOS hinein. */
.copy-btn, .view-switch button, header.top .user .btn.ghost, header.top .user button.ghost { position: relative; }
.copy-btn::before, .view-switch button::before, .dp-field button.dp-icon::before,
header.top .user .btn.ghost::before, header.top .user button.ghost::before {
  content: ""; position: absolute; inset: -5px;
}
.copy-btn::before { inset: -8px; }
.view-switch button::before { inset: -6px -1px; }
.batch-table .batch-actions .btn, .batch-table .batch-actions button { position: relative; }
.batch-table .batch-actions .btn::before, .batch-table .batch-actions button::before { content: ""; position: absolute; inset: -5px -4px; }
/* Häkchen in Tabellen: ganze Zelle (44 × 44) tippbar */
label.hit-box { display: grid; place-items: center; min-width: 44px; min-height: 44px; margin: -12px -8px; cursor: pointer; }
@media (max-width: 640px) { label.check { padding-block: 12px; } }
@media (max-width: 640px) { input.mono { font-size: 1rem; } }

/* Sehr schmale Handys (320 pt, iPhone SE 1. Gen.): Kopfzeile passt in eine Zeile, auch mit „Verwaltung“ */
@media (max-width: 374px) {
  header.top { --logo-h: 54px; }
  header.top .brand { margin-right: 6px; }
  header.top .user { gap: 4px; }
  header.top .user .btn.ghost, header.top .user button.ghost { padding: 0 9px; font-size: 0.8125rem; }
  header.top .lang-switch { padding: 0 8px; }
  header.admin-top .brand { margin-right: 12px; }
}
@media (max-width: 374px) {
  .cf-card-nums { grid-template-columns: repeat(2, 1fr); }
  .cf-filter select { flex: 1 1 100%; width: 100%; }
}
/* Lange Adressen (URLs) in Hinweisen brechen um, statt die Seite zu verbreitern */
.check-item .body { min-width: 0; overflow-wrap: anywhere; }
.checkout-tech { margin: 12px 0 0; line-height: 1.5; }

/* Einwilligung (Google Analytics): schwebende Karte unten, durchscheinend wie iOS-Sheets, blockiert die Seite nicht.
   „Ablehnen“ und „Erlauben“ gleich groß und gleich gestaltet. Auf dem Handy über der Tab-Leiste. */
.consent {
  position: fixed; z-index: 30; left: 50%; bottom: max(16px, env(safe-area-inset-bottom));
  width: min(560px, calc(100% - 32px)); transform: translateX(-50%);
  padding: 18px 20px 20px; border-radius: 18px;
  background: rgba(30, 30, 33, 0.82); -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 20px 50px rgba(0, 0, 0, 0.55);
  animation: consent-in 320ms var(--ease-out);
}
.consent[hidden] { display: none; }
.consent.is-leaving { opacity: 0; transform: translate(-50%, 12px); transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
.consent h2 { font-size: 1.0625rem; margin: 0 0 6px; letter-spacing: -0.01em; }
.consent p { margin: 0; font-size: 0.875rem; line-height: 1.5; color: var(--text-2); }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.consent-actions button { width: 100%; }
@keyframes consent-in { from { opacity: 0; transform: translate(-50%, 16px); } }
@media (max-width: 640px) {
  .consent { bottom: calc(68px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .consent { animation: consent-fade 200ms ease; }
  .consent.is-leaving { transform: translateX(-50%); }
  @keyframes consent-fade { from { opacity: 0; } }
}
@media (prefers-reduced-transparency: reduce) {
  .consent { background: #1e1e21; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.foot button.foot-link { min-height: 0; padding: 0; background: none; border: 0; color: var(--text-2); font: inherit; font-weight: 400; cursor: pointer; }
.foot button.foot-link:hover { color: var(--text); text-decoration: underline; }
@media (max-width: 640px) { .foot button.foot-link { padding: 8px 0; } }
.consent-details { margin-top: 10px; font-size: 0.8125rem; color: var(--text-2); }
.consent-details > summary { min-height: 44px; color: var(--text); font-weight: 500; }
.consent-details dl { margin: 0 0 8px; display: grid; gap: 10px; }
.consent-details dt { color: var(--text); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.consent-details dd { margin: 2px 0 0; line-height: 1.45; }
.consent-details p { font-size: 0.8125rem; }
.consent { max-height: calc(100dvh - 32px); overflow-y: auto; }
@media (max-width: 640px) { .consent { max-height: calc(100dvh - 100px - env(safe-area-inset-bottom)); } }
.consent-actions button { white-space: nowrap; padding: 0 12px; }

/* Statistik (Verwaltung): Kennzahlen, Zeitraum, Säulen und Zuschauerkurve – eine Datenfarbe, Blau wie in der Crowdfunding-Auswertung */
.st { --st-data: #3987e5; --st-data-soft: #184f95; }
.st-head { justify-content: space-between; align-items: center; }
.st-head h1 { margin: 0; }
.st-h3 { margin: 0; font-size: 1rem; }
.st-seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; background: var(--surface); border-radius: 11px; padding: 3px; }
.st-seg a { color: var(--text-2); text-decoration: none; font-size: 0.875rem; font-weight: 500; min-height: 36px; padding: 0 14px; border-radius: 8px; white-space: nowrap;
  display: flex; align-items: center; justify-content: center; transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out); }
.st-seg a:active { opacity: 0.6; transition: none; }
.st-seg a:focus-visible { outline: 2px solid var(--text); outline-offset: 1px; }
.st-seg a:hover { color: var(--text); }
.st-seg a[aria-current="page"] { background: var(--surface-3); color: var(--text); font-weight: 600; }
.st-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.st-kpis-s { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.st-kpi { background: var(--surface); border-radius: var(--radius); padding: 14px 16px; }
.st-kpis-s .st-kpi { background: var(--surface-2); }
.st-kpi-label { font-size: 0.8125rem; color: var(--text-2); }
.st-kpi-val { font-size: 1.625rem; font-weight: 700; letter-spacing: -0.015em; font-variant-numeric: tabular-nums; margin-top: 2px; }
.st-kpi-sub { font-size: 0.8125rem; line-height: 1.35; color: var(--text-2); margin-top: 4px; }
.st-bars, .st-curve { width: 100%; min-height: 220px; }
.st-bars svg, .st-curve svg { display: block; overflow: visible; }
.st-bar { fill: var(--st-data); }
.st-area { fill: var(--st-data); fill-opacity: 0.14; }
.st-line { fill: none; stroke: var(--st-data); stroke-width: 2; stroke-linejoin: round; }
.st-dot { fill: var(--st-data); }
.st-mid { stroke: rgba(255, 255, 255, 0.2); stroke-dasharray: 3 3; }
.st-table .num, .st .num { font-variant-numeric: tabular-nums; }
.st-table th.num, .st-table td.num { text-align: right; white-space: nowrap; }
.st-table tr.st-current td { background: var(--surface-2); }
.st-meter-row { display: flex; align-items: center; gap: 10px; min-width: 10rem; }
.st-meter { flex: 1; height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; min-width: 3rem; }
.st-meter span { display: block; height: 100%; border-radius: 4px; background: var(--st-data); }
.st-tiers { display: grid; gap: 6px; }
.st-tier { display: grid; grid-template-columns: minmax(7rem, 12rem) 1fr auto; gap: 14px; align-items: center; font-size: 0.875rem; }
@media (max-width: 560px) { .st-tier { grid-template-columns: 1fr auto; } .st-tier .st-meter { grid-column: 1 / -1; grid-row: 2; } }
@media (prefers-reduced-motion: reduce) { .st-seg a { transition: none; } }
/* Auffällige Stellen der Zuschauerkurve: Ausstieg orange, Anstieg grün (Farben wie in der Crowdfunding-Auswertung, auf #161618 geprüft) */
.st { --st-drop: #d95926; --st-rise: #199e70; }
.st-mark-g line { stroke-width: 1; stroke-dasharray: 2 3; }
.st-mark-drop.st-mark-g line { stroke: var(--st-drop); } .st-mark-drop.st-mark-g path { fill: var(--st-drop); }
.st-mark-rise.st-mark-g line { stroke: var(--st-rise); } .st-mark-rise.st-mark-g path { fill: var(--st-rise); }
.st-moments { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px 24px; }
.st-moments h4 { margin: 0 0 6px; font-size: 0.875rem; font-weight: 600; }
.st-moments ul { margin: 0; padding-left: 1.1em; font-size: 0.875rem; color: var(--text-2); }
.st-moments li + li { margin-top: 2px; }
.st-moments b { color: var(--text); }
span.st-mark { font-size: 0.75rem; }
span.st-mark-drop { color: var(--st-drop); } span.st-mark-rise { color: var(--st-rise); }
.st-note { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: var(--radius-s); background: var(--surface-2);
  font-size: 0.8125rem; line-height: 1.45; color: var(--text-2); }
.st-note svg { flex: none; color: var(--warn); margin-top: 1px; }
.st-section { margin-top: 24px; padding-top: 28px; border-top: 1px solid var(--separator); }
.st-pick label { font-size: 0.9375rem; color: var(--text-2); }
.st-pick select { width: auto; min-height: 44px; }
@media (max-width: 900px) { .st-kpis-s { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .st-head { flex-direction: column; align-items: stretch; gap: 12px; }
  .st-seg { display: grid; width: 100%; }
  .st-seg a { padding: 0 6px; }
  .st-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .st-kpi { padding: 12px 14px; }
  .st-kpi-val { font-size: 1.375rem; }
  .st-pick select { flex: 1; }
}
/* Statistik: Vorschaubilder der Filme (16:9) in der Übersicht und über den Kurven */
.st-film { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; min-width: 12rem; }
.st-film:hover span { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--link-line); }
.st-film:active { opacity: 0.6; }
.st-thumb { width: 72px; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; flex: none; background: var(--surface-3); display: block; }
.st-thumb-l { width: 160px; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius-s); flex: none; background: var(--surface-3); display: block; }
.st-film-head { display: flex; align-items: center; gap: 16px; }
.st-film-head h3 { margin: 2px 0 2px; font-size: 1.25rem; letter-spacing: -0.01em; }
@media (max-width: 640px) { .st-thumb-l { width: 112px; } .st-thumb { width: 56px; } }

/* Statistik auf dem Handy: breite Tabellen werden zu Listen (wie Zellen in iOS), kein seitliches Scrollen */
.st-mlist { display: none; list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: var(--radius); }
.st-mlist > li { padding: 12px 16px; display: grid; gap: 6px; }
.st-mlist > li + li { border-top: 1px solid var(--separator); }
.st-mlist > li.st-current { background: var(--surface-2); }
.st-mlist > li:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.st-mlist > li:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.st-mrow { display: flex; align-items: baseline; gap: 8px; }
.st-mrow b { font-weight: 600; min-width: 0; }
.st-mval { margin-left: auto; font-weight: 600; white-space: nowrap; }
.st-msub { font-size: 0.8125rem; color: var(--text-2); font-variant-numeric: tabular-nums; }
.st-mlist .st-film { min-width: 0; min-height: 44px; font-weight: 600; }
.st-mlist .st-film > span:not(.chevron) { flex: 1; min-width: 0; }
.st-mlist .st-film .chevron { font-weight: 400; }
.st-mver { display: flex; flex-wrap: wrap; gap: 0 8px; align-items: baseline; padding-left: 68px; }
.st-mlabel { font-size: 0.8125rem; font-weight: 500; }
@media (max-width: 640px) {
  .st .table-wrap:has(.st-table) { display: none; }
  .st-mlist { display: block; }
  .st-mlist .st-thumb { width: 56px; }
  .st-film-head { gap: 12px; }
  .st-film-head h3 { font-size: 1.0625rem; }
}

/* Verwaltung → Filme auf dem Handy:
   Kopf: großer Titel und „Neuer Film“ in einer Zeile, Ansicht darunter über die volle Breite.
   Zeilen: Bild links, Text in der Mitte, Griff zum Sortieren rechts (wie in iOS), Tippen öffnet den Film. */
@media (max-width: 560px) {
  .page-head:has(.view-switch) { flex-wrap: wrap; row-gap: 12px; }
  .page-head:has(.view-switch) > .row { display: contents; }
  .page-head:has(.view-switch) h1 { flex: 1; }
  .page-head .view-switch { order: 3; flex: 1 0 100%; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
  .page-head .view-switch button { min-height: 32px; }

  .sortable[data-view="list"] .list-item {
    display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; column-gap: 12px; align-items: start;
    padding: 12px 6px 12px 16px;
  }
  .sortable[data-view="list"] .thumb { grid-column: 1; grid-row: 1; width: 104px; border-radius: 6px; }
  .sortable[data-view="list"] .body { grid-column: 2; grid-row: 1; }
  .sortable[data-view="list"] .drag-handle { grid-column: 3; grid-row: 1; align-self: center; margin: 0; width: 40px; }
  .sortable[data-view="list"] .list-item:has(.drag-handle) .chevron { display: none; }
  .sortable[data-view="list"] .chevron { grid-column: 3; grid-row: 1; align-self: center; padding-right: 10px; }
  .sortable[data-view="list"] .body h3 {
    font-size: 0.9375rem; line-height: 1.3; margin: 0 0 6px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .sortable[data-view="list"] .body .row.small { gap: 4px; }
  .sortable[data-view="list"] .body .badge { font-size: 0.6875rem; padding: 3px 7px; border-radius: 7px; }
  .sortable[data-view="list"] .item-meta { margin-top: 6px; line-height: 1.45; font-size: 0.75rem; }
  .sortable[data-view="list"] .item-meta .tiles-only { display: inline; }
  .sortable[data-view="list"] .item-meta .list-only { display: none; }
}
@media (max-width: 380px) {
  .sortable[data-view="list"] .list-item { grid-template-columns: 88px minmax(0, 1fr) auto; padding-left: 14px; }
  .sortable[data-view="list"] .thumb { width: 88px; }
}
/* Ganze Zeile ist der Link (wie eine Zelle): ohne Unterstreichung, Drücken dimmt die Zeile */
main .st .st-mlist a.st-film, main .st .st-mlist a.st-film:hover span { text-decoration: none; }

/* Statistik: unterer Teil der Kurvenkarte luftiger – Erklärung als Bildunterschrift, auffällige Stellen als eigene Felder */
.stack.st-vcard > * + * { margin-top: 20px; }
.stack.st-vcard > .st-cap { margin-top: 10px; }
.st-cap { margin: 0; max-width: 75ch; font-size: 0.8125rem; line-height: 1.5; color: var(--text-3); }
.st-moments { gap: 12px; }
.st-moment { background: var(--surface-2); border-radius: var(--radius-s); padding: 14px 16px 6px; }
.st-moment h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 0.875rem; font-weight: 600; line-height: 1.3; }
.st-moment ul { list-style: none; padding: 0; margin: 0; }
.st-moment li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 0.875rem; color: var(--text-2); }
.st-moment li + li { margin-top: 0; border-top: 1px solid var(--separator); }
.st-moment li b { color: var(--text); font-weight: 600; }
.st-countries { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 0.875rem; color: var(--text-2);
  padding-top: 16px; border-top: 1px solid var(--separator); }
.st-countries .st-kpi-label { margin: 0; }
.st-moments { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 440px)); }

/* Verwaltung → Film: Einbettcode für Trailer */
.embed-row + .embed-row { padding-top: 16px; border-top: 1px solid var(--separator); }
.embed-head { justify-content: space-between; gap: 8px 12px; }
.embed-head h3 { margin: 0; }
.embed-code { display: block; margin-top: 10px; padding: 12px 14px; border-radius: var(--radius-s); background: var(--surface-2);
  font: 0.8125rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text-2); white-space: pre-wrap; word-break: break-all; user-select: all; }
.copy-text .t-ok { display: none; }
.copy-text.copied { color: var(--ok); }
.copy-text.copied .t-copy { display: none; }
.copy-text.copied .t-ok { display: inline; }
.embed-head .btn, .embed-head button { min-height: 36px; padding: 0 14px; font-size: 0.875rem; }
