/* Verwaltung fewoforyou24 – ruhig, sachlich, Handy zuerst. Markenfarben aus dem Logo. */
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/nunito-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/nunito-sans-latin-700-normal.woff2') format('woff2'); }

:root {
  --creme: #FFF0B5;
  --rosa: #FFC5DC;
  --pink: #F05AAE;
  --tuerkis: #35D6D0;
  --tuerkis-hell: #DDF7F5;
  --flieder: #D9A2F5;
  --flieder-hell: #F3E3FB;
  --pflaume: #49364F;
  --pflaume-2: #6B5872;
  --bg: #FFFBF3;
  --flaeche: #FFFFFF;
  --flaeche-2: #FBF6EE;
  --linie: #ECE2D6;
  --linie-2: #DCCFC0;
  --text: #3A2B40;
  --text-2: #6E6074;
  --ok: #2E7D5B;
  --ok-hell: #E2F3EA;
  --warn: #9A5B00;
  --warn-hell: #FDF0D5;
  --gefahr: #B3261E;
  --gefahr-hell: #FBE5E3;
  --fokus: #F05AAE;
  /* Belegungsarten */
  --typ-buchung: #35D6D0;
  --typ-anfrage: #F6C453;
  --typ-extern: #D9A2F5;
  --typ-sperre: #C9C0CC;
  --typ-frei: transparent;
  --radius: 14px;
  --radius-k: 10px;
  --schatten: 0 1px 2px rgba(73, 54, 79, .06), 0 4px 16px rgba(73, 54, 79, .05);
  --unten-h: 64px;
  --demo-h: 0px;
  --schrift: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --titel: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  color-scheme: light;
}
.ist-demo { --demo-h: 36px; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--schrift); font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { color: var(--pflaume); margin: 0; line-height: 1.2; }
h1, h2 { font-family: var(--titel); font-weight: 600; }
a { color: var(--pflaume); }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; }
.klein { font-size: .875rem; }
.still { color: var(--text-2); }
.gefahr-text { color: var(--gefahr) !important; }
.warn-text { color: var(--warn); }
.rechts-buendig { display: flex; justify-content: flex-end; margin-top: .5rem; }
.ellipse { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.betrag { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 700; }

/* ---------- Icons ---------- */
.ic { display: inline-flex; width: 1.25em; height: 1.25em; flex: none; }
.ic svg { width: 100%; height: 100%; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 48px; padding: .6rem 1.1rem; border-radius: 12px; border: 1.5px solid transparent; background: var(--flaeche); color: var(--pflaume); font-weight: 700; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .05s; -webkit-tap-highlight-color: transparent; position: relative; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primaer { background: var(--pflaume); color: #fff; }
.btn-primaer:hover:not(:disabled) { background: #3a2a40; }
.btn-tuerkis { background: var(--tuerkis); color: var(--pflaume); }
.btn-tuerkis:hover:not(:disabled) { background: #2cc4be; }
.btn-leise { border-color: var(--linie-2); background: var(--flaeche); }
.btn-leise:hover:not(:disabled) { border-color: var(--pflaume-2); background: var(--flaeche-2); }
.btn-gefahr { border-color: #e3b7b3; color: var(--gefahr); background: var(--flaeche); }
.btn-gefahr:hover:not(:disabled) { background: var(--gefahr-hell); }
.btn-gefahr-voll { background: var(--gefahr); color: #fff; }
.btn-breit { width: 100%; }
.btn-gross { width: 100%; min-height: 56px; font-size: 1.05rem; }
.btn-klein { min-height: 40px; padding: .35rem .8rem; font-size: .9rem; border-radius: 10px; }
.btn.laedt { color: transparent !important; pointer-events: none; }
.btn.laedt::after { content: ''; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid currentColor; border-color: var(--pflaume-2) transparent var(--pflaume-2) transparent; animation: drehen .8s linear infinite; }
.btn-primaer.laedt::after, .btn-gefahr-voll.laedt::after { border-color: #fff transparent #fff transparent; }
@keyframes drehen { to { transform: rotate(360deg); } }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border: 0; background: transparent; border-radius: 10px; color: var(--pflaume); cursor: pointer; font-size: 1.3rem; text-decoration: none; }
.icon-btn:hover { background: var(--flaeche-2); }
.link { background: none; border: 0; padding: .5rem 0; color: var(--pflaume-2); text-decoration: underline; cursor: pointer; font-size: .95rem; min-height: 44px; display: inline-flex; align-items: center; }
.knopf-reihe { display: flex; flex-wrap: wrap; gap: .5rem; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 700; line-height: 1.5; white-space: nowrap; background: var(--flaeche-2); color: var(--text-2); border: 1px solid var(--linie); }
.badge-gross { font-size: .9rem; padding: .3rem .75rem; }
.st-anfrage { background: var(--warn-hell); color: var(--warn); border-color: #f2d9a6; }
.st-bestaetigt { background: var(--tuerkis-hell); color: #11615d; border-color: #b4ebe8; }
.st-abgelehnt, .st-storniert { background: #F1EDF2; color: var(--text-2); border-color: #e1d9e3; }
.st-ok { background: var(--ok-hell); color: var(--ok); border-color: #bfe3cf; }
.st-warn { background: var(--warn-hell); color: var(--warn); border-color: #f2d9a6; }
.st-gefahr { background: var(--gefahr-hell); color: var(--gefahr); border-color: #f1c2bd; }
.st-neutral { background: var(--flaeche-2); color: var(--text-2); }

/* ---------- Formulare ---------- */
.feld { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .9rem; min-width: 0; }
.feld > label { font-weight: 700; font-size: .9rem; color: var(--pflaume); }
.hilfe { font-size: .82rem; color: var(--text-2); }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea { width: 100%; min-height: 48px; padding: .6rem .75rem; border: 1.5px solid var(--linie-2); border-radius: var(--radius-k); background: #fff; font-size: 16px; }
textarea { min-height: 80px; resize: vertical; line-height: 1.4; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--pflaume-2); box-shadow: 0 0 0 3px rgba(240, 90, 174, .18); }
input[readonly] { background: var(--flaeche-2); }
input.ungueltig { border-color: var(--gefahr); }
.zahl-eingabe { text-align: right; font-variant-numeric: tabular-nums; }
.formular-raster { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 1rem; }
.formular-raster .breit { grid-column: 1 / -1; }
.feld-reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .75rem; }
.formfehler, .dlg-fehler { background: var(--gefahr-hell); color: var(--gefahr); border-radius: var(--radius-k); padding: .65rem .8rem; margin: .5rem 0; font-size: .92rem; font-weight: 700; }
.eingabe-mit-knopf { display: flex; gap: .5rem; align-items: center; }
.eingabe-mit-knopf > input { flex: 1; min-width: 0; }

/* Große Tipp-Checkboxen */
.check { display: flex; align-items: flex-start; gap: .75rem; padding: .6rem .5rem; min-height: 52px; border-radius: 10px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.check:hover { background: var(--flaeche-2); }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-box { flex: none; width: 30px; height: 30px; border: 2px solid var(--linie-2); border-radius: 8px; background: #fff; display: inline-flex; align-items: center; justify-content: center; color: transparent; transition: background .12s, border-color .12s; }
.check-box .ic { width: 20px; height: 20px; }
.check input:checked + .check-box { background: var(--pflaume); border-color: var(--pflaume); color: #fff; }
.check input:focus-visible + .check-box { outline: 3px solid var(--fokus); outline-offset: 2px; }
.check-text { padding-top: .2rem; }
.check-liste { display: flex; flex-direction: column; }

/* Schalter */
.schalter { display: flex; align-items: center; gap: .75rem; min-height: 52px; cursor: pointer; padding: .25rem 0; }
.schalter input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.schalter-bahn { flex: none; width: 56px; height: 32px; border-radius: 999px; background: #d9d0dc; position: relative; transition: background .15s; }
.schalter-knopf { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.schalter input:checked + .schalter-bahn { background: var(--ok); }
.schalter input:checked + .schalter-bahn .schalter-knopf { transform: translateX(24px); }
.schalter input:focus-visible + .schalter-bahn { outline: 3px solid var(--fokus); outline-offset: 2px; }
.schalter-text { font-weight: 700; }

/* Segmente */
.segment { display: inline-flex; flex-wrap: wrap; background: var(--flaeche-2); border: 1.5px solid var(--linie); border-radius: 12px; padding: 3px; gap: 3px; margin-bottom: .6rem; }
.segment-teil { position: relative; }
.segment-teil input { position: absolute; opacity: 0; }
.segment-teil span, .segment-knopf { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: .4rem .9rem; border-radius: 9px; cursor: pointer; font-weight: 700; color: var(--text-2); border: 0; background: transparent; }
.segment-teil input:checked + span, .segment-knopf[aria-pressed=true] { background: var(--pflaume); color: #fff; }
.segment-teil input:focus-visible + span { outline: 3px solid var(--fokus); }

/* Stepper */
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--linie-2); border-radius: 12px; background: #fff; }
.stepper input { width: 3.2rem !important; min-height: 44px !important; border: 0 !important; text-align: center; padding: 0 !important; box-shadow: none !important; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.stepper .icon-btn { font-size: 1.4rem; font-weight: 700; }

/* ---------- Start / Login ---------- */
.vollbild { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 16px; background: radial-gradient(circle at 20% 10%, rgba(255, 197, 220, .35), transparent 45%), radial-gradient(circle at 90% 90%, rgba(53, 214, 208, .18), transparent 40%), var(--bg); }
.start-laden { color: var(--text-2); }
.login-karte { width: 100%; max-width: 400px; background: var(--flaeche); border-radius: 20px; padding: 2rem 1.5rem; box-shadow: var(--schatten); border: 1px solid var(--linie); text-align: center; }
.login-karte h1 { font-size: 2.2rem; margin: .5rem 0 .2rem; }
.login-logo { border-radius: 50%; }
.login-unter { color: var(--text-2); margin: 0 0 1.5rem; }
.login-form { text-align: left; }
.login-links { display: flex; justify-content: space-between; margin-top: .75rem; }

/* ---------- Rahmen ---------- */
.demo-band { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--demo-h); display: flex; align-items: center; justify-content: center; text-overflow: ellipsis; gap: .25rem; padding: 0 12px; background: repeating-linear-gradient(-45deg, var(--creme), var(--creme) 12px, #fbe7a3 12px, #fbe7a3 24px); color: var(--pflaume); font-size: .82rem; white-space: nowrap; overflow: hidden; border-bottom: 1px solid #ecd58a; }
.demo-band strong { background: var(--pflaume); color: #fff; padding: .05rem .45rem; border-radius: 6px; letter-spacing: .06em; }
.demo-band a { font-weight: 700; margin-left: .25rem; }
.demo-lang { display: none; }
@media (min-width: 700px) { .demo-lang { display: inline; } }
.rahmen { min-height: 100vh; padding-top: var(--demo-h); }
.seitenleiste { display: none; }
.haupt { min-width: 0; padding-bottom: calc(var(--unten-h) + env(safe-area-inset-bottom) + 16px); }
.kopf { position: sticky; top: var(--demo-h); z-index: 20; display: flex; align-items: center; gap: .25rem; min-height: 56px; padding: 0 8px 0 16px; background: rgba(255, 251, 243, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--linie); }
.kopf-zurueck { margin-left: -8px; }
.kopf-titel { flex: 1; font-size: 1.45rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kopf-aktionen { display: flex; gap: .25rem; }
.inhalt:focus { outline: none; }
.seite { max-width: 1120px; margin: 0 auto; padding: 16px; }

.unten-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; background: var(--flaeche); border-top: 1px solid var(--linie); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -2px 12px rgba(73, 54, 79, .06); }
.unten-link { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: var(--unten-h); color: var(--text-2); text-decoration: none; font-size: .72rem; font-weight: 700; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.unten-ic { position: relative; display: inline-flex; padding: 3px 16px; border-radius: 999px; }
.unten-ic .ic { width: 24px; height: 24px; }
.unten-link.aktiv { color: var(--pflaume); }
.unten-link.aktiv .unten-ic { background: var(--rosa); }
.nav-punkt { position: absolute; top: -3px; right: 6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--pink); color: #fff; font-size: .68rem; display: inline-flex; align-items: center; justify-content: center; }
.nur-desktop { display: none !important; }

@media (min-width: 960px) {
  .rahmen { display: grid; grid-template-columns: 256px 1fr; }
  .demo-band { grid-column: 1 / -1; }
  .seitenleiste { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: var(--demo-h); height: calc(100vh - var(--demo-h)); padding: 20px 14px; background: var(--flaeche); border-right: 1px solid var(--linie); overflow-y: auto; }
  .unten-nav { display: none; }
  .haupt { padding-bottom: 40px; }
  .kopf { min-height: 64px; padding: 0 24px; }
  .kopf-titel { font-size: 1.75rem; }
  .seite { padding: 24px; }
  .nur-mobil { display: none !important; }
  .nur-desktop { display: inline-flex !important; }
}
.marke { display: flex; align-items: center; gap: .7rem; padding: 0 .4rem; }
.marke-logo { width: 44px; height: 44px; border-radius: 50%; flex: none; }
.marke-ersatz { display: inline-flex; align-items: center; justify-content: center; background: var(--rosa); color: var(--pflaume); font-weight: 700; }
.marke-name { font-family: var(--titel); font-weight: 600; font-size: 1.2rem; color: var(--pflaume); line-height: 1.1; }
.marke-unter { font-size: .8rem; color: var(--text-2); }
.seiten-nav { display: flex; flex-direction: column; gap: 2px; }
.nav-link { display: flex; align-items: center; gap: .75rem; min-height: 46px; padding: 0 .8rem; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 700; background: none; border: 0; cursor: pointer; width: 100%; text-align: left; }
.nav-link:hover { background: var(--flaeche-2); }
.nav-link.aktiv { background: var(--rosa); color: var(--pflaume); }
.nav-zahl { margin-left: auto; background: var(--pink); color: #fff; font-size: .75rem; min-width: 22px; height: 22px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.seiten-fuss { margin-top: auto; border-top: 1px solid var(--linie); padding-top: .75rem; }

/* ---------- Karten, Zeilen ---------- */
.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; box-shadow: var(--schatten); }
.karte-titel { display: flex; align-items: center; gap: .5rem; font-family: var(--schrift); font-size: 1rem; font-weight: 700; margin-bottom: .6rem; color: var(--pflaume); }
.karte-titel .ic { color: var(--pflaume-2); }
.karte-warn { background: #FFFBEF; border-color: #f2d9a6; }
.karte-hervor { background: var(--tuerkis-hell); border-color: #b4ebe8; }
.karte-liste { padding: 4px; }
.karte-liste > .zeile, .karte-liste > .zugang-zeile { border-radius: 10px; }
.unterkarte { border: 1px solid var(--linie); border-radius: 12px; padding: 12px; margin-bottom: 12px; background: var(--flaeche-2); }
.unterkarte h4 { margin-bottom: .6rem; }
.block { margin-bottom: 18px; }
.block-titel { display: flex; align-items: center; gap: .5rem; font-family: var(--titel); font-size: 1.5rem; margin: 4px 0 10px; }
.zaehler { font-family: var(--schrift); font-size: .8rem; background: var(--pink); color: #fff; border-radius: 999px; padding: .05rem .55rem; }
.raster-2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 14px; }
@media (min-width: 760px) { .raster-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } .formular-raster { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

.zeile { display: flex; align-items: center; gap: .75rem; width: 100%; min-height: 56px; padding: .55rem .5rem; border: 0; border-top: 1px solid var(--linie); background: none; color: inherit; text-decoration: none; text-align: left; cursor: pointer; }
.karte > .zeile:first-of-type, .karte-liste > .zeile:first-child { border-top: 0; }
.zeile:hover { background: var(--flaeche-2); }
.zeile-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.zeile-text strong { overflow-wrap: anywhere; }
.zeile-text .klein { color: var(--text-2); }
.zeile-heute { background: #FFF7DC; border-radius: 10px; }
.zeile-hervor { background: var(--tuerkis-hell); border-radius: 10px; margin-bottom: .3rem; border-top: 0; }
.zeile-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--flaeche-2); color: var(--pflaume-2); }
.zeile-ic.ok { background: var(--ok-hell); color: var(--ok); }
.zeile-ic.warn { background: var(--warn-hell); color: var(--warn); }
.zeile-ic.gefahr { background: var(--gefahr-hell); color: var(--gefahr); }
.zeile-ic.an { background: var(--tuerkis-hell); color: #11615d; }
.zeile-ic.ab { background: var(--flieder-hell); color: #6a3d86; }
.zeile-ic.neutral { background: var(--flaeche-2); }

.hinweis { background: var(--flaeche-2); border: 1px solid var(--linie); border-radius: var(--radius-k); padding: .7rem .85rem; margin: .5rem 0; }
.hinweis-warn { background: var(--warn-hell); border-color: #f2d9a6; color: #6b4200; }
.hinweis-gefahr { background: var(--gefahr-hell); border-color: #f1c2bd; color: var(--gefahr); }
.hinweis-demo { background: var(--creme); border-color: #ecd58a; }
.hinweis-tuerkis { background: var(--tuerkis-hell); border-color: #b4ebe8; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.hinweis-gross { display: flex; flex-direction: column; gap: .75rem; padding: 1rem; }
.hinweis-gross p { margin: .3rem 0 0; }
@media (min-width: 760px) { .hinweis-gross { flex-direction: row; align-items: center; justify-content: space-between; } }
.leer { text-align: center; color: var(--text-2); padding: 2.5rem 1rem; }
.leer .ic { width: 40px; height: 40px; opacity: .5; }
.laden-platz { padding: 2rem 1rem; text-align: center; color: var(--text-2); }
.laden-platz::before { content: ''; display: block; width: 28px; height: 28px; margin: 0 auto .75rem; border-radius: 50%; border: 3px solid var(--linie-2); border-top-color: var(--pink); animation: drehen .9s linear infinite; }

/* ---------- Übersicht ---------- */
.begruessung { margin: 4px 0 16px; }
.begruessung h2 { font-size: 1.9rem; }
.begruessung p { margin: .1rem 0 0; color: var(--text-2); }
.anfragen-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 0 14px; align-items: start; }
.anfrage-karte { background: var(--flaeche); border: 1.5px solid #f2d9a6; border-left: 6px solid var(--typ-anfrage); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; box-shadow: var(--schatten); }
.anfrage-kopf { display: flex; justify-content: space-between; gap: .75rem; text-decoration: none; color: inherit; }
.anfrage-name { font-size: 1.15rem; font-weight: 700; color: var(--pflaume); display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.anfrage-zeit { font-weight: 700; margin: .15rem 0; }
.anfrage-preis { font-size: 1.2rem; font-weight: 700; color: var(--pflaume); white-space: nowrap; }
.anfrage-nachricht { margin: .6rem 0 0; padding: .5rem .7rem; background: var(--flaeche-2); border-radius: 10px; font-size: .92rem; color: var(--text-2); font-style: italic; }
.anfrage-knoepfe { display: grid; grid-template-columns: 1fr 1.4fr; gap: .6rem; margin-top: .8rem; }
.anfrage-knoepfe .btn { min-height: 52px; }

/* ---------- Buchungsliste ---------- */
.werkzeug { display: flex; gap: .6rem; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.suche-box { flex: 1; min-width: 200px; position: relative; display: flex; align-items: center; }
.suche-box .ic { position: absolute; left: .8rem; color: var(--text-2); pointer-events: none; }
.suche-box input { padding-left: 2.5rem !important; border-radius: 999px !important; }
.chips { display: flex; gap: .45rem; overflow-x: auto; padding: 2px 2px 10px; margin: 0 -16px 4px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: .35rem; min-height: 40px; padding: 0 .95rem; border-radius: 999px; border: 1.5px solid var(--linie-2); background: var(--flaeche); color: var(--text); font-weight: 700; font-size: .9rem; cursor: pointer; }
.chip.aktiv { background: var(--pflaume); border-color: var(--pflaume); color: #fff; }
.chip-zahl { background: var(--pink); color: #fff; border-radius: 999px; font-size: .72rem; padding: 0 .4rem; }
.buchungsliste { display: flex; flex-direction: column; gap: 8px; }
.buchung-zeile { display: flex; align-items: center; gap: .8rem; padding: 10px 12px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); text-decoration: none; color: inherit; box-shadow: var(--schatten); }
.buchung-zeile:hover { border-color: var(--linie-2); }
.bz-datum { flex: none; width: 54px; display: flex; flex-direction: column; align-items: center; background: var(--flaeche-2); border-radius: 10px; padding: .3rem 0; line-height: 1.05; }
.bz-tag { font-size: 1.35rem; font-weight: 700; color: var(--pflaume); }
.bz-monat { font-size: .75rem; font-weight: 700; text-transform: uppercase; color: var(--text-2); }
.bz-jahr { font-size: .68rem; color: var(--text-2); }
.bz-text { flex: 1; min-width: 0; }
.bz-name { font-weight: 700; color: var(--pflaume); }
.bz-text .klein { color: var(--text-2); }
.bz-badges { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .3rem; }
.bz-betrag { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; display: flex; flex-direction: column; }
.bz-betrag .klein { color: var(--text-2); font-weight: 400; }

/* ---------- Detail ---------- */
.detail-kopf { margin-bottom: 14px; }
.dk-zeile { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.dk-name { font-size: 2rem; margin: .35rem 0 .1rem; }
.dk-zeit { font-weight: 700; color: var(--pflaume); }
.dk-knoepfe { display: grid; grid-template-columns: 1fr 1.4fr; gap: .6rem; margin-top: .9rem; max-width: 520px; }
.dk-knoepfe .btn { min-height: 54px; }
.detail-raster { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 16px; }
@media (min-width: 900px) { .detail-raster { grid-template-columns: 1.15fr 1fr; align-items: start; } }
.aktionsleiste { display: flex; flex-wrap: wrap; gap: .5rem; }
.aktionsleiste .btn { flex: 1 1 calc(50% - .5rem); }
@media (min-width: 600px) { .aktionsleiste .btn { flex: 0 1 auto; } }
.zahl-zeile { display: flex; align-items: center; gap: .75rem; padding: .55rem 0; border-top: 1px solid var(--linie); }
.karte-titel + .zahl-zeile { border-top: 0; }
.zahl-haken { flex: none; width: 48px; height: 48px; border-radius: 12px; border: 2px solid var(--linie-2); background: #fff; color: transparent; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.zahl-haken .ic { width: 26px; height: 26px; }
.zahl-haken:hover:not(:disabled) { border-color: var(--ok); color: rgba(46, 125, 91, .35); }
.zahl-haken:disabled { cursor: default; opacity: .6; }
.zahl-zeile.bezahlt .zahl-haken { background: var(--ok); border-color: var(--ok); color: #fff; }
.zahl-zeile.ueberfaellig .zahl-haken { border-color: var(--gefahr); }
.zahl-zeile.ueberfaellig .zahl-text .klein { color: var(--gefahr); font-weight: 700; }
.zahl-zeile.bezahlt .betrag { color: var(--ok); }
.zahl-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.zahl-text .klein { color: var(--text-2); }
.summen-zeile { display: flex; justify-content: space-between; border-top: 2px solid var(--linie); padding-top: .6rem; margin-top: .2rem; font-weight: 700; }
.preis-tabelle { width: 100%; border-collapse: collapse; font-size: .93rem; }
.preis-tabelle td { padding: .45rem 0; border-top: 1px solid var(--linie); vertical-align: top; }
.preis-tabelle td.betrag { text-align: right; padding-left: .75rem; }
.preis-tabelle td .klein { display: block; }
.preis-tabelle tr:first-child td { border-top: 0; }
.preis-tabelle .summe td { font-weight: 700; font-size: 1.05rem; border-top: 2px solid var(--pflaume); color: var(--pflaume); }
.preis-tabelle .mwst td { color: var(--text-2); font-size: .85rem; border-top: 0; padding: .15rem 0; }
.preis-tabelle.kompakt { font-size: .88rem; }
.daten { margin: 0; }
.dz { display: grid; grid-template-columns: 9.5rem 1fr; gap: .5rem; padding: .4rem 0; border-top: 1px solid var(--linie); }
.dz:first-child { border-top: 0; }
.dz dt { color: var(--text-2); font-size: .88rem; }
.dz dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 420px) { .dz { grid-template-columns: 1fr; gap: 0; } }
.gast-nachricht { margin: .75rem 0 0; padding: .6rem .8rem; border-left: 4px solid var(--rosa); background: var(--flaeche-2); border-radius: 0 10px 10px 0; font-style: italic; }
.verlauf { list-style: none; margin: 0; padding: 0; }
.verlauf li { padding: .45rem 0 .45rem 1rem; border-left: 2px solid var(--linie-2); position: relative; }
.verlauf li::before { content: ''; position: absolute; left: -6px; top: .85rem; width: 10px; height: 10px; border-radius: 50%; background: var(--flieder); }

/* ---------- Formular Buchung ---------- */
.formular-spalten { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 16px; }
@media (min-width: 1000px) { .formular-spalten { grid-template-columns: 1fr 340px; align-items: start; } .formular-seite { position: sticky; top: 84px; } }
.zusatz-zeile { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .5rem 0; border-top: 1px solid var(--linie); }
.karte-titel + .zusatz-zeile { border-top: 0; }
.extra-zeile { border: 1px solid var(--linie); border-radius: 12px; padding: .6rem; margin-bottom: .6rem; background: var(--flaeche-2); }
.extra-zahlen { display: grid; grid-template-columns: 1fr 1.2fr 1fr auto; gap: .4rem; align-items: end; margin-top: .4rem; }
.extra-zahlen label { font-size: .75rem; color: var(--text-2); display: flex; flex-direction: column; gap: 2px; }
.extra-zahlen input, .extra-zahlen select { min-height: 44px !important; padding: .4rem .5rem !important; }
.preis-karte { border-color: var(--linie-2); }
.preis-summe { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.25rem; margin: .5rem 0 .2rem; border-top: 2px solid var(--pflaume); padding-top: .5rem; color: var(--pflaume); }
.preis-diff { margin: .4rem 0; font-weight: 700; color: var(--warn); }
.regel-fehler { list-style: none; padding: 0; margin: .6rem 0; }
.regel-fehler li { display: flex; gap: .4rem; color: var(--warn); font-size: .9rem; padding: .2rem 0; }
.preis-karte .btn-gross { margin-top: .8rem; }
.formular .check { padding-left: 0; }

/* ---------- Kalender ---------- */
.legende { display: flex; flex-wrap: wrap; gap: .4rem .9rem; flex: 1; font-size: .85rem; }
.leg { display: inline-flex; align-items: center; gap: .35rem; }
.leg-farbe { flex: none; display: inline-block; width: 16px; height: 16px; border-radius: 5px; border: 1px solid rgba(73, 54, 79, .15); }
.typ-buchung { background: var(--typ-buchung); }
.typ-anfrage { background: var(--typ-anfrage); }
.typ-extern { background: var(--typ-extern); }
.typ-sperre { background: repeating-linear-gradient(-45deg, var(--typ-sperre), var(--typ-sperre) 4px, #e4dee6 4px, #e4dee6 8px); }
.monate { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 12px; }
@media (min-width: 900px) { .monate { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.kal-monat { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 12px; box-shadow: var(--schatten); }
.kal-titel { font-family: var(--titel); font-size: 1.45rem; margin: 0 0 .5rem .25rem; }
.kal-raster { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.kal-wt { text-align: center; font-size: .72rem; font-weight: 700; color: var(--text-2); padding-bottom: .2rem; }
.kal-tag { position: relative; aspect-ratio: 1 / 1.05; min-height: 44px; border: 1px solid var(--linie); border-radius: 8px; background: #fff; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; padding: 3px 4px; cursor: pointer; overflow: hidden; text-align: left; color: var(--text); }
.kal-tag:hover { border-color: var(--pflaume-2); }
.kal-tag.voll { border-color: transparent; }
.kal-tag.voll.typ-buchung { background: var(--typ-buchung); }
.kal-tag.voll.typ-anfrage { background: var(--typ-anfrage); }
.kal-tag.voll.typ-extern { background: var(--typ-extern); }
.kal-tag.voll.typ-sperre { background: repeating-linear-gradient(-45deg, var(--typ-sperre), var(--typ-sperre) 5px, #e4dee6 5px, #e4dee6 10px); }
.kal-tag.voll.typ-sperre { color: var(--pflaume); }
.kal-tag.geteilt { background: linear-gradient(135deg, var(--links) 0 49.5%, #fff 49.5% 50.5%, var(--rechts) 50.5% 100%); }
.kal-tag.vorbei { opacity: .55; }
.kal-tag.heute { box-shadow: inset 0 0 0 2.5px var(--pink); }
.kal-zahl { font-weight: 700; font-size: .9rem; position: relative; z-index: 1; }
.kal-label { position: absolute; left: 3px; right: 2px; bottom: 2px; font-size: .62rem; font-weight: 700; line-height: 1.1; color: var(--pflaume); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kal-liste { list-style: none; margin: .6rem 0 0; padding: 0; border-top: 1px solid var(--linie); }
.kal-eintrag { display: flex; align-items: center; gap: .6rem; width: 100%; min-height: 44px; padding: .3rem .25rem; border: 0; background: none; text-align: left; cursor: pointer; border-radius: 8px; }
.kal-eintrag:hover { background: var(--flaeche-2); }
.kal-eintrag-zeit { flex: none; font-variant-numeric: tabular-nums; font-size: .88rem; color: var(--text-2); min-width: 9.5rem; }
.kal-eintrag-name { font-weight: 700; color: var(--pflaume); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kal-leer { }
@media (min-width: 600px) { .kal-label { font-size: .7rem; } }

/* ---------- Protokoll ---------- */
.prot-kopf { display: flex; flex-direction: column; gap: .75rem; }
.prot-kopf h2 { font-size: 1.7rem; }
.prot-kopf-knoepfe { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.prot-kopf-knoepfe .segment { margin: 0; }
@media (min-width: 760px) { .prot-kopf { flex-direction: row; justify-content: space-between; align-items: center; } }
.prot-leiste { position: sticky; top: calc(var(--demo-h) + 56px); z-index: 10; display: flex; align-items: center; gap: .5rem; background: rgba(255, 251, 243, .95); backdrop-filter: blur(6px); padding: 6px 0; margin-bottom: 10px; border-bottom: 1px solid var(--linie); }
@media (min-width: 960px) { .prot-leiste { top: calc(var(--demo-h) + 64px); } }
.sprung { display: flex; gap: 4px; overflow-x: auto; flex: 1; scrollbar-width: none; }
.sprung::-webkit-scrollbar { display: none; }
.sprung a { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--flaeche); border: 1.5px solid var(--linie-2); text-decoration: none; font-weight: 700; color: var(--pflaume); }
.speicher-status { flex: none; font-size: .8rem; color: var(--text-2); padding: .25rem .6rem; border-radius: 999px; background: var(--flaeche-2); white-space: nowrap; }
.speicher-status.ok { color: var(--ok); background: var(--ok-hell); }
.speicher-status.offen { color: var(--warn); background: var(--warn-hell); }
.speicher-status.fehler { color: #fff; background: var(--gefahr); font-weight: 700; }
.prot-leiste { flex-wrap: wrap; }
.prot-fremd { flex: 1 0 100%; display: flex; align-items: center; justify-content: space-between; gap: .5rem .75rem; flex-wrap: wrap; margin: 0; padding: .5rem .75rem; }
.prot-fremd[hidden] { display: none; }
.prot-abschnitt { scroll-margin-top: 130px; }
.prot-titel { display: flex; align-items: center; gap: .6rem; font-family: var(--titel); font-size: 1.45rem; margin-bottom: .75rem; }
.prot-nr { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--rosa); font-family: var(--schrift); font-size: 1rem; font-weight: 700; }
.raum { border-top: 1px solid var(--linie); padding-top: .75rem; margin-top: .75rem; }
.raum:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.raum h4 { font-size: 1.05rem; margin-bottom: .3rem; }
.schaden-zeile { display: grid; grid-template-columns: 1fr auto; gap: .5rem; margin-bottom: .6rem; padding: .6rem; background: var(--flaeche-2); border-radius: 12px; border: 1px solid var(--linie); }
.schaden-zeile select { grid-column: 1; }
.schaden-zeile textarea { grid-column: 1 / 2; grid-row: 2; }
.schaden-zeile .icon-btn { grid-column: 2; grid-row: 1 / 3; align-self: center; }
.fotos { margin-top: 1rem; border-top: 1px solid var(--linie); padding-top: .75rem; }
.fotos h4 { margin-bottom: .5rem; }
.foto-werkzeug { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .5rem; }
.foto-werkzeug select { flex: 1 1 100%; }
.foto-werkzeug .btn { flex: 1 1 40%; }
@media (min-width: 760px) { .foto-werkzeug select { flex: 0 1 220px; } .foto-werkzeug .btn { flex: 0 1 auto; } }
.foto-gitter { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: .5rem; }
@media (min-width: 760px) { .foto-gitter { grid-template-columns: repeat(5, 1fr); } }
.foto { position: relative; padding: 0; border: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 1; cursor: pointer; background: var(--flaeche-2); }
.foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.foto-label { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(transparent, rgba(0,0,0,.6)); color: #fff; font-size: .7rem; padding: 1rem .35rem .25rem; text-align: left; }
.foto-gross { width: 100%; border-radius: 10px; display: block; }
.unterschrift { border: 1.5px solid var(--linie-2); border-radius: 12px; padding: .6rem; background: #fff; }
.unterschrift.fertig { border-color: #bfe3cf; background: #FAFEFB; }
.us-kopf { display: flex; justify-content: space-between; gap: .5rem; margin-bottom: .4rem; font-size: .9rem; }
.us-flaeche { position: relative; }
.us-canvas { display: block; width: 100%; aspect-ratio: 3 / 1; touch-action: none; background: var(--flaeche-2); border-radius: 8px; cursor: crosshair; }
.us-hinweis { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--text-2); pointer-events: none; font-size: .9rem; }
.us-linie { position: absolute; left: 8%; right: 8%; bottom: 22%; border-bottom: 1.5px dashed var(--linie-2); pointer-events: none; }
.us-bild { display: block; width: 100%; aspect-ratio: 3 / 1; object-fit: contain; }
.us-fuss { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-top: .4rem; min-height: 40px; }
.us-ok { display: inline-flex; align-items: center; gap: .3rem; color: var(--ok); font-weight: 700; font-size: .88rem; }
.us-gruppe { margin-top: 1rem; }
.us-gruppe h4 { margin-bottom: .5rem; }
.us-raster { display: grid; grid-template-columns: 1fr; gap: .75rem; }
@media (min-width: 760px) { .us-raster { grid-template-columns: 1fr 1fr; } }

/* ---------- Reinigung ---------- */
.wechsel-karte h3 { font-family: var(--titel); font-size: 1.35rem; }
.wechsel-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; flex-wrap: wrap; margin-bottom: .4rem; }
.wechsel-tag { border-left: 6px solid var(--pink); }
.ist-heute { background: #FFFBEA; }
.wechsel-zeile { display: flex; align-items: center; gap: .4rem .7rem; padding: .5rem 0; border-top: 1px solid var(--linie); flex-wrap: wrap; }
.wechsel-zeile > .zeile-text { flex: 1 1 200px; }
.wechsel-zeile > a.btn { margin-left: calc(40px + .7rem); }
@media (min-width: 600px) { .wechsel-zeile { flex-wrap: nowrap; } .wechsel-zeile > a.btn { margin-left: 0; } }

/* ---------- Postausgang ---------- */
.mail-ansicht .daten { margin-bottom: .75rem; }
.mail-text { white-space: pre-wrap; font-family: var(--schrift); background: var(--flaeche-2); border: 1px solid var(--linie); border-radius: 10px; padding: .8rem; margin: 0; max-height: 50vh; overflow: auto; font-size: .92rem; }
.mail-html { width: 100%; height: 50vh; border: 1px solid var(--linie); border-radius: 10px; background: #fff; }

/* ---------- Einstellungen ---------- */
.einst-bereich { padding: 0; }
.einst-bereich > summary { display: flex; align-items: center; gap: .6rem; min-height: 60px; padding: 0 16px; cursor: pointer; font-weight: 700; color: var(--pflaume); list-style: none; font-size: 1.05rem; }
.einst-bereich > summary::-webkit-details-marker { display: none; }
.einst-bereich > summary > span:not(.ic) { flex: 1; }
.einst-bereich > summary .pfeil { transition: transform .15s; color: var(--text-2); }
.einst-bereich[open] > summary .pfeil { transform: rotate(90deg); }
.einst-bereich[open] > summary { border-bottom: 1px solid var(--linie); }
.einst-inhalt { padding: 16px; }
.einst-inhalt h4 { margin: 1rem 0 .5rem; }
.einst-inhalt > h4:first-child { margin-top: 0; }
.abschnitt-titel { display: flex; align-items: center; gap: .5rem; font-family: var(--titel); font-size: 1.5rem; margin: 26px 0 12px; }
.zp-gross { border: 2px solid var(--linie-2); border-radius: 14px; padding: .75rem 1rem; background: var(--flaeche-2); }
.zp-gross .schalter-text { font-size: 1.05rem; }
.zp-gross .schalter-bahn { width: 64px; height: 36px; }
.zp-gross .schalter-knopf { width: 30px; height: 30px; }
.zp-gross .schalter input:checked + .schalter-bahn .schalter-knopf { transform: translateX(28px); }
.zp-status { font-weight: 700; margin-top: .25rem; padding: .5rem .75rem; border-radius: 10px; }
.zp-status.an { background: var(--ok-hell); color: var(--ok); }
.zp-status.aus { background: var(--gefahr-hell); color: var(--gefahr); }
.liste-zeilen { display: flex; flex-direction: column; gap: .5rem; margin-bottom: .6rem; }
.listen-zeile { display: grid; grid-template-columns: 1fr 1fr auto; gap: .5rem; align-items: end; }
.listen-zeile label { display: flex; flex-direction: column; gap: 2px; font-size: .78rem; color: var(--text-2); font-weight: 700; min-width: 0; }
.listen-zeile.vorbei { opacity: .55; }
.import-zeile { grid-template-columns: 1fr auto; }
.import-zeile label:first-child { grid-column: 1 / -1; }
@media (min-width: 760px) { .import-zeile { grid-template-columns: 180px 1fr auto; } .import-zeile label:first-child { grid-column: auto; } }
.preis-raster { display: grid; grid-template-columns: auto 1fr 1fr; gap: .4rem .6rem; align-items: center; margin-bottom: .8rem; }
.euro-eingabe { position: relative; }
.euro-eingabe input { padding-right: 1.8rem !important; }
.euro-eingabe span { position: absolute; right: .7rem; top: 50%; transform: translateY(-50%); color: var(--text-2); pointer-events: none; }
.storno-vorschau { margin: .3rem 0 0; padding-left: 1.2rem; color: var(--text-2); }
.speicher-leiste { position: sticky; bottom: calc(var(--unten-h) + env(safe-area-inset-bottom) + 8px); z-index: 25; display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; background: var(--pflaume); color: #fff; border-radius: 14px; padding: .6rem .6rem .6rem 1rem; box-shadow: 0 8px 24px rgba(73, 54, 79, .3); margin-top: 1rem; }
.speicher-leiste > span { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; }
.speicher-leiste .btn-leise { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.speicher-leiste .btn-primaer { background: var(--tuerkis); color: var(--pflaume); }
@media (min-width: 960px) { .speicher-leiste { bottom: 16px; } }
.zugang-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .7rem .5rem; border-top: 1px solid var(--linie); }
.zugang-zeile:first-child { border-top: 0; }
.zugang-knoepfe { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.zugang-knoepfe select { width: auto; min-height: 40px; padding: .3rem .5rem; }
.zugaenge > .btn { margin-top: .75rem; }

/* ---------- Dialog ---------- */
.dlg { border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 100%; max-height: 92vh; max-height: 92dvh; border-radius: 20px 20px 0 0; background: var(--flaeche); color: var(--text); box-shadow: 0 -10px 40px rgba(0,0,0,.2); }
.dlg::backdrop { background: rgba(43, 30, 48, .45); }
.dlg[open] { animation: hoch .2s ease-out; }
@keyframes hoch { from { transform: translateY(30px); opacity: 0; } }
.dlg-form { display: flex; flex-direction: column; max-height: inherit; }
.dlg-kopf { display: flex; align-items: center; gap: .5rem; padding: 12px 8px 4px 20px; }
.dlg-kopf h2 { flex: 1; font-size: 1.55rem; }
.dlg-inhalt { padding: 4px 20px 12px; overflow-y: auto; }
.dlg-text { margin-top: 0; }
.dlg-fuss { display: flex; gap: .6rem; padding: 12px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--linie); }
.dlg-fuss .btn { flex: 1; }
.dlg-fuss .btn-leise { flex: 0 1 auto; border-color: transparent; }
.dlg-zusammenfassung { background: var(--flaeche-2); border: 1px solid var(--linie); border-radius: 12px; padding: .7rem .9rem; margin-bottom: .8rem; display: flex; flex-direction: column; gap: .15rem; }
.storno-vorschlag { background: var(--warn-hell); border-radius: 12px; padding: .7rem .9rem; margin-bottom: .8rem; }
@media (min-width: 640px) {
  .dlg { margin: auto; width: calc(100% - 48px); max-width: 520px; border-radius: 20px; }
  .dlg-breit { max-width: 760px; }
  .dlg-fuss { justify-content: flex-end; }
  .dlg-fuss .btn { flex: 0 1 auto; }
}
.menue-liste { display: flex; flex-direction: column; }
.menue-eintrag { display: flex; align-items: center; gap: .8rem; min-height: 56px; padding: 0 .5rem; border: 0; border-top: 1px solid var(--linie); background: none; text-decoration: none; color: var(--text); font-weight: 700; cursor: pointer; text-align: left; width: 100%; }
.menue-eintrag:first-child { border-top: 0; }
.menue-eintrag > span:not(.ic):not(.badge) { flex: 1; }
.menue-eintrag .ic { color: var(--pflaume-2); width: 22px; height: 22px; }
.menue-info { display: flex; gap: .8rem; align-items: center; padding: .75rem .5rem; color: var(--text-2); }
.dlg-menue .dlg-fuss .btn-primaer { background: var(--flaeche-2); color: var(--pflaume); }

/* ---------- Toasts ---------- */
.toasts { position: fixed; left: 12px; right: 12px; bottom: calc(var(--unten-h) + env(safe-area-inset-bottom) + 12px); z-index: 100; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
@media (min-width: 960px) { .toasts { bottom: 24px; left: auto; right: 24px; align-items: flex-end; } }
.toast { display: flex; align-items: center; gap: .55rem; max-width: 480px; padding: .75rem 1rem; border-radius: 12px; background: var(--pflaume); color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.2); font-weight: 700; font-size: .93rem; animation: hoch .2s ease-out; transition: opacity .4s, transform .4s; pointer-events: auto; }
.toast-ok .ic { color: var(--tuerkis); }
.toast-fehler { background: var(--gefahr); }
.toast-info .ic { color: var(--creme); }
.toast.weg { opacity: 0; transform: translateY(10px); }

/* ---------- Druck (Übergabeprotokoll) ---------- */
#druckbereich { display: none; }
@media print {
  @page { size: A4; margin: 14mm 14mm 16mm; }
  body { background: #fff; font-size: 10pt; color: #000; }
  body > *:not(#druckbereich) { display: none !important; }
  #druckbereich { display: block; font-family: var(--schrift); }
  #druckbereich h1 { font-family: var(--titel); font-size: 20pt; margin: 4mm 0 2mm; color: #000; }
  #druckbereich h2 { font-family: var(--schrift); font-size: 11.5pt; font-weight: 700; margin: 5mm 0 1.5mm; padding-bottom: 1mm; border-bottom: .6pt solid #999; color: #000; break-after: avoid; }
  #druckbereich h3 { font-size: 10.5pt; margin: 2.5mm 0 1mm; color: #000; break-after: avoid; }
  #druckbereich p { margin: 1mm 0; }
  .dr-kopf { display: flex; flex-direction: column; border-bottom: 1.2pt solid #49364F; padding-bottom: 2mm; }
  .dr-marke { font-family: var(--titel); font-size: 15pt; font-weight: 600; color: #49364F; }
  .dr-unter { font-size: 8.5pt; color: #555; }
  .dr-zeile { display: flex; gap: 3mm; padding: .6mm 0; align-items: baseline; }
  .dr-label { min-width: 45mm; color: #333; }
  .dr-wert { flex: 1; border-bottom: .4pt dotted #999; min-height: 4mm; }
  .dr-text { margin: 1mm 0; }
  .dr-feld { border-bottom: .4pt dotted #999; min-height: 6mm; white-space: pre-wrap; }
  .dr-checks { columns: 2; column-gap: 6mm; }
  .dr-inline { columns: 1; display: flex; gap: 6mm; }
  .dr-check { break-inside: avoid; padding: .4mm 0; display: flex; gap: 2mm; }
  .dr-box { font-size: 11pt; line-height: 1; }
  .dr-raum { break-inside: avoid; }
  .dr-klein { font-size: 8.5pt; color: #444; }
  .dr-tabelle { width: 100%; border-collapse: collapse; margin: 1mm 0 2mm; }
  .dr-tabelle th, .dr-tabelle td { border: .4pt solid #999; padding: 1.2mm 2mm; text-align: left; vertical-align: top; height: 7mm; }
  .dr-tabelle th { background: #f3f0f4; font-size: 9pt; }
  .dr-sig-block { break-inside: avoid; margin-top: 3mm; }
  .dr-sigs { display: flex; gap: 10mm; }
  .dr-sig { flex: 1; }
  .dr-sig img { width: 100%; height: 22mm; object-fit: contain; display: block; }
  .dr-sig-leer { height: 22mm; }
  .dr-sig-titel { border-top: .6pt solid #000; font-size: 8.5pt; padding-top: 1mm; }
  .dr-fotos-block { break-before: page; }
  .dr-fotos { display: grid; grid-template-columns: 1fr 1fr; gap: 4mm; }
  .dr-fotos figure { margin: 0; break-inside: avoid; }
  .dr-fotos img { width: 100%; height: 60mm; object-fit: cover; }
  .dr-fotos figcaption { font-size: 8pt; color: #444; }
}

/* ---------- E-Mail: Testumleitung, Versandweg, unklarer Stand ---------- */
.umleitung-balken { display: flex; align-items: flex-start; gap: .7rem; flex-wrap: wrap; margin: 0 0 14px; padding: .8rem .9rem; border: 2px solid #e0a63a; border-left-width: 6px; border-radius: var(--radius-k); background: var(--warn-hell); color: #5a3700; }
.umleitung-balken > .ic { flex: none; width: 24px; height: 24px; color: var(--warn); margin-top: .1rem; }
.umleitung-balken > div { flex: 1 1 220px; min-width: 0; }
.umleitung-balken p { margin: .25rem 0 0; font-size: .875rem; }
.umleitung-balken .btn { flex: none; margin-left: auto; }
.umbruch { overflow-wrap: anywhere; }
.umgeleitet-marke { display: inline-block; margin-left: .4rem; padding: 0 .45rem; border-radius: 999px; background: var(--flieder-hell); color: var(--pflaume); font-size: .75rem; font-weight: 700; white-space: nowrap; }
.dz .umgeleitet-marke { margin-left: 0; }
.umleitung-feld { border: 1px solid var(--linie); border-radius: 12px; padding: 12px 12px 10px; margin: .75rem 0 1rem; background: var(--flaeche-2); }
.umleitung-feld .feld { margin-bottom: .5rem; }
.umleitung-feld.umleitung-an { background: var(--warn-hell); border: 2px solid #e0a63a; }
.umleitung-feld.umleitung-fehler { background: var(--gefahr-hell); border: 2px solid #f1c2bd; }
.umleitung-zeile { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.umleitung-stand { margin: 0; font-size: .875rem; flex: 1 1 200px; overflow-wrap: anywhere; }
.umleitung-an .umleitung-stand { font-weight: 700; color: #5a3700; }
.umleitung-fehler .umleitung-stand { font-weight: 700; color: var(--gefahr); }
.hinweis-tuerkis > .ic { flex: none; }
.hinweis-text { flex: 1 1 200px; min-width: 0; }
.erweitert { border: 1px dashed var(--linie-2); border-radius: 12px; margin: .25rem 0 1rem; background: var(--flaeche); }
.erweitert > summary { display: flex; align-items: center; min-height: 48px; padding: 0 12px; cursor: pointer; font-weight: 700; color: var(--pflaume); font-size: .95rem; }
.erweitert[open] > summary { border-bottom: 1px dashed var(--linie-2); }
.erweitert-inhalt { padding: 10px 12px 2px; }
.erweitert-inhalt > p { margin-top: 0; }
.technik { margin: .5rem 0; color: var(--text-2); }
.technik summary { cursor: pointer; }
.technik p { margin: .3rem 0 0; overflow-wrap: anywhere; font-family: ui-monospace, monospace; font-size: .8rem; }
.einst-bereich { scroll-margin-top: calc(var(--demo-h) + 72px); }
.erweitert > summary::-webkit-details-marker { display: none; }
.erweitert > summary::after { content: ''; width: 8px; height: 8px; margin-left: auto; border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2); transform: rotate(-45deg); transition: transform .15s; }
.erweitert[open] > summary::after { transform: rotate(45deg); }
