/* Gestaltung des Hub-Portals nach dem Mockup (Main.dc.html): Eisblau/Flieder-Hintergrund, runde Formen, Schrift Host
   Grotesk (eingecheckt, OFL) mit system-ui als Rückfall, Ziffern tabellarisch. Die Ampel ist die einzige Signalfarbe.
   Keine Stile in den Vorlagen (CSP ohne unsafe-inline): alles steht hier oder in den Stildateien der Apps. */

@font-face {
  font-family: "Host Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("vendor/host-grotesk-5.3.0/host-grotesk-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Host Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("vendor/host-grotesk-5.3.0/host-grotesk-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Host Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("vendor/host-grotesk-5.3.0/host-grotesk-latin-600-normal.woff2") format("woff2");
}

:root {
  --grund: #f8f9fc;
  --eisblau: #d9e8f6;
  --flieder: #e6e0f7;
  --text: #223037;
  --nebentext: #606b71;
  --text-ruhig: #454c50;
  --dunkel: #232323;
  --linie: rgba(34, 48, 55, 0.12);
  --linie-fein: rgba(34, 48, 55, 0.08);
  --glas: rgba(255, 255, 255, 0.72);
  --schatten: 0 8px 32px rgba(34, 48, 55, 0.08);
  --fokus: #4b5ba8;
  --rot: #b42318;
  --rot-grund: #fde7e4;
  --gelb: #8a5a00;
  --gelb-grund: #fff0c9;
  --gruen: #1f6b3a;
  --gruen-grund: #e2f3e7;
  --neutral: #3f4b57;
  --neutral-grund: #e6ebef;
}

*, *::before, *::after { box-sizing: border-box; }

html { background-color: var(--grund); }

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--grund);
  background-image:
    radial-gradient(900px 460px at 12% -120px, var(--eisblau) 0%, rgba(217, 232, 246, 0) 70%),
    radial-gradient(820px 420px at 92% -100px, var(--flieder) 0%, rgba(230, 224, 247, 0) 70%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: "Host Grotesk", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

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

:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; }

h1 { margin: 14px 0 0; font-size: 48px; font-weight: 500; letter-spacing: -0.04em; line-height: 1.05; }
h2 { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }

/* nur für Vorleser sichtbar */
.unsichtbar {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------- Rahmen */
.seite { max-width: 1296px; margin: 0 auto; padding: 40px 32px 32px; }
.seite-schmal { max-width: 640px; margin-top: 48px; }

.karte {
  background: var(--glas);
  border: 1px solid #ffffff;
  border-radius: 24px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), var(--schatten);
}
.seite-schmal.karte { padding: 32px; }
.seite-schmal h1 { font-size: 32px; margin-top: 0; }

.kopf-rahmen { position: sticky; top: 0; z-index: 5; padding: 16px 32px 0; }

.kopfleiste {
  max-width: 1296px; margin: 0 auto; min-height: 56px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px;
  padding: 6px 8px 6px 24px;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 100px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), 0 8px 32px rgba(34, 48, 55, 0.1);
}

.marke { font-weight: 500; font-size: 18px; letter-spacing: -0.03em; text-decoration: none; }

.mandant-pille {
  min-height: 40px; padding: 0 16px; display: inline-flex; align-items: center;
  background: rgba(255, 255, 255, 0.7); border: 1px solid var(--linie); border-radius: 100px; font-weight: 500;
}

.navigation { display: flex; flex-wrap: wrap; gap: 4px; flex: 1 1 300px; justify-content: center; }
.nav-eintrag {
  display: flex; align-items: center; gap: 8px; padding: 0 18px; min-height: 44px; border-radius: 100px;
  color: var(--nebentext); font-weight: 500; text-decoration: none;
}
.nav-eintrag:hover { color: var(--text); background: rgba(255, 255, 255, 0.6); }
.nav-aktiv, .nav-aktiv:hover { background: var(--dunkel); color: #ffffff; }
.nav-zahl { background: rgba(255, 255, 255, 0.2); border-radius: 10px; padding: 0 8px; font-size: 12px; }
.nav-eintrag:not(.nav-aktiv) .nav-zahl { background: var(--linie-fein); }

.person { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; font-size: 13px; }
.person-rolle { color: var(--nebentext); }
.person-konto { font-weight: 500; }
.abmelden form { margin: 0; }

/* ---------------------------------------------------------------- Knöpfe und Felder */
.knopf {
  min-height: 44px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--dunkel); color: #ffffff; border: 0; border-radius: 100px;
  font: inherit; font-weight: 500; text-decoration: none; cursor: pointer;
  box-shadow: 0 9px 16px -6px rgba(0, 0, 0, 0.25);
}
.knopf:hover { color: #ffffff; background: #000000; }
.knopf-hell { background: #ffffff; color: var(--text); border: 1px solid rgba(34, 48, 55, 0.14); box-shadow: none; }
.knopf-hell:hover { background: #ffffff; color: var(--fokus); }

.feld {
  min-height: 44px; padding: 0 16px; font: inherit; color: var(--text);
  background: rgba(255, 255, 255, 0.7); border: 1px solid var(--linie); border-radius: 100px;
}

input[type="email"], input[type="password"], input[type="text"] {
  min-height: 44px; padding: 0 16px; font: inherit; color: var(--text); width: 100%;
  background: #ffffff; border: 1px solid var(--linie); border-radius: 14px;
}
.seite-schmal button { min-height: 44px; padding: 0 20px; border-radius: 100px; border: 0; font: inherit; font-weight: 500;
  background: var(--dunkel); color: #ffffff; cursor: pointer; }

/* ---------------------------------------------------------------- Ampel (einzige Signalfarbe; immer Text und Symbol) */
.ampel {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 10px; border-radius: 100px;
  font-weight: 500; white-space: nowrap;
}
.ampel svg { flex: none; }
.ampel-rot { color: var(--rot); background: var(--rot-grund); }
.ampel-gelb { color: var(--gelb); background: var(--gelb-grund); }
.ampel-gruen { color: var(--gruen); background: var(--gruen-grund); }
.ampel-stichprobe { color: var(--neutral); background: var(--neutral-grund); }
.ampel-ohne { color: var(--nebentext); background: rgba(34, 48, 55, 0.05); }

/* ---------------------------------------------------------------- Betriebshinweise (Banner unter der Navigation) */
.banner {
  max-width: 1296px; margin: 16px auto 0; padding: 12px 20px;
  display: flex; align-items: flex-start; gap: 12px;
  background: rgba(255, 255, 255, 0.85); border: 1px solid var(--linie); border-radius: 20px; color: var(--text);
}
.banner-symbol { flex: none; margin-top: 3px; color: var(--neutral); }
.banner-liste { margin: 0; padding: 0; list-style: none; font-weight: 500; }

/* ---------------------------------------------------------------- Seite Über / Versionen (nur Plattform-Admin) */
.ueber-karte { padding: 20px 28px; margin-bottom: 20px; }
.ueber-karte h2 { margin-top: 0; }
.ueber-liste { display: grid; grid-template-columns: max-content 1fr; gap: 6px 24px; margin: 0; }
.ueber-liste dt { color: var(--nebentext); }
.ueber-liste dd { margin: 0; overflow-wrap: anywhere; }
.ueber-tabelle { width: 100%; border-collapse: collapse; }
.ueber-tabelle th, .ueber-tabelle td { text-align: left; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--linie); overflow-wrap: anywhere; }
.hinweis-kasten { padding: 10px 16px; border-radius: 16px; background: var(--neutral-grund); color: var(--text); font-weight: 500; }
.hinweis-gut { background: var(--gruen-grund); color: var(--gruen); }
.hinweis-warnung { background: var(--gelb-grund); color: var(--gelb); }

/* ---------------------------------------------------------------- Fußzeile mit Version (Seitenrahmen angemeldeter Personen) */
.fusszeile { max-width: 1296px; margin: 0 auto; padding: 0 32px 32px; font-size: 13px; color: var(--nebentext); }

@media (max-width: 720px) {
  .kopf-rahmen { padding: 8px 8px 0; }
  .kopfleiste { border-radius: 24px; padding: 8px 12px; }
  .seite { padding: 24px 16px; }
  h1 { font-size: 36px; }
  .banner { margin: 12px 8px 0; }
  .fusszeile { padding: 0 16px 24px; }
}
