/* getwirtly-Stil (Nov 2026), Aufbau wie die getwirtly-Website: weiße Fläche, Kacheln in Hafer ohne Rahmen, Terrakotta, Plus Jakarta Sans + Inter, mittlere Rundungen, einheitliche Knöpfe (M 44 px, S 36 px).
   Liegt über design-2026.css (auch über der Farbwelt Kaffee). Gilt, wenn <body> die Klasse "wirtly" hat (alle Seiten). */
body.wirtly {
  /* U-112: Farben wie die Werkbank (werkbank.css). Kundenfarbe: --kunde-accent, sonst Terrakotta. */
  --accent: var(--kunde-accent, #B9532C);
  --accent2: #9E4524;
  --accent-ink: #9E4524;
  --on-acc: #FFFFFF;        /* Schrift auf Akzentflächen */
  --on-ink: #FFFFFF;        /* Schrift auf dunklen Knöpfen/Chips */
  --bg: #F1F2F0;           /* Seitenrand / Hintergrund */
  --panel: #F1F2F0;        /* Hauptfläche */
  --surface: #FFFFFF;      /* Karten */
  --surface-2: #F7F8F6;    /* Flächen in Karten */
  --weiss: #F7F8F6;        /* Eingabefelder, Knöpfe, innere Flächen */
  --chip: #ECEFEB;         /* Hover, ruhige Flächen */
  --ink: #1C2321;
  --ink2: #3A4642;
  --ink-hover: #2E3835;
  --muted: #64706C;
  --faint: #8A9590;
  --line: #DFE2DE;
  --line2: #CDD3CF;
  --kopf: #1F2A28;
  --kopf-ink: #EEF2F0;
  --kopf-mut: #9FB0AB;
  --kopf-line: #33423F;
  --yolk: var(--accent);
  --yolk-ink: #FFFFFF;
  --yolk-soft: #FBEDE6;
  --green: #2F6A2B;
  --green-soft: #E3F0E1;
  --red: #9A3415;
  --red-soft: #FBE4DC;
  --warn: #7A5A00;
  --warn-soft: #FBF0D2;
  --blau: #2D5A73;
  --blau-bg: #E2ECF2;
  --fw-grad: #B9532C;
  --fw-dark: #1C2321;
  --fw-hell: #FBEDE6;
  --forest: #1F2A28;       /* dunkle Kachel (Kopfkachel) */
  --terra: #B9532C;
  --sand: #F7F8F6;
  --f-sans: "IBM Plex Sans", -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
  --f-display: var(--f-sans);
  --f-body: var(--f-sans);
  --f-serif: var(--f-sans);
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --r: 14px;
  --rb: 9px;
  color-scheme: light;
  background: var(--bg); color: var(--ink);
  font-family: var(--f-body);
  -webkit-font-smoothing: antialiased;
}
@media (prefers-color-scheme: dark) {
  body.wirtly {
    --accent: var(--kunde-accent, #E07A50);
    --accent2: #C9653C;
    --accent-ink: #F0A07C;
    --on-acc: #1A0E08;
    --on-ink: #111615;
    --bg: #111615;
    --panel: #111615;
    --surface: #1A211F;
    --surface-2: #151B1A;
    --weiss: #151B1A;
    --chip: #232C29;
    --ink: #E6ECEA;
    --ink2: #C3CECA;
    --ink-hover: #FFFFFF;
    --muted: #93A19C;
    --faint: #6F7D78;
    --line: #2B3532;
    --line2: #3A4642;
    --kopf: #0B100F;
    --kopf-ink: #E6ECEA;
    --kopf-mut: #8A9A95;
    --kopf-line: #26302D;
    --yolk-ink: #1A0E08;
    --yolk-soft: #3A2419;
    --green: #9FD39A;
    --green-soft: #1F3320;
    --red: #F0A08A;
    --red-soft: #3E1F16;
    --warn: #EAC86A;
    --warn-soft: #3A3015;
    --blau: #9CC6DC;
    --blau-bg: #1C2D37;
    --fw-dark: #E6ECEA;
    --fw-hell: #3A2419;
    --forest: #0B100F;
    --sand: #151B1A;
    color-scheme: dark;
  }
}
body.wirtly input, body.wirtly select, body.wirtly textarea, body.wirtly button { font-family: inherit; }

/* Schrift (U-112: wie die Werkbank – Text Plex Sans/System, Zahlen und kleine Marken in Plex Mono) */
body.wirtly h1, body.wirtly .page-head h1 { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.01em; }
body.wirtly h2, body.wirtly h3, body.wirtly .plus-head h2, body.wirtly .dpm-sheet-h h2 { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.01em; }
body.wirtly .needs-title { font-family: var(--f-display); font-weight: 500; letter-spacing: -0.01em; }
body.wirtly .needs-title strong { font-weight: 600; }
body.wirtly .kpi-num, body.wirtly .tile-num, body.wirtly .tile-num.mono, body.wirtly .rd-kpi strong, body.wirtly .dpm-area-h > span:nth-child(2) { font-family: var(--f-mono); font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
body.wirtly .dpm-daytitle b, body.wirtly .dpm-nr { font-family: var(--f-display); font-weight: 600; }
body.wirtly .eyebrow, body.wirtly .plus-label { font-family: var(--f-mono); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
body.wirtly .btn, body.wirtly .side-name { font-family: var(--f-display); }
body.wirtly .mono, body.wirtly .num, body.wirtly .res-time, body.wirtly code { font-family: var(--f-mono); }

/* Seitenleiste: Kopf als dunkle Kachel wie in der Werkbank, aktiver Punkt weiße Karte mit dünner Linie */
body.wirtly .side { background: var(--bg); }
body.wirtly .side-top { background: var(--kopf); color: var(--kopf-ink); border-radius: var(--r); padding: 8px 10px; min-height: 56px; }
body.wirtly .side-top .side-name { color: var(--kopf-ink); }
body.wirtly .side-top .side-logo-img { filter: brightness(0) invert(0.92); }
body.wirtly .side-logo { border-radius: var(--rb); }

/* Hauptfläche und Karten: dünne Linien statt Schatten, Radius 14 (wie die Werkbank) */
body.wirtly.has-shell .wrap { background: var(--panel); border-radius: var(--r); }
body.wirtly .panel, body.wirtly .w, body.wirtly .tile, body.wirtly .card { background: var(--surface); border: 1px solid var(--line); box-shadow: none; }
body.wirtly .panel { border-radius: var(--r); }
body.wirtly .tile { border-radius: var(--r); }
body.wirtly :is(.btn, .btn-sm, .chip-btn, .ek-chip, .mk-chip) { border-radius: var(--rb); }

/* Hauptkarte / erste Kachel: ruhig statt Verlauf */
body.wirtly .dash > .w.needs, body.wirtly .needs, body.wirtly .mein-hero, body.wirtly .mein-hero.is-in { background: var(--yolk-soft); color: var(--ink); box-shadow: none; border-color: transparent; }
body.wirtly .need-chip { background: var(--weiss); color: var(--ink); }
body.wirtly .tile:first-child { background: var(--surface); color: var(--ink); }
body.wirtly .tile:first-child .tile-label, body.wirtly .tile:first-child .tile-sub { color: var(--muted); }
body.wirtly .tile:first-child .tile-num { color: var(--ink); }

/* Knöpfe */
body.wirtly .btn-primary, body.wirtly .rd-actions .btn-primary { background: var(--accent); color: var(--on-acc); border-color: transparent; }
body.wirtly .btn-primary:hover { background: var(--accent2); filter: none; }
body.wirtly .btn-ghost { background: var(--weiss); border-color: var(--line2); box-shadow: none; }
body.wirtly .tab-plus, body.wirtly .side-plus, body.wirtly .dpm-main, body.wirtly .dpm-big.is-accent { background: var(--accent); color: var(--on-acc); }
body.wirtly .nav-badge { background: var(--accent); color: var(--on-acc); }

/* Formulare */
body.wirtly main .form input:not([type=checkbox]):not([type=radio]), body.wirtly main .form select, body.wirtly main .form textarea { border-radius: 12px; background: var(--weiss); border-color: var(--line); }

/* Reiter / Chips */
body.wirtly .mk-tabs a.is-active, body.wirtly .rd-chips a.is-active { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
body.wirtly .rd-kpis { background: var(--kopf); border-radius: var(--r); }

/* Seitenleiste: Farbwelt Kaffee färbt sie dunkel – hier hell mit dunkler Schrift */
html body.wirtly .side { background: var(--bg); color: var(--ink); }
html body.wirtly .side-me-name { color: var(--ink); }
html body.wirtly .side-top .side-name { color: var(--kopf-ink); }
html body.wirtly .side-logo { background: var(--accent); color: var(--on-acc); }
html body.wirtly .side-logo-img { filter: brightness(0) invert(0.92); }
/* Einträge, Gruppen, Zähler, Fußzeile: assets/menue.css */
/* Handy: Leiste unten weiß und schwebend wie die Menüleiste der Website */
@media (max-width: 900px) {
  html body.wirtly .tabbar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: none; }
  html body.wirtly .tab { color: var(--muted); }
  html body.wirtly .tab.is-active, html body.wirtly .tab.is-active svg { color: var(--accent); }
  html body.wirtly .tab-menu[aria-expanded="true"] { background: var(--surface); color: var(--ink); }
  html body.wirtly .tab-badge { box-shadow: 0 0 0 2px var(--bg); }
  html body.wirtly .tab-plus { border-color: var(--bg); background: var(--accent); }
}
html body.wirtly .dpm-seg button[aria-pressed="true"], html body.wirtly .dpm-day.is-on { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
html body.wirtly .dpm-gap, html body.wirtly .sc-gap { border-color: var(--warn); }

/* Durchgang 17.11.: Reste des alten Looks */
html body.wirtly h1, html body.wirtly .page-head h1 { font-family: var(--f-display) !important; }
html body.wirtly :is(.kpi, .need-list, .res-info, .dp-status, .km-box, .km-leer, .dpm-area, .an-card, .pa-sum, .mk-card, .ka-status, .es-karte, .ag-karte, .ag-post) { border-radius: var(--r); }
/* Wie die Werkbank: dünne Linie statt Schatten */
html body.wirtly :is(.kpi, .res-info, .dp-status, .km-box, .dpm-area, .an-card, .pa-sum, .mk-card, .ka-status, .es-karte, .ag-karte, .ag-post) { border-color: var(--line); box-shadow: none; }

/* Grün aus dem alten Marketing-Look -> Espresso */
html body.wirtly .mk-strip-format, html body.wirtly .mk-play { background: rgb(42 31 24 / 0.82); }
html body.wirtly .rs-ico-intro, html body.wirtly .rs-ico-geteilt { background: var(--ink); }
html body.wirtly .ag-passt { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
html body.wirtly .ag-passt:hover { background: var(--ink-hover); }
html body.wirtly .ag-strategie { background: var(--ink); }
/* Farbverlauf-Auswahl wirkt im getwirtly-Stil nicht: ausblenden */
html body.wirtly .es-karte:has(.es-vl) { display: none; }

/* =========================================================
   Einheitliche Knöpfe (17.11. spät): überall gleiche Höhe, Rundung und Schrift
   M = 44 px (Hauptaktionen), S = 36 px (in Listen, Zeilen, Filter, Reiter)
   ========================================================= */
html body.wirtly :is(.btn, .ka-k, .dpm-menu, .ab-fertig-knopf, .btn-go, .btn-accent, .file-btn) {
  min-height: 44px; height: auto; padding: 0 18px; box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 12px; font-family: var(--f-display); font-size: 15px; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em;
}
html body.wirtly :is(.btn-sm, .chip-btn, .ek-chip, .ab-da, .ag-chip-btn, .mk-chip, .hv-ort-wahl, .hv-weg, .kat-nav a, .viewtabs a, .mk-tabs a, .rd-chips a, .dpm-seg button, .seg a, .seg button) {
  min-height: 36px; height: auto; padding: 0 14px; box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 10px; font-family: var(--f-display); font-size: 13.5px; font-weight: 700; line-height: 1.15; letter-spacing: -0.005em;
}
/* Zweitknöpfe, Filter und Chips: weiß mit feiner Linie */
html body.wirtly :is(.btn-ghost, .chip-btn:not(.mi-out):not(.chip-wa), .ek-chip, .ag-chip-btn, .mk-chip, .hv-ort-wahl, .kat-nav a) { background: var(--weiss); border: 1px solid var(--line2); color: var(--ink); box-shadow: none; }
html body.wirtly :is(.btn-ghost, .chip-btn:not(.mi-out):not(.chip-wa), .ek-chip, .kat-nav a):hover { background: var(--chip); }
html body.wirtly :is(.kat-nav a, .mk-chip, .ek-chip, .hv-ort-wahl).is-active { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
/* Reiter-Gruppen: Hafer-Leiste, aktiver Reiter weiß */
html body.wirtly :is(.viewtabs, .mk-tabs, .dpm-seg) { border-radius: 12px; }
/* Eingabe neben kleinen Knöpfen (z. B. Preis in der Speisekarte) */
html body.wirtly .mi-price input { height: 36px; min-height: 36px; border-radius: 10px; font-size: 14px; padding: 0 10px; }
/* Größere Felder in Formularen passend zu M */
html body.wirtly main .form :is(input:not([type=checkbox]):not([type=radio]):not([type=range]), select) { min-height: 44px; }
/* Hauptknopf in Reservierungen, Menü-Knopf daneben, Dringend-Schalter im Einkauf */
html body.wirtly .rc-haupt { min-height: 44px; height: auto; border-radius: 12px; font-family: var(--f-display); font-size: 15px; font-weight: 700; }
html body.wirtly .rc-mehr-knopf { width: 44px; min-width: 44px; height: 44px; min-height: 44px; border-radius: 12px; }
html body.wirtly .ek-urgent span { min-height: 36px; padding: 0 14px; border-radius: 10px; display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-display); font-size: 13.5px; font-weight: 700; }
html body.wirtly .dp-pfeil { padding: 0; width: 44px; min-width: 44px; }

/* =========================================================
   Wochenplanung einrichten (18.11.): ordentlicher, kompakter, Handy
   ========================================================= */
/* Alle Eingabefelder der Seite gleich: 44 px, Rundung 12, weiß */
html body.wirtly :is(#oeffnung, #bereiche, #schichten, #personal, #frist) :is(input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=hidden]), select) {
  height: 44px; min-height: 44px; box-sizing: border-box; width: 100%; min-width: 0;
  padding: 0 12px; border: 1px solid var(--line2); border-radius: 12px; background: var(--weiss); color: var(--ink);
  font: 500 16px var(--f-body); font-variant-numeric: tabular-nums; -webkit-appearance: none; appearance: none;
}
html body.wirtly :is(#oeffnung, #bereiche, #schichten, #personal, #frist) select {
  padding-right: 34px; background: var(--weiss) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236F6862' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 12px center / 12px 8px no-repeat;
}
html body.wirtly :is(#oeffnung, #bereiche, #schichten, #personal, #frist) :is(input, select):focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
html body.wirtly :is(#oeffnung, #bereiche, #schichten, #personal, #frist) label:not(.check):not(.ws-chip):not(.wsb-chip) { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); min-width: 0; }
html body.wirtly .ws-form { gap: 12px; }

/* 1 · Öffnungszeiten: Reiter + Gruppen */
html body.wirtly .oz-form.is-js .oz-week { display: none; }
html body.wirtly .oz-form.is-js .oz-block > .oz-title, html body.wirtly .oz-form.is-js .oz-saison > summary { display: none; }
html body.wirtly .oz-form.is-js .oz-block { border: 0; padding: 0; background: none; margin: 0; }
html body.wirtly .oz-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--line); border-radius: 12px; align-self: flex-start; margin-bottom: 12px; width: fit-content; max-width: 100%; }
html body.wirtly .oz-tab { min-height: 40px; padding: 4px 14px; border: 0; border-radius: 10px; background: none; color: var(--ink2); cursor: pointer; display: inline-flex; align-items: baseline; gap: 6px; font-family: var(--f-display); font-size: 13.5px; }
html body.wirtly .oz-tab strong { font-weight: 700; }
html body.wirtly .oz-tab small { font-family: var(--f-body); font-size: 12px; color: var(--muted); }
html body.wirtly .oz-tab[aria-selected="true"] { background: var(--weiss); color: var(--ink); box-shadow: 0 4px 12px -6px rgb(0 0 0 / .25); }
html body.wirtly .oz-tab.is-neu { color: var(--accent-ink); }
html body.wirtly .oz-saison-head { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; margin-bottom: 12px; }
html body.wirtly .oz-gruppen { background: var(--weiss); border-radius: 14px; padding: 4px 16px; }
html body.wirtly .oz-gr { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
html body.wirtly .oz-tage { display: grid; grid-template-columns: repeat(7, 40px); gap: 4px; }
html body.wirtly .oz-t { height: 36px; border-radius: 10px; border: 1px solid var(--line2); background: var(--weiss); color: var(--faint); font: 700 13px var(--f-display); cursor: pointer; padding: 0; }
html body.wirtly .oz-t[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
html body.wirtly .oz-zeit { display: grid; grid-template-columns: 104px auto 104px; gap: 8px; align-items: center; }
html body.wirtly .oz-zeit input { padding: 0 10px !important; }
html body.wirtly .oz-zeit input::-webkit-calendar-picker-indicator { margin: 0 0 0 2px; padding: 0; }
html body.wirtly .oz-gr-weg { margin-left: auto; width: 44px; height: 44px; flex: none; border-radius: 12px; border: 1px solid var(--line2); background: var(--weiss); color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; }
html body.wirtly .oz-fuss { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; }
html body.wirtly .oz-ruhe-info { font-size: 14px; color: var(--muted); }
html body.wirtly .oz-ruhe-info b { color: var(--ink); }

/* 2 · Bereiche */
html body.wirtly .wb-liste { display: flex; flex-direction: column; background: var(--weiss); border-radius: 14px; padding: 4px 14px; }
html body.wirtly .wb-zeile { display: grid; grid-template-columns: 26px 44px minmax(0, 1fr) 44px; grid-template-areas: "an farbe name weg" ". . zeit zeit"; gap: 8px 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
html body.wirtly .wb-zeile:last-child { border-bottom: 0; }
html body.wirtly .wb-an { grid-area: an; } html body.wirtly .wb-farbe { grid-area: farbe; } html body.wirtly .wb-name { grid-area: name; } html body.wirtly .wb-weg { grid-area: weg; } html body.wirtly .wb-zeit { grid-area: zeit; }
html body.wirtly .wb-farbe { width: 44px; height: 44px; padding: 6px; border: 1px solid var(--line2); border-radius: 12px; background: var(--weiss); cursor: pointer; }
html body.wirtly .wb-farbe::-webkit-color-swatch-wrapper { padding: 0; } html body.wirtly .wb-farbe::-webkit-color-swatch { border: 0; border-radius: 7px; }
html body.wirtly .wb-weg { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line2); background: var(--weiss); color: var(--muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
html body.wirtly .wb-weg:hover { color: var(--red); border-color: var(--red); }
html body.wirtly .wb-weg.is-leer { border: 0; background: none; cursor: default; }
html body.wirtly .wb-zeit { display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
html body.wirtly .wb-mehr { display: flex; flex-direction: column; gap: 8px; }
html body.wirtly .wb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
html body.wirtly .wb-chip { display: inline-flex; align-items: center; border: 1px solid var(--line2); border-radius: 10px; background: var(--weiss); overflow: hidden; }
html body.wirtly .wb-chip .ws-chip span { border: 0; border-radius: 0; background: none; min-height: 36px; }
html body.wirtly .wb-chip .ws-chip input:checked + span { background: var(--ink); color: var(--on-ink); }
html body.wirtly .wb-chip .ws-dot { margin-right: 6px; }
html body.wirtly .wb-chip-x { width: 34px; min-height: 36px; border: 0; border-left: 1px solid var(--line); background: none; color: var(--muted); font-size: 18px; cursor: pointer; padding: 0; }
html body.wirtly .wb-chip-x:hover { color: var(--red); }

/* 3 · Schichten */
html body.wirtly .ws-shift { grid-template-columns: 26px minmax(0, 1fr) 120px 120px; gap: 8px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
html body.wirtly .ws-shift-opt { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 6px 16px; }
html body.wirtly .ws-shift-opt label.check { font-size: 14px; font-weight: 600; }

/* Chips auf der Seite: wie kleine Knöpfe (S) */
html body.wirtly :is(.ws-chip, .wsb-chip) span { min-height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line2); background: var(--weiss); color: var(--ink); display: inline-flex; align-items: center; font: 700 13.5px var(--f-display); cursor: pointer; }
html body.wirtly :is(.ws-chip, .wsb-chip) input:checked + span, html body.wirtly .ws-self input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }

/* 4 · Wer steht wann wo: Tage, Plus/Minus */
html body.wirtly .wsb-tabs { gap: 6px; }
html body.wirtly .wsb-tab { min-height: 56px; border-radius: 12px; border: 1px solid var(--line2); background: var(--weiss); padding: 6px 2px; gap: 2px; justify-content: center; font-family: var(--f-display); }
html body.wirtly .wsb-tab strong { font-size: 15px; font-weight: 700; }
html body.wirtly .wsb-tab small { font: 600 11px var(--f-body); }
html body.wirtly .wsb-tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); }
html body.wirtly .wsb-day legend { font: 700 18px var(--f-display); letter-spacing: -0.02em; }
html body.wirtly .wsb-step { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line2); background: var(--weiss); color: var(--ink); font: 700 18px var(--f-display); display: inline-flex; align-items: center; justify-content: center; flex: none; }
html body.wirtly .wsb-step:hover { background: var(--chip); border-color: var(--line2); }
html body.wirtly .wsb-cell input { width: 44px; height: 36px; border-radius: 10px; border: 1px solid var(--line2); background: var(--weiss); font: 700 16px var(--f-display); padding: 0; }
html body.wirtly .wsb-cell input.is-zero { background: var(--weiss); color: var(--faint); }
html body.wirtly .wsb-cell { flex-wrap: wrap; row-gap: 2px; }
html body.wirtly .wsb-zeit { flex-basis: 100%; text-align: center; font-size: 12px; color: var(--muted); }
html body.wirtly .wsb-text { background: var(--weiss); border-radius: 12px; font-size: 14px; }
html body.wirtly .wsb-copy { gap: 6px; }

/* 5 · Personal */
html body.wirtly .ws-people { grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 12px; }
html body.wirtly .ws-person { background: var(--weiss); border: 0; border-radius: 14px; padding: 16px; gap: 14px; }
html body.wirtly .ws-kopf { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-size: 16px; }
html body.wirtly .ws-kopf .muted { font-family: var(--f-body); font-weight: 500; }
html body.wirtly .ws-felder { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr 1.5fr; gap: 10px; align-items: end; }
html body.wirtly .ws-row input[type=number] { width: 100%; }
html body.wirtly .ws-areas { gap: 6px; }
html body.wirtly .ws-areas .field-label, html body.wirtly .wb-mehr .field-label { font-size: 13px; font-weight: 600; color: var(--muted); }
html body.wirtly .ws-fix summary { font-size: 14px; }

@media (max-width: 700px) {
  html body.wirtly .oz-tabs { width: 100%; }
  html body.wirtly .oz-tab { flex: 1 1 auto; justify-content: center; flex-direction: column; align-items: center; gap: 0; }
  html body.wirtly .oz-saison-head { grid-template-columns: 1fr 1fr; }
  html body.wirtly .oz-saison-head label:first-child { grid-column: 1 / -1; }
  html body.wirtly .oz-gruppen { padding: 2px 12px; }
  html body.wirtly .oz-tage { grid-template-columns: repeat(7, minmax(0, 1fr)); width: 100%; }
  html body.wirtly .oz-zeit { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); flex: 1; }
  html body.wirtly .oz-gr-weg { margin-left: 0; }
  html body.wirtly .oz-zeit input::-webkit-calendar-picker-indicator { display: none; }
  html body.wirtly .oz-zeit input { text-align: center; }
  html body.wirtly :is(#bereiche, #schichten, #frist) input[type=time] { text-align: center; padding: 0 6px; }
  html body.wirtly :is(#bereiche, #schichten, #frist) input[type=time]::-webkit-calendar-picker-indicator { display: none; }
  html body.wirtly .oz-fuss .btn { width: 100%; }
  html body.wirtly .wb-liste { padding: 2px 12px; }
  html body.wirtly .wb-zeile { grid-template-columns: 26px 44px minmax(0, 1fr) 44px; grid-template-areas: "an farbe name weg" "zeit zeit zeit zeit"; }
  html body.wirtly .ws-shift { grid-template-columns: 26px minmax(0, 1fr) minmax(0, 1fr); }
  html body.wirtly .ws-shift > input:nth-of-type(1) { grid-column: 2 / -1; }
  html body.wirtly .ws-shift > input:nth-of-type(2) { grid-column: 2; }
  html body.wirtly .ws-shift > input:nth-of-type(3) { grid-column: 3; }
  html body.wirtly .wsb-tab { min-height: 52px; }
  html body.wirtly .wsb-tab strong { font-size: 14px; }
  html body.wirtly .wsb-tab small { font-size: 10px; }
  html body.wirtly .wsb-grid { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 8px 8px; }
  html body.wirtly .wsb-corner { display: none; }
  html body.wirtly .wsb-area { grid-column: 1 / -1; padding-top: 6px; }
  html body.wirtly .wsb-area.is-kombi { padding-top: 12px; }
  html body.wirtly .wsb-cell.is-kombi { border-top: 0; padding-top: 0; }
  html body.wirtly .wsb-step { width: 34px; height: 34px; }
  html body.wirtly .wsb-cell input { width: 40px; }
  html body.wirtly .ws-felder { grid-template-columns: 1fr 1fr; }
  html body.wirtly .ws-felder > label:first-child { grid-column: 1 / -1; }
  html body.wirtly .ws-person { padding: 14px; }
}
html body.wirtly .wb-zeile:has(.wb-weg.is-leer) .wb-name { grid-column: 3 / -1; }
html body.wirtly .wb-zeile .wb-weg.is-leer { display: none; }
html body.wirtly :is(#oeffnung, #bereiche, #schichten, #personal, #frist) select { padding-right: 34px !important; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236F6862' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important; background-repeat: no-repeat !important; background-position: right 12px center !important; background-size: 12px 8px !important; }

/* =========================================================
   Wochenplanung einrichten als Accordion (18.11. mittags, Vorschlag D)
   ========================================================= */
html body.wirtly section.wpa.is-js { background: var(--surface); border: 0; border-radius: var(--r); padding: 0 22px; margin: 0 0 12px; box-shadow: none; }
html body.wirtly section.wpa.is-js.is-offen { box-shadow: inset 0 0 0 2px var(--line2); }
html body.wirtly .wpa-kopf { all: unset; box-sizing: border-box; width: 100%; min-height: 66px; display: grid; grid-template-columns: 32px 240px minmax(0, 1fr) 28px; gap: 14px; align-items: center; cursor: pointer; font-family: var(--f-body); color: var(--ink); }
html body.wirtly .wpa-kopf:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 12px; }
html body.wirtly .wpa-st { width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font: 800 14px/1 var(--f-display); background: var(--green-soft); color: var(--green); }
html body.wirtly .wpa-st.is-warn { background: var(--warn-soft); color: var(--warn); }
html body.wirtly .wpa-st.is-info { background: var(--line); color: var(--muted); }
html body.wirtly .wpa.is-offen .wpa-st:not(.is-warn):not(.is-info) { background: var(--ink); color: var(--on-ink); }
html body.wirtly .wpa-titel { font: 700 17px var(--f-display); letter-spacing: -0.01em; }
html body.wirtly .wpa-sum { font-size: 14px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
html body.wirtly .wpa.is-offen .wpa-sum { color: var(--muted); }
html body.wirtly .wpa-pfeil { width: 28px; height: 28px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1.5 1.5l5.5 5.5 5.5-5.5' fill='none' stroke='%236F6862' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px 9px no-repeat; transition: transform .2s; }
html body.wirtly .wpa.is-offen .wpa-pfeil { transform: rotate(180deg); }
html body.wirtly .wpa.is-js:not(.is-offen) .wpa-body { display: none; }
html body.wirtly .wpa.is-js .wpa-body { padding: 0 0 22px; }
html body.wirtly .wpa.is-js .wpa-body > form, html body.wirtly .wpa.is-js .wpa-body > .ws-rules { margin: 0; }

/* Bereiche als Tabelle mit Spaltenköpfen (Computer) */
html body.wirtly .wb-kopfzeile { display: none; }
@media (min-width: 701px) {
  html body.wirtly .wb-kopfzeile { display: grid; grid-template-columns: 26px 44px minmax(0, 1fr) 130px 130px 44px; gap: 12px; padding: 12px 0 6px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  html body.wirtly .wb-kopfzeile span:nth-child(4), html body.wirtly .wb-kopfzeile span:nth-child(5) { text-align: center; }
  html body.wirtly .wb-zeile { grid-template-columns: 26px 44px minmax(0, 1fr) 130px 130px 44px; grid-template-areas: "an farbe name von bis weg"; gap: 12px; padding: 10px 0; }
  html body.wirtly .wb-zeit { display: contents; }
  html body.wirtly .wb-zeit > span { display: none; }
  html body.wirtly .wb-zeit > input:nth-of-type(1) { grid-area: von; }
  html body.wirtly .wb-zeit > input:nth-of-type(2) { grid-area: bis; }
  html body.wirtly .wb-zeile .wb-weg.is-leer { display: block; visibility: hidden; }
  html body.wirtly .wb-zeile:has(.wb-weg.is-leer) .wb-name { grid-area: name; }
  html body.wirtly .ws-shift { grid-template-columns: 26px minmax(0, 1fr) 130px 130px; }
}

/* Zahlen und Uhrzeiten mittig (auch Safari) */
html body.wirtly section.wpa input[type=time], html body.wirtly section.wpa input[type=number] { text-align: center; padding-left: 6px !important; padding-right: 6px !important; line-height: 42px; -moz-appearance: textfield; }
html body.wirtly section.wpa input[type=time]::-webkit-date-and-time-value { text-align: center; margin: 0; }
html body.wirtly section.wpa input[type=time]::-webkit-datetime-edit { padding: 0; line-height: 42px; }
html body.wirtly section.wpa input[type=number]::-webkit-inner-spin-button, html body.wirtly section.wpa input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
html body.wirtly section.wpa input[type=time].is-leer:not(:focus)::-webkit-datetime-edit { opacity: 0; }
html body.wirtly section.wpa input[type=time]::-webkit-calendar-picker-indicator { display: none; }
html body.wirtly .wsb-cell input { line-height: 34px !important; }

/* Plus/Minus als gezeichnete Zeichen, genau mittig */
html body.wirtly .wsb-step { font-size: 0 !important; color: transparent !important; padding: 0 !important; background: var(--weiss) center / 12px 12px no-repeat; }
html body.wirtly .wsb-step[data-d="1"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 1v10M1 6h10' stroke='%232A1F18' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
html body.wirtly .wsb-step[data-d="-1"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M1 6h10' stroke='%232A1F18' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
html body.wirtly .wsb-step:hover { background-color: var(--chip); }

@media (max-width: 700px) {
  html body.wirtly section.wpa.is-js { padding: 0 16px; border-radius: var(--r); margin-bottom: 10px; }
  html body.wirtly .wpa-kopf { grid-template-columns: 30px minmax(0, 1fr) 24px; grid-template-areas: "st titel pfeil" "st sum pfeil"; row-gap: 2px; column-gap: 12px; min-height: 64px; padding: 10px 0; }
  html body.wirtly .wpa-st { grid-area: st; } html body.wirtly .wpa-titel { grid-area: titel; font-size: 15px; } html body.wirtly .wpa-sum { grid-area: sum; font-size: 13px; color: var(--muted); } html body.wirtly .wpa-pfeil { grid-area: pfeil; }
  html body.wirtly .wpa.is-js .wpa-body { padding-bottom: 16px; }
}
html body.wirtly .wsb-step, html body.wirtly .wsb-step:hover { background-repeat: no-repeat !important; background-position: center !important; background-size: 12px 12px !important; }

/* =========================================================
   Marketing: Aufklapp-Listen im Accordion-Stil wie „Wochenplanung einrichten“ (18.11.)
   mx-klapp = großer Abschnitt, mx-verb / mx-mehr = einzelner Punkt
   ========================================================= */
html body.wirtly section.mx-klapp { background: var(--surface) !important; border: 0 !important; border-radius: 18px !important; padding: 0 22px !important; margin: 0 0 12px !important; box-shadow: none !important; }
html body.wirtly section.mx-klapp.is-offen { box-shadow: inset 0 0 0 2px var(--line2) !important; padding-bottom: 22px !important; }
html body.wirtly .mx-klapp-kopf { all: unset; box-sizing: border-box; width: 100%; min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 14px; cursor: pointer; color: var(--ink); }
html body.wirtly .mx-klapp-kopf:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 12px; }
html body.wirtly .mx-klapp-titel { font: 700 17px var(--f-display) !important; letter-spacing: -0.01em; color: var(--ink); }
html body.wirtly .mx-klapp-pfeil { width: 18px; height: 18px; color: var(--muted); flex: none; }
html body.wirtly section.mx-klapp > p.mx-klein:first-of-type { margin-top: 0; }

/* Liste außerhalb eines Abschnitts: jeder Punkt eine eigene Hafer-Karte */
html body.wirtly .mx-liste:has(> details.mx-verb) { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; display: flex; flex-direction: column; gap: 10px; border-radius: 0 !important; }
html body.wirtly details.mx-verb, html body.wirtly details.mx-mehr { background: var(--surface) !important; border: 0 !important; border-radius: 18px !important; padding: 0 22px !important; margin: 0 !important; box-shadow: none !important; }
html body.wirtly details.mx-verb[open], html body.wirtly details.mx-mehr[open] { box-shadow: inset 0 0 0 2px var(--line2) !important; padding-bottom: 20px !important; }
/* Liste innerhalb eines Abschnitts (schon Hafer): weiße Fläche mit Trennlinien */
html body.wirtly .mx-klapp .mx-liste:has(> details.mx-verb) { background: var(--weiss) !important; border-radius: 14px !important; padding: 0 18px !important; gap: 0; }
html body.wirtly .mx-klapp details.mx-verb { background: transparent !important; border-radius: 0 !important; padding: 0 !important; border-bottom: 1px solid var(--line) !important; }
html body.wirtly .mx-klapp details.mx-verb:last-child { border-bottom: 0 !important; }
html body.wirtly .mx-klapp details.mx-verb[open] { box-shadow: none !important; padding-bottom: 18px !important; }

/* Kopfzeile eines Punkts: Symbol · Titel · Stand · (Status) · Pfeil */
html body.wirtly details:is(.mx-verb, .mx-mehr) > summary { list-style: none; display: grid !important; grid-template-columns: 36px minmax(0, 1fr) auto 24px; align-items: center; gap: 14px; min-height: 66px; padding: 0 !important; margin: 0 !important; background: transparent !important; border: 0 !important; cursor: pointer; }
html body.wirtly details.mx-mehr > summary { grid-template-columns: minmax(0, 1fr) auto 24px; font: 700 17px var(--f-display); color: var(--ink); }
html body.wirtly details:is(.mx-verb, .mx-mehr) > summary::-webkit-details-marker { display: none; }
html body.wirtly details:is(.mx-verb, .mx-mehr) > summary::after { content: ""; grid-column: -2; width: 24px; height: 24px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1.5 1.5l5.5 5.5 5.5-5.5' fill='none' stroke='%236F6862' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px 9px no-repeat; transition: transform .2s; }
html body.wirtly details:is(.mx-verb, .mx-mehr)[open] > summary::after { transform: rotate(180deg); }
html body.wirtly details:is(.mx-verb, .mx-mehr) > summary > svg, html body.wirtly details:is(.mx-verb, .mx-mehr) > summary > .mx-pfeil { display: none !important; }
html body.wirtly details.mx-verb > summary > span:empty { display: none; }
html body.wirtly details.mx-verb > summary .mx-verwalten, html body.wirtly details.mx-verb > summary > .btn { display: none !important; }
html body.wirtly details.mx-verb > summary .mx-zeile-icon { width: 32px; height: 32px; border-radius: 9px; background: var(--weiss); display: inline-flex; align-items: center; justify-content: center; overflow: hidden; font: 800 12px var(--f-display); color: var(--ink); box-shadow: none; border: 0; }
html body.wirtly .mx-klapp details.mx-verb > summary .mx-zeile-icon { background: var(--surface); }
html body.wirtly details.mx-verb[open] > summary .mx-zeile-icon { background: var(--ink); color: var(--on-ink); }
html body.wirtly details.mx-verb[open] > summary .mx-zeile-icon img { filter: brightness(0) invert(1); }
html body.wirtly details.mx-verb > summary > span:nth-child(2) b { font: 700 16px var(--f-display); color: var(--ink); }
html body.wirtly details.mx-verb > summary > span:nth-child(2) .mx-klein { font-size: 14px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 901px) {
  html body.wirtly details.mx-verb > summary > span:nth-child(2) { display: grid; grid-template-columns: 240px minmax(0, 1fr); align-items: center; gap: 14px; min-width: 0; }
}
@media (max-width: 900px) {
  html body.wirtly details.mx-verb > summary > span:nth-child(2) { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  html body.wirtly details.mx-verb > summary > span:nth-child(2) .mx-klein { font-size: 13px; color: var(--muted); }
}
html body.wirtly details:is(.mx-verb, .mx-mehr) > :is(.mx-verb-inhalt, .mx-mehr-inhalt) { background: transparent !important; border: 0 !important; padding: 0 !important; margin: 0 !important; }
@media (max-width: 700px) {
  html body.wirtly section.mx-klapp, html body.wirtly details.mx-verb, html body.wirtly details.mx-mehr { padding-left: 16px !important; padding-right: 16px !important; border-radius: 16px !important; }
  html body.wirtly .mx-klapp .mx-liste:has(> details.mx-verb) { padding: 0 12px !important; }
  html body.wirtly .mx-klapp details.mx-verb { padding: 0 !important; }
  html body.wirtly details:is(.mx-verb, .mx-mehr) > summary { gap: 12px; min-height: 64px; }
}
html body.wirtly details:is(.mx-verb, .mx-mehr) > summary::after { border: 0 !important; transform: none !important; margin: 0 !important; position: static !important; } html body.wirtly details:is(.mx-verb, .mx-mehr)[open] > summary::after { transform: rotate(180deg) !important; }
/* Gleicher Abstand zwischen allen Accordion-Punkten (18.11.) */
html body.wirtly .akk-liste { display: flex; flex-direction: column; gap: 10px; margin: 0; }
html body.wirtly .akk-liste > * { margin: 0 !important; }
html body.wirtly .mx-liste:has(> details.mx-verb) { gap: 10px; }
html body.wirtly .mx-klapp .mx-liste:has(> details.mx-verb) { gap: 0; }
html body.wirtly .akk-liste > section:is(.mx-klapp, .wpa) { margin: 0 !important; }

/* Leisten ohne Scrollbalken (18.11.): am Computer umbrechen, am Handy wischen */
html body.wirtly :is(.kat-nav, .viewtabs, .mk-tabs, .rd-chips, .oz-tabs, .wsb-tabs) { scrollbar-width: none; -ms-overflow-style: none; }
html body.wirtly :is(.kat-nav, .viewtabs, .mk-tabs, .rd-chips, .oz-tabs, .wsb-tabs)::-webkit-scrollbar { display: none; }
@media (min-width: 901px) {
  html body.wirtly .kat-nav { flex-wrap: wrap !important; overflow: visible !important; row-gap: 8px; padding-bottom: 0 !important; }
}

/* Rezepte: Kategorien als Accordion (gleicher Stil wie Wochenplanung) */
html body.wirtly section.recipe-cat.wpa.is-js { padding: 0 22px; }
html body.wirtly section.recipe-cat.wpa .wpa-body .recipe-cards { margin: 0; }
html body.wirtly .akk-suche section.wpa.is-js .wpa-body { display: block !important; }
html body.wirtly .akk-suche section.wpa.is-js .wpa-pfeil { visibility: hidden; }

/* Rezepte im Accordion: Karten weiß, damit sie sich abheben */
html body.wirtly section.recipe-cat.wpa .rcard, html body.wirtly section.recipe-cat.wpa .rcard-body { background: var(--weiss) !important; }

/* =========================================================
   Einkauf neu (18.11.): Liste nach Laden als Accordion, Eintragen in einer Zeile, Einkaufsmodus
   ========================================================= */
html body.wirtly .ek-seite > section.panel { margin: 0 !important; }
html body.wirtly .ek-seite > section.ek-add { background: var(--surface); border: 0; border-radius: var(--r); padding: 16px 22px; display: flex; flex-direction: column; gap: 12px; box-shadow: none; }
html body.wirtly .ek-zeile { display: grid; grid-template-columns: minmax(0, 1fr) 190px 190px auto auto; gap: 10px; align-items: center; }
html body.wirtly .ek-zeile label { margin: 0; display: block; }
html body.wirtly .ek-zeile input:not([type=checkbox]) { height: 44px; width: 100%; box-sizing: border-box; border: 1px solid var(--line2); border-radius: 12px; background: var(--weiss); padding: 0 12px; font: 500 16px var(--f-body); }
html body.wirtly .ek-zeile .ek-urgent { display: inline-flex; }
html body.wirtly .ek-zeile .ek-urgent span { min-height: 44px !important; border-radius: 12px !important; }
html body.wirtly .ek-info { margin: 0; font-size: 14px; color: var(--ink2); }
html body.wirtly .ek-neu { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; background: var(--weiss); border-radius: 14px; padding: 12px 14px; }
html body.wirtly .ek-neu-label { font-size: 13px; font-weight: 700; color: var(--muted); }
html body.wirtly .ek-neu-chips { display: flex; flex-wrap: wrap; gap: 6px; }
html body.wirtly .ek-neu .check { font-size: 14px; font-weight: 600; }
html body.wirtly details.ek-std { border-top: 1px solid var(--line2); padding-top: 4px; margin: 0; background: transparent; }
html body.wirtly details.ek-std > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; min-height: 44px; font: 700 15px var(--f-display); color: var(--ink); }
html body.wirtly details.ek-std > summary::-webkit-details-marker { display: none; }
html body.wirtly details.ek-std > summary::after { content: ""; margin-left: auto; width: 24px; height: 24px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1.5 1.5l5.5 5.5 5.5-5.5' fill='none' stroke='%236F6862' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px 9px no-repeat; transition: transform .2s; }
html body.wirtly details.ek-std[open] > summary::after { transform: rotate(180deg); }
html body.wirtly details.ek-std > summary .muted { font: 600 14px var(--f-body); }
html body.wirtly .ek-std-flaeche { background: var(--weiss); border-radius: 14px; padding: 4px 16px; margin-top: 6px; }
html body.wirtly .ek-std-flaeche .ek-std-group { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); margin: 0; }
html body.wirtly .ek-std-flaeche .ek-std-group:first-child { border-top: 0; }
html body.wirtly .ek-std-flaeche .ek-std-label { padding-top: 10px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
html body.wirtly .ek-chip.is-on { background: var(--ink) !important; color: var(--on-ink) !important; border-color: var(--ink) !important; }
html body.wirtly .ek-chip.is-on small { font-weight: 600; color: var(--muted); font-size: 12px; }
html body.wirtly section.ek-group .ek-list { background: var(--weiss); border-radius: 14px; padding: 0 16px; margin: 0; list-style: none; }
html body.wirtly section.ek-group .ek-item, html body.wirtly section.ek-erledigt .ek-item { border-top: 1px solid var(--line); }
html body.wirtly section.ek-group .ek-item:first-child, html body.wirtly section.ek-erledigt .ek-item:first-child { border-top: 0; }
html body.wirtly section.ek-erledigt .ek-list { background: var(--weiss); border-radius: 14px; padding: 0 16px; margin: 0; list-style: none; }
html body.wirtly .ek-gruppe-fuss { display: flex; justify-content: flex-end; padding-top: 12px; }
html body.wirtly .ek-wo-wahl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
html body.wirtly .ek-wo-chip { min-height: 32px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line2); background: var(--weiss); color: var(--ink); font: 700 13px var(--f-display); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
html body.wirtly .ek-wo-chip:hover { background: var(--chip); }
html body.wirtly .ek-wo-chip.is-on { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
html body.wirtly .ek-wo-chip.is-statisch { cursor: default; }
html body.wirtly .ek-wo-chip small { font-weight: 600; color: var(--muted); }
html body.wirtly .ek-art-werkzeug { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
html body.wirtly .ek-art-filter { display: flex; flex-wrap: wrap; gap: 6px; }
html body.wirtly #ek-art-suche { margin-left: auto; height: 40px; width: 240px; border: 1px solid var(--line2); border-radius: 12px; padding: 0 12px; background: var(--weiss); font: 500 15px var(--f-body); }
html body.wirtly #artikel .table-wrap { background: var(--weiss); border-radius: 14px; padding: 4px 16px; }
html body.wirtly .ek-laeden { background: var(--weiss); border-radius: 14px; padding: 14px 16px; margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }

/* Einkaufsmodus */
html body.wirtly .ekm-laeden { display: flex; flex-direction: column; gap: 10px; max-width: 560px; }
html body.wirtly .ekm-laden { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px; border-radius: var(--r); background: var(--surface); color: var(--ink); text-decoration: none; }
html body.wirtly .ekm-laden.is-erst { background: var(--ink); color: var(--on-ink); }
html body.wirtly .ekm-laden-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--weiss); color: var(--ink); display: flex; align-items: center; justify-content: center; font: 800 17px var(--f-display); }
html body.wirtly .ekm-laden.is-erst .ekm-laden-icon { background: var(--accent); color: var(--on-acc); }
html body.wirtly .ekm-laden-text { display: flex; flex-direction: column; min-width: 0; }
html body.wirtly .ekm-laden-text b { font: 700 17px var(--f-display); }
html body.wirtly .ekm-laden-text small { opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html body.wirtly .ekm-laden-n { font: 800 22px var(--f-display); }
html body.wirtly .ekm { max-width: 560px; display: flex; flex-direction: column; gap: 12px; }
html body.wirtly .ekm-kopf { display: flex; justify-content: space-between; align-items: center; }
html body.wirtly .ekm-kopf .eyebrow { margin: 0; }
html body.wirtly .ekm-titel { margin: 0; font: 800 34px var(--f-display); letter-spacing: -0.03em; }
html body.wirtly .ekm-fort { display: flex; flex-direction: column; gap: 6px; }
html body.wirtly .ekm-fort-text { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); }
html body.wirtly .ekm-fort-text b { color: var(--ink); }
html body.wirtly .ekm-balken { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
html body.wirtly .ekm-balken i { display: block; height: 100%; width: 0; background: #2F7A4B; transition: width .25s; }
html body.wirtly .ekm-gruppe { display: flex; flex-direction: column; }
html body.wirtly .ekm-bereich { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 10px 0 4px; }
html body.wirtly .ekm-item { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); -webkit-tap-highlight-color: transparent; }
html body.wirtly .ekm-box { width: 34px; height: 34px; border-radius: 10px; border: 2px solid var(--line2); box-sizing: border-box; background: var(--weiss); }
html body.wirtly .ekm-item[aria-pressed="true"] .ekm-box { background: #2F7A4B url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='12' viewBox='0 0 16 12'%3E%3Cpath d='M1.5 6l4.5 4.5L14.5 1.5' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px 12px no-repeat; border-color: #2F7A4B; }
html body.wirtly .ekm-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
html body.wirtly .ekm-name b { font: 700 18px var(--f-display); }
html body.wirtly .ekm-name small { color: var(--muted); font-size: 13px; }
html body.wirtly .ekm-item[aria-pressed="true"] .ekm-name b { text-decoration: line-through; color: var(--faint); }
html body.wirtly .ekm-rechts { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
html body.wirtly .ekm-rechts .ek-qty { font: 700 15px var(--f-display); background: var(--surface); border-radius: 8px; padding: 4px 8px; }
html body.wirtly .ekm-fuss { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; margin-top: 8px; }
html body.wirtly .ekm-fuss .btn { width: 100%; justify-content: center; }
html body.wirtly .ekm-fuss .btn:disabled { opacity: .45; }

@media (max-width: 900px) {
  html body.wirtly .ek-zeile { grid-template-columns: 1fr 1fr; }
  html body.wirtly .ek-zeile .ek-name { grid-column: 1 / -1; }
  html body.wirtly .ek-zeile .btn { width: 100%; }
  html body.wirtly .ek-std-flaeche .ek-std-group { grid-template-columns: 1fr; gap: 6px; }
  html body.wirtly .ek-std-flaeche .ek-std-label { padding-top: 4px; }
  html body.wirtly #ek-art-suche { width: 100%; margin-left: 0; }
  html body.wirtly .ek-seite > section.ek-add { padding: 14px 16px; }
}
html body.wirtly .ek-seite .ek-form { display: flex !important; flex-direction: column; gap: 12px; } html body.wirtly .ek-seite .ek-zeile { width: 100%; }
html body.wirtly .ek-seite .ek-form > :is(.ek-neu, .ek-info) { align-self: stretch; justify-content: flex-start; text-align: left; } html body.wirtly .ek-neu label.check { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 8px; }
html body.wirtly details.ek-std > summary .muted { white-space: nowrap; } html body.wirtly details.ek-std > summary > span:first-child { min-width: 0; }


/* =========================================================
   Temperatur (Sensoren) · temperatur.php und temperatur-sensoren.php (18.11.)
   ========================================================= */
html body.wirtly .t-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
html body.wirtly .t-pill-dunkel { background: var(--ink) !important; color: var(--on-ink) !important; }
html body.wirtly .t-frisch b { color: var(--ink); font-variant-numeric: tabular-nums; }
html body.wirtly #t-live { display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; }
html body.wirtly .t-alarm { border-radius: var(--r); background: var(--weiss); border: 2px solid #B4442F; box-shadow: 0 0 0 4px rgba(180,68,47,.12); overflow: hidden; }
html body.wirtly .t-alarm.is-vorbei { border-color: var(--line2); box-shadow: none; }
html body.wirtly .t-alarm-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 20px; background: #B4442F; color: #FFFFFF; }
html body.wirtly .t-alarm.is-vorbei .t-alarm-kopf { background: var(--yolk-soft); color: var(--accent-ink); }
html body.wirtly .t-alarm-titel { font: 700 20px var(--f-display); letter-spacing: -0.01em; }
html body.wirtly .t-alarm-zeit { margin-left: auto; font: 700 14px var(--f-display); font-variant-numeric: tabular-nums; }
html body.wirtly .t-alarm-werte { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; padding: 14px 20px; }
html body.wirtly .t-alarm-werte > span { display: flex; flex-direction: column; }
html body.wirtly .t-alarm-werte small, html body.wirtly .t-kennzahlen small, html body.wirtly .t-sensor-daten small { font-size: 12px; color: var(--muted); }
html body.wirtly .t-alarm-werte b { font: 800 24px var(--f-display); font-variant-numeric: tabular-nums; }
html body.wirtly .t-alarm-hinweis { max-width: 420px; font-size: 14px; color: var(--muted); }
html body.wirtly .t-alarm-ok { flex-direction: row !important; font-size: 14px; color: var(--green); font-weight: 600; }
html body.wirtly .t-rot { color: var(--red) !important; }
html body.wirtly .t-gruen { color: var(--green) !important; }
html body.wirtly .t-massliste { list-style: none; margin: 0; padding: 0 20px 12px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
html body.wirtly details.t-bestaetigen { padding: 0 20px 18px; }
html body.wirtly details.t-bestaetigen > summary { list-style: none; display: inline-flex; cursor: pointer; }
html body.wirtly details.t-bestaetigen > summary::-webkit-details-marker { display: none; }
html body.wirtly details.t-bestaetigen[open] > summary { display: none; }
html body.wirtly .t-btn-dunkel { background: var(--ink) !important; color: var(--on-ink) !important; border-color: var(--ink) !important; min-height: 48px !important; }
html body.wirtly .t-form { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
html body.wirtly .t-form-frage { font: 700 15px var(--f-display); }
html body.wirtly .t-chips { display: flex; flex-wrap: wrap; gap: 8px; }
html body.wirtly .t-notiz { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
html body.wirtly .t-notiz input { height: 44px; border: 1px solid var(--line2); border-radius: 12px; padding: 0 12px; font: 500 16px var(--f-body); background: var(--weiss); }
html body.wirtly .t-form-fuss { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

html body.wirtly .t-kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
html body.wirtly .t-kachel { border-radius: var(--r); padding: 16px 18px; background: var(--surface); color: var(--ink); text-decoration: none; display: flex; flex-direction: column; gap: 6px; border: 2px solid transparent; min-width: 0; }
html body.wirtly a.t-kachel:hover { border-color: var(--line2); }
html body.wirtly .t-kachel.is-gewaehlt { border-color: var(--ink); }
html body.wirtly .t-kachel.is-alarm { background: var(--red-soft); border-color: #B4442F; }
html body.wirtly .t-kachel.is-warn { background: var(--warn-soft); }
html body.wirtly .t-kachel.is-ohne { background: var(--weiss); border: 2px dashed var(--line2); }
html body.wirtly .t-kachel.is-ohne .btn { margin-top: auto; align-self: flex-start; }
html body.wirtly .t-k-kopf { display: flex; align-items: center; gap: 8px; min-width: 0; }
html body.wirtly .t-k-kopf b { font: 700 15px var(--f-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html body.wirtly .t-k-kopf .muted { margin-left: auto; white-space: nowrap; }
html body.wirtly .t-punkt { width: 10px; height: 10px; border-radius: 50%; background: var(--green); flex: none; display: inline-block; }
html body.wirtly .t-kachel.is-alarm .t-punkt, html body.wirtly .t-punkt.is-rot { background: #B4442F; }
html body.wirtly .t-kachel.is-warn .t-punkt { background: var(--warn); }
html body.wirtly .t-kachel.is-neu .t-punkt { background: var(--faint); }
html body.wirtly .t-k-wert { font: 800 38px var(--f-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
html body.wirtly .t-kachel.is-alarm .t-k-wert { color: var(--red); }
html body.wirtly .t-k-status { font-size: 13px; font-weight: 700; color: var(--green); }
html body.wirtly .t-kachel.is-alarm .t-k-status { color: var(--red); }
html body.wirtly .t-kachel.is-warn .t-k-status { color: var(--warn); }
html body.wirtly .t-kachel.is-neu .t-k-status { color: var(--muted); }
html body.wirtly .t-spark { width: 100%; height: 40px; }
html body.wirtly .t-spark polyline { stroke: var(--accent-ink); }
html body.wirtly .t-kachel.is-alarm .t-spark polyline { stroke: #B4442F; }
html body.wirtly .t-spark-leer { height: 40px; }
html body.wirtly .t-k-info { font-size: 12px; color: var(--muted); }

html body.wirtly .t-spalten { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px; align-items: start; }
html body.wirtly .t-rechts { display: flex; flex-direction: column; gap: 12px; }
html body.wirtly .t-karte { border-radius: var(--r); background: var(--surface); padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
html body.wirtly .t-label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
html body.wirtly .t-verlauf-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
html body.wirtly .t-verlauf-titel { display: flex; flex-direction: column; }
html body.wirtly .t-verlauf-titel small { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
html body.wirtly .t-verlauf-titel b { font: 700 22px var(--f-display); letter-spacing: -0.02em; }
html body.wirtly .t-zeitraum { margin-left: auto; display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--line); }
html body.wirtly .t-zeitraum a { min-height: 36px; padding: 0 14px; border-radius: 10px; display: inline-flex; align-items: center; font: 700 13.5px var(--f-display); color: var(--ink2); text-decoration: none; }
html body.wirtly .t-zeitraum a[aria-pressed="true"] { background: var(--weiss); color: var(--ink); }
html body.wirtly .t-frei { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
html body.wirtly .t-frei label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
html body.wirtly .t-frei input { height: 40px; border: 1px solid var(--line2); border-radius: 12px; padding: 0 10px; background: var(--weiss); font: 500 15px var(--f-body); }
html body.wirtly .t-kennzahlen { display: flex; flex-wrap: wrap; gap: 8px; }
html body.wirtly .t-kennzahlen span { padding: 8px 12px; border-radius: 12px; background: var(--weiss); display: flex; gap: 8px; align-items: baseline; }
html body.wirtly .t-kennzahlen b { font: 800 16px var(--f-display); font-variant-numeric: tabular-nums; }
html body.wirtly .t-chart { width: 100%; height: auto; background: var(--weiss); border-radius: 14px; }
html body.wirtly .t-chart .t-ax { font: 600 11px var(--f-body); fill: var(--muted); }
html body.wirtly .t-chart .t-ax-rot { fill: var(--red); }
html body.wirtly .t-legende { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12px; color: var(--muted); align-items: center; }
html body.wirtly .t-legende span { display: inline-flex; align-items: center; gap: 6px; }
html body.wirtly .t-leg-band { width: 14px; height: 10px; border-radius: 3px; background: var(--green-soft); border: 1px solid var(--green-soft); }
html body.wirtly .t-leg-luecke { width: 14px; height: 10px; border-radius: 3px; background: repeating-linear-gradient(45deg, var(--faint) 0 3px, transparent 3px 6px); }
html body.wirtly .t-alarmzeile { display: flex; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line2); }
html body.wirtly .t-alarmzeile .t-punkt { margin-top: 5px; }
html body.wirtly .t-alarmzeile .t-punkt.is-ok { background: var(--green); }
html body.wirtly .t-alarmzeile > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 14px; }
html body.wirtly .t-alarmzeile small { font-size: 13px; color: var(--muted); }
html body.wirtly .t-hinweis p { margin: 0; font-size: 14px; line-height: 1.5; }
html body.wirtly .t-hinweis .btn { align-self: flex-start; }

/* Verwaltung */
html body.wirtly .t-zugang { border: 2px solid var(--accent); }
html body.wirtly .t-zugang-zeile { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 8px 0; }
html body.wirtly .t-zugang-zeile code { font-size: 15px; padding: 10px 14px; border-radius: 12px; background: var(--weiss); border: 1px solid var(--line2); word-break: break-all; user-select: all; }
html body.wirtly .t-neu-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; }
html body.wirtly .t-neu-form .form-actions { margin: 0; }
html body.wirtly .t-sensorliste { display: flex; flex-direction: column; gap: 12px; }
html body.wirtly .t-sensor { background: var(--weiss); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
html body.wirtly .t-sensor.is-aus { opacity: .65; }
html body.wirtly .t-sensor-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
html body.wirtly .t-sensor-kopf b { font: 700 17px var(--f-display); }
html body.wirtly .t-sensor-kennung { margin-left: auto; font-variant-numeric: tabular-nums; }
html body.wirtly .t-sensor-daten { display: flex; flex-wrap: wrap; gap: 8px 22px; }
html body.wirtly .t-sensor-daten span { display: flex; flex-direction: column; }
html body.wirtly .t-sensor-daten b { font: 700 15px var(--f-display); }
html body.wirtly .t-sensor-fehler b { color: var(--red); }
html body.wirtly .t-sensor-form { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.4fr) 150px 170px auto auto; gap: 10px; align-items: end; border-top: 1px solid var(--line); padding-top: 12px; }
html body.wirtly .t-sensor-form .form-actions { margin: 0; }
html body.wirtly .t-sensor-form label.check { padding-bottom: 12px; white-space: nowrap; }
html body.wirtly .t-sensor-aktionen { display: flex; flex-wrap: wrap; gap: 8px; }
html body.wirtly .t-alarm-cfg { display: grid; grid-template-columns: minmax(0, 1.4fr) 170px 200px auto auto; gap: 10px; align-items: end; padding: 12px 0; border-top: 1px solid var(--line); }
html body.wirtly .t-alarm-cfg-name { display: flex; flex-direction: column; padding-bottom: 6px; }
html body.wirtly .t-alarm-cfg label.check { padding-bottom: 12px; white-space: nowrap; }
html body.wirtly .t-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
html body.wirtly details.t-anleitung > summary { cursor: pointer; font: 700 17px var(--f-display); }
html body.wirtly details.t-anleitung ol { line-height: 1.6; }
html body.wirtly :is(.t-sensor-form, .t-alarm-cfg, .t-neu-form) :is(input:not([type=checkbox]), select) { height: 44px; width: 100%; box-sizing: border-box; border: 1px solid var(--line2); border-radius: 12px; padding: 0 12px; background: var(--weiss); font: 500 16px var(--f-body); }
html body.wirtly :is(.t-sensor-form, .t-alarm-cfg, .t-neu-form) label:not(.check) { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); margin: 0; }

@media (max-width: 1100px) {
  html body.wirtly .t-spalten { grid-template-columns: minmax(0, 1fr); }
  html body.wirtly .t-sensor-form { grid-template-columns: 1fr 1fr; }
  html body.wirtly .t-alarm-cfg { grid-template-columns: 1fr 1fr; }
  html body.wirtly .t-alarm-cfg-name { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  html body.wirtly .t-kacheln { grid-template-columns: minmax(0, 1fr); }
  html body.wirtly .t-alarm-zeit { margin-left: 0; }
  html body.wirtly .t-alarm-werte { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  html body.wirtly .t-alarm-werte b { font-size: 20px; }
  html body.wirtly .t-alarm-werte .t-alarm-hinweis, html body.wirtly .t-alarm-werte .t-alarm-ok { grid-column: 1 / -1; }
  html body.wirtly .t-zeitraum { margin-left: 0; width: 100%; }
  html body.wirtly .t-zeitraum a { flex: 1; justify-content: center; padding: 0 6px; }
  html body.wirtly .t-neu-form { grid-template-columns: 1fr; }
  html body.wirtly .t-kachel { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; }
  html body.wirtly .t-kachel .t-k-kopf, html body.wirtly .t-kachel .t-spark, html body.wirtly .t-kachel .t-k-info, html body.wirtly .t-kachel .t-spark-leer { grid-column: 1 / -1; }
  html body.wirtly .t-kachel .t-k-wert { grid-column: 2; grid-row: 2 / span 1; font-size: 28px; }
  html body.wirtly .t-kachel .t-k-status { grid-column: 1; grid-row: 2; align-self: center; }
  html body.wirtly .t-kachel.is-ohne { display: flex; }
}

/* Startseite Einkaufsliste: Plus mittig, Zähler weiß (18.11.) */
html body.wirtly .ek-home-add { align-items: center; }
html body.wirtly .ek-home-add input[name="name"] { border-radius: 12px; }
html body.wirtly .ek-home-add .btn { width: 44px; height: 44px; min-width: 44px; padding: 0 !important; flex: none; font-size: 0 !important; line-height: 0; color: transparent; display: inline-flex; align-items: center; justify-content: center; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath d='M9 2.5v13M2.5 9h13' stroke='%23fff' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") !important; background-repeat: no-repeat !important; background-position: center !important; background-size: 18px 18px !important; }
html body.wirtly .ek-home-n { color: var(--on-acc); min-width: 24px; height: 24px; padding: 0 7px; font-size: 13px; font-weight: 700; line-height: 1; box-sizing: border-box; font-variant-numeric: tabular-nums; }

/* Startseite Einkaufsliste, Feinschliff: Plus pixelgenau, Zähler-Kreis 26 px, Zahl exakt mittig (18.11.) */
html body.wirtly .ek-home-add .btn { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath d='M9 2v14M2 9h14' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") !important; background-origin: border-box !important; border: 0 !important; }
html body.wirtly .ek-home-n { display: inline-flex; align-items: center; justify-content: center; width: auto; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; font-family: var(--f-sans); font-size: 13px; font-weight: 700; line-height: 1; text-box: trim-both cap alphabetic; vertical-align: middle; }

/* Temperatur: Startseite, Hygiene, Bericht (18.11. nachmittags) */
html body.wirtly .tw-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
html body.wirtly .tw-zeile { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--weiss); color: var(--ink); text-decoration: none; min-height: 44px; box-sizing: border-box; }
html body.wirtly .tw-zeile:hover { box-shadow: inset 0 0 0 1px var(--line2); }
html body.wirtly .tw-punkt { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
html body.wirtly .is-warn > .tw-punkt { background: var(--warn); }
html body.wirtly .is-alarm > .tw-punkt { background: #B4442F; }
html body.wirtly .is-neu > .tw-punkt { background: var(--faint); }
html body.wirtly .tw-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
html body.wirtly .tw-name b { font-size: 14.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html body.wirtly .tw-name small { font-size: 12.5px; color: var(--muted); }
html body.wirtly .tw-wert { flex: none; font-family: var(--f-sans); font-weight: 800; font-size: 18px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
html body.wirtly .tw-zeile.is-alarm { background: var(--red-soft); }
html body.wirtly .tw-zeile.is-alarm .tw-wert, html body.wirtly .tw-zeile.is-alarm small { color: var(--red); }
html body.wirtly .tw-zeile.is-warn small { color: var(--warn); }

html body.wirtly .temp-live { display: flex; align-items: center; gap: 10px; margin: 2px 0 8px; padding: 8px 10px; border-radius: 10px; background: var(--weiss); font-size: 13.5px; }
html body.wirtly .temp-live-txt { flex: 1; min-width: 0; color: var(--muted); }
html body.wirtly .temp-live-txt b { color: var(--ink); font-variant-numeric: tabular-nums; }
html body.wirtly .temp-live.is-alarm { background: var(--red-soft); }
html body.wirtly .temp-live.is-alarm .temp-live-txt, html body.wirtly .temp-live.is-alarm .temp-live-txt b { color: var(--red); }
html body.wirtly .temp-live.is-warn { background: var(--warn-soft); }
html body.wirtly .temp-live-btn { flex: none; }

html body.wirtly .t-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; }

/* KI-Assistent auf der Startseite + „Was braucht dich“ in Terrakotta (18.11.) */
html body.wirtly .w.w-id-ki { background: var(--surface); border-radius: 24px; padding: 26px 30px 24px; }
html body.wirtly .ki-box { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
html body.wirtly .ki-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
html body.wirtly .ki-datum { font-size: 14px; color: var(--muted); }
html body.wirtly .ki-marke { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
html body.wirtly .ki-titel { margin: 0; font-family: var(--f-sans); font-size: clamp(26px, 2.6vw, 38px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.08; }
html body.wirtly .ki-feld { margin: 0; border-radius: 20px; background: var(--weiss); border: 1px solid var(--line2); box-shadow: 0 18px 40px -28px rgba(42,31,24,.4); padding: 14px 14px 12px 18px; display: flex; flex-direction: column; gap: 10px; }
html body.wirtly .ki-feld:focus-within { border-color: var(--faint); }
html body.wirtly .ki-feld textarea { all: unset; display: block; width: 100%; box-sizing: border-box; min-height: 28px; max-height: 200px; overflow-y: auto; font: 400 17px/1.5 var(--f-sans); color: var(--ink); white-space: pre-wrap; word-break: break-word; }
html body.wirtly .ki-feld textarea::placeholder { color: var(--faint); }
html body.wirtly .ki-unten { display: flex; align-items: flex-end; gap: 10px; }
html body.wirtly .ki-chips { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 6px; }
html body.wirtly .ki-chip { min-height: 34px; padding: 0 13px; border: 0; border-radius: 999px; background: var(--surface); color: var(--ink2); font: 600 13px/1 var(--f-sans); cursor: pointer; }
html body.wirtly .ki-chip:hover { background: var(--chip); }
html body.wirtly .ki-knoepfe { flex: none; display: flex; gap: 8px; }
html body.wirtly .ki-mic, html body.wirtly .ki-senden { width: 44px; height: 44px; border-radius: 22px !important; border: 0; padding: 0 !important; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
html body.wirtly .ki-mic { background: var(--surface); color: var(--ink); }
html body.wirtly .ki-mic.is-an { background: var(--accent); color: var(--on-acc); box-shadow: 0 0 0 5px rgba(185,83,44,.18); }
html body.wirtly .ki-senden { background: var(--ink); color: var(--on-ink); }
html body.wirtly .ki-senden:disabled { opacity: .5; cursor: progress; }
html body.wirtly .ki-hinweis { margin: 0; font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
html body.wirtly .ki-neu { border: 0; background: none; padding: 0; color: var(--accent); font: 700 12.5px var(--f-sans); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

html body.wirtly .ki-verlauf { display: flex; flex-direction: column; gap: 10px; max-height: 520px; overflow-y: auto; padding: 2px 2px 4px; scrollbar-width: thin; }
html body.wirtly .ki-blase { max-width: 88%; font-size: 15px; line-height: 1.55; }
html body.wirtly .ki-blase p { margin: 0 0 6px; } html body.wirtly .ki-blase p:last-child { margin-bottom: 0; }
html body.wirtly .ki-du { align-self: flex-end; background: var(--ink); color: var(--on-ink); padding: 11px 15px; border-radius: 18px 18px 4px 18px; white-space: pre-wrap; }
html body.wirtly .ki-ki { align-self: flex-start; color: var(--ink); padding: 2px 2px; white-space: pre-wrap; }
html body.wirtly .ki-ki.is-fehler { color: var(--red); }
html body.wirtly .ki-denkt { color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
html body.wirtly .ki-denkt i { width: 22px; height: 6px; background: radial-gradient(circle, var(--accent) 2.5px, transparent 3px) 0 50% / 8px 6px repeat-x; animation: ki-punkte 1s steps(3) infinite; }
@keyframes ki-punkte { from { width: 6px; } to { width: 24px; } }

html body.wirtly .ki-karte { align-self: stretch; border-radius: var(--r); background: var(--weiss); border: 1px solid var(--line2); padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
html body.wirtly .ki-karte-kopf { display: flex; align-items: flex-start; gap: 10px; }
html body.wirtly .ki-karte-titel { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
html body.wirtly .ki-karte-titel b { font-family: var(--f-sans); font-size: 16px; }
html body.wirtly .ki-karte-titel small { font-size: 13px; color: var(--muted); }
html body.wirtly .ki-status { flex: none; padding: 4px 10px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); font-size: 12px; font-weight: 800; white-space: nowrap; }
html body.wirtly .ki-status.is-ok { background: var(--green-soft); color: var(--green); }
html body.wirtly .ki-status.is-aus { background: var(--surface); color: var(--muted); }
html body.wirtly .ki-zeilen { border-radius: 12px; background: var(--surface); padding: 2px 14px; }
html body.wirtly .ki-zeile { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; padding: 10px 0; font-size: 14px; align-items: baseline; }
html body.wirtly .ki-zeile + .ki-zeile { border-top: 1px solid var(--line2); }
html body.wirtly .ki-posttext { border-radius: 12px; background: var(--surface); padding: 12px 14px; font-size: 14px; line-height: 1.55; display: flex; flex-direction: column; gap: 6px; white-space: pre-wrap; }
html body.wirtly .ki-posttext p { margin: 0; }
html body.wirtly .ki-idee { font-size: 13px; color: var(--muted); }
html body.wirtly .ki-karte-knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
html body.wirtly .ki-ergebnis { margin: 0 6px 0 0; font-size: 14px; font-weight: 600; }

/* „Was braucht dich“ in Terrakotta */
html body.wirtly .w.needs { background: var(--accent); color: var(--on-acc); }
html body.wirtly .w.needs .needs-hallo { color: rgba(255,255,255,.88); }
html body.wirtly .w.needs .needs-title, html body.wirtly .w.needs .needs-title strong, html body.wirtly .w.needs .needs-sub { color: var(--on-acc); }
html body.wirtly .w.needs .need-list { gap: 6px; display: flex; flex-direction: column; background: none; border: 0; }
html body.wirtly .w.needs .need-row { background: var(--weiss); color: var(--ink); border-radius: 12px; border: 0 !important; }
html body.wirtly .w.needs .need-row small { color: var(--muted); }
html body.wirtly .w.needs .w-tools { color: var(--ink); }

@media (max-width: 700px) {
  html body.wirtly .w.w-id-ki { padding: 18px 14px 16px; border-radius: 22px; }
  html body.wirtly .ki-titel { font-size: 26px; }
  html body.wirtly .ki-unten { flex-wrap: wrap; }
  html body.wirtly .ki-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; order: 2; flex-basis: 100%; }
  html body.wirtly .ki-chips::-webkit-scrollbar { display: none; }
  html body.wirtly .ki-chip { flex: none; }
  html body.wirtly .ki-knoepfe { margin-left: auto; }
  html body.wirtly .ki-feld textarea { font-size: 16px; }
  html body.wirtly .ki-blase { max-width: 94%; }
  html body.wirtly .ki-zeile { grid-template-columns: minmax(0, 1fr) auto; }
  html body.wirtly .ki-zeile > :nth-child(3) { grid-column: 1 / -1; margin-top: -6px; font-size: 12.5px; }
}

/* „Was braucht dich“: Terrakotta setzt sich gegen die Pfirsich-Regel durch, Titel kleiner (18.11.) */
html body.wirtly .dash > .w.needs, html body.wirtly .w.needs { background: var(--accent); color: var(--on-acc); }
html body.wirtly .w.needs .needs-title { font-size: clamp(22px, 1.9vw, 26px); line-height: 1.15; }

/* KI-Chat wie im Messenger: KI links, du rechts, Verlauf mit fester Höhe (18.11. abends) */
html body.wirtly .ki-verlauf { position: relative; max-height: min(420px, 55vh); overflow-y: auto; overscroll-behavior: contain; gap: 8px; padding: 4px 2px 6px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14px); mask-image: linear-gradient(to bottom, transparent 0, #000 14px); }
html body.wirtly .ki-blase { max-width: 82%; font-size: 15px; line-height: 1.5; }
html body.wirtly .ki-du { align-self: flex-end; background: var(--ink); color: var(--on-ink); padding: 10px 14px; border-radius: 18px 18px 4px 18px; }
html body.wirtly .ki-ki { align-self: flex-start; background: var(--weiss); color: var(--ink); padding: 10px 14px 11px; border-radius: 18px 18px 18px 4px; box-shadow: 0 1px 0 rgba(42,31,24,.05); }
html body.wirtly .ki-ki.is-fehler { background: var(--yolk-soft); color: var(--red); }
html body.wirtly .ki-wer { display: block; margin-bottom: 3px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
html body.wirtly .ki-denkt { background: var(--weiss); padding: 10px 14px; border-radius: 18px 18px 18px 4px; }
html body.wirtly .ki-karte { align-self: flex-start; width: 100%; max-width: 92%; border-radius: 18px 18px 18px 4px; }
@media (max-width: 700px) {
  html body.wirtly .ki-verlauf { max-height: 52vh; }
  html body.wirtly .ki-blase { max-width: 88%; }
  html body.wirtly .ki-karte { max-width: 100%; }
}
/* Chat am Computer kompakter, damit die Reihe nicht wächst; „Was braucht dich“ oben bündig statt auseinandergezogen */
@media (min-width: 701px) { html body.wirtly .ki-verlauf { max-height: 300px; } }
html body.wirtly .dash > .w.needs { justify-content: flex-start; gap: 10px; }
html body.wirtly .dash > .w.needs .needs-title { margin-top: 0; }
html body.wirtly .dash > .w.needs .need-list { margin-top: 8px; }

/* KI: kleines Feld auf der Startseite, Gespräch separat (rechts als Seitenfenster, am Handy als eigener Bildschirm) – 18.11. abends */
html body.wirtly .ki-box { gap: 12px; }
html body.wirtly .ki-box > .ki-feld { flex-direction: row; align-items: flex-end; gap: 8px; padding: 8px 8px 8px 18px; border-radius: var(--r); }
html body.wirtly .ki-box > .ki-feld textarea { flex: 1; min-width: 0; min-height: 26px; max-height: 120px; align-self: center; padding: 4px 0; }
html body.wirtly .ki-box > .ki-chips { flex: none; display: flex; flex-wrap: wrap; gap: 6px; }
html body.wirtly .ki-box > .ki-chips .ki-chip { background: var(--weiss); }
html body.wirtly .ki-box > .ki-chips .ki-chip:hover { background: var(--chip); }
html body.wirtly .ki-chip.ki-fortsetzen { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 700; box-shadow: inset 0 0 0 1px var(--line2); }
html body.wirtly .ki-chip.ki-fortsetzen[hidden] { display: none; }

html body.wirtly .ki-panel { position: fixed; inset: 0; z-index: 1000; }
html body.wirtly .ki-panel[hidden] { display: none; }
html body.wirtly .ki-panel-hg { position: absolute; inset: 0; background: rgba(42,31,24,.18); opacity: 0; transition: opacity .2s; }
html body.wirtly .ki-panel-box { position: absolute; top: 0; right: 0; bottom: 0; width: min(480px, 100%); background: var(--weiss); box-shadow: -24px 0 60px -30px rgba(42,31,24,.5);
  display: flex; flex-direction: column; animation: ki-rein .2s ease-out; }
@keyframes ki-rein { from { transform: translateX(16px); } to { transform: none; } }
html body.wirtly .ki-panel.is-auf .ki-panel-hg { opacity: 1; }
html body.wirtly .ki-panel-kopf { flex: none; display: flex; align-items: center; gap: 10px; padding: 16px 18px 14px 22px; border-bottom: 1px solid var(--chip); }
html body.wirtly .ki-panel-titel { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
html body.wirtly .ki-panel-titel small { font-size: 12px; color: var(--muted); }
html body.wirtly .ki-panel-kopf .ki-neu { border: 0; background: none; padding: 6px 4px; color: var(--muted); font: 700 13px var(--f-sans); text-decoration: none; cursor: pointer; white-space: nowrap; }
html body.wirtly .ki-panel-kopf .ki-neu:hover { color: var(--accent); }
html body.wirtly .ki-zu, html body.wirtly .ki-zurueck { flex: none; width: 38px; height: 38px; border-radius: 19px !important; border: 0; padding: 0 !important; background: var(--surface); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
html body.wirtly .ki-zurueck { display: none; }
html body.wirtly .ki-panel .ki-verlauf { flex: 1; min-height: 0; max-height: none; overflow-y: auto; overscroll-behavior: contain; -webkit-mask-image: none; mask-image: none;
  display: flex; flex-direction: column; gap: 10px; padding: 18px 22px; }
html body.wirtly .ki-panel .ki-verlauf:empty::before { content: "Frag einfach los, zum Beispiel: Wer arbeitet morgen? oder: Setz 2 Kartons Hafermilch auf die Liste."; margin: auto 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
html body.wirtly .ki-panel .ki-ki, html body.wirtly .ki-panel .ki-denkt { background: var(--surface); }
html body.wirtly .ki-panel .ki-blase { max-width: 86%; }
html body.wirtly .ki-panel .ki-karte { max-width: 100%; }
html body.wirtly .ki-feld2 { flex: none; margin: 0; display: flex; align-items: flex-end; gap: 8px; padding: 12px 18px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--chip); }
html body.wirtly .ki-feld2 textarea { all: unset; flex: 1; min-width: 0; box-sizing: border-box; min-height: 44px; max-height: 120px; overflow-y: auto; padding: 11px 16px; border-radius: 22px; background: var(--surface);
  font: 400 16px/1.4 var(--f-sans); color: var(--ink); white-space: pre-wrap; word-break: break-word; }
html body.wirtly .ki-feld2 textarea::placeholder { color: var(--faint); }
html body.wirtly .ki-feld2 .ki-mic { background: var(--surface); }
html.ki-offen, html.ki-offen body { overflow: hidden; }

@media (max-width: 700px) {
  html body.wirtly .ki-box > .ki-feld { padding: 6px 6px 6px 14px; }
  html body.wirtly .ki-box > .ki-feld .ki-mic, html body.wirtly .ki-box > .ki-feld .ki-senden { width: 40px; height: 40px; }
  html body.wirtly .ki-box > .ki-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 0 14px; }
  html body.wirtly .ki-box > .ki-chips::-webkit-scrollbar { display: none; }
  html body.wirtly .ki-box > .ki-chips .ki-chip { flex: none; }
  html body.wirtly .ki-panel-hg { display: none; }
  html body.wirtly .ki-panel-box { width: 100%; height: 100%; height: 100dvh; box-shadow: none; }
  html body.wirtly .ki-panel-kopf { padding: calc(12px + env(safe-area-inset-top)) 14px 12px; }
  html body.wirtly .ki-zurueck { display: inline-flex; }
  html body.wirtly .ki-zu { display: none; }
  html body.wirtly .ki-panel-titel small { display: none; }
  html body.wirtly .ki-panel-kopf .ki-neu { color: var(--accent); }
  html body.wirtly .ki-panel .ki-verlauf { padding: 14px; }
  html body.wirtly .ki-feld2 { padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); }
}

/* KI-Antworten lesbarer: Absätze, Listen mit Punkt, fett nur Stichworte (18.11. abends) */
html body.wirtly .ki-panel .ki-ki { white-space: normal; line-height: 1.5; }
html body.wirtly .ki-panel .ki-ki p { margin: 0 0 8px; }
html body.wirtly .ki-panel .ki-ki > :last-child { margin-bottom: 0; }
html body.wirtly .ki-panel .ki-ki b { font-weight: 700; color: var(--ink); }
html body.wirtly .ki-liste { margin: 0 0 10px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; counter-reset: ki; }
html body.wirtly .ki-liste li { position: relative; padding-left: 16px; }
html body.wirtly ul.ki-liste li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 3px; background: var(--accent); }
html body.wirtly ol.ki-liste li { padding-left: 22px; counter-increment: ki; }
html body.wirtly ol.ki-liste li::before { content: counter(ki) "."; position: absolute; left: 0; top: 0; font-weight: 700; color: var(--accent); }

/* KI: Foto im Post-Vorschlag und fertige Grafik im Gespräch (18.11. abends) */
html body.wirtly .ki-karte .ki-foto { display: block; width: 100%; max-height: 220px; object-fit: cover; border-radius: 12px; }
html body.wirtly .ki-karte .ki-grafik { display: block; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px -18px rgba(42,31,24,.5); }
html body.wirtly .ki-karte .ki-grafik img { display: block; width: 100%; height: auto; }
html body.wirtly .ki-karte .ki-grafik { width: 100%; max-width: 260px; }

/* KI: mehrere Gespräche – Kopfzeile mit Titel, Liste mit Gemerkt/Heute/Diese Woche (18.11. abends) */
html body.wirtly .ki-panel-kopf { gap: 8px; padding: 12px 14px 12px 16px; }
html body.wirtly .ki-panel-titel b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--f-sans); }
html body.wirtly .ki-panel-titel small { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html body.wirtly .ki-listknopf { flex: none; height: 36px; padding: 0 12px !important; border: 0; border-radius: 18px !important; background: var(--surface); color: var(--ink); display: inline-flex; align-items: center; gap: 6px; font: 700 13px var(--f-sans); cursor: pointer; }
html body.wirtly .ki-panel.is-liste .ki-listknopf { background: var(--ink); color: var(--on-ink); }
html body.wirtly .ki-merken, html body.wirtly .ki-plus { flex: none; width: 36px; height: 36px; border-radius: 18px !important; border: 0; padding: 0 !important; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; background: none; color: var(--muted); }
html body.wirtly .ki-merken[hidden] { display: none; }
html body.wirtly .ki-merken[aria-pressed="true"] { color: var(--accent); background: var(--yolk-soft); }
html body.wirtly .ki-plus { background: var(--ink); color: var(--on-ink); }
html body.wirtly .ki-panel.is-liste .ki-plus { display: none; }

html body.wirtly .ki-gliste { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px 16px 20px; display: flex; flex-direction: column; gap: 2px; }
html body.wirtly .ki-gliste[hidden] { display: none; }
html body.wirtly .ki-wirtly-neu { min-height: 46px; margin-bottom: 6px; border: 0; border-radius: 14px; background: var(--ink); color: var(--on-ink); display: flex; align-items: center; justify-content: center; gap: 8px; font: 700 15px var(--f-sans); cursor: pointer; }
html body.wirtly .ki-wirtly-gruppe { padding: 14px 4px 6px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
html body.wirtly .ki-wirtly-zeile { display: flex; align-items: center; gap: 2px; border-radius: 12px; }
html body.wirtly .ki-wirtly-zeile:hover, html body.wirtly .ki-wirtly-zeile.is-aktiv { background: var(--chip); }
html body.wirtly .ki-wirtly-auf { flex: 1; min-width: 0; border: 0; background: none; padding: 10px 6px 10px 12px; display: flex; align-items: center; gap: 8px; text-align: left; cursor: pointer; color: var(--ink); }
html body.wirtly .ki-wirtly-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
html body.wirtly .ki-wirtly-text b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html body.wirtly .ki-wirtly-text small { font-size: 12px; color: var(--muted); }
html body.wirtly .ki-wirtly-offen { flex: none; padding: 3px 8px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); font-size: 11px; font-weight: 800; white-space: nowrap; }
html body.wirtly .ki-wirtly-pin, html body.wirtly .ki-wirtly-weg { flex: none; width: 34px; height: 34px; border-radius: 17px !important; border: 0; padding: 0 !important; background: none; color: var(--faint); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
html body.wirtly .ki-wirtly-pin:hover, html body.wirtly .ki-wirtly-weg:hover { color: var(--ink); background: var(--weiss); }
html body.wirtly .ki-wirtly-pin.is-an { color: var(--accent); }
html body.wirtly .ki-wirtly-leer { margin: 10px 4px; font-size: 13.5px; color: var(--muted); }
html body.wirtly .ki-feld2[hidden], html body.wirtly .ki-panel .ki-verlauf[hidden] { display: none; }

@media (max-width: 700px) {
  html body.wirtly .ki-panel-kopf { padding: calc(10px + env(safe-area-inset-top)) 10px 10px; }
  html body.wirtly .ki-zurueck { order: 0; }
  html body.wirtly .ki-panel-titel { order: 1; }
  html body.wirtly .ki-merken { order: 2; }
  html body.wirtly .ki-listknopf { order: 3; width: 38px; height: 38px; padding: 0 !important; justify-content: center; }
  html body.wirtly .ki-listknopf span { display: none; }
  html body.wirtly .ki-plus { order: 4; width: 38px; height: 38px; }
  html body.wirtly .ki-panel-titel small { display: block; }
  html body.wirtly .ki-wirtly-pin, html body.wirtly .ki-wirtly-weg { width: 38px; height: 38px; }
  html body.wirtly .ki-gliste { padding: 12px 10px 20px; }
}
html body.wirtly .ki-panel .ki-karte { box-sizing: border-box; }

/* KI-Assistent in „Mein Bereich“ (Personal), 18.11. */
html body.wirtly .ki-mein { background: var(--surface); border-radius: var(--r); padding: 20px 22px; margin: 0 0 18px; }
html body.wirtly .ki-mein .ki-datum:empty { display: none; }
html body.wirtly .ki-mein .ki-kopf { justify-content: flex-start; }
html body.wirtly .ki-mein .ki-titel { font-size: clamp(22px, 2vw, 28px); }
@media (max-width: 900px) {
  html body.wirtly .ki-mein { padding: 16px; border-radius: var(--r); margin-bottom: 14px; }
}

/* Dienstplan: Woche als Entwurf (18.11.) */
html body.wirtly .dp-entwurf:empty, html body.wirtly .dp-entwurf:not(.is-an):not(:has(form)) { display: none; }
html body.wirtly .dp-entwurf.is-an { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin: 0 0 12px; border-radius: var(--r); background: var(--warn-soft); border: 1px solid var(--warn-soft); color: var(--warn); }
html body.wirtly .dp-entwurf .dpe-icon { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--weiss); color: var(--warn); display: flex; align-items: center; justify-content: center; }
html body.wirtly .dp-entwurf .dpe-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
html body.wirtly .dp-entwurf .dpe-text b { font-size: 15px; }
html body.wirtly .dp-entwurf .dpe-text small { font-size: 13px; color: var(--warn); }
html body.wirtly .dp-entwurf .dpe-knoepfe { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; }
html body.wirtly .dp-entwurf:not(.is-an) { display: flex; justify-content: flex-end; margin: -4px 0 8px; }
html body.wirtly .dp-entwurf .dpe-zurueck { margin: 0; }
html body.wirtly .dp-entwurf .dpe-zurueck button { background: none; border: 0; padding: 4px 0; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font: inherit; font-size: 13px; }
html body.wirtly .dpm.is-entwurf .dpm-shift { outline: 1.5px dashed var(--faint); outline-offset: -1.5px; }
@media (max-width: 900px) {
  html body.wirtly .dp-entwurf.is-an { flex-wrap: wrap; padding: 14px; }
  html body.wirtly .dp-entwurf .dpe-icon { display: none; }
  html body.wirtly .dp-entwurf .dpe-knoepfe { width: 100%; }
  html body.wirtly .dp-entwurf .dpe-knoepfe .btn { flex: 1 1 auto; }
}
html body.wirtly .plan-entwurf { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 30px 20px; background: var(--surface); border: 0; border-radius: var(--r); }
html body.wirtly .plan-entwurf h2 { margin: 0; font-size: 19px; }
html body.wirtly .plan-entwurf p { margin: 0; max-width: 380px; }
html body.wirtly .plan-entwurf .pe-icon { width: 52px; height: 52px; border-radius: 26px; background: var(--weiss); color: var(--accent); display: flex; align-items: center; justify-content: center; }

/* Mein Bereich: Kalender-Abo (18.11.) */
html body.wirtly .ics-karte { margin-top: 16px; padding: 16px; border-radius: var(--r); background: var(--weiss); display: flex; flex-direction: column; gap: 12px; }
html body.wirtly .ics-kopf { display: flex; align-items: center; gap: 12px; }
html body.wirtly .ics-kopf > span:last-child { display: flex; flex-direction: column; gap: 2px; }
html body.wirtly .ics-kopf b { font-size: 15px; }
html body.wirtly .ics-kopf small { font-size: 12.5px; color: var(--muted); }
html body.wirtly .ics-icon { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--surface); color: var(--accent); display: flex; align-items: center; justify-content: center; }
html body.wirtly .ics-karte > .btn { align-self: flex-start; }
html body.wirtly .ics-mehr { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
html body.wirtly .ics-mehr form { margin: 0; }
html body.wirtly .ics-mehr .link { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
html body.wirtly .ics-karte > small { font-size: 12px; line-height: 1.5; }
@media (max-width: 900px) { html body.wirtly .ics-karte > .btn { align-self: stretch; } }

/* KI-Knopf in der Mitte der Handy-Leiste + KI-Feld im Schnell-Blatt (18.11.) */
html body.wirtly .tab-plus.is-ki { background: var(--accent); }
html body.wirtly .tab-plus.is-ki[aria-expanded="true"] { background: var(--weiss); color: var(--accent); }
html body.wirtly .tab-plus.is-ki[aria-expanded="true"] svg { transform: none; }
html body.wirtly .plus-ki { display: flex; flex-direction: column; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--chip); }
html body.wirtly .plus-ki-marke { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
html body.wirtly .plus-ki-feld { margin: 0; display: flex; align-items: flex-end; gap: 8px; padding: 6px 6px 6px 16px; border-radius: var(--r); background: var(--weiss); border: 1.5px solid var(--accent); }
html body.wirtly .plus-ki-feld textarea { flex: 1; min-width: 0; min-height: 26px; max-height: 120px; align-self: center; padding: 4px 0; border: 0; outline: 0; resize: none; background: transparent; font: 16px/1.4 var(--f-sans); color: var(--ink); box-shadow: none; }
html body.wirtly .plus-ki-senden { width: 44px; height: 44px; flex: none; border-radius: 22px; border: 0; padding: 0; background: var(--ink); color: var(--on-ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
html body.wirtly .plus-ki-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
html body.wirtly .plus-ki-chips::-webkit-scrollbar { display: none; }
html body.wirtly .plus-ki-chips .ki-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; background: var(--surface); }
html body.wirtly .plus-ki-chips .plus-ki-fort { color: var(--accent); font-weight: 700; box-shadow: inset 0 0 0 1px var(--line2); }
html body.wirtly .plus-sheet.mit-ki .plus-head h2 { font-size: 1.05rem; }
html body.wirtly .plus-sheet.mit-ki .plus-label { display: none; }
html body.wirtly .ki-versteckt { display: none !important; }

/* Einkauf: Läden in Einkaufs-Reihenfolge (18.11.) */
html body.wirtly .ek-laden-reihe { list-style: none; margin: 4px 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
html body.wirtly .ek-laden-reihe li { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 14px; background: var(--weiss); }
html body.wirtly .ek-lr-nr { flex: none; width: 28px; height: 28px; border-radius: 14px; background: var(--surface); display: inline-flex; align-items: center; justify-content: center; font: 800 13px/1 var(--f-sans); }
html body.wirtly .ek-lr-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
html body.wirtly .ek-lr-text b { font-size: 15px; }
html body.wirtly .ek-lr-text small { font-size: 12px; color: var(--muted); }
html body.wirtly .ek-laden-reihe form { display: flex; gap: 6px; margin: 0; }
html body.wirtly .ek-lr-knopf { width: 36px; height: 36px; border-radius: 10px; border: 0; padding: 0; background: var(--surface); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
html body.wirtly .ek-lr-knopf:disabled { opacity: .35; cursor: default; }

/* Tischplan: Zeitleiste je Tisch + Liste am Handy (18.11.) */
html body.wirtly .tp-ansicht { display: inline-flex; padding: 4px; gap: 2px; border-radius: 12px; background: var(--surface); }
html body.wirtly .tp-ansicht a { min-height: 36px; padding: 0 14px; border-radius: 9px; display: inline-flex; align-items: center; font-size: 13.5px; font-weight: 700; color: var(--ink2); text-decoration: none; }
html body.wirtly .tp-ansicht a[aria-current] { background: var(--ink); color: var(--on-ink); }
html body.wirtly .tp-nur-klein { display: none; }
html body.wirtly .tl { position: relative; display: flex; flex-direction: column; }
html body.wirtly .tl-kopf { display: grid; grid-template-columns: 130px 1fr; font-size: 11.5px; color: var(--muted); padding-bottom: 6px; }
html body.wirtly .tl-skala { position: relative; height: 16px; }
html body.wirtly .tl-skala i { position: absolute; transform: translateX(-50%); font-style: normal; }
html body.wirtly .tl-zone { padding: 12px 0 4px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
html body.wirtly .tl-zeile { display: grid; grid-template-columns: 130px 1fr; min-height: 44px; border-top: 1px solid var(--chip); }
html body.wirtly .tl-tisch { display: flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; font-size: 14px; }
html body.wirtly .tl-tisch i { width: 8px; height: 8px; border-radius: 4px; background: var(--green); flex: none; }
html body.wirtly .tl-tisch i.is-belegt { background: var(--accent); }
html body.wirtly .tl-tisch small { color: var(--muted); font-size: 12px; }
html body.wirtly .tl-bahn { position: relative; }
html body.wirtly .tl-linie { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--chip); }
html body.wirtly .tl-res { position: absolute; top: 6px; bottom: 6px; border-radius: 8px; padding: 0 8px; display: flex; align-items: center; gap: 4px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); text-decoration: none; background: var(--yolk-soft); }
html body.wirtly .tl-res b { font-weight: 800; }
html body.wirtly .tl-res.is-da { background: var(--green-soft); }
html body.wirtly .tl-res.is-anfrage { background: var(--warn-soft); box-shadow: inset 0 0 0 1.5px var(--warn); }
html body.wirtly .tl-res.is-weg { background: var(--chip); color: var(--faint); }
html body.wirtly .tl-res:hover { filter: brightness(.97); }
html body.wirtly .tl-jetzt { position: absolute; top: 22px; bottom: 0; left: calc(130px + (100% - 130px) * var(--x) / 100); width: 2px; background: var(--accent); pointer-events: none; }
html body.wirtly .tl-jetzt b { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--accent); background: var(--weiss); padding: 0 3px; }
html body.wirtly .tl-legende i { border: 0 !important; }
html body.wirtly .tl-legende i.is-weg { background: var(--chip); }
html body.wirtly .tl-legende i.is-res { background: var(--yolk-soft); }
html body.wirtly .tl-legende i.is-da { background: var(--green-soft); }
html body.wirtly .tl-legende i.is-anfrage { background: var(--warn-soft); box-shadow: inset 0 0 0 1.5px var(--warn); }
html body.wirtly .tl-liste { display: none; }
html body.wirtly .tp-grid-wrap .panel.s2:has(.tl)::after { content: none; display: none; }
html body.wirtly .tp-vorschlag { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0; }
html body.wirtly .tp-vorschlag .ki-chip { background: var(--ink); color: var(--on-ink); }
@media (max-width: 700px) {
  html body.wirtly .tp-nur-gross { display: none; }
  html body.wirtly .tp-nur-klein { display: inline; }
  html body.wirtly .tl, html body.wirtly .tl-legende { display: none; }
  html body.wirtly .tl-liste { display: flex; flex-direction: column; gap: 8px; }
  html body.wirtly .tl-zeiten { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  html body.wirtly .tl-zeiten::-webkit-scrollbar { display: none; }
  html body.wirtly .tl-zeiten a { flex: none; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--surface); display: inline-flex; align-items: center; font-size: 13.5px; font-weight: 600; color: var(--ink2); text-decoration: none; }
  html body.wirtly .tl-zeiten a[aria-current] { background: var(--ink); color: var(--on-ink); }
  html body.wirtly .tl-ohne { padding: 12px 14px; border-radius: 14px; background: var(--red-soft); color: var(--red); font-size: 13.5px; font-weight: 700; text-decoration: none; }
  html body.wirtly .tl-gruppe { padding: 8px 2px 0; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
  html body.wirtly .tl-karte { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--weiss); color: inherit; text-decoration: none; }
  html body.wirtly .tl-nr { flex: none; min-width: 44px; height: 44px; padding: 0 6px; box-sizing: border-box; border-radius: 12px; display: flex; align-items: center; justify-content: center; font: 800 16px/1 var(--f-sans); background: var(--green-soft); }
  html body.wirtly .tl-nr.is-res { background: var(--yolk-soft); }
  html body.wirtly .tl-nr.is-da { background: var(--yolk-soft); }
  html body.wirtly .tl-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  html body.wirtly .tl-info b { font-size: 14px; }
  html body.wirtly .tl-info small { font-size: 12px; color: var(--muted); }
  html body.wirtly .tl-pl { font-size: 12px; color: var(--muted); }
}

/* Speisekarte: Allergene prüfen (18.11.) */
html body.wirtly .al-stand { display: flex; align-items: center; gap: 18px; padding: 16px 18px; margin-bottom: 12px; border-radius: var(--r); background: var(--surface); }
html body.wirtly .al-stand p { margin: 0; flex: 1.4; font-size: 13px; line-height: 1.5; color: var(--ink2); }
html body.wirtly .al-fort { flex: 1; display: flex; flex-direction: column; gap: 8px; }
html body.wirtly .al-balken { height: 8px; border-radius: 4px; background: var(--weiss); overflow: hidden; }
html body.wirtly .al-balken span { display: block; height: 100%; background: var(--accent); }
html body.wirtly .al-filter { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
html body.wirtly .al-filter .ki-chip { display: inline-flex; align-items: center; text-decoration: none; }
html body.wirtly .al-filter .ki-chip.is-on { background: var(--ink); color: var(--on-ink); }
html body.wirtly .al-liste { display: flex; flex-direction: column; gap: 8px; }
html body.wirtly .al-zeile { display: grid; grid-template-columns: minmax(0, 1fr) 280px 260px; gap: 16px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--surface); }
html body.wirtly .al-zeile.is-ok { background: var(--weiss); border: 1px solid var(--chip); }
html body.wirtly .al-name { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
html body.wirtly .al-name b { font-size: 15px; }
html body.wirtly .al-name small { font-size: 12.5px; color: var(--muted); }
html body.wirtly .al-vor { display: flex; flex-direction: column; gap: 6px; }
html body.wirtly .al-bs { display: flex; gap: 5px; flex-wrap: wrap; }
html body.wirtly .al-bs i { font-style: normal; width: 28px; height: 28px; border-radius: 8px; background: var(--ink); color: var(--on-ink); display: inline-flex; align-items: center; justify-content: center; font: 800 13px/1 var(--f-sans); }
html body.wirtly .al-bs i.al-keine { width: auto; padding: 0 10px; background: var(--weiss); color: var(--muted); font: 600 12px/1 var(--f-sans); }
html body.wirtly .al-tun { display: flex; gap: 8px; justify-content: flex-end; align-items: center; flex-wrap: wrap; position: relative; }
html body.wirtly .al-tun form { margin: 0; }
html body.wirtly .al-passt { background: var(--ink) !important; color: var(--on-ink) !important; border: 0 !important; }
html body.wirtly .al-ok { color: var(--green); font-weight: 700; font-size: 14px; }
html body.wirtly .al-tun .link { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: var(--muted); text-decoration: underline; cursor: pointer; }
html body.wirtly .al-aendern > summary { list-style: none; cursor: pointer; }
html body.wirtly .al-aendern > summary::-webkit-details-marker { display: none; }
html body.wirtly .al-aendern[open] { flex-basis: 100%; }
html body.wirtly .al-wahl { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; margin-top: 8px !important; padding: 12px; border-radius: 12px; background: var(--weiss); }
html body.wirtly .al-wahl label { display: flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
html body.wirtly .al-wahl .btn { grid-column: 1 / -1; justify-self: start; }
@media (max-width: 900px) {
  html body.wirtly .al-stand { flex-direction: column; align-items: stretch; }
  html body.wirtly .al-zeile { grid-template-columns: 1fr; gap: 10px; }
  html body.wirtly .al-tun { justify-content: flex-start; }
}
html body.wirtly .plus-sheet.mit-tastatur .plus-head, html body.wirtly .plus-sheet.mit-tastatur .plus-grid { display: none; }
html body.wirtly .plus-sheet.mit-tastatur .plus-ki { padding-bottom: 0; border-bottom: 0; }
html body.wirtly .plus-panel:focus { outline: none; }

/* U-142: Computer-Raster – EIN Außenrand (--rand) für Kopfleiste links/rechts, Menü-Karte links und Inhalt rechts; EIN Abstand (--abstand) unter der Kopfleiste für Menü-Karte und Inhalt */
html body.wirtly { --rand: 16px; --kopf-h: 64px; --abstand: 12px; }
/* U-116: App-Rahmen wie die Werkbank – dunkle Kopfleiste (Logo, Ort, Knöpfe), Menü als weiße Karte, Inhalt auf hellgrauem Grund.
   Farben kommen aus den Werkbank-Werten (--kopf, --surface, --line …), hell wie dunkel. Löst die Optik aus U-114 ab. */
html body.wirtly .gw-kopf-rahmen { position: sticky; top: 0; z-index: 65; background: var(--bg); padding: calc(var(--rand) + env(safe-area-inset-top, 0px)) var(--rand) 0; }
/* U-137: Computer-Kopfleiste nach Moodboard B – helle Karte (64 px) wie die Kopf-Kachel am Handy, schwebend mit 16 px Abstand */
html body.wirtly .gw-kopf { display: flex; align-items: center; gap: 16px; height: 64px; padding: 0 12px 0 22px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 10px 26px -18px rgb(28 35 33 / 0.35); border-radius: 14px; box-sizing: border-box; }
html body.wirtly .gw-kopf-brand { display: flex; align-items: center; color: var(--ink); text-decoration: none; flex: none; }
html body.wirtly .gw-kopf-logo.gw-logo { height: 28px; width: auto; display: block; color: var(--ink); filter: none !important; }
html body.wirtly .gw-kopf-strich { flex: none; width: 1px; height: 24px; background: var(--line); }
html body.wirtly .gw-kopf-ort { display: flex; align-items: center; line-height: 1.2; min-width: 0; }
html body.wirtly .gw-kopf-ort b { font: 600 17px var(--f-body); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html body.wirtly .gw-kopf-platz { flex: 1; }
html body.wirtly .gw-kopf .gw-kopf-ic { display: none; flex: none; align-items: center; justify-content: center; padding: 0; border-radius: 50%; text-decoration: none; cursor: pointer; box-sizing: border-box; }
html body.wirtly .gw-kopf-name { display: none; }
html body.wirtly .gw-kopf .side-chat, html body.wirtly .gw-kopf .side-hilfe { width: 40px; height: 40px; margin: 0; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
html body.wirtly .gw-kopf .side-chat-n, html body.wirtly .gw-kopf .side-hilfe .hilfe-n { background: var(--accent); color: var(--on-acc); }
html body.wirtly .gw-kopf-menu { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: var(--rb); background: transparent; color: var(--ink); cursor: pointer; flex: none; }
html body.wirtly .gw-ich { position: relative; flex: none; }
html body.wirtly .gw-ich-knopf { list-style: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--kopf); color: var(--kopf-ink); font: 600 13px var(--f-mono); cursor: pointer; user-select: none; }
html body.wirtly .gw-ich-knopf::-webkit-details-marker { display: none; }
html body.wirtly .gw-ich-knopf:focus-visible, html body.wirtly .gw-kopf-menu:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
html body.wirtly .gw-ich-auf { position: absolute; right: 0; top: 48px; min-width: 200px; display: flex; flex-direction: column; padding: 6px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px -18px rgb(0 0 0 / 0.35); z-index: 70; }
html body.wirtly .gw-ich-auf a, html body.wirtly .gw-ich-auf button { display: block; width: 100%; box-sizing: border-box; padding: 9px 12px; border: 0; background: transparent; border-radius: 8px; color: inherit; font: 500 14px var(--f-body); text-align: left; text-decoration: none; cursor: pointer; }
html body.wirtly .gw-ich-auf a:hover, html body.wirtly .gw-ich-auf button:hover { background: var(--surface-2); }
html body.wirtly .gw-ich-auf form { margin: 0; }

/* Menü: eigene weiße Karte unter der Kopfleiste (die Seitenleiste selbst bleibt durchsichtig) */
html body.wirtly .shell { grid-template-columns: 256px minmax(0, 1fr); min-height: 0; }
html body.wirtly .side { background: transparent; border: 0; top: calc(var(--rand) + var(--kopf-h)); height: calc(100vh - var(--rand) - var(--kopf-h)); height: calc(100dvh - var(--rand) - var(--kopf-h)); padding: var(--abstand) 0 var(--abstand) var(--rand); gap: 0; overflow: hidden; box-sizing: border-box; }
html body.wirtly .side-nav { flex: 1; min-height: 0; overflow-y: auto; box-sizing: border-box; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); gap: 2px; }
/* U-137: Computer – Suche (300 px), ✦ KI, + Reservierung, Anpassen (Symbol) in der hellen Kopfleiste (alle Seiten; Anpassen nur auf der Startseite) */
html body.wirtly .gw-kopf-suche { display: flex; align-items: center; gap: 8px; width: 300px; height: 40px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--bg); color: var(--muted); box-sizing: border-box; margin: 0; flex: 0 1 300px; min-width: 160px; }
html body.wirtly .gw-kopf-suche:focus-within { box-shadow: 0 0 0 2px var(--accent); color: var(--ink); }
html body.wirtly .gw-kopf-suche input { flex: 1; min-width: 0; width: auto; border: 0 !important; outline: none; background: transparent !important; box-shadow: none !important; padding: 0 !important; min-height: 0 !important; font: 400 14px var(--f-body); color: var(--ink); }
html body.wirtly .gw-kopf-suche input::placeholder { color: var(--muted); }
html body.wirtly .gw-kopf-ki { height: 40px; min-height: 40px; margin: 0; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 14px var(--f-body); }
html body.wirtly .gw-kopf-ki:hover, html body.wirtly .gw-kopf-ki.is-active { background: var(--bg); }
html body.wirtly .gw-kopf-res { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 10px; background: var(--accent); color: var(--on-acc, #fff); font: 600 14px var(--f-body); text-decoration: none; white-space: nowrap; flex: none; }
html body.wirtly .gw-kopf-res:hover { filter: brightness(.94); }
html body.wirtly .gw-kopf .gw-kopf-ic:not(.gw-kopf-ic-res) { display: inline-flex; width: 40px; height: 40px; border: 0; border-radius: 10px; background: var(--bg); color: var(--ink); }
html body.wirtly .gw-kopf .gw-kopf-ic[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-acc, #fff); }
/* U-137: Startseite am Computer – oben ohne Leerstreifen; KI-Kachel und „Was braucht dich“ in zwei gleich breiten Spalten (6er-Raster: S = 2, M = 4, L = 6; die beiden Kacheln je 3). Unter 1100 px untereinander. */
@media (min-width: 901px) {
  html body.wirtly:not(.dash-edit) .dash-top { display: none; }
}
@media (min-width: 1101px) {
  html body.wirtly .dash { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  html body.wirtly .dash > .w-1 { grid-column: span 2; }
  html body.wirtly .dash > .w-2 { grid-column: span 4; }
  html body.wirtly .dash > .w-3 { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  html body.wirtly .gw-kopf-suche, html body.wirtly .gw-kopf-res { display: none; }
  html body.wirtly .gw-kopf-rahmen { padding: calc(8px + env(safe-area-inset-top, 0px)) 8px 0; }
  html body.wirtly .gw-kopf { height: 68px; padding: 0 12px 0 16px; gap: 8px; }   /* U-135: höher (68 px), Logo größer, Symbole mittig */
  html body.wirtly .gw-kopf-logo.gw-logo { height: 32px; }
  html body.wirtly .gw-kopf .gw-kopf-ic { display: inline-flex; }
  html body.wirtly .dash-nur-pc { display: none !important; }
  /* U-134: Handy-Kopfzeile = helle Kachel in der Form aus U-116 (wie die Leiste unten); Inhalt: Logo + Betriebsname + Nachrichten */
  html body.wirtly .gw-kopf { background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
  html body.wirtly .gw-kopf-brand, html body.wirtly .gw-kopf-logo.gw-logo { color: var(--ink); }
  html body.wirtly .gw-kopf-name { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 17px var(--f-body); color: var(--ink); }
  html body.wirtly .gw-kopf-ort,html body.wirtly .gw-kopf-strich, html body.wirtly .gw-ich, html body.wirtly .gw-kopf-menu, html body.wirtly .gw-kopf-ki, html body.wirtly .gw-kopf .side-hilfe, html body.wirtly .gw-kopf .side-plus { display: none !important; }
  html body.wirtly .gw-kopf .side-chat, html body.wirtly .gw-kopf .gw-kopf-ic, html body.wirtly .gw-kopf .gw-kopf-ic:not(.gw-kopf-ic-res) { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); }
  html body.wirtly .gw-kopf .gw-kopf-ic[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-acc, #fff); }
  html body.wirtly .shell { grid-template-columns: minmax(0, 1fr); }
  html body.wirtly .side { position: static; height: auto; padding: 0; overflow: visible; }
  html body.wirtly .side.is-open .side-nav { top: calc(68px + env(safe-area-inset-top, 0px)); left: 8px; right: 8px; bottom: calc(74px + env(safe-area-inset-bottom, 0px)); padding: 14px; border-radius: var(--r); }
  /* U-139: Abstand Kopf-Kachel → erster Inhalt genau 12 px (vorher 8 px Rand + 22 px Innenabstand) */
  html body.wirtly .has-shell .wrap, html body.wirtly.has-shell .wrap { margin-top: 12px; padding-top: 0; }
}

/* Marketing-Verbindungen (U-125): Chips gut lesbar, Karten am Handy sauber gesetzt */
html body.wirtly details:is(.mx-verb, .mx-mehr) > summary .mx-chip { border: 1px solid transparent; }
html body.wirtly details:is(.mx-verb, .mx-mehr) > summary .mx-chip.is-ok { background: color-mix(in srgb, var(--green, #3C5634) 22%, var(--weiss, #fff)); color: color-mix(in srgb, var(--green, #3C5634) 55%, var(--ink)); border-color: color-mix(in srgb, var(--green, #3C5634) 45%, transparent); }
html body.wirtly details:is(.mx-verb, .mx-mehr) > summary .mx-chip.is-wartet { background: color-mix(in srgb, var(--red, #A8402E) 18%, var(--weiss, #fff)); color: color-mix(in srgb, var(--red, #A8402E) 55%, var(--ink)); border-color: color-mix(in srgb, var(--red, #A8402E) 45%, transparent); }
html body.wirtly details:is(.mx-verb, .mx-mehr) > summary .mx-chip.is-fehler { background: color-mix(in srgb, var(--red, #A8402E) 22%, var(--weiss, #fff)); color: color-mix(in srgb, var(--red, #A8402E) 55%, var(--ink)); border-color: color-mix(in srgb, var(--red, #A8402E) 50%, transparent); }
html body.wirtly details:is(.mx-verb, .mx-mehr) > summary .mx-chip.is-neutral { background: var(--weiss, var(--surface-2)); color: var(--ink2); border-color: var(--line2); }
@media (max-width: 900px) {
  html body.wirtly details.mx-verb > summary { grid-template-columns: 36px minmax(0, 1fr) 24px; grid-template-rows: auto auto; align-items: start; column-gap: 12px; row-gap: 6px; min-height: 0; padding: 14px 0 !important; }
  html body.wirtly details.mx-verb > summary > .mx-zeile-icon { grid-column: 1; grid-row: 1 / span 2; align-self: start; }
  html body.wirtly details.mx-verb > summary > span:nth-child(2) { grid-column: 2; grid-row: 1; align-self: start; }
  html body.wirtly details.mx-verb > summary > .mx-chip { grid-column: 2; grid-row: 2; justify-self: start; align-self: start; margin: 0; }
  html body.wirtly details.mx-verb > summary::after { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
  html body.wirtly details.mx-mehr > summary { grid-template-columns: minmax(0, 1fr) auto 24px; min-height: 0; padding: 14px 0 !important; }
  html body.wirtly details.mx-mehr > summary .mx-chip { margin-right: 0; }
  html body.wirtly details.mx-mehr > summary::after { grid-column: 3; }
}

/* U-130: Nur Abstände (überall 12 px) und Menü-Schrift wie Werkbank – kein Umbau von Raster/HTML */
html body.wirtly { --gap: 12px; }
html body.wirtly .dash, html body.wirtly .dash-wrap, html body.wirtly .wrap { gap: 12px; }
@media (min-width: 901px) {
  html body.wirtly .shell { grid-template-columns: 212px minmax(0, 1fr); }
  /* Menü-Einträge: siehe assets/menue.css (U-161) */
  /* U-140: Raster – Rand rechts wie die Kopfleiste (16 px); Menü-Karte und Inhalt beginnen beide 12 px unter der Kopfleiste */
  html body.wirtly.has-shell .wrap, html body.wirtly .has-shell .wrap { margin: var(--abstand) var(--rand) var(--abstand) var(--abstand); padding: 0 0 48px 0; background: transparent; }
  html body.wirtly .dash > .w:not(.w-id-kpis), html body.wirtly .dash > .w.needs { padding: 22px 24px; }
}
html body.wirtly .w-head h2, html body.wirtly .dash > .w h2 { font-size: 15px; font-weight: 600; }

/* U-138: Handy und Computer – nichts rund/oval: Symbol-Knöpfe, Pillen, Eingabefelder, Schilder und Kürzel mit leicht runden Ecken (8–12 px). Zahl-Plaketten und kleine Punkte bleiben rund. */
html body.wirtly .gw-kopf .gw-kopf-ic { border-radius: 10px; }
html body.wirtly .gw-ich-knopf { border-radius: 10px; }
html body.wirtly .tab-plus { border-radius: 16px; }
html body.wirtly .w.w-id-ki { border-radius: 14px; }
html body.wirtly .ki-feld { border-radius: 12px; }
html body.wirtly .ki-feld2 textarea { border-radius: 12px; }
html body.wirtly .ki-mic, html body.wirtly .ki-senden, html body.wirtly .plus-ki-senden { border-radius: 10px !important; }
html body.wirtly .ki-chip, html body.wirtly .assi-chip, html body.wirtly .tl-zeiten a { border-radius: 10px; }
html body.wirtly .ki-status, html body.wirtly .ki-wirtly-offen, html body.wirtly .assi-karte-status, html body.wirtly .assi-wartet { border-radius: 8px; }
html body.wirtly .plan-entwurf .pe-icon { border-radius: 12px; }
html body.wirtly .ki-kachel-rahmen { border-radius: 14px; }
html body.wirtly .assi-form { border-radius: 12px; }
html body.wirtly .assi-mic { border-radius: 10px; }
@media (max-width: 900px) {
  html body.wirtly .gw-kopf .side-chat, html body.wirtly .gw-kopf .gw-kopf-ic, html body.wirtly .gw-kopf .gw-kopf-ic:not(.gw-kopf-ic-res) { border-radius: 10px; }
  html body.wirtly .w.w-id-ki { border-radius: 14px; }
}
