/* Belegportal – Gestaltung angelehnt an die Bildsprache klassischer Buchhaltungssoftware (Lexware-Stil):
   dunkle Kopfleisten, helle Seitennavigation mit farbigen Gruppenstreifen, stahlblaue Arbeitsflaeche,
   weisse Kacheln mit roten Liniensymbolen, Assistenten-Schritte mit gruenen/blauen Kreisen.
   Keine externen Schriften oder CDNs. */
:root {
    --titel: #2b3a4a;
    --schnell: #3b4f63;
    --schnell-hover: #4b6178;
    --nav: #eceef0;
    --nav-linie: #d6dade;
    --nav-titel: #e2e5e8;
    --buehne: #7e9bbf;
    --buehne-dunkel: #6c89ad;
    --flaeche: #ffffff;
    --flaeche-2: #f5f6f7;
    --linie: #d4d8dc;
    --tinte: #2b2f33;
    --tinte-weich: #626b74;
    --blau: #0b78d0;
    --blau-dunkel: #095fa6;
    --blau-hell: #e3f0fb;
    --gruen: #1f7a34;
    --gruen-hell: #e3f2e6;
    --rot: #cf3338;
    --rot-hell: #fbe7e7;
    --orange: #ee7d1e;
    --orange-hell: #fdf0e3;
    --stempel: #1e4f8f;
    --stempel-hell: #edf2fa;
    --g-zentrale: #4a5560;
    --g-belege: #79b03f;
    --g-freigabe: #3d8fd6;
    --g-buchhaltung: #cf3338;
    --g-verwaltung: #ee7d1e;
    --g-konto: #8a96a3;
    --schrift: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--buehne); color: var(--tinte); font: 14.5px/1.5 var(--schrift); }
a { color: var(--blau-dunkel); }
a:hover { color: var(--blau); }
h1 { font-size: 1.55rem; font-weight: 300; margin: 0 0 1rem; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; text-wrap: balance; }
.inhalt > h1, .buehne-kopf h1, .seiten-kopf h1 { color: #fff; }
h1 small { font-size: .85rem; font-weight: 400; opacity: .85; }
h2 { font-size: 1.02rem; font-weight: 600; margin: 0 0 .75rem; display: flex; align-items: center; gap: .5rem; }
code, .hash { font-family: var(--mono); font-size: .85em; }
.hash { word-break: break-all; color: var(--tinte-weich); }
.nur-vorleser { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sym { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.zurueck, .inhalt > p > a.zurueck { color: #fff; }

/* ---------- Titelleiste und Schnellleiste ---------- */
.titelleiste { background: var(--titel); color: #e8edf2; display: flex; align-items: center; gap: 1rem; min-height: 40px; padding: 0 .9rem; }
.marke { display: inline-flex; align-items: center; gap: .5rem; color: #fff; text-decoration: none; font-weight: 600; }
.marke:hover { color: #fff; }
.marke-zeichen { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 3px; background: var(--rot); color: #fff; font-weight: 700; font-size: .9rem; }
.marke-zeichen.gross { width: 46px; height: 46px; font-size: 1.5rem; border-radius: 4px; }
.titel-mandant { color: #b9c5d1; font-size: .88rem; }
.titel-rechts { margin-left: auto; display: flex; align-items: center; gap: .9rem; }
.rollen-marke { font-size: .78rem; background: rgba(255,255,255,.12); padding: .1rem .55rem; border-radius: 2px; }
.titel-knopf { background: none; border: 1px solid rgba(255,255,255,.35); color: #fff; min-height: 28px; padding: .1rem .7rem; font-weight: 400; font-size: .85rem; }
.titel-knopf:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.menue-knopf { display: none; background: none; border: 0; color: #fff; min-height: 36px; padding: .2rem; }
.menue-knopf:hover { background: rgba(255,255,255,.1); }
.menue-knopf .sym { width: 24px; height: 24px; }

.schnellleiste { background: var(--schnell); display: flex; justify-content: space-between; align-items: stretch; gap: 1rem; padding: 0 .9rem 0 calc(240px + .9rem); min-height: 48px; overflow-x: auto; }
.schnell-links, .schnell-rechts { display: flex; align-items: stretch; gap: .15rem; }
.schnellleiste a, .schnell-benutzer { display: inline-flex; align-items: center; gap: .45rem; padding: 0 .75rem; color: #fff; text-decoration: none; font-size: .92rem; white-space: nowrap; }
.schnellleiste a:hover { background: var(--schnell-hover); color: #fff; }
.schnellleiste a.aktiv { box-shadow: inset 0 -3px 0 var(--orange); }
.schnell-benutzer { color: #dfe6ee; }

/* ---------- Rahmen mit Seitennavigation ---------- */
.rahmen { display: flex; min-height: calc(100vh - 88px); }
.navigation { width: 240px; flex: 0 0 240px; background: var(--nav); border-right: 1px solid #c9ced3; margin-top: -48px; position: relative; z-index: 2; }
.nav-kopf { background: var(--schnell); color: #fff; height: 48px; display: flex; align-items: center; padding: 0 1rem; font-size: .92rem; border-bottom: 1px solid #2f4152; }
.mandant-wahl { padding: .75rem .9rem; background: #d9dde1; border-bottom: 1px solid var(--nav-linie); }
.mandant-wahl select { width: 100%; border: 1px solid #b7bec5; background: #fff; font-weight: 600; }
.nav-gruppe { border-bottom: 1px solid var(--nav-linie); }
.nav-titel { background: var(--nav-titel); padding: .45rem .9rem .45rem 1rem; font-size: .9rem; font-weight: 600; color: #36404a;
    border-left: 5px solid var(--g-zentrale); }
.g-belege .nav-titel { border-left-color: var(--g-belege); }
.g-freigabe .nav-titel { border-left-color: var(--g-freigabe); }
.g-buchhaltung .nav-titel { border-left-color: var(--g-buchhaltung); }
.g-verwaltung .nav-titel { border-left-color: var(--g-verwaltung); }
.g-konto .nav-titel { border-left-color: var(--g-konto); }
.navigation a { display: flex; align-items: center; gap: .55rem; padding: .42rem .9rem .42rem 1.6rem; color: #2f363d; text-decoration: none; font-size: .9rem; }
.navigation a .sym { width: 17px; height: 17px; color: #75808b; }
.navigation a:hover { background: #fff; color: var(--blau-dunkel); }
.navigation a.aktiv { background: #fff; color: var(--blau-dunkel); font-weight: 600; box-shadow: inset 3px 0 0 var(--blau); }

.inhalt { flex: 1; min-width: 0; padding: 1.4rem 1.6rem 3rem; max-width: 1500px; }
.seiten-kopf { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.seiten-kopf h1 { margin: 0; }
.buehne-kopf { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.buehne-kopf h1 { margin: 0; }
.reiter { display: flex; }
.reiter > * { padding: .5rem 1.1rem; font-size: .95rem; text-decoration: none; display: inline-flex; align-items: center; gap: .5rem; }
.reiter-aktiv { background: #fff; color: var(--tinte); }
.reiter a { background: var(--schnell); color: #fff; }
.reiter a:hover { background: var(--schnell-hover); color: #fff; }

/* ---------- Kacheln (Startseite) ---------- */
.kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 1.1rem; margin-bottom: 1.4rem; }
.kachel { position: relative; background: var(--flaeche); min-height: 140px; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: .75rem; padding: 1rem .75rem; text-decoration: none; color: var(--tinte); text-align: center; border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 1px 2px rgba(20,40,70,.15); transition: transform .12s, box-shadow .12s; }
.kachel:hover { color: var(--tinte); box-shadow: 0 4px 12px rgba(20,40,70,.25); transform: translateY(-2px); }
.kachel-sym { width: 46px; height: 46px; fill: none; stroke: var(--rot); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.kachel-text { font-size: .95rem; }
.plakette { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 .4rem; border-radius: 11px;
    background: var(--orange); color: #fff; font-size: .78rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.kachel-plakette { position: absolute; top: -9px; right: -9px; min-width: 26px; height: 26px; border-radius: 13px; font-size: .85rem; box-shadow: 0 1px 3px rgba(0,0,0,.25); }

.ablaufband { display: flex; align-items: stretch; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.4rem; }
.ablauf-schritt { background: rgba(255,255,255,.9); display: flex; align-items: center; gap: .6rem; padding: .55rem .9rem; text-decoration: none; color: var(--tinte); flex: 1 1 140px; }
.ablauf-schritt:hover { background: #fff; color: var(--tinte); }
.ablauf-zahl { font-size: 1.35rem; font-weight: 300; color: var(--blau-dunkel); font-variant-numeric: tabular-nums; min-width: 1.4em; text-align: right; }
.ablauf-pfeil { align-self: center; width: 0; height: 0; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 9px solid rgba(255,255,255,.75); }

.fussleiste { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1.6rem; }
.fuss-knopf { background: var(--titel); color: #fff; text-decoration: none; padding: .85rem 1.6rem; display: inline-flex; align-items: center; gap: .7rem; font-size: 1rem; min-width: 260px; justify-content: center; }
.fuss-knopf:hover { background: #22303d; color: #fff; }
.fuss-ausruf { display: inline-grid; place-items: center; width: 26px; height: 26px; border: 2px solid #fff; border-radius: 50%; font-weight: 700; }

/* ---------- Schrittleiste (Assistent) ---------- */
.schrittleiste { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; background: var(--flaeche); box-shadow: 0 1px 2px rgba(20,40,70,.15); overflow-x: auto; }
.schritt { flex: 1 1 0; display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; min-width: 150px; font-size: .88rem; border-right: 1px solid var(--linie); color: var(--tinte-weich); }
.schritt:last-child { border-right: 0; }
.schritt-kreis { flex: 0 0 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 1rem;
    background: #fff; border: 2px solid #b8c0c8; color: #8a949e; }
.schritt-kreis .sym { width: 18px; height: 18px; stroke-width: 2.6; }
.schritt-text small { display: block; font-size: .75rem; }
.schritt.erledigt { color: var(--tinte); }
.schritt.erledigt .schritt-kreis { background: var(--gruen); border-color: var(--gruen); color: #fff; }
.schritt.aktuell { background: var(--blau); color: #fff; font-weight: 600; }
.schritt.aktuell .schritt-kreis { background: #fff; border-color: #fff; color: var(--blau); }
.schritt.zurueck { background: var(--rot); color: #fff; font-weight: 600; }
.schritt.zurueck .schritt-kreis { background: #fff; border-color: #fff; color: var(--rot); }

/* ---------- Karten, Raster ---------- */
.karte { background: var(--flaeche); padding: 1.1rem 1.25rem; margin-bottom: 1rem; box-shadow: 0 1px 2px rgba(20,40,70,.15); }
.karte.hervorgehoben { box-shadow: inset 5px 0 0 var(--rot), 0 1px 2px rgba(20,40,70,.15); }
.raster-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.raster-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 1rem; align-items: end; }
.raster-2.oben { align-items: start; gap: 1rem; }
.zwei-spalten { display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: start; }
.geteilt { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, 1fr); gap: 1rem; align-items: start; }
.vorschau { position: sticky; top: 1rem; }
.vorschau iframe { width: 100%; height: calc(100vh - 220px); min-height: 480px; border: 1px solid var(--linie); background: #fff; }
.vorschau img { max-width: 100%; height: auto; display: block; border: 1px solid var(--linie); }

/* ---------- Formulare und Schaltflaechen ---------- */
label { display: block; font-size: .85rem; font-weight: 600; margin: .6rem 0 .25rem; }
label small { font-weight: 400; color: var(--tinte-weich); }
input[type=text], input[type=password], input[type=date], input[type=number], input[type=file], input[type=search], select, textarea {
    width: 100%; padding: .45rem .55rem; font: inherit; color: var(--tinte); background: #fff; border: 1px solid #aeb6be; border-radius: 0; min-height: 36px; }
input:focus, select:focus, textarea:focus { border-color: var(--blau); outline: 1px solid var(--blau); outline-offset: 0; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset:disabled input, fieldset:disabled select { background: var(--flaeche-2); color: var(--tinte); border-color: var(--linie); }
.formular { max-width: 30rem; }
.formular.breit { max-width: 46rem; }
.formular.schmal { max-width: 26rem; }
.formular button, .formular .knopf { margin-top: 1rem; }
.feld.fehlerhaft input, .feld.fehlerhaft select, table.fehlerhaft { border-color: var(--rot); outline: 1px solid var(--rot); }
.haken { display: flex; align-items: center; gap: .5rem; font-weight: 400; }
.haken input { width: 17px; height: 17px; }
.code-feld { font-family: var(--mono); font-size: 1.3rem; letter-spacing: .2em; text-align: center; }
.inline-formular { display: flex; flex-wrap: wrap; align-items: end; gap: .5rem 1rem; }
.inline-formular label { margin: 0; }
.inline-formular select { width: auto; min-width: 12rem; }
.filter { display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: end; }
.filter .feld { flex: 1 1 10rem; }
.filter .knoepfe { flex: 0 0 auto; display: flex; gap: .5rem; padding-bottom: 1px; }

/* Schaltflaechen wie in Desktop-Dialogen: primaer blau, sonst hellgrau mit Rahmen */
button, .knopf { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 34px; padding: .35rem 1.1rem;
    font: inherit; font-size: .92rem; border-radius: 0; border: 1px solid var(--blau); background: var(--blau); color: #fff; text-decoration: none; cursor: pointer; touch-action: manipulation; }
button:hover, .knopf:hover { background: var(--blau-dunkel); border-color: var(--blau-dunkel); color: #fff; }
button.sekundaer, .knopf.sekundaer { background: #e5e5e5; color: #111; border-color: #adadad; }
button.sekundaer:hover, .knopf.sekundaer:hover { background: #e5f1fb; border-color: var(--blau); color: #111; }
button.gefahr { background: var(--rot); border-color: var(--rot); }
button.gefahr:hover { background: #ad272c; border-color: #ad272c; }
button.freigabe { background: var(--gruen); border-color: var(--gruen); }
button.freigabe:hover { background: #17612a; border-color: #17612a; }
button.klein, .knopf.klein { min-height: 28px; padding: .15rem .7rem; font-size: .85rem; }
.link-knopf { background: none; border: 0; color: var(--blau-dunkel); padding: 0; min-height: 0; text-decoration: underline; }
.link-knopf:hover { background: none; color: var(--blau); }
.knopf-reihe { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.seiten-kopf .knopf, .buehne-kopf .knopf { box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.seiten-kopf .knopf.sekundaer { background: #fff; }

/* ---------- Tabellen ---------- */
.tabelle-rahmen { overflow-x: auto; }
.tabelle { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tabelle th { text-align: left; font-weight: 600; color: #3a434c; background: #eef1f4; border-bottom: 1px solid #c9d0d7; padding: .45rem .55rem; white-space: nowrap; }
.tabelle td { border-bottom: 1px solid #e6e9ec; padding: .45rem .55rem; vertical-align: top; }
.tabelle tbody tr:nth-child(even) { background: #fafbfc; }
.tabelle tbody tr:hover { background: var(--blau-hell); }
.tabelle .zahl, input.zahl { text-align: right; font-variant-numeric: tabular-nums; }
.tabelle th.schmal { width: 2rem; }
.buchungszeilen td { padding: .25rem .2rem; }
.buchungszeilen input, .buchungszeilen select { min-height: 32px; padding: .3rem .4rem; }
.buchungszeilen td:nth-child(1) { width: 22%; } .buchungszeilen td:nth-child(2) { width: 12%; }
tr.inaktiv td { color: var(--tinte-weich); }
.nowrap { white-space: nowrap; }
.protokoll .details-spalte { font-family: var(--mono); font-size: .78rem; max-width: 34rem; word-break: break-word; color: var(--tinte-weich); }

/* ---------- Status, Marken ---------- */
.status { display: inline-block; font-size: .77rem; font-weight: 600; padding: .1rem .5rem; border-radius: 2px; background: #e6e9ec; color: var(--tinte); white-space: nowrap; }
h1 .status { font-size: .8rem; }
.s-eingereicht, .s-freigabe_1 { background: var(--blau-hell); color: var(--blau-dunkel); }
.s-freigabe_2, .s-importiert, .st-abgeschlossen { background: var(--gruen-hell); color: var(--gruen); }
.s-zurueckgegeben, .s-storniert, .st-storniert { background: var(--rot-hell); color: #a5262b; }
.s-im_stapel, .st-erzeugt { background: var(--orange-hell); color: #a3520c; }
.anzahl { font-size: .78rem; font-weight: 700; background: var(--orange); color: #fff; border-radius: 11px; padding: 0 .5rem; min-width: 22px; text-align: center; }
.marke-klein { display: inline-block; font-size: .72rem; font-weight: 600; padding: 0 .4rem; background: #eef1f4; border: 1px solid var(--linie); }
.marke-klein.warn { background: var(--orange-hell); color: #a3520c; border-color: #f2c79c; }
.nur-lesen { font-size: .75rem; font-weight: 600; color: var(--tinte-weich); border: 1px solid var(--linie); padding: 0 .4rem; }
.begruendung { font-size: .85rem; color: #a5262b; margin-top: .2rem; white-space: pre-line; }

/* ---------- Freigabestempel ---------- */
.stempel { display: block; border: 2px solid var(--stempel); color: var(--stempel); background: var(--stempel-hell); padding: .45rem .7rem; margin-bottom: .5rem;
    font-family: var(--mono); font-size: .82rem; font-weight: 700; letter-spacing: .02em; transform: rotate(-.4deg); }
.stempel.gross { font-size: 1rem; padding: .7rem 1rem; }
.stempel.ungueltig { border-style: dashed; border-color: #9aa39d; color: #7a847e; background: #f1f2f0; text-decoration: line-through; transform: none; }
.stempel-grund { display: block; text-decoration: none; font-weight: 400; font-family: var(--schrift); font-size: .8rem; }

/* ---------- Meldungen ---------- */
.meldung { padding: .65rem .9rem; margin-bottom: .75rem; border-left: 5px solid; background: #fff; box-shadow: 0 1px 2px rgba(20,40,70,.15); }
.meldung.ok { border-color: var(--gruen); }
.meldung.fehler { border-color: var(--rot); color: #7c1d21; }
.meldung.hinweis { border-color: var(--orange); }
.meldung.temp-passwort code { font-size: 1.15rem; background: var(--flaeche-2); padding: .1rem .4rem; }
.leer { color: var(--tinte-weich); font-style: italic; margin: 0; }
.hinweis-text { font-size: .86rem; color: var(--tinte-weich); }
.klein-text { font-size: .82rem; color: var(--tinte-weich); }

/* ---------- Upload ---------- */
.ablagezone { border: 2px dashed #9fb0c3; padding: 2.2rem 1rem; text-align: center; background: #f4f7fa; margin-bottom: 1rem; }
.ablagezone.aktiv { border-color: var(--blau); background: var(--blau-hell); }
.datei-feld { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dateiliste { list-style: none; padding: 0; margin: 1rem auto 0; max-width: 32rem; text-align: left; }
.dateiliste li { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; border-bottom: 1px solid var(--linie); font-size: .9rem; }
.dateiliste li.zu-gross { color: var(--rot); }

/* ---------- Aktionen, Verlauf, Details ---------- */
.aktionen form { margin-bottom: .75rem; }
.aktionen details { border-top: 1px solid var(--linie); padding-top: .6rem; margin-top: .6rem; }
.aktionen summary { cursor: pointer; font-weight: 600; color: var(--blau-dunkel); }
.verlauf { list-style: none; margin: 0; padding: 0; font-size: .88rem; }
.verlauf li { padding: .4rem 0 .4rem .9rem; border-left: 2px solid var(--linie); position: relative; }
.verlauf li::before { content: ""; position: absolute; left: -5px; top: .75rem; width: 8px; height: 8px; border-radius: 50%; background: var(--blau); }
.verlauf-zeit { color: var(--tinte-weich); font-variant-numeric: tabular-nums; margin-right: .35rem; }
.einfache-liste { margin: 0; padding-left: 1.1rem; }
.details { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.25rem; margin: 0 0 1rem; }
.details dt { color: var(--tinte-weich); font-size: .88rem; }
.details dd { margin: 0; }
.qr svg { width: 220px; height: 220px; display: block; background: #fff; padding: 6px; border: 1px solid var(--linie); }
.geheimnis { word-break: break-all; }
.backup-codes { columns: 2; font-size: 1.1rem; }

/* ---------- Anmeldung ---------- */
.gast-seite { display: grid; min-height: 100vh; place-items: start center; background: linear-gradient(var(--titel) 0 56px, var(--buehne) 56px); }
.gast { width: 100%; max-width: 27rem; padding: 4.5rem 1rem 3rem; }
.gast-kopf { text-align: center; margin-bottom: 1.4rem; color: #fff; }
.gast-kopf h1 { justify-content: center; margin: .7rem 0 .2rem; color: #fff; }
.gast-kopf p { margin: 0; opacity: .9; }
.gast .formular { max-width: none; }
.gast .formular button { width: 100%; }
.gast .klein-text, .gast .klein-text a { color: #f2f5f9; }

/* ---------- Deckblatt (Druck) ---------- */
.deckblatt-seite { background: #fff; }
.deckblatt { max-width: 900px; margin: 0 auto; padding: 1.5rem; }
.deckblatt h1 { color: var(--tinte); font-weight: 600; }
.deckblatt header { border-bottom: 2px solid var(--tinte); margin-bottom: 1rem; }
.deckblatt-kopf { width: 100%; border-collapse: collapse; margin-bottom: 1.25rem; font-size: .92rem; }
.deckblatt-kopf th, .deckblatt-kopf td { border: 1px solid var(--linie); padding: .4rem .55rem; text-align: left; vertical-align: top; }
.deckblatt-kopf th { background: var(--flaeche-2); width: 18%; font-weight: 600; }

/* ---------- Schmale Bildschirme ---------- */
@media (max-width: 1100px) {
    .geteilt { grid-template-columns: 1fr; }
    .vorschau { position: static; }
    .vorschau iframe { height: 70vh; }
}
@media (max-width: 900px) {
    .menue-knopf { display: inline-flex; }
    .titel-mandant { display: none; }
    .schnellleiste { padding-left: .5rem; }
    .navigation { position: fixed; top: 0; left: 0; bottom: 0; margin: 0; overflow-y: auto; transform: translateX(-100%); transition: transform .2s;
        z-index: 20; box-shadow: 2px 0 12px rgba(0,0,0,.3); }
    .navigation.offen { transform: none; }
    .inhalt { padding: 1rem; }
    .schnell-benutzer { display: none; }
}
@media (max-width: 700px) {
    .raster-2, .raster-3, .zwei-spalten, .raster-2.oben { grid-template-columns: 1fr; }
    .kacheln { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
    .kachel { min-height: 118px; }
    .rollen-marke { display: none; }
    .fuss-knopf { min-width: 0; flex: 1 1 100%; }
    .ablauf-pfeil { display: none; }
}
@media print {
    .nicht-drucken, .titelleiste, .schnellleiste, .navigation { display: none !important; }
    body, .deckblatt-seite { background: #fff; }
    .stempel { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Text direkt auf der stahlblauen Flaeche */
.inhalt > p, .inhalt > .hinweis-text, .inhalt > p.hinweis-text, .inhalt > .klein-text { color: #fff; }
.inhalt > p a { color: #fff; }
.anzahl.null { background: #c3cad1; }
.mandant-wahl select { font-size: .86rem; }
@media (max-width: 900px) { .navigation:not(.offen) { box-shadow: none; visibility: hidden; } .navigation.offen { visibility: visible; } }
.zuordnung { border: 1px solid var(--linie); padding: .4rem 1rem 1rem; margin: 1rem 0; }
.zuordnung legend { font-weight: 600; padding: 0 .3rem; }
.label-text { font-size: .85rem; font-weight: 600; margin: .8rem 0 .3rem; }
.haken-liste { display: grid; gap: .2rem; max-height: 14rem; overflow-y: auto; }
.tabellen-label { margin: 0; font-weight: 400; font-size: .9rem; }
