/* H2 Verwalter – heller Apple-Stil mit H2-Türkis als Akzent */

:root {
  --akzent: #008080;
  --akzent-hell: #0aa3a3;
  --akzent-flaeche: #e3f3f3;
  --hintergrund: #f2f2f7;
  --karte: #ffffff;
  --text: #000000;
  --text-2: rgba(60, 60, 67, .62);
  --text-3: rgba(60, 60, 67, .32);
  --trenner: rgba(60, 60, 67, .16);
  --fuellung: rgba(118, 118, 128, .12);
  --rot: #ff3b30;
  --orange: #ff9500;
  --gelb: #ffcc00;
  --gruen: #34c759;
  --blau: #007aff;
  --lila: #af52de;
  --radius: 12px;
  --tabs-hoehe: 0px; /* keine Tab-Leiste mehr: Start ist die Zentrale */
  --oben: env(safe-area-inset-top, 0px);
  --unten: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font: 17px/1.3 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  letter-spacing: -.01em;
  color: var(--text);
  background: var(--hintergrund);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--akzent); text-decoration: none; }
button { font: inherit; color: inherit; letter-spacing: inherit; }

.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon.klein { width: 20px; height: 20px; }
.icon.mini { width: 14px; height: 14px; vertical-align: -2px; margin-right: 3px; }

/* ---------- Kopfleiste ---------- */

.kopf {
  position: sticky; top: 0; z-index: 10;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  min-height: calc(44px + var(--oben)); padding: var(--oben) 8px 0;
  background: rgba(242, 242, 247, .82);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: .5px solid transparent;
  transition: border-color .2s;
}
.kopf.eingeklappt { border-bottom-color: var(--trenner); }
/* ---------- Navigation unten: zwei Hälften, links Zurück, rechts Start ---------- */
.fussleiste {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: grid; grid-template-columns: 1fr 1fr;
  padding-bottom: var(--unten);
  background: rgba(249, 249, 251, .92); border-top: .5px solid var(--trenner);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.fussleiste[hidden] { display: none; }
.fuss-knopf {
  display: flex; align-items: center; justify-content: center; gap: 6px; height: 46px;
  background: none; border: 0; color: var(--akzent); font: inherit; font-size: 16px; font-weight: 600; cursor: pointer;
}
.fuss-knopf + .fuss-knopf { border-left: .5px solid var(--trenner); }
.fuss-knopf .icon { width: 22px; height: 22px; stroke-width: 2.2; }
.fuss-knopf:active { background: var(--fuellung); }
body.mit-fussleiste { --tabs-hoehe: 46px; }

.kopf-start {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px;
  border: 0; border-radius: 100px; background: var(--fuellung); color: var(--akzent);
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
}
.kopf-start:active { opacity: .7; }

.kopf-titel { font-weight: 600; font-size: 17px; opacity: 0; transition: opacity .2s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60vw; }
.kopf.eingeklappt .kopf-titel { opacity: 1; }
/* Der Start-Knopf ist kein Titel – er muss auch ohne Scrollen sichtbar sein */
.kopf-titel.immer-sichtbar { opacity: 1; overflow: visible; }
.kopf-links { justify-self: start; }
.kopf-rechts { justify-self: end; }
.kopf-zurueck {
  display: inline-flex; align-items: center; gap: 0; background: none; border: 0; cursor: pointer;
  color: var(--akzent); font-size: 17px; padding: 8px 8px 8px 0;
}
.kopf-zurueck .icon { width: 26px; height: 26px; stroke-width: 2.4; }
.kopf-plus {
  display: grid; place-items: center; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; color: var(--akzent);
}
.kopf-plus .icon { width: 28px; height: 28px; stroke-width: 2.2; }

.inhalt {
  max-width: 720px; margin: 0 auto;
  padding: 0 16px calc(var(--tabs-hoehe) + var(--unten) + 32px);
}

.grosser-titel { font-size: 34px; line-height: 1.15; font-weight: 700; letter-spacing: .005em; margin: 4px 0 14px; }

/* ---------- Tab-Leiste ---------- */

.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: flex; justify-content: center;
  padding-bottom: var(--unten);
  background: rgba(249, 249, 251, .86);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: .5px solid var(--trenner);
}
.tabs a {
  flex: 1; max-width: 120px; height: var(--tabs-hoehe);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 10px; font-weight: 500; letter-spacing: .01em; color: #8e8e93;
}
.tab-icon { width: 26px; height: 26px; stroke-width: 1.7; }
.tabs a[aria-current] { color: var(--akzent); }
.tabs a[aria-current] .tab-icon { stroke-width: 2.1; }

/* ---------- Gruppen (inset grouped) ---------- */

.gruppe-titel {
  margin: 22px 16px 7px; font-size: 13px; font-weight: 400; color: var(--text-2);
  text-transform: uppercase; letter-spacing: .02em;
}
.gruppe {
  background: var(--karte); border-radius: var(--radius); overflow: hidden;
}
/* Haarlinien zwischen Zeilen, eingerückt wie bei iOS */
.gruppe > *, .liste > li { position: relative; }
.gruppe > * + *::before, .liste > li + li::before {
  content: ""; position: absolute; top: 0; right: 0; left: 16px; height: .5px; background: var(--trenner); pointer-events: none;
}
.gruppe > .zeile + .zeile::before { left: 58px; }
.liste > li.mit-avatar + li.mit-avatar::before { left: 68px; }

.liste { list-style: none; margin: 0; padding: 0; background: var(--karte); border-radius: var(--radius); overflow: hidden; }

.zeile {
  width: 100%; display: flex; align-items: center; gap: 12px; min-height: 52px;
  padding: 10px 14px 10px 16px; text-align: left; background: none; border: 0; cursor: pointer; color: var(--text);
}
.zeile:active { background: #e5e5ea; }
.zeile .text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.zeile .haupt { font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zeile .neben { color: var(--text-2); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zeile .wert { font-variant-numeric: tabular-nums; font-weight: 500; white-space: nowrap; }
.zeile .wert.leise { color: var(--text-2); font-weight: 400; }
.pfeil { width: 14px; height: 14px; color: #c4c4c7; stroke-width: 2.6; margin-left: -2px; }

.status-zeile { padding: 0 16px 12px; margin-top: -4px; }

.marke { font-size: 13px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--fuellung); color: var(--text-2); white-space: nowrap; }
.m-neu { background: rgba(0, 122, 255, .12); color: var(--blau); }
.m-geplant { background: rgba(255, 149, 0, .14); color: #c26b00; }
.m-umgesetzt { background: rgba(52, 199, 89, .15); color: #1f8a3c; }

/* Farbige Icon-Kacheln wie in den iOS-Einstellungen */
.icon-kachel {
  width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; color: #fff; flex: none;
}
.icon-kachel .icon { width: 21px; height: 21px; stroke-width: 2; }
.icon-kachel.klein { width: 30px; height: 30px; border-radius: 7px; }
.icon-kachel.klein .icon { width: 18px; height: 18px; }
.icon-kachel.gross { width: 64px; height: 64px; border-radius: 16px; }
.icon-kachel.gross .icon { width: 34px; height: 34px; }
.tuerkis { background: linear-gradient(180deg, var(--akzent-hell), var(--akzent)); }
.orange { background: linear-gradient(180deg, #ffab33, var(--orange)); }
.blau { background: linear-gradient(180deg, #3395ff, var(--blau)); }
.gruen { background: linear-gradient(180deg, #5ad67a, var(--gruen)); }
.gelb { background: linear-gradient(180deg, #ffd633, #f5b800); }
.lila { background: linear-gradient(180deg, #c27ae8, var(--lila)); }

.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: linear-gradient(180deg, #a8b4b8, #8a979b); color: #fff; font-weight: 600; font-size: 16px;
}
.avatar.klein { width: 32px; height: 32px; font-size: 14px; background: linear-gradient(180deg, var(--akzent-hell), var(--akzent)); }
.avatar.riesig { width: 88px; height: 88px; font-size: 36px; }

/* ---------- Start ---------- */

.start-kopf { display: flex; align-items: center; gap: 14px; margin: 8px 0 6px; }
.start-kopf .grosser-titel { margin: 0; }
.datum-zeile { margin: 0; color: var(--text-2); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.app-icon {
  width: 56px; height: 56px; border-radius: 13px; flex: none; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--akzent-hell), var(--akzent) 70%);
  box-shadow: 0 4px 12px rgba(0, 128, 128, .28);
}
.app-icon img { height: 34px; }

.entwurf {
  display: inline-block; margin: 6px 0 16px; padding: 4px 10px; border-radius: 99px;
  background: rgba(255, 149, 0, .13); color: #b36200; font-size: 13px; font-weight: 500;
}

.fahrt-karte {
  width: 100%; display: flex; align-items: center; gap: 14px; padding: 18px; border: 0; cursor: pointer; text-align: left;
  border-radius: 18px; color: #fff;
  background: linear-gradient(135deg, #12b3ad 0%, var(--akzent) 60%, #006b6b 100%);
  box-shadow: 0 8px 24px rgba(0, 128, 128, .28);
}
.fahrt-karte:active { transform: scale(.985); }
.fahrt-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .2); }
.fahrt-icon .icon { width: 28px; height: 28px; }
.fahrt-karte .text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.fahrt-karte strong { font-size: 20px; font-weight: 600; }
.fahrt-karte .text span { font-size: 14px; opacity: .85; }
.fahrt-karte .plus { width: 26px; height: 26px; stroke-width: 2.4; opacity: .9; }

.schnell-raster { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0 0; }
.schnell-knopf {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 4px 12px;
  background: var(--karte); border: 0; border-radius: 14px; cursor: pointer; font-size: 13px; font-weight: 500;
}
.schnell-knopf:active { background: #e5e5ea; }
.schnell-knopf .icon-kachel { width: 44px; height: 44px; border-radius: 12px; }
.schnell-knopf .icon-kachel .icon { width: 24px; height: 24px; }

/* ---------- Chips, Segment-Schalter, Suche ---------- */

.chip-leiste {
  display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 4px; padding: 2px 16px 8px;
  scrollbar-width: none;
}
.chip-leiste::-webkit-scrollbar { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  flex: none; min-height: 36px; padding: 7px 15px; border-radius: 99px; cursor: pointer;
  border: 0; background: var(--karte); color: var(--text); font-size: 15px; font-weight: 500;
  box-shadow: inset 0 0 0 .5px var(--trenner);
}
.gruppe .chip, .dialog .chip { background: var(--fuellung); box-shadow: none; }
.chip[aria-pressed="true"] { background: var(--akzent) !important; color: #fff; box-shadow: none; }
.chip:active { opacity: .7; }

.umschalter { display: flex; padding: 2px; background: var(--fuellung); border-radius: 9px; }
.umschalter button {
  flex: 1; min-height: 34px; border: 0; border-radius: 7px; background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 15px; font-weight: 500;
}
.umschalter button[aria-pressed="true"] { background: var(--karte); box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .04); font-weight: 600; }
.umschalter.gross { padding: 3px; border-radius: 12px; }
.umschalter.gross button { min-height: 64px; border-radius: 10px; font-size: 18px; gap: 10px; }
.umschalter.gross .avatar { width: 36px; height: 36px; }
.umschalter.gross button[aria-pressed="true"] .avatar { background: linear-gradient(180deg, var(--akzent-hell), var(--akzent)); }
.umschalter.gross button[aria-pressed="true"] { color: var(--akzent); }

.suche {
  display: flex; align-items: center; gap: 6px; padding: 0 10px; margin-bottom: 12px;
  background: var(--fuellung); border-radius: 10px; color: var(--text-2);
}
.suche input { border: 0; background: none; min-height: 38px; padding: 0; font-size: 17px; outline: none; width: 100%; }

.einleitung { color: var(--text-2); font-size: 15px; margin: 4px 0 0; }

/* ---------- Knöpfe ---------- */

.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer;
  min-height: 50px; padding: 0 22px; border-radius: 14px; border: 0; font-size: 17px; font-weight: 600;
  background: var(--fuellung); color: var(--akzent);
}
.knopf.haupt { background: var(--akzent); color: #fff; }
.knopf:disabled { opacity: .5; }
.link-knopf { background: none; border: 0; padding: 4px 0; color: var(--akzent); cursor: pointer; font-size: 15px; }
.zeile-knopf {
  width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: none; border: 0; cursor: pointer; font-size: 17px; color: var(--akzent);
}
.zeile-knopf.gefahr { color: var(--rot); }
a.zeile-knopf { text-decoration: none; }
.zeile-knopf:active { background: #e5e5ea; }

.leer-zustand { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 48px 16px; color: var(--text-2); }
.leer-zustand p { margin: 0; font-size: 17px; }
.leer-zeile { margin: 0; padding: 14px 16px; color: var(--text-2); }

/* ---------- Kundenakte ---------- */

.kontakt-kopf { display: flex; flex-direction: column; align-items: center; text-align: center; margin: 8px 0 14px; }
.kontakt-name { font-size: 28px; font-weight: 700; margin: 10px 0 0; }
.kontakt-firma { margin: 2px 0 0; color: var(--text-2); }
.aktionen { display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: 8px; margin: 14px 0 0; }
.aktion {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px 8px;
  background: var(--karte); border: 0; border-radius: 12px; cursor: pointer; color: var(--akzent); font-size: 12px; font-weight: 500;
}
.aktion-kreis { display: grid; place-items: center; }
.aktion:active { background: #e5e5ea; }
.info-zeile { display: flex; flex-direction: column; gap: 2px; padding: 10px 16px; }
.info-zeile .label { font-size: 13px; color: var(--text-2); }
.info-zeile .wert-text { overflow-wrap: anywhere; }
.notiz { white-space: pre-wrap; }
.abschnitt-kopf { display: flex; align-items: baseline; justify-content: space-between; padding-right: 16px; }
.abschnitt-kopf .gruppe-titel { margin-right: 8px; }

/* ---------- Übersicht ---------- */

.kacheln { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.kachel {
  display: flex; flex-direction: column; gap: 3px; padding: 14px; border-radius: var(--radius);
  background: var(--karte); color: var(--text);
}
.kachel .titel { font-size: 13px; font-weight: 600; color: var(--text-2); }
.kachel strong { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.kachel .zusatz { font-size: 13px; color: var(--text-2); }
.kachel.akzent { background: linear-gradient(135deg, #12b3ad, var(--akzent)); color: #fff; }
.kachel.akzent .titel, .kachel.akzent .zusatz { color: rgba(255, 255, 255, .85); }
.k-offen .titel { color: #c26b00; }
.k-eingegangen .titel { color: var(--blau); }
.k-weitergeleitet .titel { color: var(--akzent); }
.k-erledigt .titel { color: #1f8a3c; }

.karten-innen { padding: 16px; }
.saeulen { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; height: 150px; }
.monat { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; color: var(--text-2); }
.saeule-rahmen { flex: 1; width: 100%; display: flex; align-items: flex-end; background: var(--hintergrund); border-radius: 5px; overflow: hidden; }
.saeule { display: block; width: 100%; background: linear-gradient(180deg, var(--akzent-hell), var(--akzent)); border-radius: 5px; }

.diagramm { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.diagramm li { display: grid; grid-template-columns: 6em 1fr auto; align-items: center; gap: 10px; font-size: 15px; }
.diagramm .beschriftung { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.diagramm .zahl { text-align: right; font-variant-numeric: tabular-nums; color: var(--text-2); font-size: 14px; }
.balken { display: block; height: 8px; background: var(--hintergrund); border-radius: 4px; overflow: hidden; }
.balken span { display: block; height: 100%; background: linear-gradient(90deg, var(--akzent-hell), var(--akzent)); border-radius: 4px; }

/* ---------- Status-Auswahl in der Rechnungsliste ---------- */

select.status {
  appearance: none; -webkit-appearance: none; border: 0; cursor: pointer;
  min-height: 32px; padding: 5px 30px 5px 12px; border-radius: 99px; font: inherit; font-size: 14px; font-weight: 600;
  background-repeat: no-repeat; background-position: right 10px center; background-size: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23666' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
}
.s-offen { background-color: rgba(255, 149, 0, .15); color: #b36200; }
.s-eingegangen { background-color: rgba(0, 122, 255, .12); color: var(--blau); }
.s-weitergeleitet { background-color: var(--akzent-flaeche); color: var(--akzent); }
.s-erledigt, .s-bezahlt { background-color: rgba(52, 199, 89, .15); color: #1f8a3c; }

/* ---------- Eingabe-Blatt ---------- */

.dialog {
  width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 60px);
  padding: 0; border: 0; border-radius: 14px; background: var(--hintergrund); color: var(--text);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .3);
}
.dialog::backdrop { background: rgba(0, 0, 0, .32); }
.formular header {
  position: sticky; top: 0; z-index: 3;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 14px 16px 10px;
  background: rgba(242, 242, 247, .9); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.formular header h2 { margin: 0; font-size: 17px; font-weight: 600; text-align: center; }
.griff { display: none; }
.kopf-text { justify-self: start; background: none; border: 0; color: var(--akzent); cursor: pointer; padding: 6px 0; font-size: 17px; }
.kopf-text.fett { justify-self: end; font-weight: 600; }
.kopf-text:disabled { opacity: .4; }
.blatt-inhalt { padding: 0 16px calc(28px + var(--unten)); }
.blatt-inhalt > .gruppe:first-child { margin-top: 8px; }
.blatt-inhalt > .gruppe-titel:first-child { margin-top: 10px; }
.blatt-inhalt > .gruppe:last-child { margin-top: 22px; }

.feld { display: flex; flex-direction: column; gap: 4px; padding: 10px 16px; min-width: 0; position: relative; }
.feld > label { font-size: 13px; color: var(--text-2); }
.feld small { color: var(--text-2); font-size: 13px; }
.feld .feldfehler { color: var(--rot); font-weight: 500; }
.feld .feldfehler:empty { display: none; }
.pflicht { color: var(--text-3); }

.feld input:not([type="checkbox"]):not([type="file"]), .feld textarea, .feld select {
  width: 100%; border: 0; background: none; padding: 2px 0; min-height: 30px;
  font: inherit; font-size: 17px; color: var(--text); outline: none; border-radius: 0;
}
.feld select { appearance: none; -webkit-appearance: none; color: var(--akzent); cursor: pointer; }
.feld textarea { resize: vertical; line-height: 1.35; }
.feld textarea.mit-inhalt-wachsen { overflow: hidden; resize: none; }
.feld input::placeholder, .feld textarea::placeholder { color: var(--text-3); }
.feld input[type="date"] { color: var(--akzent); -webkit-appearance: none; text-align: left; }
.feld .chips { margin-top: 4px; }
.feld .chip-leiste { margin: 2px -16px 2px; }
.gross-zahl { font-size: 28px !important; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.betrag-feld { display: flex; align-items: baseline; gap: 6px; }
.betrag-feld .einheit { font-size: 20px; color: var(--text-2); font-weight: 500; }

.feld > .datei-knopf {
  display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; color: var(--akzent); font-size: 17px;
}
.datei-knopf input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.datei-knopf:focus-within { outline: 2px solid var(--akzent); outline-offset: 2px; border-radius: 6px; }
.datei-aktuell { margin: 2px 0 0; font-size: 15px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.inline { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); }
.hinweis-text { margin: 4px 0; color: var(--text-2); font-size: 15px; }
.formfehler { color: var(--rot); margin: 14px 16px 0; font-weight: 500; font-size: 15px; }
.formfehler:empty { display: none; }

.verlauf-zeile { display: flex; align-items: center; gap: 10px; padding: 12px 16px; font-size: 15px; }
.verlauf-zeile .text { flex: 1; }
.verlauf-zeile .zeit { color: var(--text-2); font-size: 14px; }
.punkt { width: 10px; height: 10px; border-radius: 50%; }
.punkt.s-offen { background: var(--orange); }
.punkt.s-eingegangen { background: var(--blau); }
.punkt.s-weitergeleitet { background: var(--akzent); }
.punkt.s-erledigt { background: var(--gruen); }

/* Ortssuche */
.ortsfeld { position: relative; }
.vorschlaege {
  position: absolute; left: -16px; right: -16px; top: calc(100% + 8px); z-index: 5;
  list-style: none; margin: 0; padding: 6px 0; max-height: 320px; overflow-y: auto;
  background: var(--karte); border-radius: 12px; box-shadow: 0 12px 40px rgba(0, 0, 0, .18), 0 0 0 .5px var(--trenner);
}
.vorschlaege button {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; padding: 10px 16px;
  background: none; border: 0; cursor: pointer; color: var(--text);
}
.vorschlaege .icon { color: var(--akzent); }
.vorschlaege .text { display: flex; flex-direction: column; font-size: 16px; }
.vorschlaege strong { font-size: 14px; color: var(--akzent); }
.vorschlaege button:active, .vorschlaege button:hover { background: #f2f2f7; }
.start-zeile { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); }
.start-eingabe { padding-top: 4px; }
.strecke-info {
  margin: 6px 0 0; padding: 8px 12px; border-radius: 10px; font-size: 15px; font-weight: 600;
  background: var(--akzent-flaeche); color: var(--akzent);
}
.strecke-info:empty { display: none; }

/* Feste Ziele in der Fahrt-Erfassung */
.feste-ziele { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 2px 0; }
.festes-ziel {
  display: flex; align-items: center; gap: 10px; padding: 12px; border: 0; border-radius: 12px; cursor: pointer; text-align: left;
  background: var(--akzent-flaeche); color: var(--akzent);
}
.festes-ziel:active { opacity: .7; }
.festes-ziel span { display: flex; flex-direction: column; min-width: 0; }
.festes-ziel strong { font-size: 15px; font-weight: 600; line-height: 1.2; }
.festes-ziel small { font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Kunde aus Foto */
.foto-knopf { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; }
.foto-knopf:active { background: #e5e5ea; }
.foto-knopf .text { display: flex; flex-direction: column; gap: 2px; }
.foto-knopf .text > span { font-size: 17px; font-weight: 600; color: var(--akzent); }
.foto-knopf small { font-size: 13px; color: var(--text-2); }
.foto-knopf.laedt { pointer-events: none; }
.foto-knopf.laedt .icon-kachel { animation: pulsieren 1s ease-in-out infinite alternate; }
.unsichtbar { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.foto-info { margin: 8px 16px 0; font-size: 14px; color: var(--text-2); }
.foto-info:empty { display: none; }
.foto-info.ok { color: #1f8a3c; font-weight: 600; }
.foto-info.fehler { color: var(--rot); font-weight: 600; }
.feld.erkannt { background: rgba(52, 199, 89, .08); }
.feld.erkannt > label::after { content: " · erkannt"; color: #1f8a3c; }

/* Fortschritt je Kunde */
/* untereinander, in fester Reihenfolge (Wunsch H2: nichts nebeneinander) */
.schritte { display: flex; flex-direction: column; gap: 6px; }
.schritt {
  display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 9px 12px; text-align: left; cursor: pointer; width: 100%; font: inherit;
  border: 0; border-radius: var(--radius); background: var(--karte); color: var(--text);
  transition: background .25s, color .25s, transform .1s;
}
.schritt:active { transform: scale(.97); }
.schritt .text { display: flex; flex-direction: column; min-width: 0; }
.schritt strong { font-size: 15px; font-weight: 600; line-height: 1.2; }
.schritt small { font-size: 13px; color: var(--text-2); }
.schritt-haken {
  width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center;
  box-shadow: inset 0 0 0 2px var(--text-3); color: transparent;
}
.schritt-haken .icon { width: 18px; height: 18px; stroke-width: 3; }
.schritt.erledigt { background: linear-gradient(135deg, #3fd068, #28a745); color: #fff; }
.schritt.erledigt small { color: rgba(255, 255, 255, .9); }
.schritt.erledigt .schritt-haken { background: #fff; box-shadow: none; color: #28a745; }

.fortschritt { display: inline-flex; gap: 4px; flex: none; }
.fortschritt span { width: 8px; height: 8px; border-radius: 50%; }
.punkt-aus { background: #d1d1d6; }
.punkt-an { background: var(--gruen); }

.fahrt-karte.kompakt { padding: 14px 16px; border-radius: 16px; margin-bottom: 4px; }
.fahrt-karte.kompakt .fahrt-icon { width: 44px; height: 44px; }
.fahrt-karte.kompakt strong { font-size: 18px; }

@keyframes pulsieren { from { opacity: 1; } to { opacity: .45; } }

.auto-wahl:not(:empty) { margin-top: 10px; }

/* Fahrten-Liste */
.summen-karte { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 4px 0 0; border-radius: var(--radius); overflow: hidden; background: var(--trenner); }
.summen-karte > div { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; background: var(--karte); }
.summen-karte span { font-size: 13px; color: var(--text-2); }
.summen-karte strong { font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.monat-titel { display: flex; justify-content: space-between; gap: 8px; }
.monat-titel span:last-child { text-transform: none; font-variant-numeric: tabular-nums; }
.kunde-chip {
  display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 6px 12px; border-radius: 99px; cursor: pointer;
  border: 1px dashed var(--akzent); background: none; color: var(--akzent); font-size: 14px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.kunde-chip.gesetzt { border-style: solid; border-color: transparent; background: var(--akzent-flaeche); }
.kunde-chip:active { opacity: .6; }
.haken-akzent { color: var(--akzent); stroke-width: 2.6; }
.kopf-links-knoepfe { display: inline-flex; gap: 16px; }
.abstand { margin-top: 22px; }
.abstand-unten { margin: 8px 4px 12px; }
.dialog .suche { margin-top: 8px; }
.google-fehler { margin: 8px 16px 0; color: var(--rot); font-size: 14px; }
.google-fehler:empty { display: none; }

/* ---------- Meldung ---------- */

.meldung {
  position: fixed; inset: auto; margin: 0; border: 0; overflow: visible; left: 50%; transform: translateX(-50%); z-index: 20;
  top: calc(var(--oben) + 54px);
  padding: 10px 18px; border-radius: 99px; font-size: 15px; font-weight: 600;
  background: rgba(255, 255, 255, .95); color: var(--text);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .16), 0 0 0 .5px var(--trenner);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  animation: rein .25s ease-out;
}
.meldung::before { content: "✓ "; color: var(--gruen); }
.meldung.fehler { color: var(--rot); }
.meldung.fehler::before { content: "! "; }

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

/* ---------- Handy: Blatt von unten ---------- */

@media (max-width: 640px) {
  .dialog {
    width: 100%; max-width: 100%; margin: auto 0 0;
    max-height: calc(100dvh - var(--oben) - 10px); height: calc(100dvh - var(--oben) - 10px);
    border-radius: 12px 12px 0 0;
  }
  .dialog[open] { animation: hoch .3s cubic-bezier(.2, .9, .3, 1); }
  .formular header { padding-top: 18px; }
  .griff { display: block; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 36px; height: 5px; border-radius: 3px; background: rgba(60, 60, 67, .3); }
  .schnell-raster { gap: 8px; }
  .schnell-knopf { font-size: 12px; }
}

/* ---------- iPad ---------- */

@media (min-width: 760px) {
  .inhalt { padding-top: 8px; }
  .kacheln { grid-template-columns: repeat(3, 1fr); }
  .schnell-knopf { padding: 18px 8px 14px; font-size: 15px; }
}

@keyframes hoch { from { transform: translateY(100%); } to { transform: none; } }
@keyframes rein { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .dialog[open], .meldung { animation: none; }
}

/* ---------- Login ---------- */

.login-seite { min-height: 100dvh; display: grid; place-items: center; padding: var(--oben) 16px var(--unten); }
.login { width: min(400px, 100%); display: flex; flex-direction: column; align-items: center; text-align: center; }
.login h1 { font-size: 30px; margin: 16px 0 2px; }
.login-unter { margin: 0 0 26px; color: var(--text-2); }
.app-icon.gross { width: 84px; height: 84px; border-radius: 20px; }
.app-icon.gross img { height: 50px; }
.login .gruppe { width: 100%; text-align: left; }
.login-fehler { min-height: 22px; margin: 12px 0 4px; color: var(--rot); font-weight: 500; font-size: 15px; }
.login-knopf { width: 100%; }

/* Fußzeile Start: Version, Aktualisieren, Abmelden */
.app-info { margin: 26px 0 0; text-align: center; color: var(--text-2); font-size: 13px; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.app-info .knoepfe { display: flex; gap: 20px; }
.update-banner {
  position: fixed; left: 12px; right: 12px; z-index: 30; bottom: calc(var(--tabs-hoehe) + var(--unten) + 12px);
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px;
  background: var(--text); color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  max-width: 560px; margin: 0 auto;
}
.update-banner span { flex: 1; font-size: 15px; }
.update-banner button { border: 0; border-radius: 10px; padding: 8px 14px; font-weight: 600; background: var(--akzent-hell); color: #fff; cursor: pointer; }

/* Fahrt: Ziel-Kacheln, Unter-Eingaben, Kundenanzeige */
.ziel-optionen { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ziel-option {
  display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 10px 12px; text-align: left; cursor: pointer;
  border: 0; border-radius: 12px; background: var(--fuellung); color: var(--text); font-size: 15px; font-weight: 600;
}
.ziel-option .icon { color: var(--akzent); }
.ziel-option[aria-pressed="true"] { background: var(--akzent); color: #fff; }
.ziel-option[aria-pressed="true"] .icon { color: #fff; }
.ziel-option:active { opacity: .7; }
.ziel-optionen > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.unter-eingabe { margin-top: 10px; padding: 8px 12px; border-radius: 10px; background: var(--hintergrund); }
.kunde-anzeige { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.kunde-anzeige .text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.kunde-anzeige small { color: var(--text-2); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kunde-anzeige .leise { color: var(--text-2); }
.feld .chip-leiste + .unter-eingabe, .feld .chip-leiste { margin-bottom: 0; }

/* Arbeitszeit */
.indigo { background: linear-gradient(180deg, #7b7ff0, #5856d6); }
.fahrt-karte.zweit { margin-top: 10px; background: var(--karte); color: var(--text); box-shadow: none; padding: 14px 16px; }
.fahrt-karte.zweit .fahrt-icon { width: 44px; height: 44px; background: linear-gradient(180deg, #7b7ff0, #5856d6); color: #fff; }
.fahrt-karte.zweit strong { font-size: 18px; }
.fahrt-karte.zweit .text span { color: var(--text-2); opacity: 1; }
.fahrt-karte.zweit .plus { color: #5856d6; }
.zeit-zeile { display: grid; grid-template-columns: 1fr 1fr; }
.zeit-zeile .feld + .feld { box-shadow: inset .5px 0 0 var(--trenner); }
.summen-karte:has(> div:nth-child(4)) { grid-template-columns: repeat(2, 1fr); }
.pfeil-extern { width: 16px; height: 16px; color: #c4c4c7; }

/* Kunden-Dokumente */
.liste li:has(> .dokument-loeschen) { display: flex; align-items: center; }
.liste li:has(> .dokument-loeschen) > .zeile { flex: 1; min-width: 0; }
.dokument-loeschen { flex: none; width: 44px; height: 44px; border: 0; background: none; color: var(--text-3); font-size: 24px; cursor: pointer; }
.dokument-loeschen:hover { color: var(--rot); }

/* Dokument-Ansicht */
.ansicht {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--hintergrund); display: none; flex-direction: column;
}
.ansicht[open] { display: flex; }
.ansicht::backdrop { background: var(--hintergrund); }
.ansicht-kopf {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px;
  padding: calc(var(--oben) + 4px) 8px 4px; background: rgba(242, 242, 247, .92);
  border-bottom: .5px solid var(--trenner);
}
.ansicht-titel { font-weight: 600; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ansicht-pdf { flex: 1; width: 100%; border: 0; background: #fff; }
.ansicht-bild { flex: 1; overflow: auto; display: grid; place-items: center; padding: 12px; }
.ansicht-bild img { max-width: 100%; height: auto; border-radius: 8px; }

/* Feedback */
.erledigt-link { display: inline-flex; align-items: center; gap: 4px; margin: 10px 0 4px; font-size: 14px; font-weight: 500; }
.feedback-liste { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.feedback-karte { background: var(--karte); border-radius: var(--radius); overflow: hidden; }
.feedback-inhalt { width: 100%; display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 10px; text-align: left; background: none; border: 0; cursor: pointer; color: var(--text); }
.feedback-inhalt:active { background: #e5e5ea; }
.feedback-kopf { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.feedback-kopf strong { font-size: 17px; font-weight: 600; }
.feedback-text { white-space: pre-wrap; color: var(--text); font-size: 15px; line-height: 1.4; }
.feedback-info { font-size: 13px; color: var(--text-2); }
.feedback-knoepfe { display: grid; grid-template-columns: 1fr 1fr; border-top: .5px solid var(--trenner); }
.feedback-knopf {
  display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px;
  border: 0; background: none; cursor: pointer; color: var(--akzent); font-size: 15px; font-weight: 600;
}
.feedback-knopf + .feedback-knopf { box-shadow: inset .5px 0 0 var(--trenner); }
.feedback-knopf.gruen { color: #1f8a3c; }
.feedback-knopf:active { background: #e5e5ea; }
.feedback-karte.erledigt .feedback-kopf strong { color: var(--text-2); }


/* ---------- Zentrale (Start) ---------- */
.bereich-raster { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 0; }
.bereich-kachel {
  display: flex; flex-direction: column; gap: 6px; min-height: 118px; padding: 14px;
  background: var(--karte); border-radius: 16px; color: var(--text);
}
.bereich-kachel:active { background: #e5e5ea; }
.bereich-kachel .icon-kachel { width: 40px; height: 40px; border-radius: 11px; }
.bereich-titel { margin-top: auto; font-size: 17px; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.bereich-titel .icon { color: var(--text-3); }
.bereich-wert { font-size: 14px; color: var(--text-2); }
@media (min-width: 760px) { .bereich-raster { grid-template-columns: repeat(4, 1fr); } }

/* Infobox Dokumente */
.infobox { margin: 18px 0 0; padding: 14px 16px; border-radius: var(--radius); background: var(--akzent-flaeche); color: var(--text); }
.infobox h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 16px; color: var(--akzent); }
.infobox ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 15px; }
.infobox p { margin: 0 0 8px; font-size: 15px; }
.infobox .klein { font-size: 13px; color: var(--text-2); }
.infobox-mail { margin-bottom: 10px; }
.mail-zeile { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 12px; margin-bottom: 6px; background: var(--karte); border-radius: 10px; }
.mail-zeile code { flex: 1; min-width: 0; font: 600 15px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.kopieren-knopf { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border: 0; border-radius: 8px; background: var(--akzent); color: #fff; font-weight: 600; cursor: pointer; }

/* Großer Neu-Knopf oben in jedem Bereich */
.neu-knopf {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; margin: 0 0 14px;
  border: 0; border-radius: 14px; background: var(--akzent); color: #fff; font-size: 17px; font-weight: 600; cursor: pointer;
}
.neu-knopf .icon { stroke-width: 2.4; }
.neu-knopf:active { opacity: .85; }

/* Kundenkarte: Kontakt = Aktion, Hinzufügen-Leiste */
.kontakt-zeile { display: flex; align-items: center; gap: 12px; padding: 10px 16px; color: var(--text); }
a.kontakt-zeile:active { background: #e5e5ea; }
.kontakt-icon { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--akzent-flaeche); color: var(--akzent); flex: none; }
.kontakt-zeile .text { display: flex; flex-direction: column; min-width: 0; }
.kontakt-zeile .label { font-size: 13px; color: var(--text-2); }
.kontakt-zeile .wert-text { overflow-wrap: anywhere; }
a.kontakt-zeile .label { color: var(--akzent); }
/* Rechnungsaktionen in der Kundenakte: ruhige Liste statt weiterer großer Karten.
   „erledigt“ heißt hier nur „schon einmal erstellt“ – erneut senden bleibt möglich. */
.aktion-zeile {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  border: 0; background: none; cursor: pointer; text-align: left; color: var(--text); font: inherit;
}
.aktion-zeile:active { background: #e5e5ea; }
.aktion-zeile .text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.aktion-zeile .haupt { font-size: 17px; font-weight: 500; }
.aktion-zeile .neben { font-size: 13px; color: var(--text-2); overflow-wrap: anywhere; }
.aktion-zeile .pfeil { width: 18px; height: 18px; color: var(--text-3, #c7c7cc); flex: none; }
.aktion-zeile.erledigt .kontakt-icon { background: rgba(40, 167, 69, .14); color: #28a745; }
/* Der gruene Haken genuegt als Hinweis - der Titel bleibt normal lesbar,
   das Blatt ist ja ein fertiges Dokument und kein abgehakter Punkt. */

/* Erzeugtes Blatt: Zeile zum Ansehen, Knopf zum Senden daneben. Zwei Schritte,
   damit nichts rausgeht, bevor man es gesehen hat. */
.aktion-mit-knopf { display: flex; align-items: center; }
.aktion-mit-knopf > .aktion-zeile { flex: 1; min-width: 0; }
.aktion-mit-knopf > .aktion-zeile .pfeil { display: none; }
.aktion-knopf {
  flex: none; display: flex; align-items: center; gap: 5px; margin-right: 10px; padding: 8px 14px;
  border: 0; border-radius: 10px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.aktion-knopf:active { opacity: .75; }
/* Grau = es fehlt noch etwas, Gruen = fertig und kann raus */
.aktion-knopf.grau { background: var(--fuellung); color: var(--text-2); }
.aktion-knopf.gruen { background: #1f8f45; color: #fff; }

.hinzu-leiste { display: flex; flex-wrap: wrap; gap: 8px; }
.hinzu-chip { display: inline-flex; align-items: center; gap: 4px; color: var(--akzent); }
.offen-hinweis { margin: 14px 0 0; padding: 10px 14px; border-radius: 10px; background: rgba(255, 149, 0, .13); color: #b36200; font-weight: 600; font-size: 15px; }

/* Fahrtenliste: Kunden-Zuordnung dezent statt Rahmen-Knopf */
.kunde-chip { border: 0 !important; padding: 2px 0 !important; background: none !important; font-size: 14px !important; font-weight: 500 !important; }
.kunde-chip:not(.gesetzt) { color: var(--akzent); }
.kunde-chip.gesetzt { color: var(--text-2); }
.status-zeile { padding: 0 16px 10px 68px; margin-top: -6px; }
.liste li:not(.mit-avatar) .status-zeile { padding-left: 16px; }

/* Posteingang */
.eingang-hinweis {
  display: flex; align-items: center; gap: 12px; margin: 4px 0 12px; padding: 12px 14px; border-radius: 14px;
  background: var(--blau); color: #fff;
}
.eingang-hinweis .icon-kachel { background: rgba(255, 255, 255, .22); }
.eingang-hinweis .text { flex: 1; display: flex; flex-direction: column; }
.eingang-hinweis .text span { font-size: 14px; opacity: .9; }
.eingang-hinweis .pfeil { color: #fff; }
.eingang-karte { background: var(--karte); border-radius: var(--radius); overflow: hidden; }
.eingang-kopf { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 16px 6px; background: none; border: 0; text-align: left; cursor: pointer; color: var(--text); }
.eingang-kopf .text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.eingang-kopf .neben { color: var(--text-2); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eingang-info { margin: 0; padding: 2px 16px 0 58px; font-size: 15px; }
.eingang-info.leise { color: var(--text-2); font-size: 13px; padding-bottom: 10px; }
.feedback-knoepfe.drei { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }

/* ---------- Zentrale: breite farbige Zeilen mit „+“-Quadrat ---------- */
.bereich-liste { display: grid; gap: 10px; margin: 6px 0 0; }
.bereich-zeile { display: flex; gap: 8px; }
.bereich-haupt, .bereich-plus { color: #fff; border-radius: 16px; background: var(--zeile-farbe); }
.bereich-haupt {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 12px 14px 12px 12px;
  box-shadow: 0 4px 14px var(--zeile-schatten);
}
.bereich-plus {
  flex: none; width: 72px; display: grid; place-items: center; border: 0; cursor: pointer;
  background: var(--zeile-farbe-dunkel); box-shadow: 0 4px 14px var(--zeile-schatten);
}
.bereich-plus .icon { width: 30px; height: 30px; stroke-width: 2.6; }
.bereich-haupt:active, .bereich-plus:active { transform: scale(.97); filter: brightness(.95); }
.bereich-icon { width: 44px; height: 44px; border-radius: 12px; flex: none; display: grid; place-items: center; background: rgba(255, 255, 255, .22); }
.bereich-icon .icon { width: 24px; height: 24px; stroke-width: 2; }
.bereich-haupt .text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.bereich-haupt strong { font-size: 18px; font-weight: 650; }
.bereich-haupt .text span { font-size: 14px; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bereich-pfeil { width: 18px; height: 18px; opacity: .75; stroke-width: 2.4; }

/* Farben je Bereich (Zeile hell, „+“ etwas dunkler) */
.bereich-zeile.tuerkis { --zeile-farbe: linear-gradient(135deg, #12b3ad, #008080); --zeile-farbe-dunkel: #006b6b; --zeile-schatten: rgba(0, 128, 128, .25); }
.bereich-zeile.indigo  { --zeile-farbe: linear-gradient(135deg, #7d80f2, #5856d6); --zeile-farbe-dunkel: #4644b8; --zeile-schatten: rgba(88, 86, 214, .25); }
.bereich-zeile.gruen   { --zeile-farbe: linear-gradient(135deg, #4cd471, #28a745); --zeile-farbe-dunkel: #208a39; --zeile-schatten: rgba(40, 167, 69, .25); }
.bereich-zeile.blau    { --zeile-farbe: linear-gradient(135deg, #3d9bff, #007aff); --zeile-farbe-dunkel: #0062cc; --zeile-schatten: rgba(0, 122, 255, .25); }
.bereich-zeile.orange  { --zeile-farbe: linear-gradient(135deg, #ffad33, #ff8c00); --zeile-farbe-dunkel: #e07800; --zeile-schatten: rgba(255, 140, 0, .25); }
.bereich-zeile.gelb    { --zeile-farbe: linear-gradient(135deg, #f7c22e, #e0a100); --zeile-farbe-dunkel: #c48b00; --zeile-schatten: rgba(224, 161, 0, .25); }
.bereich-zeile.lila    { --zeile-farbe: linear-gradient(135deg, #c27ae8, #a243d6); --zeile-farbe-dunkel: #8a35b8; --zeile-schatten: rgba(162, 67, 214, .25); }
.bereich-zeile.grau    { --zeile-farbe: linear-gradient(135deg, #5f7275, #3d4f52); --zeile-farbe-dunkel: #2f3f42; --zeile-schatten: rgba(40, 60, 64, .2); }
.bereich-zeile { background: none !important; }

/* Bereichszeile als Knopf (z. B. „Dokumente einsenden“): wie ein Link aussehen, Breite über flex – nicht 100 %! */
.bereich-haupt { font: inherit; border: 0; text-align: left; cursor: pointer; }
.bereich-zeile.stahl { --zeile-farbe: linear-gradient(135deg, #8aa1ad, #5b7380); --zeile-farbe-dunkel: #4a606c; --zeile-schatten: rgba(74, 96, 108, .25); }

/* Handy: etwas kompakter, damit Zeile + Quadrat bequem in die Breite passen */
@media (max-width: 480px) {
  .bereich-liste { gap: 8px; }
  .bereich-zeile { gap: 6px; }
  .bereich-haupt { min-height: 62px; padding: 9px 10px; gap: 10px; border-radius: 14px; }
  .bereich-plus { width: 62px; border-radius: 14px; }
  .bereich-plus .icon { width: 26px; height: 26px; }
  .bereich-icon { width: 38px; height: 38px; border-radius: 10px; }
  .bereich-icon .icon { width: 21px; height: 21px; }
  .bereich-haupt strong { font-size: 17px; }
  .bereich-haupt .text span { font-size: 13px; }
}

/* PDF-Ansicht: Seiten in voller Breite */
.ansicht-seiten { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 8px 8px calc(16px + var(--unten)); display: flex; flex-direction: column; align-items: center; gap: 8px; background: #e9e9ee; }
.pdf-seite { display: block; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .15); border-radius: 2px; }
.ansicht-laden { margin: 24px 0; color: var(--text-2); font-size: 14px; }

/* Lange Texte (z. B. die Einsende-Adresse) mit „…“ kürzen – auch wenn die Zeile ein Knopf ist */
.bereich-haupt { overflow: hidden; }
.bereich-haupt .text { overflow: hidden; }
.bereich-haupt .text > * { display: block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Zeilen dürfen schmaler werden als ihr längster Text (sonst schiebt die Adresse die Seite breiter) */
.bereich-liste { grid-template-columns: minmax(0, 1fr); }
.bereich-zeile { min-width: 0; }

/* ---------- Auswertung ---------- */
.zeitraum-titel { margin: 6px 4px 10px; font-size: 20px; font-weight: 700; }
.geld-kacheln { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.geld-kachel { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 16px; color: #fff; min-width: 0; }
.geld-kachel .titel { font-size: 13px; font-weight: 600; opacity: .92; }
.geld-kachel strong { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; overflow-wrap: anywhere; }
.geld-kachel .zusatz { font-size: 12.5px; opacity: .9; }
.geld-kachel.blau { background: linear-gradient(135deg, #3d9bff, #007aff); }
.geld-kachel.orange { background: linear-gradient(135deg, #ffad33, #ff8c00); }
.geld-kachel.tuerkis { background: linear-gradient(135deg, #12b3ad, #008080); }
.geld-kachel.gruen { background: linear-gradient(135deg, #4cd471, #28a745); }
.geld-kachel.rot { background: linear-gradient(135deg, #ff6b61, #e0352b); }
.geld-kachel.lila { background: linear-gradient(135deg, #c27ae8, #a243d6); }
.geld-kachel.indigo { background: linear-gradient(135deg, #7d80f2, #5856d6); }
@media (min-width: 760px) { .geld-kacheln { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.posten { display: flex; justify-content: space-between; gap: 10px; padding: 11px 16px; font-size: 16px; }
.posten .betrag { font-variant-numeric: tabular-nums; white-space: nowrap; }
.posten.minus .betrag { color: var(--rot); }
.posten.zwischen { font-weight: 600; background: var(--hintergrund); }
.posten.ergebnis { font-weight: 700; font-size: 18px; }
.posten.ergebnis.positiv .betrag { color: #1f8a3c; }
.posten.ergebnis.negativ .betrag { color: var(--rot); }
.klein-rand { margin: 8px 16px 0; font-size: 13px; }

.personen { display: grid; }
.person-karte { padding: 12px 16px; }
.person-karte + .person-karte { box-shadow: inset 0 .5px 0 var(--trenner); }
.person-kopf { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.person-kopf .avatar { width: 34px; height: 34px; font-size: 15px; background: linear-gradient(180deg, var(--akzent-hell), var(--akzent)); }
.person-kopf strong { flex: 1; font-size: 17px; }
.steht-zu { font-size: 14px; color: var(--text-2); }
.steht-zu b { color: #1f8a3c; font-size: 16px; }
.person-werte { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
.person-werte div { display: flex; flex-direction: column; }
.person-werte span { font-size: 12.5px; color: var(--text-2); }
.person-werte b { font-size: 16px; font-variant-numeric: tabular-nums; }

.monats-tabelle .monats-zeile {
  width: 100%; display: grid; grid-template-columns: 1.2fr 1.2fr 1.2fr; gap: 6px; align-items: center;
  padding: 11px 16px; border: 0; background: none; text-align: right; font: inherit; font-size: 15px; color: var(--text); cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.monats-tabelle .monats-zeile > :first-child { text-align: left; }
.monats-tabelle .monats-zeile + .monats-zeile { box-shadow: inset 0 .5px 0 var(--trenner); }
.monats-tabelle .monats-zeile:active { background: #e5e5ea; }
.monats-zeile.kopf { font-size: 12.5px; color: var(--text-2); text-transform: uppercase; letter-spacing: .02em; cursor: default; }
.monats-zeile .positiv { color: #1f8a3c; }
.monats-zeile .negativ { color: var(--rot); }

/* Kundenliste: Überschriften der Leisten */
.leisten-titel { margin: 6px 4px 4px; font-size: 12.5px; color: var(--text-2); text-transform: uppercase; letter-spacing: .02em; }

/* Kontaktzeile mit Kopier-Knopf */
.kontakt-mit-knopf { display: flex; align-items: center; }
.kontakt-mit-knopf > .kontakt-zeile { flex: 1; min-width: 0; }
.kontakt-kopieren { flex: none; width: 48px; height: 48px; margin-right: 6px; display: grid; place-items: center; border: 0; border-radius: 12px; background: none; color: var(--akzent); cursor: pointer; }
.kontakt-kopieren:active { background: var(--akzent-flaeche); }

/* Wir fahren los / Rechnung senden */
.losfahren-knopf {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; margin-top: 8px;
  border: 0; border-radius: 14px; background: var(--akzent-flaeche); color: var(--akzent); font-size: 16px; font-weight: 600; cursor: pointer;
}
/* Ab vier Knoepfen bricht die Reihe um – lieber zwei Zeilen als Quetschen */
.kanaele { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; padding: 12px; }
.kanal-knopf {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 64px;
  border: 0; border-radius: 12px; background: var(--akzent); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; text-align: center;
}
.kanal-knopf.aus { background: var(--fuellung); color: var(--text-3); pointer-events: none; }
/* Ansehen statt senden: gleiche Form, aber ohne Fläche – die beiden Sende-Knöpfe
   sollen die auffälligen bleiben. */
.kanal-knopf.still { background: var(--akzent-flaeche); color: var(--akzent); }
.blatt-inhalt > .kanaele { padding: 14px 0 0; }

/* Website-Anfragen */
.eingang-hinweis.gruen { background: var(--gruen); }
.eingang-hinweis.gruen .icon-kachel { background: rgba(255, 255, 255, .22); }
.anfrage-text { white-space: pre-line; overflow-wrap: anywhere; padding-top: 6px; padding-bottom: 4px; }
.eingang-info a { color: var(--akzent); text-decoration: none; overflow-wrap: anywhere; }

/* ---------- Kalender ---------- */
.bereich-zeile.rot { --zeile-farbe: linear-gradient(135deg, #ff6b61, #e0352b); --zeile-farbe-dunkel: #c42a21; --zeile-schatten: rgba(224, 53, 43, .25); }
.icon-kachel.rot { background: linear-gradient(180deg, #ff6b61, var(--rot)); }
.kal-woche { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 14px 0 0; }
.kal-woche-text { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.kal-woche-text strong { font-size: 17px; font-weight: 600; }
.kal-woche-text > span { color: var(--text-2); font-size: 14px; }
.kal-pfeil { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--karte); color: var(--akzent); display: grid; place-items: center; cursor: pointer; }
.kal-pfeil .icon { width: 20px; height: 20px; stroke-width: 2.2; }
.kal-hinweis { margin: 12px 4px 0; color: var(--text-2); font-size: 15px; }
.kal-hinweis.fehler { color: var(--rot); }
.kal-zeile { display: flex; align-items: baseline; gap: 12px; padding: 11px 16px; font-size: 15px; }
.kal-marke { flex: none; width: 56px; color: var(--text-2); font-size: 13px; font-weight: 600; }
.kal-zeile .leise { color: var(--text-3); }
.gruppe-titel.heute { color: var(--akzent); font-weight: 600; }
.gruppe.vergangen { opacity: .55; }
.gruppe > .hinweis-text { padding: 0 16px 12px; }
.blatt-text { margin: 14px 16px 0; }

/* ---------- Prozessübersicht (Link ganz unten auf dem Start) ---------- */
.prozess-link-unten {
  display: flex; align-items: center; gap: 12px; margin: 22px 0 0; padding: 12px 14px; border-radius: 14px;
  background: var(--karte); color: var(--text);
}
.prozess-link-unten .text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.prozess-link-unten .text span { font-size: 14px; color: var(--text-2); }
.prozess-link-unten .pfeil { color: var(--text-3); width: 18px; height: 18px; }
.prozess-link-unten:active { background: #e5e5ea; }

/* ---------- Termin: Tag antippen, Plus je Tag ---------- */

.tag-wahl-kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.tag-wahl-kopf strong { font-size: 16px; font-weight: 600; text-align: center; }
.tag-wahl .kal-pfeil { width: 34px; height: 34px; background: var(--fuellung); }
.tag-knoepfe { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.tag-knopf {
  display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 0; padding: 6px 0;
  border: 0; border-radius: 10px; background: var(--fuellung); color: var(--text); cursor: pointer; font: inherit;
}
.tag-knopf span { font-size: 12px; color: var(--text-2); }
.tag-knopf strong { font-size: 17px; font-weight: 600; }
.tag-knopf.heute span { color: var(--akzent); font-weight: 600; }
.tag-knopf.vergangen { opacity: .45; }
.tag-knopf[aria-pressed="true"] { background: var(--akzent); color: #fff; opacity: 1; }
.tag-knopf[aria-pressed="true"] span { color: #fff; }
.tag-knopf:active { opacity: .7; }
.kal-tag-kopf { align-items: center; }
/* Grünes Plus-Quadrat: in der Zeile „Flo 13:30–20:00“ rechts, sonst neben dem Tag */
.tag-plus { border: 0; cursor: pointer; }
.kal-tag-kopf .tag-plus { margin-top: 14px; }
.tag-plus .icon { stroke-width: 2.6; }
.tag-plus:active { opacity: .7; }
.kal-zeile.mit-plus { align-items: center; padding-block: 8px; }
.kal-zeile.mit-plus .tag-plus { margin-left: auto; }

/* ---------- Freie Zeit: grün = geht, rot = geht nicht ---------- */

.rot-text { color: var(--rot) !important; }
.gruppe-titel.rot { color: var(--rot); }
.kal-zu { color: var(--rot); font-weight: 600; }
.tag-knopf { position: relative; }
.tag-knopf.frei::after, .tag-knopf.zu::after {
  content: ""; position: absolute; bottom: 3px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%;
  background: var(--gruen);
}
.tag-knopf.zu { background: color-mix(in srgb, var(--rot) 14%, var(--fuellung)); }
.tag-knopf.zu strong, .tag-knopf.zu span { color: var(--rot); }
.tag-knopf.zu::after { background: var(--rot); }
.tag-knopf[aria-pressed="true"]::after { background: #fff; }
.tag-knopf.zu[aria-pressed="true"] { background: var(--rot); }
.tag-knopf.zu[aria-pressed="true"] strong, .tag-knopf.zu[aria-pressed="true"] span { color: #fff; }
.fenster-leiste { margin-top: 10px; }
.fenster-leiste p { margin: 0; font-size: 15px; }
.chip.frei-chip { background: color-mix(in srgb, var(--gruen) 16%, var(--fuellung)); }
option.zu { color: var(--rot); }

/* Termin: Adresse in Google Maps öffnen */
.maps-knopf {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: 8px; padding: 9px 14px;
  border-radius: 10px; background: var(--akzent-flaeche); color: var(--akzent); font-size: 15px; font-weight: 600; text-decoration: none;
}
.maps-knopf[hidden] { display: none; }
.maps-knopf:active { opacity: .7; }

/* Fahrt als Route: Ziele nacheinander, Teilstrecken mit Kilometern */
.termin-uebernehmen {
  display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 10px; padding: 10px 12px; text-align: left; cursor: pointer;
  border: 0; border-radius: 12px; background: var(--akzent-flaeche); color: var(--text);
}
.termin-uebernehmen[hidden] { display: none; }
.termin-uebernehmen .text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.termin-uebernehmen strong { color: var(--akzent); font-size: 15px; }
.termin-uebernehmen small { color: var(--text-2); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.termin-uebernehmen:active { opacity: .7; }
.hinweis-text.klein { font-size: 13px; margin: 0 0 6px; }
.stationen { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.stationen[hidden] { display: none; }
.station { display: flex; align-items: flex-start; gap: 10px; padding: 10px 10px 10px 12px; border-radius: 12px; background: var(--hintergrund); }
.station-nr {
  flex: none; width: 26px; height: 26px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center;
  background: var(--akzent); color: #fff; font-size: 14px; font-weight: 700;
}
.station .text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.station strong { font-size: 16px; }
.station small { color: var(--text-2); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.station .rot-text { color: var(--rot); }
.station-zweck { margin-top: 6px; padding: 6px 10px !important; border-radius: 8px; background: var(--karte) !important; font-size: 15px !important; }
.station-knoepfe { flex: none; display: flex; gap: 4px; }
.station-knopf {
  width: 34px; height: 34px; border: 0; border-radius: 9px; display: grid; place-items: center; cursor: pointer;
  background: var(--karte); color: var(--akzent);
}
.station-knopf.weg { color: var(--rot); }
.station-knopf:active { opacity: .6; }
.ziel-option .icon { flex: none; }
.teilstrecken { list-style: none; margin: 0; padding: 0; }
.teilstrecken[hidden] { display: none; }
.teilstrecke { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: .5px solid var(--trenner); }
.teilstrecke .text { display: flex; flex-direction: column; min-width: 0; font-size: 15px; }
.teilstrecke small { color: var(--text-2); font-size: 13px; }
.teilstrecke small.rot-text { color: var(--rot); }
.betrag-feld.klein { flex: none; align-items: center; }
.betrag-feld.klein input { width: 76px; text-align: right; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.betrag-feld.klein .einheit { font-size: 15px; }
.km-summe-zeile { display: flex; align-items: baseline; justify-content: space-between; padding: 10px 0 2px; }
.km-summe-zeile[hidden] { display: none; }
.km-summe-zeile span { color: var(--text-2); font-size: 15px; }
.km-summe { font-size: 26px; font-weight: 700; color: var(--akzent); font-variant-numeric: tabular-nums; }
.feld > .maps-knopf { align-self: flex-start; }
.stationen { grid-template-columns: minmax(0, 1fr); }
.station { min-width: 0; }
.station-zweck { width: 100%; min-width: 0; box-sizing: border-box; }

/* Erinnerungen */
.bereich-zeile.pink { --zeile-farbe: linear-gradient(135deg, #ff7aa2, #e0336b); --zeile-farbe-dunkel: #c22a5c; --zeile-schatten: rgba(224, 51, 107, .25); }
.icon-kachel.pink { background: linear-gradient(180deg, #ff7aa2, #e0336b); }
.icon-kachel.grau { background: linear-gradient(180deg, #a3b1b4, #6f8184); }
.eingang-hinweis.pink { background: #e0336b; }
.eingang-hinweis.pink .icon-kachel { background: rgba(255, 255, 255, .22); }
.erinnerung-abschluss { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin-top: 16px; }
.erinnerung-abschluss .hinweis-text { margin: 0 4px; font-size: 13px; }
.erinnerung-abschluss .link-knopf { align-self: center; }
.zeile.leise-zeile .haupt { color: var(--text-2); }
.archiv-text { white-space: pre-wrap; font-size: 15px; }

/* Dokument weiterleiten (Akte) */
.liste li:has(> .dokument-senden) { display: flex; align-items: center; }
.liste li:has(> .dokument-senden) > .zeile { flex: 1; min-width: 0; }
.dokument-senden {
  flex: none; width: 40px; height: 40px; border: 0; border-radius: 10px; display: grid; place-items: center; cursor: pointer;
  background: var(--akzent-flaeche); color: var(--akzent);
}
.dokument-senden:active { opacity: .6; }

/* Direktversand (Versandfenster) */
.ansicht-knoepfe { display: flex; align-items: center; }
.anhang-zeile {
  display: grid; grid-template-columns: 1fr auto; column-gap: 8px; width: 100%; text-align: left;
  background: none; border: 0; border-top: .5px solid var(--trenner); color: var(--text); font: inherit; cursor: pointer;
}
.anhang-zeile .label, .anhang-zeile .wert-text { grid-column: 1; }
.anhang-zeile .pfeil { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--text-3); }
.anhang-zeile .wert-text { color: var(--akzent); }
.signatur-vorschau {
  display: flex; flex-direction: column; gap: 2px; padding: 10px 16px 14px; white-space: pre-line;
  color: var(--text-2); font-size: 14px; line-height: 1.4; border-top: .5px solid var(--trenner);
}
.signatur-vorschau .label { font-size: 13px; color: var(--text-3); margin-bottom: 4px; }
.senden-bereich { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.senden-knopf { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 60px; font-size: 19px; font-weight: 700; border-radius: 16px; }
.senden-knopf .icon { width: 24px; height: 24px; }
/* Test-Knöpfe bewusst klein und leise – der große Knopf oben ist der eigentliche */
.test-knoepfe { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.test-knoepfe small { flex-basis: 100%; text-align: center; color: var(--text-2); font-size: 12px; }
.test-knopf {
  border: 1px solid var(--trenner); background: var(--karte); color: var(--text-2); border-radius: 999px;
  padding: 6px 12px; font-size: 13px; cursor: pointer; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.test-knopf:disabled { opacity: .5; }
.mehr-knopf {
  display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 18px; padding: 14px 16px;
  border: 0; border-radius: var(--radius); background: var(--karte); color: var(--akzent); font-size: 16px; font-weight: 600; cursor: pointer;
}
.mehr-knopf .pfeil { transition: transform .15s; }
.mehr-knopf.offen .pfeil { transform: rotate(90deg); }
.kanaele[hidden] { display: none; }
.kanal-knopf small { font-size: 11px; font-weight: 500; opacity: .8; }
.mailtext-feld textarea { min-height: 180px; }

/* Rückmeldung zum Angebot / Absage */
.absage-kasten {
  display: flex; flex-direction: column; gap: 2px; margin: 12px 0 4px; padding: 12px 16px;
  border-radius: var(--radius); background: #ffe9e7; color: #b42318;
}
.absage-kasten span { color: var(--text-2); font-size: 15px; }
.absage-kasten .link-knopf { align-self: flex-start; color: #b42318; }
.marke.m-abgesagt { background: #ffe9e7; color: #b42318; }

/* Versandfenster: BCC und Dateiname des Anhangs änderbar (Rudi, 05.11.2026) */
.versand-feld .link-knopf { align-self: flex-start; }
.anhang-name { display: flex; align-items: center; gap: 6px; }
.anhang-name input { flex: 1; min-width: 0; }
.anhang-name .endung { color: var(--text-2); }

/* MGM → DATEV (Blatt auf dem Start, Spur in der Kundenakte) */
.icon-kachel.rot { background: linear-gradient(180deg, #ff6b61, #e0352b); }
.icon-kachel.grau { background: linear-gradient(180deg, #a8b4b8, #8a979b); }
.mgm-ergebnis:empty { display: none; }
.mgm-ergebnis, .gruppe > p.klein { margin: 10px 16px; font-size: 14px; color: var(--text-2); }
.zeile .neben.mgm-spur { font-size: 13px; white-space: normal; }
.zeile .neben.mgm-spur.bestaetigt { color: #1f8a3c; }
.zeile .neben.mgm-spur.pruefen, .zeile .neben.mgm-spur.doppelt, .zeile .neben.mgm-spur.fehler { color: var(--rot); }

/* ---------- Kundenakte: eine lange Seite, Bereiche farbig getönt (07.11.2026) ---------- */
.akte-bereich {
  --bereich: #f4f4f7; --bereich-text: var(--text);
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 14px; padding: 14px 12px 16px; border-radius: 18px; background: var(--bereich);
}
.akte-bereich.b-stand     { --bereich: #e3f3f3; --bereich-text: #006666; }
.akte-bereich.b-kontakt   { --bereich: #e7f6eb; --bereich-text: #1f7a37; }
.akte-bereich.b-dokumente { --bereich: #e6effd; --bereich-text: #0a5bc4; }
.akte-bereich.b-geld      { --bereich: #fff1de; --bereich-text: #a35a00; }
.akte-bereich.b-aufwand   { --bereich: #f2e9fa; --bereich-text: #7a3aa3; }
.akte-kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 0 4px; }
.akte-kopf h2 { margin: 0; font-size: 21px; font-weight: 700; color: var(--bereich-text); }
.akte-zusatz { font-size: 15px; font-weight: 500; color: var(--text-2); }
.akte-plus { display: flex; flex-wrap: wrap; gap: 6px; }
.akte-plus-knopf {
  display: inline-flex; align-items: center; gap: 4px; padding: 6px 11px; border: 0; border-radius: 99px; cursor: pointer;
  background: var(--karte); color: var(--bereich-text); font: inherit; font-size: 14px; font-weight: 600;
}
.akte-plus-knopf:active { transform: scale(.96); }
.akte-unter, .akte-bereich .gruppe-titel {
  margin: 6px 4px -4px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; color: var(--bereich-text);
}
.akte-leer { margin: 0 4px; font-size: 15px; color: var(--text-2); }
.akte-bereich .fahrt-karte.kompakt { margin: 0; }
.akte-bereich .absage-kasten { margin: 0; }

.schritt-nr { font-size: 13px; font-weight: 700; color: var(--text-2); }
.schritt.naechster { box-shadow: inset 0 0 0 2px var(--orange); }

/* Der eine Knopf „Als Nächstes“ */
.naechster-knopf {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; border: 0; border-radius: 14px;
  background: var(--akzent); color: #fff; text-align: left; font: inherit; cursor: pointer;
}
.naechster-knopf:active { transform: scale(.98); }
.naechster-knopf .text { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.naechster-knopf small { font-size: 13px; opacity: .85; }
.naechster-knopf strong { font-size: 17px; font-weight: 600; }
.naechster-knopf.still { background: var(--karte); color: var(--text); cursor: default; }
.naechster-knopf.still small, .naechster-knopf.still span span { color: var(--text-2); opacity: 1; }
.naechster-knopf.still .text > span { font-size: 14px; color: var(--text-2); }

/* Stand eines Kunden: „5/8“ · Balken · Schild (Variante D) */
.stand { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; font-size: 13px; }
.stand-zahl { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--akzent); }
.stand-balken { display: inline-flex; gap: 2px; }
.stand-balken span { width: 9px; height: 6px; border-radius: 2px; background: #d1d1d6; }
.stand-balken span.an { background: var(--gruen); }
.stand-schild { padding: 2px 8px; border-radius: 99px; background: rgba(255, 149, 0, .14); color: #a35a00; font-weight: 600; white-space: nowrap; }
.stand.fertig .stand-schild { background: rgba(52, 199, 89, .16); color: #1f7a37; }
.stand.gross { font-size: 15px; padding: 0 4px; }
.stand.gross .stand-zahl { font-size: 22px; }
.stand.gross .stand-balken { flex: 1; min-width: 120px; }
.stand.gross .stand-balken span { flex: 1; width: auto; height: 9px; border-radius: 3px; }

/* Start: aufklappbarer Bereich „Sonstiges“, deutlich abgesetzt (Wunsch H2, 07.11.2026) */
.sonstiges-bereich { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--trenner); }
.sonstiges-bereich > summary {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius);
  background: var(--karte); cursor: pointer; list-style: none;
}
.sonstiges-bereich > summary::-webkit-details-marker { display: none; }
.sonstiges-bereich > summary .text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.sonstiges-bereich > summary strong { font-size: 17px; font-weight: 600; }
.sonstiges-bereich > summary .text span { font-size: 14px; color: var(--text-2); }
.sonstiges-pfeil { color: var(--text-3); transition: transform .2s; }
.sonstiges-bereich[open] > summary .sonstiges-pfeil { transform: rotate(90deg); }
.sonstiges-bereich > .bereich-liste { margin-top: 10px; }
.sonstiges-bereich .prozess-link-unten { margin: 0; }

/* Termin mit Karten-Pin rechts daneben */
.zeile-mit-pin { display: flex; align-items: center; }
/* Kalender-Termin: Zeile oben, darunter drei gleich breite Knöpfe (Anrufen · Karte · Kunde) */
.termin-block { display: flex; flex-direction: column; }
.termin-block > .zeile { width: 100%; }
.termin-knoepfe { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 0 12px 10px; }
.termin-knopf {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px;
  border: 0; border-radius: 10px; font: inherit; font-size: 12px; font-weight: 600; text-decoration: none; cursor: pointer;
}
.termin-knopf.blau { background: rgba(0, 122, 255, .1); color: #0060df; }
.termin-knopf.orange { background: rgba(255, 149, 0, .14); color: #b25f00; }
.termin-knopf.gruen.fett { background: var(--gruen); color: #fff; }
.termin-knopf.gruen { background: rgba(52, 199, 89, .12); color: #248a3d; }
.termin-knopf.rot { background: rgba(255, 59, 48, .1); color: var(--rot); }
.termin-knopf.tuerkis { background: rgba(0, 128, 128, .1); color: #008080; }
.termin-knopf.aus { background: rgba(120, 120, 128, .08); color: var(--text-2); opacity: .55; }
.termin-knopf:active { transform: scale(.97); }
/* Dokumente: wann eingespeist, „neu“ in den letzten 48 Stunden */
.eingespeist { display: flex; align-items: center; gap: 6px; }
.neu-marke { background: var(--akzent, #008080); color: #fff; font-size: 11px; font-weight: 700; border-radius: 6px; padding: 1px 6px; }
.zeile-mit-pin > .zeile { flex: 1; min-width: 0; }
.karten-pin {
  flex: none; width: 44px; height: 44px; margin-right: 6px; display: grid; place-items: center;
  border-radius: 12px; background: rgba(255, 59, 48, .1); color: var(--rot);
}
.karten-pin:active { transform: scale(.94); }
.karten-pin .icon { width: 22px; height: 22px; }
.karten-pin.anruf-pin { background: rgba(52, 199, 89, .12); color: var(--gruen); }
.karten-pin.akte-pin { background: rgba(0, 128, 128, .1); color: #008080; }

/* Dokumente der Kundenakte: feste Fächer, Farbe = Zustand (grün da · blau erzeugbar · grau fehlt) */
.dok-liste .dok-fach { display: flex; align-items: center; }
.dok-liste .dok-fach > .zeile { flex: 1; min-width: 0; }
.dok-punkt { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; }
.dok-punkt .icon { width: 17px; height: 17px; stroke-width: 2.6; }
.dok-fach.dok-da .dok-punkt { background: var(--gruen); color: #fff; }
.dok-fach.dok-neu .dok-punkt { background: var(--blau); color: #fff; }
.dok-fach.dok-neu .haupt { color: var(--blau); font-weight: 600; }
.dok-fach.dok-fehlt .dok-punkt { background: none; box-shadow: inset 0 0 0 2px var(--text-3); color: var(--text-3); }
.dok-fach.dok-fehlt .haupt { color: var(--text-2); }
.dok-fach.dok-aus { opacity: .55; }

/* Start: Strich zwischen Neuigkeiten und Bereichen */
.start-trenner { border: 0; border-top: 1px solid var(--trenner); margin: 22px 0 18px; }

/* Gedrückt halten zum Abhaken: grüne Füllung läuft von links nach rechts */
.halte-knopf { position: relative; overflow: hidden; isolation: isolate; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: manipulation; }
.halte-knopf::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(135deg, #3fd068, #28a745); transform: scaleX(0); transform-origin: left;
}
.halte-knopf.haelt::after { transform: scaleX(1); transition: transform var(--halten, 0.75s) linear; }
.schritt.halte-knopf.haelt { color: var(--text); }

/* Auswertung: Zeile je Auftrag (Bilanz / noch nicht fertig) */
.zeile .neben.auftrag-satz { font-size: 13.5px; white-space: normal; }
.zeile .wert.betrag-wert.positiv { color: #1f8a3c; }
.zeile .wert.betrag-wert.negativ { color: var(--rot); }

/* Auswertung: Bereiche Abgeschlossen / Potentiell / Stundenlohn (08.11.2026) */
.posten-neben { display: block; font-size: 12.5px; color: var(--text-2); }
.lohn-kacheln { display: flex; flex-direction: column; gap: 8px; }
.lohn-kachel { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 16px; border-radius: 14px; background: var(--karte); }
.lohn-kachel span { font-size: 15px; color: var(--text-2); }
.lohn-kachel strong { font-size: 24px; font-variant-numeric: tabular-nums; color: var(--bereich-text); }
.lohn-kachel strong.negativ { color: var(--rot); }
.so-gerechnet > summary { padding: 11px 16px; cursor: pointer; font-size: 15px; color: var(--bereich-text); font-weight: 600; }

/* Auswertung: aufklappbare Boxen (Kunden, Ausgaben, Weitere Zahlen) */
details.klapp-bereich { display: block; }
.klapp-bereich > summary { list-style: none; cursor: pointer; }
.klapp-bereich > summary::-webkit-details-marker { display: none; }
.klapp-bereich .akte-zusatz { display: inline-flex; align-items: center; gap: 6px; }
.klapp-bereich .klapp-pfeil { width: 18px; height: 18px; transition: transform .15s; }
.klapp-bereich[open] .klapp-pfeil { transform: rotate(90deg); }
.klapp-inhalt { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.akte-bereich.b-mehr { --bereich: #e9e9ef; --bereich-text: #3a3a3c; }

/* Schnellknopf arbeitet gerade (z. B. Zwischenordner holen) */
.bereich-plus.laedt, .bereich-haupt.laedt { opacity: .6; }
.bereich-plus.laedt .icon, .bereich-haupt.laedt .bereich-icon .icon { animation: knopf-puls 1s ease-in-out infinite; }
@keyframes knopf-puls { 50% { transform: scale(.8); } }

/* Zwei Schnellknöpfe in einer Zeile: Knöpfe bleiben so breit wie überall, dafür Titel zweizeilig
   (Zeilenumbruch „\n“ im Titel) und auf dem Handy ohne Pfeil */
.bereich-haupt .text > strong { white-space: pre-line; line-height: 1.15; }
@media (max-width: 480px) {
  .bereich-zeile.zwei .bereich-pfeil { display: none; }
}

/* Weiterer Auftrag desselben Kunden: Schild „2. Auftrag“ in Liste und Akte */
.auftrag-schild { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: #5856d6; color: #fff; font-size: 12px; font-weight: 600; vertical-align: 2px; white-space: nowrap; }
.auftrag-schild.gross { margin: 8px 0 0; font-size: 14px; padding: 3px 12px; vertical-align: 0; }
.akte-bereich.b-auftraege { --bereich: #ececfb; --bereich-text: #4644b8; }
.auftrag-zeile { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 12px 14px; color: inherit; text-decoration: none; }
.auftrag-zeile + .auftrag-zeile { border-top: 1px solid var(--trenner, rgba(0, 0, 0, .08)); }
.auftrag-zeile span { color: var(--text-2); font-size: 14px; }
.auftrag-zeile.aktuell strong { color: #5856d6; }

/* Datenbezug-Blatt: Adresse darf umbrechen, Kopierknopf darunter */
.infobox li code { overflow-wrap: anywhere; }
.infobox li .kopieren-knopf { display: flex; margin-top: 6px; }

/* Kundenakte: Gewinn des Auftrags (Rechnungen minus Ausgaben) */
.gewinn-kasten {
  display: flex; flex-direction: column; gap: 2px; margin: 12px 0 0; padding: 12px 16px;
  border-radius: var(--radius); background: var(--karte); color: var(--text); box-shadow: inset 4px 0 0 var(--gruen);
}
.gewinn-kasten .gewinn-titel { font-size: 14px; color: var(--text-2); }
.gewinn-kasten strong { font-size: 22px; color: #1f8a3b; }
.gewinn-kasten span:nth-child(3) { font-size: 14px; color: var(--text-2); }
.gewinn-kasten.minus { box-shadow: inset 4px 0 0 var(--rot); }
.gewinn-kasten.minus strong { color: #d70015; }

/* Kundenakte: Empfehlung Montagepauschale */
.pauschale-kasten {
  display: flex; flex-direction: column; gap: 2px; margin: 12px 0 0; padding: 12px 16px;
  border-radius: var(--radius); background: var(--karte); color: var(--text);
}
.pauschale-kasten .pauschale-titel { font-size: 14px; color: var(--text-2); }
.pauschale-kasten strong { font-size: 22px; }
.pauschale-kasten span:nth-child(3) { font-size: 14px; color: var(--text-2); }

/* Stichtag „Privat ausgeglichen bis“ (Weitere Zahlen) – Knöpfe untereinander, volle Breite */
.ausgleich .posten input[type="date"] { font: inherit; }
.ausgleich-knoepfe { display: flex; flex-direction: column; gap: 8px; padding: 8px 16px 12px; }
.ausgleich-knoepfe .knopf { width: 100%; }
.pauschale-kasten .link-knopf { align-self: flex-start; margin-top: 4px; }

/* ---------- Kalender: Hinweise oben, Termine außerhalb der freien Zeit ---------- */
.kal-hinweise {
  display: flex; flex-direction: column; gap: 4px; width: 100%; margin: 12px 0 0; padding: 12px 16px;
  border: 0; border-radius: var(--radius); background: #fff6d6; color: var(--text); text-align: left; font: inherit; font-size: 15px; cursor: pointer;
}
.kal-hinweise small { color: var(--text-2); font-size: 12px; }
.kal-hinweise:active { opacity: .7; }
.termin-passt-nicht { box-shadow: inset 4px 0 0 var(--rot); }
.termin-passt-nicht .haupt { color: var(--rot); }
.link-knopf.gefahr { color: var(--rot); }
.link-knopf.rechts { margin-left: auto; }
.abo-plus .haupt { color: var(--akzent); font-weight: 600; }
.abo-bereich { margin: 14px 0 0; }
.abo-bereich .gruppe { margin: 0; }
.abo-bereich .abo-plus .haupt { color: var(--bereich-text); }
/* Kalender › Einrichten › Berechnung: Zusammenfassung als antippbare Karte */
.regeln-karte { display: flex; flex-direction: column; width: 100%; margin: 0; padding: 0; border: 0; text-align: left; font: inherit; color: var(--text); cursor: pointer; }
.regeln-karte .kal-zeile { justify-content: space-between; border-bottom: .5px solid var(--trenner); }
.regeln-karte .regel-was { color: var(--text-2); }
.regeln-karte strong { font-weight: 600; text-align: right; }
.regeln-karte .regel-aendern { border-bottom: 0; color: var(--bereich-text); font-weight: 600; align-items: center; }
.regeln-karte:active { opacity: .7; }
/* Großer Einrichten-Knopf am Ende des Kalenders */
.einrichten-knopf {
  display: flex; align-items: center; gap: 14px; width: 100%; margin: 24px 0 8px; padding: 16px;
  border: 2px solid var(--akzent); border-radius: 16px; background: var(--akzent-flaeche); color: var(--text);
  text-align: left; font: inherit; cursor: pointer;
}
.einrichten-knopf .text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.einrichten-knopf strong { font-size: 18px; font-weight: 700; color: var(--akzent); }
.einrichten-knopf small { font-size: 14px; color: var(--text-2); }
.einrichten-knopf .pfeil { color: var(--akzent); }
.einrichten-knopf:active { opacity: .8; }
.chip-leiste.umbrechen { flex-wrap: wrap; overflow: visible; }
/* Stundenplan */
.stundenplan-zeiten { display: flex; align-items: center; gap: 8px; }
.stundenplan-zeiten input { flex: 1; min-width: 0; }
.stundenplan-zeiten span { color: var(--text-2); font-size: 14px; }
.regeln-karte .stundenplan-kurz { display: block; font-size: 14px; color: var(--text); line-height: 1.5; }
.schulfrei-marke { margin-left: 8px; padding: 2px 8px; border-radius: 99px; background: #fff1de; color: #a35a00; font-size: 11px; font-weight: 600; text-transform: none; letter-spacing: 0; }
.kal-marke.frei-marke { color: #1f8a3c; width: 72px; }
.kal-zeile.nur-info { padding-block: 11px; }
.verwerfen-knopf { align-self: center; margin-top: 8px; }
.lohn-filter { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
/* Weitere Anhänge im Versandfenster (Wunsch H2, 20.11.2026) */
.anhang-liste { list-style: none; margin: 4px 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.anhang-liste:empty { display: none; }
.anhang-zeile { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--fuellung); }
.anhang-zeile .text { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow-wrap: anywhere; font-size: 15px; }
.anhang-zeile small { color: var(--text-2); font-size: 13px; }
.anhang-weg { border: 0; background: none; padding: 6px; cursor: pointer; color: var(--rot); display: flex; }
.anhang-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0; }
.anhang-auswahl { margin: 4px 0; }
.anhang-wahl { width: 100%; border: 0; background: none; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.anhang-wahl.gewaehlt .icon { color: var(--akzent); }

/* Sondertermin (nur Flo oder Rudi): blaues Plus je Woche, blaue Zeile im Kalender */
.sonder-plus {
  display: flex; align-items: center; gap: 12px; width: 100%; margin: 0 0 14px; padding: 10px 14px;
  border: 1.5px dashed rgba(0, 122, 255, .45); border-radius: 14px; background: rgba(0, 122, 255, .06);
  color: #0060df; font: inherit; font-weight: 600; text-align: left; cursor: pointer;
}
.sonder-plus > span:last-child { display: flex; flex-direction: column; }
.sonder-plus small { font-weight: 400; color: var(--text-2); font-size: 13px; }
.sonder-termin { box-shadow: inset 4px 0 0 #007aff; }
.sonder-marke { color: #0060df; font-weight: 600; }

/* Auswertung Gewinn: kleine Überschriften über den Knopfreihen */
.filter-titel { margin: 10px 4px 4px; font-size: 13px; font-weight: 600; color: var(--text-2); }

/* Gewinn & Stundenlohn (30.11.2026): Kachel antippen = Rechenweg aufklappen */
.rechen-kachel > summary { list-style: none; cursor: pointer; }
.rechen-kachel > summary::-webkit-details-marker { display: none; }
.rechen-kachel > summary > span { display: flex; flex-direction: column; }
.rechen-hinweis { font-size: 12px; color: var(--bereich-text, var(--akzent)); }
.rechen-hinweis::after { content: " ▾"; }
.rechen-kachel[open] .rechen-hinweis::after { content: " ▴"; }
.rechen-kachel[open] > summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.rechenweg { margin-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; }

/* Fahrten als Pakete (30.11.2026): große getönte Karte = Eingabegrund, darin kleine weiße Karten je Fahrt */
.fahrt-paket { margin: 12px 0; padding: 12px; border-radius: 18px; background: var(--paket-flaeche, #e6f3f3); }
.paket-termine { --paket-flaeche: #fdecea; --paket-farbe: #b3261e; }
.paket-anhaenger { --paket-flaeche: #fff1e0; --paket-farbe: #a6561c; }
.paket-tour { --paket-flaeche: #e6f3f3; --paket-farbe: #005c5c; }
.paket-kopf { display: flex; align-items: center; gap: 12px; padding: 4px 4px 12px; }
.paket-kopf .text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.paket-kopf .haupt { font-size: 18px; font-weight: 700; color: var(--paket-farbe, var(--text)); line-height: 1.25; }
.paket-kopf .neben { color: var(--text-2); font-size: 13px; }
.paket-kopf .wert { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--paket-farbe, var(--text)); }
.paket-teile { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.paket-teil { position: relative; background: var(--karte); border-radius: 14px; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); overflow: hidden; }
.paket-teil > .zeile { padding-left: 44px; }
.paket-teil.ohne-nr > .zeile { padding-left: 16px; }
.paket-nr { position: absolute; left: 12px; top: 14px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--paket-farbe, #008080); color: #fff; font-size: 12px; font-weight: 700; z-index: 1; }

/* ---------- Fahrt anlegen in Schritten (30.11.2026): farbige Nummern, Grund, „+ Ziel“-Menü ---------- */
.grau { background: linear-gradient(180deg, #a8b2b6, #7d878b); }
.fahrt-schritt { margin-top: 18px; }
.schritt-kopf { display: flex; align-items: center; gap: 10px; margin: 0 4px 8px; font-size: 17px; font-weight: 700; }
.schritt-nr { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 14px; background: var(--schritt-farbe, var(--akzent)); }
.s-rot { --schritt-farbe: #e0453a; }
.s-blau { --schritt-farbe: #007aff; }
.s-gruen { --schritt-farbe: #2fa84f; }
.s-orange { --schritt-farbe: #f08c00; }
.s-lila { --schritt-farbe: #9b51c9; }
.s-tuerkis { --schritt-farbe: #008080; }
.fahrt-schritt > .gruppe { box-shadow: inset 4px 0 0 var(--schritt-farbe, var(--akzent)); }
.unter-label { display: block; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--text-2); }

.grund-wahl { display: flex; flex-direction: column; gap: 8px; }
.grund-knopf, .plus-option {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 14px;
  border: 2px solid transparent; background: var(--hintergrund, #f2f2f7); font: inherit; text-align: left; color: var(--text); cursor: pointer;
}
.grund-knopf .text, .plus-option .text { display: flex; flex-direction: column; min-width: 0; }
.grund-knopf small, .plus-option small { color: var(--text-2); font-size: 13px; }
.grund-knopf[aria-pressed="true"].gk-rot { border-color: #e0453a; background: #fdecea; }
.grund-knopf[aria-pressed="true"].gk-orange { border-color: #f08c00; background: #fff1e0; }
.grund-knopf[aria-pressed="true"].gk-tuerkis { border-color: #008080; background: #e3f3f3; }
.grund-knopf:active, .plus-option:active { transform: scale(.98); }

.plus-ziel {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 10px; padding: 12px;
  border: 2px dashed rgba(240, 140, 0, .6); border-radius: 14px; background: #fff8ee; color: #b25f00; font: inherit; font-weight: 700; cursor: pointer;
}
.plus-ziel.offen { border-style: solid; background: #fff; color: var(--text-2); }
.plus-menue { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.plus-option-rahmen .unter-eingabe { margin: 6px 0 4px 12px; }
.rueck-hinweis { margin-top: 8px; padding: 8px 12px; border-radius: 10px; background: #f4ecfa; color: #6b3fa0; }

#f-anlass { margin-top: 10px; }
