/* =====================================================================================
   JARVIS – Gestaltung „Amtshotel“ (wie www.das-kleine-amtshotel.de und der Frühstücks-Flyer)
   Aufbau nach cmem.ai: viel Weißraum, fette Überschriften, Karten an einer feinen Leine mit Pins.
   Farben: Koralle #EC5F5E, Rosé #FBE3E1, Sonnengelb #F7D35E (nur Schreibschrift), Gold #D5AD49, Fast-Schwarz #2B2523, Creme #FFF9F4.
   Schriften: Playfair Display (Titel, große Zahlen), Montserrat (Text), Great Vibes (ein Akzent je Bereich).
   Greift nur bei <html data-design="amtshotel">. Vorschau: ?design=amtshotel · zurück: ?design=himmel
   ===================================================================================== */
@font-face { font-family: "Playfair Display"; src: url("/static/fonts/Playfair-latin.woff2") format("woff2"); font-weight: 400 900; 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: "Playfair Display"; src: url("/static/fonts/Playfair-latin-ext.woff2") format("woff2"); font-weight: 400 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Montserrat"; src: url("/static/fonts/Montserrat-latin.woff2") format("woff2"); font-weight: 100 900; 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: "Montserrat"; src: url("/static/fonts/Montserrat-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Great Vibes"; src: url("/static/fonts/GreatVibes-latin.woff2") format("woff2"); font-weight: 400; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC; }
@font-face { font-family: "Great Vibes"; src: url("/static/fonts/GreatVibes-latin-ext.woff2") format("woff2"); font-weight: 400; font-display: swap;
  unicode-range: U+0100-02BA, U+1E00-1E9F; }

.page-head .schrift { display: none; }

:root[data-design="amtshotel"] {
  --font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --script: "Great Vibes", "Snell Roundhand", cursive;
  --koralle: #EC5F5E; --koralle-dunkel: #D94B4A; --koralle-tief: #C43F3E; --rose: #FBE3E1; --gelb: #F7D35E; --gold: #D5AD49;
  --schwarz: #2B2523; --creme: #FFF9F4; --gruen: #3E8E66;
  --ink: #2B2523; --ink-2: #2B2523; --bg: #FFF9F4;
  --text: #2B2523; --text-2: #5E5351; --text-3: #8A7E7B;
  --line: #F1E4DE; --line-strong: #E6D3CB;
  --surface: #FFFFFF; --surface-2: #FDF2EE; --panel: #FFFFFF; --hover: rgba(236, 95, 94, .07); --karte: #FFFFFF;
  --link: #C43F3E; --rost: #C43F3E; --coral: #EC5F5E; --coral-strong: #C43F3E; --coral-soft: #FBE3E1; --coral-tief: #C43F3E; --on-coral: #FFFFFF;
  --karte-schatten: 0 18px 40px -18px rgba(120, 50, 40, .28), 0 2px 6px rgba(120, 50, 40, .05);
  --karte-schatten-klein: 0 8px 22px -12px rgba(120, 50, 40, .25);
  --pop-schatten: 0 30px 80px rgba(60, 30, 25, .25);
  --kapsel: rgba(255, 249, 244, .82); --kapsel-kante: rgba(255, 255, 255, .95); --kapsel-schatten: 0 10px 30px -10px rgba(120, 50, 40, .25);
  --knopf: #FFFFFF; --knopf-kante: #EAD9D2;
  --haupt: #2B2523; --haupt-text: #FFFFFF; --haupt-hover: #413735;
  --nav-sel: #2B2523; --nav-sel-text: #FFFFFF;
  --feld: #FFFFFF; --field-bg: #FFFFFF; --glass-solid: #FFFFFF;
  --focus: 0 0 0 3px rgba(236, 95, 94, .3);
  --r-lg: 26px;
}
:root[data-design="amtshotel"][data-theme="dark"] {
  --bg: #1E1918; --text: #FBF1EC; --text-2: #CDBFBA; --text-3: #9C8E89;
  --line: #3A302E; --line-strong: #4A3E3B;
  --surface: #2B2523; --surface-2: #352D2B; --panel: #2B2523; --karte: #2B2523; --glass-solid: #2B2523;
  --kapsel: rgba(43, 37, 35, .82); --kapsel-kante: rgba(255, 255, 255, .08);
  --knopf: #352D2B; --knopf-kante: #4A3E3B; --feld: #241F1E; --field-bg: #241F1E;
  --haupt: #EC5F5E; --haupt-text: #FFFFFF; --haupt-hover: #D94B4A;
  --nav-sel: #FBF1EC; --nav-sel-text: #2B2523;
  --rose: rgba(236, 95, 94, .16); --coral-soft: rgba(236, 95, 94, .16); --link: #F59A99; --rost: #F59A99; --coral-strong: #F59A99;
  --hover: rgba(236, 95, 94, .10);
}

/* ------------------------------------------------ Grund: Creme statt Himmel */
:root[data-design="amtshotel"] html, :root[data-design="amtshotel"] { background: var(--bg); }
:root[data-design="amtshotel"] body { font-family: var(--font); font-weight: 500; }
:root[data-design="amtshotel"] body::before {
  background: radial-gradient(70vw 40vw at 100% -10%, rgba(251, 227, 225, .75), transparent 70%),
              radial-gradient(50vw 30vw at -10% 110%, rgba(247, 211, 94, .12), transparent 70%), var(--bg); }
:root[data-design="amtshotel"][data-theme="dark"] body::before { background: linear-gradient(180deg, #221C1B, var(--bg) 60%); }

/* ------------------------------------------------ Seitenleiste: Logo „Das kleine Amtshotel“ */
:root[data-design="amtshotel"] .mark { background: var(--koralle); box-shadow: 0 6px 14px -8px rgba(43, 37, 35, .55); border-radius: 50%; font-family: var(--serif); font-weight: 900; }
:root[data-design="amtshotel"] .brand strong { font-family: var(--serif); font-weight: 800; letter-spacing: -.01em; }
@media (min-width: 761px) {
  :root[data-design="amtshotel"] .brand { flex-direction: row; }
  :root[data-design="amtshotel"] .brand small { display: block; font-size: 9.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--koralle); margin-top: -2px; }
  :root[data-design="amtshotel"] .nav a { font-weight: 600; font-size: 14.5px; }
  :root[data-design="amtshotel"] .sidebar { -webkit-backdrop-filter: saturate(1.3) blur(18px); backdrop-filter: saturate(1.3) blur(18px); }
}

/* ------------------------------------------------ Überschriften */
:root[data-design="amtshotel"] .page-head h1, :root[data-design="amtshotel"] .headbar h1, :root[data-design="amtshotel"] .res-kopf h1 {
  font-family: var(--serif); font-weight: 900; text-transform: none; letter-spacing: -.015em; line-height: 1.02; color: var(--text); }
@media (min-width: 1000px) { :root[data-design="amtshotel"] .page-head h1 { font-size: 54px; } }
:root[data-design="amtshotel"] .page-head .sub { color: var(--koralle-tief); font-weight: 700; letter-spacing: .2em; font-size: 12px; }
:root[data-design="amtshotel"][data-theme="dark"] .page-head .sub { color: #F59A99; }
:root[data-design="amtshotel"] .page-head .schrift { display: block; margin: 2px 0 0 4px; font-family: var(--script); font-size: 34px; line-height: 1; color: var(--gelb);
  text-shadow: 0 1px 0 rgba(150, 100, 0, .25); }
:root[data-design="amtshotel"]:not([data-theme="dark"]) .page-head .schrift { color: #E2B52F; }
:root[data-design="amtshotel"] .section-head h2 { font-family: var(--serif); font-weight: 800; font-size: 22px; letter-spacing: 0; }
:root[data-design="amtshotel"] h3 { font-family: var(--font); font-weight: 700; }

/* ------------------------------------------------ Karten */
:root[data-design="amtshotel"] :is(.group, .stat, .field-group, .health, .btable-wrap, .res-tabelle-liste, .res-plan, .sr-gruppe, .hero, .akt-karte, .ct-karte, .df-zahl, .pz-kachel) {
  border-radius: 26px; box-shadow: var(--karte-schatten); }
:root[data-design="amtshotel"] .note { border-radius: 20px; }

/* Hervorgehobene Fläche: Koralle mit schräger Oberkante (z. B. Hinweis „Wochenfokus“) */
:root[data-design="amtshotel"] .fokus { background: var(--koralle); color: #fff;
  clip-path: polygon(0 18px, 100% 0, 100% 100%, 0 100%); padding-top: 34px; }
:root[data-design="amtshotel"] .fokus :is(h1, h2, h3, p, strong) { color: #fff; }

/* ------------------------------------------------ Zeilen, Tabellen */
:root[data-design="amtshotel"] .row-icon { background: var(--rose); color: var(--koralle-tief); border-radius: 50%; }
:root[data-design="amtshotel"] a.row:hover, :root[data-design="amtshotel"] .row.link:hover { background: var(--creme); }
:root[data-design="amtshotel"][data-theme="dark"] a.row:hover { background: var(--hover); }
:root[data-design="amtshotel"] :is(.table, .btable) th { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); border: 0; }
:root[data-design="amtshotel"] :is(.table, .btable) td { border: 0; }
:root[data-design="amtshotel"] :is(.table, .btable) tbody tr:nth-child(even) td { background: var(--creme); }
:root[data-design="amtshotel"][data-theme="dark"] :is(.table, .btable) tbody tr:nth-child(even) td { background: rgba(255, 255, 255, .03); }

/* ------------------------------------------------ Knöpfe, Chips */
:root[data-design="amtshotel"] .btn { border-radius: 999px; font-weight: 600; }
:root[data-design="amtshotel"] .btn.primary { background: var(--haupt); color: var(--haupt-text); box-shadow: 0 10px 22px -12px rgba(43, 37, 35, .8); }
:root[data-design="amtshotel"] .btn.koralle, :root[data-design="amtshotel"] .btn.primary.koralle { background: var(--koralle); color: #fff; }
:root[data-design="amtshotel"] .btn.koralle:hover { background: var(--koralle-dunkel); }
:root[data-design="amtshotel"] .btn:not(.primary):not(.danger):not(.plain) { background: transparent; border: 1.5px solid var(--knopf-kante); }
:root[data-design="amtshotel"] .btn:not(.primary):not(.danger):not(.plain):hover { border-color: var(--koralle); color: var(--koralle-tief); }
:root[data-design="amtshotel"] .btn.danger { background: var(--koralle-tief); }
:root[data-design="amtshotel"] :is(.chip, .pill, .pchip, .res-heute) { background: var(--rose); color: var(--text); border-color: transparent; border-radius: 999px; font-weight: 600; }
:root[data-design="amtshotel"] .pill.ok { background: #E3F1E8; color: #23603F; }
:root[data-design="amtshotel"] .pill.warn { background: #FCEFCB; color: #6B4E00; }
:root[data-design="amtshotel"] :is(.res-filter .pchip, .pchip.pfrzeit, .pz-kachel)[aria-pressed="true"] { background: var(--schwarz); color: #fff; }
:root[data-design="amtshotel"] .badge, :root[data-design="amtshotel"] .nav .badge { background: var(--koralle-tief); color: #fff; }
:root[data-design="amtshotel"] .res-block, :root[data-design="amtshotel"] .res-block2, :root[data-design="amtshotel"] .res-typen input:checked + span { background: var(--koralle-tief); }
:root[data-design="amtshotel"] .input:focus { border-color: var(--koralle); }
:root[data-design="amtshotel"] .tabbar [aria-current="page"] { background: var(--schwarz); color: #fff; }

/* ------------------------------------------------ Sanftes Einblenden beim Scrollen */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    :root[data-design="amtshotel"] .page > .section, :root[data-design="amtshotel"] .page > .stats {
      animation: ah-ein linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
  }
}
@keyframes ah-ein { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: 0 0; } }

/* Normale Ziffern statt Mediävalziffern (Playfair), damit 0 nicht wie o aussieht */
:root[data-design="amtshotel"] :is(.page-head h1, .stat .value, .section-head h2, .login-card h1, .main::after) { font-variant-numeric: lining-nums tabular-nums; }
:root[data-design="amtshotel"] { --bar-bg: rgba(255, 249, 244, .86); }
:root[data-design="amtshotel"][data-theme="dark"] { --bar-bg: rgba(30, 25, 24, .86); }
:root[data-design="amtshotel"] .login-card h1 { font-family: var(--serif); font-weight: 900; text-transform: none; letter-spacing: 0; font-size: 32px; }

/* Dunkelmodus: neutrale Schatten statt farbiger */
:root[data-design="amtshotel"][data-theme="dark"] {
  --karte-schatten: 0 18px 40px -18px rgba(0, 0, 0, .6); --karte-schatten-klein: 0 8px 22px -12px rgba(0, 0, 0, .5);
  --kapsel-schatten: 0 10px 30px -10px rgba(0, 0, 0, .55); --pop-schatten: 0 30px 80px rgba(0, 0, 0, .6); }
:root[data-design="amtshotel"][data-theme="dark"] .btn.primary { box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .7); }

/* Wochenfokus: korallrote Fläche mit schräger Oberkante, gelber Schreibschrift-Akzent */
.fokus { display: none; }
:root[data-design="amtshotel"] .fokus { display: block; margin: 0 0 18px; padding: 40px 26px 22px; border-radius: 0 0 26px 26px; background: var(--koralle-tief); color: #fff;
  clip-path: polygon(0 22px, 100% 0, 100% 100%, 0 100%); }
:root[data-design="amtshotel"] .fokus h2 { font-family: var(--serif); font-weight: 900; font-size: 28px; line-height: 1.1; color: #fff; margin: 0 0 8px; }
:root[data-design="amtshotel"] .fokus .fokus-schrift { font-family: var(--script); font-size: 28px; line-height: 1; color: var(--gelb); margin: 0 0 2px; }
:root[data-design="amtshotel"] .fokus ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
:root[data-design="amtshotel"] .fokus li { font-weight: 600; font-size: 15.5px; padding-left: 18px; position: relative; }
:root[data-design="amtshotel"] .fokus li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--gelb); }
:root[data-design="amtshotel"] .fokus a { color: #fff; text-decoration: none; }
:root[data-design="amtshotel"] .fokus a:hover { text-decoration: underline; }
:root[data-design="amtshotel"] .fokus small { font-weight: 500; opacity: .85; }

/* Alte Leuchtschatten und farbige Verläufe aus app.css abschalten */
:root[data-design="amtshotel"] { --login-glow: transparent; --atmo-1: transparent; --atmo-2: transparent; }
:root[data-design="amtshotel"] .login-brand .mark { box-shadow: 0 6px 14px -8px rgba(43, 37, 35, .55); }
:root[data-design="amtshotel"] .status.work::before { box-shadow: none; }
:root[data-design="amtshotel"] .mw-kopf { font-family: var(--font); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--koralle-tief); }


/* =====================================================================================
   Moderner (Giulio, 20.11.2026: „zu kitschig“): keine Schreibschrift, keine Leine, keine schrägen Karten,
   Zahlen und Zwischenüberschriften in Montserrat. Playfair nur noch für den Seitentitel – die Verbindung zur Website.
   ===================================================================================== */
:root[data-design="amtshotel"] .page-head .schrift, :root[data-design="amtshotel"] .fokus .fokus-schrift { display: none; }
:root[data-design="amtshotel"] .page-head h1 { letter-spacing: -.02em; }
@media (min-width: 1000px) { :root[data-design="amtshotel"] .page-head h1 { font-size: 46px; } }
:root[data-design="amtshotel"] .page-head .sub { letter-spacing: .14em; font-size: 11.5px; }
:root[data-design="amtshotel"] .section-head h2 { font-family: var(--font); font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
:root[data-design="amtshotel"] :is(.group, .stat, .field-group, .health, .btable-wrap, .res-tabelle-liste, .res-plan, .sr-gruppe, .akt-karte, .ct-karte, .df-zahl, .pz-kachel) {
  border-radius: 20px; }
:root[data-design="amtshotel"] .stats { gap: 14px; }
:root[data-design="amtshotel"] .stat { padding: 18px 20px; }
:root[data-design="amtshotel"] .stat .label { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
:root[data-design="amtshotel"][data-theme="dark"] .stat .label { color: var(--text-3); }
:root[data-design="amtshotel"] .stat .value { font-family: var(--font); font-weight: 700; font-size: 30px; letter-spacing: -.025em; line-height: 1.15;
  font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
:root[data-design="amtshotel"] a.stat-link:hover { translate: 0 -2px; }
:root[data-design="amtshotel"] .fokus { clip-path: none; border-radius: 20px; padding: 20px 22px; }
:root[data-design="amtshotel"] .fokus h2 { font-family: var(--font); font-weight: 700; font-size: 18px; }
:root[data-design="amtshotel"] .fokus li::before { background: #fff; }
:root[data-design="amtshotel"] .mark { font-family: var(--font); font-weight: 800; }
@media (max-width: 760px) {
  :root[data-design="amtshotel"] .page-head h1 { font-size: 34px; }
  :root[data-design="amtshotel"] .stat .value { font-size: 26px; }
}

/* ------------------------------------------------ Auslastung & Preise */
.au-filter { flex-wrap: wrap; gap: 8px; }
.au-filter .seg button { height: 34px; padding: 0 12px; }
.au-st { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.au-st.schwach { background: var(--coral-soft, #FBE3E1); color: var(--coral-strong, #C43F3E); }
.au-st.mittel { background: var(--surface-2); color: var(--text-2); }
.au-st.voll { background: #E3F1E8; color: #23603F; }
:root[data-theme="dark"] .au-st.voll { background: rgba(62, 142, 102, .22); color: #8FD3AE; }
.au-wochen { padding: 8px 18px; }
.au-woche { display: grid; grid-template-columns: 52px 52px 1fr 48px 96px; align-items: center; gap: 10px; padding: 7px 0; font-size: 14px; }
.au-woche + .au-woche { border-top: 1px solid var(--line); }
.au-kw { font-weight: 700; }
.au-datum { color: var(--text-3); font-size: 12.5px; }
.au-balken { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.au-balken i { display: block; height: 100%; border-radius: 999px; background: var(--text-3); }
.au-balken i.schwach { background: var(--coral, #EC5F5E); }
.au-balken i.voll { background: #3E8E66; }
.au-wp { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.au-legende { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 4px 10px; }
.au-monate { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.au-monat { background: var(--karte); border-radius: 20px; padding: 14px 14px 16px; box-shadow: var(--karte-schatten-klein); }
.au-monat h3 { margin: 0 0 8px 4px; font-size: 15px; font-weight: 700; }
.au-kopf, .au-raster { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.au-kopf span { text-align: center; font-size: 10.5px; font-weight: 700; color: var(--text-3); text-transform: uppercase; }
.au-tag { position: relative; aspect-ratio: 1; border-radius: 10px; display: grid; place-content: center; text-align: center; line-height: 1.1; background: var(--surface-2); }
.au-tag.leer { background: transparent; }
.au-tag.schwach { background: var(--coral-soft, #FBE3E1); }
.au-tag.mittel { background: var(--surface-2); }
.au-tag.voll { background: #E3F1E8; }
:root[data-theme="dark"] .au-tag.voll { background: rgba(62, 142, 102, .22); }
.au-nr { font-size: 13px; font-weight: 700; }
.au-p { font-size: 9.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.au-f { position: absolute; top: 3px; right: 5px; font-size: 8px; color: var(--coral-strong, #C43F3E); }
@media (max-width: 760px) {
  .au-woche { grid-template-columns: 46px 1fr 42px; }
  .au-datum, .au-st:not(.au-legende .au-st) { display: none; }
  .au-woche .au-st { display: none; }
}
.au-filter .seg { flex-wrap: wrap; height: auto; max-width: 100%; }
.au-filter .seg button { flex: none; }
.au-ende { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 760px) { .au-ende { flex-direction: column; align-items: flex-end; } }

/* ------------------------------------------------ Liquidität */
.lq-diagramm { padding: 14px 12px 6px; }
.lq-svg { width: 100%; height: auto; display: block; }
.lq-raster { stroke: var(--line); stroke-width: 1; }
.lq-achse { fill: var(--text-3); font-size: 12px; font-family: var(--font); }
.lq-null { stroke: var(--text-2); stroke-width: 1.2; stroke-dasharray: 4 4; }
.lq-linie { fill: none; stroke: var(--coral-strong, #C43F3E); stroke-width: 2.5; stroke-linejoin: round; }
.lq-flaeche { fill: var(--coral-soft, #FBE3E1); opacity: .55; }
.lq-tief { fill: var(--coral-strong, #C43F3E); stroke: var(--karte); stroke-width: 2; }
.lq-tief-text { fill: var(--text); font-size: 13px; font-weight: 700; font-family: var(--font); }
.lq-hit { fill: transparent; }
.lq-hit:hover { fill: var(--hover); }
.lq-betrag { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lq-betrag.plus, td.plus { color: #2F7D4A; }
.stat .value.minus, td.minus { color: var(--coral-strong, #C43F3E); }
:root[data-theme="dark"] .lq-betrag.plus, :root[data-theme="dark"] td.plus { color: #8FD3AE; }
.lq-spalten { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 900px) { .lq-spalten { grid-template-columns: 1fr; } }
.btable td.num, .btable th.num { text-align: right; font-variant-numeric: tabular-nums; }
.lq-spalten + *, .page .btable-wrap > .btable { width: 100%; }

/* Dienstplan: feste Person fürs Frühstück */
.pfest { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.pfest select.input { min-height: 34px; height: 34px; padding: 0 10px; width: auto; }
#confirm-text { white-space: pre-line; }
.au-v { position: absolute; top: 2px; left: 5px; font-size: 9px; color: var(--coral-strong, #C43F3E); }
.fb-upload { cursor: pointer; }

/* ------------------------------------------------ Immobilienverwaltung */
.im-objekte { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.im-objekt { display: grid; gap: 6px; padding: 20px; text-decoration: none; color: inherit; transition: translate .15s; }
.im-objekt:hover { translate: 0 -2px; }
.im-objekt strong { font-size: 18px; font-weight: 700; }
.im-zahlen { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 13px; color: var(--text-2); }
.im-zahlen b { color: var(--text); font-variant-numeric: tabular-nums; }
.im-zahlen .minus, .minus { color: var(--coral-strong, #C43F3E); }
.im-archiv { opacity: .6; }
.im-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.im-tabs::-webkit-scrollbar { display: none; }
.im-tabs a { white-space: nowrap; flex: none; }
button.im-kachel { font: inherit; color: inherit; text-align: left; cursor: pointer; border: 0; }
button.im-kachel:hover { translate: 0 -2px; }
.im-leiste { align-items: center; flex-wrap: wrap; gap: 8px; }
.im-form { padding: 20px; gap: 14px; scroll-margin-top: 96px; }
.im-form h3 { margin: 0; font-size: 17px; font-weight: 700; }
.im-felder { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px 14px; }
.im-felder .breit, .im-liste, .pfield.breit { grid-column: 1 / -1; }
.im-liste { display: grid; gap: 8px; padding: 12px; border-radius: 16px; background: var(--surface-2); }
.im-liste-titel { font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.im-zeile { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: flex-end; }
.im-zeile .pfield { flex: 1 1 130px; min-width: 110px; }
.im-zeile .pfield.breit { flex-basis: 100%; }
.im-zeile .pfield input[type="checkbox"] { width: 20px; height: 20px; }
.im-datei { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.im-einheit, .im-pos, .im-mvk { margin-bottom: 14px; }
/* Einheiten als große Kacheln (Einstieg in die Immobilie) */
.im-ekacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.im-ekachel { display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 18px 20px; border-radius: 20px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--text); cursor: pointer; font: inherit; transition: transform .18s ease, border-color .18s ease, background-color .18s ease; }
.im-ekachel:hover { transform: translateY(-2px); border-color: var(--accent, #E8554F); }
.im-ekachel:focus-visible { outline: 2px solid var(--accent, #E8554F); outline-offset: 2px; }
.im-ekachel.eigen { opacity: .82; }
.im-ek-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 10px; }
.im-ekachel { min-width: 0; overflow: hidden; }
.im-ek-kopf b { font-size: 17px; }
.im-ek-art, .im-ek-unter { color: var(--text-2); font-size: 13px; }
.im-ek-wert { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 6px; }
.im-ek-wert small { font-size: 13px; font-weight: 500; color: var(--text-2); }
.im-ek-fuss { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.im-ek-pfeil { margin-left: auto; color: var(--text); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .im-ekachel { transition: none; } .im-ekachel:hover { transform: none; } }
/* Auswahl der Einheit oben in der Akte */
.im-einheitwahl { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 16px; margin: 6px 0 14px; }
.im-einheitwahl .pfield { min-width: min(100%, 340px); margin: 0; }
.im-einheitwahl p { margin: 0 0 10px; flex: 1 1 260px; }
.im-datei-einheit { width: auto; min-width: 150px; padding-block: 6px; font-size: 13px; }
.im-gemeinsam { margin-top: 6px; }
/* Handy: Name und Angaben der Einheit über die volle Breite, Status und Knöpfe darunter (sonst wird der Name abgeschnitten) */
@media (max-width: 640px) {
  .im-einheit > .row:first-child { flex-wrap: wrap; row-gap: 10px; }
  .im-einheit > .row:first-child > .row-main { flex: 1 1 100%; min-width: 0; }
  .im-einheit > .row:first-child .row-title { display: block; white-space: normal; }
  .im-einheit > .row:first-child .row-title > span { display: inline; white-space: normal; overflow: visible; text-overflow: clip; }
  .im-einheit > .row:first-child > .row-end { flex: 1 1 100%; flex-direction: row; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 8px; }
}
.im-pos { padding: 14px 16px; display: grid; gap: 10px; }
.im-kreis { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.im-check { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; }
.im-check input { width: 18px; height: 18px; accent-color: var(--coral-strong, #C43F3E); }
.im-rechen { margin: 0; color: var(--text-2); }
.im-nr { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 10px; border-radius: 50%; background: var(--haupt); color: var(--haupt-text); font-size: 13px; font-weight: 700; }
.im-vertragtext { font-family: Georgia, "Times New Roman", serif; font-size: 14.5px; line-height: 1.55; min-height: 420px; }
.im-verlaufe, .au-woche.im-verlauf { grid-template-columns: 70px 1fr 110px; }
.im-mvk .btable-wrap, .im-einheit .btable-wrap { box-shadow: none; }
@media (max-width: 760px) { .im-felder { grid-template-columns: 1fr; } .im-zeile .pfield { flex-basis: 100%; } }
.im-tabs a { padding: 0 12px; font-size: 13.5px; }
form[data-im-nk-zeit], .im-mvk > .im-zeile { padding: 14px 16px; }
.im-mvk .bh-knoepfe { padding: 0 16px 14px; }
.im-tabs a { height: 38px; display: inline-flex; align-items: center; }
form[data-im-vertragform] { padding: 18px; }

/* Immobilien – zweite Runde: Schnell erfassen, offene Punkte, Menüs, Suche */
.im-schnell { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 14px; border-radius: 18px; background: var(--surface-2); }
.im-schnell > span { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-right: 4px; }
.im-schnell .btn { background: var(--karte); }
button.im-punkt { width: 100%; font: inherit; color: inherit; text-align: left; background: none; border: 0; cursor: pointer; display: flex; align-items: center; gap: 12px; }
button.im-punkt:hover { background: var(--hover); }
.im-ampel { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--text-3); }
.im-ampel.warn { background: var(--coral, #EC5F5E); }
.im-ampel.ok { background: #5FB37A; }
.im-bezug { margin: 0; padding: 8px 12px; border-radius: 12px; background: var(--surface-2); font-size: 13px; color: var(--text-2); }
.im-zusatz { border-top: 1px solid var(--line); padding-top: 10px; }
.im-zusatz > summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--text-2); margin-bottom: 10px; }
.im-menue { position: relative; display: inline-block; }
.im-menue > summary { list-style: none; cursor: pointer; }
.im-menue > summary::-webkit-details-marker { display: none; }
.im-menue-liste { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; min-width: 240px; display: grid; gap: 2px; padding: 6px; border-radius: 16px; background: var(--karte); box-shadow: var(--pop-schatten); }
.im-menue-liste .btn { justify-content: flex-start; border: 0; width: 100%; white-space: nowrap; }
.im-letzter { padding: 12px 14px; border-radius: 14px; background: var(--coral-soft, #FBE3E1); font-size: 15px; }
:root[data-theme="dark"] .im-letzter { background: rgba(236, 95, 94, .16); }
.input.im-gross { font-size: 22px; font-weight: 700; height: 52px; font-variant-numeric: tabular-nums; }
.im-suchfeld { display: block; }
.im-suche { max-width: 520px; }
.im-kz { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.im-kz span { display: grid; gap: 1px; }
.im-kz small { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.im-kz b { font-size: 15px; font-variant-numeric: tabular-nums; }
.im-bericht { padding: 14px 16px; display: grid; gap: 10px; }
.im-bericht .im-zeile { align-items: flex-end; }
.page .btable-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 760px) {
  .im-schnell { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; border-radius: 0; padding: 10px 16px; }
  .im-schnell .btn { flex: none; min-height: 40px; }
  .im-menue-liste { position: static; box-shadow: none; padding: 4px 0; }
  .au-ende .btn, .im-form .btn { min-height: 40px; }
  .im-kz { grid-template-columns: 1fr 1fr; }
  .btable { min-width: 520px; }
}
.im-tabs a { padding: 0 9px; font-size: 13px; }


/* Gäste → Anfragen */
.ga-karte { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: var(--s5, 20px); overflow: hidden; }
.ga-links, .ga-rechts { padding: var(--s4, 16px); display: grid; gap: 8px; align-content: start; min-width: 0; }
.ga-links { background: color-mix(in srgb, var(--surface) 60%, var(--bg, #FFF9F4)); border-right: 1px solid var(--line); }
.ga-kopfzeile { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 28px; }
.ga-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.ga-wer { font-weight: 700; font-size: 17px; overflow-wrap: anywhere; }
.ga-kurz { margin: 0; font-weight: 600; }
.ga-frage { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 300px; overflow: auto; font-size: 14px; line-height: 1.5; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm, 8px); }
.ga-vf { border-top: 1px solid var(--line); padding-top: 8px; display: grid; gap: 6px; }
.ga-kat { display: flex; flex-wrap: wrap; gap: 6px; }
.ga-feld { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 8px; }
.ga-feld span { font-size: 13px; color: var(--text-2); }
.ga-text { width: 100%; min-height: 260px; resize: vertical; padding: 12px; border: 1px solid var(--line-strong, var(--line)); border-radius: var(--r-sm, 8px); background: var(--surface); line-height: 1.55; font-size: 15px; }
.ga-text:focus { outline: none; box-shadow: var(--focus); border-color: var(--coral); }
.ga-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 860px) { .ga-karte { grid-template-columns: minmax(0, 1fr); } .ga-links { border-right: 0; border-bottom: 1px solid var(--line); } .ga-text { font-size: 16px; } }
.lq-abos { margin-top: 10px; }
.lq-abos > summary { cursor: pointer; font-weight: 600; padding: 8px 2px; }
.lq-abos[open] > summary { margin-bottom: 6px; }
.ga-hi-zeile { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(0, 3fr); gap: 10px; padding: 10px 14px; align-items: start; }
.ga-hi-zeile + .ga-hi-zeile { border-top: 1px solid var(--line); }
.ga-hi-text { height: auto; padding: 8px 12px; resize: vertical; line-height: 1.45; }
@media (max-width: 700px) { .ga-hi-zeile { grid-template-columns: minmax(0, 1fr); } }
.vt-vergleich { border: 1px solid var(--line); border-radius: var(--r-sm, 8px); padding: 8px 12px; font-size: 14px; }
.vt-vergleich > summary { cursor: pointer; line-height: 1.5; }
.vt-vergleich ul { margin: 8px 0; padding-left: 18px; display: grid; gap: 4px; }
.vt-vergleich ul.vt-ang-liste { padding-left: 0; list-style: none; gap: 10px; }
.vt-ang { border-top: 1px solid var(--line); padding-top: 10px; display: grid; gap: 4px; }
.vt-ang-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.vt-ang-kopf small { color: var(--text-2); }
.vt-ang p { margin: 0; }
.vt-ang-alt { opacity: .6; }

/* Haus → Wartung */
.wt-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; padding: 14px; }
.wt-form label { display: grid; gap: 4px; font-size: 13px; color: var(--text-2); }
.wt-form .breit { grid-column: 1 / -1; }
.wt-form .input { width: 100%; }

/* Marktpreise und Energie */
:root { --mk-wir: #EC5F5E; --mk-band: #E9DAD3; --mk-median: #2B2523; --en-gas: #EC5F5E; --en-strom: #E2A72E; --en-wasser: #3E8FB8;
  --mk-g2: #BFDDEB; --mk-g1: #DFEEF5; --mk-t1: #FBE3E1; --mk-t2: #F4BBB8; --bel-schwach: #F0A19F; --bel-mittel: #E6D3CB; --bel-voll: #6FB58C; }
:root[data-theme="dark"] { --mk-band: #4A3E3B; --mk-median: #FBF1EC; --mk-g2: #24516A; --mk-g1: #213C4B; --mk-t1: #4A2C2B; --mk-t2: #6B3432; --bel-mittel: #5A4C48; --en-strom: #E9B84A; --en-wasser: #5BA8CF; }
.mk-diagramm { position: relative; padding: 14px 12px 10px; }
.mk-svg { display: block; width: 100%; height: auto; overflow: visible; }
.mk-raster { stroke: var(--line); stroke-width: 1; }
.mk-achse { font: 500 11.5px var(--font, sans-serif); fill: var(--text-3); font-variant-numeric: tabular-nums; }
.mk-tag { font: 600 12px var(--font, sans-serif); fill: var(--text-3); }
.mk-tag.we { fill: var(--text); font-weight: 700; }
.mk-monat { font: 700 11.5px var(--font, sans-serif); fill: var(--text-2); letter-spacing: .06em; text-transform: uppercase; }
.mk-we { fill: var(--text); opacity: .035; }
.mk-band { fill: var(--mk-band); }
.mk-median { stroke: var(--mk-median); stroke-width: 2.5; stroke-linecap: round; }
.mk-wir { fill: var(--mk-wir); stroke: var(--surface); stroke-width: 2.5; }
.mk-bel.schwach { fill: var(--bel-schwach); } .mk-bel.mittel { fill: var(--bel-mittel); } .mk-bel.voll { fill: var(--bel-voll); }
.mk-hit { fill: transparent; cursor: pointer; outline: none; }
.mk-hit:hover, .mk-hit.an, .mk-hit:focus-visible { fill: var(--text); fill-opacity: .06; }
.mk-tip { position: absolute; top: 12px; z-index: 5; background: var(--surface); border: 1px solid var(--line-strong, var(--line)); border-radius: 14px; box-shadow: 0 14px 34px -14px rgba(43, 37, 35, .45);
  padding: 12px 14px; font-size: 13px; line-height: 1.45; pointer-events: none; }
.mk-tk { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; font-size: 14px; }
.mk-tk span { color: var(--text-2); }
.mk-tv { color: var(--text-2); margin-bottom: 6px; }
.mk-tz { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; font-variant-numeric: tabular-nums; }
.mk-tz span { color: var(--text-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-tz b { font-weight: 600; white-space: nowrap; }
.mk-tz.wir { border-bottom: 1px solid var(--line); padding-bottom: 6px; margin-bottom: 4px; }
.mk-tz.wir span, .mk-tz.wir b { color: var(--text); font-weight: 700; }
.mk-te { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); font-weight: 600; }
.mk-legende { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 8px 4px 2px; font-size: 12.5px; color: var(--text-2); }
.mk-legende span { display: inline-flex; align-items: center; gap: 6px; }
.mk-l { display: inline-block; flex: none; }
.mk-l.wir { width: 11px; height: 11px; border-radius: 50%; background: var(--mk-wir); }
.mk-l.band { width: 9px; height: 16px; border-radius: 4px; background: var(--mk-band); }
.mk-l.median { width: 16px; height: 3px; border-radius: 2px; background: var(--mk-median); }
.mk-l.bel { width: 16px; height: 7px; border-radius: 4px; }
.mk-l.bel.schwach { background: var(--bel-schwach); } .mk-l.bel.mittel { background: var(--bel-mittel); } .mk-l.bel.voll { background: var(--bel-voll); }
.mk-l.z { width: 16px; height: 12px; border-radius: 3px; border: 1px solid var(--line); }
.mk-l.z.g2 { background: var(--mk-g2); } .mk-l.z.g1 { background: var(--mk-g1); } .mk-l.z.n { background: var(--surface); } .mk-l.z.t1 { background: var(--mk-t1); } .mk-l.z.t2 { background: var(--mk-t2); }
.mk-unter { margin: 22px 2px 8px; }
.mk-unter h3 { font-size: 15px; display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.mk-tabwrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.mk-tab { border-collapse: separate; border-spacing: 0; min-width: 100%; }
.mk-tab th, .mk-tab td { white-space: nowrap; font-variant-numeric: tabular-nums; }
.mk-tab thead th.num { text-align: center; font-size: 11.5px; line-height: 1.25; padding: 8px 6px; }
.mk-tab thead th.num span { display: block; color: var(--text-3); font-weight: 600; }
.mk-tab thead th.we span { color: var(--text); }
.mk-tab tbody th { position: sticky; left: 0; z-index: 1; background: var(--surface); text-align: left; font-weight: 600; font-size: 13px; padding: 7px 12px; max-width: 190px; overflow: hidden; text-overflow: ellipsis; border-right: 1px solid var(--line); }
.mk-tab tbody th small { display: block; font-weight: 500; color: var(--text-3); font-size: 11.5px; }
.mk-tab td.num { text-align: center; padding: 7px 6px; font-size: 13px; min-width: 46px; border-left: 2px solid var(--surface); border-top: 2px solid var(--surface); }
.mk-z.g2 { background: var(--mk-g2); } .mk-z.g1 { background: var(--mk-g1); } .mk-z.t1 { background: var(--mk-t1); } .mk-z.t2 { background: var(--mk-t2); }
.mk-z.leer { color: var(--text-3); }
.mk-wirzeile th, .mk-wirzeile td { font-weight: 800; font-size: 14px; background: var(--surface); }
.mk-wirzeile td { color: var(--coral-strong, #C43F3E); }
.mk-mitte th, .mk-mitte td { color: var(--text-2); border-bottom: 1px solid var(--line-strong, var(--line)); }
.mk-pf { font-style: normal; font-size: 8px; margin-left: 2px; vertical-align: 2px; opacity: .7; }
.mk-auswahl { padding: 14px; }
.mk-kand { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px 14px; margin-bottom: 12px; }
.mk-kand label { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; padding: 4px 0; min-height: 40px; }
.mk-kand input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--coral, #EC5F5E); flex: none; }
.mk-kand small { display: block; color: var(--text-3); font-size: 12px; }
.stat .value.plus { color: #23603F; }
:root[data-theme="dark"] .stat .value.plus { color: #8FD3A8; }
.en-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px; align-items: center; padding: 22px 24px; margin-bottom: var(--s3, 12px); }
.en-zahl { display: grid; gap: 2px; }
.en-zahl .label { color: var(--text-2); font-size: 13px; font-weight: 600; }
.en-gross { font-size: clamp(40px, 7vw, 64px); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.en-split { display: flex; gap: 2px; height: 14px; border-radius: 7px; overflow: hidden; }
.en-teile .en-split { height: 22px; border-radius: 11px; }
.en-f.gas, .en-b.gas, .en-p.gas { background: var(--en-gas); fill: var(--en-gas); }
.en-f.strom, .en-b.strom, .en-p.strom { background: var(--en-strom); fill: var(--en-strom); }
.en-f.wasser, .en-b.wasser, .en-p.wasser { background: var(--en-wasser); fill: var(--en-wasser); }
.en-p.sonst { background: var(--text-3); }
.en-splittext { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: 14px; color: var(--text-2); }
.en-splittext span, .mk-legende .en-p + *, .en-splittext b { font-variant-numeric: tabular-nums; }
.en-splittext span { display: inline-flex; align-items: center; gap: 6px; }
.en-splittext b { color: var(--text); font-weight: 700; }
.en-p { display: inline-block; width: 10px; height: 10px; border-radius: 3px; flex: none; }
.en-wert { font: 800 17px var(--font, sans-serif); fill: var(--text); font-variant-numeric: tabular-nums; }
.en-monat { font: 700 14px var(--font, sans-serif); fill: var(--text); }
.en-bt { font: 700 12px var(--font, sans-serif); fill: #fff; font-variant-numeric: tabular-nums; pointer-events: none; }
.pe-stats { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.pe-karte { display: grid; gap: 6px; align-content: start; text-decoration: none; color: inherit; }
.pe-karte .value small { font-size: 14px; font-weight: 600; color: var(--text-2); letter-spacing: 0; }
.pe-spur { position: relative; height: 14px; margin: 4px 6px 2px; }
.pe-band { position: absolute; inset: 4px 0; border-radius: 3px; background: var(--mk-band); }
.pe-mitte { position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--mk-median); }
.pe-wir { position: absolute; top: 1px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--mk-wir); box-shadow: 0 0 0 2px var(--surface); }
@media (max-width: 760px) { .en-hero { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 18px 16px; } .mk-diagramm { padding: 10px 6px 8px; } .mk-achse, .mk-tag { font-size: 15px; } .mk-monat { font-size: 15px; }
  .en-wert { font-size: 22px; } .en-monat { font-size: 18px; } .en-bt { font-size: 15px; } .mk-tab tbody th { max-width: 128px; } }
.mk-tab tbody th, .mk-tab thead th { text-transform: none; letter-spacing: 0; }
.mk-tab thead th:first-child { text-align: left; padding-left: 12px; font-size: 12px; color: var(--text-3); }
.au-markt { font-weight: 600; color: var(--text-2); }
.au-markt.unter { color: #1F6A8A; } .au-markt.ueber { color: var(--coral-strong, #C43F3E); }
:root[data-theme="dark"] .au-markt.unter { color: #7CC0E0; }
:root[data-design="amtshotel"] .mk-tab th { text-transform: none; letter-spacing: 0; }
:root[data-design="amtshotel"] .mk-tab tbody th { font-size: 13px; font-weight: 600; color: var(--text); }
:root[data-design="amtshotel"] .mk-tab .mk-wirzeile th { font-weight: 800; }
:root[data-design="amtshotel"] .mk-tab .mk-mitte th { color: var(--text-2); }
.mk-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 760px) {
  .mk-breit { min-width: 720px; }
  .mk-breit .mk-achse, .mk-breit .mk-tag, .mk-breit .mk-monat { font-size: 16px; }
  .mk-breit .en-wert { font-size: 22px; } .mk-breit .en-monat { font-size: 19px; } .mk-breit .en-bt { font-size: 16px; }
  .mk-tip { position: static; width: auto !important; margin: 10px 4px 4px; box-shadow: none; pointer-events: auto; }
}

/* Dynamische Preisvorschläge */
.dy-intro { margin: 0 0 var(--s3); max-width: 75ch; }
.dy-tab td.num, .dy-tab th { white-space: nowrap; }
.dy-z { font-weight: 700; font-variant-numeric: tabular-nums; }
.dy-z small { display: block; font-size: 10.5px; font-weight: 500; color: var(--text-3); }
.dy-z.hoch { box-shadow: inset 0 0 0 2px var(--ok-soft); color: var(--ok); }
.dy-z.runter { box-shadow: inset 0 0 0 2px var(--warn-soft); color: var(--warn); }
.dy-z.ok { opacity: .55; }
.dy-einst { margin-top: var(--s4); }
.dy-einst > summary { cursor: pointer; list-style: none; }
.dy-einst > summary::-webkit-details-marker { display: none; }
.dy-form { padding: 0 var(--s3) var(--s3); display: grid; gap: var(--s3); }
.dy-in { width: 84px; text-align: right; }
.dy-einst > p { padding: 0 var(--s3) var(--s3); margin: 0; }

/* Kosten pro Gast */
.kt-balken { display: flex; height: 26px; border-radius: 13px; overflow: hidden; margin: var(--s3) 0 var(--s2); background: var(--surface-2); }
.kt-balken i { display: block; height: 100%; min-width: 2px; }
.kt-leg { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: var(--fs-small); color: var(--text-2); margin-bottom: var(--s3); }
.kt-leg i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.kt-f0 { background: #EC5F5E; } .kt-f1 { background: #F7D35E; } .kt-f2 { background: #7FB69E; } .kt-f3 { background: #6C8EBF; } .kt-f4 { background: #B79BD1; } .kt-f5 { background: #C9BDB7; }
.kt-tab td.num, .kt-tab th.num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.kt-tab tr.kt-sum td, .kt-tab tr.kt-sum th { font-weight: 700; border-top: 1px solid var(--line); }

/* Musik-Karte (Sonos) auf der Übersicht */
.so-karte .row-title { flex-wrap: wrap; }
.so-karte .row-title > span:first-child { overflow: visible; white-space: normal; }
@media (max-width: 560px) { .so-karte .row { flex-wrap: wrap; } .so-karte .row-end { width: 100%; justify-content: flex-start; margin-top: 8px; } }


/* ---- Handy-Feinschliff (Prüfung 25.11.2026) ---- */
@media (max-width: 640px) {
  .start-neu { flex-wrap: wrap; }
  .start-neu .input:first-child { flex: 1 1 100%; min-width: 0; }            /* To-do-Feld Rezeption war 26 px schmal */
  :root[data-design="amtshotel"] .stat .value { font-size: 24px; white-space: nowrap; }   /* „1.650,00 €“ ohne Umbruch */
  .pchip { min-height: 40px; padding: 8px 14px; }                            /* Tippflächen mind. 40 px */
  .padd { min-height: 40px; }
  .vt-kopie { padding: 8px 6px; }
  a.more { display: inline-block; padding: 10px 4px; }
  .tabbar a, .tabbar button { padding-inline: 4px; }
  .tabbar a span, .tabbar button span { font-size: 10px; }
}
@media (max-width: 480px) {
  .pgrid { grid-template-columns: 1fr; }                                     /* Formularfelder einspaltig statt abgeschnitten */
}

/* Breite Tabellen (Dienstplan, Personal): am Handy weicher Rand rechts als Hinweis „seitlich wischen“ */
@media (max-width: 640px) {
  .table-wrap { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); padding-right: 20px; }
}
