/* view.selmagravesen.com – Sichtungsseite im Design von selmagravesen.com
   (Inter 14px, graue Versalien-Metadaten, rechtsbündige Kopfspalte).
   Dunkel wie die dunkle Variante der Website: Kinosaal statt weißer Seite. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/inter-400-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/inter-400-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(fonts/inter-500-latin.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(fonts/inter-600-latin.woff2) format("woff2"); }

:root {
  --black: #ececec;      /* Vordergrund (Namen wie auf der Website, dort im Dunkelmodus vertauscht) */
  --white: #111;         /* Hintergrund */
  --gray: #8a8a8a;
  --gray-light: #2b2b2b;
  --fs: 14px;
  --lh: 1.28;
  --pad: 30px;
  color-scheme: dark;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: var(--fs); background: var(--white); }
body {
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: var(--fs);
  line-height: var(--lh);
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--black); color: var(--white); }
button, select, input { font: inherit; color: inherit; }

/* ---------- Kopf ---------- */
.kopf {
  position: absolute; top: 20px; left: var(--pad);
  display: flex; gap: 10px; align-items: baseline;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em;
}
.marke { font-weight: 600; }
.marke-sub { color: var(--gray); }

/* ---------- Seite (wie .page.page-wide der Website) ---------- */
.page {
  display: grid;
  grid-template-columns: minmax(180px, 300px) minmax(0, 1fr);
  gap: 56px;
  max-width: 1500px;
  width: 100%;
  margin: 0 auto;
  padding: 110px var(--pad) 60px;
  flex: 1;
}
.page-head { text-align: right; }
.page-head h1 { font-size: 21px; font-weight: 400; line-height: 1.15; }
.page-head .sub { color: var(--gray); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 6px; }
.fakten, .fuer { margin-top: 30px; }
.fakten div, .fuer div { padding: 2px 0; }
.fakten span, .fuer span {
  display: block; color: var(--gray); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.04em; margin-top: 8px;
}
.page-body p { margin-bottom: 14px; max-width: 640px; }
.page-body h2 {
  font-size: var(--fs); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.04em; margin: 30px 0 10px;
}
.page-body h2.hinweis-titel { margin-top: 0; }
.page-body .muted, .muted { color: var(--gray); }
.page-body a { border-bottom: 1px solid var(--gray-light); }
.page-body a:hover { border-color: var(--black); }
.klein { font-size: 12px; margin-top: 16px; }

.site-footer {
  max-width: 1500px; width: 100%; margin: 0 auto;
  padding: 0 var(--pad) 40px;
  color: var(--gray); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em;
  display: flex; gap: 24px;
}
.site-footer a:hover { color: var(--black); }

/* ---------- Player ---------- */
.player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  outline: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.player video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background: #000; }
.player:fullscreen { aspect-ratio: auto; width: 100vw; height: 100vh; }
.player:-webkit-full-screen { aspect-ratio: auto; width: 100vw; height: 100vh; }

/* Wasserzeichen: wandert langsam, bleibt lesbar, aber unaufdringlich */
.wz {
  position: absolute; inset: 0; pointer-events: none; z-index: 3;
}
.wz span {
  position: absolute; left: 10%; top: 12%;
  color: #fff; opacity: 0.34;
  font-size: clamp(11px, 1.35vw, 19px); font-weight: 500; letter-spacing: 0.02em;
  white-space: nowrap;
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.6);
  transition: left 18s linear, top 18s linear;
}
.wz-fest {
  position: absolute; right: 14px; bottom: 58px; z-index: 3; pointer-events: none;
  color: #fff; opacity: 0.18; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase;
}

.gross-play {
  position: absolute; left: 50%; top: 50%; z-index: 4;
  width: 76px; height: 76px; margin: -38px 0 0 -38px;
  border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 50%;
  background: rgba(0, 0, 0, 0.35); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.gross-play svg { width: 30px; height: 30px; margin-left: 4px; }
.gross-play:hover { background: rgba(0, 0, 0, 0.6); transform: scale(1.04); }
.player.laeuft .gross-play, .player.gestartet .gross-play { display: none; }

.meldung {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 6;
  max-width: 80%; padding: 14px 18px; background: rgba(0, 0, 0, 0.85); color: #fff;
  text-align: center; font-size: 13px;
}
.meldung button { margin: 10px 6px 0; padding: 6px 12px; background: none; border: 1px solid #fff; cursor: pointer; }

/* Steuerleiste */
.leiste {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5;
  display: flex; align-items: center; gap: 12px;
  padding: 26px 14px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
  color: #fff; font-size: 12px;
  opacity: 1; transition: opacity 0.35s ease;
}
.player.laeuft.ruhig .leiste { opacity: 0; }
.player.laeuft.ruhig { cursor: none; }
.btn {
  background: none; border: 0; color: #fff; cursor: pointer;
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.btn svg { width: 22px; height: 22px; }
.play .i-pause, .player.laeuft .play .i-play { display: none; }
.player.laeuft .play .i-pause { display: block; }
.ton .i-stumm, .player.stumm .ton .i-ton { display: none; }
.player.stumm .ton .i-stumm { display: block; }
.zeit { font-variant-numeric: tabular-nums; white-space: nowrap; flex: 0 0 auto; }
.spur {
  position: relative; flex: 1 1 auto; height: 18px; cursor: pointer; outline: none;
}
.spur::before, .spur .puffer, .spur .stand {
  content: ""; position: absolute; left: 0; top: 8px; height: 2px;
}
.spur::before { right: 0; background: rgba(255, 255, 255, 0.25); }
.spur .puffer { background: rgba(255, 255, 255, 0.45); width: 0; }
.spur .stand { background: #fff; width: 0; }
.spur .knopf {
  position: absolute; top: 4px; width: 10px; height: 10px; margin-left: -5px; left: 0;
  border-radius: 50%; background: #fff; opacity: 0; transition: opacity 0.2s ease;
}
.spur:hover .knopf, .spur:focus-visible .knopf { opacity: 1; }
.spur .vorschau {
  position: absolute; bottom: 20px; transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85); padding: 3px 6px; font-variant-numeric: tabular-nums;
}
.lautstaerke { width: 70px; accent-color: #fff; flex: 0 0 auto; }
.qualitaet {
  background: transparent; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 0;
  padding: 2px 4px; font-size: 11px; cursor: pointer; flex: 0 0 auto;
}
.qualitaet option { background: #111; }
.player.kein-vollbild .voll { display: none; }

/* Bei Drucken nichts zeigen */
@media print { body * { visibility: hidden !important; } }

/* ---------- Verwaltung ---------- */
body.verwaltung .page { grid-template-columns: minmax(160px, 220px) minmax(0, 1fr); }
.anlegen { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 16px; align-items: end; max-width: 1000px; }
.anlegen label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--gray); }
.anlegen input, .anlegen select, .neu input {
  background: #1a1a1a; border: 1px solid var(--gray-light); padding: 7px 8px; color: var(--black); font-size: 14px;
}
.anlegen button, .aktionen button, .neu button {
  background: none; border: 1px solid var(--gray); padding: 6px 10px; cursor: pointer; font-size: 12px;
}
.anlegen button { background: var(--black); color: var(--white); border-color: var(--black); padding: 8px 12px; }
.aktionen button:hover, .neu button:hover { border-color: var(--black); }
.aktionen button.gefahr { color: #e07a6a; border-color: #6b3a33; }
.aktionen { display: flex; flex-wrap: wrap; gap: 6px; }
form.inline { display: inline; }
table.links { width: 100%; border-collapse: collapse; font-size: 13px; }
table.links th { text-align: left; font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--gray); padding: 6px 10px 6px 0; border-bottom: 1px solid var(--gray-light); }
table.links td { vertical-align: top; padding: 10px 10px 10px 0; border-bottom: 1px solid var(--gray-light); }
.st { font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }
.st-an { color: #8fc28f; }
.st-aus { color: #e07a6a; }
.warn { color: #e0b46a; font-size: 12px; margin-top: 4px; }
.neu { margin: 0 0 20px; padding: 14px; border: 1px solid var(--gray-light); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.neu input { flex: 1 1 360px; }
.meldung-ok { color: #8fc28f; }

/* ---------- Mobil ---------- */
@media (max-width: 900px) {
  :root { --pad: 16px; }
  .page, body.verwaltung .page { grid-template-columns: 1fr; gap: 24px; padding-top: 64px; }
  .page-head { text-align: left; }
  .fakten { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; margin-top: 18px; }
  .fuer { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .lautstaerke { display: none; }
  .leiste { gap: 8px; padding: 22px 8px 8px; }
  .wz-fest { bottom: 46px; }
  table.links, table.links tbody, table.links tr, table.links td { display: block; }
  table.links thead { display: none; }
  table.links tr { border-bottom: 1px solid var(--gray-light); padding: 10px 0; }
  table.links td { border: 0; padding: 3px 0; }
  .site-footer { flex-wrap: wrap; gap: 12px 24px; }
}
