/* F&P Händlerdatenbank: Oberfläche
   Farben aus dem F&P-Styleguide: Depth Reserve, Golden Ledger, Equity Haze, Slate Reserve, Neutral Clarity. Schrift Work Sans. */

@font-face { font-family: "Work Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/work-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Work Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/work-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Work Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/work-sans-latin-700-normal.woff2") format("woff2"); }

:root {
  --bg: #161c23;          /* Depth Reserve, abgedunkelt */
  --bg-2: #202831;        /* Depth Reserve */
  --flaeche: rgba(255, 245, 208, 0.045);
  --flaeche-2: rgba(255, 245, 208, 0.08);
  --linie: rgba(255, 245, 208, 0.11);
  --linie-stark: rgba(255, 245, 208, 0.24);
  --fg: #f2f2f2;          /* Neutral Clarity */
  --leise: #9aa1ad;
  --slate: #4b505f;       /* Slate Reserve */
  --gold: #fff5d0;        /* Golden Ledger */
  --gold-tief: #e6d39a;
  --auf-gold: #161c23;
  --haze: #bdccf2;        /* Equity Haze */
  --haze-weich: rgba(189, 204, 242, 0.15);
  --gut: #a8dcb9;
  --gut-weich: rgba(168, 220, 185, 0.14);
  --warn: #f0c98a;
  --warn-weich: rgba(240, 201, 138, 0.14);
  --schlecht: #f2a7a0;
  --schlecht-weich: rgba(242, 167, 160, 0.14);
  --schatten: 0 18px 50px rgba(0, 0, 0, 0.35);
  --radius: 14px;
  --font: "Work Sans", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --tab-h: 64px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f2f2f2; --bg-2: #ffffff; --flaeche: rgba(32, 40, 49, 0.035); --flaeche-2: rgba(32, 40, 49, 0.065);
    --linie: rgba(32, 40, 49, 0.1); --linie-stark: rgba(32, 40, 49, 0.22); --fg: #202831; --leise: #5d6370;
    --gold: #202831; --gold-tief: #4b505f; --auf-gold: #fff5d0; --haze: #4d5f9a; --haze-weich: rgba(77, 95, 154, 0.11);
    --gut: #2f7a50; --gut-weich: rgba(47, 122, 80, 0.1); --warn: #8a5a0c; --warn-weich: rgba(176, 120, 20, 0.12);
    --schlecht: #a3433a; --schlecht-weich: rgba(163, 67, 58, 0.1); --schatten: 0 18px 50px rgba(32, 40, 49, 0.14);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f2f2f2; --bg-2: #ffffff; --flaeche: rgba(32, 40, 49, 0.035); --flaeche-2: rgba(32, 40, 49, 0.065);
  --linie: rgba(32, 40, 49, 0.1); --linie-stark: rgba(32, 40, 49, 0.22); --fg: #202831; --leise: #5d6370;
  --gold: #202831; --gold-tief: #4b505f; --auf-gold: #fff5d0; --haze: #4d5f9a; --haze-weich: rgba(77, 95, 154, 0.11);
  --gut: #2f7a50; --gut-weich: rgba(47, 122, 80, 0.1); --warn: #8a5a0c; --warn-weich: rgba(176, 120, 20, 0.12);
  --schlecht: #a3433a; --schlecht-weich: rgba(163, 67, 58, 0.1); --schatten: 0 18px 50px rgba(32, 40, 49, 0.14);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
@media (max-width: 999px) { .nur-breit { display: none !important; } }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; background: var(--bg); color: var(--fg);
  font: 400 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--haze); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 20px; height: 20px; flex: none; }
.ic-s { width: 16px; height: 16px; flex: none; }
:focus-visible { outline: 2px solid var(--haze); outline-offset: 2px; }

.start { min-height: 100vh; display: grid; place-items: center; }
.start-logo { width: 120px; height: 47px; color: var(--gold); opacity: 0.85; animation: atmen 1.6s ease-in-out infinite; }
@keyframes atmen { 50% { opacity: 0.35; } }

/* ------------------------------------------------ Anmeldung */
.tor { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.tor-box { width: 100%; max-width: 400px; }
.tor-logo { display: block; width: 150px; height: 58px; color: var(--gold); margin: 0 auto 18px; }
.tor h1 { text-align: center; font-size: 22px; }
.tor .unter { text-align: center; color: var(--leise); margin: 6px 0 28px; }
.tor form { display: grid; gap: 14px; background: var(--bg-2); padding: 24px; border-radius: 18px; box-shadow: var(--schatten); }
.tor .fuss { text-align: center; color: var(--leise); font-size: 12.5px; margin-top: 22px; }

/* ------------------------------------------------ Formularelemente */
.feld { display: grid; gap: 6px; }
.feld > span, .label { font-size: 12.5px; font-weight: 600; color: var(--leise); letter-spacing: 0.02em; }
.eingabe, select.eingabe, textarea.eingabe {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--linie);
  background: var(--flaeche); color: var(--fg); outline: none; transition: border-color 0.15s, background 0.15s;
}
textarea.eingabe { min-height: 96px; resize: vertical; line-height: 1.45; }
.eingabe:focus { border-color: var(--haze); background: var(--flaeche-2); }
select.eingabe { appearance: none; padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, var(--leise) 50%), linear-gradient(135deg, var(--leise) 50%, transparent 50%); background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px; background-size: 5px 5px; background-repeat: no-repeat; }
select.eingabe option { background: var(--bg-2); color: var(--fg); }
.reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.reihe-3 { display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.hinweis { font-size: 12.5px; color: var(--leise); }
.meldung { font-size: 13.5px; padding: 10px 12px; border-radius: 10px; background: var(--schlecht-weich); color: var(--schlecht); }
.meldung.gut { background: var(--gut-weich); color: var(--gut); }
.meldung.info { background: var(--haze-weich); color: var(--haze); }

.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 16px;
  border-radius: 10px; border: 1px solid var(--linie); background: var(--flaeche); color: var(--fg); font-weight: 600;
  cursor: pointer; text-decoration: none; white-space: nowrap; transition: background 0.15s, border-color 0.15s, opacity 0.15s;
}
.knopf:hover { background: var(--flaeche-2); text-decoration: none; }
.knopf:disabled { opacity: 0.5; cursor: default; }
.knopf.primaer { background: var(--gold); color: var(--auf-gold); border-color: transparent; }
.knopf.primaer:hover { background: var(--gold-tief); }
.knopf.gefahr { color: var(--schlecht); }
.knopf.klein { min-height: 34px; padding: 6px 12px; font-size: 13.5px; }
.knopf.voll { width: 100%; }
.knopf.nur-icon { padding: 9px; min-width: 42px; }
.knopf.leise { background: transparent; border-color: transparent; color: var(--leise); }
.knopf.leise:hover { color: var(--fg); background: var(--flaeche); }

/* ------------------------------------------------ Schale */
.schale { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 1fr; }
.seite { display: none; }
.kopf {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: var(--bg); min-height: 56px;
}
.kopf .marke { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--fg); text-decoration: none; }
.kopf .marke svg { width: 52px; height: 20px; color: var(--gold); flex: none; }
.kopf .marke b { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kopf .rechts { margin-left: auto; display: flex; gap: 6px; }
.inhalt { padding: 4px 16px calc(var(--tab-h) + 24px + env(safe-area-inset-bottom)); min-width: 0; }
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: color-mix(in srgb, var(--bg-2) 92%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 -1px 0 var(--linie);
}
.tabs a { display: grid; justify-items: center; align-content: center; gap: 3px; color: var(--leise); font-size: 11.5px; font-weight: 600; text-decoration: none; position: relative; }
.tabs a[aria-current="page"] { color: var(--gold); }
.tabs .zahl { position: absolute; top: 8px; left: calc(50% + 6px); }

.zahl { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--gold); color: var(--auf-gold); font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }
.zahl.warn { background: var(--warn); color: #161c23; }

@media (min-width: 1000px) {
  .schale { grid-template-columns: 220px 1fr; }
  .seite {
    display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 26px 16px 18px;
    background: var(--bg-2);
  }
  .seite .marke { display: grid; gap: 10px; padding: 0 10px 26px; color: var(--fg); text-decoration: none; }
  .seite .marke svg { width: 104px; height: 40px; color: var(--gold); }
  .seite .marke span { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--leise); font-weight: 600; }
  .seite nav { display: grid; gap: 2px; }
  .seite nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--leise); font-weight: 600; text-decoration: none; }
  .seite nav a:hover { background: var(--flaeche); color: var(--fg); }
  .seite nav a[aria-current="page"] { background: var(--flaeche-2); color: var(--gold); }
  .seite nav a .zahl { margin-left: auto; }
  .seite .wer { margin-top: auto; padding: 12px; border-radius: 12px; background: var(--flaeche); display: grid; gap: 2px; }
  .seite .wer b { font-weight: 600; font-size: 14px; }
  .seite .wer span { color: var(--leise); font-size: 12.5px; }
  .seite .wer .knopf { margin-top: 8px; }
  .kopf, .tabs { display: none; }
  .inhalt { padding: 24px 24px 40px; }
}
@media (min-width: 1280px) {
  .schale { grid-template-columns: 248px 1fr; }
  .inhalt { padding: 28px 32px 40px; }
}

/* ------------------------------------------------ Seitenköpfe */
.titel { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin: 8px 0 18px; }
.titel h1 { font-size: 26px; }
.titel .unter { color: var(--leise); font-size: 14px; width: 100%; margin-top: -8px; }
.titel .aktionen { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 999px) { .titel h1 { font-size: 22px; } }

/* ------------------------------------------------ Händlersuche */
.suchbereich { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 1000px) {
  .suchbereich { grid-template-columns: 320px minmax(0, 1fr); align-items: start; gap: 18px; }
  .suchbereich .liste-spalte { position: sticky; top: 20px; max-height: calc(100vh - 40px); display: flex; flex-direction: column; }
  .suchbereich .liste-scroll { overflow-y: auto; margin-right: -8px; padding-right: 8px; }
}
.suchfeld { position: relative; }
.suchfeld .ic { position: absolute; left: 12px; top: 12px; color: var(--leise); pointer-events: none; }
.suchfeld .eingabe { padding-left: 42px; padding-right: 42px; min-height: 46px; font-size: 15.5px; }
.suchfeld .leeren { position: absolute; right: 4px; top: 3px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 4px; scrollbar-width: none; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.chips::-webkit-scrollbar { display: none; }
@media (min-width: 1000px) { .chips { flex-wrap: wrap; margin: 0; padding-left: 0; padding-right: 0; overflow: visible; } }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--linie); background: transparent; color: var(--leise); font-size: 13.5px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.chip:hover { color: var(--fg); border-color: var(--linie-stark); }
.chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--auf-gold); }
.filterbox { background: var(--bg-2); border-radius: var(--radius); padding: 16px; display: grid; gap: 12px; margin-top: 10px; }
.filterbox .reihe { gap: 10px; }
.trefferzeile { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--leise); font-size: 13px; padding: 12px 2px 8px; }

.liste { display: grid; gap: 6px; }
.zeile {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; width: 100%;
  padding: 12px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid transparent; color: var(--fg);
  text-align: left; cursor: pointer; text-decoration: none;
}
.zeile:hover { border-color: var(--linie-stark); text-decoration: none; }
.zeile[aria-current="true"] { border-color: var(--gold); }
.zeile .n { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zeile .u { grid-column: 1; color: var(--leise); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zeile .r { grid-column: 2; grid-row: 1 / span 2; display: grid; justify-items: end; gap: 6px; }
.zeile.gesperrt .n { color: var(--leise); text-decoration: line-through; }
.mehrladen { margin: 10px 0 4px; }
.leer { text-align: center; color: var(--leise); padding: 40px 16px; }
.leer svg { width: 34px; height: 34px; color: var(--linie-stark); margin-bottom: 8px; }

.pill { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--flaeche-2); color: var(--leise); }
.pill[data-s="Neu"] { background: var(--haze-weich); color: var(--haze); }
.pill[data-s="Kontaktiert"] { background: var(--haze-weich); color: var(--fg); }
.pill[data-s="Gespräch"], .pill[data-s="Angebot"] { background: var(--warn-weich); color: var(--warn); }
.pill[data-s="Partner"] { background: var(--gut-weich); color: var(--gut); }
.pill[data-s="Absage"], .pill.sperre { background: var(--schlecht-weich); color: var(--schlecht); }
.pill.prio { background: transparent; border: 1px solid var(--linie-stark); color: var(--fg); padding: 0 7px; }
.pill.prio[data-p="A"] { border-color: var(--gold); color: var(--gold); }
.wer-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--leise); white-space: nowrap; }
.kuerzel { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 10.5px; font-weight: 700; background: var(--haze-weich); color: var(--haze); flex: none; }
.kuerzel.ich { background: var(--gold); color: var(--auf-gold); }
.frei { color: var(--gut); font-weight: 600; }

/* ------------------------------------------------ Kartei */
.kartei { display: grid; gap: 14px; min-width: 0; }
.kartei-leer { display: grid; place-items: center; text-align: center; color: var(--leise); min-height: 50vh; background: var(--bg-2); border-radius: 18px; padding: 24px; }
.kartei-leer svg { width: 92px; height: 36px; color: var(--linie-stark); margin-bottom: 12px; }
.kartei-kopf { background: var(--bg-2); border-radius: 18px; padding: 22px; display: grid; gap: 10px; }
.kartei-kopf .eyebrow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.kartei-kopf h2 { font-size: 24px; line-height: 1.2; }
.kartei-kopf .firm { color: var(--leise); font-size: 14px; margin-top: -4px; }
.kartei-kopf .adresse { color: var(--leise); font-size: 14px; }
.zurueck-link { display: inline-flex; align-items: center; gap: 4px; color: var(--leise); font-weight: 600; font-size: 14px; margin: 2px 0 4px; }
@media (min-width: 1000px) { .zurueck-link { display: none; } }

.block { background: var(--bg-2); border-radius: var(--radius); padding: 18px; display: grid; gap: 12px; min-width: 0; }
.block > h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--leise); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.block > h3 .rechts { margin-left: auto; text-transform: none; letter-spacing: 0; }
.zwei { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.kartei-spalte { container-type: inline-size; min-width: 0; }
.zwei > .spalte { display: contents; }
.zwei .b-kontakt { order: 1; } .zwei .b-erfassen { order: 2; } .zwei .b-verlauf { order: 3; } .zwei .b-verwaltung { order: 4; }
@container (min-width: 720px) {
  .zwei { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .zwei > .spalte { display: grid; gap: 14px; align-content: start; min-width: 0; }
}
@media (min-width: 1280px) { .suchbereich { grid-template-columns: minmax(360px, 420px) minmax(0, 1fr); gap: 24px; } }

.zust { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.zust .text { display: grid; gap: 2px; min-width: 0; flex: 1 1 200px; }
.zust .text b { font-weight: 600; font-size: 15.5px; }
.zust .text span { color: var(--leise); font-size: 13px; }
.zust .kuerzel { width: 40px; height: 40px; font-size: 14px; }
.zust.frei-box .kuerzel { background: var(--gut-weich); color: var(--gut); }
.zust .knoepfe { display: flex; gap: 8px; flex-wrap: wrap; }

.kontakte { display: grid; gap: 2px; }
.kontakt { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 0; }
.kontakt + .kontakt { box-shadow: 0 -1px 0 var(--linie); }
.kontakt > svg { color: var(--leise); width: 20px; height: 20px; }
.kontakt .wert { min-width: 0; display: grid; }
.kontakt .wert a, .kontakt .wert b { font-weight: 600; overflow-wrap: anywhere; }
.kontakt .wert .q { font-size: 12px; color: var(--leise); }
.kontakt .wert .q a { color: var(--leise); text-decoration: underline; font-weight: 400; }
.kontakt .fehlt { color: var(--leise); font-style: italic; font-weight: 400; }

.sperrband { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); background: var(--schlecht-weich); color: var(--schlecht); }
.sperrband b { display: block; }
.sperrband span { color: var(--fg); font-size: 13.5px; }

.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button { min-height: 36px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--linie); background: transparent; color: var(--leise); font-weight: 600; font-size: 13.5px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--haze-weich); border-color: var(--haze); color: var(--fg); }

.verlauf { display: grid; gap: 0; }
.ereignis { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 12px; padding: 0 0 16px; position: relative; }
.ereignis::before { content: ""; position: absolute; left: 6px; top: 16px; bottom: 0; width: 1px; background: var(--linie); }
.ereignis:last-child::before { display: none; }
.ereignis .punkt { width: 13px; height: 13px; border-radius: 50%; margin-top: 4px; background: var(--bg); box-shadow: inset 0 0 0 2px var(--haze); }
.ereignis[data-art="Anruf"] .punkt, .ereignis[data-art="Besuch"] .punkt, .ereignis[data-art="Termin"] .punkt, .ereignis[data-art="Brief"] .punkt, .ereignis[data-art="E-Mail"] .punkt { box-shadow: inset 0 0 0 7px var(--gold); }
.ereignis[data-art="Kontaktsperre"] .punkt { box-shadow: inset 0 0 0 7px var(--schlecht); }
.ereignis .kopfzeile { display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; }
.ereignis .kopfzeile b { font-weight: 600; }
.ereignis .kopfzeile span { color: var(--leise); font-size: 12.5px; }
.ereignis p { margin: 3px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }

.daten { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; font-size: 14px; }
.daten dt { color: var(--leise); }
.daten dd { margin: 0; overflow-wrap: anywhere; }

/* ------------------------------------------------ Übersicht */
.kacheln { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 700px) { .kacheln { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kachel { background: var(--bg-2); border-radius: var(--radius); padding: 16px; display: grid; gap: 2px; }
.kachel span { color: var(--leise); font-size: 12.5px; font-weight: 600; }
.kachel b { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kachel small { color: var(--leise); font-size: 12.5px; }
.ueber-raster { display: grid; gap: 14px; margin-top: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .ueber-raster { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.balken { display: grid; gap: 8px; }
.balken .b { display: grid; grid-template-columns: 120px minmax(0, 1fr) 56px; gap: 10px; align-items: center; font-size: 13.5px; }
.balken .spur { height: 8px; border-radius: 4px; background: var(--flaeche-2); overflow: hidden; }
.balken .spur i { display: block; height: 100%; border-radius: 4px; background: var(--haze); }
.balken .b span:last-child { text-align: right; font-variant-numeric: tabular-nums; color: var(--leise); }
.tabelle { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tabelle th { text-align: left; color: var(--leise); font-weight: 600; font-size: 12px; padding: 0 8px 8px 0; }
.tabelle td { padding: 8px 8px 8px 0; box-shadow: 0 -1px 0 var(--linie); }
.tabelle td.z, .tabelle th.z { text-align: right; font-variant-numeric: tabular-nums; }
.tabelle-scroll { overflow-x: auto; }
.karte-box { position: relative; width: 100%; max-width: 440px; margin: 0 auto; }
.karte-box canvas { width: 100%; display: block; border-radius: 12px; background: var(--flaeche); touch-action: manipulation; }
.legende { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: var(--leise); }
.legende i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.karte-tipp { position: absolute; pointer-events: none; background: var(--bg-2); color: var(--fg); padding: 6px 10px; border-radius: 8px; font-size: 12.5px; box-shadow: var(--schatten); white-space: nowrap; }
.feed { display: grid; gap: 10px; }
.feed a { color: var(--fg); font-weight: 600; }
.feed .z { color: var(--leise); font-size: 12.5px; }
.quelle-fuss { color: var(--leise); font-size: 12px; margin-top: 20px; }

/* ------------------------------------------------ Team */
.team-liste { display: grid; gap: 8px; }
.person { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; background: var(--bg-2); border-radius: var(--radius); padding: 14px; }
.person .kuerzel { width: 40px; height: 40px; font-size: 14px; }
.person .info { display: grid; min-width: 0; }
.person .info b { font-weight: 600; }
.person .info span { color: var(--leise); font-size: 13px; overflow-wrap: anywhere; }
.person.inaktiv { opacity: 0.55; }
.linkbox { display: grid; gap: 10px; padding: 14px; border-radius: 12px; background: var(--haze-weich); }
.linkbox code { font-size: 12.5px; overflow-wrap: anywhere; user-select: all; }

/* ------------------------------------------------ Dialog, Hinweis */
dialog { border: 0; padding: 0; border-radius: 18px; background: var(--bg-2); color: var(--fg); box-shadow: var(--schatten); width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); }
dialog::backdrop { background: rgba(10, 13, 17, 0.6); backdrop-filter: blur(3px); }
dialog form, dialog .dlg { display: grid; gap: 14px; padding: 22px; }
dialog h2 { font-size: 19px; }
dialog .fuss { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 4px; }
#toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + 20px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; background: var(--gold); color: var(--auf-gold); padding: 10px 16px; border-radius: 12px; font-weight: 600; box-shadow: var(--schatten); max-width: calc(100vw - 32px); }
#toast.fehler { background: var(--schlecht); color: #161c23; }
@media (min-width: 1000px) { #toast { bottom: 28px; } }

.mehr-liste { display: grid; gap: 8px; }
.mehr-liste a { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: var(--radius); background: var(--bg-2); color: var(--fg); font-weight: 600; text-decoration: none; }
.mehr-liste a .ic:last-child { margin-left: auto; color: var(--leise); }

.protokoll { display: grid; gap: 6px; font-size: 13.5px; }
.protokoll div { background: var(--bg-2); border-radius: 10px; padding: 10px 12px; display: grid; gap: 2px; }
.protokoll span { color: var(--leise); font-size: 12.5px; overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
