:root {
  --bg: #090a10;
  --panel: #151722;
  --panel-2: #10121b;
  --text: #f5f5f7;
  --muted: #a4a8b8;
  --line: rgba(255, 255, 255, .12);
  --gold: #d7b64a;
  --gold-2: #f0d77a;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 82% 12%, rgba(242, 195, 59, .22), transparent 24rem),
    radial-gradient(circle at 16% 8%, rgba(33, 130, 190, .28), transparent 26rem),
    linear-gradient(180deg, #0c1118, var(--bg));
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.placeholder-shell,
.site-shell {
  width: min(1080px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
}

.placeholder-shell {
  display: grid;
  place-items: center;
  padding: 36px 0;
}

.placeholder-panel {
  position: relative;
  width: min(760px, 100%);
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(12, 18, 28, .98), rgba(17, 19, 27, .94) 52%, rgba(33, 24, 7, .92)),
    var(--panel);
  padding: clamp(26px, 5vw, 54px) clamp(24px, 5vw, 58px) 0;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .42);
}

.placeholder-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .05), transparent 34%),
    radial-gradient(circle at 74% 18%, rgba(240, 215, 122, .18), transparent 18rem);
  pointer-events: none;
}

.placeholder-content {
  position: relative;
  z-index: 1;
  max-width: 570px;
  margin: 0 auto;
  text-align: center;
}

.brand-logo {
  display: block;
  width: min(310px, 78vw);
  height: auto;
  margin: 0 auto 30px;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, .42));
}

.reserved-badge {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 18px;
  border-radius: 50px;
  background: rgba(201, 162, 39, .16);
  border: 1px solid rgba(201, 162, 39, .5);
  color: var(--gold-2, #e6bc3a);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.reserved-badge.is-disabled {
  background: rgba(120, 130, 145, .14);
  border-color: rgba(150, 160, 175, .42);
  color: #aeb6c2;
}
.reserved-badge.is-available {
  background: rgba(33, 130, 190, .14);
  border-color: rgba(33, 130, 190, .45);
  color: #9bd8ff;
}
.reserved-badge.is-moved {
  background: rgba(217, 139, 44, .14);
  border-color: rgba(217, 139, 44, .48);
  color: #ffc06d;
}

.eyebrow {
  margin: 22px 0 8px;
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(24px, 4vw, 38px);
  letter-spacing: 0;
}

.lead {
  max-width: 44rem;
  margin: 0 auto 26px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.status-line {
  width: min(390px, 100%);
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

.status-line strong {
  color: var(--text);
}

.status-line a {
  color: var(--gold-2);
  text-decoration: none;
}

.popcorn-strip {
  position: relative;
  z-index: 1;
  width: calc(100% + clamp(48px, 10vw, 116px));
  max-width: none;
  height: clamp(126px, 24vw, 205px);
  object-fit: cover;
  object-position: center top;
  margin: 18px calc(clamp(24px, 5vw, 58px) * -1) 0;
  filter: saturate(1.05) contrast(1.04);
}

.error-panel {
  border-color: rgba(230, 57, 70, .45);
}

.site-shell {
  padding: 28px 0 70px;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
}

.site-header h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
}

.site-header .eyebrow {
  margin-top: 0;
}

.site-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.site-nav a {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .045);
  padding: 10px 14px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.empty-state {
  margin-top: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: clamp(24px, 5vw, 42px);
}

.empty-state p {
  max-width: 48rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.signed-in {
  margin-top: 18px;
  font-size: 13px !important;
  color: var(--gold-2) !important;
  font-weight: 800;
}

.auth-shell {
  width: min(520px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: 36px 0;
}

.auth-panel {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(12, 18, 28, .98), rgba(17, 19, 27, .96));
  padding: clamp(24px, 5vw, 42px);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .42);
}

.auth-logo {
  display: block;
  width: min(240px, 72vw);
  height: auto;
  margin: 0 auto 24px;
}

.auth-panel h1 {
  font-size: clamp(30px, 5vw, 46px);
}

.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.auth-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.auth-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, .28);
  color: var(--text);
  font: inherit;
  padding: 12px 13px;
  outline: none;
}

.auth-form input:focus {
  border-color: rgba(240, 215, 122, .64);
}

.auth-form button {
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #111;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 12px 16px;
}

.auth-error,
.auth-message {
  margin-top: 18px;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
}

.auth-error {
  border: 1px solid rgba(230, 57, 70, .45);
  background: rgba(230, 57, 70, .1);
  color: #ff9c9c;
}

.auth-message {
  border: 1px solid rgba(240, 215, 122, .34);
  background: rgba(240, 215, 122, .09);
  color: var(--gold-2);
}

.auth-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

.auth-note a {
  color: var(--gold-2);
  font-weight: 800;
  text-decoration: none;
}

.tickets-head {
  margin-top: 36px;
  max-width: 760px;
}

.tickets-head p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.65;
  font-size: 16px;
}

.showtime-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.showtime-card {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 19, 27, .88);
  padding: 16px;
}

.showtime-card.is-past {
  opacity: .58;
}

.showtime-date {
  display: grid;
  gap: 4px;
  border-right: 1px solid var(--line);
  padding-right: 18px;
}

.showtime-date strong {
  color: var(--text);
  font-size: 15px;
}

.showtime-date span {
  color: var(--gold-2);
  font-size: 22px;
  font-weight: 900;
}

.showtime-main {
  min-width: 0;
}

.showtime-main h3 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0;
}

.showtime-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.showtime-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .045);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  padding: 5px 9px;
}

.showtime-action {
  border: 1px solid rgba(240, 215, 122, .34);
  border-radius: 8px;
  background: rgba(240, 215, 122, .12);
  color: var(--gold-2);
  cursor: not-allowed;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  padding: 10px 14px;
  white-space: nowrap;
}

.showtime-action:not(:disabled) {
  cursor: pointer;
}

.seat-modal[hidden] {
  display: none;
}

.seat-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, .72);
  padding: 18px;
}

.seat-dialog {
  position: relative;
  width: min(820px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #11131d;
  padding: clamp(20px, 4vw, 32px);
}

.seat-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .05);
  color: var(--text);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.seat-modal-meta {
  color: var(--muted);
  margin-bottom: 18px;
}

.screen-line {
  margin: 0 auto 22px;
  width: min(560px, 100%);
  border-top: 5px solid rgba(240, 215, 122, .62);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  padding-top: 8px;
  text-align: center;
  text-transform: uppercase;
}

.seat-grid {
  display: grid;
  gap: 9px;
}

.seat-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.seat-row > span {
  color: var(--muted);
  font-weight: 900;
  text-align: center;
}

.seat-row > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.seat-btn {
  position: relative;
  width: 46px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px 8px 14px 14px;
  background: rgba(255, 255, 255, .06);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
}

.seat-btn.is-selected {
  border-color: rgba(240, 215, 122, .75);
  background: rgba(240, 215, 122, .22);
  color: var(--gold-2);
}

.seat-btn.is-selected::before {
  content: "⏳";
  position: absolute;
  right: 2px;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  background: rgba(10, 10, 18, .78);
  border: 1px solid rgba(255, 240, 170, .72);
  box-shadow: 0 0 10px rgba(255, 220, 120, .32);
}

.seat-btn.is-taken {
  cursor: not-allowed;
  opacity: .42;
  text-decoration: line-through;
}

.seat-btn.is-held {
  border-color: rgba(201, 162, 39, .55);
  background: rgba(201, 162, 39, .1);
  color: #f4d57b;
  cursor: not-allowed;
  opacity: .9;
  box-shadow: 0 0 0 1px rgba(201, 162, 39, .18), 0 0 16px rgba(201, 162, 39, .24);
}

.seat-btn .seat-hold-mark {
  display: block;
  font-size: 16px;
  line-height: 1;
}

.seat-btn .seat-hold-seat {
  display: block;
  font-size: 9px;
  line-height: 1;
  opacity: .58;
}

.seat-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.seat-actions > div {
  color: var(--muted);
  font-size: 13px;
}

.seat-actions button {
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #111;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 11px 16px;
}

.seat-actions button:disabled {
  cursor: not-allowed;
  filter: grayscale(1);
  opacity: .55;
}

.seat-message {
  min-height: 20px;
  margin-top: 12px;
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 720px) {
  .site-header,
  .status-line,
  .showtime-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .showtime-card {
    display: flex;
  }

  .showtime-date {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-right: 0;
    padding-bottom: 12px;
    width: 100%;
  }

  .seat-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

/* ===========================================================================
 * Phase 4: Meine Tickets, Ticket/QR, Verwaltung, Einlass
 * ========================================================================= */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.muted-inline { color: var(--muted); font-weight: 400; }
.mono { font-variant-numeric: tabular-nums; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.btn-link {
  display: inline-block;
  color: var(--gold-2);
  text-decoration: none;
  font-weight: 600;
}
.btn-link:hover { text-decoration: underline; }

.btn-primary,
.btn-soft,
.btn-danger {
  border-radius: 6px;
  border: 1px solid var(--line);
  padding: 8px 14px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  background: var(--panel-2);
  color: var(--text);
}
.btn-primary {
  border-color: transparent;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #1a1407;
}
.btn-soft:hover { border-color: var(--gold); }
.btn-danger { border-color: rgba(220, 80, 80, .5); color: #ffb4b4; background: transparent; }
.btn-danger:hover { background: rgba(220, 80, 80, .12); }

/* Status-Badges */
.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  border: 1px solid var(--line);
  white-space: nowrap;
}
.status-reserved   { color: #f0d77a; border-color: rgba(240, 215, 122, .45); background: rgba(240, 215, 122, .10); }
.status-checked_in { color: #8fe0a6; border-color: rgba(120, 210, 150, .45); background: rgba(120, 210, 150, .12); }
.status-paid       { color: #8cc6f0; border-color: rgba(120, 180, 230, .45); background: rgba(120, 180, 230, .12); }
.status-cancelled  { color: #ffb4b4; border-color: rgba(220, 80, 80, .45); background: rgba(220, 80, 80, .10); }

/* Buchungsliste (Meine Tickets) */
.booking-list { display: grid; gap: 12px; margin: 18px 0 40px; }
.ticket-section-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -2px 0 14px;
  color: var(--muted);
  font-size: .86rem;
  flex-wrap: wrap;
}
.ticket-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 18px 0 34px;
  flex-wrap: wrap;
}
.ticket-pager a,
.ticket-pager span {
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
}
.ticket-pager a:hover,
.ticket-pager .current {
  border-color: var(--gold);
  background: rgba(201, 162, 39, .12);
  color: var(--gold-2);
}
.booking-card {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 16px 18px;
}
.booking-main h3 { margin: 0 0 6px; }
.booking-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: .92rem; }
.booking-meta strong { color: var(--text); }
.booking-meta .seat-strong { color: var(--gold-2); font-size: 1.05rem; }
.booking-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.booking-actions { display: flex; align-items: center; gap: 10px; }
.booking-actions form { margin: 0; }

/* Sitz-Ticketkarten (eine Buchung, je Sitz eine Karte zur Anzeige/zum Druck) */
.seat-tickets { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.seat-ticket {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 96px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease;
}
.seat-ticket:hover { border-color: var(--gold); }
.seat-ticket-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.seat-ticket-seat { font-size: 1.5rem; font-weight: 700; color: var(--gold-2); line-height: 1.1; }
.seat-ticket-cta { font-size: .8rem; color: var(--gold); }

/* Verwaltungstabelle */
.table-wrap { overflow-x: auto; margin: 18px 0 40px; }
.booking-table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.booking-table th,
.booking-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.booking-table th { color: var(--muted); font-weight: 600; }
.booking-row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.booking-row-actions form { margin: 0; }
.booking-row-actions button { padding: 6px 10px; font-size: .85rem; }

/* Ticket-Detail + QR */
.ticket-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  padding: 26px;
  margin: 18px 0 16px;
}
.ticket-panel.is-cancelled { opacity: .8; }
.ticket-info { flex: 1 1 280px; }
.ticket-info h2 { margin: 6px 0 16px; }
.ticket-facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.ticket-facts dt { color: var(--muted); }
.ticket-facts dd { margin: 0; }
.ticket-seat-note { color: var(--muted); font-size: .85rem; }
.ticket-seatbig { text-align: center; margin-top: 14px; }
.ticket-seatbig-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.ticket-seatbig-val { font-size: 2.1rem; font-weight: 700; color: var(--gold); line-height: 1.1; }
.ticket-seatbig-val.is-used { color: #ff5f6d; }
.ticket-print-btn { margin-left: 16px; background: none; border: 0; cursor: pointer; font: inherit; }
@media print { .site-header, .ticket-back { display: none !important; } }
.ticket-qr-wrap { flex: 0 0 auto; text-align: center; }
.ticket-qr {
  width: 220px;
  height: 220px;
  background: #fff;
  padding: 12px;
  border-radius: 8px;
  margin: 0 auto;
}
.ticket-qr svg, .ticket-qr img { width: 100%; height: 100%; display: block; }
.ticket-qr-hint, .ticket-cancelled-hint { color: var(--muted); margin: 12px 0 0; max-width: 220px; }
.ticket-cancelled-hint { color: #ffb4b4; }
.ticket-back { margin: 0 0 40px; }

/* Einlass / Scanner */
.scan-form { display: flex; gap: 10px; margin: 18px 0; flex-wrap: wrap; }
.scan-form input {
  flex: 1 1 240px;
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  font: inherit;
}
.scan-form button {
  border-radius: 6px;
  border: 1px solid transparent;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #1a1407;
  font: inherit;
  font-weight: 600;
  padding: 12px 20px;
  cursor: pointer;
}
.scan-result {
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: 8px;
  background: var(--panel);
  padding: 18px 20px;
  margin: 0 0 40px;
}
.scan-result.is-ok { border-left-color: #6ad08c; }
.scan-result.is-warn { border-left-color: var(--gold); }
.scan-result.is-error { border-left-color: #e06464; }
.scan-result-msg { font-size: 1.1rem; font-weight: 700; margin: 0 0 12px; }
.scan-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 16px; }
.scan-facts dt { color: var(--muted); }
.scan-facts dd { margin: 0; }

@media (max-width: 720px) {
  .booking-card { flex-direction: column; align-items: stretch; }
  .booking-side { align-items: flex-start; }
  .ticket-qr-wrap { width: 100%; }
}

/* Avatare (Phase 4) */
.user-cell { display: inline-flex; align-items: center; gap: 8px; }
.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: var(--panel-2);
}
.user-avatar-initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  color: var(--gold-2);
  text-transform: uppercase;
}

/* Sitzplan-Belegung: Avatar/Emoji statt nur grau (Phase 4) */
.seat-btn.has-occ {
  padding: 0;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.seat-btn.has-occ.is-taken { opacity: 1; }
.seat-btn .seat-av { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.seat-btn .seat-emoji { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 18px; line-height: 1; }

/* Admin: Platz zuweisen (Phase 4) */
.assign-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  padding: 20px 24px;
  margin: 0 0 32px;
}
.assign-card h3 { margin: 0 0 4px; font-size: 1.05rem; }
.show-cancel-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.show-cancel-list form,
.show-cancel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .03);
}
.show-cancel-row form {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.show-cancel-list span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.manage-ticket-reseat-form {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  width: 100%;
}
.manage-ticket-reseat-form label {
  display: grid;
  gap: 4px;
  font-size: .78rem;
  color: var(--muted);
}
.manage-ticket-reseat-form select,
.manage-ticket-reseat-form input {
  min-width: 0;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-2);
  color: var(--text);
  font: inherit;
}
.show-update-card {
  border-color: rgba(215, 182, 74, .34);
}
.show-update-card .show-cancel-list {
  gap: 14px;
}
.show-update-card .show-cancel-list form {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) repeat(4, minmax(104px, .7fr)) minmax(180px, 1fr) auto;
  align-items: end;
  gap: 10px;
}
.show-update-card .show-cancel-list form > span {
  align-self: center;
  font-weight: 700;
  color: var(--text);
}
.show-update-card .show-cancel-list label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.show-update-card .show-cancel-list label span {
  font-size: .78rem;
  font-weight: 700;
  color: var(--muted);
}
.show-update-card .show-cancel-list input,
.show-update-card .show-cancel-list select,
.show-update-card .show-cancel-list textarea {
  width: 100%;
}
.show-update-card .show-update-message {
  min-width: 0;
}
.show-update-card .btn-soft {
  min-height: 42px;
}
@media (max-width: 1120px) {
  .show-update-card .show-cancel-list form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .show-update-card .show-cancel-list form > span,
  .show-update-card .show-update-message,
  .show-update-card .btn-soft {
    grid-column: 1 / -1;
  }
}
.show-prefill-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  border: 1px solid rgba(215, 182, 74, .34);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(215, 182, 74, .09), rgba(17, 19, 27, .92));
  padding: 18px;
  margin: 0 0 22px;
}
.show-prefill-cover {
  aspect-ratio: 2 / 3;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  overflow: hidden;
}
.show-prefill-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.show-prefill-main h3 { margin: 0; font-size: 1.18rem; }
.show-prefill-original,
.show-prefill-meta,
.show-prefill-desc,
.show-prefill-note {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.45;
}
.show-prefill-desc {
  max-width: 820px;
  white-space: pre-line;
}
.show-prefill-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px 16px;
  margin: 14px 0 0;
}
.show-prefill-facts div { min-width: 0; }
.show-prefill-facts dt {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
}
.show-prefill-facts dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
}
.show-prefill-note {
  color: var(--gold-2);
  font-size: .9rem;
}
.assign-form {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin: 16px 0 0;
}
.assign-form label { display: flex; flex-direction: column; gap: 6px; flex: 1 1 200px; }
.assign-form label span { color: var(--muted); font-size: .85rem; }
.assign-form select,
.assign-form input[type="text"],
.assign-form input[type="date"],
.assign-form input[type="time"],
.assign-form input[type="number"],
.assign-form textarea,
.show-cancel-list input,
.show-cancel-list select,
.show-cancel-list textarea {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  padding: 10px 12px;
  font: inherit;
}
.assign-form textarea,
.show-cancel-list textarea { min-height: 44px; resize: vertical; }
.show-update-message { min-width: min(100%, 280px); }
.assign-form .btn-primary { flex: 0 0 auto; }
.assign-form .field-stack { display: grid; gap: 8px; flex: 1 1 260px; min-width: min(100%, 260px); }
.assign-form .field-stack > span { color: var(--muted); font-size: .85rem; }
.assign-form label.check-row { flex-direction: row; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.03); }
.assign-form label.check-row input { width: auto; margin-top: 3px; accent-color: var(--gold); }
.assign-form label.check-row b { display: block; color: var(--text); font-size: .9rem; }
.assign-form label.check-row small { display: block; color: var(--muted); font-size: .78rem; line-height: 1.35; }
.assign-form label.check-row.is-disabled { opacity: .5; cursor: not-allowed; }
.show-prefill-form { margin-top: 12px; }

@media (max-width: 680px) {
  .show-prefill-card { grid-template-columns: 76px minmax(0, 1fr); padding: 14px; }
}

/* Profilseite (Phase 4) */
.profile-alert { border-radius: 8px; padding: 12px 16px; margin: 0 0 16px; border: 1px solid var(--line); }
.profile-alert.is-ok { border-left: 4px solid #6ad08c; color: #8fe0a6; }
.profile-alert.is-warn { border-left: 4px solid var(--gold); color: #f4d57b; }
.profile-alert.is-error { border-left: 4px solid #e06464; color: #ffb4b4; }
.profile-card {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  padding: 24px;
  margin: 0 0 40px;
}
.profile-avatar {
  width: 96px;
  height: 96px;
  flex: 0 0 auto;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-initial { font-size: 2.4rem; font-weight: 700; color: var(--gold-2); text-transform: uppercase; }
.profile-info { flex: 1 1 240px; }
.profile-name { font-size: 1.2rem; font-weight: 700; margin: 0 0 2px; }
.profile-status-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 10px; }
.profile-role-badge { width: fit-content; padding: 2px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; letter-spacing: .1em; line-height: 1.4; text-transform: uppercase; }
.profile-role-user { color: #cfe8ff; border-color: rgba(96, 165, 250, .38); background: rgba(96, 165, 250, .12); }
.profile-role-scanner { color: #d8f7de; border-color: rgba(39, 201, 100, .38); background: rgba(39, 201, 100, .12); }
.profile-role-admin { color: #ff8d96; border-color: rgba(230, 57, 70, .5); background: rgba(230, 57, 70, .15); }
.profile-username { color: var(--muted); margin: 0 0 16px; }
.profile-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.profile-actions form { margin: 0; }
.profile-hint { color: var(--muted); font-size: .85rem; margin: 12px 0 0; }
.profile-avatar-wrap { position: relative; flex: 0 0 auto; }
.profile-avatar { position: relative; cursor: pointer; }
.profile-avatar-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity .15s ease;
}
.profile-avatar:hover .profile-avatar-overlay,
.profile-avatar:focus-visible .profile-avatar-overlay { opacity: 1; }
.profile-avatar-x {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(16, 18, 27, .96);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.profile-avatar-x:hover { color: #ff6b6b; border-color: #ff6b6b; }
.profile-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, .74);
  backdrop-filter: blur(7px);
}
.profile-modal-backdrop.is-open { display: flex; }
.profile-modal {
  position: relative;
  width: 390px;
  max-width: 100%;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(20,20,32,.98), rgba(11,11,18,.98));
  box-shadow: 0 28px 70px rgba(0,0,0,.55);
}
.profile-modal::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(220, 80, 80, .8), transparent);
}
.profile-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background: rgba(255,255,255,.05);
  color: var(--muted);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}
.profile-modal-close:hover { color: var(--text); border-color: rgba(255,255,255,.26); }
.profile-modal h3 { margin: 0 36px 10px 0; font-size: 1.15rem; }
.profile-modal p { color: var(--muted); line-height: 1.55; margin: 0 0 18px; }
.profile-modal-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin: 0; }

/* --- Phase 5: Filmarchiv (nur lesend) --- */
.archive-section { margin: 0 0 34px; }
.archive-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding: 0 0 8px;
  margin: 0 0 16px;
}
.archive-section-head h2 { margin: 0; font-size: 1.2rem; color: var(--gold-2); }
.archive-section-count { color: var(--muted); font-size: .9rem; }
.film-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 18px;
}
.film-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.film-cover {
  position: relative;
  aspect-ratio: 2 / 3;
  background: var(--panel-2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.film-cover img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.film-card.film-audio {
  border-color: rgba(128, 212, 255, .28);
  background: linear-gradient(180deg, rgba(128, 212, 255, .055), var(--panel) 42%);
}
.film-audio-cover {
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(circle at 78% 24%, rgba(128, 212, 255, .14), transparent 28%),
    linear-gradient(135deg, rgba(128, 212, 255, .11), var(--panel-2));
}
.film-audio-cover img {
  object-position: center;
}
.film-audio-mark {
  position: absolute;
  z-index: 3;
  right: 8px;
  bottom: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(128, 212, 255, .52);
  background:
    radial-gradient(circle, rgba(255, 255, 255, .72) 0 9%, transparent 10%),
    radial-gradient(circle, rgba(128, 212, 255, .18) 0 42%, rgba(5, 18, 28, .9) 43%);
  box-shadow: 0 5px 16px rgba(0, 0, 0, .48);
  pointer-events: none;
}
.film-card.film-audio .film-title { color: #d8efff; }
.film-card.film-audio .film-badges .badge {
  color: #9bd7ff;
  background: rgba(128, 212, 255, .1);
  border-color: rgba(128, 212, 255, .28);
}
.film-cover-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  opacity: .55;
}
.film-cover-fallback[hidden],
.film-modal-cover-fallback[hidden] { display: none !important; }
.film-info { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.film-title {
  margin: 0;
  font-size: .98rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.film-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  color: var(--muted);
  font-size: .82rem;
  overflow: hidden;
}
.film-meta span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.film-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-height: 45px;
  margin-top: 2px;
  overflow: hidden;
}
.film-badges .badge {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--gold-2);
  background: rgba(215, 182, 74, .12);
  border: 1px solid rgba(215, 182, 74, .3);
  border-radius: 5px;
  padding: 2px 6px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Phase 5: Suche & Filter im Online-Filmarchiv (clientseitig). */
.archive-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 14px;
  margin: 0 0 26px;
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.af-field { display: grid; gap: 6px; }
.af-field.af-search { flex: 1 1 240px; min-width: 200px; }
.af-field label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.af-field input,
.af-field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, .28);
  color: var(--text);
  font: inherit;
  padding: 10px 12px;
  outline: none;
}
.af-field select { min-width: 150px; cursor: pointer; }
.af-field input:focus,
.af-field select:focus { border-color: rgba(240, 215, 122, .64); }
.archive-filters .af-reset { padding: 10px 16px; }
.archive-filter-result {
  margin: 0;
  margin-left: auto;
  align-self: center;
  color: var(--muted);
  font-size: .88rem;
}
/* Vom Filter ausgeblendete Karten/Sektionen (read-only DOM-Filterung). */
.film-card.is-filtered,
.archive-section.is-filtered { display: none !important; }

@media (max-width: 600px) {
  .film-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
  .film-cover-fallback { font-size: 2rem; }
  .archive-filters { padding: 12px; }
  .af-field, .af-field.af-search { flex: 1 1 100%; min-width: 0; }
  .archive-filter-result { margin-left: 0; }
}

/* Phase 5: Film-Detail-Lightbox (read-only). Karten sind klickbar. */
.film-card { cursor: pointer; }
.film-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
body.film-modal-open { overflow: hidden; }

/* Box-/Reihen-Karte im Grid (mehrere Teile zu einer Karte). */
.film-box {
  border-color: rgba(240, 215, 122, .3);
  background: linear-gradient(180deg, rgba(240, 215, 122, .055), var(--panel) 42%);
}
.film-box-members { display: none; }
.film-box-cover { background: linear-gradient(135deg, rgba(240, 215, 122, .12), var(--panel-2)); }
.film-box-cover::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 8px 16px 14px 8px;
  border: 1px solid rgba(240, 215, 122, .32);
  border-radius: 7px;
  background: rgba(255, 255, 255, .035);
  transform: rotate(-4deg) translate(-3px, 5px);
  box-shadow: 10px 8px 0 rgba(240, 215, 122, .08);
}
.film-box-cover::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 2px rgba(240, 215, 122, .22);
  pointer-events: none;
}
.film-box-cover img {
  width: 88%;
  height: 92%;
  border-radius: 7px;
  box-shadow: 0 14px 26px rgba(0, 0, 0, .42);
}
.film-box-badge {
  position: absolute;
  z-index: 3;
  top: 8px;
  left: 8px;
  max-width: calc(100% - 16px);
  background: rgba(18, 13, 0, .88);
  color: var(--gold-2);
  border: 1px solid rgba(240, 215, 122, .72);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}
.film-box .film-title { color: var(--gold-2); }
.film-variant {
  border-color: rgba(105, 190, 255, .3);
  background: linear-gradient(180deg, rgba(105, 190, 255, .055), var(--panel) 42%);
}
.film-variant-members { display: none; }
.film-variant-cover { background: linear-gradient(135deg, rgba(105, 190, 255, .11), var(--panel-2)); }
.film-variant-cover::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 9px 10px 13px 14px;
  border: 1px solid rgba(105, 190, 255, .28);
  border-radius: 7px;
  background: rgba(105, 190, 255, .045);
  transform: rotate(3deg) translate(4px, 5px);
  box-shadow: -9px 8px 0 rgba(105, 190, 255, .07);
}
.film-variant-cover::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 2px rgba(105, 190, 255, .22);
  pointer-events: none;
}
.film-variant-cover img {
  width: 88%;
  height: 92%;
  border-radius: 7px;
  box-shadow: 0 14px 26px rgba(0, 0, 0, .42);
}
.film-variant-badge {
  position: absolute;
  z-index: 3;
  top: 8px;
  left: 8px;
  max-width: calc(100% - 16px);
  background: rgba(0, 18, 32, .88);
  color: #9bd7ff;
  border: 1px solid rgba(105, 190, 255, .65);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}
.film-variant .film-title { color: #d8efff; }

.film-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.film-modal[hidden] { display: none; }
.film-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 12, .78);
}
.film-modal-dialog {
  position: relative;
  width: min(720px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
  padding: 22px;
}
.film-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(0, 0, 0, .3);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.film-modal-close:hover { border-color: var(--gold); color: var(--gold-2); }
.film-modal-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 22px;
}
.film-modal-cover {
  position: relative;
  aspect-ratio: 2 / 3;
  background: var(--panel-2);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.film-modal.is-audio .film-modal-cover {
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(circle at 78% 24%, rgba(128, 212, 255, .14), transparent 28%),
    var(--panel-2);
}
.film-modal.is-audio .film-modal-cover img { object-position: center; }
.film-modal-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.film-modal-cover img[hidden] { display: none; }
.film-modal-cover-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  opacity: .5;
}
.film-modal-archive { margin: 0 0 4px; }
.film-modal-archive[hidden] { display: none; }
.film-modal-title { margin: 0 0 12px; font-size: 1.4rem; line-height: 1.2; color: var(--text); }
.film-modal-badges { margin: 0 0 14px; }
.film-modal-badges[hidden] { display: none; }
.film-modal-facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 7px 16px; }
.film-modal-facts dt { color: var(--muted); font-size: .85rem; }
.film-modal-facts dd { margin: 0; color: var(--text); font-size: .92rem; }
.film-modal-facts a.film-modal-link { color: var(--gold-2); text-decoration: none; }
.film-modal-facts a.film-modal-link:hover { text-decoration: underline; }
.film-modal-series { margin-top: 16px; }
.film-modal-series[hidden] { display: none; }
.film-modal-series-label { margin: 0 0 8px; color: var(--muted); font-size: .9rem; }
.film-modal-series-count { margin: 7px 0 0; color: var(--muted); font-size: .82rem; }
.film-modal-series-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(215, 182, 74, .1);
  color: var(--gold-2);
  font: inherit;
  font-weight: 700;
  font-size: .9rem;
  padding: 9px 14px;
  cursor: pointer;
}
.film-modal-series-btn:hover { border-color: var(--gold); background: rgba(215, 182, 74, .16); }
.film-modal-variants { margin-top: 16px; }
.film-modal-variants[hidden] { display: none; }
.film-modal-variants-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.film-modal-variants-head .film-modal-series-label { margin: 0; }
.film-modal-variants-back {
  border: 1px solid rgba(105, 190, 255, .34);
  border-radius: 7px;
  background: rgba(105, 190, 255, .08);
  color: #cfeeff;
  font: inherit;
  font-size: .78rem;
  font-weight: 700;
  padding: 6px 9px;
  cursor: pointer;
  white-space: nowrap;
}
.film-modal-variants-back:hover { border-color: rgba(105, 190, 255, .7); }
.film-modal-variant-list {
  display: grid;
  gap: 8px;
}
.film-modal-variant {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
  color: var(--text);
  padding: 9px 10px;
  cursor: pointer;
}
.film-modal-variant:hover,
.film-modal-variant.is-current {
  border-color: rgba(105, 190, 255, .7);
  background: rgba(105, 190, 255, .07);
}
.film-modal-variant-title {
  min-width: 0;
  font-weight: 700;
  font-size: .9rem;
  overflow-wrap: anywhere;
}
.film-modal-variant-current {
  justify-self: start;
  border: 1px solid rgba(105, 190, 255, .42);
  border-radius: 999px;
  color: #9bd7ff;
  font-size: .68rem;
  font-weight: 800;
  line-height: 1;
  padding: 3px 6px;
}
.film-modal-variant-meta {
  min-width: 0;
  color: var(--muted);
  font-size: .78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.film-modal-variant-badges { max-height: 40px; margin: 2px 0 0; overflow: hidden; }
.film-modal-showprep {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.film-modal-showprep[hidden] { display: none; }
.film-modal-showprep-title {
  margin: 0 0 5px;
  color: var(--text);
  font-size: .92rem;
  font-weight: 800;
}
.film-modal-showprep-hint,
.film-modal-showprep-status {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.4;
}
.film-modal-showprep-status { margin: 8px 0 0; color: var(--gold-2); min-height: 1em; }
.film-modal-showprep-btn {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(215, 182, 74, .1);
  color: var(--gold-2);
  font: inherit;
  font-weight: 700;
  font-size: .86rem;
  padding: 8px 12px;
  cursor: pointer;
}
.film-modal-showprep-btn:hover { border-color: var(--gold); background: rgba(215, 182, 74, .16); }

/* Sekundäres Reihen-/Box-Overlay (über der Lightbox, unter dem Cover-Zoom). */
.series-modal {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.series-modal[hidden] { display: none; }
.series-modal-backdrop { position: absolute; inset: 0; background: rgba(4, 6, 12, .82); }
.series-modal-dialog {
  position: relative;
  width: min(680px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
  padding: 22px;
}
.series-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(0, 0, 0, .3);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.series-modal-close:hover { border-color: var(--gold); color: var(--gold-2); }
.series-modal-title { margin: 0 0 4px; font-size: 1.3rem; color: var(--text); }
.series-modal-count { margin: 0 0 16px; color: var(--muted); font-size: .9rem; }
.series-modal-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 14px;
}
.series-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-2);
  padding: 8px;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  font: inherit;
}
.series-tile:hover { border-color: var(--gold); }
.series-tile.is-current { border-color: var(--gold-2); box-shadow: inset 0 0 0 1px var(--gold-2); }
.series-tile-cover {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 6px;
  overflow: hidden;
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: center;
}
.series-tile-cover.series-tile-ph { font-size: 1.8rem; font-weight: 700; color: var(--gold); opacity: .55; }
.series-tile-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.series-tile-title {
  font-size: .82rem;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.series-tile-year { color: var(--muted); font-size: .76rem; }
@media (max-width: 560px) {
  .series-modal { padding: 0; align-items: stretch; }
  .series-modal-dialog { width: 100%; max-height: 100vh; border-radius: 0; padding: 18px; }
  .series-modal-list { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; }
}
.film-modal-cover-col { display: flex; flex-direction: column; gap: 10px; }
.film-modal-cover { text-decoration: none; }
.film-modal-cover[href] { cursor: zoom-in; }
.film-modal-thumbs { display: flex; justify-content: center; gap: 10px; }
.film-modal-thumbs[hidden] { display: none; }
.film-modal-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  padding: 0;
  cursor: zoom-in;
}
.film-modal-thumb img {
  height: 72px;
  width: auto;
  max-width: 72px;
  display: block;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 4px 16px rgba(0,0,0,.55);
  transition: transform .18s, border-color .18s;
}
.film-modal.is-audio .film-modal-thumb img {
  width: 72px;
  height: 72px;
}
.film-modal-thumb img[hidden] { display: none; }
.film-modal-thumb span {
  font-size: 9px;
  line-height: 1;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.film-modal-thumb:hover img,
.film-modal-thumb.is-active img { transform: scale(1.07); border-color: rgba(215, 182, 74, .72); }
.film-modal-thumb.is-active span { color: var(--gold-2); }
.film-modal-desc {
  margin: 0 0 14px;
  color: var(--text);
  font-size: .92rem;
  line-height: 1.5;
  white-space: pre-line;
}
.film-modal-desc[hidden] { display: none; }

@media (max-width: 560px) {
  .film-modal { padding: 0; align-items: stretch; }
  .film-modal-dialog { width: 100%; max-height: 100vh; border-radius: 0; padding: 18px; }
  .film-modal-grid { grid-template-columns: 1fr; gap: 16px; }
  .film-modal-cover { width: 150px; margin: 0 auto; }
}

/* Phase 5: Cover-Zoom – zweites Overlay IN der Seite, über der Film-Lightbox. */
.cover-zoom {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: none;
}
.cover-zoom[hidden] { display: none; }
.cover-zoom.is-locked { pointer-events: auto; }
.cover-zoom-backdrop {
  position: absolute;
  inset: 0;
  background: transparent;
}
.cover-zoom.is-locked .cover-zoom-backdrop { background: rgba(2, 3, 8, .9); }
.cover-zoom-img {
  position: relative;
  max-width: 45vw;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
}
.cover-zoom-close {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 1;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, .45);
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.cover-zoom:not(.is-locked) .cover-zoom-close { display: none; }
.cover-zoom-close:hover { border-color: var(--gold); color: var(--gold-2); }
@media (max-width: 560px) {
  .cover-zoom { padding: 12px; }
  .cover-zoom-img { max-width: 90vw; max-height: 80vh; }
  .cover-zoom-close { top: 8px; right: 8px; }
}

/* Phase 8.6b: öffentlicher Rechtstext-Footer (Impressum/Datenschutz) */
.site-footer {
  margin: 56px auto 0;
  max-width: 1100px;
  padding: 24px 20px 40px;
  border-top: 1px solid var(--line);
}
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  font-size: 13px;
}
.site-footer__legal a {
  color: var(--muted);
  text-decoration: none;
}
.site-footer__legal a:hover { color: var(--text); text-decoration: underline; }
.site-footer__sep { color: var(--muted); opacity: .6; }
.legal-body { color: var(--text); }

/* Fehlendes Cover -> NO-COVER-Grafik (images/no_cover.png) statt leerer Box /
   Buchstabe. :has(img) sorgt dafuer, dass die Grafik NUR erscheint, wenn KEIN
   echtes Cover-Bild in der Box ist (kein Flackern bei vorhandenen Covern). */
.film-cover:not(:has(img)) {
  background-image: url(/images/no_cover.png);
  background-size: cover;
  background-position: center;
}
.film-cover:not(:has(img)) .film-cover-fallback { display: none; }
