/* peppergrid – gleiche Formensprache wie lineup (HUDDLE): Inter, ruhige Flächen, Lime-Akzent. */
:root {
  --bg: #f3f4f6; --surface: #fff; --surface-2: #f8f9fb; --ink: #0b0f14; --muted: #5b6472; --line: #e2e5ea;
  --accent: #c6f432; --accent-ink: #0b0f14; --accent-text: #3b6b00;
  --danger: #c4320a; --warn: #a15c07; --info: #175cd3; --good: #1f7a3a;
  --danger-bg: #fdecE7; --warn-bg: #fdf3e2; --good-bg: #e8f5ec; --info-bg: #e8effc;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #090c10; --surface: #12171e; --surface-2: #19202a; --ink: #f2f4f7; --muted: #98a2b3; --line: #242c38;
    --accent: #c6f432; --accent-ink: #0b0f14; --accent-text: #c6f432;
    --danger: #ff7a59; --warn: #fdb022; --info: #84adff; --good: #4ade80;
    --danger-bg: #2a1712; --warn-bg: #2a2110; --good-bg: #10241a; --info-bg: #121c30;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--ink);
  font: 400 15px/1.5 "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-feature-settings: "cv11", "ss01";
}
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; }
h1 { font-size: 1.75rem; font-weight: 800; }
h2 { font-size: 1.125rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 700; }
p { margin: 0; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.85em; }
.muted { color: var(--muted); }
.klein { font-size: 0.8125rem; }

/* Kopfzeile */
.kopf { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.kopf-innen { max-width: 72rem; margin: 0 auto; padding: 0.75rem 1rem; display: flex; align-items: center; gap: 1rem; }
.marke { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 1.25rem; font-weight: 900; letter-spacing: -0.03em; text-decoration: none; }
.marke-icon { display: inline-flex; width: 2rem; height: 2rem; border-radius: 0.75rem; background: var(--accent); color: var(--accent-ink); align-items: center; justify-content: center; }
.marke-icon svg { width: 1.25rem; height: 1.25rem; }

main { max-width: 72rem; margin: 0 auto; padding: 1.5rem 1rem 4rem; }
.seitenkopf { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.seitenkopf p { margin-top: 0.25rem; }

/* Karten und Raster */
.karte { background: var(--surface); border: 1px solid var(--line); border-radius: 1.5rem; padding: 1.25rem; }
.karte + .karte, .abschnitt + .abschnitt { margin-top: 1rem; }
.raster > .karte { margin-top: 0; }
.raster > * { min-width: 0; }
.karte-kopf { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 1rem; }
.raster { display: grid; gap: 1rem; }
.raster-2 { grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr)); }
.raster-3 { grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); }
.kennzahlen { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); margin-bottom: 1rem; }
.kennzahl { background: var(--surface); border: 1px solid var(--line); border-radius: 1.25rem; padding: 1rem 1.125rem; }
.kennzahl .wert { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.kennzahl .label { color: var(--muted); font-size: 0.8125rem; font-weight: 600; }
.kennzahl.akzent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.kennzahl.akzent .label { color: var(--accent-ink); opacity: 0.7; }

/* Balkendiagramm Anrufe pro Tag */
.balken { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); align-items: end; gap: 0.375rem; height: 8rem; }
.balken div { position: relative; background: var(--accent); border-radius: 0.375rem 0.375rem 0.125rem 0.125rem; min-height: 3px; }
.balken div.leer { background: var(--line); }
.balken-achse { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0.375rem; margin-top: 0.375rem; font-size: 0.6875rem; color: var(--muted); text-align: center; }

/* Listen */
.liste { list-style: none; margin: 0; padding: 0; }
.liste > li { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 0; border-top: 1px solid var(--line); }
.liste > li:first-child { border-top: 0; padding-top: 0; }
.liste .haupt { flex: 1; min-width: 0; }
.liste .titel { font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; display: block; }
a.titel:hover { text-decoration: underline; }
.zeile-link { text-decoration: none; display: flex; align-items: center; gap: 0.75rem; width: 100%; }
.leerzustand { color: var(--muted); padding: 1.5rem 0; text-align: center; }

/* Tabelle */
.tabelle-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 0.75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; padding: 0 0.75rem 0.5rem; }
td { padding: 0.75rem; border-top: 1px solid var(--line); vertical-align: top; }
tr.klickbar { cursor: pointer; }
tr.klickbar:hover td { background: var(--surface-2); }
td.zahl, th.zahl { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Plaketten */
.plakette { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.125rem 0.625rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; white-space: nowrap; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.plakette.offen { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.plakette.erledigt, .plakette.ok { background: var(--good-bg); color: var(--good); border-color: transparent; }
.plakette.fehler { background: var(--danger-bg); color: var(--danger); border-color: transparent; }
.plakette.info { background: var(--info-bg); color: var(--info); border-color: transparent; }
.plakette.akzent { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.punkt { width: 0.5rem; height: 0.5rem; border-radius: 999px; background: currentColor; display: inline-block; }

/* Knöpfe */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 2.75rem; padding: 0 1.125rem; border-radius: 1rem; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform 0.15s, background 0.15s; white-space: nowrap; }
.knopf:hover { background: var(--surface-2); }
.knopf:active { transform: scale(0.98); }
.knopf.primaer { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.knopf.primaer:hover { filter: brightness(0.96); }
.knopf.gefahr { color: var(--danger); }
.knopf.klein { min-height: 2.25rem; padding: 0 0.875rem; border-radius: 0.875rem; font-size: 0.875rem; }
.knopf.breit { width: 100%; }
.knopf-reihe { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.inline { display: inline; margin: 0; }

/* Formulare */
label { display: block; font-weight: 600; font-size: 0.875rem; margin-bottom: 0.375rem; }
.feld { margin-bottom: 1rem; }
.feld .hilfe { color: var(--muted); font-size: 0.8125rem; margin-top: 0.25rem; }
input[type=text], input[type=email], input[type=password], input[type=url], select, textarea {
  width: 100%; min-height: 2.75rem; padding: 0.625rem 0.875rem; border-radius: 0.875rem; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--ink); font: inherit;
}
textarea { min-height: 8rem; resize: vertical; line-height: 1.55; }
textarea.editor { min-height: 60vh; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.875rem; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
input[type=file] { font: inherit; color: var(--muted); max-width: 100%; }

/* Meldungen */
.meldung { padding: 0.75rem 1rem; border-radius: 1rem; margin-bottom: 1rem; font-weight: 600; background: var(--good-bg); color: var(--good); }
.meldung.fehler { background: var(--danger-bg); color: var(--danger); }
.hinweis { padding: 0.875rem 1rem; border-radius: 1rem; background: var(--surface-2); border: 1px dashed var(--line); color: var(--muted); font-size: 0.875rem; }
.hinweis.warnung { background: var(--warn-bg); color: var(--warn); border: 0; }

/* Transkript und Test-Chat */
.verlauf { display: flex; flex-direction: column; gap: 0.5rem; }
.blase { max-width: 85%; padding: 0.625rem 0.875rem; border-radius: 1.125rem; line-height: 1.45; }
.blase.anrufer { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 0.375rem; }
.blase.assistent { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 0.375rem; }
.blase .zeit { display: block; font-size: 0.6875rem; opacity: 0.6; margin-top: 0.125rem; }
.werkzeug { align-self: flex-start; font-size: 0.75rem; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: 0 0.5rem; }
.chat-verlauf { height: 22rem; overflow-y: auto; padding: 0.25rem; margin-bottom: 0.75rem; }
.chat-eingabe { display: flex; gap: 0.5rem; }
.chat-eingabe input { flex: 1; }

/* Login */
.login { min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 2.5rem 1rem; }
.login .karte { width: 100%; max-width: 24rem; padding: 2rem; }

/* Sonstiges */
.abschnitt-titel { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; }
.trenner { border: 0; border-top: 1px solid var(--line); margin: 1.25rem 0; }
.def { display: grid; grid-template-columns: max-content 1fr; gap: 0.375rem 1rem; margin: 0; }
.def dt { color: var(--muted); font-size: 0.875rem; }
.def dd { margin: 0; overflow-wrap: anywhere; }
.tabs { display: flex; gap: 0.25rem; overflow-x: auto; margin-bottom: 1rem; }
.tabs a { padding: 0.5rem 0.875rem; border-radius: 999px; text-decoration: none; font-weight: 600; color: var(--muted); white-space: nowrap; border: 1px solid transparent; }
.tabs a.aktiv { color: var(--ink); background: var(--surface); border-color: var(--line); }
details summary { cursor: pointer; font-weight: 600; }
pre.vorschau { white-space: pre-wrap; background: var(--surface-2); border-radius: 1rem; padding: 1rem; font-size: 0.8125rem; max-height: 20rem; overflow: auto; margin: 0.75rem 0 0; }

@media (max-width: 40rem) {
  h1 { font-size: 1.375rem; }
  .karte { padding: 1rem; border-radius: 1.25rem; }
  .ausblenden-mobil { display: none; }
  .balken-achse span:nth-child(even) { visibility: hidden; }
  .kennzahl .wert { font-size: 1.5rem; }
}

/* ---------- Aufbau aus Sicht des Assistenten ---------- */
:root { --avatar-0: #c6f432; --avatar-1: #7ea2ff; --avatar-2: #f5a524; --avatar-3: #2dc7b9; --avatar-4: #ff8fab; }
.icon { width: 1.125rem; height: 1.125rem; flex: none; }
.kopf-rechts { margin: 0 0 0 auto; }
.link-knopf { background: none; border: 0; padding: 0.375rem 0.25rem; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; }
.link-knopf:hover { color: var(--ink); }
.link-knopf.gefahr { color: var(--danger); }
.brotkrumen { margin-bottom: 0.75rem; }
.brotkrumen a { display: inline-flex; align-items: center; gap: 0.25rem; color: var(--muted); text-decoration: none; font-weight: 600; }
.brotkrumen a:hover { color: var(--ink); }
h1.h2 { font-size: 1.375rem; }
.karte.schmal { max-width: 40rem; }

/* Avatar */
.avatar { --farbe: var(--accent); display: inline-flex; align-items: center; justify-content: center; flex: none; width: 2.25rem; height: 2.25rem; border-radius: 0.875rem; background: var(--farbe); color: #0b0f14; font-weight: 900; font-size: 1rem; }
.avatar.klein { width: 1.75rem; height: 1.75rem; border-radius: 0.625rem; font-size: 0.8125rem; }
.avatar.gross { width: 3.5rem; height: 3.5rem; border-radius: 1.125rem; font-size: 1.5rem; }

/* Assistenten-Wechsler in der Kopfzeile */
.wechsler { position: relative; margin-left: 0.5rem; }
.wechsler summary { list-style: none; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.3125rem 0.625rem 0.3125rem 0.3125rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; cursor: pointer; }
.wechsler summary::-webkit-details-marker { display: none; }
.wechsler summary .icon { width: 1rem; height: 1rem; color: var(--muted); }
.wechsler-liste { position: absolute; top: calc(100% + 0.5rem); left: 0; min-width: 16rem; background: var(--surface); border: 1px solid var(--line); border-radius: 1.25rem; padding: 0.375rem; box-shadow: 0 12px 32px rgb(0 0 0 / 0.18); z-index: 20; }
.wechsler-liste a { display: flex; align-items: center; gap: 0.625rem; padding: 0.5rem 0.625rem; border-radius: 0.875rem; text-decoration: none; }
.wechsler-liste a:hover, .wechsler-liste a.aktiv { background: var(--surface-2); }
.wechsler-liste small { display: block; color: var(--muted); font-size: 0.75rem; }
.wechsler-liste a.alle { color: var(--muted); font-weight: 600; font-size: 0.875rem; border-top: 1px solid var(--line); border-radius: 0 0 0.875rem 0.875rem; margin-top: 0.25rem; }

/* Kopf eines Assistenten und Reiter */
.assistent-kopf { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.assistent-titel { flex: 1; min-width: 0; }
.assistent-titel p { margin-top: 0.125rem; }
.assistent-titel a { color: var(--muted); }
.reiter { display: flex; gap: 0.25rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--line); overflow-x: auto; }
.reiter a { position: relative; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 0.875rem; text-decoration: none; font-weight: 700; color: var(--muted); white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.reiter a:hover { color: var(--ink); }
.reiter a.aktiv { color: var(--ink); border-bottom-color: var(--accent); }
.reiter .zaehler { display: inline-flex; min-width: 1.25rem; height: 1.25rem; padding: 0 0.375rem; align-items: center; justify-content: center; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 0.6875rem; font-weight: 800; }

/* Startseite: Assistenten-Karten */
.assistent-karte { display: flex; flex-direction: column; gap: 1rem; text-decoration: none; transition: border-color 0.15s, transform 0.15s; }
.assistent-karte:hover { border-color: color-mix(in srgb, var(--accent) 70%, var(--line)); }
.assistent-karte:active { transform: scale(0.99); }
.assistent-karte-kopf { display: flex; align-items: center; gap: 0.875rem; }
.assistent-karte-kopf h2 { font-size: 1.25rem; }
.assistent-karte-telefon { display: flex; align-items: center; gap: 0.5rem; color: var(--muted); font-weight: 600; }
.assistent-karte-zahlen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.assistent-karte-zahlen div { background: var(--surface-2); border-radius: 0.875rem; padding: 0.5rem 0.75rem; }
.assistent-karte-zahlen strong { display: block; font-size: 1.25rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.assistent-karte-zahlen span { color: var(--muted); font-size: 0.75rem; font-weight: 600; }
.assistent-karte-zahlen .offen { background: var(--accent); color: var(--accent-ink); }
.assistent-karte-zahlen .offen span { color: var(--accent-ink); opacity: 0.7; }
.assistent-karte-fuss { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.assistent-karte.neu { align-items: flex-start; justify-content: center; border-style: dashed; background: transparent; min-height: 14rem; }
.neu-icon { display: inline-flex; width: 3.5rem; height: 3.5rem; border-radius: 1.125rem; align-items: center; justify-content: center; background: var(--surface); border: 1px dashed var(--line); }
.neu-icon .icon { width: 1.5rem; height: 1.5rem; }
a.kennzahl { text-decoration: none; }

/* Einrichtungsschritte */
.schritte { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)); }
.schritte li > a, .schritte li { display: flex; gap: 0.75rem; align-items: flex-start; text-decoration: none; }
.schritte li > a { width: 100%; padding: 0.75rem; border-radius: 1rem; background: var(--surface-2); border: 1px solid var(--line); }
.schritte li > a:hover { border-color: var(--accent); }
.schritte strong { display: block; }
.schritte small { display: block; color: var(--muted); font-size: 0.8125rem; line-height: 1.4; margin-top: 0.125rem; }
.schritt-nr { display: inline-flex; flex: none; width: 1.75rem; height: 1.75rem; border-radius: 999px; align-items: center; justify-content: center; font-weight: 800; font-size: 0.8125rem; background: var(--surface); border: 1px solid var(--line); }
.schritte .fertig .schritt-nr { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.schritte .fertig strong { color: var(--muted); text-decoration: line-through; }
.schritte.kompakt { margin-bottom: 1rem; }
.einrichtung { margin-bottom: 1rem; border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }

/* Anrufliste */
.anrufliste { list-style: none; margin: 0; padding: 0; }
.anrufliste li + li { border-top: 1px solid var(--line); }
.anrufliste a { display: grid; grid-template-columns: 7.5rem 1fr auto; gap: 1rem; align-items: start; padding: 0.875rem 0.5rem; text-decoration: none; border-radius: 0.875rem; }
.anrufliste a:hover { background: var(--surface-2); }
.anruf-zeit { font-weight: 600; font-size: 0.875rem; white-space: nowrap; }
.anruf-zeit small, .anruf-haupt small { display: block; color: var(--muted); font-weight: 400; font-size: 0.8125rem; }
.anruf-haupt { min-width: 0; }
.anruf-haupt small { margin-top: 0.125rem; }

/* Segment-Umschalter */
.segment { display: inline-flex; gap: 0.25rem; padding: 0.25rem; background: var(--surface-2); border-radius: 999px; border: 1px solid var(--line); }
.segment a { padding: 0.375rem 0.875rem; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 0.875rem; color: var(--muted); }
.segment a.aktiv { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / 0.08); }

/* Wissen */
.dok-icon { display: inline-flex; width: 2.25rem; height: 2.25rem; border-radius: 0.75rem; align-items: center; justify-content: center; background: var(--surface-2); color: var(--muted); flex: none; }
.dok-icon.rolle { background: var(--accent); color: var(--accent-ink); }

/* Einstellungen: Abschnitte mit Seitennavigation */
.einstellungen { display: grid; grid-template-columns: 12rem 1fr; gap: 1.5rem; align-items: start; }
.einstellungen-nav { position: sticky; top: 5rem; display: flex; flex-direction: column; gap: 0.125rem; }
.einstellungen-nav a { padding: 0.5rem 0.75rem; border-radius: 0.75rem; text-decoration: none; font-weight: 600; color: var(--muted); }
.einstellungen-nav a:hover { background: var(--surface); color: var(--ink); }
.einstellungen-inhalt { min-width: 0; max-width: 44rem; }
.einstellungen-inhalt .karte { scroll-margin-top: 5rem; }
.abschnitt-text { margin: 0.25rem 0 1.25rem; }
.feld-reihe { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)); gap: 0 1rem; }
.technik { margin-top: 1.25rem; }
.gefahrzone { border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); }

@media (max-width: 48rem) {
  .einstellungen { grid-template-columns: 1fr; }
  .einstellungen-nav { position: static; flex-direction: row; overflow-x: auto; }
  .einstellungen-nav a { white-space: nowrap; }
}

/* Handy: Reiter als feste Leiste unten, wie in einer App */
@media (max-width: 40rem) {
  body.mit-reitern main { padding-bottom: calc(6rem + env(safe-area-inset-bottom)); }
  .reiter { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; margin: 0; padding: 0.375rem 0.25rem calc(0.375rem + env(safe-area-inset-bottom)); justify-content: space-around; gap: 0; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(16px); border-top: 1px solid var(--line); border-bottom: 0; overflow: visible; }
  .reiter a { flex: 1; flex-direction: column; gap: 0.125rem; padding: 0.375rem 0.125rem; font-size: 0.6875rem; border: 0; margin: 0; border-radius: 0.875rem; }
  .reiter a .icon { width: 1.375rem; height: 1.375rem; }
  .reiter a.aktiv { background: var(--surface-2); }
  .reiter a.aktiv .icon { color: var(--accent-text); }
  .reiter .zaehler { position: absolute; top: 0.125rem; left: 55%; }
  .assistent-kopf .avatar.gross { width: 2.75rem; height: 2.75rem; font-size: 1.25rem; }
  .assistent-kopf h1 { font-size: 1.375rem; }
  .assistent-aktionen { display: none; }
  .wechsler summary span { max-width: 7rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .anrufliste a { grid-template-columns: 1fr auto; }
  .anruf-zeit { grid-column: 1 / -1; display: flex; gap: 0.5rem; }
  .anruf-zeit small { display: inline; }
  .kopf-innen { flex-wrap: nowrap; gap: 0.5rem; }
  body.mit-reitern .marke-text { display: none; }
  .wechsler { margin-left: 0; min-width: 0; }
}

/* ---------- Kunden, Verwaltung, Konto ---------- */
.kopf-rechts { display: flex; align-items: center; gap: 0.25rem; }
.kopf-rechts .link-knopf { text-decoration: none; font-size: 0.875rem; padding: 0.375rem 0.625rem; border-radius: 999px; }
.kopf-rechts .link-knopf.aktiv { color: var(--ink); background: var(--surface); }
.konto-link { max-width: 12rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kunden-gruppe + .kunden-gruppe { margin-top: 2rem; }
.kunden-gruppe-kopf { display: flex; align-items: baseline; gap: 0.75rem; margin-bottom: 0.75rem; }
.kunden-gruppe-kopf h2 { font-size: 1.125rem; }
.kunde-plakette { margin-right: 0.25rem; }
.telefon-gross { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.inline-bearbeiten { display: flex; gap: 0.5rem; align-items: center; }
.inline-bearbeiten input { min-height: 2.25rem; padding: 0.375rem 0.625rem; background: transparent; border-color: transparent; font-weight: 600; }
.inline-bearbeiten input:hover, .inline-bearbeiten input:focus { background: var(--surface-2); border-color: var(--line); }
.inline-bearbeiten .link-knopf { font-size: 0.8125rem; opacity: 0; transition: opacity 0.15s; }
.inline-bearbeiten:focus-within .link-knopf, .inline-bearbeiten:hover .link-knopf { opacity: 1; }
.menue { position: relative; }
.menue summary { list-style: none; font-size: 1.125rem; line-height: 1; padding: 0.25rem 0.5rem; }
.menue summary::-webkit-details-marker { display: none; }
.menue-liste { position: absolute; right: 0; top: calc(100% + 0.25rem); z-index: 20; min-width: 13rem; padding: 0.375rem; background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; box-shadow: 0 12px 32px rgb(0 0 0 / 0.18); }
.menue-liste form { margin: 0; }
.menue-liste .link-knopf { width: 100%; text-align: left; padding: 0.5rem 0.625rem; border-radius: 0.625rem; }
.menue-liste .link-knopf:hover { background: var(--surface-2); }
.zugang-hinweis { margin-bottom: 1rem; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.passwort { font-size: 1.375rem; font-weight: 700; letter-spacing: 0.04em; margin: 0.5rem 0; user-select: all; }
@media (max-width: 40rem) {
  .kopf-rechts .link-knopf { padding: 0.375rem 0.375rem; }
  .konto-link { display: none; }
}
