/* Cashflow Quartier – Beratungsplattform: gemeinsame Gestaltung für Beraterfenster und Kundenansicht */
@font-face { font-family: "Onest"; font-weight: 400; font-display: swap; src: url("/assets/fonts/onest-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Onest"; font-weight: 600; font-display: swap; src: url("/assets/fonts/onest-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Onest"; font-weight: 700; font-display: swap; src: url("/assets/fonts/onest-latin-700-normal.woff2") format("woff2"); }
:root {
  --bg: #1b1d21; --bg2: #212429; --flaeche: rgba(255,255,255,.035); --flaeche2: rgba(255,255,255,.06);
  --gold: #DFB951; --gold-hell: #ecd28c; --gold-linie: rgba(223,185,81,.30); --gold-zart: rgba(223,185,81,.12);
  --text: #eeebe4; --muted: #a9abaf; --linie: rgba(255,255,255,.10); --warn: #e58a7a; --ok: #8fcf9f;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: "Onest", Arial, Helvetica, sans-serif; color: var(--text); font-size: 16px; line-height: 1.45;
  background-color: var(--bg);
  /* zurückhaltendes Architekturmotiv: diagonale Fassadenlinien, goldenes Netzornament an den Rändern */
  background-image:
    radial-gradient(ellipse at 70% 0%, rgba(223,185,81,.07), transparent 55%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.035'%3E%3Cpath d='M0 160L160 0M-40 160L120 0M40 160L200 0M0 120h160M0 80h160M0 40h160'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420'%3E%3Cg fill='none' stroke='%23DFB951' stroke-opacity='.16' stroke-width='.8'%3E%3Cpath d='M0 0l60 60 60-60M0 60l60 60 60-60M60 0v120M0 30l30 30-30 30M120 30L90 60l30 30'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat, repeat, no-repeat; background-position: 0 0, 0 0, right -40px bottom -40px; background-attachment: fixed; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--gold-hell); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.ic { width: 24px; height: 24px; flex: 0 0 auto; color: var(--gold); }
.ic.gross { width: 46px; height: 46px; }
.versteckt { display: none !important; }

/* Kopfzeile */
.kopf { display: flex; align-items: center; gap: 18px; padding: 12px 22px; border-bottom: 1px solid var(--gold-linie); background: rgba(20,22,25,.75); backdrop-filter: blur(6px); position: sticky; top: 0; z-index: 5; }
.logo { height: 38px; width: auto; }
.kopf-titel { display: flex; flex-direction: column; line-height: 1.2; } .kopf-titel b { font-size: 17px; } .kopf-titel span { color: var(--muted); font-size: 13.5px; }
.start .kopf-titel { font-weight: 700; font-size: 17px; color: var(--gold); }
.kopf-rechts { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.speicher { font-size: 12.5px; color: var(--muted); } .speicher.gespeichert::before { content: "● "; color: var(--ok); } .speicher.aendert::before { content: "● "; color: var(--gold); } .speicher.fehler { color: var(--warn); }

/* Knöpfe */
.knopf { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--gold-linie); background: var(--flaeche); border-radius: 10px; padding: 10px 16px; font-weight: 600; cursor: pointer; color: var(--text); text-decoration: none; }
.knopf:hover { border-color: var(--gold); }
.knopf.gold { background: var(--gold); color: #1b1d21; border-color: var(--gold); } .knopf.gold .ic { color: #1b1d21; width: 20px; height: 20px; }
.knopf.klein { padding: 6px 11px; font-size: 13.5px; border-radius: 8px; } .knopf.klein .ic { width: 18px; height: 18px; }
.knopf.warn { border-color: rgba(229,138,122,.45); color: #f1b2a6; }
.knopf:disabled { opacity: .35; cursor: default; }
.knopf[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); }

/* Felder */
.feld { margin: 12px 0; border: 0; padding: 0; min-width: 0; }
.feld > label, .feld > legend { display: block; font-size: 13.5px; font-weight: 600; color: var(--gold-hell); margin-bottom: 5px; padding: 0; }
.feld input[type=text], .feld input[type=date], .feld input[type=time], .feld input[type=number], .feld input:not([type]), .feld select, .feld textarea, .uebersicht select {
  width: 100%; background: rgba(0,0,0,.22); border: 1px solid var(--gold-linie); border-radius: 9px; padding: 9px 11px; font-size: 15.5px; color: var(--text); min-width: 0; }
.feld textarea { resize: vertical; min-height: 44px; }
.feld select option, .uebersicht select option { background: #24272c; color: var(--text); }
.feld input::placeholder, .feld textarea::placeholder { color: rgba(255,255,255,.32); font-style: italic; }
.feld input[type=date], .feld input[type=time] { color-scheme: dark; }
.hilfe { font-size: 13px; color: var(--muted); margin: 5px 0 0; }
.einheit { position: relative; } .einheit input { padding-right: 96px !important; } .einheit span { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13.5px; }
.wahl > div { display: flex; flex-wrap: wrap; gap: 7px; }
.wahl label { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--linie); border-radius: 999px; padding: 6px 12px; cursor: pointer; font-size: 14.5px; background: var(--flaeche); }
.wahl label:has(input:checked) { border-color: var(--gold); background: var(--gold-zart); color: var(--gold-hell); }
.wahl input { accent-color: var(--gold); margin: 0; }
.leeren { background: none; border: 0; color: var(--muted); font-size: 12.5px; text-decoration: underline; cursor: pointer; padding: 4px 0 0; }
.zwei { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 0 12px; } .drei { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr) auto; gap: 0 12px; align-items: end; }
.haken-feld { display: flex; align-items: center; gap: 7px; margin: 12px 0 22px; font-size: 14.5px; } .haken-feld input { accent-color: var(--gold); width: 18px; height: 18px; }
.info { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: #d9d5ca; background: var(--gold-zart); border-left: 2px solid var(--gold); border-radius: 0 8px 8px 0; padding: 9px 11px; margin: 10px 0; }

/* Startseite */
.startseite { max-width: 980px; margin: 0 auto; padding: 28px 22px 60px; display: grid; gap: 18px; }
.karte { background: rgba(26,28,32,.78); border: 1px solid var(--gold-linie); border-radius: 14px; padding: 20px 22px; }
.karte h1, .karte h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 21px; } .karte h1 { font-size: 26px; }
.karte .hinweis, .leer { color: var(--muted); font-size: 14px; }
.terminliste { list-style: none; padding: 0; margin: 0; } .terminliste li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--linie); flex-wrap: wrap; }
.terminliste span { display: block; color: var(--muted); font-size: 13.5px; } .knoepfe { display: flex; gap: 6px; flex-wrap: wrap; }
.import { margin-top: 14px; }
.anleitung summary { display: flex; gap: 10px; align-items: center; font-weight: 700; font-size: 19px; cursor: pointer; } .anleitung li { margin: 7px 0; }

/* Terminansicht */
.termin, .abschluss { display: flex; flex-direction: column; min-height: 100vh; }
.rahmen { flex: 1; display: grid; grid-template-columns: 236px minmax(0,1fr); min-height: 0; }
.stationen { border-right: 1px solid var(--gold-linie); padding: 14px 10px; overflow-y: auto; max-height: calc(100vh - 128px); position: sticky; top: 63px; }
.stationen ol, .stationen ul { list-style: none; margin: 0; padding: 0; }
.stationen button { display: flex; align-items: center; gap: 8px; width: 100%; background: none; border: 1px solid transparent; border-radius: 8px; padding: 6px 8px; cursor: pointer; text-align: left; font-size: 14.5px; color: var(--text); }
.stationen button:hover { background: var(--flaeche2); }
.stationen button.aktiv { border-color: var(--gold-linie); background: var(--gold-zart); color: var(--gold-hell); font-weight: 700; }
.snr { color: var(--muted); font-size: 12px; width: 16px; text-align: right; }
.marke { width: 14px; text-align: center; color: var(--muted); font-style: normal; } .m-besprochen { color: var(--ok); } .m-vertagt, .m-teilweise { color: var(--gold); } .m-nicht_relevant { color: var(--muted); }
.themenliste { margin: 2px 0 6px 22px !important; border-left: 1px solid var(--gold-linie); } .themenliste button { font-size: 13px; padding: 4px 8px; }
.legende { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 11.5px; color: var(--muted); margin: 14px 6px 0; }
.buehne { display: grid; grid-template-columns: minmax(0,1fr) 420px; min-height: 0; }
.folie { padding: 34px 40px; min-width: 0; container-type: inline-size; }
.doku { border-left: 1px solid var(--gold-linie); padding: 18px 20px 40px; background: rgba(16,17,20,.45); overflow-y: auto; max-height: calc(100vh - 128px); position: sticky; top: 63px; }
.doku-kopf { display: flex; align-items: baseline; gap: 10px; border-bottom: 1px solid var(--gold-linie); padding-bottom: 8px; } .doku-kopf h2 { margin: 0; font-size: 18px; } .nr { color: var(--gold); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.standzeile { padding-bottom: 4px; border-bottom: 1px dashed var(--linie); }
.hinweise { display: none; }
.mit-hinweisen .rahmen { grid-template-columns: 236px minmax(0,1fr) 340px; }
.mit-hinweisen .hinweise { display: block; border-left: 1px dashed rgba(255,255,255,.25); padding: 16px 16px 40px; background: rgba(10,11,13,.7); overflow-y: auto; max-height: calc(100vh - 128px); position: sticky; top: 63px; }
.hinweise-kopf { display: flex; flex-direction: column; margin-bottom: 10px; } .hinweise-kopf b { color: #f0c7bd; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; } .hinweise-kopf span { font-size: 12.5px; color: var(--muted); }
.h { border-top: 1px solid var(--linie); padding: 8px 0; } .h span { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); } .h p { margin: 3px 0 0; font-size: 14.5px; }
.h-s p { color: var(--text); } .h-o p { color: #cfd7e6; } .h-h p { color: #c9c4b4; font-style: italic; }
.leiste { display: flex; align-items: center; gap: 18px; padding: 12px 22px; border-top: 1px solid var(--gold-linie); background: rgba(20,22,25,.9); position: sticky; bottom: 0; z-index: 4; }
.fortschritt { flex: 1; text-align: center; font-size: 13.5px; color: var(--muted); } .balken { height: 3px; background: var(--linie); border-radius: 3px; margin-top: 6px; } .balken i { display: block; height: 100%; background: var(--gold); border-radius: 3px; transition: width .3s; }

/* Folie (Kundenansicht) */
.folie-kopf { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.folie h1 { font-size: clamp(26px, 4.4cqi, 40px); line-height: 1.15; margin: 0; color: var(--gold); font-weight: 700; }
.folie .lead { font-size: clamp(18px, 2.5cqi, 23px); margin: 0 0 22px; }
.punkte { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.punkte li { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--gold-linie); }
.punkte .ic { width: 34px; height: 34px; } .punkte b { display: block; font-size: clamp(18px, 2.5cqi, 22px); } .punkte span { color: #cfccc4; font-size: clamp(16px, 2.1cqi, 19px); }
.schrittfolge { list-style: none; padding: 0; margin: 0 0 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.schrittfolge li { display: flex; align-items: center; gap: 10px; border: 1px solid var(--gold-linie); border-radius: 999px; padding: 9px 16px 9px 9px; font-size: 18px; }
.schrittfolge li span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); font-size: 14px; font-weight: 700; }
.schrittfolge li.erledigt span { background: var(--gold); color: #1b1d21; }
.zweispaltig { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; } .zweispaltig > div + div { border-left: 1px solid var(--gold-linie); padding-left: 40px; }
.zweispaltig h3, .dreispaltig h3 { color: var(--gold); font-size: clamp(19px, 2.7cqi, 24px); margin: 0 0 14px; }
.fragen { padding-left: 20px; margin: 0; font-size: clamp(17px, 2.4cqi, 21px); } .fragen li { margin: 0 0 14px; }
.skala { display: grid; grid-template-columns: repeat(10, minmax(0,1fr)); gap: 6px; }
.skala button { aspect-ratio: 1; border: 1px solid var(--gold-linie); background: var(--flaeche); border-radius: 8px; font-size: 18px; font-weight: 700; cursor: pointer; color: var(--text); min-width: 0; }
.skala button.an { background: var(--gold); color: #1b1d21; border-color: var(--gold); }
.skala.klein button { font-size: 14px; }
.skala-enden { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: 14.5px; color: #cfccc4; } .skala-enden span:last-child { text-align: right; } .skala-enden b { color: var(--gold); }
.frage { font-size: clamp(18px, 2.5cqi, 22px); color: var(--gold-hell); margin-top: 20px; } .frage.gross { font-size: clamp(21px, 3.2cqi, 28px); line-height: 1.35; color: var(--text); }
.budget-anzeige { display: flex; align-items: baseline; gap: 14px; margin: 26px 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--gold); max-width: 520px; } .budget-anzeige .betrag { font-size: 44px; font-weight: 700; color: var(--gold); min-width: 120px; } .budget-anzeige span:last-child { font-size: 20px; }
.budget-art { display: flex; gap: 10px; } .budget-art span { border: 1px solid var(--gold-linie); border-radius: 999px; padding: 8px 16px; font-size: 17px; color: var(--muted); } .budget-art span.an { border-color: var(--gold); color: var(--gold-hell); background: var(--gold-zart); }
.termin-felder { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; } .termin-felder div { border: 1px solid var(--gold-linie); border-radius: 12px; padding: 14px 16px; } .termin-felder span { display: block; color: var(--muted); font-size: 14px; } .termin-felder b { font-size: 21px; color: var(--gold-hell); }
.dreispaltig { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0; } .dreispaltig .box { padding: 0 22px; } .dreispaltig .box + .box { border-left: 1px solid var(--gold-linie); } .dreispaltig .ic { width: 34px; height: 34px; margin-bottom: 8px; } .dreispaltig ul { padding-left: 18px; font-size: 17px; margin: 0; } .dreispaltig li { margin-bottom: 6px; }
.themen-stand { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 26px; }
.mini { border: 1px solid var(--gold-linie); border-radius: 12px; padding: 12px 14px; display: grid; gap: 4px; } .mini b { display: flex; gap: 8px; align-items: center; } .mini span { color: #cfccc4; font-size: 14.5px; }

/* finale Folie 5: drei Spalten, goldene Bereichsüberschriften, feine vertikale Linien */
.themen-folie { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); min-height: 100%; padding-top: 10px; }
.bereich { padding: 0 clamp(10px, 2.4cqi, 26px); min-width: 0; } .bereich + .bereich { border-left: 1px solid var(--gold-linie); }
.bereich h3 { color: var(--gold); font-size: clamp(22px, 3.4cqi, 30px); font-weight: 700; margin: 0 0 22px; }
.bereich ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.thema-knopf { display: flex; align-items: center; gap: 14px; width: 100%; background: none; border: 1px solid transparent; border-radius: 12px; padding: 12px 10px; cursor: pointer; text-align: left; color: var(--text); font-size: clamp(16px, 2.3cqi, 20px); }
.thema-knopf .ic { width: clamp(28px, 4.4cqi, 38px); height: clamp(28px, 4.4cqi, 38px); } .thema-knopf { min-width: 0; gap: clamp(8px, 1.5cqi, 14px); padding: 10px 8px; } .thema-knopf:hover { border-color: var(--gold-linie); background: var(--flaeche); }
.thema-knopf.schwerpunkt { border-color: var(--gold); background: var(--gold-zart); }
.thema-knopf span { flex: 1; min-width: 0; overflow-wrap: break-word; hyphens: auto; } .thema-knopf .haken { color: var(--gold); } .thema-knopf i { font-style: normal; font-size: 13px; }

/* Dokumentation */
.thema { border-top: 1px solid var(--gold-linie); margin-top: 16px; padding-top: 6px; scroll-margin-top: 10px; }
.thema h3 { display: flex; align-items: center; gap: 9px; color: var(--gold); font-size: 17px; margin: 8px 0 4px; }
.reiter { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 0; } .reiter a { font-size: 13.5px; border: 1px solid var(--gold-linie); border-radius: 999px; padding: 4px 11px; text-decoration: none; }
.schritte4 { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; margin: 12px 0 6px; } .schritte4 button { border: 1px solid var(--gold-linie); background: var(--flaeche); border-radius: 7px; padding: 6px 0; cursor: pointer; font-weight: 700; color: var(--text); } .schritte4 button.an { background: var(--gold); color: #1b1d21; }
.doku h3 { font-size: 16px; margin: 12px 0 0; }
.s4-nav { display: flex; justify-content: space-between; margin-top: 14px; }
h3.abschnitt { display: flex; gap: 8px; align-items: center; color: var(--gold); margin-top: 22px !important; border-top: 1px solid var(--gold-linie); padding-top: 12px; }
.zeile { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; align-items: end; } .zeile .feld { margin-bottom: 4px; } .zeile .knopf { margin-bottom: 6px; }
.aufgabe { border: 1px solid var(--linie); border-radius: 10px; padding: 4px 12px 12px; margin: 10px 0; }
.intern { border: 1px dashed rgba(255,255,255,.22); border-radius: 10px; padding: 4px 12px; margin: 10px 0; } .intern > span { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.vermoegen-liste { margin-top: 14px; display: grid; gap: 8px; } .vermoegen-liste h3 { color: var(--gold); }
table.uebersicht { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 10px 0; } .uebersicht th { text-align: left; color: var(--gold-hell); font-weight: 600; padding: 6px 4px; border-bottom: 1px solid var(--gold-linie); } .uebersicht td { padding: 6px 4px; border-bottom: 1px solid var(--linie); vertical-align: top; } .uebersicht small { display: block; color: var(--muted); } .uebersicht select { padding: 5px 6px; font-size: 13px; }

/* Abschluss */
.abschluss-seite { flex: 1; display: grid; grid-template-columns: 400px minmax(0,1fr); gap: 22px; padding: 22px; max-width: 1500px; width: 100%; margin: 0 auto; }
.abschluss-seitenleiste { display: grid; gap: 16px; align-content: start; min-width: 0; } .vorschau { min-width: 0; } .dokument { overflow-wrap: anywhere; } .dokument table { table-layout: fixed; } .export-knoepfe .knopf { white-space: normal; text-align: left; }
.abschluss-seitenleiste .karte { padding: 16px 18px; } .abschluss-seitenleiste h2 { font-size: 18px; }
.luecken { list-style: none; padding: 0; margin: 0; } .luecken li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--linie); font-size: 14px; }
.export-knoepfe { display: grid; gap: 8px; } .exporte { font-size: 13px; color: var(--muted); padding-left: 18px; } .exporte em { color: var(--gold); }
.vorschau-hinweis { color: var(--muted); font-size: 13.5px; margin: 0 0 10px; }
.dokument { border: 1px solid var(--gold-linie); border-radius: 14px; padding: 30px 36px; background: rgba(22,24,27,.85); }
.dokument header { border-bottom: 1px solid var(--gold); padding-bottom: 14px; margin-bottom: 8px; } .doc-logo { height: 42px; } .doc-logo.druck { display: none; }
.dokument h1 { font-size: 26px; margin: 12px 0 4px; color: var(--gold); } .dokument .stand { color: var(--muted); font-size: 13px; margin: 0; }
.dokument section { padding: 12px 0; border-bottom: 1px solid var(--linie); break-inside: auto; }
.dokument h2 { display: flex; align-items: center; gap: 10px; font-size: 19px; margin: 8px 0; color: var(--gold-hell); break-after: avoid; } .dokument h2 span { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--gold); border-radius: 50%; font-size: 13px; color: var(--gold); flex: 0 0 auto; }
.dokument h3 { font-size: 16px; margin: 12px 0 4px; } .dokument h3 small { font-weight: 400; color: var(--muted); font-size: 13px; }
.dokument dl { margin: 0; } .dokument dl > div { display: grid; grid-template-columns: 250px minmax(0,1fr); gap: 12px; padding: 5px 0; break-inside: avoid; } .dokument dt { color: var(--muted); font-size: 14px; } .dokument dd { margin: 0; }
.dokument em { font-style: normal; font-size: 11px; border-radius: 4px; padding: 1px 6px; margin-left: 4px; white-space: nowrap; } .tag-vereinbart { background: var(--gold); color: #1b1d21; } .tag-berater { border: 1px solid var(--linie); color: var(--muted); }
.dokument table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 14px; } .dokument th, .dokument td { text-align: left; padding: 6px; border-bottom: 1px solid var(--linie); }
.dokument footer { font-size: 12.5px; color: var(--muted); padding-top: 12px; }
.gruppe { padding: 2px 0 6px; }

/* Schrittweise Freigabe: Beraterfenster zeigt Verborgenes abgeschwächt als Vorschau, die Kundenansicht lässt es weg */
.verborgen { opacity: .35; outline: 1px dashed var(--gold-linie); outline-offset: 4px; border-radius: 6px; }
.freigabe { border: 1px solid var(--gold-linie); border-radius: 12px; padding: 12px 14px; margin: 14px 0 6px; background: rgba(0,0,0,.18); }
.freigabe-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; } .freigabe-kopf b { color: var(--gold-hell); font-size: 13.5px; } .freigabe-kopf span { color: var(--muted); font-size: 12.5px; }
.frei-liste { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.frei-chip { border: 1px solid var(--linie); background: var(--flaeche); color: var(--muted); border-radius: 999px; padding: 5px 11px; font: inherit; font-size: 13px; cursor: pointer; }
.frei-chip:hover { border-color: var(--gold-linie); } .frei-chip.an { border-color: var(--gold); color: var(--gold-hell); background: var(--gold-zart); } .frei-chip:disabled { cursor: default; }
.freigabe-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; }
/* Prioritäten: Rangfolge */
.rangstatus { display: inline-block; border: 1px solid var(--gold-linie); border-radius: 999px; padding: 6px 14px; font-size: 15px; color: var(--muted); margin: 0 0 16px; } .rangstatus.ok { border-color: var(--gold); color: var(--gold-hell); background: var(--gold-zart); } .rangstatus.klein { font-size: 13px; padding: 4px 11px; margin: 6px 0 4px; }
.rangliste { list-style: none; padding: 0; margin: 0; } .rangliste.zwei { columns: 2; column-gap: 40px; }
.rangliste li { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--gold-linie); break-inside: avoid; font-size: clamp(17px, 2.3cqi, 21px); }
.rangliste .rang { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 auto; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); font-weight: 700; font-size: 15px; }
.rangliste small { color: var(--muted); font-size: 13px; margin-left: auto; padding-left: 8px; text-align: right; }
.rang-edit { list-style: none; padding: 0; margin: 8px 0 12px; }
.rang-edit li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--linie); border-radius: 9px; margin-bottom: 6px; background: var(--flaeche); cursor: grab; font-size: 14.5px; }
.rang-edit li b { color: var(--gold); min-width: 22px; } .rang-edit .griff { color: var(--muted); letter-spacing: -2px; } .rang-edit .rang-knoepfe { margin-left: auto; display: flex; gap: 4px; } .rang-edit .knopf.klein { padding: 3px 10px; }

@media (max-width: 1280px) { .buehne { grid-template-columns: minmax(0,1fr) 360px; } .mit-hinweisen .rahmen { grid-template-columns: 200px minmax(0,1fr) 300px; } .rahmen { grid-template-columns: 200px minmax(0,1fr); } }
@media (max-width: 1050px) {
  .rahmen, .mit-hinweisen .rahmen { grid-template-columns: minmax(0,1fr); }
  .stationen { position: static; max-height: none; border-right: 0; border-bottom: 1px solid var(--gold-linie); overflow-x: auto; padding: 8px; }
  .stationen > ol { display: flex; gap: 4px; } .stationen > ol > li { flex: 0 0 auto; } .themenliste, .legende { display: none !important; } .stationen button { white-space: nowrap; }
  .buehne { grid-template-columns: minmax(0,1fr); } .doku, .mit-hinweisen .hinweise { position: static; max-height: none; border-left: 0; border-top: 1px solid var(--gold-linie); }
  .abschluss-seite { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 700px) {
  .kopf { flex-wrap: wrap; padding: 10px 14px; } .logo { height: 30px; } .kopf-rechts { margin-left: 0; width: 100%; justify-content: flex-start; }
  .folie { padding: 20px 16px; } .doku { padding: 14px 16px 30px; }
  .zweispaltig, .themen-folie, .dreispaltig, .termin-felder, .zwei, .drei { grid-template-columns: minmax(0,1fr); }
  .zweispaltig > div + div { border-left: 0; padding-left: 0; margin-top: 18px; } .bereich, .dreispaltig .box { padding: 0; } .bereich + .bereich, .dreispaltig .box + .box { border-left: 0; border-top: 1px solid var(--gold-linie); padding-top: 14px; margin-top: 14px; }
  .leiste { padding: 10px 14px; gap: 10px; } .startseite, .abschluss-seite { padding: 16px; } .dokument { padding: 18px 16px; } .dokument dl > div { grid-template-columns: minmax(0,1fr); gap: 0; }
  .terminliste li { align-items: flex-start; }
  .rangliste.zwei { columns: 1; }
}

/* Druck: nur die Kundenfassung, hell und gut lesbar */
@media print {
  @page { size: A4; margin: 16mm 15mm; }
  body { background: #fff !important; color: #1a1a1a; font-size: 11pt; }
  .kopf, .abschluss-seitenleiste, .vorschau-hinweis, .leiste, .stationen, .hinweise { display: none !important; }
  .abschluss-seite { display: block; padding: 0; } .dokument { border: 0; padding: 0; background: #fff; }
  .doc-logo.bildschirm { display: none; } .doc-logo.druck { display: block; height: 34px; }
  .dokument h1 { color: #8a6a12; } .dokument h2 { color: #1a1a1a; } .dokument h2 span { border-color: #b8922b; color: #8a6a12; }
  .dokument header { border-color: #b8922b; } .dokument section, .dokument th, .dokument td { border-color: #ddd; }
  .dokument dt, .dokument .stand, .dokument footer, .dokument h3 small, .leer { color: #555; }
  .tag-vereinbart { background: #f1e3b8; color: #5b4510; } .tag-berater { border-color: #bbb; color: #555; }
  .dokument dl > div { grid-template-columns: 62mm minmax(0,1fr); }
}
.knopf.gold-rand { border-color: var(--gold); color: var(--gold-hell); }
