/* Atlas – Design B „Weich“: ruhig, warm, iOS-nah. Farben nur über Variablen; jede Karte setzt --kf (ihre Farbe). */
:root {
  --bg: #F6F5F2; --flaeche: #FFFFFF; --flaeche2: #FBFAF8; --text: #1D1C1A; --text2: #67635D; --text3: #8C877F;
  --linie: rgba(60, 50, 40, .10); --fuell: #EDEAE4; --akzent: #2F5FBF; --akzent-weich: rgba(47, 95, 191, .10);
  --gut: #1E7B48; --warn: #A34E0C; --schlecht: #B3261E;
  --schatten: 0 1px 2px rgba(0, 0, 0, .04), 0 6px 20px rgba(0, 0, 0, .04);
  --r: 20px; --r-klein: 14px;
  --schrift: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --leiste: rgba(246, 245, 242, .92);
  --k-flaeche: 13%; --k-text: 78%;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121110; --flaeche: #1E1D1B; --flaeche2: #252321; --text: #F3F1ED; --text2: #ABA69E; --text3: #7E7A73;
    --linie: rgba(255, 255, 255, .09); --fuell: #2C2A27; --akzent: #86A8F0; --akzent-weich: rgba(134, 168, 240, .14);
    --gut: #6CCB93; --warn: #F0A663; --schlecht: #FF8A80;
    --schatten: none; --leiste: rgba(18, 17, 16, .92);
    --k-flaeche: 22%; --k-text: 55%;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--schrift); font-size: 17px; line-height: 1.35; -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; }
a { color: var(--akzent); text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Gerüst: Seitenleiste (PC) und Leiste unten (iPhone) ---------- */
.geruest { display: flex; min-height: 100vh; }
.seite { flex: 1; min-width: 0; padding: max(env(safe-area-inset-top), 20px) 20px calc(110px + env(safe-area-inset-bottom)); max-width: 1120px; margin: 0 auto; }
.seitenleiste { display: none; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: space-around; align-items: center;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: var(--leiste); border-top: 1px solid var(--linie); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.tab { border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; min-width: 56px; min-height: 44px; justify-content: center; color: var(--text2); padding: 0; position: relative; cursor: pointer; }
.tab[aria-current="page"] { color: var(--akzent); }
.tab .tab-name { max-width: 74px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tab-plus { width: 48px; height: 48px; min-width: 48px; border-radius: 16px; background: var(--text); color: var(--bg); }
.tab .punkt { position: absolute; top: 2px; right: 12px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--schlecht); color: #fff; font-size: 10px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
@media (min-width: 900px) {
  .tabbar { display: none; }
  .seitenleiste { display: flex; flex-direction: column; gap: 2px; width: 248px; flex: none; padding: 28px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; border-right: 1px solid var(--linie); background: var(--flaeche2); }
  .seite { padding: 40px 40px 60px; }
  .sl-marke { font-size: 22px; font-weight: 700; padding: 4px 12px 18px; letter-spacing: -.3px; }
  .sl-link { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 12px; color: var(--text); font-size: 15px; min-height: 40px; border: 0; background: none; text-align: left; width: 100%; cursor: pointer; }
  .sl-link:hover { background: var(--fuell); }
  .sl-link[aria-current="page"] { background: var(--akzent-weich); color: var(--akzent); font-weight: 600; }
  .sl-trenner { font-size: 12px; color: var(--text2); font-weight: 600; letter-spacing: .4px; text-transform: uppercase; padding: 18px 12px 6px; }
  .sl-ikon { width: 26px; height: 26px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex: none; }
  .sl-plus { margin-top: 10px; }
}

/* ---------- Kopf ---------- */
.kopf { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 8px 4px 20px; }
.kopf-klein { font-size: 15px; color: var(--text2); }
.kopf h1 { margin: 2px 0 0; font-size: 32px; font-weight: 700; letter-spacing: -.6px; line-height: 1.15; }
.rundknopf { width: 44px; height: 44px; border-radius: 22px; border: 0; background: var(--flaeche); box-shadow: var(--schatten); display: flex; align-items: center; justify-content: center; color: var(--text); cursor: pointer; flex: none; }
.vorschau-hinweis { font-size: 13px; color: var(--text2); background: var(--fuell); border-radius: 12px; padding: 10px 14px; margin: 0 0 20px; }

/* ---------- Widgets und Abschnitte ---------- */
.widgets { display: flex; flex-direction: column; gap: 28px; }
@media (min-width: 900px) { .widgets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; align-items: start; } .w-breit { grid-column: 1 / -1; } }
.abschnitt { display: flex; flex-direction: column; gap: 6px; }
.abschnitt-kopf { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px 6px; }
.abschnitt-kopf h2 { margin: 0; font-size: 17px; font-weight: 600; }
.abschnitt-kopf a, .textknopf { font-size: 15px; color: var(--akzent); border: 0; background: none; padding: 0; cursor: pointer; }
.flaeche { background: var(--flaeche); border-radius: var(--r); box-shadow: var(--schatten); }

/* Held: der nächste Termin groß */
.held { padding: 20px; display: flex; flex-direction: column; gap: 6px; color: inherit; }
.held-klein { font-size: 13px; font-weight: 600; color: var(--text2); letter-spacing: .3px; text-transform: uppercase; }
.held-titel { font-size: 22px; font-weight: 600; letter-spacing: -.3px; }
.held-text { font-size: 15px; color: var(--text2); }

/* Zeilen (Listen ohne harte Linien) */
.liste { display: flex; flex-direction: column; }
.liste.flaeche { padding: 4px 0; }
.zeile { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 10px 16px; color: var(--text); text-align: left; width: 100%; border: 0; background: none; cursor: pointer; }
.liste:not(.flaeche) .zeile { padding: 10px 4px; }
.zeile + .zeile { border-top: 1px solid var(--linie); }
.liste:not(.flaeche) .zeile + .zeile { border-top: 0; }
.zeile-haupt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.zeile-titel { font-size: 17px; }
.zeile-text { font-size: 14px; color: var(--text2); overflow: hidden; text-overflow: ellipsis; }
.zeile-rechts { font-size: 15px; color: var(--text2); flex: none; text-align: right; }
.zeile-zeit { width: 50px; flex: none; font-size: 15px; font-weight: 600; color: var(--text); }
.zeile-zeit small { display: block; font-weight: 400; color: var(--text2); font-size: 12px; }
.haken { width: 26px; height: 26px; flex: none; border-radius: 13px; border: 2px solid var(--text3); background: none; padding: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.haken:hover { border-color: var(--gut); }
.haken.erledigt { background: var(--gut); border-color: var(--gut); color: #fff; }
.k-punkt { width: 10px; height: 10px; border-radius: 5px; flex: none; background: var(--kf); }
.chevron { color: var(--text3); flex: none; }
.balken { height: 6px; border-radius: 3px; background: var(--fuell); overflow: hidden; margin-top: 6px; }
.balken > i { display: block; height: 100%; border-radius: 3px; background: var(--kf, var(--akzent)); }

/* Karten-Kacheln: sanft eingefärbt in der Farbe der Karte */
.kacheln { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 600px) { .kacheln { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.kachel { border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 4px; min-height: 92px; color: var(--text); border: 0; text-align: left; cursor: pointer;
  background: color-mix(in srgb, var(--kf) var(--k-flaeche), var(--flaeche)); }
.kachel-kopf { display: flex; align-items: center; gap: 8px; }
.kachel-name { font-size: 15px; font-weight: 600; color: color-mix(in srgb, var(--kf) var(--k-text), var(--text)); }
.kachel-wert { font-size: 15px; }
.kachel.geplant { background: var(--flaeche2); border: 1px dashed var(--linie); cursor: default; }
.kachel.geplant .kachel-name { color: var(--text2); }
.kachel.geplant .kachel-wert { color: var(--text2); font-size: 13px; }
.k-ikon { color: color-mix(in srgb, var(--kf) var(--k-text), var(--text)); display: flex; }
.marke { font-size: 11px; font-weight: 600; letter-spacing: .3px; color: var(--text2); background: var(--fuell); border-radius: 6px; padding: 2px 6px; }

/* Hinweise als Chips */
.chips { display: flex; flex-direction: column; gap: 10px; }
.chip { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-klein); color: var(--text); background: color-mix(in srgb, var(--kf) var(--k-flaeche), var(--flaeche)); }
.chip b { display: block; font-weight: 600; font-size: 15px; }
.chip small { display: block; font-size: 14px; color: var(--text2); margin-top: 2px; }

/* Leerzustand */
.leer { padding: 22px 20px; text-align: center; color: var(--text2); font-size: 15px; }

/* Suche */
.suchfeld { display: flex; align-items: center; gap: 10px; background: var(--flaeche); border-radius: 14px; padding: 0 14px; height: 48px; box-shadow: var(--schatten); margin-bottom: 22px; color: var(--text2); }
.suchfeld input { flex: 1; border: 0; background: none; font: inherit; color: var(--text); height: 100%; outline: none; min-width: 0; }

/* Blatt (unten auf dem iPhone, mittig am PC) */
.blatt-hg { position: fixed; inset: 0; background: rgba(0, 0, 0, .32); z-index: 40; display: flex; align-items: flex-end; justify-content: center; }
.blatt { background: var(--bg); width: 100%; max-width: 560px; border-radius: 24px 24px 0 0; padding: 10px 20px calc(24px + env(safe-area-inset-bottom)); max-height: 88vh; overflow-y: auto; }
@media (min-width: 900px) { .blatt-hg { align-items: center; } .blatt { border-radius: 24px; padding-bottom: 24px; } }
.blatt-griff { width: 40px; height: 5px; border-radius: 3px; background: var(--fuell); margin: 0 auto 14px; }
.blatt-kopf { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.blatt-kopf h2 { margin: 0; font-size: 20px; }
.raster-plus { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.plus-knopf { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 6px; border-radius: 16px; color: var(--text); font-size: 14px; text-align: center;
  background: color-mix(in srgb, var(--kf) var(--k-flaeche), var(--flaeche)); }

/* Anpassen */
.anp-zeile { display: flex; align-items: center; gap: 12px; padding: 8px 16px; min-height: 56px; }
.anp-zeile + .anp-zeile { border-top: 1px solid var(--linie); }
.anp-zeile { position: relative; background: var(--flaeche); transition: transform .15s ease; }
.anp-zeile.zieht { transition: none; z-index: 5; box-shadow: 0 8px 24px rgba(0,0,0,.18); border-radius: 12px; }
.anp-griff { border: 0; background: none; color: var(--text3, #8a8a90); padding: 8px 4px 8px 0; margin-left: -6px; cursor: grab; touch-action: none; display: flex; }
.anp-zeile.zieht .anp-griff { cursor: grabbing; }
.anp-zeile .zeile-haupt { flex: 1; }
.schalter { appearance: none; -webkit-appearance: none; width: 51px; height: 31px; border-radius: 16px; background: var(--fuell); position: relative; cursor: pointer; flex: none; margin: 0; transition: background .2s; }
.schalter::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 14px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .2); transition: transform .2s; }
.schalter:checked { background: var(--gut); }
.schalter:checked::after { transform: translateX(20px); }
.pfeil { width: 36px; height: 36px; border-radius: 10px; border: 0; background: var(--fuell); color: var(--text); display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.pfeil:disabled { opacity: .35; cursor: default; }
.knopf { border: 0; border-radius: 14px; background: var(--fuell); color: var(--text); padding: 12px 18px; font-size: 16px; cursor: pointer; min-height: 44px; }
.knopf.haupt { background: var(--text); color: var(--bg); }

/* Mitteilungen */
.m-ungelesen .zeile-titel { font-weight: 600; }
.m-punkt { width: 9px; height: 9px; border-radius: 5px; background: var(--akzent); flex: none; }

.toast { position: fixed; left: 50%; bottom: calc(100px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 22px; font-size: 15px; z-index: 60; box-shadow: 0 6px 24px rgba(0, 0, 0, .18); }
@media (min-width: 900px) { .toast { bottom: 32px; } }
.lade { color: var(--text2); padding: 40px 4px; }

/* ---------- Anmelden ---------- */
.anmelden { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 20px; }
.anmelden-form { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 12px; text-align: center; }
.anmelden-icon { margin: 0 auto 4px; border-radius: 18px; box-shadow: var(--schatten); }
.anmelden h1 { margin: 0; font-size: 32px; letter-spacing: -.6px; }
.anmelden-hint { margin: 0 0 12px; color: var(--text2); font-size: 15px; }
.anmelden-fehler { color: var(--schlecht); font-size: 15px; min-height: 20px; }

/* ---------- Formulare ---------- */
.feld { width: 100%; height: 50px; border: 0; border-radius: 14px; background: var(--flaeche); box-shadow: var(--schatten); padding: 0 16px; font: inherit; color: var(--text); }
.feld:focus { outline: 2px solid var(--akzent); outline-offset: 0; }
.form-zeile { display: flex; align-items: center; gap: 12px; padding: 8px 16px; min-height: 52px; }
.form-zeile + .form-zeile { border-top: 1px solid var(--linie); }
.form-zeile > label, .form-zeile > .zeile-haupt { flex: 1; min-width: 0; }
.form-zeile small { display: block; font-size: 13px; color: var(--text2); margin-top: 2px; }
.form-zeile input:not(.schalter):not([type=color]), .form-zeile select { flex: 1.3; min-width: 0; border: 0; background: var(--fuell); border-radius: 10px; height: 40px; padding: 0 12px; font: inherit; font-size: 16px; color: var(--text); }
.form-zeile input[type=color] { width: 52px; height: 36px; border: 0; background: none; padding: 0; }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.knopf.klein { padding: 8px 14px; min-height: 36px; font-size: 15px; }
.knopf.gefahr { color: var(--schlecht); }
.knopf:disabled { opacity: .5; cursor: default; }
.hinweis { font-size: 13px; color: var(--text2); margin: 8px 4px 0; line-height: 1.4; }
.meldung { font-size: 15px; margin: 10px 4px 0; min-height: 20px; }
.meldung.fehler { color: var(--schlecht); }
.pille { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 8px; background: var(--fuell); color: var(--text2); white-space: nowrap; }
.pille.gut { background: color-mix(in srgb, var(--gut) 16%, var(--flaeche)); color: var(--gut); }
.pille.neu { background: var(--akzent-weich); color: var(--akzent); }
.pille.aus { background: color-mix(in srgb, var(--schlecht) 12%, var(--flaeche)); color: var(--schlecht); }
.segment { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 22px; }
.segment button { border: 0; border-radius: 18px; background: var(--flaeche); color: var(--text); font-size: 15px; padding: 9px 16px; cursor: pointer; min-height: 40px; }
.segment button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.protokoll { background: var(--flaeche); border-radius: var(--r-klein); padding: 12px 14px; font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; max-height: 320px; overflow-y: auto; margin: 0; color: var(--text); }
/* Verwaltung → Diagnose */
.diag-knoepfe { margin: 0 0 4px; }
.diag-warn { margin-top: 16px; padding: 14px 16px; border-radius: var(--r); background: color-mix(in srgb, var(--warn) 14%, var(--flaeche)); border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent); color: var(--text); font-size: 15px; line-height: 1.45; }
.diag-warn b { color: var(--warn); }
.diag-warn ul { margin: 6px 0 0; padding-left: 20px; }
.diag-warn li + li { margin-top: 4px; }
.diag-ok { margin-top: 16px; font-size: 15px; color: var(--text2); display: flex; align-items: center; gap: 8px; }
.diag-karten { display: flex; flex-wrap: wrap; gap: 8px 14px; padding: 14px 16px; }
.diag-karte { font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
.diag-filter { margin: 0 0 8px; }
.diag-rot { color: var(--schlecht); }
.diag-log { max-height: 420px; word-break: break-word; }
.details { background: var(--flaeche); border-radius: var(--r-klein); padding: 4px 16px; }
.details + .details { margin-top: 8px; }
.details summary { cursor: pointer; padding: 10px 0; list-style: none; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.details ul { margin: 0 0 12px; padding-left: 20px; font-size: 14px; color: var(--text2); }
.profil { width: 44px; height: 44px; border-radius: 22px; background: var(--akzent-weich); color: var(--akzent); font-weight: 600; font-size: 16px; display: flex; align-items: center; justify-content: center; flex: none; }
.kopf-knoepfe { display: flex; gap: 10px; }
.zurueck { display: inline-flex; align-items: center; gap: 4px; font-size: 17px; min-height: 44px; margin: -8px 0 4px; }

/* ---------- Kern: Verlauf, Freigaben, Gast-Seite ---------- */
.vl-zeit { font-size: 13px; color: var(--text2); flex: none; text-align: right; min-width: 3.5em; }
.gast { min-height: 100vh; }
.gast-seite { max-width: 680px; margin: 0 auto; padding: max(env(safe-area-inset-top), 28px) 20px 40px; }
.gast-inhalt { padding: 22px 22px 18px; }
.gast-inhalt h1 { margin: 0 0 6px; font-size: 28px; letter-spacing: -.5px; }
.gast-inhalt h2 { font-size: 18px; margin: 22px 0 8px; }
.gast-inhalt ul { padding-left: 1.2em; line-height: 1.6; }
.gast-inhalt ul.chk { list-style: none; padding-left: 0; }
.gast-inhalt ul.chk li { display: flex; gap: 10px; align-items: flex-start; }
.gast-inhalt ul.chk li.done span { text-decoration: line-through; color: var(--text3); }
.gast-meldung { padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--gut) 14%, var(--flaeche)); margin: 12px 0 0; }
.gast-meldung.fehler { background: color-mix(in srgb, var(--schlecht) 12%, var(--flaeche)); }
.gast-form { display: grid; gap: 10px; margin-top: 8px; }
.gast-form label { display: grid; gap: 4px; font-size: 14px; color: var(--text2); }
.gast-form input, .gast-form select { font: inherit; font-size: 16px; color: var(--text); padding: 10px 12px; border-radius: 10px; border: 1px solid var(--linie); background: var(--flaeche2); }
.gast-form button { font: inherit; font-weight: 600; padding: 12px; border: 0; border-radius: 12px; background: var(--akzent); color: #fff; margin-top: 4px; cursor: pointer; }
.g-cb { width: 18px; height: 18px; border-radius: 5px; border: 2px solid var(--text3); flex: none; margin-top: 3px; }
.g-cb.an { background: var(--gut); border-color: var(--gut); }
.g-klein { color: var(--text2); font-size: 15px; margin: 0 0 8px; }
.g-foto { width: 100%; border-radius: 16px; margin-bottom: 16px; max-height: 420px; object-fit: cover; }

/* ---------- Verknüpfungen („Gehört zu“) ---------- */
.vk-box { background: var(--flaeche); border-radius: var(--r-klein); box-shadow: var(--schatten); padding: 12px 16px; margin: 0 0 18px; }
.vk-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; font-size: 15px; }
.vk-liste { display: flex; flex-wrap: wrap; gap: 8px; }
.vk-chip { display: inline-flex; align-items: center; gap: 2px; border-radius: 12px; background: color-mix(in srgb, var(--kf) var(--k-flaeche), var(--flaeche)); font-size: 14px; max-width: 100%; }
.vk-chip > a, .vk-chip > span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 4px 7px 11px; color: var(--text); min-width: 0; }
.vk-chip i { width: 8px; height: 8px; border-radius: 4px; background: var(--kf); flex: none; }
.vk-chip small { color: var(--text2); font-size: 12.5px; white-space: nowrap; }
.vk-chip.weg { opacity: .6; }
.vk-chip button { border: 0; background: none; color: var(--text2); font-size: 18px; line-height: 1; padding: 6px 10px 6px 6px; cursor: pointer; }
.vk-leer { margin: 0; color: var(--text2); font-size: 14px; }

/* Ordner & Vorschläge (#auslesen) */
.as-liste { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.as-vs { padding: 14px 16px; border-left: 4px solid var(--kf, var(--akzent)); }
.as-kopf { display: flex; gap: 10px; align-items: flex-start; }
.as-kopf .k-punkt { margin-top: 6px; }
.as-text { margin: 8px 0 0; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.as-doc { margin: 6px 0 0; font-size: 13px; color: var(--text2); overflow-wrap: anywhere; }
.as-doc a { color: inherit; }
.as-fehler { margin: 6px 0 0; font-size: 13px; color: var(--schlecht); }
.as-unsicher { color: var(--warn, #B7791F); font-weight: 600; }
.as-vs .form-zeile { padding: 8px 0 0; min-height: 0; }
.as-vs .knopfreihe { margin-top: 10px; }
@media (max-width: 420px) { .as-liste { grid-template-columns: 1fr; } }


/* Springen: Farbpunkte des Paars auf dem Knopf, Blatt mit den zwei Karten */
.tab-spr { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; touch-action: manipulation; }
.tab-spr.gedrueckt { transform: scale(.92); transition: transform .12s; }
.spr-punkte { position: absolute; top: 1px; left: 50%; margin-left: 10px; display: flex; gap: 2px; }
.spr-punkte i { width: 8px; height: 8px; border-radius: 4px; background: var(--kf); box-shadow: 0 0 0 1.5px var(--bg); font-style: normal; font-size: 0; }
.spr-punkte i.leer { background: var(--fuell); }
.spr-punkte i.pin { box-shadow: 0 0 0 1.5px var(--bg), 0 0 0 3px var(--kf); }
.sl-spr { display: flex; align-items: center; gap: 4px; }
.sl-spr .sl-springen { flex: 1; min-width: 0; }
.sl-paar { border: 0; background: var(--fuell); border-radius: 10px; width: 40px; height: 32px; position: relative; cursor: pointer; flex: none; }
.sl-paar .spr-punkte { position: static; margin: 0; justify-content: center; }
.spr-paar { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: stretch; }
.spr-pfeil { align-self: center; color: var(--text3); }
.spr-kachel { background: color-mix(in srgb, var(--kf, var(--fuell)) var(--k-flaeche), var(--flaeche)); border-radius: var(--r-klein); padding: 14px 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0; box-shadow: var(--schatten); }
.spr-kachel.leer { background: var(--flaeche2); box-shadow: none; border: 1.5px dashed var(--linie); }
.spr-kachel .k-ikon { margin-bottom: 4px; }
.spr-k-name { font-weight: 650; font-size: 17px; color: color-mix(in srgb, var(--kf, var(--text)) var(--k-text), var(--text)); overflow-wrap: anywhere; }
.spr-k-ort { font-size: 13px; color: var(--text2); }
.spr-kachel .knopfreihe { gap: 6px; margin-top: 8px; }
.spr-kachel .knopf.klein { padding: 6px 10px; min-height: 32px; font-size: 14px; }
.knopf.an { background: var(--text); color: var(--bg); }
@media (max-width: 380px) { .spr-paar { grid-template-columns: 1fr; } .spr-pfeil { justify-self: center; transform: rotate(90deg); } }

/* Bereich „Dokumente“ in den Karten (public/auslesen.js) */
.ab-box { margin: 0 0 18px; }
.ab-box .abschnitt { margin-top: 18px; }
.ab-leer { padding: 16px; }
.ab-text { margin: 0; color: var(--text2); font-size: 15px; line-height: 1.4; }
.ab-leer .liste .zeile { width: 100%; text-align: left; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
.ab-kopf { padding: 6px 12px 12px; }
.ab-kopf .zeile { padding-left: 4px; padding-right: 4px; }
.ab-b-ikon { color: var(--text2); display: flex; flex: none; }
.ab-banner { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 0 0 16px; border-radius: var(--r-klein); background: color-mix(in srgb, var(--akzent) 10%, var(--flaeche)); box-shadow: var(--schatten); }
.ab-banner .ab-b-ikon { color: var(--akzent); }
.ab-banner.leise { background: var(--flaeche2); box-shadow: none; }
.ab-banner .zeile-titel { font-weight: 600; }
.ab-name { color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.ab-typ { flex: none; min-width: 34px; height: 22px; padding: 0 4px; border-radius: 6px; background: var(--fuell); color: var(--text2); font-size: 10px; font-weight: 700; display: grid; place-items: center; letter-spacing: .03em; }
.ab-typ.pdf { background: color-mix(in srgb, #D9480F 14%, var(--flaeche)); color: #C2410C; }
.ab-durch { display: grid; grid-template-columns: 1fr; gap: 14px; }
.blatt.breit { max-width: 980px; }
@media (min-width: 900px) { .blatt.breit .ab-durch { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; } .blatt.breit .ab-vorschau img { max-height: 70vh; } }
.ab-vorschau { display: block; border-radius: var(--r-klein); overflow: hidden; background: var(--fuell); box-shadow: var(--schatten); }
.ab-vorschau img { display: block; width: 100%; max-height: 52vh; object-fit: contain; background: #fff; }
.ab-vs { background: var(--flaeche); border-radius: var(--r-klein); padding: 12px 14px; box-shadow: var(--schatten); margin-bottom: 10px; }
.ab-vs .knopfreihe { margin-top: 8px; gap: 6px; }
.ab-vs .form-zeile { min-height: 0; }
.ab-d-knoepfe { position: sticky; bottom: 0; padding: 10px 0 4px; background: var(--bg); margin-top: 12px; }
.vk-hoch { cursor: pointer; }
.pille.warn { background: color-mix(in srgb, var(--warn) 16%, var(--flaeche)); color: var(--warn); }
.ab-b-knoepfe { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ab-arten { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px 14px; padding: 2px 20px 4px; }
.ab-arten::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .ab-arten { flex-wrap: wrap; margin: 0 0 14px; padding: 0; } }
.ab-art { flex: none; border: 0; border-radius: 16px; padding: 7px 12px; background: var(--flaeche); box-shadow: var(--schatten); font: inherit; font-size: 14px; color: var(--text); cursor: pointer; white-space: nowrap; }
.ab-art b { font-weight: 600; color: var(--text2); margin-left: 2px; }
.ab-art.an { background: var(--text); color: var(--bg); }
.ab-art.an b { color: inherit; opacity: .7; }
.ab-kat { border: 0; background: var(--fuell); color: var(--text2); border-radius: 6px; padding: 1px 6px; font: inherit; font-size: 12px; cursor: pointer; margin-right: 2px; }
.ab-fund { margin: 6px 0 0; font-size: 12px; color: var(--text3); white-space: pre-wrap; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.ab-vorschau { max-height: 70vh; overflow-y: auto; }
.ab-vorschau img + img, .ab-vorschau img + .ab-seite-nr { margin-top: 8px; }
.ab-seite-nr { display: block; font-size: 12px; color: var(--text2); padding: 6px 8px 2px; background: var(--fuell); }
.ab-v-knoepfe { margin-top: 8px; gap: 6px; }
.ab-text-roh { white-space: pre-wrap; font-size: 12px; max-height: 40vh; overflow: auto; background: var(--flaeche2); border-radius: 10px; padding: 10px; margin: 8px 0 0; }
.ab-liste-pr { display: grid; gap: 8px; }
.ab-lz { background: var(--flaeche); border-radius: var(--r-klein); padding: 10px 12px; box-shadow: var(--schatten); }
.ab-lz.warn { box-shadow: inset 3px 0 0 var(--warn), var(--schatten); }
.ab-lz-kopf { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.ab-lz-kopf input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--text); }
.ab-lz-kopf .zeile-titel { font-size: 14px; overflow-wrap: anywhere; }
.ab-w { color: var(--warn); font-weight: 600; }
.ab-lfelder { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin: 8px 0 0 30px; }
.ab-lf { display: flex; flex-direction: column; gap: 2px; font-size: 11px; color: var(--text2); flex: 1 1 110px; min-width: 0; }
.ab-lf input { border: 0; background: var(--fuell); border-radius: 8px; height: 34px; padding: 0 8px; font: inherit; font-size: 15px; color: var(--text); min-width: 0; width: 100%; }
.ab-banner { flex-wrap: wrap; }
.ab-banner .zeile-haupt { flex: 1 1 170px; min-width: 0; }
.ab-b-knoepfe { margin-left: auto; }

/* Datum eintippen (datum.js): Textfeld TT.MM.JJJJ mit Kalender-Symbol rechts */
input[data-datum] { min-width: 8.6em; font-variant-numeric: tabular-nums; padding-right: 30px !important; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238C877F' stroke-width='1.8' stroke-linecap='round'%3E%3Crect x='3.5' y='5' width='17' height='15' rx='2.5'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%3E%3C/svg%3E") !important; background-repeat: no-repeat !important; background-position: right 6px center !important; background-size: 18px 18px !important; }
input[data-datum].datum-falsch { color: var(--schlecht) !important; box-shadow: inset 0 -2px 0 var(--schlecht); }
