/* Medien Team – Design „Sucher“ im Glitch-Stil (Entscheidungen 15–17).
   Schriften liegen lokal (Open Font License), kein Abruf bei Google. */

@font-face { font-family: 'Kanit'; font-style: italic; font-weight: 700; font-display: swap; src: url('schriften/kanit-latin-700-italic.woff2') format('woff2'); }
@font-face { font-family: 'Kanit'; font-style: italic; font-weight: 900; font-display: swap; src: url('schriften/kanit-latin-900-italic.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('schriften/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('schriften/inter-latin-600-normal.woff2') format('woff2'); }

:root {
  --grund: #07080B;
  --flaeche: #0B0D12;
  --karte: #12141A;
  --linie: #2A2D36;
  --linie-hell: #4A4F5C;
  --feldrand: #5A6070;
  --text: #FFFFFF;
  --grau: #B4B9C2;
  --rot: #FF1E2D;
  --rot-knopf: #D90F1E;
  --rot-hell: #FF8A92;
  --blau: #19E3FF;
  --gruen: #3DDC84;
  --titel: 'Kanit', 'Arial Black', sans-serif;
  --text-schrift: 'Inter', 'Segoe UI', system-ui, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--grund); color: var(--text); font-family: var(--text-schrift); font-size: 16px; line-height: 1.45; }
a { color: var(--text); }
a:hover { color: var(--rot-hell); }
:focus-visible { outline: 3px solid var(--blau); outline-offset: 2px; }
p { margin: 0; }
h1, h2 { margin: 0; }

/* ---------- Rahmen angemeldeter Seiten ---------- */
.seite { max-width: 1180px; margin: 0 auto; padding: 28px 24px 48px; display: flex; flex-direction: column; gap: 24px; }
.kopfzeile { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.marke { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--titel); font-style: italic; font-weight: 900; font-size: 30px; line-height: 1; letter-spacing: -0.5px; }
.marke-punkt { width: 12px; height: 12px; border-radius: 50%; background: var(--rot); }
.marke-medien { color: var(--text); text-shadow: -2px 0 0 var(--rot), 2px 0 0 var(--blau); }
.marke-team { color: var(--rot); }
.menue { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.menue-link { display: flex; align-items: center; min-height: 44px; padding: 0 4px; text-decoration: none; font-weight: 600; border-bottom: 3px solid transparent; }
.menue-link.aktiv { border-bottom-color: var(--rot); }
.konto { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; font-size: 15px; color: var(--grau); }
.konto form { margin: 0; }
.konto-name { color: var(--grau); text-decoration: none; }
.konto-name:hover { color: var(--text); text-decoration: underline; }
.inhalt { display: flex; flex-direction: column; gap: 24px; }

.verwaltung-leiste { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.verwaltung-hinweis { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--grau); margin-right: 6px; }

/* ---------- Knöpfe ---------- */
.knopf, .knopf-rahmen { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 6px; font: inherit; font-weight: 600; font-size: 17px; cursor: pointer; text-decoration: none; }
.knopf { background: var(--rot-knopf); color: var(--text); border: 0; }
.knopf:hover { background: var(--rot); color: var(--text); }
.knopf-rahmen { background: transparent; color: var(--text); border: 1px solid var(--linie-hell); }
.knopf-rahmen:hover { border-color: var(--text); color: var(--text); }
.knopf-rahmen:disabled { opacity: 0.45; cursor: not-allowed; }
.knopf-gross { min-height: 56px; font-size: 18px; width: 100%; }
.knopf-klein { min-height: 44px; padding: 0 18px; font-size: 15px; font-weight: 400; border-color: var(--linie); }
.knopf-link { background: none; border: 0; padding: 0; min-height: 44px; color: var(--text); font: inherit; text-decoration: underline; cursor: pointer; }
.knopf-link:hover { color: var(--rot-hell); }
.sucher .knopf-gross { width: auto; }

/* ---------- Pillen ---------- */
.pille { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--linie); font-size: 14px; white-space: nowrap; text-decoration: none; }
.verwaltung-leiste .pille { min-height: 44px; padding: 0 16px; font-size: 15px; font-weight: 600; border-color: var(--linie-hell); }
.pille-aktiv, .verwaltung-leiste .pille-aktiv { background: var(--rot-knopf); border-color: var(--rot-knopf); }
.pille-rot { border-color: var(--rot); }
.pille-blau { border-color: var(--blau); }

/* ---------- Sucher (große Fläche mit Kamera-Ecken) ---------- */
.sucher, .karte-mitte { position: relative; background-color: var(--flaeche); border: 1px solid var(--linie); background-image: repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0px, rgba(255,255,255,0.04) 1px, transparent 1px, transparent 4px); }
.sucher { padding: 52px 40px; display: flex; flex-direction: column; gap: 20px; }
.sucher-klein { padding: 44px 40px; }
.ecke { position: absolute; width: 44px; height: 44px; border: 0 solid var(--text); }
.ecke-lo { left: 14px; top: 14px; border-top-width: 3px; border-left-width: 3px; }
.ecke-ro { right: 14px; top: 14px; border-top-width: 3px; border-right-width: 3px; }
.ecke-lu { left: 14px; bottom: 14px; border-bottom-width: 3px; border-left-width: 3px; }
.ecke-ru { right: 14px; bottom: 14px; border-bottom-width: 3px; border-right-width: 3px; }
.rec { display: flex; align-items: center; gap: 10px; font-family: var(--titel); font-style: italic; font-weight: 700; font-size: 18px; letter-spacing: 0.08em; }
.rec-punkt { width: 14px; height: 14px; border-radius: 50%; background: var(--rot); box-shadow: 0 0 14px var(--rot); }
.titel-riesig { font-family: var(--titel); font-style: italic; font-weight: 900; font-size: clamp(40px, 7vw, 84px); line-height: 0.95; letter-spacing: -1px; text-shadow: -4px 0 0 var(--rot), 4px 0 0 var(--blau); overflow-wrap: anywhere; }
.titel-gross { font-family: var(--titel); font-style: italic; font-weight: 900; font-size: clamp(36px, 6vw, 68px); line-height: 0.95; letter-spacing: -1px; text-shadow: -4px 0 0 var(--rot), 4px 0 0 var(--blau); overflow-wrap: anywhere; }
.text-gross { font-size: 18px; max-width: 640px; }
.schritte { display: flex; flex-wrap: wrap; gap: 10px; }
.schritt { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--linie); font-size: 14px; }
.schritt:first-child { border-color: var(--rot); }
.schritt-nr { font-weight: 600; color: var(--blau); }

/* ---------- Kacheln und Karten ---------- */
.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.kachel, .karte { position: relative; overflow: hidden; padding: 28px 24px 24px; background: var(--karte); border: 1px solid var(--linie); border-radius: 6px; display: flex; flex-direction: column; gap: 14px; }
.kachel { min-height: 180px; text-decoration: none; gap: 10px; }
.kachel:hover { border-color: var(--linie-hell); color: var(--text); }
.balken { position: absolute; left: 0; top: 0; width: 96px; height: 6px; background: var(--rot); }
.balken::after { content: ''; position: absolute; left: 96px; top: 0; width: 34px; height: 6px; background: var(--blau); }
.kachel-kopf { display: flex; align-items: center; gap: 12px; }
.kachel-titel { font-family: var(--titel); font-style: italic; font-weight: 900; font-size: 30px; line-height: 1.05; }
.kachel-fuss { margin-top: auto; font-size: 14px; color: var(--grau); }
.karte-rot { border-color: var(--rot); }
.karte-ueberschrift { font-family: var(--titel); font-style: italic; font-weight: 900; font-size: 28px; line-height: 1.05; }
.raster-zwei { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; align-items: start; }
.zeile-zwischen { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.liste { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--grau); }

/* ---------- Sitzungen, Hochladen, Archiv (Schritt 2) ---------- */
.stapel { display: flex; flex-direction: column; gap: 20px; }
.karte-fuss { display: flex; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid var(--linie); font-size: 14px; color: var(--grau); }
.feld-reihe { display: flex; flex-wrap: wrap; gap: 16px; }
.feld-reihe .feld { flex: 1 1 220px; }
.raster-vorschau { display: grid; grid-template-columns: minmax(0, 3fr) minmax(280px, 2fr); gap: 24px; align-items: start; }
.pdf-rahmen { width: 100%; height: 70vh; min-height: 420px; border: 0; border-radius: 4px; background: #FFFFFF; }
.wiedergabe { width: 100%; }
.schluessel-text { padding: 14px 16px; background: var(--flaeche); border: 1px dashed var(--rot); border-radius: 6px; user-select: all; }
ol.liste { color: var(--text); }
textarea { width: 100%; padding: 12px 14px; background: var(--flaeche); color: var(--text); border: 1px solid var(--feldrand); border-radius: 6px; font: inherit; resize: vertical; }
textarea:focus { border-color: var(--blau); }
input[type="file"] { width: 100%; min-height: 56px; padding: 10px; background: var(--flaeche); color: var(--grau); border: 2px dashed var(--rot); border-radius: 6px; font: inherit; }
input[type="file"]:disabled { border-color: var(--linie); opacity: 0.6; }
input[type="file"]::file-selector-button { margin-right: 14px; min-height: 40px; padding: 0 18px; background: transparent; color: var(--text); border: 1px solid var(--linie-hell); border-radius: 6px; font: inherit; font-weight: 600; cursor: pointer; }
.formular form, .karte form { margin: 0; }

/* ---------- Symbole ---------- */
.icon { width: 22px; height: 22px; flex: none; }
.icon-klein { width: 18px; height: 18px; flex: none; }
.icon-gross { width: 30px; height: 30px; flex: none; }

/* ---------- Formulare ---------- */
.formular { display: flex; flex-direction: column; gap: 16px; }
.feld { display: flex; flex-direction: column; gap: 6px; }
.filter .feld { flex: 1 1 200px; }
.feld label { font-size: 15px; font-weight: 600; }
input[type="text"], input:not([type]), input[type="password"], input[type="date"], select {
  min-height: 48px; width: 100%; padding: 0 14px; background: var(--flaeche); color: var(--text);
  border: 1px solid var(--feldrand); border-radius: 6px; font: inherit;
}
input:focus, select:focus { border-color: var(--blau); }
.filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; }
.meldung { padding: 12px 16px; border-radius: 6px; border: 1px solid; }
.meldung-fehler { border-color: var(--rot); background: rgba(255, 30, 45, 0.12); }
.meldung-ok { border-color: var(--gruen); background: rgba(61, 220, 132, 0.10); }

/* ---------- Tabellen ---------- */
.tabelle-rahmen { overflow-x: auto; }
.tabelle { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
.tabelle th { text-align: left; padding: 12px 14px; font-size: 14px; color: var(--grau); font-weight: 600; white-space: nowrap; border-bottom: 1px solid var(--linie-hell); }
.tabelle td { padding: 12px 14px; border-bottom: 1px solid var(--linie); vertical-align: middle; }
.zeile-rot td:first-child { box-shadow: inset 3px 0 0 var(--rot); }
.aktionen { display: flex; flex-wrap: wrap; gap: 0 18px; }
.aktionen form { margin: 0; }

/* ---------- Anmelden / Einrichten (Karte mittig) ---------- */
.buehne { min-height: 100vh; padding: 32px 20px; display: flex; align-items: center; justify-content: center; background-image: repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0px, rgba(255,255,255,0.04) 1px, transparent 1px, transparent 4px); }
.karte-mitte { width: 100%; max-width: 480px; padding: 56px 36px 40px; display: flex; flex-direction: column; gap: 20px; }
.logo-gross { font-family: var(--titel); font-style: italic; font-weight: 900; line-height: 0.92; letter-spacing: -1px; font-size: clamp(48px, 13vw, 76px); }
.logo-medien { color: var(--text); text-shadow: -4px 0 0 var(--rot), 4px 0 0 var(--blau); }
.logo-team { letter-spacing: 3px; color: transparent; -webkit-text-stroke: 3px var(--rot); }
.karte-titel { font-size: 20px; font-weight: 600; }
.hinweis-zeile { display: flex; gap: 10px; font-size: 14px; color: var(--grau); }

/* ---------- Startpasswort ---------- */
.zugang { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0; align-items: baseline; }
.zugang dt { color: var(--grau); }
.zugang dd { margin: 0; }
.mono { font-family: Consolas, 'Courier New', monospace; }
.gross { font-size: 26px; letter-spacing: 1px; overflow-wrap: anywhere; }

/* ---------- Kleinkram ---------- */
.text-grau { color: var(--grau); }
.text-klein { font-size: 14px; }
.fett { font-weight: 600; }
.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 600px) {
  .seite { padding: 20px 16px 40px; }
  .sucher, .sucher-klein { padding: 48px 22px 40px; }
  .karte-mitte { padding: 52px 22px 34px; }
  .kachel, .karte { padding: 24px 18px 20px; }
  .raster-zwei, .raster-vorschau { grid-template-columns: 1fr; }
  .pdf-rahmen { height: 60vh; min-height: 320px; }
  .zugang { grid-template-columns: 1fr; gap: 2px; }
  .zugang dd { margin-bottom: 10px; }

  /* Tabellen am Handy als Karten untereinander – nichts verschwindet rechts aus dem Bild */
  .tabelle-karten { min-width: 0; }
  .tabelle-karten thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tabelle-karten, .tabelle-karten tbody, .tabelle-karten tr, .tabelle-karten td { display: block; width: 100%; }
  .tabelle-karten tr { padding: 12px 0; border-bottom: 1px solid var(--linie); }
  .tabelle-karten td { padding: 4px 0; border: 0; display: grid; grid-template-columns: 8.5em 1fr; gap: 10px; align-items: center; }
  .tabelle-karten td::before { content: attr(data-titel); color: var(--grau); font-size: 14px; font-family: var(--text-schrift); }
  .tabelle-karten td > * { justify-self: start; }
  .tabelle-karten td[data-titel=""] { grid-template-columns: 1fr; }
  .tabelle-karten td[data-titel=""]::before { display: none; }
  .zeile-rot td:first-child { box-shadow: none; }
  .tabelle-karten .zeile-rot { box-shadow: inset 3px 0 0 var(--rot); padding-left: 12px; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
