/* Ascherl Cockpit – gleiche Familie wie events/aktion.ascherl.at (Farben, Schrift, Rundungen).
 * Schrift lokal (Inter) – keine Google Fonts. */

@font-face {
  font-family: "Inter";
  src: url("/static/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0a1a3a;
  --navy-2: #12295a;
  --blau: #003cd1;
  --blau-dunkel: #002fa6;
  --blau-hell: #eaf0ff;
  --rot: #ff1e23;
  --text: #24324d;
  --leise: #5b6b86;
  --linie: #e3e8f2;
  --grund: #f4f6fa;
  --weiss: #fff;
  --gruen: #0f7a4a;
  --gruen-hell: #e3f4ea;
  --warn: #9a5a00;
  --warn-grund: #fff5e5;
  --fehler: #9b1c1c;
  --fehler-grund: #fdecec;

  --radius: 16px;
  --radius-klein: 10px;
  --schatten: 0 1px 2px rgba(10, 26, 58, .06), 0 8px 28px rgba(10, 26, 58, .08);
  --schatten-stark: 0 2px 4px rgba(10, 26, 58, .08), 0 18px 50px rgba(10, 26, 58, .16);

  --rand: clamp(16px, 4vw, 40px);
  --max: 1320px;
  --kopf-h: 68px;
  --schrift: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: var(--schrift); font-size: 15.5px; line-height: 1.55; color: var(--text);
  background: var(--grund); font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blau); text-underline-offset: 3px; }
h1, h2, h3 { color: var(--navy); line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
code { font: 13px ui-monospace, Menlo, monospace; background: #eef1f7; padding: 1px 5px; border-radius: 4px; word-break: break-all; }
kbd { font: 12px ui-monospace, Menlo, monospace; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.breite { width: 100%; max-width: calc(var(--max) + 2 * var(--rand)); margin-inline: auto; padding-inline: var(--rand); }
.inhalt { padding-block: 28px 64px; }
.inhalt--breit { max-width: none; padding-inline: var(--rand); }
.icon { width: 20px; height: 20px; flex: none; }
.icon--klein { width: 16px; height: 16px; }
.leise { color: var(--leise); }
.klein { font-size: 13.5px; }
.nowrap { white-space: nowrap; }
.rechts { text-align: right; }
:focus-visible { outline: 3px solid var(--blau); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- Kopf */
.kopf {
  position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--linie); padding-top: env(safe-area-inset-top, 0px);
}
.kopf__innen { height: var(--kopf-h); display: flex; align-items: center; gap: 28px; }
.kopf__logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.kopf__logo img { width: 132px; height: auto; }
.kopf__zusatz {
  font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--blau);
  border-left: 1.5px solid var(--linie); padding-left: 12px; line-height: 1.6;
}
.kopf__nav { display: flex; gap: 4px; margin-right: auto; }
.kopf__nav a { color: var(--text); text-decoration: none; font-weight: 550; padding: 8px 12px; border-radius: 8px; }
.kopf__nav a:hover { background: var(--grund); }
.kopf__nav a[aria-current] { color: var(--blau); background: var(--blau-hell); }

.menue { position: relative; }
.menue__knopf { list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 4px 10px 4px 4px; border-radius: 999px; }
.menue__knopf::-webkit-details-marker { display: none; }
.menue__knopf:hover, .menue[open] .menue__knopf { background: var(--grund); }
.menue__name { font-weight: 550; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menue__liste {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; background: #fff; border-radius: 12px;
  box-shadow: var(--schatten-stark); border: 1px solid var(--linie); padding: 6px; display: grid;
}
.menue__wer { padding: 10px 12px 12px; border-bottom: 1px solid var(--linie); margin-bottom: 6px; display: grid; }
.menue__wer small { color: var(--leise); }
.menue__liste a, .menue__liste button {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: var(--text);
  text-decoration: none; font: inherit; background: none; border: 0; width: 100%; text-align: left; cursor: pointer;
}
.menue__liste a:hover, .menue__liste button:hover { background: var(--grund); }
.menue__liste form { margin: 0; }
@media (max-width: 640px) {
  .kopf__innen { gap: 12px; }
  .kopf__logo img { width: 104px; }
  .kopf__zusatz { font-size: 11.5px; padding-left: 8px; }
  .menue__name { display: none; }
  .kopf__nav a { padding: 8px; }
  .kopf__nav a[href="/"] { display: none; }        /* Logo führt ohnehin zur Übersicht */
  .menue__knopf { padding: 2px; }
}

/* ---------------------------------------------------------------- Avatare und App-Icons */
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; display: inline-grid; place-items: center; vertical-align: middle; }
.avatar--initialen { background: var(--farbe); color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .02em; }
.avatar--kopf { width: 34px; height: 34px; font-size: 12.5px; }
.avatar--klein { width: 30px; height: 30px; font-size: 11.5px; }
.avatar--gross { width: 112px; height: 112px; font-size: 36px; box-shadow: var(--schatten); }

.appicon {
  --farbe: var(--blau);
  width: 48px; height: 48px; border-radius: 13px; flex: none; display: inline-grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, color-mix(in srgb, var(--farbe) 78%, #fff) 0%, var(--farbe) 55%, color-mix(in srgb, var(--farbe) 80%, #000) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 4px 12px color-mix(in srgb, var(--farbe) 35%, transparent);
  vertical-align: middle;
}
.appicon__glyph { width: 56%; height: 56%; stroke-width: 1.9; }
.appicon--bild { background: #fff; box-shadow: 0 0 0 1px var(--linie), 0 4px 12px rgba(10, 26, 58, .08); overflow: hidden; }
.appicon--bild img { width: 100%; height: 100%; object-fit: cover; }
.appicon--klein { width: 34px; height: 34px; border-radius: 9px; }
.appicon--mini { width: 26px; height: 26px; border-radius: 7px; }
.appicon--gross { width: 88px; height: 88px; border-radius: 22px; }

/* ---------------------------------------------------------------- Knöpfe */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px;
  border-radius: 10px; border: 0; background: var(--blau); color: #fff; font: inherit; font-weight: 650;
  text-decoration: none; cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s; white-space: nowrap;
}
.knopf:hover { background: var(--blau-dunkel); }
.knopf:active { transform: translateY(1px); }
.knopf--klein { padding: 7px 13px; font-size: 14px; border-radius: 8px; }
.knopf--zweit { background: var(--blau-hell); color: var(--blau); }
.knopf--zweit:hover { background: #dbe5ff; }
.knopf--leise { background: transparent; color: var(--leise); }
.knopf--leise:hover { background: var(--grund); }
.knopf--gefahr { background: var(--fehler); }
.knopf--gefahr:hover { background: #7f1414; }
.knopf--link { background: none; border: 0; padding: 0; color: var(--blau); font: inherit; text-decoration: underline; cursor: pointer; }
.knopf--ms { width: 100%; background: #fff; color: var(--text); border: 1.5px solid #cfd8e8; padding: 13px 20px; }
.knopf--ms:hover { background: var(--grund); }

/* ---------------------------------------------------------------- Bühne mit Suche */
.buehne {
  background: radial-gradient(1200px 400px at 85% -10%, rgba(0, 60, 209, .55), transparent 60%),
              linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff; padding-block: 40px 30px;
}
.buehne__gruss { color: #9fb3dc; font-weight: 600; margin-bottom: 6px; }
.buehne h1 { color: #fff; font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -.03em; margin-bottom: 24px; }
.suche {
  display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 14px; padding: 0 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .25); max-width: 760px;
}
.suche__icon { color: var(--leise); width: 22px; height: 22px; }
.suche input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 18px; padding: 16px 0; color: var(--text); background: transparent; }
.suche input::-webkit-search-cancel-button { cursor: pointer; }
.suche:focus-within { box-shadow: 0 0 0 4px rgba(122, 162, 255, .55), 0 10px 40px rgba(0, 0, 0, .25); }
.suche__taste { color: var(--leise); border: 1px solid var(--linie); border-radius: 6px; padding: 1px 7px; }
@media (max-width: 640px) { .suche__taste { display: none; } .suche input { font-size: 16px; } }

.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.filter--zwei { margin-top: 12px; align-items: center; }
.filter__chip, .filter__schalter, .filter__zuruecksetzen {
  display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: 14px; font-weight: 550;
  padding: 7px 14px; border-radius: 999px; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
  background: rgba(255, 255, 255, .08); color: #dbe4f7; border: 1px solid rgba(255, 255, 255, .16);
}
.filter__chip span { font-size: 12px; opacity: .7; font-variant-numeric: tabular-nums; }
.filter__chip:hover, .filter__schalter:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.filter__chip[aria-pressed="true"], .filter__schalter[aria-pressed="true"] { background: #fff; color: var(--navy); border-color: #fff; }
.filter__schalter[aria-pressed="true"] .icon { color: var(--blau); }
.filter__auswahl { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: #9fb3dc; }
.filter__auswahl select {
  font: inherit; font-size: 14px; font-weight: 550; color: #dbe4f7; background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; padding: 6px 12px; cursor: pointer;
}
.filter__auswahl select option { color: var(--text); }
.filter__auswahl select.an { background: #fff; color: var(--navy); border-color: #fff; }
.filter__rechts { margin-left: auto; display: inline-flex; gap: 10px; align-items: center; }
.filter__zuruecksetzen { background: transparent; border-color: transparent; color: #ffb4b5; padding-inline: 8px; }
.filter__zuruecksetzen:hover { color: #fff; }
.ansicht { display: inline-flex; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; padding: 2px; }
.ansicht button { background: none; border: 0; color: #dbe4f7; padding: 6px 10px; border-radius: 999px; cursor: pointer; display: inline-grid; place-items: center; }
.ansicht button[aria-pressed="true"] { background: #fff; color: var(--navy); }
@media (max-width: 640px) {
  /* Am Handy je Filterzeile eine wischbare Reihe statt vieler Zeilen */
  .buehne { padding-block: 24px 20px; }
  .buehne h1 { margin-bottom: 16px; }
  .filter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--rand)); padding-inline: var(--rand); }
  .filter::-webkit-scrollbar { display: none; }
  .filter > * { flex: none; }
  .filter__rechts { margin-left: 0; }
}

/* ---------------------------------------------------------------- Kacheln */
.treffer { color: var(--leise); font-size: 14px; min-height: 1px; margin-bottom: 6px; }
.gruppe { margin-bottom: 36px; }
.gruppe__titel { display: flex; align-items: center; gap: 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--leise); font-weight: 700; margin-bottom: 14px; }
.gruppe--favoriten .gruppe__titel .icon { color: #e8a400; fill: #e8a400; }
.raster { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }

.kachel {
  background: #fff; border-radius: var(--radius); box-shadow: var(--schatten); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease;
}
.kachel:hover { transform: translateY(-3px); box-shadow: var(--schatten-stark); }
.kachel--leise { opacity: .78; }
.kachel__vorschau { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--grund); overflow: hidden; border-bottom: 1px solid var(--linie); }
.kachel__vorschau img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .4s ease; }
.kachel:hover .kachel__vorschau img { transform: scale(1.035); }
.kachel__platzhalter {
  position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .9);
  background: radial-gradient(120% 90% at 20% 0%, color-mix(in srgb, var(--farbe) 55%, #fff), var(--farbe) 60%, color-mix(in srgb, var(--farbe) 70%, #000));
}
.kachel__platzhalter-glyph { width: 34%; height: 34%; stroke-width: 1.3; opacity: .9; }
.marke {
  position: absolute; top: 10px; right: 10px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  background: rgba(255, 255, 255, .92); color: var(--text); box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}
.marke--test { color: var(--warn); }
.marke--entwicklung { color: #5b3cc4; }
.marke--stillgelegt { color: var(--fehler); }
.marke--live { color: var(--gruen); }
.marke--inline { position: static; box-shadow: none; background: var(--grund); }

.kachel__rumpf { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
/* position + z-index: sonst liegt das (positionierte) Vorschaubild über dem hineinragenden App-Icon */
.kachel__kopf { display: flex; align-items: center; gap: 12px; margin-top: -38px; position: relative; z-index: 1; }
.kachel__kopf .appicon { width: 54px; height: 54px; border-radius: 15px; border: 3px solid #fff; box-sizing: content-box; }
.kachel__titel { flex: 1; min-width: 0; padding-top: 26px; }
.kachel__titel h3 { font-size: 17px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kachel__netz { font-size: 12px; color: var(--leise); }
.kachel__netz--firmennetz, .kachel__netz--tailscale, .kachel__netz--tunnel { color: var(--warn); }
.kachel__netz--geraet { color: #5b3cc4; }
.kachel__text { color: var(--leise); font-size: 14.5px; line-height: 1.5; flex: 1; }
.kachel__rollen { display: flex; flex-wrap: wrap; gap: 4px; }
.kachel__links { display: flex; flex-wrap: wrap; gap: 8px; }
.kachel__leer { font-size: 13.5px; color: var(--leise); font-style: italic; padding: 7px 0; }
.kachel__hinweis { font-size: 12.5px; color: var(--warn); line-height: 1.4; }
.stern {
  align-self: flex-end; background: none; border: 0; color: #b8c2d6; cursor: pointer; padding: 6px; border-radius: 8px; line-height: 0;
}
.stern:hover { color: #e8a400; background: var(--grund); }
.stern--an { color: #e8a400; }
.stern--an svg { fill: #e8a400; }

/* Kompakte Ansicht: ohne Vorschaubilder, dichter */
.ansicht-kompakt .raster { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 10px; }
.ansicht-kompakt .kachel__vorschau, .ansicht-kompakt .kachel__text, .ansicht-kompakt .kachel__hinweis, .ansicht-kompakt .kachel__rollen { display: none; }
.ansicht-kompakt .kachel { flex-direction: row; border-radius: 12px; }
.ansicht-kompakt .kachel:hover { transform: none; }
.ansicht-kompakt .kachel__rumpf { flex-direction: row; align-items: center; padding: 10px 12px; gap: 10px; }
.ansicht-kompakt .kachel__kopf { margin-top: 0; flex: 1; min-width: 0; }
.ansicht-kompakt .kachel__kopf .appicon { width: 40px; height: 40px; border-radius: 11px; border: 0; }
.ansicht-kompakt .kachel__titel { padding-top: 0; }
.ansicht-kompakt .kachel__titel h3 { font-size: 15.5px; }
.ansicht-kompakt .kachel__links { flex-wrap: nowrap; }
.ansicht-kompakt .knopf__text { display: none; }
.ansicht-kompakt .stern { align-self: center; order: 3; }
.ansicht-kompakt .gruppe { margin-bottom: 24px; }

.leer { text-align: center; padding: 60px 20px; color: var(--leise); display: grid; gap: 10px; justify-items: center; }
.leer h2 { font-size: 22px; }
.leer__icon { width: 44px; height: 44px; color: #b8c2d6; }
.leer__code { font-size: 64px; font-weight: 800; color: var(--linie); line-height: 1; }

/* ---------------------------------------------------------------- Chips, Meldungen */
.chip { display: inline-block; background: var(--blau-hell); color: var(--blau); border-radius: 999px; padding: 1px 9px; font-size: 12.5px; font-weight: 550; margin: 0 4px 4px 0; white-space: nowrap; }
.chip--admin { background: var(--navy); color: #fff; }
.chip--aus { background: var(--fehler-grund); color: var(--fehler); }
.chip--an { background: var(--gruen-hell); color: var(--gruen); vertical-align: 2px; }
.meldungen { display: grid; gap: 8px; margin-bottom: 18px; }
.meldung { padding: 11px 15px; border-radius: 10px; background: var(--gruen-hell); color: #0b5134; font-weight: 500; }
.meldung--fehler { background: var(--fehler-grund); color: var(--fehler); }
.meldung--hinweis { background: var(--warn-grund); color: var(--warn); margin-bottom: 18px; }
.hinweis { display: flex; gap: 8px; align-items: center; background: var(--grund); color: var(--leise); padding: 10px 12px; border-radius: 10px; font-size: 14px; }

/* ---------------------------------------------------------------- Anmelden */
.anmelden { flex: 1; display: grid; place-items: center; padding: 48px 16px; background:
  radial-gradient(900px 500px at 80% 0%, rgba(0, 60, 209, .5), transparent 60%), linear-gradient(160deg, var(--navy), var(--navy-2)); }
.seite-anmelden .kopf, .seite-anmelden .fuss { display: none; }
.anmelden__karte { width: 100%; max-width: 400px; background: #fff; border-radius: 20px; padding: 36px 32px; box-shadow: var(--schatten-stark); display: grid; gap: 16px; }
.anmelden__logo { width: 160px; }
.anmelden__karte h1 { font-size: 30px; font-weight: 800; margin-top: -6px; color: var(--blau); }
.anmelden__lokal summary { cursor: pointer; color: var(--leise); font-size: 14px; }
.anmelden__lokal .formular { margin-top: 14px; }

/* ---------------------------------------------------------------- Formulare und Karten */
.seitentitel { font-size: clamp(24px, 3vw, 32px); font-weight: 800; margin-bottom: 18px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.seitentitel small { font-size: 15px; color: var(--leise); font-weight: 500; }
.titelzeile { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.zurueck { margin-bottom: 10px; font-size: 14px; }
.zurueck a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.karte { background: #fff; border-radius: var(--radius); box-shadow: var(--schatten); padding: 22px 24px; margin-bottom: 20px; }
.karte__titel { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.spalten { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); align-items: start; }
.spalten > .karte { margin-bottom: 0; }
.stapel { display: grid; gap: 20px; }
.stapel > .karte { margin-bottom: 0; }

.formular { display: grid; gap: 14px; }
.formular label { display: grid; gap: 5px; font-size: 13.5px; font-weight: 600; color: var(--leise); }
.formular label small { font-weight: 400; color: #7a879d; }
.formular input:not([type=checkbox]):not([type=radio]):not([type=color]), .formular select, .tabelle input:not([type=checkbox]) {
  font: inherit; font-size: 15px; color: var(--text); padding: 10px 12px; border: 1.5px solid #cfd8e8; border-radius: 9px; background: #fff; width: 100%; min-width: 0;
}
.formular input:focus, .formular select:focus, .tabelle input:focus { outline: none; border-color: var(--blau); box-shadow: 0 0 0 3px rgba(0, 60, 209, .14); }
.formular input:disabled { background: var(--grund); color: var(--leise); }
.formular input[type=file] { padding: 8px; font-size: 14px; }
.formular fieldset { border: 1.5px solid var(--linie); border-radius: 12px; padding: 14px 16px 16px; margin: 0; display: grid; gap: 14px; }
.formular legend { font-weight: 700; color: var(--navy); padding: 0 6px; }
.formular--zeile { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-top: 14px; }
.formular--zeile label { flex: 1 1 180px; }
.formular--zeile p { flex-basis: 100%; }
.formular__aktionen { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 4px; }
.zweier { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); align-items: start; }
.dreier { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.schmal { max-width: 200px; }
.formular .check, .check { display: flex; flex-direction: row; align-items: center; gap: 8px; font-weight: 500; color: var(--text); font-size: 14.5px; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--blau); }
.checks { display: grid; gap: 8px; }
.inline { display: flex; align-items: center; gap: 14px; margin: 0; flex-wrap: wrap; }
.datei { position: relative; overflow: hidden; }
.datei input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.profilbild { display: flex; align-items: center; gap: 20px; }
.zugaenge { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.zugaenge li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.zugaenge li > span:last-child { text-align: right; }

.glyphen__vorschau { display: flex; align-items: center; gap: 20px; }
.glyphen__auswahl { display: grid; grid-template-columns: repeat(auto-fill, 46px); gap: 6px; }
.glyph { display: grid !important; place-items: center; width: 46px; height: 46px; border-radius: 10px; border: 1.5px solid var(--linie); cursor: pointer; color: var(--text) !important; }
.glyph input { position: absolute; opacity: 0; pointer-events: none; }
.glyph:hover { border-color: #aebbd4; }
.glyph:has(input:checked) { border-color: var(--blau); background: var(--blau-hell); color: var(--blau) !important; }
.farbe { display: flex !important; flex-direction: row !important; align-items: center; gap: 10px !important; }
.farbe input { width: 48px; height: 36px; border: 1.5px solid #cfd8e8; border-radius: 8px; padding: 2px; background: #fff; cursor: pointer; }
.vorschau-feld { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.vorschau-feld img { width: 320px; border-radius: 10px; border: 1px solid var(--linie); aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.vorschau-feld__leer { width: 320px; aspect-ratio: 16 / 10; border-radius: 10px; border: 1.5px dashed #cfd8e8; display: grid; place-items: center; text-align: center; padding: 20px; color: var(--leise); font-size: 14px; }
.vorschau-feld > div { flex: 1 1 260px; display: grid; gap: 10px; }
.anbindung { background: var(--grund); border-radius: 12px; padding: 16px; display: grid; gap: 10px; align-content: start; }
.anbindung h3 { font-size: 16px; }
.geheim { display: grid; gap: 8px; }
.geheim__wert { font: 14px ui-monospace, Menlo, monospace; padding: 10px; border: 1.5px solid #e9c98f; border-radius: 8px; background: #fff; width: 100%; }
.gefahr summary { cursor: pointer; font-weight: 650; color: var(--fehler); }

/* ---------------------------------------------------------------- Admin */
.unternav { background: #fff; border-bottom: 1px solid var(--linie); }
.unternav__innen { display: flex; gap: 4px; overflow-x: auto; }
.unternav a { padding: 12px 14px; color: var(--leise); text-decoration: none; font-weight: 600; font-size: 14.5px; border-bottom: 2.5px solid transparent; white-space: nowrap; }
.unternav a:hover { color: var(--text); }
.unternav a[aria-current] { color: var(--blau); border-bottom-color: var(--blau); }

.zahlen { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin-bottom: 20px; }
.zahl { background: #fff; border-radius: var(--radius); box-shadow: var(--schatten); padding: 18px 20px; text-decoration: none; color: var(--leise); display: grid; transition: transform .15s; }
.zahl:hover { transform: translateY(-2px); }
.zahl strong { font-size: 34px; color: var(--navy); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.liste { list-style: none; margin: 0; padding: 0; display: grid; }
.liste li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid #eef1f7; }
.liste li:last-child { border-bottom: 0; }
.liste a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 550; }
.liste small { color: var(--leise); white-space: nowrap; }

.tabellensuche { font: inherit; padding: 10px 14px; border: 1.5px solid #cfd8e8; border-radius: 10px; background: #fff; width: 100%; max-width: 420px; margin: 8px 0 14px; }
.tabellensuche:focus { outline: none; border-color: var(--blau); box-shadow: 0 0 0 3px rgba(0, 60, 209, .14); }
.scroll { overflow-x: auto; border-radius: 12px; }
.tabelle { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--schatten); font-size: 14.5px; }
.tabelle th, .tabelle td { padding: 10px 12px; text-align: left; vertical-align: middle; border-bottom: 1px solid #eef1f7; }
.tabelle thead th { background: #f8f9fc; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--leise); font-weight: 700; white-space: nowrap; }
.tabelle small { color: #7a879d; }
.tabelle tr.gesperrt td { opacity: .5; }
.karte .tabelle { box-shadow: none; border: 1px solid var(--linie); }
.person { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.person span { display: grid; line-height: 1.3; }
.person small { color: var(--leise); font-size: 12.5px; }

.rollenleiste { position: sticky; top: var(--kopf-h); z-index: 10; background: var(--grund); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; padding: 10px 0; margin-bottom: 10px; }
.rollenleiste .tabellensuche { margin: 0; flex: 1 1 260px; }
.rollengruppe { margin-bottom: 26px; }
.rollenraster { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.rollenkarte { background: #fff; border-radius: 12px; box-shadow: var(--schatten); padding: 14px; display: grid; gap: 12px; border: 2px solid transparent; transition: border-color .15s; }
.rollenkarte--an { border-color: #b8ccff; }
.rollenkarte__kopf { display: flex; gap: 10px; align-items: center; }
.rollenkarte__kopf div { display: grid; line-height: 1.3; }
.rollenkarte__kopf small { color: var(--leise); font-size: 12.5px; }
.rollenkarte__rollen { display: flex; flex-wrap: wrap; gap: 6px; }
.schalter { cursor: pointer; }
.schalter input { position: absolute; opacity: 0; pointer-events: none; }
.schalter span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1.5px solid #cfd8e8; font-size: 14px; font-weight: 550; color: var(--leise); transition: all .12s; }
.schalter span small { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; opacity: .8; }
.schalter:hover span { border-color: #9fb0cf; }
.schalter input:checked + span { background: var(--blau); border-color: var(--blau); color: #fff; }
.schalter input:checked + span::before { content: "✓"; font-weight: 800; }
.schalter input:focus-visible + span { outline: 3px solid var(--blau); outline-offset: 2px; }

.matrix-scroll { max-height: calc(100vh - 220px); overflow: auto; }
.matrix th, .matrix td { white-space: nowrap; }
.matrix thead th { position: sticky; top: 0; z-index: 2; }
.matrix__ecke, .matrix__name { position: sticky; left: 0; background: #fff; z-index: 1; }
.matrix thead .matrix__ecke { z-index: 3; background: #f8f9fc; }
.matrix__kopf a { display: grid; justify-items: center; gap: 4px; text-decoration: none; color: var(--leise); font-size: 11px; text-transform: none; letter-spacing: 0; max-width: 90px; white-space: normal; text-align: center; line-height: 1.2; }
.matrix td { text-align: center; }
.matrix td .chip { margin: 1px; }

/* ---------------------------------------------------------------- Fuß */
.fuss { background: var(--navy); color: #9fb3dc; font-size: 13px; padding-block: 18px calc(18px + env(safe-area-inset-bottom, 0px)); }
.fuss__innen { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.formular label.knopf { display: inline-flex; width: fit-content; color: var(--blau); font-size: 14px; font-weight: 650; }
