@font-face { font-family: 'Archivo'; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url('/fonts/archivo-var.woff2') format('woff2'); }
/* DockProof – gemeinsame Grundlage: Farben, Schrift, Knöpfe, Felder, Karten */
@font-face { font-family: 'JetBrains Mono'; font-weight: 500; font-display: swap; src: url('/fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 700; font-display: swap; src: url('/fonts/jetbrains-mono-latin-700-normal.woff2') format('woff2'); }

:root {
  --ink: #0E1A2B;
  --ink-2: #2B3A52;
  --ink-3: #4A5A73;
  --ground: #F3F1EC;
  --surface: #FFFFFF;
  --soft: #F6F4EF;
  --line: #DAD6CE;
  --line-2: #ECE8DF;
  --field: #B9B3A7;
  --muted: #5A6472;
  --on-ink: #F3F1EC;
  --on-ink-muted: #B8C0CC;
  --amber: #F2A900;
  --amber-deep: #8A5A00;
  --amber-soft: #FFF1C7;
  --warn-bg: #FFF6DE;
  --green: #1F7A4D;
  --green-soft: #E2F3EA;
  --red: #B42318;
  --red-soft: #FDE8E5;
  --blue: #1D4E9E;
  --blue-soft: #E3ECFA;
  --coral: #FF8A6B;
  --radius: 12px;
  --radius-l: 16px;
  --shadow: 0 1px 2px rgba(14, 26, 43, .06), 0 4px 16px rgba(14, 26, 43, .06);
  --shadow-l: 0 12px 40px rgba(14, 26, 43, .18);
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --asphalt: #0B1219;
  --asphalt-2: #111B25;
  --led-gelb: #FFB000;
  --led-rot: #FF4A3A;
  --led-gruen: #3BE07F;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--ground); line-height: 1.45; font-size: 16px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: 30px; font-weight: 820; font-stretch: 116%; letter-spacing: -0.02em; line-height: 1.02; }
h2 { font-size: 20px; font-weight: 800; }
h3 { font-size: 16px; font-weight: 700; }
p { margin: 0; }
a { color: var(--ink); text-underline-offset: 2px; }
a:hover { color: var(--ink-2); }
img, svg { max-width: 100%; }
button { font: inherit; color: inherit; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.leise { color: var(--muted); }
.klein { font-size: 13px; }
.umbruch { word-break: break-all; }
.rechts { text-align: right; }
.nur-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ueber { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

/* Knöpfe */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1.5px solid var(--ink);
  background: var(--surface); color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer;
  white-space: nowrap; transition: background .15s, transform .05s;
}
.knopf:hover { background: var(--soft); color: var(--ink); }
.knopf:active { transform: translateY(1px); }
.knopf.haupt { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.knopf.haupt:hover { background: #E09D00; border-color: #E09D00; }
.knopf.dunkel { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.knopf.dunkel:hover { background: var(--ink-2); }
.knopf.gefahr { border-color: var(--red); color: var(--red); }
.knopf.gefahr.voll { background: var(--red); color: #fff; }
.knopf.still { border-color: transparent; background: transparent; }
.knopf.still:hover { background: rgba(14, 26, 43, .06); }
.knopf.klein { min-height: 36px; padding: 0 12px; font-size: 14px; border-radius: 8px; }
.knopf.gross { min-height: 60px; font-size: 18px; font-weight: 800; border-radius: 14px; padding: 0 22px; }
.knopf.breit { width: 100%; }
.knopf[disabled], .knopf.aus { opacity: .5; cursor: not-allowed; pointer-events: none; }
.knopf svg { flex: none; }

/* Felder */
.formular { display: flex; flex-direction: column; gap: 14px; }
.formular.reihe { flex-direction: row; flex-wrap: wrap; align-items: flex-end; }
.formular.reihe input { flex: 1 1 220px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; }
label.haken { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 500; }
label.haken input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--ink); }
.hilfe { font-weight: 400; font-size: 13px; color: var(--muted); }
input, select, textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--surface);
  border: 1px solid var(--field); border-radius: 10px; min-height: 48px; padding: 0 14px; width: 100%;
}
textarea { padding: 12px 14px; min-height: 96px; resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230E1A2B' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(242, 169, 0, .45); }
input[type="checkbox"], input[type="radio"] { width: auto; min-height: 0; }
.felder2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.felder3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 640px) { .felder2, .felder3 { grid-template-columns: minmax(0, 1fr); } }
.fehler { color: var(--red); font-weight: 600; font-size: 14px; }

/* Karten, Etiketten */
.karte { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 18px; }
.karte.dunkel { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.etikett { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--line-2); color: var(--ink); white-space: nowrap; }
.etikett::before { content: ''; width: 7px; height: 7px; border-radius: 99px; background: currentColor; opacity: .8; }
.etikett.ohne::before { display: none; }
.etikett.amber { background: var(--amber-soft); color: #6B4700; }
.etikett.gruen { background: var(--green-soft); color: #1F6B44; }
.etikett.rot { background: var(--red-soft); color: #8A2A1E; }
.etikett.blau { background: var(--blue-soft); color: var(--blue); }
.etikett.dunkel { background: var(--ink); color: var(--on-ink); }
.etikett.voll-amber { background: var(--amber); color: var(--ink); }

/* Tabellen */
.tabelle-rahmen { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tabelle { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabelle th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tabelle td { padding: 12px 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tabelle tr.klickbar { cursor: pointer; }
.tabelle tr.klickbar:hover td { background: var(--soft); }
.tabelle .rechts { text-align: right; }

/* LED-Anzeige (Punktmatrix) – Gelb wartet, Rot Standgeld, Grün frei */
.led { background: #05080C; border-radius: 10px; padding: 10px 12px; border: 1px solid #1B2633;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, .7);
  --led: var(--led-gelb); --led-aus: rgba(255, 176, 0, .08); --led-glanz: rgba(255, 176, 0, .55); }
.led.rot { --led: var(--led-rot); --led-aus: rgba(255, 74, 58, .08); --led-glanz: rgba(255, 74, 58, .6); }
.led.gruen { --led: var(--led-gruen); --led-aus: rgba(59, 224, 127, .08); --led-glanz: rgba(59, 224, 127, .55); }
.led svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 0 3px var(--led-glanz)); }
.led circle { fill: var(--led-aus); transition: fill .12s; }
.led circle.an { fill: var(--led); }
.led svg.startet { animation: led-ein .7s steps(7) both; }
@keyframes led-ein { 0% { opacity: 0 } 20% { opacity: 1 } 30% { opacity: .2 } 45% { opacity: 1 } 55% { opacity: .5 } 100% { opacity: 1 } }

/* Seitenwechsel: kurzes Einblenden, damit sichtbar ist, dass etwas Neues da ist */
.ansicht-neu { animation: ansicht-ein .32s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes ansicht-ein { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: none } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
