/* SocioLabs Kundenportal – eigene Schriften, keine Fremdquellen.
   Motiv: das rote Siegel (Punkt der Marke) – es „versiegelt“ Schritte, Bestätigung und Vertrauen. */
@font-face { font-family: "Bricolage"; src: url("bricolage-grotesque-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("manrope-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Manrope"; src: url("manrope-latin-ext.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Farben ---------- */
:root {
  --rot: #e3101b;
  --rot-hell: #ff3b45;
  --rot-tief: #b5000b;
  --gruen: #1f9d5c;
  --radius: 24px;
  --radius-klein: 14px;
}
body.kunde {
  --grund: #f5efe6;
  --grund-2: #efe6da;
  --flaeche: #fffdf9;
  --flaeche-2: #fbf6ef;
  --linie: rgba(40, 24, 16, 0.10);
  --linie-stark: rgba(40, 24, 16, 0.22);
  --text: #1c1512;
  --text-leise: rgba(28, 21, 18, 0.62);
  --eingabe: #fffdf9;
  --schatten: 0 1px 0 rgba(255,255,255,.8) inset, 0 30px 60px -36px rgba(80, 30, 10, 0.35), 0 2px 6px rgba(80, 30, 10, 0.05);
  color-scheme: light;
}
body.verwaltung {
  --grund: #0a0909;
  --grund-2: #0f0d0d;
  --flaeche: #151312;
  --flaeche-2: #1b1817;
  --linie: rgba(244, 240, 234, 0.09);
  --linie-stark: rgba(244, 240, 234, 0.2);
  --text: #f4f0ea;
  --text-leise: rgba(244, 240, 234, 0.6);
  --eingabe: #0d0c0c;
  --schatten: 0 30px 80px -40px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

/* ---------- Grundlagen ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--grund); color: var(--text);
  font: 400 16px/1.6 "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
body.kunde { background: radial-gradient(120% 70% at 100% 0%, #f9e3d6 0%, transparent 55%), linear-gradient(180deg, var(--grund) 0%, var(--grund-2) 100%) fixed; }
.licht { position: fixed; pointer-events: none; z-index: 0; }
body.verwaltung .licht { inset: -25vh -15vw auto auto; width: 60vw; height: 60vh; background: radial-gradient(closest-side, rgba(227, 16, 27, 0.16), transparent); }
body.kunde .licht { inset: auto auto -30vh -20vw; width: 70vw; height: 60vh; background: radial-gradient(closest-side, rgba(227, 16, 27, 0.08), transparent); }

.kopf, .haupt, .fuss { position: relative; z-index: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.kopf { display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap; justify-content: space-between; padding-top: 24px; padding-bottom: 12px; }
.marke { color: var(--text); text-decoration: none; font: 500 21px/1 "Bricolage", sans-serif; letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 1px; }
.marke b { font-weight: 800; }
.marke-punkt { width: 11px; height: 11px; border-radius: 50%; background: var(--rot); margin-right: 10px; box-shadow: 0 0 0 4px rgba(227, 16, 27, 0.14), 0 0 18px rgba(227, 16, 27, 0.6); }
.marke-zusatz { font: 700 11px/1 "Manrope", sans-serif; text-transform: uppercase; letter-spacing: 0.16em; color: var(--text-leise); margin-left: 14px; padding: 6px 10px; border: 1px solid var(--linie-stark); border-radius: 99px; }
.vertrauen-pille { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-leise); padding: 8px 14px; border-radius: 99px; background: var(--flaeche); border: 1px solid var(--linie); }
.vertrauen-pille svg { color: var(--gruen); }
.haupt { flex: 1; padding-top: 20px; padding-bottom: 56px; }
.fuss { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding-top: 24px; padding-bottom: 32px; border-top: 1px solid var(--linie); color: var(--text-leise); font-size: 13px; }
.fuss nav { display: flex; gap: 20px; }
.fuss a { color: var(--text-leise); }
.fuss a:hover { color: var(--text); }

h1, h2, h3 { font-family: "Bricolage", sans-serif; letter-spacing: -0.03em; line-height: 1.08; margin: 0 0 12px; }
h1 { font-size: clamp(32px, 5.2vw, 58px); font-weight: 700; }
body.verwaltung h1 { font-size: clamp(28px, 3.6vw, 40px); }
h2 { font-size: 21px; font-weight: 650; }
h3 { font-size: 17px; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0 0 14px; }
a { color: inherit; }
.ueber { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.16em; color: var(--rot); margin-bottom: 14px; }
body.verwaltung .ueber { color: var(--rot-hell); }
.ueber a { color: inherit; text-decoration: none; }
.gross { font-size: 18px; color: var(--text-leise); max-width: 640px; }
.klein { font-size: 13px; color: var(--text-leise); }
.optional { color: var(--text-leise); font-weight: 500; }
.unsichtbar { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.einleitung { margin: 18px 0 30px; max-width: 760px; }
.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: clamp(20px, 3.6vw, 36px); margin-bottom: 20px; box-shadow: var(--schatten); }
body.verwaltung .karte { background: linear-gradient(180deg, var(--flaeche-2), var(--flaeche)); }
.schmal { max-width: 560px; }
.mitte { margin-left: auto; margin-right: auto; margin-top: 6vh; }

/* ---------- Formulare ---------- */
.feld { display: grid; gap: 7px; }
label, .label { font-weight: 700; font-size: 14px; }
input[type=text], input:not([type]), input[type=password], input[type=number], input[type=email], input[type=tel], select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--eingabe);
  border: 1px solid var(--linie-stark); border-radius: var(--radius-klein); padding: 13px 16px; min-height: 50px;
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 130px; line-height: 1.55; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-leise) 50%), linear-gradient(135deg, var(--text-leise) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--rot); box-shadow: 0 0 0 4px rgba(227, 16, 27, 0.15); }
::placeholder { color: var(--text-leise); opacity: .75; }

.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 15px/1 "Manrope", sans-serif;
  color: #fff; background: var(--rot); border: 1px solid var(--rot); border-radius: 99px; padding: 14px 22px; min-height: 46px;
  cursor: pointer; text-decoration: none; transition: transform .15s, background .15s, box-shadow .15s, border-color .15s; white-space: nowrap;
}
.knopf:hover { background: var(--rot-hell); border-color: var(--rot-hell); box-shadow: 0 12px 30px -12px rgba(227, 16, 27, 0.7); }
.knopf:active { transform: translateY(1px); }
.knopf:focus-visible, .wahl:focus-within, .segment:focus-within { outline: 3px solid rgba(227, 16, 27, 0.45); outline-offset: 2px; }
.knopf[disabled] { opacity: .6; cursor: progress; }
.knopf.gross { padding: 18px 30px; font-size: 16px; min-height: 56px; }
.knopf.leise { background: transparent; border-color: var(--linie-stark); color: var(--text); }
.knopf.leise:hover { border-color: var(--text); box-shadow: none; background: transparent; }
.knopf.whatsapp { background: #1f9d5c; border-color: #1f9d5c; }
.knopf.whatsapp:hover { background: #24b56a; border-color: #24b56a; box-shadow: 0 12px 30px -12px rgba(31, 157, 92, .7); }
.klein-knopf { padding: 9px 14px; font-size: 13px; min-height: 36px; }
.breit-knopf { width: 100%; }

.meldung { border-radius: var(--radius-klein); padding: 14px 18px; margin-bottom: 18px; font-size: 15px; }
.meldung ul { margin: 0; padding-left: 18px; }
.meldung.fehler { background: rgba(227, 16, 27, 0.09); border: 1px solid rgba(227, 16, 27, 0.45); }
.meldung.ok { background: rgba(31, 157, 92, 0.10); border: 1px solid rgba(31, 157, 92, 0.45); }

/* ---------- Kundenseite ---------- */
.kunde-raster { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.seitenleiste { position: sticky; top: 20px; display: grid; gap: 16px; }
.seitenleiste .karte { margin: 0; }
.leise-karte { background: var(--flaeche-2); box-shadow: none; padding: 24px; }
.formular { display: grid; gap: 10px; margin: 0; }
.schritt { border: 0; margin: 0; padding: 22px 0; border-top: 1px solid var(--linie); display: grid; gap: 16px; min-width: 0; }
.schritt:first-of-type { border-top: 0; padding-top: 0; }
.schritt legend, .schritt summary { font: 650 20px/1.2 "Bricolage", sans-serif; letter-spacing: -0.02em; display: flex; align-items: center; gap: 12px; padding: 0; margin-bottom: 16px; }
.schritt summary { cursor: pointer; list-style: none; margin-bottom: 0; flex-wrap: wrap; }
.schritt summary::-webkit-details-marker { display: none; }
.schritt summary::after { content: ""; width: 9px; height: 9px; border: solid var(--text-leise); border-width: 0 2px 2px 0; transform: rotate(45deg); margin-left: auto; transition: transform .2s; }
.schritt[open] summary::after { transform: rotate(-135deg); }
.schritt[open] summary { margin-bottom: 4px; }
.schritt summary .optional { font: 500 14px/1.2 "Manrope", sans-serif; letter-spacing: 0; }
.nr { flex: none; width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-content: center; background: var(--rot); color: #fff; font: 800 14px/1 "Manrope", sans-serif; box-shadow: 0 0 0 4px rgba(227, 16, 27, 0.12); }

.wahlen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wahl { position: relative; display: grid; gap: 2px; padding: 16px 18px 16px 48px; border: 1.5px solid var(--linie-stark); border-radius: 16px; cursor: pointer; background: var(--eingabe); transition: border-color .15s, background .15s, box-shadow .15s; }
.wahl input { position: absolute; opacity: 0; pointer-events: none; }
.wahl::before { content: ""; position: absolute; left: 18px; top: 19px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--linie-stark); background: var(--flaeche); transition: border .15s, background .15s; }
.wahl.gewaehlt, .wahl:has(input:checked) { border-color: var(--rot); background: rgba(227, 16, 27, 0.045); box-shadow: 0 10px 24px -18px rgba(227, 16, 27, .8); }
.wahl.gewaehlt::before, .wahl:has(input:checked)::before { border: 5px solid var(--rot); background: #fff; }
.wahl-titel { font-weight: 700; font-size: 15px; }
.wahl-info { font-size: 13px; color: var(--text-leise); line-height: 1.4; }

.ablagezone { position: relative; display: grid; gap: 6px; justify-items: center; text-align: center; cursor: pointer; padding: 34px 20px; border: 2px dashed var(--linie-stark); border-radius: 20px; background: var(--flaeche-2); transition: border-color .15s, background .15s, transform .15s; }
.ablagezone:hover, .ablagezone.aktiv { border-color: var(--rot); background: rgba(227, 16, 27, 0.05); }
.ablagezone.aktiv { transform: scale(1.01); }
.ablagezone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.ablagezone-symbol { width: 54px; height: 54px; border-radius: 50%; display: grid; place-content: center; background: var(--flaeche); color: var(--rot); border: 1px solid var(--linie); margin-bottom: 4px; }
.ablagezone-titel { font-weight: 700; font-size: 16px; }
.ablagezone-info { font-size: 13px; color: var(--text-leise); font-weight: 500; }

.vorschau { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.vorschau:empty { display: none; }
.vorschau li { position: relative; border: 1px solid var(--linie); border-radius: 14px; overflow: hidden; background: var(--flaeche); font-size: 12px; }
.vorschau .bild { aspect-ratio: 4 / 3; background: var(--flaeche-2); display: grid; place-content: center; font: 800 13px/1 "Manrope", sans-serif; letter-spacing: .08em; color: var(--rot); }
.vorschau img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vorschau .info { padding: 8px 10px; display: grid; gap: 1px; }
.vorschau .info b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vorschau .info span { color: var(--text-leise); }
.vorschau li.fehlerhaft { border-color: var(--rot); }
.vorschau li.fehlerhaft .info span { color: var(--rot); font-weight: 700; }
.vorschau .entfernen { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(20, 12, 10, .72); color: #fff; font: 700 16px/1 "Manrope", sans-serif; cursor: pointer; display: grid; place-content: center; }
.vorschau .entfernen:hover { background: var(--rot); }
.dateihinweis { margin: 0; font-size: 14px; color: var(--rot); font-weight: 600; }
.dateihinweis:empty { display: none; }

.haekchen { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-weight: 500; font-size: 15px; cursor: pointer; }
.haekchen input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--rot); }
.felder-raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.felder-raster .breit { grid-column: 1 / -1; }
.hinweis { font-size: 14px; padding: 14px 18px; border-left: 3px solid var(--rot); background: rgba(227, 16, 27, 0.06); border-radius: 0 12px 12px 0; margin-top: 8px; }
.absenden { display: grid; gap: 12px; margin-top: 10px; }
.absenden .knopf { justify-self: start; }
.fortschritt { display: grid; gap: 6px; }
.fortschritt[hidden] { display: none; }
.fortschritt-balken { height: 10px; border-radius: 99px; background: var(--grund-2); overflow: hidden; }
.fortschritt-balken span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--rot), var(--rot-hell)); border-radius: inherit; transition: width .2s; }
.fortschritt-text { margin: 0; font-size: 14px; color: var(--text-leise); font-variant-numeric: tabular-nums; }

.liste-haken, .liste-schloss { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.liste-haken li, .liste-schloss li { position: relative; padding-left: 28px; line-height: 1.45; }
.liste-haken li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: rgba(227, 16, 27, .12); }
.liste-haken li::after { content: ""; position: absolute; left: 6px; top: 5px; width: 5px; height: 9px; border: solid var(--rot); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.liste-schloss li::before { content: ""; position: absolute; left: 2px; top: 4px; width: 14px; height: 12px; border-radius: 3px; background: var(--gruen); opacity: .85; }
.liste-schloss li::after { content: ""; position: absolute; left: 5px; top: -1px; width: 8px; height: 8px; border: 2px solid var(--gruen); border-bottom: 0; border-radius: 6px 6px 0 0; opacity: .85; }

.danke { max-width: 640px; margin: 7vh auto 0; text-align: center; display: grid; justify-items: center; }
.siegel { width: 96px; height: 96px; border-radius: 50%; display: grid; place-content: center; color: #fff; margin-bottom: 26px; background: radial-gradient(circle at 35% 30%, var(--rot-hell), var(--rot) 55%, var(--rot-tief)); box-shadow: 0 0 0 10px rgba(227, 16, 27, .1), 0 24px 50px -16px rgba(227, 16, 27, .7); animation: siegel .6s cubic-bezier(.2, .9, .3, 1.3) both; }
@keyframes siegel { from { transform: scale(.4) rotate(-20deg); opacity: 0; } to { transform: none; opacity: 1; } }
.danke .gross { margin-left: auto; margin-right: auto; }
.vorgang { display: inline-grid; gap: 2px; padding: 14px 26px; border-radius: 18px; background: var(--flaeche); border: 1px solid var(--linie); box-shadow: var(--schatten); margin: 6px 0 18px; }
.vorgang span { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--text-leise); }
.vorgang strong { font: 700 24px/1.2 "Bricolage", sans-serif; letter-spacing: .02em; }
.tipp { font-size: 14px; background: var(--flaeche-2); border: 1px solid var(--linie); border-radius: 14px; padding: 12px 16px; max-width: 520px; }

/* ---------- Verwaltung ---------- */
.reiter { display: flex; gap: 4px; padding: 4px; border-radius: 99px; background: var(--flaeche); border: 1px solid var(--linie); order: 3; }
.reiter a { text-decoration: none; padding: 9px 16px; border-radius: 99px; font-size: 14px; font-weight: 700; color: var(--text-leise); display: inline-flex; align-items: center; gap: 8px; }
.reiter a:hover { color: var(--text); }
.reiter a[aria-current="page"] { background: var(--flaeche-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--linie-stark); }
.zaehler { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--linie-stark); color: var(--text); font-size: 11px; display: inline-grid; place-content: center; }
.zaehler.neu { background: var(--rot); color: #fff; }
.kopf-aktionen { display: flex; gap: 8px; align-items: center; order: 2; }
.abmelden { margin: 0; }
@media (min-width: 900px) { .reiter { order: 0; margin-right: auto; margin-left: 24px; } .kopf-aktionen { order: 0; } }

.kennzahlen { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 10px 0 26px; }
.kennzahl { padding: 16px 18px; border-radius: 18px; background: var(--flaeche); border: 1px solid var(--linie); display: grid; gap: 4px; }
.kennzahl span { font-size: 12px; color: var(--text-leise); font-weight: 600; }
.kennzahl strong { font: 700 30px/1 "Bricolage", sans-serif; }
.abschnitt-kopf { margin-bottom: 18px; }
.abschnitt-kopf.zeile { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.abschnitt-kopf.zeile h2, .abschnitt-kopf.zeile p { margin: 0; }

.eingang-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.eingang-karte { display: grid; gap: 6px; padding: 18px 20px 16px; border-radius: 20px; background: var(--flaeche); border: 1px solid var(--linie); text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.eingang-karte:hover { border-color: var(--linie-stark); transform: translateY(-2px); box-shadow: var(--schatten); }
.eingang-karte.ist-neu { border-color: rgba(227, 16, 27, .5); background: linear-gradient(180deg, rgba(227, 16, 27, .08), var(--flaeche) 60%); }
.ek-kopf { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ek-kopf .vorgang-nr { margin-right: auto; }
.ek-kunde { font: 650 19px/1.2 "Bricolage", sans-serif; letter-spacing: -.01em; }
.ek-art, .ek-meta { font-size: 13px; color: var(--text-leise); }
.frist { height: 4px; border-radius: 99px; background: var(--linie); overflow: hidden; margin-top: 6px; }
.frist span { display: block; height: 100%; border-radius: inherit; background: var(--text-leise); }
.frist.stufe-1 span, .frist.stufe-2 span { background: var(--rot-hell); }
.stufe-1 span { width: 10%; } .stufe-2 span { width: 20%; } .stufe-3 span { width: 30%; } .stufe-4 span { width: 40%; } .stufe-5 span { width: 50%; }
.stufe-6 span { width: 60%; } .stufe-7 span { width: 70%; } .stufe-8 span { width: 80%; } .stufe-9 span { width: 90%; } .stufe-10 span { width: 100%; }
.vorgang-nr { font: 700 12px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .04em; color: var(--text-leise); }
.gross-nr { font-size: 14px; margin-bottom: 8px; }
.abzeichen { font-size: 11px; font-weight: 800; letter-spacing: .04em; padding: 4px 9px; border-radius: 99px; background: var(--linie); color: var(--text-leise); white-space: nowrap; }
.abzeichen.neu { background: var(--rot); color: #fff; }
.abzeichen.warnung { background: rgba(255, 170, 40, .16); color: #ffbe55; }
.abzeichen.gruen { background: rgba(31, 157, 92, .16); color: #5fd596; }
.leer-zustand { padding: 40px 24px; text-align: center; border: 1.5px dashed var(--linie-stark); border-radius: 20px; }
.leer { color: var(--text-leise); margin: 0; }

.detail-kopf { margin-top: 6px; }
.detail-raster { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.detail-raster aside { position: sticky; top: 20px; }
.uebernahme { border-color: rgba(227, 16, 27, .35); }
.nachricht { padding: 18px 20px; background: var(--eingabe); border-radius: var(--radius-klein); border: 1px solid var(--linie); line-height: 1.65; overflow-wrap: anywhere; }
.dateien { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.datei-link { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 12px 16px; border-radius: var(--radius-klein); border: 1px solid var(--linie); text-decoration: none; transition: border-color .15s, background .15s; }
.datei-link:hover { border-color: var(--rot); background: rgba(227, 16, 27, .04); }
.datei-typ { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-align: center; padding: 6px 0; border-radius: 8px; background: rgba(227, 16, 27, .14); color: var(--rot-hell); }
.datei-name { overflow-wrap: anywhere; }
.angaben { width: 100%; border-collapse: collapse; font-size: 14px; }
.angaben th { text-align: left; color: var(--text-leise); font-weight: 600; padding: 9px 16px 9px 0; width: 40%; vertical-align: top; }
.angaben td { padding: 9px 0; overflow-wrap: anywhere; }
.angaben tr + tr th, .angaben tr + tr td { border-top: 1px solid var(--linie); }

.tabelle { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabelle th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-leise); font-weight: 700; padding: 0 10px 10px; }
.tabelle td { padding: 13px 10px; border-top: 1px solid var(--linie); vertical-align: middle; }
.aktionen form { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; margin: 0; }
details.inaktiv { margin-top: 18px; }
details.inaktiv summary { cursor: pointer; color: var(--text-leise); font-weight: 600; font-size: 14px; }
details.inaktiv table { margin-top: 12px; opacity: .8; }

.link-formular { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.link-formular .breit, .link-formular .knopf { grid-column: 1 / -1; }
.link-formular .knopf { justify-self: start; }
.segmente { display: flex; flex-wrap: wrap; gap: 8px; }
.segment { position: relative; cursor: pointer; }
.segment input { position: absolute; opacity: 0; pointer-events: none; }
.segment span { display: inline-block; padding: 11px 18px; border-radius: 99px; border: 1px solid var(--linie-stark); font-weight: 700; font-size: 14px; transition: all .15s; }
.segment input:checked + span { background: var(--rot); border-color: var(--rot); color: #fff; }
.link-bereit { border-color: rgba(31, 157, 92, .5); background: linear-gradient(180deg, rgba(31, 157, 92, .10), var(--flaeche) 45%); }
.link-kopie { display: flex; gap: 8px; margin: 4px 0 18px; }
.link-kopie input { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; }
.link-bereit textarea { margin-top: 8px; min-height: 250px; font-size: 15px; }
.teilen { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.filter { display: grid; grid-template-columns: 1fr 1fr auto auto auto; gap: 12px; align-items: end; }
.nur-drucken { display: none; }
.anmelden-karte h1 { font-size: clamp(30px, 4vw, 42px); }
.formular-eng { display: grid; gap: 16px; margin-top: 18px; }
.formular-eng .knopf { justify-self: start; }

/* ---------- Schmal ---------- */
@media (max-width: 960px) {
  .kunde-raster, .detail-raster { grid-template-columns: 1fr; }
  .seitenleiste, .detail-raster aside { position: static; }
  .kennzahlen { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filter { grid-template-columns: 1fr 1fr; }
  .filter .knopf { grid-column: auto; }
}
@media (max-width: 640px) {
  .kopf { padding-top: 18px; }
  .vertrauen-pille { font-size: 12px; padding: 7px 12px; }
  .marke-zusatz { display: none; }
  .reiter { width: 100%; justify-content: space-between; }
  .reiter a { padding: 9px 12px; flex: 1; justify-content: center; }
  .wahlen, .felder-raster, .link-formular, .filter { grid-template-columns: 1fr; }
  .kennzahlen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .knopf.gross, .absenden .knopf { width: 100%; justify-self: stretch; }
  .tabelle thead { display: none; }
  .tabelle tr { display: grid; gap: 4px; padding: 12px 0; border-top: 1px solid var(--linie); }
  .tabelle td { border: 0; padding: 2px 0; }
  .aktionen form { justify-content: flex-start; }
  .datei-link { grid-template-columns: 52px 1fr; }
  .datei-link .klein { grid-column: 2; }
  .link-kopie { flex-direction: column; }
  .teilen .knopf { flex: 1 1 100%; }
  .angaben th { width: 45%; }
}

/* ---------- Druck (Nachweis) ---------- */
@media print {
  body, body.verwaltung { background: #fff !important; color: #000; --text: #000; --text-leise: #444; --linie: #ccc; --flaeche: #fff; --flaeche-2: #fff; }
  .kopf .reiter, .kopf-aktionen, .fuss, .licht, .nicht-drucken { display: none !important; }
  .karte { box-shadow: none; border: 0; padding: 0; background: #fff !important; }
  .nur-drucken { display: block; margin-top: 18px; }
  .abzeichen { border: 1px solid #999; background: none; color: #000; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
