/* 360.TAIO: Gestaltungswerte wie labor.taio.de (taio-website/feldlabor/src/css/feldlabor.css), hell und dunkel. */
@font-face { font-family: "Plus Jakarta Sans"; src: url("/fonts/plus-jakarta-sans.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
:root {
  --grund: #ffffff; --text: #111316; --gedaempft: #4a5059; --rand: #e3dfd8;
  --verlauf: linear-gradient(120deg, #0066ff 0%, #00b4e6 50%, #00f0a0 100%);
  --rand-seite: clamp(16px, 4vw, 48px);
  --flaeche: #f5f5f7; --karte: #ffffff; --liste: #fbfbfd; --knopf: #0a57c2; --avatar: #e3e3e8; --avatar-text: #48484e; --schatten: 0 1px 2px rgba(13,17,23,.04), 0 18px 40px -28px rgba(10,87,194,.35);
  --gruen: #00805e; --blau: #0a57c2; --violett: #6d3fd1; --gelb: #8a5a00; --gelb-grund: #fff4d6; --gruen-grund: #e3f7ef;
  --menue: color-mix(in srgb, #ffffff 92%, transparent); --menue-rand: rgba(0,0,0,.08);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --grund: #0d1117; --text: #e8edf3; --gedaempft: #9aa4b2; --rand: #262c36;
    --flaeche: #0d1117; --karte: #161b22; --liste: #11161d; --knopf: #3d7fe0; --avatar: #30363f; --avatar-text: #d5dae1; --schatten: 0 1px 2px rgba(0,0,0,.3), 0 18px 40px -28px rgba(0,0,0,.8);
    --gruen: #3ddc9a; --blau: #5b9dff; --violett: #b28cff; --gelb: #f3c969; --gelb-grund: #3a2e10; --gruen-grund: #10301f;
    --menue: color-mix(in srgb, #222a35 92%, transparent); --menue-rand: rgba(255,255,255,.1); }
}
*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; }
body {
  margin: 0; display: flex; flex-direction: column; min-height: 100vh;
  background: var(--grund); color: var(--text);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
main { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 64px var(--rand-seite); max-width: 1100px; width: 100%; margin: 0 auto; }
.marke { margin: 0 0 28px; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.marke span { background: var(--verlauf); -webkit-background-clip: text; background-clip: text; color: transparent; }
h1 { margin: 0 0 24px; font-weight: 600; font-size: clamp(2.4rem, 6.2vw, 5rem); line-height: 1.04; letter-spacing: -0.035em; max-width: 15ch; }
.satz { margin: 0 0 32px; max-width: 34em; color: var(--gedaempft); font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
.bald { margin: 0; display: inline-block; align-self: flex-start; padding: 10px 18px; border: 1px solid var(--rand); border-radius: 999px; font-size: 0.95rem; font-weight: 500; }
footer { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding: 20px var(--rand-seite); border-top: 1px solid var(--rand); color: var(--gedaempft); font-size: 0.875rem; }
footer a { color: inherit; }
a:focus-visible { outline: 3px solid #00b4e6; outline-offset: 3px; border-radius: 4px; }

/* ---------- Portal (Kern) ---------- */
@view-transition { navigation: auto; }
body.portal { background: var(--flaeche); }
.probe { margin: 0; padding: 6px var(--rand-seite); background: var(--gelb-grund); color: var(--gelb); font-size: .85rem; font-weight: 600; text-align: center; }
  box-shadow: var(--schatten); color: var(--text); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; min-width: 0; }
.zahl { font-size: 2.6rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.zahl.klein { font-size: 1.35rem; letter-spacing: -0.02em; }
.unter, .gedaempft, .tag { color: var(--gedaempft); font-size: .92rem; }
.hinweis { align-self: flex-start; margin-top: auto; padding: 6px 12px; border-radius: 999px; background: var(--gelb-grund); color: var(--gelb); font-size: .85rem; font-weight: 600; }
.leer { color: var(--gedaempft); }
.liste { display: flex; flex-direction: column; gap: 10px; }
.zeile { display: grid; grid-template-columns: 64px 1fr; gap: 12px; font-size: .95rem; }
.gesichter { display: flex; gap: 18px; flex-wrap: wrap; }
.gesicht { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.gesicht-name { font-weight: 600; font-size: .92rem; }
.gesicht-rolle { color: var(--gedaempft); font-size: .82rem; }
.karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.karte { padding: 22px; border-radius: 22px; background: var(--karte); border: 1px solid var(--rand); box-shadow: var(--schatten); }
.karte h3 { margin: 0; font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; }
.karte p { margin: 10px 0 0; }
.karte ul { margin: 8px 0 0; padding-left: 20px; }
.karte-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.chip { flex: none; padding: 4px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.chip.gelb { background: var(--gelb-grund); color: var(--gelb); }
.chip.gruen { background: var(--gruen-grund); color: var(--gruen); }
/* Termin buchen, aufgebaut wie cal.com: Auswahl, dann Kalender mit Zeiten, dann Ziel und Gäste */
.termin-wahl { display: flex; flex-direction: column; gap: 22px; max-width: 860px; margin-bottom: 24px; }
.termin-wahl.laedt .tw-personen, .termin-wahl.laedt .tw-dauer { opacity: .5; pointer-events: none; }
.tw-laedt:empty { display: none; } .tw-laedt { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--gedaempft); font-weight: 600; }
.tw-laedt::before, button.laedt::before { content: ''; width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: dreh .8s linear infinite; }
button.laedt { display: inline-flex; align-items: center; gap: 8px; opacity: .8; cursor: wait; }
@keyframes dreh { to { transform: rotate(360deg); } }
.meine-block { margin: 6px 0 34px; } .meine-block h3, .termin-neu { margin: 0 0 8px; font-size: 1.15rem; letter-spacing: -0.01em; }
.mt-knoepfe { display: flex; flex-direction: column; gap: 6px; }
.termin-wahl fieldset, .bk-angaben fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.termin-wahl legend, .bk-angaben legend { font-weight: 700; font-size: 1rem; padding: 0; margin-bottom: 10px; }
.tw-personen { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.tw-person { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--rand); border-radius: 16px; cursor: pointer; transition: border-color .15s, background .15s; }
.tw-person b { display: block; font-size: .95rem; } .tw-person small { color: var(--gedaempft); font-size: .82rem; }
.tw-person input, .tw-dauer input, .tw-chip input, .bk-wahl { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.tw-haken { margin-left: auto; width: 22px; height: 22px; flex: none; border-radius: 50%; border: 1.5px solid var(--rand); }
.tw-person:hover { border-color: var(--blau); }
.tw-person:has(input:checked) { border-color: var(--blau); background: color-mix(in srgb, var(--blau) 7%, var(--karte)); }
.tw-person:has(input:checked) .tw-haken { border-color: var(--blau); background: var(--blau); position: relative; }
.tw-person:has(input:checked) .tw-haken::after { content: ''; position: absolute; left: 7px; top: 3px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.tw-person:has(input:focus-visible), .tw-dauer label:has(input:focus-visible), .tw-chip:has(input:focus-visible), .bk-wahl:focus-visible + .bk-tag { outline: 3px solid #00b4e6; outline-offset: 2px; }
.tw-dauer { display: inline-flex; padding: 4px; border-radius: 14px; background: var(--flaeche); border: 1px solid var(--rand); }
.tw-dauer label { cursor: pointer; } .tw-dauer span { display: block; padding: 8px 18px; border-radius: 10px; font-weight: 600; color: var(--gedaempft); }
.tw-dauer label:has(input:checked) span { background: var(--karte); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }

.bk { position: relative; display: grid; grid-template-columns: 240px minmax(0, 1fr) 210px; min-height: 470px; border-radius: 24px; background: var(--karte); border: 1px solid var(--rand); box-shadow: var(--schatten); }
.bk-info { padding: 24px; border-right: 1px solid var(--rand); display: flex; flex-direction: column; gap: 8px; }
.bk-wer { margin: 6px 0 0; color: var(--gedaempft); font-weight: 600; font-size: .9rem; }
.bk-info h2 { margin: 0 0 8px; font-size: 1.35rem; letter-spacing: -0.02em; }
.bk-zeile { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--gedaempft); font-weight: 600; font-size: .92rem; }
.bk-zurueck { margin: auto 0 0; padding-top: 14px; font-size: .9rem; } .bk-zurueck a { color: var(--gedaempft); }
.bk-kal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; align-content: start; padding: 24px; }
.bk-monat { grid-column: 1 / -1; margin: 0 0 8px; font-weight: 700; font-size: 1.05rem; }
.bk-wt { text-align: center; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gedaempft); padding-bottom: 4px; }
.bk-tag { display: grid; place-items: center; aspect-ratio: 1; max-height: 56px; border-radius: 12px; color: var(--gedaempft); opacity: .45; font-weight: 500; }
.bk-tag.frei { opacity: 1; color: var(--text); font-weight: 700; background: var(--flaeche); cursor: pointer; transition: background .15s; }
.bk-tag.frei:hover { outline: 1.5px solid var(--text); }
.bk-wahl:checked + .bk-tag { background: var(--text); color: var(--karte); }
.bk-zeiten { display: none; position: absolute; top: 0; right: 0; bottom: 0; width: 210px; box-sizing: border-box; padding: 24px 18px; border-left: 1px solid var(--rand); overflow-y: auto; flex-direction: column; gap: 8px; }
.bk-wahl:checked + .bk-tag + .bk-zeiten { display: flex; }
.bk-zeiten-titel { margin: 0 0 6px; font-weight: 700; font-size: .95rem; }
.bk-zeiten .slot { display: block; position: relative; padding: 10px; border: 1.5px solid var(--rand); border-radius: 12px; text-align: center; font-weight: 700; cursor: pointer; }
.bk-zeiten .slot input { position: absolute; opacity: 0; pointer-events: none; }
.bk-zeiten .slot:hover { border-color: var(--text); }
.bk-zeiten .slot:has(input:checked) { background: var(--text); color: var(--karte); border-color: var(--text); }
.bk-zeiten .slot:has(input:focus-visible) { outline: 3px solid #00b4e6; outline-offset: 1px; }
.bk-angaben { display: flex; flex-direction: column; gap: 22px; margin-top: 20px; padding: 24px; border-radius: 24px; background: var(--karte); border: 1px solid var(--rand); }
.bk-ziel, .bk-frei { display: flex; flex-direction: column; gap: 8px; }
.bk-ziel > span { font-weight: 700; } .bk-ziel em { margin-left: 6px; padding: 2px 8px; border-radius: 99px; background: var(--flaeche); color: var(--gedaempft); font-style: normal; font-size: .75rem; font-weight: 600; }
.bk-frei > span { font-weight: 600; font-size: .9rem; color: var(--gedaempft); }
.bk-angaben textarea, .bk-angaben input[type=text] { font: inherit; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--rand); background: var(--grund); color: var(--text); }
.bk-angaben textarea { resize: vertical; }
.bk-angaben small { color: var(--gedaempft); font-size: .85rem; }
.bk-gaeste { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tw-chip { position: relative; cursor: pointer; } .tw-chip span { display: block; padding: 8px 14px; border: 1.5px solid var(--rand); border-radius: 99px; font-weight: 600; font-size: .9rem; }
.tw-chip:has(input:checked) span { border-color: var(--blau); background: color-mix(in srgb, var(--blau) 10%, var(--karte)); color: var(--blau); }
.tw-chip:has(input:checked) span::before { content: '✓ '; }
@media (max-width: 860px) {
  .bk { grid-template-columns: 1fr; min-height: 0; }
  .bk-info { border-right: 0; border-bottom: 1px solid var(--rand); }
  .bk-platz { display: none; }
  .bk-zeiten { position: static; width: auto; grid-column: 1 / -1; padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--rand); margin-top: 10px; display: none; flex-direction: row; flex-wrap: wrap; }
  .bk-zeiten-titel { flex-basis: 100%; }
  .bk-zeiten .slot { min-width: 76px; }
  .bk-kal.w2 .bk-zeiten { grid-row: 5; } .bk-kal.w3 .bk-zeiten { grid-row: 6; } .bk-kal.w4 .bk-zeiten { grid-row: 7; } .bk-kal.w5 .bk-zeiten { grid-row: 8; } .bk-kal.w6 .bk-zeiten { grid-row: 9; }
  .bk-kal.w1 .bk-zeiten { grid-row: 4; }
}
@media (max-width: 520px) { .bk-kal { padding: 16px; gap: 4px; } .termin-wahl, .bk-info, .bk-angaben { padding: 18px; } }

/* ---------- Modul Strategie ---------- */
.st-band { display: flex; gap: 4px; width: 100%; height: 10px; }
.st-band.gross { height: 36px; max-width: 420px; gap: 6px; }
.st-band-teil { border-radius: 99px; background: currentColor; display: grid; place-items: center; }
.st-band-teil:nth-child(1) { flex: 7; } .st-band-teil:nth-child(2) { flex: 2; } .st-band-teil:nth-child(3) { flex: 1; min-width: 44px; }
.st-band.gross .st-band-teil { border-radius: 12px; border: 2px solid rgba(255,255,255,.85); }
.st-band.gross b { color: #fff; font-size: .85rem; font-weight: 700; letter-spacing: -0.01em; }
.st-w { display: flex; flex-direction: column; gap: 18px; height: 100%; }
.st-w-saeulen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.st-w-saeule { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 18px; background: var(--flaeche); border-top: 4px solid currentColor; }
.st-w-kopf { display: flex; justify-content: space-between; align-items: center; }
.st-w-symbol { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--karte); }
.st-w-symbol svg { width: 20px; height: 20px; }
.st-w-anteil { font-size: 1.7rem; font-weight: 700; letter-spacing: -0.04em; }
.st-w-titel { color: var(--text); font-weight: 700; font-size: 1rem; line-height: 1.2; }
.st-w-satz { color: var(--gedaempft); font-size: .88rem; line-height: 1.35; }
.st-w-zahl { margin-top: auto; padding-top: 6px; font-size: .8rem; font-weight: 600; }
.st-kurz { margin: 0 0 10px; color: var(--gedaempft); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: .78rem; }
@media (max-width: 720px) { .st-w-saeulen { grid-template-columns: 1fr; } .st-w-saeule { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 12px; } .st-w-kopf { gap: 10px; } .st-w-titel { flex: 1; } .st-w-satz { flex-basis: 100%; } .st-w-zahl { margin: 0; padding: 0; } }
.gruen { color: var(--gruen); } .blau { color: var(--blau); } .violett { color: var(--violett); }
.st-empfehlung { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--rand); color: var(--gedaempft); font-size: .92rem; }
.st { display: flex; flex-direction: column; gap: 22px; }
.st-kopf { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 28px 32px; border-radius: 24px; background: var(--verlauf); color: #fff; }
.st-kopf h2 { margin: 0; font-size: clamp(1.5rem, 3.4vw, 2.4rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.st-stand { padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.2); font-size: .85rem; font-weight: 600; }
.st-profil { padding: 18px 24px; border-radius: 18px; background: var(--karte); border: 1px solid var(--rand); border-left: 6px solid var(--blau); }
.st-profil p { margin: 4px 0; }
.st-felder { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.st-feld { padding: 24px; border-radius: 22px; background: var(--karte); border: 1px solid var(--rand); border-left: 6px solid currentColor; box-shadow: var(--schatten); }
.st-feld > * { color: var(--text); }
.st-feld-kopf { display: flex; justify-content: space-between; align-items: center; }
.st-feld .st-symbol { color: inherit; }
.st-feld.gruen .st-symbol, .st-feld.gruen .st-prozent, .st-feld.gruen .st-leitsatz { color: var(--gruen); }
.st-feld.blau .st-symbol, .st-feld.blau .st-prozent, .st-feld.blau .st-leitsatz { color: var(--blau); }
.st-feld.violett .st-symbol, .st-feld.violett .st-prozent, .st-feld.violett .st-leitsatz { color: var(--violett); }
.st-prozent { padding: 4px 10px; border-radius: 10px; background: var(--flaeche); font-weight: 700; }
.st-feld h3 { margin: 16px 0 6px; font-size: 1.6rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.st-leitsatz { margin: 0 0 14px; font-weight: 500; }
.st-kernsatz { margin: 0 0 12px; }
.st-feld ul { margin: 0; padding-left: 18px; }
.st-feld li { margin-bottom: 8px; }
.st-fuss { padding: 18px 24px; border-radius: 18px; background: var(--karte); border: 1px solid var(--rand); color: var(--gedaempft); }
.st-fuss p { margin: 4px 0; } .st-fuss strong { color: var(--text); }

@media (max-width: 900px) { .st-felder { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .widget { transition: none; } @view-transition { navigation: none; } }

/* ---------- Anmeldung ---------- */
.anmeldung { max-width: 460px; margin: 6vh auto 0; padding: 32px; border-radius: 28px; background: var(--karte); border: 1px solid var(--rand); box-shadow: var(--schatten); }
.anmeldung h1 { margin: 0 0 12px; font-size: clamp(1.6rem, 4vw, 2.1rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; max-width: none; }
.anmeldung .satz { margin: 0 0 22px; color: var(--gedaempft); font-size: 1rem; }
.anmeldung h2 { margin: 0 0 12px; font-size: clamp(1.6rem, 4vw, 2.1rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
.eingang { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: center; max-width: 1100px; margin: 8vh auto 0; }
.eingang h1 { margin: 0 0 24px; font-size: clamp(2.4rem, 5.4vw, 4.4rem); max-width: 13ch; }
.eingang-text .satz { margin: 0; }
.eingang .anmeldung { margin: 0; width: 100%; box-sizing: border-box; }
.eingang-symbol { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px; border-radius: 18px; background: var(--verlauf); color: #fff; box-shadow: 0 10px 24px -10px rgba(0, 120, 220, .55); }
.anmeldung .satz b { color: var(--text); font-weight: 600; word-break: break-all; }
.eingang-schritte { list-style: none; counter-reset: schritt; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.eingang-schritte li { counter-increment: schritt; display: grid; grid-template-columns: 32px 1fr; column-gap: 12px; padding: 14px; border-radius: 16px; background: var(--grund); border: 1px solid var(--rand); }
.eingang-schritte li::before { content: counter(schritt); grid-row: span 2; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--verlauf); color: #fff; font-weight: 700; font-size: .9rem; }
.eingang-schritte b { font-weight: 600; }
.eingang-schritte span { color: var(--gedaempft); font-size: .9rem; }
.eingang-fuss { margin: 0; font-size: .9rem; }
@media (max-width: 860px) { .eingang { grid-template-columns: 1fr; gap: 32px; margin-top: 3vh; } .eingang h1 { font-size: clamp(2.2rem, 9vw, 3rem); } }
.formular { display: flex; flex-direction: column; gap: 10px; }
.formular label { font-weight: 600; font-size: .92rem; }
.formular input { font: inherit; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--rand); background: var(--grund); color: var(--text); }
.formular input:focus { outline: 3px solid #00b4e6; outline-offset: 1px; }
.hinweis-fehler { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; background: var(--gelb-grund); color: var(--gelb); font-weight: 500; }

/* ---------- Bearbeiten ---------- */
.st-form textarea { font: inherit; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--rand); background: var(--grund); color: var(--text); resize: vertical; }
.st-form fieldset { margin: 0; }
.st-form legend { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text); padding: 0 6px; }
.st-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--text); }
.st-form label.klein { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; color: var(--gedaempft); }
.st-punkt { display: flex; flex-direction: column; gap: 4px; padding: 8px 0; border-top: 1px dashed var(--rand); }
.st-knoepfe { display: flex; align-items: center; gap: 18px; }
.st-knoepfe a { color: var(--gedaempft); }

/* ---------- Konto und Freigaben ---------- */
.konto { max-width: 560px; }
.abschnitt { margin: 0 0 14px; font-size: 1.2rem; font-weight: 600; }
.formular select { font: inherit; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--rand); background: var(--grund); color: var(--text); }
.formular label { display: flex; flex-direction: column; gap: 6px; }
.formular label.klein { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; color: var(--gedaempft); }
.haken { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 6px 0; }
.einladen { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; align-items: end; }
.einladen .haken, .einladen button { grid-column: 1 / -1; }
.person-rechte h3 { margin: 0; }
.person-rechte .gedaempft { margin: 0 0 8px; }
.karte h3 a { color: inherit; text-decoration: none; }
.karte h3 a:hover { color: var(--blau); }
.zeile.breit { grid-template-columns: 130px 1fr; }

.einladen label { justify-content: flex-end; }

/* ---------- Unterschrift ---------- */

/* ---------- PDF (kern/pdf.js, Chromium druckt mit „print“) ---------- */
@media print {
  .leiste, footer, .probe, .zur-liste, .knoepfe, .werkzeuge { display: none !important; }
  .st { gap: 12px; }
  .st-kopf { padding: 18px 24px; border-radius: 16px; flex-wrap: nowrap; } .st-kopf h2 { font-size: 19pt; } .st-kopf .st-band.gross { flex: 0 0 300px; }
  .st-feld { padding: 14px 16px; box-shadow: none; break-inside: avoid; } .st-feld h3 { font-size: 13pt; margin: 6px 0 2px; }
  .st-feld li { margin: 2px 0; }
  .st-felder { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 12px; }
  .st-profil, .st-fuss { padding: 12px 16px; break-inside: avoid; }
}

/* ---------- Modul Gesprächsprotokolle ---------- */
.vt-zeile { grid-template-columns: 150px 1fr; align-items: center; } .vt-zeile .chip { justify-self: start; }
@media (max-width: 520px) { .vt-zeile { grid-template-columns: auto 1fr; } }
.eingang-fuss a { color: var(--blau); font-weight: 600; text-underline-offset: 3px; }

/* ---------- Rahmen wie iCloud (3.12.2026): Leiste, App-Wechsel, Kontomenü, fluide Breite ---------- */
body.portal { background: var(--flaeche); font-size: 17px; }
.leiste { position: sticky; top: 0; z-index: 20; padding-top: env(safe-area-inset-top); border-bottom: 1px solid color-mix(in srgb, var(--rand) 70%, transparent); }
/* Der Milchglas-Grund liegt auf einer eigenen Ebene: Ein Filter an der Leiste selbst würde das Abdunkeln der Seite und das
   Menü auf dem Telefon (position: fixed) in die Leiste sperren. */
.leiste::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--flaeche) 82%, transparent); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); }
.leiste-innen { display: flex; align-items: center; gap: 14px; height: 56px; padding: 0 var(--rand-seite); }
.leiste .marke { margin: 0; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.12rem; letter-spacing: -0.01em; white-space: nowrap; }
.leiste-app { padding-left: 14px; border-left: 1px solid var(--rand); color: var(--text); text-decoration: none; font-weight: 600; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leiste-zurueck { display: inline-flex; align-items: center; height: 38px; padding: 0 16px 0 12px; border-radius: 12px; background: color-mix(in srgb, var(--knopf) 10%, transparent); color: var(--knopf); text-decoration: none; font-weight: 600; font-size: 1rem; white-space: nowrap; }
.leiste-zurueck:hover { background: color-mix(in srgb, var(--knopf) 18%, transparent); }
.leiste-zurueck:focus-visible { outline: 3px solid #00b4e6; outline-offset: 1px; }
.leiste-rechts { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.menue { position: relative; }
.menue > summary { list-style: none; } .menue > summary::-webkit-details-marker { display: none; }
.leiste-knopf { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--gedaempft); cursor: pointer; }
.leiste-knopf:hover, .menue[open] > .leiste-knopf { background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text); }
.leiste-knopf:focus-visible { outline: 3px solid #00b4e6; outline-offset: 1px; }
.menue-feld { position: absolute; right: 0; top: calc(100% + 10px); z-index: 30; background: var(--menue); border: 1px solid var(--menue-rand); border-radius: 22px;
  box-shadow: 0 2px 6px rgba(0,0,0,.08), 0 30px 70px -18px rgba(0,0,0,.45); -webkit-backdrop-filter: saturate(180%) blur(28px); backdrop-filter: saturate(180%) blur(28px); animation: menue-auf .16s ease-out; }
@keyframes menue-auf { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
/* Offenes Menü: die Seite tritt zurück (3.12.2026, Stephan: „Das Menü setzt sich nicht ausreichend ab“); ein Tipp daneben schließt (seite.js). */
.menue[open]::before { content: ""; position: fixed; inset: 0; z-index: 25; background: rgba(10,14,20,.38); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); cursor: default; }
.menue[open] > summary { position: relative; z-index: 31; }
.apps-feld { display: grid; grid-template-columns: repeat(3, 112px); gap: 6px; padding: 14px; }
.app-start { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 6px; border-radius: 14px; color: var(--text); text-decoration: none; font-size: .76rem; font-weight: 600; text-align: center; line-height: 1.2; hyphens: auto; overflow-wrap: anywhere; min-width: 0; }
.app-start:hover, .app-start.aktiv { background: color-mix(in srgb, var(--text) 7%, transparent); }
.app-start .app-symbol { width: 56px; height: 56px; border-radius: 16px; }
.app-start .app-symbol svg { width: 26px; height: 26px; }
.konto-feld { width: min(300px, calc(100vw - 24px)); padding: 8px; display: flex; flex-direction: column; }
.konto-feld a, .konto-feld button { display: block; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: var(--text); font: inherit; font-size: .95rem; text-align: left; text-decoration: none; cursor: pointer; }
.konto-feld a:hover, .konto-feld button:hover { background: color-mix(in srgb, var(--text) 7%, transparent); }
.konto-feld form { margin: 4px 0 0; padding-top: 4px; border-top: 1px solid var(--rand); }
.konto-wer { display: flex; gap: 12px; align-items: center; padding: 10px 12px 14px; margin-bottom: 4px; border-bottom: 1px solid var(--rand); }
.konto-wer b { display: block; font-size: .98rem; } .konto-wer small { display: block; color: var(--gedaempft); font-size: .82rem; word-break: break-all; }
.app-symbol { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #fff; flex: none; }
.app-symbol.klein { width: 28px; height: 28px; border-radius: 8px; } .app-symbol.klein svg { width: 17px; height: 17px; }
/* Symbole mit Verlauf und Glanzkante wie auf dem Telefon (3.12.2026, Stephan: „die Icons könnten auch einen Verlauf … vertragen“). */
.app-symbol { box-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 -1px 0 rgba(0,0,0,.12), 0 6px 14px -8px rgba(0,0,0,.5); }
.app-symbol svg { filter: drop-shadow(0 1px 1px rgba(0,0,0,.18)); }
.app-symbol.blau { background: linear-gradient(145deg, #4d9bff 0%, #0a57c2 100%); } .app-symbol.gruen { background: linear-gradient(145deg, #3fd39b 0%, #0d7a56 100%); }
.app-symbol.orange { background: linear-gradient(145deg, #ffae5c 0%, #e0561b 100%); } .app-symbol.tuerkis { background: linear-gradient(145deg, #3fd6e8 0%, #0a7f96 100%); }
.app-symbol.violett { background: linear-gradient(145deg, #b28cff 0%, #5c2fc4 100%); } .app-symbol.grau { background: linear-gradient(145deg, #b3b9c2 0%, #646a73 100%); }
.app-symbol.indigo { background: linear-gradient(145deg, #8a96ff 0%, #3341c9 100%); }
.avatar { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--avatar); color: var(--avatar-text); font-weight: 600; font-size: .95rem; letter-spacing: .02em; flex: none; object-fit: cover; }
.avatar.klein { width: 34px; height: 34px; font-size: .78rem; }
.avatar.gross { width: 112px; height: 112px; font-size: 2.3rem; font-weight: 500; }
.leiste .avatar.klein { width: 32px; height: 32px; }
.inhalt { display: block; flex: 1; width: 100%; max-width: 1560px; margin: 0 auto; padding: 28px var(--rand-seite) 56px; }
.inhalt:has(> .app) { max-width: none; padding-top: 16px; padding-bottom: 24px; }
.portal footer { width: 100%; max-width: none; padding: 14px var(--rand-seite); font-size: .8rem; border-top: 0; }

/* Startseite */
.gruss { max-width: none; margin: 36px 0 32px; font-weight: 600; font-size: clamp(1.9rem, 3.4vw, 2.8rem); letter-spacing: -0.03em; line-height: 1.1; }
.gruss-unter { margin: -24px 0 32px; color: var(--gedaempft); font-weight: 500; }
.widgets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(200px, auto); grid-auto-flow: dense; gap: clamp(14px, 1.6vw, 24px); }
@media (min-width: 1900px) { .widgets { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.widget { display: flex; flex-direction: column; gap: 16px; padding: 22px; border-radius: 24px; background: var(--karte); border: 1px solid var(--rand); box-shadow: var(--schatten); color: var(--text); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; min-width: 0; }
.widget:hover { transform: translateY(-2px); box-shadow: 0 1px 2px rgba(13,17,23,.05), 0 26px 50px -30px rgba(10,87,194,.45); }
.widget.breit { grid-column: span 2; }
.widget.gross { grid-column: span 2; grid-row: span 2; }
.widget-kopf { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem; }
.widget-pfeil { margin-left: auto; color: var(--gedaempft); font-size: 1.4rem; line-height: 1; font-weight: 400; }
.widget-inhalt { display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 0; }
.gesichter .avatar { width: 52px; height: 52px; }
@media (max-width: 1100px) { .widgets { grid-template-columns: repeat(2, minmax(0, 1fr)); } .widget.gross { grid-row: span 1; } }
@media (max-width: 640px) { .widgets { grid-template-columns: 1fr; grid-auto-rows: auto; } .widget.breit, .widget.gross { grid-column: span 1; } .widget { padding: 18px; border-radius: 22px; } }

/* Eine App: Liste links, Ansicht rechts; auf dem Handy erst die Liste, dann der Eintrag */
.app { display: grid; grid-template-columns: clamp(270px, 24vw, 360px) minmax(0, 1fr); min-height: calc(100vh - 56px - 16px - 70px); border-radius: 20px; background: var(--karte); border: 1px solid var(--rand); box-shadow: var(--schatten); overflow: clip; }
.app-liste { background: var(--liste); border-right: 1px solid var(--rand); padding: 18px 10px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.app-liste-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 4px 10px 12px; }
.app-liste-kopf h1 { margin: 0; font-size: 1.45rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; max-width: none; }
.anzahl { color: var(--gedaempft); font-weight: 600; font-size: .9rem; }
.eintraege { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 72px; }
.eintrag { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: var(--text); text-decoration: none; min-width: 0; }
.eintrag:hover { background: color-mix(in srgb, var(--text) 5%, transparent); }
.eintrag.aktiv { background: color-mix(in srgb, var(--knopf) 13%, var(--karte)); }
.eintrag.oben { margin-bottom: 8px; border: 1px solid var(--rand); background: var(--karte); }
.eintrag.oben.aktiv { border-color: color-mix(in srgb, var(--knopf) 40%, var(--rand)); background: color-mix(in srgb, var(--knopf) 13%, var(--karte)); }
.eintrag:focus-visible { outline: 3px solid #00b4e6; outline-offset: -2px; }
.eintrag-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.eintrag-titel { font-weight: 600; font-size: .96rem; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.eintrag-unter { color: var(--gedaempft); font-size: .84rem; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eintrag .chip { font-size: .72rem; padding: 3px 8px; }
.termin-symbol { background: color-mix(in srgb, var(--knopf) 14%, var(--karte)); color: var(--knopf); }
.eintraege-leer { padding: 8px 12px; font-size: .95rem; }
.app-ansicht { padding: clamp(20px, 3vw, 40px) clamp(20px, 3.4vw, 52px) 48px; min-width: 0; }
.zur-liste { display: none; margin-bottom: 14px; color: var(--knopf); text-decoration: none; font-weight: 600; }
.ansicht-kopf { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 22px; }
.ansicht-kopf .ueber { margin: 0; color: var(--gedaempft); font-size: .9rem; font-weight: 600; }
.ansicht-kopf h2 { margin: 0; font-size: clamp(1.6rem, 2.6vw, 2.25rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.12; max-width: 28ch; }
.knoepfe { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 0; }
.knopf, .knopf-link, .formular button, .termin-wahl button, .bk-angaben button, .st-knoepfe button { display: inline-block; font: inherit; font-size: .95rem; font-weight: 600; padding: 11px 18px; border: 0; border-radius: 12px; background: var(--knopf); color: #fff; text-decoration: none; text-align: center; cursor: pointer; }
.knopf:hover, .knopf-link:hover, .formular button:hover, .termin-wahl button:hover, .bk-angaben button:hover, .st-knoepfe button:hover { filter: brightness(1.08); }
.knopf.zart { background: color-mix(in srgb, var(--knopf) 11%, var(--karte)); color: var(--knopf); }
.knopf-link { margin-top: 10px; }
.formular button { margin-top: 10px; align-self: flex-start; }
.angaben { display: flex; flex-wrap: wrap; margin: 0 0 22px; border-radius: 14px; overflow: hidden; border: 1px solid var(--rand); background: var(--karte); }
.angaben div { flex: 1 1 200px; padding: 12px 16px; margin: 0 -1px -1px 0; border-right: 1px solid var(--rand); border-bottom: 1px solid var(--rand); }
.angaben dt { color: var(--gedaempft); font-size: .8rem; font-weight: 600; }
.angaben dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.angaben a { color: var(--knopf); text-decoration: none; }
.chip.grau { background: var(--flaeche); color: var(--gedaempft); }
.hinweis-ok { margin: 0 0 18px; padding: 12px 14px; border-radius: 12px; background: var(--gruen-grund); color: var(--gruen); font-weight: 600; }
@media (max-width: 820px) {
  .inhalt:has(> .app) { padding: 0; }
  .app { grid-template-columns: minmax(0, 1fr); border-radius: 0; border: 0; box-shadow: none; min-height: calc(100vh - 56px - 50px); }
  .app:not(.gewaehlt) .app-ansicht { display: none; }
  .app.gewaehlt .app-liste { display: none; }
  .app-liste { border-right: 0; padding: 16px 8px; }
  .eintraege { position: static; }
  .zur-liste { display: inline-block; }
  .leiste-app { display: none; }
}

/* Dokument-Apps ohne Liste (Strategie) */
.dokument-kopf { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin: 4px 0 22px; }
.modul-titel { display: flex; align-items: center; gap: 14px; margin: 0; font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -0.03em; max-width: none; line-height: 1.15; }
.werkzeuge { display: flex; gap: 8px; }
.werkzeug { padding: 9px 16px; border-radius: 12px; background: var(--karte); border: 1px solid var(--rand); color: var(--text); text-decoration: none; font-weight: 600; font-size: .92rem; }
.werkzeug:hover { border-color: var(--knopf); color: var(--knopf); }

/* Gesprächsprotokolle */
.protokoll { max-width: 980px; }
.protokoll-grafik { display: block; margin: 0 0 26px; } .protokoll-grafik img { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--rand); background: #fff; }
.protokoll-text { max-width: 72ch; }
.protokoll-text h4 { margin: 26px 0 6px; font-size: 1.08rem; }
.protokoll-text p { margin: 12px 0 0; }
.protokoll-text ul { margin: 6px 0 0; padding-left: 20px; } .protokoll-text li { margin-bottom: 6px; }

/* Ansprechpartner */
.kontakt { max-width: 720px; }
.kontakt-kopf { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 12px 0 26px; }
.kontakt-kopf h2 { margin: 12px 0 0; font-size: 1.9rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.kontakt-kopf .gedaempft { margin: 0; }
.kontakt-kopf .knoepfe { justify-content: center; margin-top: 16px; }
.termin-wahl { display: flex; flex-direction: column; gap: 22px; max-width: 860px; padding: 0; margin-top: 18px; }
.tw-person .avatar { width: 40px; height: 40px; font-size: .85rem; }
.bk-gesichter { display: flex; } .bk-gesichter .avatar { width: 36px; height: 36px; font-size: .78rem; border: 2px solid var(--karte); margin-right: -8px; }
.bk, .bk-angaben { box-shadow: none; }
@media (max-width: 1250px) and (min-width: 821px) { .app .bk { grid-template-columns: 1fr; min-height: 0; } .app .bk-info { border-right: 0; border-bottom: 1px solid var(--rand); } .app .bk-platz { display: none; }
  .app .bk-zeiten { position: static; width: auto; grid-column: 1 / -1; padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--rand); margin-top: 10px; display: none; flex-direction: row; flex-wrap: wrap; }
  .app .bk-wahl:checked + .bk-tag + .bk-zeiten { display: flex; } .app .bk-zeiten-titel { flex-basis: 100%; } .app .bk-zeiten .slot { min-width: 76px; }
  .app .bk-kal.w1 .bk-zeiten { grid-row: 4; } .app .bk-kal.w2 .bk-zeiten { grid-row: 5; } .app .bk-kal.w3 .bk-zeiten { grid-row: 6; } .app .bk-kal.w4 .bk-zeiten { grid-row: 7; } .app .bk-kal.w5 .bk-zeiten { grid-row: 8; } .app .bk-kal.w6 .bk-zeiten { grid-row: 9; } }

/* Verträge */
.vertrag { max-width: 1040px; }
.hinweis-offen { margin: 0 0 18px; padding: 12px 16px; border-radius: 12px; background: var(--gelb-grund); color: var(--gelb); font-weight: 600; }
.dokument-rahmen { border: 1px solid var(--rand); border-radius: 16px; overflow: hidden; background: #525659; }
.dokument-rahmen iframe { display: block; width: 100%; height: min(78vh, 980px); border: 0; }
.unterschrift { margin-top: 26px; padding: 22px; border-radius: 18px; border: 1px solid var(--rand); background: var(--liste); max-width: 720px; }
.unterschrift h3, .beleg h3 { margin: 0 0 6px; font-size: 1.2rem; }
.unterschrift .zustimmung { align-items: flex-start; color: var(--text); font-size: .95rem; line-height: 1.5; padding: 14px; border: 1px solid var(--rand); border-radius: 12px; background: var(--karte); }
.unterschrift .zustimmung input { margin-top: 4px; flex: none; }
.unterschrift-name { font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-size: 1.25rem !important; font-style: italic; }
.beleg { margin-top: 26px; padding: 20px 22px; border-radius: 18px; background: var(--gruen-grund); }
.beleg h3 { color: var(--gruen); }
.beleg .angaben { margin: 10px 0 8px; }
.pruefsumme { margin: 0; color: var(--gedaempft); font-size: .78rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }

/* Reallabor */
.widget.offen { container-type: inline-size; grid-column: 1 / -1; }
.widget.offen:hover { transform: none; box-shadow: var(--schatten); }
.anliegen { margin: 0 0 18px; padding: 12px 16px; border-left: 3px solid var(--violett); background: var(--liste); border-radius: 0 12px 12px 0; line-height: 1.5; }
.anliegen b { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--gedaempft); margin-bottom: 2px; }
.widget.offen .widget-kopf { margin: 0; }
.labor-kachel { display: grid; grid-template-columns: 1fr; gap: 22px; }
@container (min-width: 820px) { .labor-kachel { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; } }
.labor-kachel .ueber { margin: 0 0 6px; font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--gedaempft); }
.labor-neu h3 { margin: 0 0 8px; font-size: 1.35rem; line-height: 1.25; letter-spacing: -.01em; }
.labor-neu p { margin: 0 0 14px; line-height: 1.55; }
.labor-neu .knoepfe { margin: 0; }
.labor-vorhaben ul { list-style: none; margin: 0; padding: 0; }
.labor-vorhaben li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; padding: 10px 0; border-top: 1px solid var(--rand); }
.labor-vorhaben li:first-child { border-top: 0; padding-top: 2px; }
.labor-titel { font-weight: 600; color: var(--text); text-decoration: none; }
.labor-titel:hover { text-decoration: underline; }
.labor-vorhaben li span { grid-column: 1; font-size: .88rem; color: var(--gedaempft); line-height: 1.45; }
.labor-mit { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-weight: 600; font-size: .9rem; white-space: nowrap; color: var(--blau, #0a57c2); text-decoration: none; }
.labor-mit:hover { text-decoration: underline; }

/* Konto */
.konto-seite { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.konto-kopf { display: flex; align-items: center; gap: 22px; margin: 8px 0 6px; }
.konto-kopf .avatar.gross { width: 96px; height: 96px; font-size: 2rem; }
.konto-kopf h1 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -0.02em; max-width: none; line-height: 1.15; }
.konto-kopf p { margin: 4px 0 0; }
.konto { max-width: none; }
.karte-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--text); text-decoration: none; }
.karte-link b { display: block; } .karte-link small { color: var(--gedaempft); font-size: .88rem; }
.karte-link > span:last-child { font-size: 1.6rem; color: var(--gedaempft); }
.karte-link:hover { border-color: var(--knopf); }
.konto-seite .karten.personen { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
@media (max-width: 820px) {
  .app:not(.gewaehlt) .eintrag.aktiv { background: none; }
  .app:not(.gewaehlt) .eintrag.oben.aktiv { background: var(--karte); border-color: var(--rand); }
  .eintrag::after { content: '›'; margin-left: 4px; color: var(--gedaempft); font-size: 1.3rem; line-height: 1; }
  .app-ansicht { padding: 18px 18px 40px; }
}
.termin-wahl button, .bk-angaben button { align-self: flex-start; }

/* Projekte */
.chip.blau { background: color-mix(in srgb, var(--blau) 12%, var(--karte)); color: var(--blau); }
.pj-zeile { display: flex; flex-direction: column; gap: 6px; padding: 6px 0; }
.pj-zeile-kopf { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.pj-zeile-kopf b { font-weight: 600; min-width: 0; }
.pj-spur { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 8px; border: 0; border-radius: 99px; background: var(--flaeche); color: var(--blau); overflow: hidden; }
.pj-spur.klein { height: 5px; }
.pj-spur::-webkit-progress-bar { background: var(--flaeche); border-radius: 99px; }
.pj-spur::-webkit-progress-value { background: var(--blau); border-radius: 99px; }
.pj-spur::-moz-progress-bar { background: var(--blau); border-radius: 99px; }
.pj-ziel { font-size: 1.1rem; line-height: 1.55; margin: 0 0 22px; max-width: 760px; }
.pj-stand { display: grid; gap: 10px; max-width: 560px; margin: 0 0 24px; }
.pj-balken { display: grid; grid-template-columns: 80px 1fr 48px; gap: 12px; align-items: center; font-size: .92rem; }
.pj-balken:first-child .pj-spur::-webkit-progress-value { background: var(--gedaempft); }
.pj-balken:first-child .pj-spur::-moz-progress-bar { background: var(--gedaempft); }
.pj-wert { text-align: right; font-variant-numeric: tabular-nums; }
.pj-meilensteine { margin-top: 26px; }
.pj-meilensteine h3 { margin: 0 0 12px; font-size: 1.05rem; }
.pj-meilensteine ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--rand); margin-left: 7px; }
.pj-meilensteine li { display: flex; gap: 14px; align-items: flex-start; padding: 0 0 18px; margin-left: -9px; }
.pj-raute { color: var(--gedaempft); font-size: 14px; line-height: 22px; background: var(--karte); }
.pj-meilensteine li.fertig .pj-raute { color: var(--gruen); }
.pj-meilensteine li.kommt .pj-raute { color: var(--blau); }
.pj-ms { display: flex; flex-direction: column; gap: 2px; }
.pj-ms .gedaempft { font-size: .88rem; }
.projekt .knoepfe { margin-top: 8px; }

/* Ihre Termine (18.7): Karten untereinander, Absagen hinter einem Aufklapper. */
.meine { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.mt { background: var(--karte); border: 1px solid var(--rand); border-radius: 14px; padding: 14px 18px; }
.mt p { margin: 0 0 4px; }
.mt-wann { font-size: .85rem; font-weight: 600; color: var(--blau); }
.mt-titel { font-weight: 600; font-size: 1.05rem; }
.mt-absagen, .mt-thema { margin-top: 2px; }
.mt-absagen summary, .mt-thema summary { cursor: pointer; color: var(--knopf); font-weight: 600; font-size: .9rem; }
.mt-absagen form, .mt-thema form { display: grid; gap: 10px; margin-top: 10px; }
.mt-absagen label, .mt-thema label { display: grid; gap: 4px; font-size: .85rem; color: var(--gedaempft); }
.mt-absagen input[type=text], .mt-thema textarea { font: inherit; padding: 9px 12px; border: 1px solid var(--rand); border-radius: 10px; background: var(--karte); color: var(--text); }
.mt-absagen button, .mt-thema button { justify-self: start; font: inherit; font-weight: 600; padding: 10px 16px; border: 0; border-radius: 12px; background: #c0362c; color: #fff; cursor: pointer; }
.mt-thema button { background: var(--knopf); }
.mt-absagen small, .mt-thema small { color: var(--gedaempft); }
a.laedt { cursor: wait; opacity: .7; }
a.eintrag.laedt::after { content: ''; flex: none; margin-left: auto; width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid var(--gedaempft); border-right-color: transparent; animation: dreh .8s linear infinite; }
.tw-dauer span { white-space: nowrap; }
@media (max-width: 560px) { .tw-dauer span { padding: 8px 11px; } }

/* Kundenansicht der Geschäftsführung: ein Band über allem (api/portal.js, Sitzung mit „a“). */
.ansicht-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 8px var(--rand-seite); background: #1d1d1f; color: #fff; font-size: .9rem; }
.ansicht-band small { display: block; color: #c7c7cc; font-size: .8rem; }
.ansicht-knoepfe { display: inline-flex; gap: 8px; align-items: center; }
.ansicht-knoepfe a, .ansicht-knoepfe button { font: inherit; font-weight: 600; font-size: .85rem; padding: 6px 12px; border-radius: 10px; border: 0; cursor: pointer; text-decoration: none; background: rgba(255,255,255,.14); color: #fff; }
.ansicht-knoepfe button { background: #fff; color: #1d1d1f; }
.ansicht-knoepfe form { margin: 0; }

/* Wie eine App (3.12.2026): kein Doppeltipp-Zoom, Schrift wächst beim Drehen nicht, Eingaben ab 16px (sonst zoomt Safari beim Antippen). */
html { touch-action: manipulation; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (max-width: 700px) { input, textarea, select { font-size: 16px !important; } }

/* Auf dem Telefon: das App-Menü über die ganze Breite, mit Rand, nie halb aus dem Bild. */
@media (max-width: 600px) {
  .apps-feld { position: fixed; left: 12px; right: 12px; top: calc(56px + env(safe-area-inset-top) + 8px); grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 16px 10px; }
}

/* Kundenlogo in der Leiste (kern/rahmen.js): mit Trennstrich neben der Marke, ohne Kasten. */
.leiste-kunde { height: 26px; width: auto; max-width: 120px; object-fit: contain; padding-left: 14px; border-left: 1px solid var(--rand); }
@media (prefers-color-scheme: dark) { .leiste-kunde { box-sizing: content-box; height: 22px; padding: 3px 8px; margin-left: 2px; border-left: 0; border-radius: 8px; background: #fff; } }
@media (max-width: 600px) { .leiste-kunde.mit-app { display: none; } }
