/* Leistungserfassung — Variante A „Ruhig & hochwertig".
   COS-Grün als ruhiger Anker, Lime nur als Signal (los · aktiv · läuft).
   Rollen-Tokens in OKLCH (sRGB-Rückfall am Ende des Token-Teils),
   Schriften der COS-Website, selbst gehostet. Mobil zuerst. */
/* --- Schriften: latin + latin-ext (Türkisch, Rumänisch). Kyrillisch → Systemschrift (html:lang(bg)). */
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-latin-ext.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage-latin-ext.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* --- Masken-Icons für Pseudoelemente (Pfade aus icons.svg, Strich 2 wie das Sprite) --- */
:root {
  --m-abreise: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M14 4h4a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1h-4%22/%3E%3Cpath d=%22M10 8l-4 4 4 4%22/%3E%3Cpath d=%22M6 12h10%22/%3E%3C/svg%3E");
  --m-bleiber: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M3 19V6%22/%3E%3Cpath d=%22M3 15h18v4%22/%3E%3Cpath d=%22M21 15v-2.5A3.5 3.5 0 0 0 17.5 9H11v6%22/%3E%3Ccircle cx=%227%22 cy=%2211.5%22 r=%222%22/%3E%3C/svg%3E");
  --m-globe: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%229%22/%3E%3Cpath d=%22M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18%22/%3E%3C/svg%3E");
  --m-hotel: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%224%22 y=%223%22 width=%2216%22 height=%2218%22 rx=%221.5%22/%3E%3Cpath d=%22M10 21v-4h4v4%22/%3E%3Cpath d=%22M8 7h.01M12 7h.01M16 7h.01M8 11h.01M12 11h.01M16 11h.01%22/%3E%3C/svg%3E");
  --m-minus: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M5 12h14%22/%3E%3C/svg%3E");
  --m-plus: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 5v14M5 12h14%22/%3E%3C/svg%3E");
  --m-rechnung: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M6 3h12v18l-2.5-1.6L13 21l-2.5-1.6L8 21l-2-1.3z%22/%3E%3Cpath d=%22M9 8h6M9 12h6M9 16h3%22/%3E%3C/svg%3E");
  --m-spark: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 3.5 13.9 8.6 19 10.5 13.9 12.4 12 17.5 10.1 12.4 5 10.5 10.1 8.6z%22/%3E%3Cpath d=%22M18.5 15.5l.7 1.8 1.8.7-1.8.7-.7 1.8-.7-1.8-1.8-.7 1.8-.7z%22/%3E%3C/svg%3E");
  --m-check: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%223%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22m5 12.5 4.5 4.5L19 7%22/%3E%3C/svg%3E");
  --m-sync: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M20 11a8 8 0 0 0-14.6-4.5L4 8%22/%3E%3Cpath d=%22M4 4v4h4%22/%3E%3Cpath d=%22M4 13a8 8 0 0 0 14.6 4.5L20 16%22/%3E%3Cpath d=%22M20 20v-4h-4%22/%3E%3C/svg%3E");
  --m-alert: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M10.3 4.3 2.6 18a2 2 0 0 0 1.7 3h15.4a2 2 0 0 0 1.7-3L13.7 4.3a2 2 0 0 0-3.4 0z%22/%3E%3Cpath d=%22M12 10v4M12 17.5h.01%22/%3E%3C/svg%3E");
  --m-chev: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22m9 5 7 7-7 7%22/%3E%3C/svg%3E");
  --m-wifi-off: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M3 3l18 18%22/%3E%3Cpath d=%22M8.5 16.5a5 5 0 0 1 7 0%22/%3E%3Cpath d=%22M5 13a10 10 0 0 1 4.5-2.6M19 13a10 10 0 0 0-2.4-1.7%22/%3E%3Cpath d=%22M12 20h.01%22/%3E%3C/svg%3E");
  --chk-weiss: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22white%22 stroke-width=%223%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22m5 12.5 4.5 4.5L19 7%22/%3E%3C/svg%3E");
  --chev: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%235F6F64%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22m6 9 6 6 6-6%22/%3E%3C/svg%3E");
}
/* TOKENS-HELL */
:root {
  /* Flächen: warmes Papier wie die COS-Website, weiße Karten, ruhige Einlage */
  --paper: oklch(0.973 0.006 115);
  --card: oklch(1 0 0);
  --field: oklch(1 0 0);
  --sunken: oklch(0.965 0.007 130);
  --glas: oklch(1 0 0 / 0.9);
  /* Schrift: drei feste Stufen, keine Transparenz */
  --ink: oklch(0.256 0.041 157);
  --ink-2: oklch(0.45 0.03 157);
  --ink-3: oklch(0.525 0.024 157);
  /* Linien: Trenner leise, Bedienelemente mit 3:1 */
  --line: oklch(0.256 0.041 157 / 0.13);
  --line-soft: oklch(0.256 0.041 157 / 0.075);
  --line-strong: oklch(0.62 0.02 157);
  /* Marke: COS-Grün. Füllung und Schrift getrennt, damit Dunkel beides kann */
  --brand: oklch(0.393 0.09 152.5);
  --brand-2: oklch(0.45 0.1 152);
  --brand-deep: oklch(0.314 0.068 153.2);
  --brand-text: oklch(0.393 0.09 152.5);
  --on-brand: oklch(1 0 0);
  --brand-tint: oklch(0.957 0.016 145);
  --brand-tint-2: oklch(0.905 0.048 141);
  --kopf: oklch(0.393 0.09 152.5);
  --kopf-ink-2: oklch(0.88 0.03 150);
  --start-bg: oklch(0.393 0.09 152.5);
  /* Lime: nur Signal (los, aktiv, Fokus-Hof) */
  --accent: oklch(0.746 0.18 129.9);
  --on-accent: oklch(0.256 0.041 157);
  --accent-line: oklch(0.6 0.15 130);
  --live: oklch(0.627 0.17 149.2);
  --on-live: oklch(0.256 0.041 157);
  --focus: oklch(0.393 0.09 152.5);
  /* Kennzahlen: Ziffern und Wörter in Farbe, Flächen ganz hell */
  --abreise: oklch(0.488 0.217 264.4);  --abreise-bg: oklch(0.948 0.024 265);
  --bleiber: oklch(0.475 0.083 186);    --bleiber-bg: oklch(0.955 0.024 186);
  --public: oklch(0.505 0.118 58);      --public-bg: oklch(0.96 0.029 72);
  --zeit: oklch(0.47 0.17 330);         --zeit-bg: oklch(0.955 0.026 330);
  --rot: oklch(0.5 0.182 29.5);         --rot-bg: oklch(0.955 0.022 27);
  --on-metrik: oklch(1 0 0);
  /* Zaehler der Mitarbeiterin: volle Flaeche, weisse Ziffer (blendfest, Variante B) */
  --abreise-fill: oklch(0.488 0.217 264.4); --bleiber-fill: oklch(0.49 0.085 186); --on-fill: oklch(1 0 0);
  /* Status */
  --ok-bg: oklch(0.955 0.04 135);   --ok-ink: oklch(0.37 0.1 138);
  --warn-bg: oklch(0.965 0.04 88); --warn-ink: oklch(0.43 0.09 73); --warn-solid: oklch(0.865 0.13 88);
  --err-bg: oklch(0.955 0.022 25);  --err-ink: oklch(0.42 0.147 29.8);
  --danger: oklch(0.5 0.182 29.5);  --on-danger: oklch(1 0 0);
  --on-warn-solid: oklch(0.256 0.041 157);
  --toast: oklch(0.256 0.041 157);  --toast-ink: oklch(0.973 0.006 115); --toast-ic: oklch(0.746 0.18 130);
  /* Tiefe: Haarlinie + sehr weicher Schatten */
  --shadow-1: 0 1px 2px oklch(0.256 0.041 157 / 0.05);
  --shadow-2: 0 1px 2px oklch(0.256 0.041 157 / 0.05), 0 14px 32px -20px oklch(0.256 0.041 157 / 0.3);
  --shadow-3: 0 2px 6px oklch(0.256 0.041 157 / 0.1), 0 18px 40px -16px oklch(0.256 0.041 157 / 0.35);
  --shadow-knopf: 0 1px 2px oklch(0.314 0.068 153.2 / 0.25);
  --scroll-schatten: oklch(0.256 0.041 157 / 0.2);
  /* Form, Abstand, Schrift */
  --r-s: 8px; --r-m: 12px; --r-l: 18px; --r-xl: 24px; --r-pill: 999px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
  --fs-xs: .75rem; --fs-sm: .8125rem; --fs-md: .875rem; --fs-base: 1rem; --fs-input: 1.0625rem;
  --fs-lg: 1.125rem; --fs-xl: 1.25rem; --fs-2xl: 1.625rem; --fs-3xl: 2rem; --fs-display: 3rem; --fs-counter: 3.75rem;
  --f-text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-titel: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --h-control: 50px;
  --breite: 728px;        /* Breite des Seiteninhalts */
  --breite-kopf: 728px;   /* Breite von Kopfzeile + Reitern; bleibt je Rolle auf allen Seiten gleich */
  --tabs-h: 69px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
/* TOKENS-DUNKEL */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: oklch(0.175 0.014 158);
    --card: oklch(0.222 0.018 158);
    --field: oklch(0.195 0.016 158);
    --sunken: oklch(0.198 0.016 158);
    --glas: oklch(0.222 0.018 158 / 0.9);
    --ink: oklch(0.953 0.012 154);
    --ink-2: oklch(0.835 0.014 154);
    --ink-3: oklch(0.735 0.016 154);
    --line: oklch(0.953 0.012 154 / 0.14);
    --line-soft: oklch(0.953 0.012 154 / 0.08);
    --line-strong: oklch(0.55 0.02 154);
    --brand: oklch(0.505 0.105 152.5);
    --brand-2: oklch(0.555 0.11 152);
    --brand-deep: oklch(0.42 0.09 153);
    --brand-text: oklch(0.828 0.091 151.2);
    --on-brand: oklch(1 0 0);
    --brand-tint: oklch(0.285 0.032 152);
    --brand-tint-2: oklch(0.37 0.06 150);
    --kopf: oklch(0.235 0.036 155);
    --kopf-ink-2: oklch(0.8 0.025 152);
    --start-bg: oklch(0.44 0.1 152.5);
    --accent: oklch(0.78 0.17 130);
    --on-accent: oklch(0.2 0.03 157);
    --accent-line: oklch(0.78 0.17 130);
    --live: oklch(0.72 0.17 149);
    --on-live: oklch(0.175 0.014 158);
    --focus: oklch(0.78 0.17 130);
    --abreise: oklch(0.79 0.1 265);  --abreise-bg: oklch(0.3 0.05 265);
    --bleiber: oklch(0.82 0.095 186); --bleiber-bg: oklch(0.3 0.042 186);
    --public: oklch(0.82 0.11 70);    --public-bg: oklch(0.3 0.042 70);
    --zeit: oklch(0.8 0.1 330);       --zeit-bg: oklch(0.3 0.05 330);
    --rot: oklch(0.8 0.1 27);         --rot-bg: oklch(0.3 0.06 27);
    --on-metrik: oklch(0.175 0.014 158);
    --abreise-fill: oklch(0.53 0.19 264); --bleiber-fill: oklch(0.51 0.088 186); --on-fill: oklch(1 0 0);
    --ok-bg: oklch(0.3 0.05 138);   --ok-ink: oklch(0.87 0.1 135);
    --warn-bg: oklch(0.3 0.05 80);  --warn-ink: oklch(0.88 0.09 85); --warn-solid: oklch(0.84 0.125 88);
    --err-bg: oklch(0.3 0.06 27);   --err-ink: oklch(0.86 0.07 25);
    --danger: oklch(0.56 0.17 27);  --on-danger: oklch(1 0 0);
    --toast: oklch(0.93 0.012 154); --toast-ink: oklch(0.2 0.016 158); --toast-ic: oklch(0.393 0.09 152.5);
    --shadow-1: none;
    --shadow-2: none;
    --shadow-3: 0 18px 40px -16px oklch(0 0 0 / 0.7);
    --shadow-knopf: none;
    --scroll-schatten: oklch(0 0 0 / 0.6);
    --chev: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23A2ACA5%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22m6 9 6 6 6-6%22/%3E%3C/svg%3E");
    color-scheme: dark;
  }
}
@media (prefers-contrast: more) {
  :root { --ink-3: var(--ink-2); --line: oklch(0.256 0.041 157 / 0.3); --line-soft: oklch(0.256 0.041 157 / 0.2); --line-strong: oklch(0.45 0.02 157); }
}
@media (prefers-contrast: more) and (prefers-color-scheme: dark) {
  :root { --line: oklch(0.953 0.012 154 / 0.3); --line-soft: oklch(0.953 0.012 154 / 0.2); --line-strong: oklch(0.72 0.02 154); }
}
/* RUECKFALL-START (generiert aus den Tokens oben, Browser ohne oklch()) */
@supports not (color: oklch(0 0 0)) {
  :root {
    --paper: #F6F7F2; --card: #FFFFFF; --field: #FFFFFF; --sunken: #F2F4F0; --glas: rgb(255 255 255 / 0.9); --ink: #10291B; --ink-2: #485B4F;
    --ink-3: #5F6F65; --line: rgb(16 41 27 / 0.13); --line-soft: rgb(16 41 27 / 0.075); --line-strong: #7D8A81; --brand: #14532D; --brand-2: #1F6538;
    --brand-deep: #0E3B20; --brand-text: #14532D; --on-brand: #FFFFFF; --brand-tint: #EAF4EA; --brand-tint-2: #CFE8CB; --kopf: #14532D;
    --kopf-ink-2: #CADDCD; --start-bg: #14532D; --accent: #86C232; --on-accent: #10291B; --accent-line: #61911C; --live: #16A34A; --on-live: #10291B;
    --focus: #14532D; --abreise: #1D4ED8; --abreise-bg: #E6EEFF; --bleiber: #016B63; --bleiber-bg: #DFF6F2; --public: #955007; --public-bg: #FEEFDD;
    --zeit: #8C2A87; --zeit-bg: #FBEAF9; --rot: #B42318; --rot-bg: #FFEBE8; --on-metrik: #FFFFFF; --ok-bg: #E5F7DC; --ok-ink: #214B0F;
    --warn-bg: #FFF3D6; --warn-ink: #6D4703; --warn-solid: #F6CE66; --err-bg: #FFEBE9; --err-ink: #8C1E14; --danger: #B42318; --on-danger: #FFFFFF;
    --on-warn-solid: #10291B; --toast: #10291B; --toast-ink: #F6F7F2; --shadow-1: 0 1px 2px rgb(16 41 27 / 0.05);
    --shadow-2: 0 1px 2px rgb(16 41 27 / 0.05), 0 14px 32px -20px rgb(16 41 27 / 0.3);
    --shadow-3: 0 2px 6px rgb(16 41 27 / 0.1), 0 18px 40px -16px rgb(16 41 27 / 0.35); --shadow-knopf: 0 1px 2px rgb(14 59 32 / 0.25);
    --scroll-schatten: rgb(16 41 27 / 0.2);
    --abreise-fill: #1D4ED8; --bleiber-fill: #047068; --on-fill: #FFFFFF; --toast-ic: #86C233;
  }
  @media (prefers-color-scheme: dark) {
    :root {
      --paper: #0B120E; --card: #141E18; --field: #0F1712; --sunken: #101813; --glas: rgb(20 30 24 / 0.9); --ink: #EAF2EC; --ink-2: #C2CCC5;
      --ink-3: #A2ACA5; --line: rgb(234 242 236 / 0.14); --line-soft: rgb(234 242 236 / 0.08); --line-strong: #69756C; --brand: #2B7546;
      --brand-2: #398552; --brand-deep: #1C5B35; --brand-text: #9BD8A9; --on-brand: #FFFFFF; --brand-tint: #1E2F22; --brand-tint-2: #27492E;
      --kopf: #0F2316; --kopf-ink-2: #B2C3B6; --start-bg: #1A6236; --accent: #93CC4B; --on-accent: #091A10; --accent-line: #93CC4B; --live: #44C166;
      --on-live: #0B120E; --focus: #93CC4B; --abreise: #9BBAFB; --abreise-bg: #212D47; --bleiber: #76D8CD; --bleiber-bg: #103531; --public: #F2B772;
      --public-bg: #3B2A15; --zeit: #E3A6DD; --zeit-bg: #3C243A; --rot: #F8A59B; --rot-bg: #47211D; --on-metrik: #0B120E; --ok-bg: #21341A;
      --ok-ink: #B8E3A1; --warn-bg: #3B2B0D; --warn-ink: #F3D392; --warn-solid: #ECC663; --err-bg: #47211D; --err-ink: #FCC0BA; --danger: #C44039;
      --on-danger: #FFFFFF; --toast: #E2EAE4; --toast-ink: #101813; --shadow-3: 0 18px 40px -16px rgb(0 0 0 / 0.7);
      --scroll-schatten: rgb(0 0 0 / 0.6);
      --abreise-fill: #3061D8; --bleiber-fill: #07766E; --toast-ic: #14532D;
    }
  }
}
/* RUECKFALL-ENDE */
/* --- Grundlagen ---------------------------------------------------------------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* Keine der beiden Markenschriften hat Kyrillisch: eine Schrift je Zeile statt Mischsatz */
html:lang(bg) { --f-text: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif; --f-titel: var(--f-text); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--fs-base)/1.5 var(--f-text);
  font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent; }
body.hat-tabs { padding-bottom: calc(var(--tabs-h) + 8px + env(safe-area-inset-bottom)); }
a { color: var(--brand-text); text-underline-offset: .18em; text-decoration-thickness: 1px; }
::selection { background: oklch(0.746 0.18 129.9 / 0.4); color: var(--ink); }
::placeholder { color: var(--ink-3); opacity: 1; font-weight: 400; }
h1, h2, h3 { font-family: var(--f-titel); line-height: 1.15; margin: 0 0 var(--s3); letter-spacing: -.012em; text-wrap: balance;
  overflow-wrap: break-word; hyphens: auto; color: var(--ink); }
h1 { font-size: var(--fs-2xl); font-weight: 700; }
h2 { font-size: var(--fs-lg); font-weight: 700; display: flex; align-items: flex-start; gap: 10px; }
h2 > .ic { width: 20px; height: 20px; color: var(--brand-text); margin-top: .05em; }
h3 { font-size: var(--fs-base); font-weight: 650; }
h1 .klein, h2 .klein { font-family: var(--f-text); font-weight: 500; font-size: var(--fs-sm); letter-spacing: 0; color: var(--ink-3); align-self: center; }
p { margin: 0 0 var(--s3); text-wrap: pretty; }
.karte > p, .meldung p { max-width: 72ch; }
li { text-wrap: pretty; }
[hidden] { display: none !important; }
.ic { width: 20px; height: 20px; flex: none; vertical-align: -4px; }
:where(a, button, summary, [tabindex]):focus-visible { outline: 2.5px solid var(--focus); outline-offset: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--card); color: var(--ink); padding: 10px 14px; border-radius: var(--r-m); box-shadow: var(--shadow-3); }
.skip-link:focus { left: 16px; }
/* --- Kopf ------------------------------------------------------------------------ */
.testmodus { display: flex; justify-content: center; align-items: center; gap: 6px; padding: 5px max(16px, env(safe-area-inset-right)) 5px max(16px, env(safe-area-inset-left));
  background: var(--warn-bg); color: var(--warn-ink); font-size: var(--fs-xs); font-weight: 600; border-bottom: 1px solid oklch(0.78 0.12 80 / 0.5); }
.testmodus .ic { width: 14px; height: 14px; }
.testmodus { padding-top: calc(5px + env(safe-area-inset-top)); }
.testmodus + .kopf { padding-top: 10px; }
.testmodus span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kopf { background: var(--kopf); color: var(--on-brand); padding: calc(10px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
  border-bottom: 1px solid transparent; }
.kopf-zeile { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: var(--breite-kopf); margin: 0 auto; min-height: 46px; padding-bottom: 10px; }
.marke { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; min-width: 0; border-radius: var(--r-s); }
.marke-bild { border-radius: 9px; flex: none; }
.marke-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.marke-text b { font-family: var(--f-titel); font-size: var(--fs-lg); font-weight: 750; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.marke-text small { color: var(--kopf-ink-2); font-size: var(--fs-xs); font-weight: 500; }
.kopf .nutzer { display: flex; align-items: center; gap: 6px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--accent); color: var(--on-accent);
  font-weight: 700; font-size: var(--fs-sm); letter-spacing: .02em; line-height: 1; }
.avatar.gross { width: 56px; height: 56px; font-size: var(--fs-xl); }
.kopf-knopf { width: 44px; height: 44px; border-radius: var(--r-m); border: 0; background: transparent; color: var(--on-brand); display: grid; place-items: center; cursor: pointer;
  transition: background-color .15s var(--ease); }
.kopf-knopf .ic { width: 22px; height: 22px; }
.kopf :focus-visible { outline-color: var(--accent); }
.reiter { display: flex; gap: 2px; max-width: var(--breite-kopf); margin: 0 auto; overflow-x: auto; scrollbar-width: none; }
.reiter a { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 10px 12px 11px; color: var(--on-brand); opacity: .8; text-decoration: none;
  font-weight: 600; font-size: .9375rem; white-space: nowrap; border-bottom: 2px solid transparent; transition: opacity .15s var(--ease); }
.reiter a .ic { width: 18px; height: 18px; }
.reiter a[aria-current="page"] { opacity: 1; border-bottom-color: var(--accent); }
@media (max-width: 700px) { .nur-breit { display: none !important; } }
@media (min-width: 701px) { .nur-schmal { display: none !important; } body.hat-tabs { padding-bottom: 0; } }
/* --- Navigation unten (Verwaltung am Handy): fünf gleiche Plätze, Pille = hier bist du --- */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  background: var(--glas); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-top: 1px solid var(--line);
  padding: 6px max(4px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(4px, env(safe-area-inset-left)); }
.tabs a { display: grid; grid-template-rows: 32px auto; justify-items: center; align-content: center; row-gap: 3px; min-height: 56px; min-width: 0;
  color: var(--ink-2); text-decoration: none; font-size: var(--fs-xs); font-weight: 600; border-radius: var(--r-m); }
.tabs a > span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tabs a > .ic, .tab-blase { width: 56px; height: 32px; border-radius: var(--r-pill); transition: background-color .15s var(--ease); }
.tabs a > .ic { padding: 4px 16px; }
.tab-blase { display: grid; place-items: center; color: var(--brand-text); }
.tab-blase .ic { width: 24px; height: 24px; }
.tabs a[aria-current="page"] { color: var(--brand-text); font-weight: 700; }
.tabs a[aria-current="page"] > .ic, .tab-mitte[aria-current="page"] .tab-blase { background: var(--brand-tint-2); }
/* --- Grundbausteine --------------------------------------------------------------- */
main { max-width: calc(var(--breite) + 32px); margin: 0 auto 0 max(0px, calc((100% - var(--breite-kopf)) / 2 - 16px));
  padding: var(--s5) max(16px, env(safe-area-inset-right)) var(--s7) max(16px, env(safe-area-inset-left)); }
.karte { --pad: 20px; background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-l); box-shadow: var(--shadow-1);
  padding: var(--pad); margin-bottom: var(--s4); container-type: inline-size; }
@media (min-width: 701px) { .karte { --pad: 28px; } }
.karte > :last-child { margin-bottom: 0; }
.karte > :is(h2, h3, details.nachtrag, .knopfreihe, form):not(:first-child) { margin-top: var(--s5); }
.seiten-kopf { display: flex; align-items: flex-start; gap: var(--s4); margin: var(--s1) 0 var(--s5); }
.seiten-kopf h1 { margin: 0; }
.seiten-kopf p { margin: 6px 0 0; }
.seiten-kopf > div { min-width: 0; }
.seiten-ic { width: 44px; height: 44px; flex: none; border-radius: var(--r-m); display: grid; place-items: center; background: var(--brand-tint); color: var(--brand-text); }
.seiten-ic .ic { width: 22px; height: 22px; }
.seiten-ic.gelb { background: var(--warn-bg); color: var(--warn-ink); }
.seiten-ic.rot { background: var(--err-bg); color: var(--err-ink); }
@media (max-width: 700px) { .seiten-ic { display: none; } }
.overline { font-size: var(--fs-sm); font-weight: 600; color: var(--brand-text); margin: 0 0 6px; letter-spacing: .01em; }
.klein { font-size: var(--fs-md); color: var(--ink-2); }
.leise { color: var(--ink-3); }
.abstand-oben { margin-top: var(--s3); }
.unsichtbar { visibility: hidden; }
.mitte-text { text-align: center; }
.rot-text { color: var(--err-ink); }
.ok-text { color: var(--ok-ink); }
.nowrap { white-space: nowrap; }
.meldung { border-radius: var(--r-m); padding: 12px 16px; margin-bottom: var(--s4); font-weight: 500; border: 1px solid transparent; }
.meldung.ok { background: var(--ok-bg); color: var(--ok-ink); border-color: oklch(0.37 0.1 138 / 0.14); }
.meldung.warn { background: var(--warn-bg); color: var(--warn-ink); border-color: oklch(0.43 0.09 73 / 0.16); }
.meldung.fehler { background: var(--err-bg); color: var(--err-ink); border-color: oklch(0.42 0.147 29.8 / 0.16); }
.meldung p:last-child, .meldung ul:last-child { margin-bottom: 0; }
.meldung ul { margin: .25rem 0 0; padding-left: 1.2rem; }
.meldung a { color: inherit; }
.leer { text-align: center; padding: 20px 8px; color: var(--ink-2); }
.leer .ic { width: 22px; height: 22px; padding: 11px; box-sizing: content-box; border-radius: 50%; background: var(--brand-tint); color: var(--brand-text); margin-bottom: 10px; }
.leer p { margin: 0 0 8px; }
.leer h1 { margin-top: 4px; }
li.leer { display: block !important; border: 0 !important; }
/* --- Hotelwahl: eine Zeile Chips, waagerecht scrollbar ------------------------------ */
.wahl { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px var(--s4); padding: 2px 16px; scroll-padding-inline: 16px; scroll-snap-type: x proximity; scrollbar-width: none; }
.wahl::-webkit-scrollbar { display: none; }
.wahl a { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); border: 1px solid var(--line-strong);
  color: var(--ink); background: var(--card); text-decoration: none; font-weight: 600; font-size: var(--fs-md); white-space: nowrap; scroll-snap-align: start; }
.wahl a::before { content: ""; width: 16px; height: 16px; flex: none; background: currentColor; opacity: .6;
  -webkit-mask: var(--m-hotel) center / contain no-repeat; mask: var(--m-hotel) center / contain no-repeat; }
.wahl a[aria-current="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.wahl a[aria-current="true"]::before { opacity: 1; }
/* --- Formulare ------------------------------------------------------------------------ */
label { display: block; font-weight: 600; font-size: var(--fs-md); color: var(--ink-2); }
legend { font-weight: 600; font-size: var(--fs-md); color: var(--ink-2); margin-bottom: 4px; padding: 0; }
.feld { margin-bottom: 0; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=time], input[type=number], input[type=file], select, textarea {
  display: block; width: 100%; min-height: 52px; padding: 12px 14px; margin-top: 6px; font: inherit; font-size: var(--fs-input); font-weight: 400; line-height: 1.35;
  color: var(--ink); background-color: var(--field); border: 1px solid var(--line-strong); border-radius: var(--r-m);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
input:focus, select:focus, textarea:focus { outline: 2px solid transparent; border-color: var(--brand-text);
  box-shadow: 0 0 0 1px var(--brand-text), 0 0 0 5px oklch(0.746 0.18 129.9 / 0.32); }
textarea { min-height: 96px; resize: vertical; }
select { appearance: none; -webkit-appearance: none; padding-right: 44px; text-overflow: ellipsis;
  background-image: var(--chev); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px 18px; }
input[type=file] { padding: 6px; font-size: var(--fs-md); color: var(--ink-2); cursor: pointer; }
input[type=file]::file-selector-button { font: inherit; font-weight: 600; min-height: 38px; margin-right: 12px; padding: 0 14px; border: 0; border-radius: 7px;
  background: var(--brand-tint); color: var(--brand-text); cursor: pointer; }
.formular { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: var(--s4); align-items: end; }
.formular .ganz, .zeiten .ganz { grid-column: 1 / -1; }
.formular .check { align-self: center; }
@media (min-width: 701px) { .formular > .knopf, .formular > button { grid-column: 1 / -1; justify-self: start; min-width: 220px; } }
.zeiten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); align-items: end; padding: var(--s3) 0 var(--s2); }
.zeiten label { font-size: var(--fs-sm); }
.zeiten button { grid-column: 1 / -1; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; font-size: var(--fs-base); color: var(--ink); padding: 8px 0; cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; width: 24px; height: 24px; margin: 0; margin-top: 1px; flex: none; display: grid; place-content: center;
  border: 1.5px solid var(--line-strong); border-radius: 7px; background: var(--field); cursor: pointer; transition: background-color .12s var(--ease), border-color .12s var(--ease); }
.check input[type=radio] { border-radius: 50%; }
.check input::before { content: ""; width: 14px; height: 14px; background: var(--on-brand); transform: scale(0); transition: transform .14s var(--ease);
  -webkit-mask: var(--m-check) center / contain no-repeat; mask: var(--m-check) center / contain no-repeat; }
.check input[type=radio]::before { width: 10px; height: 10px; border-radius: 50%; -webkit-mask: none; mask: none; }
.check input:checked { background: var(--brand); border-color: var(--brand); }
.check input:checked::before { transform: scale(1); }
.check input:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 2px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.inline-form { display: flex; gap: var(--s2); flex-wrap: wrap; align-items: center; }
.inline-form > input:not([type=checkbox]):not([type=radio]) { margin-top: 0; min-height: 48px; flex: 1 1 140px; width: auto; }
.inline-form select { margin-top: 0; min-height: 48px; flex: 1 1 180px; width: auto; }
.inline-form .check { padding: 0; white-space: nowrap; }
.inline-form .knopf { min-height: 48px; }
/* --- Knöpfe ------------------------------------------------------------------------- */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--h-control); padding: 0 20px; border-radius: var(--r-m);
  border: 1px solid transparent; font: inherit; font-weight: 600; font-size: var(--fs-base); line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer;
  background: var(--brand); color: var(--on-brand); box-shadow: var(--shadow-knopf);
  transition: transform .12s var(--ease), background-color .15s var(--ease), border-color .15s var(--ease), box-shadow .15s var(--ease); }
.knopf .ic { width: 20px; height: 20px; }
.knopf:active:not(:disabled) { transform: scale(.97); }
.knopf.breit { width: 100%; }
.knopf.zweit { background: var(--brand-tint); color: var(--brand-text); box-shadow: none; }
.knopf.rand { background: var(--card); color: var(--ink); border-color: var(--line-strong); box-shadow: none; }
.knopf.gefahr { background: transparent; color: var(--err-ink); border-color: oklch(0.5 0.182 29.5 / 0.5); box-shadow: none; }
.knopf.aktiv { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.knopf[disabled], .knopf[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 10px; }
.knopfreihe > * { flex: 1 1 140px; }
.knopfreihe > form > .knopf { width: 100%; }
.aktionen { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; align-items: center; }
.aktionen form { margin: 0; }
.aktionen .knopf { min-height: 44px; padding: 0 14px; font-size: var(--fs-md); }
.aktionen .knopf .ic { width: 18px; height: 18px; }
.ikon, .pfeil { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; padding: 0; border-radius: var(--r-m);
  border: 1px solid var(--line-strong); background: var(--card); color: var(--ink-2); text-decoration: none; cursor: pointer;
  transition: transform .12s var(--ease), background-color .15s var(--ease); }
.ikon .ic, .pfeil .ic { width: 20px; height: 20px; }
.ikon.loeschen { color: var(--err-ink); border-color: oklch(0.5 0.182 29.5 / 0.4); }
.ikon:disabled { opacity: .35; cursor: default; }
:is(.ikon, .pfeil, .chip, .rund, .riesig, .kopf-knopf):active:not(:disabled) { transform: scale(.96); }
:is(.tabs a, .menue a, .zeitraeume a, .wahl a, details > summary):active { background-color: var(--line-soft); }
@media (hover: hover) {
  .knopf:hover { background-color: var(--brand-2); }
  .knopf.zweit:hover { background-color: var(--brand-tint-2); }
  .knopf.rand:hover, .ikon:hover, .pfeil:hover, .chip:hover { background-color: var(--sunken); }
  .knopf.gefahr:hover, .ikon.loeschen:hover { background-color: var(--err-bg); }
  .knopf.aktiv:hover { background-color: var(--brand-2); }
  .kopf-knopf:hover { background-color: oklch(1 0 0 / 0.12); }
  .reiter a:hover { opacity: 1; }
  .menue a:hover, .zeitraeume a:hover { background-color: var(--sunken); }
  .tabs a:hover { color: var(--ink); }
}
/* --- Kennzahlen: ruhige Zellen, Farbe nur auf Ziffer und Symbol ------------------------------ */
.kacheln { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); margin-bottom: var(--s4); }
.kacheln.vier, .kacheln.fuenf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kacheln.eins { grid-template-columns: 1fr; }
/* Vier Zellen nebeneinander nur, wenn die Karte breit genug ist (nicht nach Fensterbreite) */
@container (min-width: 500px) {
  .kacheln.vier { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .kacheln.fuenf { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.tile { --m: var(--ink); min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 7px; row-gap: 4px;
  padding: 12px 14px 13px; border-radius: var(--r-m); background: var(--sunken); color: var(--ink); }
.tile .ic { grid-row: 1; grid-column: 1; width: 16px; height: 16px; color: var(--m); }
.tile span { grid-row: 1; grid-column: 2; font-size: var(--fs-sm); font-weight: 500; line-height: 1.25; color: var(--ink-2); overflow-wrap: break-word; text-wrap: balance; }
.tile b { grid-row: 2; grid-column: 1 / -1; font-family: var(--f-titel); font-size: 1.75rem; font-weight: 700; line-height: 1.05; letter-spacing: -.015em; color: var(--m); }
.tile.abreise { --m: var(--abreise); }
.tile.bleiber { --m: var(--bleiber); }
.tile.public { --m: var(--public); }
.tile.zeit { --m: var(--zeit); }
.tile.leer-null { --m: var(--ink-3); }
.tile.rot { --m: var(--on-danger); background: var(--danger); }
.tile.rot span { color: var(--on-danger); }
.tile.gelb { --m: var(--on-warn-solid); background: var(--warn-solid); }
.tile.gelb span { color: var(--on-warn-solid); }
/* --- Status ----------------------------------------------------------------------------- */
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--r-pill); font-family: var(--f-text); font-size: var(--fs-xs);
  font-weight: 600; letter-spacing: 0; line-height: 1.45; white-space: nowrap; background: var(--brand-tint); color: var(--brand-text); }
.status-pill .ic { width: 14px; height: 14px; }
.status-pill.laeuft { background: var(--sunken); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-soft); }
.status-pill.laeuft::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--live); }
.status-pill.offen { background: var(--sunken); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-soft); }
.status-pill.wartet { background: var(--warn-bg); color: var(--warn-ink); }
.status-pill.rueckfrage { background: var(--err-bg); color: var(--err-ink); }
.status-pill.bestaetigt { background: var(--ok-bg); color: var(--ok-ink); }
.status-pill.abgerechnet { background: var(--brand); color: var(--on-brand); }
.status { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); flex: none; }
.status.laeuft { background: var(--live); box-shadow: 0 0 0 3px oklch(0.627 0.17 149.2 / 0.22); }
.status.fertig { background: var(--ink-3); }
.status.nicht { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
/* --- Tabellen, Listen ------------------------------------------------------------------- */
.tabelle { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.tabelle th, .tabelle td { padding: 11px 10px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.tabelle :is(th, td):first-child { padding-left: 0; }
.tabelle :is(th, td):last-child { padding-right: 0; }
.tabelle th { font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2); letter-spacing: .01em; vertical-align: bottom; border-bottom-color: var(--line); }
.tabelle td.n, .tabelle th.n { text-align: right; white-space: nowrap; }
.tabelle th abbr[title] { text-decoration: none; }
.tabelle th.n { white-space: normal; }
.tabelle tbody tr:last-child td { border-bottom: 0; }
.tabelle tr.summe td { font-weight: 700; border-top: 1px solid var(--line-strong); border-bottom: 0; }
.tabelle tr.summe + tr td { border-top: 0; }
.tabelle tr.fehlt td, .tabelle tr.vorlaeufig td { color: var(--warn-ink); }
.tabelle tr.warn-zeile td { background: var(--warn-bg); }
.tabelle tr.warn-zeile td:first-child { box-shadow: -10px 0 0 var(--warn-bg); }
.tabelle.kompakt td, .tabelle.kompakt th { padding: 9px 8px; }
.tabelle.kompakt { font-size: var(--fs-md); }
.tabelle td.datum, .tabelle .datum { white-space: nowrap; }
.tabelle .zahl-abreise { color: var(--abreise); }
.tabelle .zahl-bleiber { color: var(--bleiber); }
.tabelle .zahl-rot { color: var(--rot); font-weight: 700; }
@media (max-width: 480px) {
  .tabelle { font-size: var(--fs-md); }
  .tabelle th, .tabelle td, .tabelle.kompakt th, .tabelle.kompakt td { padding: 9px 5px; }
}
@media (max-width: 400px) {
  .tabelle th, .tabelle td, .tabelle.kompakt th, .tabelle.kompakt td { padding-inline: 3px; }
  .tabelle :is(th, td):first-child { padding-left: 0; }
  .tabelle :is(th, td):last-child { padding-right: 0; }
}
/* Waagerechtes Scrollen bekommt Schatten an der Kante, solange noch etwas folgt */
.scroll { overflow-x: auto; background:
  linear-gradient(to right, var(--card) 30%, transparent) left / 28px 100% no-repeat local,
  linear-gradient(to left, var(--card) 30%, transparent) right / 28px 100% no-repeat local,
  radial-gradient(farthest-side at 0 50%, var(--scroll-schatten), transparent) left / 12px 100% no-repeat scroll,
  radial-gradient(farthest-side at 100% 50%, var(--scroll-schatten), transparent) right / 12px 100% no-repeat scroll; }
.karte > .scroll, .karte > details > .scroll { margin-inline: calc(-1 * var(--pad)); padding-inline: var(--pad); }
.eintraege { list-style: none; padding: 0; margin: 0 0 var(--s3); }
.eintraege:empty { display: none; }
.eintraege > li { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); padding: var(--s3) 0; border-bottom: 1px solid var(--line-soft); }
.eintraege > li:last-child { border-bottom: 0; }
.eintraege.kompakt > li { padding: 10px 0; font-size: var(--fs-md); }
.eintraege form { margin: 0; }
.eintrag-ic { width: 40px; height: 40px; border-radius: var(--r-m); display: grid; place-items: center; flex: none; background: var(--brand-tint); color: var(--brand-text); }
.eintrag-ic.rot { background: var(--rot-bg); color: var(--rot); }
.eintrag-ic.stern { background: var(--sunken); color: var(--ink-2); }
.eintrag-text { flex: 1; min-width: 0; }
.eintrag-text .klein { display: inline; }
dl.daten { display: grid; grid-template-columns: fit-content(42%) minmax(0, 1fr); gap: 10px 24px; margin: 0 0 var(--s4); }
dl.daten dt { color: var(--ink-2); font-size: var(--fs-md); padding-top: 1px; }
dl.daten dd { margin: 0; font-weight: 500; }
@container (max-width: 440px) {
  dl.daten { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  dl.daten dt { font-size: var(--fs-sm); }
  dl.daten dd { margin-bottom: 12px; }
}
.marke-quelle { display: block; font-size: var(--fs-xs); color: var(--ink-3); font-weight: 400; margin-top: 2px; }
.anzahl { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 7px; border-radius: var(--r-pill); background: var(--sunken);
  box-shadow: inset 0 0 0 1px var(--line-soft); color: var(--ink-2); font-family: var(--f-text); font-size: var(--fs-xs); font-weight: 600; align-self: center; letter-spacing: 0; }
details > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--brand-text); list-style: none; border-radius: var(--r-s); }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: ""; width: 18px; height: 18px; flex: none; background: currentColor; transition: transform .18s var(--ease);
  -webkit-mask: var(--m-chev) center / contain no-repeat; mask: var(--m-chev) center / contain no-repeat; }
details[open] > summary::before { transform: rotate(90deg); }
.nachtrag > summary::before { -webkit-mask-image: var(--m-plus); mask-image: var(--m-plus); }
.nachtrag[open] > summary::before { -webkit-mask-image: var(--m-minus); mask-image: var(--m-minus); transform: none; }
.nachtrag { border-top: 1px solid var(--line-soft); padding-top: var(--s2); }
.h2-rot > .ic, h2.h2-rot .ic { color: var(--rot); }
/* --- Verwaltung ------------------------------------------------------------------------- */
.hotel-kopf { display: flex; justify-content: space-between; align-items: center; gap: 8px 12px; flex-wrap: wrap; margin-bottom: var(--s4); }
.hotel-kopf h2 { margin: 0; align-items: center; }
@keyframes puls-ring { from { transform: scale(1); opacity: .6; } to { transform: scale(2.8); opacity: 0; } }
.klein-titel { display: flex; align-items: center; gap: 6px; margin: var(--s6) 0 var(--s1); font-family: var(--f-text); font-size: var(--fs-sm); font-weight: 600;
  color: var(--ink-2); letter-spacing: 0; text-transform: none; }
.klein-titel .ic { width: 16px; height: 16px; color: var(--ink-3); }
.sprachwahl { margin-top: var(--s6); }
.sprachwahl > summary { color: var(--ink-2); font-weight: 600; }
.sprachwahl > summary::before, .sprachwahl[open] > summary::before { -webkit-mask-image: var(--m-globe); mask-image: var(--m-globe); transform: none; }
.sprachen { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin: 8px 0; }
.sprachen .knopf { min-height: 48px; }
.toast { position: fixed; left: 0; right: 0; bottom: calc(var(--tabs-h) + 20px + env(safe-area-inset-bottom)); z-index: 30; width: fit-content; max-width: min(calc(100% - 32px), 480px);
  margin: 0 auto; padding: 12px 18px 12px 14px; border-radius: var(--r-m); background: var(--toast); color: var(--toast-ink); font-weight: 600; text-wrap: balance;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-3); opacity: 0; transform: translateY(12px); transition: opacity .18s var(--ease), transform .18s var(--ease); pointer-events: none; }
.toast::before { content: ""; width: 20px; height: 20px; flex: none; background: var(--toast-ic);
  -webkit-mask: var(--m-check) center / contain no-repeat; mask: var(--m-check) center / contain no-repeat; }
body:not(.hat-tabs) .toast { bottom: calc(24px + env(safe-area-inset-bottom)); }
.toast.zeigen { opacity: 1; transform: none; }
.toast.fehler { background: var(--danger); color: var(--on-danger); }
.toast.fehler::before { background: currentColor; -webkit-mask-image: var(--m-alert); mask-image: var(--m-alert); }
/* --- Icon-Bausteine in Seiten ------------------------------------------------------------ */
.mit-ic { display: flex; align-items: center; gap: 8px; }
.mit-ic > .ic { flex: none; }
p.mit-ic, .meldung.mit-ic { align-items: flex-start; }
p.mit-ic > .ic, .meldung.mit-ic > .ic { margin-top: 2px; }
.meldung .ic { width: 20px; height: 20px; }
.klein.mit-ic { gap: 6px; }
.klein.mit-ic .ic { width: 16px; height: 16px; color: var(--ink-3); }
.link-ic { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; }
.link-ic .ic { width: 18px; height: 18px; }
.rot-text .ic, .ok-text .ic { width: 16px; height: 16px; vertical-align: -3px; margin-right: 2px; }
label.mit-ic .ic { width: 18px; height: 18px; color: var(--brand-text); }
td .ic { width: 16px; height: 16px; vertical-align: -3px; }
td.warn-ic .ic, .warn-zeile td .ic { color: var(--warn-ink); }
.fussnote { display: flex; gap: 8px; align-items: flex-start; margin: var(--s4) 0 0; font-size: var(--fs-sm); color: var(--ink-2); }
.fussnote .ic { width: 16px; height: 16px; margin-top: 2px; color: var(--ink-3); }
@container (min-width: 760px) {
  .karte .knopf.breit { width: auto; min-width: 280px; }
}
details.karte > summary { font-size: var(--fs-base); }
details.karte[open] > summary { margin-bottom: 0; }
/* --- Breite Seiten ab 1100 px (Verwaltung, Hotelleitung): zwei Spalten statt Handy-Spalte -------- */
@media (min-width: 1100px) {
  body:is(.rolle-admin, .rolle-manager, .rolle-super, .rolle-checker) { --breite-kopf: 1056px; --breite: 1056px; }
  body:is(.rolle-admin, .rolle-manager, .rolle-super, .rolle-checker):is(.formularseite, .chat, .seite-mehr) { --breite: 728px; }
  .spalten-zwei { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s4); align-items: start; }
  .raster { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr); grid-template-rows: repeat(8, auto) 1fr; column-gap: var(--s5); align-items: start; }
  .raster > * { grid-column: 2; min-width: 0; }
  .raster > .haupt { grid-column: 1; grid-row: 1 / -1; }
  .raster > .oben { grid-column: 1 / -1; grid-row: 1; }
  .raster > .oben ~ .haupt { grid-row: 2 / -1; }
}
/* --- Bewegung nur als Rückmeldung; reduziert = aus -------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .knopf:active, .zaehl:active, .riesig:active, .ikon:active { transform: none !important; }
}
/* --- Hoher Kontrast (Windows): Formen über Systemfarben ---------------------------------------- */
@media (forced-colors: active) {
  .knopf, .ikon, .pfeil, .wahl a, .tile, .karte, .tab-blase { border: 2px solid ButtonText; }
  .reiter a[aria-current="page"], .tabs a[aria-current="page"] { text-decoration: underline 3px; }
  .wahl a[aria-current="true"] { outline: 3px solid Highlight; }
  details > summary::before, .wahl a::before, .toast::before { forced-color-adjust: none; background: CanvasText; }
  .check input:checked { background: Highlight; border-color: Highlight; }
}
