/* Handbetrieb Cockpit – Design nach dem Markenbild vom 14.10.2026:
   Schwarz/Anthrazit mit Silber, Rot #B3121B nur als Signal, Schrift Barlow, Silberstreifen.
   Barlow liegt lokal im Programm (SIL Open Font License, siehe schrift/OFL.txt) – kein Abruf bei Google. */

@font-face { font-family: "Barlow"; src: url("schrift/Barlow-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("schrift/Barlow-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("schrift/Barlow-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("schrift/BarlowCondensed-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("schrift/BarlowSemiCondensed-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --schwarz: #111111;
  --anthrazit: #1c1c1c;
  --anthrazit-hell: #262626;
  --linie: #333333;
  --silber: #c0c0c0;
  --silber-dunkel: #8a8a8a;
  --silberverlauf: linear-gradient(90deg, #6d6d6d, #b6b6b6 25%, #e8e8e8 50%, #b6b6b6 75%, #6d6d6d);
  --text: #f1eee6;
  --text-leise: #a9a6a0;
  --signal: #b3121b;
  --signal-hell: #e0454d;
  --ok: #8fbf8f;
  --radius: 10px;
  --schrift: "Barlow", "Segoe UI", system-ui, Arial, sans-serif;
  --schrift-schmal: "Barlow Condensed", "Barlow", "Arial Narrow", "Segoe UI", sans-serif;
  --schrift-kennzeile: "Barlow Semi Condensed", "Barlow", "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--schwarz);
  color: var(--text);
  font-family: var(--schrift);
  font-size: 16px;
  line-height: 1.5;
}

h1, h2, h3 {
  font-family: var(--schrift-schmal);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.15;
  margin: 0 0 0.6em;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }

.kennzeile {
  font-family: var(--schrift-kennzeile);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--silber);
}

a { color: var(--silber); }
a:hover { color: var(--text); }

.silberstreifen {
  height: 3px;
  background: var(--silberverlauf);
  border: 0;
  margin: 0;
}

/* Kopfleiste */
.kopf {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  background: var(--schwarz);
}
.kopf img { width: 34px; height: auto; }
.kopf .marke { display: flex; flex-direction: column; line-height: 1.1; }
.kopf .marke strong {
  font-family: var(--schrift-schmal);
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: 1.15rem;
}
.kopf .marke span { font-size: 0.7rem; }
.kopf .rechts { margin-left: auto; display: flex; align-items: center; gap: 12px; color: var(--text-leise); font-size: 0.9rem; }

/* Grundlayout Cockpit */
.rahmen { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 61px); }
.navigation { background: var(--anthrazit); border-right: 1px solid var(--linie); padding: 16px 0; }
.navigation button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-left: 3px solid transparent;
  color: var(--text);
  font: inherit;
  padding: 10px 20px;
  cursor: pointer;
}
.navigation button:hover { background: var(--anthrazit-hell); }
.navigation button[aria-current="page"] { border-left-color: var(--silber); background: var(--anthrazit-hell); }
.inhalt { padding: 28px 32px; max-width: 1100px; }

@media (max-width: 760px) {
  .rahmen { grid-template-columns: 1fr; }
  .navigation { display: flex; overflow-x: auto; padding: 0; border-right: 0; border-bottom: 1px solid var(--linie); }
  .navigation button { width: auto; white-space: nowrap; border-left: 0; border-bottom: 3px solid transparent; }
  .navigation button[aria-current="page"] { border-bottom-color: var(--silber); }
  .inhalt { padding: 20px 16px; }
}

/* Karten, Formulare, Knöpfe */
.karte {
  background: var(--anthrazit);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 18px;
}
.mitte { max-width: 460px; margin: 48px auto; padding: 0 16px; }

label { display: block; margin: 14px 0 6px; font-weight: 500; }
input, select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--linie);
  background: var(--schwarz);
  color: var(--text);
  font: inherit;
}
input:focus, select:focus, button:focus-visible { outline: 2px solid var(--silber); outline-offset: 2px; }
.code-eingabe { font-size: 1.6rem; letter-spacing: 0.3em; text-align: center; font-variant-numeric: tabular-nums; }

.knopf {
  display: inline-block;
  margin-top: 18px;
  padding: 12px 22px;
  border-radius: 8px;
  border: 1px solid var(--silber);
  background: var(--silber);
  color: var(--schwarz);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.knopf:hover { background: var(--text); }
.knopf.leise { background: transparent; color: var(--text); border-color: var(--linie); }
.knopf.leise:hover { border-color: var(--silber); }
.knopf.warnung { background: transparent; color: var(--signal-hell); border-color: var(--signal); }
.knopf:disabled { opacity: 0.5; cursor: wait; }

.hinweis { color: var(--text-leise); font-size: 0.92rem; }
.fehler {
  border-left: 3px solid var(--signal);
  background: rgba(179, 18, 27, 0.12);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 6px;
  margin-top: 14px;
}
.erfolg { border-left: 3px solid var(--silber); background: var(--anthrazit-hell); padding: 10px 14px; border-radius: 6px; margin-top: 14px; }

.code-gross {
  font-family: var(--schrift-schmal);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}

.qr { background: #ffffff; padding: 12px; border-radius: 8px; display: inline-block; }
.qr img { display: block; width: 220px; height: 220px; image-rendering: pixelated; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--linie); vertical-align: top; }
th { font-family: var(--schrift-kennzeile); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.75rem; color: var(--silber); }
.marke-rot { color: var(--signal-hell); }

dialog {
  background: var(--anthrazit);
  color: var(--text);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  max-width: 420px;
  width: calc(100% - 32px);
}
dialog::backdrop { background: rgba(0, 0, 0, 0.7); }

.zeile { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; }

/* Alarm */
input.auswahl, .person-zeile input { width: auto; margin-right: 6px; }
.person-zeile { display: block; padding: 8px 0; border-bottom: 1px solid var(--linie); margin: 0; font-weight: 400; }
.status-an { color: var(--ok); }
.alarm-eintrag { border-top: 1px solid var(--linie); padding-top: 10px; margin-top: 10px; }
.zeile > * { flex: 1 1 180px; }

/* Winterdienst: Glätte-Ampel (Rot nur für „möglich“/„erwartet“), Tabellen, Fotos */
.ampel { display: inline-block; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--linie); font-weight: 600; font-size: 0.85rem; white-space: nowrap; }
.ampel-0 { color: var(--text-leise); }
.ampel-1 { color: var(--text); border-color: var(--silber-dunkel); }
.ampel-2 { color: var(--signal-hell); border-color: var(--signal); }
.ampel-3 { background: var(--signal); color: #ffffff; border-color: var(--signal); }
.tabelle-rollen { overflow-x: auto; }
tr.klickbar { cursor: pointer; }
tr.klickbar:hover, tr.klickbar:focus { background: var(--anthrazit-hell); outline: none; }
tr.blass td { opacity: 0.55; }
.rechtsbuendig { text-align: right; }
.foto-reihe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.foto-reihe figure { margin: 0; }
.foto-reihe img { width: 180px; height: 135px; object-fit: cover; border-radius: 6px; border: 1px solid var(--linie); display: block; }
.foto-reihe figcaption { font-size: 0.8rem; margin-top: 4px; font-family: var(--schrift-kennzeile); letter-spacing: 0.06em; }
.foto-gross img { max-width: 100%; max-height: 60vh; border-radius: 8px; margin: 14px 0; display: block; }
.umbruch { word-break: break-all; font-family: ui-monospace, Consolas, monospace; font-size: 0.85rem; }
.foto-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 12px; }
.foto-karte { margin: 0; background: var(--anthrazit-hell); border: 1px solid var(--linie); border-radius: 8px; padding: 8px; }
.foto-karte img { width: 100%; height: 170px; object-fit: cover; border-radius: 6px; display: block; }
.foto-karte figcaption { font-size: 0.85rem; margin-top: 6px; line-height: 1.4; }
.foto-reihe video { width: 180px; height: 135px; object-fit: cover; border-radius: 6px; border: 1px solid var(--linie); display: block; background: #000000; }
.foto-karte video { width: 100%; height: 170px; object-fit: contain; border-radius: 6px; display: block; background: #000000; }
.foto-gross video { max-width: 100%; max-height: 60vh; border-radius: 8px; margin: 14px 0; display: block; background: #000000; }
