/* Maloya – Layout: ruhige Arbeitsfläche, ein warmes Eigelb als Akzent, Zahlen in Mono */
:root {
  --bg: #F2F3EF;
  --surface: #FFFFFF;
  --surface-2: #E9ECE6;
  --ink: #1B2320;
  --muted: #5E6963;
  --line: #DCE0D9;
  --yolk: #E7A31C;
  --yolk-ink: #3A2903;
  --yolk-soft: #FBEFD3;
  --green: #2F6B5A;
  --green-soft: #DDEDE6;
  --red: #B03F55;
  --red-soft: #F6E1E5;
  --warn: #A9600F;
  --warn-soft: #F8E8D2;

  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --r: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121614;
    --surface: #1A1F1C;
    --surface-2: #232A26;
    --ink: #E8ECE7;
    --muted: #9AA59F;
    --line: #2D3530;
    --yolk: #F0B63E;
    --yolk-ink: #2A1E02;
    --yolk-soft: #3A2E12;
    --green: #74BFA5;
    --green-soft: #1E3029;
    --red: #E2788C;
    --red-soft: #3A1F25;
    --warn: #E7A35A;
    --warn-soft: #36291A;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2 { font-family: var(--f-display); font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); line-height: 1.15; }
h2 { font-size: 1.05rem; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
code { font-family: var(--f-mono); font-size: 0.9em; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }
:focus-visible { outline: 2px solid var(--yolk); outline-offset: 2px; }

/* ---------- Kopfzeile ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.topbar-in {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; gap: 20px;
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px));
}
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--f-display); font-weight: 700; font-size: 1.2rem; text-decoration: none; }
.brand-mark {
  width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--yolk) 0 44%, var(--surface) 46% 100%);
  box-shadow: inset 0 0 0 2px var(--ink);
  flex: none;
}
.brand-mark.big { width: 46px; height: 46px; box-shadow: inset 0 0 0 3px var(--ink); }
.nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.nav::-webkit-scrollbar { display: none; }
.nav a, .nav-soon {
  padding: 7px 12px; border-radius: 8px; text-decoration: none; white-space: nowrap;
  color: var(--muted); font-weight: 500;
}
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a.is-active { background: var(--ink); color: var(--bg); }
.nav-btn {
  display: inline-flex; align-items: center; gap: 0; padding: 7px 12px; border-radius: 8px; border: 0; background: none;
  font: inherit; font-weight: 500; color: var(--muted); white-space: nowrap; cursor: pointer;
}
.nav-btn:hover, .nav-btn[aria-expanded="true"] { background: var(--surface-2); color: var(--ink); }
.nav-btn.is-active { background: var(--ink); color: var(--bg); }
.nav-caret { width: 7px; height: 7px; margin-left: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.nav-btn[aria-expanded="true"] .nav-caret { transform: translateY(1px) rotate(-135deg); }
.nav-drop {
  position: fixed; z-index: 30; min-width: 210px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 32px rgb(0 0 0 / 0.14); display: flex; flex-direction: column; gap: 2px;
}
.nav-drop a { display: flex; align-items: center; padding: 10px 12px; border-radius: 8px; text-decoration: none; font-weight: 500; color: var(--ink); }
.nav-drop a:hover { background: var(--surface-2); }
.nav-drop a.is-active { background: var(--surface-2); font-weight: 600; }
.nav-drop .nav-badge { margin-left: auto; }
.subnav { border-top: 1px solid var(--line); }
.subnav-in {
  max-width: 1180px; margin: 0 auto; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  padding: 6px max(16px, env(safe-area-inset-right, 0px)) 6px max(16px, env(safe-area-inset-left, 0px));
}
.subnav-in::-webkit-scrollbar { display: none; }
@media (max-width: 720px) {
  .nav-drop { min-width: 0; width: calc(100vw - 16px); }
  .subnav-in { gap: 2px; padding-left: 10px; padding-right: 10px; }
  .subnav a { padding: 6px 9px; font-size: 0.88rem; }
}
.subnav a { padding: 6px 11px; border-radius: 99px; text-decoration: none; white-space: nowrap; font-size: 0.92rem; font-weight: 500; color: var(--muted); }
.subnav a:hover { color: var(--ink); background: var(--surface-2); }
.subnav a.is-active { color: var(--ink); background: var(--yolk-soft); box-shadow: inset 0 0 0 1px var(--yolk); }
.nav-soon { opacity: 0.55; cursor: default; display: inline-flex; gap: 5px; align-items: baseline; }
.nav-soon small { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; }
.me { display: flex; align-items: center; gap: 10px; }
.me form { margin: 0; }

@media (max-width: 720px) {
  .topbar-in { flex-wrap: wrap; gap: 8px 12px; }
  .nav { order: 3; flex-basis: 100%; margin: 0 -6px; }
  .me { margin-left: auto; }
}

/* ---------- Grundgerüst ---------- */
.wrap {
  max-width: 1180px; margin: 0 auto;
  padding-block: 28px 64px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  display: flex; flex-direction: column; gap: 20px;
}
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.eyebrow { margin: 0 0 4px; color: var(--muted); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; }
.today-tag { font-family: var(--f-body); font-size: 0.8rem; font-weight: 600; vertical-align: middle; background: var(--yolk); color: var(--yolk-ink); padding: 2px 9px; border-radius: 99px; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; min-width: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.panel-form { border-color: var(--yolk); box-shadow: 0 0 0 3px var(--yolk-soft); }
.grid-main { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
@media (max-width: 860px) { .grid-main { grid-template-columns: minmax(0, 1fr); } }
.empty { color: var(--muted); margin: 4px 0; max-width: 52ch; }
.link { color: var(--green); font-weight: 600; text-decoration: none; font-size: 0.9rem; }
.link:hover { text-decoration: underline; }

/* ---------- Kennzahlen ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 860px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tile:first-child { background: var(--yolk-soft); border-color: transparent; }
.tile-label { font-size: 0.78rem; color: var(--muted); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.tile-num { font-family: var(--f-display); font-size: 2rem; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.tile-num.mono { font-family: var(--f-mono); font-size: 1.7rem; font-weight: 500; }
.tile-sub { font-size: 0.86rem; color: var(--muted); }

/* ---------- Reservierungsliste ---------- */
.res-list, .people, .team-list { list-style: none; margin: 0; padding: 0; }
.res-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.res-row:first-child { border-top: 0; padding-top: 2px; }
.res-time { font-size: 1rem; font-weight: 500; }
.res-main { display: flex; flex-direction: column; min-width: 0; }
.res-main a { text-decoration: none; }
.res-main a:hover strong { text-decoration: underline; }
.res-meta { font-size: 0.86rem; color: var(--muted); }
.res-note { font-size: 0.86rem; color: var(--warn); }
.res-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.res-actions form { margin: 0; }
.status-storniert .res-main strong, .status-storniert .res-time { text-decoration: line-through; color: var(--muted); }
.status-angekommen .res-time { color: var(--green); }
@media (max-width: 520px) {
  .res-row { grid-template-columns: 48px minmax(0, 1fr); }
  .res-actions { grid-column: 2; justify-content: flex-start; }
}

/* ---------- Personen ---------- */
.people li, .team-list li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.people li:first-child, .team-list li:first-child { border-top: 0; }
.people li > span:nth-child(2), .team-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.people small, .team-main small { color: var(--muted); font-size: 0.84rem; }
.since { font-size: 0.88rem; color: var(--muted); white-space: nowrap; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--c); color: #fff; font-weight: 600; font-size: 0.9rem;
}
.team-flags { display: flex; gap: 6px; flex-wrap: wrap; }
.team-list li.is-inactive { opacity: 0.55; }
@media (max-width: 520px) { .team-list li { flex-wrap: wrap; } .team-flags { order: 4; margin-left: 44px; } }

/* ---------- Pills & Buttons ---------- */
.pill { font-size: 0.76rem; font-weight: 600; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.pill-angekommen, .pill-ok { background: var(--green-soft); color: var(--green); }
.pill-storniert { background: var(--red-soft); color: var(--red); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: 600 0.95rem/1 var(--f-body); padding: 11px 16px; border-radius: 9px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--yolk); color: var(--yolk-ink); }
.btn-primary:hover { filter: brightness(0.95); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { padding: 7px 11px; font-size: 0.86rem; }
.chip-btn {
  font: 600 0.82rem/1 var(--f-body); padding: 7px 11px; border-radius: 99px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; white-space: nowrap;
}
.chip-btn:hover { border-color: var(--green); color: var(--green); }
.chip-btn.is-late { border-color: var(--warn); color: var(--warn); background: var(--warn-soft); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn.danger { color: var(--red); }

/* ---------- Hinweise ---------- */
.flash { padding: 11px 14px; border-radius: 9px; font-weight: 500; }
.flash-ok { background: var(--green-soft); color: var(--green); }
.flash-err { background: var(--red-soft); color: var(--red); }
.flash-warn { background: var(--warn-soft); color: var(--warn); }

/* ---------- Formulare ---------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.span-2 { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.form label { display: flex; flex-direction: column; gap: 5px; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.form input:not([type=checkbox]):not([type=radio]), .form select {
  font: 400 1rem var(--f-body); color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; width: 100%; min-width: 0;
}
.form input:focus, .form select:focus { outline: none; border-color: var(--yolk); box-shadow: 0 0 0 3px var(--yolk-soft); }
.form label.check { flex-direction: row; align-items: center; gap: 9px; font-weight: 500; color: var(--ink); }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.danger-zone { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.login-box { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; }
.login-box summary { cursor: pointer; font-weight: 600; }
.login-box .form-grid { margin-top: 10px; }
.swatches { border: 0; padding: 0; margin: 0; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.swatches legend { font-size: 0.85rem; font-weight: 600; color: var(--muted); margin-bottom: 5px; padding: 0; }
.swatch { position: relative; }
.swatch input { position: absolute; opacity: 0; }
.swatch span { display: block; width: 28px; height: 28px; border-radius: 50%; background: var(--c); cursor: pointer; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px transparent; }
.swatch input:checked + span { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }
.swatch input:focus-visible + span { outline: 2px solid var(--yolk); outline-offset: 4px; }

/* ---------- Tagesnavigation ---------- */
.daynav { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.daynav-pick { display: flex; align-items: center; gap: 12px; margin: 0; }
.daynav-pick input { font: 500 1rem var(--f-body); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }

/* ---------- Wochenbalken ---------- */
.week-bars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.wb { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; }
.wb-val { font-size: 0.85rem; min-height: 1.2em; color: var(--muted); }
.wb-track { width: 100%; max-width: 46px; height: 110px; background: var(--surface-2); border-radius: 6px; display: flex; align-items: flex-end; overflow: hidden; }
.wb-fill { width: 100%; background: var(--green); border-radius: 6px 6px 0 0; min-height: 0; transition: height .3s; }
.wb-fill.is-today { background: var(--yolk); }
.wb-day { font-weight: 600; font-size: 0.86rem; display: flex; flex-direction: column; align-items: center; line-height: 1.2; }
.wb-day small { font-weight: 400; color: var(--muted); }
.wb:hover .wb-track { outline: 1px solid var(--line); }

/* ---------- Anmeldung ---------- */
.auth-card { max-width: 400px; width: 100%; margin: 6vh auto 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.auth-card .lead { margin: 0; color: var(--muted); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* =========================================================
   Stempeluhr (Tablet)
   ========================================================= */
body.kiosk { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.k-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: calc(14px + env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) 14px max(20px, env(safe-area-inset-left, 0px));
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.k-time { display: flex; align-items: baseline; gap: 14px; }
#k-clock { font-size: 2.2rem; font-weight: 500; letter-spacing: -0.02em; }
#k-date { color: var(--muted); font-weight: 500; }
.k-count { color: var(--muted); }
.k-count strong { color: var(--ink); font-family: var(--f-display); font-size: 1.3rem; }
@media (max-width: 640px) { .k-time { order: 3; flex-basis: 100%; } }

.k-main { flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 24px max(20px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px)); }
.k-hint { margin: 0 0 16px; color: var(--muted); font-size: 1.05rem; }
.k-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.k-person {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px; text-align: left;
  padding: 18px; min-height: 150px; border-radius: 14px; cursor: pointer;
  background: var(--surface); border: 2px solid var(--line); color: var(--ink); font: inherit;
  transition: transform .08s, border-color .15s;
}
.k-person:active { transform: scale(0.97); }
.k-person.is-in { border-color: var(--green); background: var(--green-soft); }
.k-person:disabled { opacity: 0.45; cursor: not-allowed; }
.k-person .avatar { width: 48px; height: 48px; font-size: 1.3rem; }
.k-name { font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; line-height: 1.2; }
.k-state { color: var(--muted); font-size: 0.95rem; display: flex; align-items: center; gap: 7px; margin-top: auto; }
.k-person.is-in .k-state { color: var(--green); font-weight: 600; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); display: inline-block; }

.k-overlay {
  position: fixed; inset: 0; z-index: 50;
  background: color-mix(in srgb, var(--ink) 45%, transparent);
  display: grid; place-items: center; overflow-y: auto;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}
.k-overlay[hidden] { display: none; }
.k-sheet { position: relative; width: 100%; max-width: 440px; background: var(--surface); border-radius: 20px; padding: 46px 24px 24px; text-align: center; }
.k-sheet section { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.k-sheet h2 { font-size: 1.6rem; }
.k-close { position: absolute; top: 14px; right: 14px; background: none; border: 0; color: var(--muted); font: 600 0.95rem var(--f-body); cursor: pointer; padding: 6px; }
.avatar.big { width: 64px; height: 64px; font-size: 1.7rem; }
.k-sub { margin: 0; color: var(--muted); font-size: 1.05rem; }
.k-label { margin: 10px 0 0; font-weight: 600; }
.k-err { min-height: 1.4em; margin: 0; color: var(--red); font-weight: 600; }
.k-note { min-height: 1.3em; margin: 0; color: var(--muted); font-size: 0.9rem; }

.pin-dots { display: flex; gap: 16px; margin: 8px 0 2px; }
.pin-dots i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--muted); }
.pin-dots i.on { background: var(--ink); border-color: var(--ink); }
.pin-dots.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }

.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; max-width: 300px; }
.keypad button {
  height: clamp(52px, 9vh, 66px); border-radius: 14px; border: 1px solid var(--line); background: var(--bg);
  color: var(--ink); font: 500 1.6rem var(--f-mono); cursor: pointer;
}
.keypad button:active { background: var(--surface-2); }

.pause-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pause-chips button { padding: 12px 16px; border-radius: 99px; border: 2px solid var(--line); background: var(--bg); color: var(--ink); font: 600 1rem var(--f-body); cursor: pointer; }
.pause-chips button.on { border-color: var(--ink); background: var(--ink); color: var(--bg); }

.k-big { width: 100%; margin-top: 12px; padding: 22px; border: 0; border-radius: 16px; font: 700 1.5rem var(--f-display); cursor: pointer; }
.k-go { background: var(--green); color: #fff; }
.k-stop { background: var(--yolk); color: var(--yolk-ink); }
.k-check { width: 72px; height: 72px; border-radius: 50%; background: var(--green); position: relative; }
.k-check::after { content: ""; position: absolute; left: 26px; top: 16px; width: 16px; height: 30px; border: solid #fff; border-width: 0 5px 5px 0; transform: rotate(45deg); }
.k-check.is-err { background: var(--red); }
.k-check.is-err::after { left: 33px; top: 14px; width: 0; height: 36px; border-width: 0 6px 0 0; transform: none; }

.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }

/* =========================================================
   Zeiten
   ========================================================= */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.table th { text-align: left; font-size: 0.76rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-family: var(--f-mono); }
.table a { text-decoration: none; }
.table a:hover strong { text-decoration: underline; }
.table tr.is-sel td { background: var(--yolk-soft); }
.person-cell { display: flex; align-items: center; gap: 10px; }
.person-cell .avatar { width: 28px; height: 28px; font-size: 0.8rem; }
.monthnav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.monthnav strong { font-family: var(--f-display); font-size: 1.1rem; min-width: 9.5em; text-align: center; }

/* =========================================================
   Dienstplan
   ========================================================= */
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 1000px) { .week { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .week { grid-template-columns: minmax(0, 1fr); } }
.day { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; min-width: 0; }
.day.is-today { border-color: var(--yolk); box-shadow: 0 0 0 2px var(--yolk-soft); }
.day-head { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.day-head .today-tag { font-size: 0.7rem; padding: 1px 7px; }
.day-body { display: flex; flex-direction: column; gap: 6px; padding: 8px; flex: 1; }
.shift {
  display: flex; flex-direction: column; gap: 1px; text-decoration: none;
  padding: 7px 9px 7px 11px; border-radius: 7px; background: var(--bg);
  border-left: 4px solid var(--c); min-width: 0;
}
.shift:hover { background: var(--surface-2); }
.shift-name { font-weight: 600; font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shift-time { font-size: 0.82rem; color: var(--muted); }
.shift-note { font-size: 0.78rem; color: var(--warn); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shift-add { margin-top: auto; text-align: center; padding: 7px; border-radius: 7px; border: 1px dashed var(--line); color: var(--muted); font-size: 0.85rem; font-weight: 600; text-decoration: none; }
.shift-add:hover { border-color: var(--green); color: var(--green); }
@media (max-width: 640px) {
  .day-body { flex-direction: row; flex-wrap: wrap; }
  .shift { flex: 1 1 140px; }
  .shift-add { flex: 1 1 100%; }
}
.presets { display: flex; flex-wrap: wrap; gap: 8px; }
.presets .mono { color: var(--muted); font-weight: 500; margin-left: 4px; }
.hours { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hours li { display: grid; grid-template-columns: minmax(120px, 200px) minmax(0, 1fr) 70px; align-items: center; gap: 12px; }
.hours-bar { height: 10px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.hours-bar span { display: block; height: 100%; border-radius: 99px; }
.hours-num { text-align: right; font-size: 0.9rem; }
@media (max-width: 480px) { .hours li { grid-template-columns: minmax(0, 1fr) 70px; } .hours-bar { grid-column: 1 / -1; grid-row: 2; } }
.hours-num.is-over { color: var(--red); font-weight: 600; }

/* =========================================================
   Reservierungen: Gesamtansicht
   ========================================================= */
.viewtabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 10px; align-self: flex-start; max-width: 100%; overflow-x: auto; }
.viewtabs a { padding: 8px 14px; border-radius: 7px; text-decoration: none; font-weight: 600; font-size: 0.92rem; color: var(--muted); white-space: nowrap; }
.viewtabs a.is-active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filters select, .filters input[type=search] { font: 400 0.95rem var(--f-body); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; min-width: 0; }
.filters input[type=search] { flex: 1 1 220px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: var(--surface); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; padding: 9px 14px; font-weight: 600; font-size: 0.9rem; color: var(--muted); cursor: pointer; }
.seg input:checked + span { background: var(--ink); color: var(--bg); }
.seg input:focus-visible + span { outline: 2px solid var(--yolk); outline-offset: -2px; }
.res-group + .res-group { margin-top: 18px; }
.res-group-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; text-decoration: none; padding: 8px 0; border-bottom: 2px solid var(--ink); margin-bottom: 4px; }
.res-group-head:hover strong { text-decoration: underline; }
.res-group-head .muted { margin-left: auto; }
.res-group.is-today .res-group-head { border-color: var(--yolk); }
.res-group .res-row:first-child { border-top: 0; padding-top: 8px; }

/* =========================================================
   Anfragen & WhatsApp
   ========================================================= */
.nav-badge { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; margin-left: 6px; border-radius: 99px; background: var(--yolk); color: var(--yolk-ink); font-size: 0.72rem; font-weight: 700; vertical-align: 1px; }
.panel-anfragen { border-color: var(--yolk); background: linear-gradient(var(--yolk-soft), var(--yolk-soft)) top / 100% 4px no-repeat, var(--surface); }
.res-time small { display: block; font-family: var(--f-body); font-size: 0.74rem; color: var(--muted); font-weight: 500; }
.chip-go { background: var(--green); border-color: var(--green); color: #fff; }
.chip-go:hover { color: #fff; filter: brightness(1.08); }
.chip-wa { border-color: var(--green); color: var(--green); background: var(--green-soft); }
.chip-quiet { border-color: transparent; color: var(--muted); background: transparent; text-decoration: underline; text-underline-offset: 3px; padding-inline: 6px; }
.pill-angefragt, .pill-offen { background: var(--yolk-soft); color: var(--yolk-ink); }
.pill-abgelehnt { background: var(--red-soft); color: var(--red); }
.status-abgelehnt .res-main strong, .status-abgelehnt .res-time { text-decoration: line-through; color: var(--muted); }
.res-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 3px; }
.tag { font-size: 0.72rem; font-weight: 600; padding: 1px 7px; border-radius: 5px; background: var(--surface-2); color: var(--muted); }
.tag-wa { background: var(--green-soft); color: var(--green); }

/* =========================================================
   Gästeseite: Online-Reservierung
   ========================================================= */
body.guest { --bg: #F3EEE4; --surface-2: #EAE3D6; --line: #DDD4C4; }
@media (prefers-color-scheme: dark) { body.guest { --bg: #17140F; --surface-2: #2A251D; --line: #3A3328; } }
body.guest.is-embed { background: transparent; }
.g-wrap { max-width: 680px; margin: 0 auto; padding-block: 28px 48px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); display: flex; flex-direction: column; gap: 18px; }
.is-embed .g-wrap { padding-block: 0; max-width: none; }
.g-head { display: flex; flex-direction: column; gap: 2px; }
.g-head .brand { font-size: 1.4rem; }
.g-sub { color: var(--muted); font-size: 0.92rem; padding-left: 31px; }
.g-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(18px, 4vw, 32px); display: flex; flex-direction: column; gap: 16px; }
.g-card h1 { font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.3rem); }
.g-lead { margin: -6px 0 0; color: var(--muted); font-size: 1.05rem; max-width: 52ch; }
.g-form { gap: 16px; }
.g-row { display: grid; grid-template-columns: 1.3fr 1fr 0.8fr; gap: 12px; }
.g-row-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .g-row, .g-row-2 { grid-template-columns: minmax(0, 1fr); } }
.g-form textarea { font: 400 1rem var(--f-body); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; width: 100%; resize: vertical; }
.g-form textarea:focus { outline: none; border-color: var(--yolk); box-shadow: 0 0 0 3px var(--yolk-soft); }
.g-wishes { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.g-wishes legend { font-size: 0.85rem; font-weight: 600; color: var(--muted); padding: 0; margin-bottom: 6px; }
.g-chip { position: relative; }
.g-chip input { position: absolute; opacity: 0; }
.g-chip span { display: inline-block; padding: 9px 15px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-weight: 500; cursor: pointer; }
.g-chip input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.g-chip input:focus-visible + span { outline: 2px solid var(--yolk); outline-offset: 2px; }
.form label.g-consent { align-items: flex-start; font-size: 0.88rem; color: var(--muted); font-weight: 400; line-height: 1.45; }
.g-consent input { margin-top: 3px; flex: none; }
.g-consent a { color: var(--ink); }
.g-submit { padding: 16px; font-size: 1.05rem; }
.g-submit:disabled { opacity: 0.45; cursor: not-allowed; }
.g-group-note { background: var(--yolk-soft); color: var(--yolk-ink); padding: 12px 14px; border-radius: 10px; }
.g-group-note a { color: inherit; }
.g-info { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 0.88rem; color: var(--muted); }
.g-info div { display: flex; flex-direction: column; gap: 2px; }
.g-info strong { color: var(--ink); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }
@media (max-width: 560px) { .g-info { grid-template-columns: minmax(0, 1fr); } }
.g-done { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.g-done p { margin: 0; max-width: 52ch; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.chip-storno { border-color: var(--red); color: var(--red); background: var(--red-soft); }

/* =========================================================
   Mitarbeiter-Bereich, Abwesenheiten, Teilen
   ========================================================= */
.tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 720px) { .tiles-3 { grid-template-columns: minmax(0, 1fr); } }
.panel-warn { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.flash-link { display: block; text-decoration: none; }
.flash-link:hover { filter: brightness(0.97); }
.team-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.team-actions form { margin: 0; }
@media (max-width: 520px) { .team-actions { order: 5; margin-left: 44px; } }

/* Meine Schichten */
.my-shifts { list-style: none; margin: 0; padding: 0; }
.my-shifts li { display: grid; grid-template-columns: 70px 110px minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.my-shifts li:first-child { border-top: 0; }
.my-shifts li.is-today { background: var(--yolk-soft); margin-inline: -10px; padding-inline: 10px; border-radius: 8px; }
.ms-day { display: flex; flex-direction: column; line-height: 1.2; font-size: 0.9rem; color: var(--muted); }
.ms-day strong { color: var(--ink); }
.ms-time { font-size: 1rem; }
.ms-note { font-size: 0.86rem; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
@media (max-width: 420px) { .my-shifts li { grid-template-columns: 56px minmax(0, 1fr); } .ms-note { grid-column: 2; } }

/* Abwesenheiten */
.seg-full { display: flex; width: 100%; }
.seg-full label { flex: 1; }
.seg-full span { text-align: center; padding-inline: 8px; }
.abw-form { margin-bottom: 14px; }
.abw-list { list-style: none; margin: 0; padding: 0; }
.abw-list li { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.abw-list li:first-child { border-top: 0; }
.abw-list form { margin: 0; }
.abw-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.abw-main small { color: var(--muted); }
.abw-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--muted); }
.abw-dot.abw-urlaub { background: var(--green); }
.abw-dot.abw-wunschfrei { background: var(--yolk); }
.abw-dot.abw-krank { background: var(--red); }
.pill-abw-beantragt { background: var(--yolk-soft); color: var(--yolk-ink); }
.pill-abw-genehmigt { background: var(--green-soft); color: var(--green); }
.pill-abw-abgelehnt { background: var(--red-soft); color: var(--red); }
.past { margin-top: 12px; }
.past summary { cursor: pointer; color: var(--muted); font-weight: 600; font-size: 0.9rem; }
.abw-today { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 10px; }

/* Dienstplan: Abwesenheiten und eigene Schichten */
.abw-chip { display: block; font-size: 0.78rem; font-weight: 600; padding: 4px 8px; border-radius: 6px; border: 1px dashed var(--line); color: var(--muted); background: transparent; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.abw-today .abw-chip { display: inline-block; }
.abw-chip.abw-krank { border-color: var(--red); color: var(--red); }
.abw-chip.abw-urlaub { border-color: var(--green); color: var(--green); }
.abw-chip.abw-wunschfrei { border-color: var(--yolk); color: var(--warn); }
.shift.is-mine { background: var(--yolk-soft); box-shadow: inset 0 0 0 1px var(--yolk); }
.shift.is-conflict { box-shadow: inset 0 0 0 2px var(--red); }
.shift-warn { font-size: 0.74rem; font-weight: 700; color: var(--red); }
.day-empty { font-size: 0.82rem; color: var(--muted); padding: 6px 2px; }

/* Teilen */
.share-text { white-space: pre-wrap; font: 0.9rem/1.5 var(--f-body); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin: 0 0 12px; max-height: 340px; overflow: auto; }
.print-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; font-family: var(--f-display); font-size: 1.1rem; }
.plan-table td, .plan-table th { font-size: 0.86rem; }
.plan-table td.mono { line-height: 1.4; }
@media print {
  .topbar, .no-print, .flash { display: none !important; }
  body { background: #fff; color: #000; }
  .wrap { padding: 0; max-width: none; }
  .print-sheet { border: 0; padding: 0; }
  .table-wrap { overflow: visible; }
  .plan-table th, .plan-table td { border-bottom: 1px solid #bbb; padding: 6px; }
  .avatar { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* =========================================================
   Küche & Hygiene
   ========================================================= */
.txt-warn { color: var(--warn); }
.txt-bad { color: var(--red); font-weight: 600; }
.print-only { display: none; }
.temp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.temp-card { border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--surface); min-width: 0; }
.temp-card.is-done { border-color: var(--green); }
.temp-head { display: flex; flex-direction: column; gap: 1px; }
.temp-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.temp-slot { background: var(--bg); border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; gap: 1px; }
.temp-slot.ok { background: var(--green-soft); }
.temp-slot.bad { background: var(--red-soft); }
.ts-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.ts-val { font-size: 1.15rem; }
.temp-slot.ok .ts-val { color: var(--green); }
.temp-slot.bad .ts-val { color: var(--red); }
.ts-who { font-size: 0.78rem; color: var(--muted); }
.temp-form { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.temp-input { display: flex; align-items: center; gap: 8px; }
.temp-input input { flex: 1; min-width: 0; font: 500 1.15rem var(--f-mono); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; }
.temp-input input:focus { outline: none; border-color: var(--yolk); box-shadow: 0 0 0 3px var(--yolk-soft); }
.temp-input input.is-bad { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.temp-input > span { color: var(--muted); }
.temp-action { display: flex; flex-direction: column; gap: 5px; font-size: 0.85rem; font-weight: 600; color: var(--red); }
.temp-action input { font: 400 0.95rem var(--f-body); color: var(--ink); background: var(--bg); border: 1px solid var(--red); border-radius: 8px; padding: 9px 12px; }
.cl-bar { height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin: -4px 0 8px; }
.cl-bar span { display: block; height: 100%; background: var(--green); border-radius: 99px; transition: width .2s; }
.cl-list { list-style: none; margin: 0; padding: 0; }
.cl-list li + li { border-top: 1px solid var(--line); }
.cl-form { margin: 0; }
.cl-item { display: flex; align-items: center; gap: 12px; padding: 12px 2px; cursor: pointer; }
.cl-item input { width: 24px; height: 24px; flex: none; accent-color: var(--green); }
.cl-text { flex: 1; min-width: 0; }
.cl-item.is-done .cl-text { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line); }
.cl-who { font-size: 0.8rem; color: var(--muted); white-space: nowrap; }
.hyg-sum { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hyg-sum li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 8px; background: var(--bg); font-size: 0.92rem; }
.hyg-sum li.ok span { color: var(--green); font-weight: 600; }
.hyg-sum li.warn span { color: var(--warn); font-weight: 600; }
.hyg-sum li.bad { background: var(--red-soft); }
.hyg-sum li.bad span { color: var(--red); font-weight: 600; }
/* Tablet-Anmeldung */
.hyg-pin { max-width: 640px; }
.hyg-people { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.hyg-people legend { font-size: 0.85rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; padding: 0; }
.hyg-person { position: relative; }
.hyg-person input { position: absolute; opacity: 0; }
.hyg-person span { display: flex; align-items: center; gap: 10px; padding: 12px; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 600; color: var(--ink); }
.hyg-person i { font-style: normal; }
.hyg-person input:checked + span { border-color: var(--ink); background: var(--yolk-soft); }
.hyg-person input:focus-visible + span { outline: 2px solid var(--yolk); outline-offset: 2px; }
.k-right { display: flex; align-items: center; gap: 16px; }
.k-link { font-weight: 600; text-decoration: none; padding: 8px 14px; border: 1px solid var(--line); border-radius: 99px; }
/* Verwaltung */
.dev-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.dev-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; padding: 8px; border: 1px solid var(--line); border-radius: 8px; }
.dev-row.is-inactive { opacity: 0.55; }
.dev-row > input { flex: 1 1 180px; min-width: 0; font: 500 0.95rem var(--f-body); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.dev-num { display: flex; align-items: center; gap: 5px; font-size: 0.82rem; color: var(--muted); }
.dev-num input { width: 70px; font: 500 0.95rem var(--f-mono); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px; }
.dev-row .check { display: flex; gap: 6px; align-items: center; font-size: 0.88rem; }
.dev-new { border-top: 1px dashed var(--line); padding-top: 14px; }
.dev-new h3, .cl-new h3 { margin: 0; font-size: 1rem; font-family: var(--f-display); }
.cl-edit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.cl-edit { border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.cl-edit.is-inactive { opacity: 0.55; }
.cl-new { border-style: dashed; }
.form textarea { font: 400 0.95rem/1.5 var(--f-body); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; width: 100%; resize: vertical; }
.report-table td.cell-wrap { white-space: normal; min-width: 160px; }
@media print {
  .print-only { display: flex; }
  .report-block { break-inside: avoid; border: 0; padding: 0; margin-bottom: 16px; }
  .tiles { display: none; }
  .txt-bad, .txt-warn { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* =========================================================
   Speisekarte
   ========================================================= */
.kat-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.kat-nav a { white-space: nowrap; text-decoration: none; font-size: 0.86rem; font-weight: 600; padding: 6px 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); }
.kat-nav a.is-off { opacity: 0.5; }
.menu-kat.is-inactive { opacity: 0.7; }
.mi-list { list-style: none; margin: 0; padding: 0; }
.mi { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.mi:first-child { border-top: 0; }
.mi form { margin: 0; }
.mi-main { flex: 1 1 140px; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.mi-main small { color: var(--muted); font-size: 0.82rem; }
.mi.is-out .mi-main strong { text-decoration: line-through; color: var(--muted); }
.mi.is-hidden { opacity: 0.55; }
.mi-out { min-width: 92px; }
.mi-out[aria-pressed="true"] { background: var(--red-soft); border-color: var(--red); color: var(--red); }
.mi-out[aria-pressed="false"] { color: var(--green); border-color: var(--green-soft); }
.mi-price { display: flex; align-items: center; gap: 6px; }
.mi-price input { width: 82px; text-align: right; font: 500 0.95rem var(--f-mono); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; }
.mi-price input:focus { outline: none; border-color: var(--yolk); box-shadow: 0 0 0 3px var(--yolk-soft); }
.mi-price span { color: var(--muted); }
.mi-p { font-size: 0.95rem; }
.mi-extras { margin: 10px 0 0; }
.al-grid { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.al-grid legend { font-size: 0.85rem; font-weight: 600; color: var(--muted); padding: 0; margin-bottom: 6px; }
.al-chip { position: relative; }
.al-chip input { position: absolute; opacity: 0; }
.al-chip span { display: inline-block; padding: 6px 10px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg); font-size: 0.84rem; color: var(--ink); cursor: pointer; font-weight: 500; }
.al-chip b { font-family: var(--f-mono); font-weight: 500; color: var(--muted); }
.al-chip input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.al-chip input:checked + span b { color: var(--bg); }
.al-chip input:focus-visible + span { outline: 2px solid var(--yolk); outline-offset: 2px; }
.i-photo { grid-column: 1 / -1; max-width: 220px; border-radius: 10px; }
@media (max-width: 520px) { .mi-price { margin-left: 104px; } }

/* ---------- Umsatz ---------- */
:root { --chart: #1B8262; --chart-hi: #C47F0A; }
@media (prefers-color-scheme: dark) { :root { --chart: #3E9C7E; --chart-hi: #B87D12; } }
.sync-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 0.88rem; margin: -6px 0 2px; }
.sync-line form { margin: 0; }
.tiles-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .tiles-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .tiles-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile-link { text-decoration: none; color: inherit; }
.tile-link:hover { border-color: var(--muted); }
.trend { font-family: var(--f-mono); font-weight: 500; }
.trend.up { color: var(--green); }
.trend.down { color: var(--red); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }

.chart { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 180px auto; column-gap: 8px; row-gap: 6px; }
.chart-y { position: relative; min-width: 34px; }
.chart-y span { position: absolute; right: 0; transform: translateY(50%); font: 500 0.72rem var(--f-mono); color: var(--muted); white-space: nowrap; }
.chart-plot { position: relative; border-bottom: 1px solid var(--line); }
.chart-grid { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid var(--line); opacity: 0.7; }
.chart-cols { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 2px; }
.chart-col { position: relative; display: flex; align-items: flex-end; justify-content: center; height: 100%; cursor: pointer; outline: none; border-radius: 4px; }
.chart-col:hover, .chart-col.is-on, .chart-col:focus-visible { background: var(--surface-2); }
.chart-col:focus-visible { box-shadow: 0 0 0 2px var(--yolk); }
.chart-bar { width: 100%; max-width: 24px; background: var(--chart); border-radius: 4px 4px 0 0; min-height: 0; }
.chart-col.is-hi .chart-bar { background: var(--chart-hi); }
.chart-x { grid-column: 2; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 2px; }
.chart-x span { text-align: center; font: 500 0.72rem var(--f-mono); color: var(--muted); white-space: nowrap; overflow: visible; }
.chart-x span.is-hi { color: var(--ink); font-weight: 600; }
.chart-note { margin: 10px 0 0; }
.chart-tip { position: fixed; z-index: 50; pointer-events: none; background: var(--ink); color: var(--bg); border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; gap: 1px; font-size: 0.84rem; max-width: 240px; box-shadow: 0 6px 20px rgb(0 0 0 / 0.18); }
.chart-tip strong { font: 500 1rem var(--f-mono); }
.chart-tip span:first-child { font-weight: 600; }
.chart-tip span:last-child { opacity: 0.8; }

.pay-split { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; }
@media (max-width: 720px) { .pay-split { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pay-split div { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 8px; background: var(--surface-2); min-width: 0; }
.pay-split div.is-sum { background: var(--ink); color: var(--bg); }
.pay-split dt { font-size: 0.8rem; font-weight: 600; }
.pay-split dd { margin: 0; font-size: 1.15rem; }
.pay-split small { font-size: 0.8rem; opacity: 0.75; }
.table-num th:not(:first-child), .table-num td:not(:first-child) { text-align: right; }
.table-num td { font-variant-numeric: tabular-nums; }
.table-num tfoot th { border-top: 1px solid var(--line); color: var(--ink); text-transform: none; letter-spacing: 0; font-size: 0.92rem; }
.table tr.is-today td { background: var(--yolk-soft); }

/* ---------- Dienstplan: Barista | Service ---------- */
.field { display: flex; flex-direction: column; gap: 5px; }
.field-label { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.form .seg label { display: block; font-size: inherit; color: inherit; }
.roster { display: flex; flex-direction: column; gap: 8px; }
.roster-cols { display: grid; grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1fr); gap: 10px; padding: 0 12px; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.rday { display: grid; grid-template-columns: 150px minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; }
.rday.is-today { border-color: var(--yolk); box-shadow: 0 0 0 2px var(--yolk-soft); }
.rday-head { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px; border-right: 1px solid var(--line); min-width: 0; }
.rday-date { font-size: 0.95rem; }
.rday-head .today-tag { font-size: 0.7rem; padding: 1px 7px; }
.rday-head .abw-chip { max-width: 100%; }
.rday-body { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px 8px 10px; min-width: 0; }
.rday-labels { display: none; }
.rrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.rrow.is-both { grid-template-columns: minmax(0, 1fr); }
.rcell { min-width: 0; display: flex; flex-direction: column; }
.rcell > * { flex: 1; }
.shift.is-both { background: repeating-linear-gradient(135deg, var(--bg) 0 10px, var(--surface-2) 10px 11px); }
.shift-both { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.03em; color: var(--muted); }
.shift-slot { display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 6px; border-radius: 7px; border: 1px dashed var(--line); color: var(--muted); font-size: 0.82rem; font-weight: 600; text-decoration: none; text-align: center; }
a.shift-slot:hover { border-color: var(--green); color: var(--green); }
.shift-slot.is-empty { border-color: transparent; background: var(--bg); color: var(--line); }
.rrow-add .shift-slot { min-height: 34px; }
.rrow + .rrow-add { opacity: 0.75; }
.rrow-add:hover { opacity: 1; }
.rday-body .day-empty { padding: 8px 2px; }
@media (max-width: 720px) {
  .roster-cols { display: none; }
  .rday { grid-template-columns: minmax(0, 1fr); }
  .rday-head { flex-direction: row; flex-wrap: wrap; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 12px; }
  .rday-labels { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 0 2px; }
  .rrow { gap: 8px; }
  .rday-body { padding: 8px; }
}
.plan-bs th[scope=row] { vertical-align: top; white-space: nowrap; color: var(--ink); text-transform: none; letter-spacing: 0; font-size: 0.88rem; }
.plan-bs th[scope=row] small { display: block; font-weight: 500; color: var(--muted); }
.plan-bs tr.day-start > * { border-top: 2px solid var(--line); }
.plan-bs td.both { background: var(--surface-2); }
@media print { .plan-bs td.both { background: #eee; -webkit-print-color-adjust: exact; print-color-adjust: exact; } .plan-bs tr.day-start > * { border-top: 2px solid #888; } }

/* ---------- Rezepte ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.link-plain { color: inherit; text-decoration: none; }
.link-plain:hover { text-decoration: underline; }
.kiosk-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.recipe-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.search { flex: 1 1 260px; max-width: 380px; }
.search input { width: 100%; font: 400 1rem var(--f-body); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.search input:focus { outline: none; border-color: var(--yolk); box-shadow: 0 0 0 3px var(--yolk-soft); }
.recipe-art { display: flex; flex-direction: column; gap: 22px; }
.recipe-cat h2 { margin: 0 0 10px; font-size: 1.05rem; }
.recipe-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.rcard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none; color: inherit; min-width: 0; }
.rcard:hover { border-color: var(--muted); }
.rcard.is-hidden { opacity: 0.6; }
.rcard-img { aspect-ratio: 4 / 3; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; }
.rcard-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rcard-img > span { font: 700 2.4rem var(--f-display); color: var(--muted); opacity: 0.5; }
.rcard-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.rcard-body strong { font-size: 1rem; }
.rcard-body small { color: var(--muted); font-size: 0.82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
@media (max-width: 520px) { .recipe-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

.recipe { display: flex; flex-direction: column; gap: 20px; }
.recipe-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 860px) { .recipe-grid { grid-template-columns: minmax(0, 1fr); } }
.recipe-photo { margin: 0; border-radius: var(--r); overflow: hidden; background: var(--surface-2); position: relative; }
.recipe-photo img { display: block; width: 100%; max-height: 560px; object-fit: cover; }
.recipe-photo figcaption { position: absolute; left: 10px; bottom: 10px; background: rgb(0 0 0 / 0.55); color: #fff; font-size: 0.78rem; font-weight: 600; padding: 4px 9px; border-radius: 99px; }
.recipe-photo.is-empty { aspect-ratio: 4 / 3; display: grid; place-items: center; color: var(--muted); padding: 20px; text-align: center; border: 1px dashed var(--line); }
.recipe-serve { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: var(--r); background: var(--yolk-soft); }
.recipe-serve strong { font-size: 1.1rem; }
.recipe-k { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--warn); }
.seg-sm span { padding: 6px 10px; font-size: 0.85rem; }
.zutaten { width: 100%; border-collapse: collapse; font-size: 1.05rem; }
.zutaten td { padding: 9px 0; border-top: 1px solid var(--line); vertical-align: top; }
.zutaten tr:first-child td { border-top: 0; }
.zutaten td.menge { width: 34%; padding-right: 12px; font-weight: 500; white-space: nowrap; }
.faktor-hint { margin: 8px 0 0; }
.recipe-al { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.recipe-al .pill:not(.pill-ok) { background: var(--surface-2); color: var(--ink); }
.steps-big { margin: 0; padding: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 12px; }
.steps-big li { counter-increment: s; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 1.05rem; line-height: 1.45; }
.steps-big li::before { content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--bg); font: 600 0.9rem var(--f-mono); }
.recipe-text { margin: 0; font-size: 1.02rem; line-height: 1.5; }
.panel-tip { border-color: var(--yolk); background: var(--yolk-soft); }

.zt-rows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.zt-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) 40px; gap: 8px; }
.zt-row input { font: 400 1rem var(--f-body); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; min-width: 0; }
.zt-row input:first-child { font-family: var(--f-mono); }
.zt-row input:focus { outline: none; border-color: var(--yolk); box-shadow: 0 0 0 3px var(--yolk-soft); }
@media (max-width: 520px) { .zt-row { grid-template-columns: 92px minmax(0, 1fr) 36px; } }
.icon-btn { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; color: var(--muted); font-size: 1.2rem; cursor: pointer; }
.icon-btn:hover { color: var(--red); border-color: var(--red); }
.photo-up { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 560px) { .photo-up { grid-template-columns: minmax(0, 1fr); } }
.photo-prev { aspect-ratio: 4 / 3; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; color: var(--muted); font-size: 0.9rem; }
.photo-prev img { width: 100%; height: 100%; object-fit: cover; }
.file-btn { position: relative; overflow: hidden; align-self: flex-start; }
.form label.file-btn { flex-direction: row; color: var(--ink); font-size: 0.95rem; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.recipe-form .panel { display: flex; flex-direction: column; gap: 14px; }
.recipe-form .panel.form-grid { display: grid; }
#zt-add { align-self: flex-start; }
.kiosk .rcard-body strong, .kiosk .zutaten { font-size: 1.15rem; }

.site-ok { margin: -6px 0 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 0.88rem; color: var(--muted); }
.dot-ok { width: 9px; height: 9px; border-radius: 50%; background: var(--green); flex: none; }
.site-check .steps { margin: 12px 0; }

/* ---------- Reservierungen als Kacheln ---------- */
.rk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.rk-grid-1 { grid-template-columns: minmax(0, 1fr); }
.rk {
  --rk: var(--green);
  display: flex; flex-direction: column; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--rk);
  border-radius: var(--r); box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
}
.rk-angefragt { --rk: var(--yolk); }
.rk-angekommen { --rk: var(--line); }
.rk-storniert, .rk-abgelehnt { --rk: var(--red); background: var(--bg); }
.rk.is-late { --rk: var(--warn); }
.rk-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 14px 0; }
.rk-time { font-size: 1.35rem; font-weight: 500; letter-spacing: -0.01em; }
.rk-date { font-size: 0.86rem; font-weight: 600; color: var(--muted); }
.rk-pills { margin-left: auto; display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.rk-body { display: flex; flex-direction: column; gap: 6px; padding: 8px 14px 12px; flex: 1; }
.rk-name { font: 700 1.12rem var(--f-display); text-decoration: none; color: var(--ink); overflow-wrap: anywhere; }
.rk-name:hover { text-decoration: underline; }
.rk-facts { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.92rem; color: var(--muted); }
.rk-facts strong { color: var(--ink); }
.rk-facts a { color: var(--muted); text-decoration: none; }
.rk-facts a:hover { color: var(--ink); text-decoration: underline; }
.rk-note { margin: 2px 0 0; padding: 7px 10px; border-radius: 7px; background: var(--warn-soft); color: var(--warn); font-size: 0.9rem; font-weight: 500; }
.rk-sub { font-size: 0.8rem; color: var(--muted); }
.rk-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); background: var(--bg); border-radius: 0 0 var(--r) 0; }
.rk-actions:empty { display: none; }
.rk-actions form { margin: 0; }
.rk-storniert .rk-name, .rk-abgelehnt .rk-name, .rk-storniert .rk-time, .rk-abgelehnt .rk-time { text-decoration: line-through; color: var(--muted); }
.rk-angekommen .rk-time { color: var(--green); }
.chip-del { border-color: var(--red); color: var(--red); background: var(--surface); margin-left: auto; }
.chip-del:hover { background: var(--red); color: #fff; }
.bulk-del { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; margin: 0 0 14px; }
.bulk-del .chip-del { margin-left: 0; }
.rk-weg .rk-grid { margin-top: 12px; }
.rk-weg .bulk-del { margin: 14px 0 0; }
.res-group .rk-grid { margin-top: 10px; }
.panel-anfragen .rk-grid { margin-top: 4px; }
@media (max-width: 520px) { .rk-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Dienstplan: Tabelle Küche / Barista / Service ---------- */
:root { --area-kueche: #8A4FA0; --area-barista: #86563F; --area-service: #2F6B8F; }
@media (prefers-color-scheme: dark) { :root { --area-kueche: #C79BD8; --area-barista: #D2A68C; --area-service: #8FC1DE; } }
.plan-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; }
.pt-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.pt { width: 100%; min-width: 940px; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.pt th, .pt td { border-left: 1px solid var(--line); border-top: 1px solid var(--line); padding: 8px; vertical-align: top; text-align: left; }
.pt thead th { border-top: 0; position: sticky; top: 0; background: var(--surface); padding: 10px 8px; }
.pt tr > :first-child { border-left: 0; }
.pt .pt-corner { width: 108px; }
.pt-person .pt-corner { width: 150px; }
.pt-person .pt-sum { width: 64px; text-align: right; }
.pt thead th { font-weight: 600; }
.pt-wt { font: 700 1rem var(--f-display); margin-right: 5px; }
.pt-dt { color: var(--muted); font-size: 0.86rem; }
.pt thead .today-tag { display: inline-block; margin-left: 6px; font-size: 0.68rem; padding: 1px 7px; }
.pt .is-today { background: color-mix(in srgb, var(--yolk-soft) 55%, transparent); }
.pt thead th.is-today { background: var(--yolk-soft); box-shadow: inset 0 3px 0 var(--yolk); }
.pt tbody th { background: var(--surface); position: sticky; left: 0; z-index: 1; }
.pt-area { display: inline-flex; align-items: center; gap: 7px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.pt-area::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--a, var(--muted)); flex: none; }
.pt-kueche { --a: var(--area-kueche); }
.pt-barista { --a: var(--area-barista); }
.pt-service { --a: var(--area-service); }
.pt-abw { --a: var(--line); }
.pt-row.pt-kueche td, .pt-row.pt-barista td, .pt-row.pt-service td { height: 64px; }
.pt td { display: table-cell; }
.pt td > * + * { margin-top: 5px; }
.pt-abw td .abw-chip { display: block; }

.sc { display: flex; align-items: flex-start; gap: 7px; padding: 6px 7px; border-radius: 8px; background: var(--bg); border-left: 3px solid var(--c); text-decoration: none; color: var(--ink); min-width: 0; }
a.sc:hover { background: var(--surface-2); }
.sc-av { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-size: 0.72rem; font-weight: 700; margin-top: 1px; }
.sc-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.sc-name { font-weight: 600; font-size: 0.86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-name em { font-style: normal; font-weight: 500; color: var(--muted); }
.sc-time { font-size: 0.76rem; color: var(--muted); }
.sc-area { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.03em; color: var(--a, var(--muted)); }
.sc-area-kueche { --a: var(--area-kueche); } .sc-area-barista { --a: var(--area-barista); } .sc-area-service { --a: var(--area-service); }
.sc-area-beides { color: var(--muted); }
.sc-note { font-size: 0.7rem; color: var(--warn); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-warn { font-size: 0.7rem; font-weight: 700; color: var(--red); }
.sc.is-mine { background: var(--yolk-soft); box-shadow: inset 0 0 0 1px var(--yolk); }
.sc.is-conflict { box-shadow: inset 0 0 0 2px var(--red); }
.sc.is-both { background-image: repeating-linear-gradient(135deg, transparent 0 8px, var(--surface-2) 8px 9px); }
.sc-add { display: flex; align-items: center; justify-content: center; min-height: 26px; border: 1px dashed var(--line); border-radius: 7px; color: var(--muted); text-decoration: none; font-weight: 700; font-size: 0.85rem; opacity: 0.7; }
.sc-add:hover { opacity: 1; border-color: var(--green); color: var(--green); }
.sc-add-quiet { opacity: 0; min-height: 36px; }
td:hover > .sc-add-quiet, .sc-add-quiet:focus-visible { opacity: 0.7; }
@media (hover: none) { .sc-add-quiet { opacity: 0.45; } }
.sc-none { color: var(--line); font-weight: 600; }

.ps { display: flex; flex-direction: column; gap: 1px; padding: 6px 8px; border-radius: 8px; background: var(--bg); border-left: 3px solid var(--a, var(--muted)); text-decoration: none; color: var(--ink); font-size: 0.84rem; }
.ps .mono { font-weight: 500; }
a.ps:hover { background: var(--surface-2); }
.ps.ps-kueche { --a: var(--area-kueche); } .ps.ps-barista { --a: var(--area-barista); } .ps.ps-service { --a: var(--area-service); }
.ps.ps-beides { --a: var(--muted); background-image: repeating-linear-gradient(135deg, transparent 0 8px, var(--surface-2) 8px 9px); }
.ps.is-conflict { box-shadow: inset 0 0 0 2px var(--red); }
.pt-person tbody th { font-weight: 600; }
.pt-person tr.is-me th, .pt-person tr.is-me td { background: color-mix(in srgb, var(--yolk-soft) 60%, var(--surface)); }
.pt-person .sc-none { color: var(--muted); font-size: 0.8rem; font-weight: 500; opacity: 0.6; }

/* Handy: Tag für Tag */
.pt-mob { display: none; }
.pd-list { flex-direction: column; gap: 10px; }
.pd { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 4px 12px 10px; }
.pd.is-today { border-color: var(--yolk); box-shadow: 0 0 0 2px var(--yolk-soft); }
.pd-head { margin: 0; padding: 10px 0 8px; font-size: 1rem; display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--line); }
.pd-head .today-tag { margin-left: auto; font-size: 0.7rem; }
.pd-row { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); align-items: start; }
.pd-row:last-of-type { border-bottom: 0; }
.pd-row .pt-area { padding-top: 6px; font-size: 0.72rem; }
.pd-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; }
.pd-chips .sc-add { min-height: 36px; font-size: 0.8rem; }
.pd-abw { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 8px; }
.pd-abw .abw-chip { display: inline-block; }
@media (max-width: 760px) {
  .pt-desk { display: none; }
  .pt-mob { display: flex; }
}
@media print {
  .pt-desk { display: block !important; overflow: visible; border: 0; }
  .pt-mob, .sc-add, .plan-bar { display: none !important; }
  .pt { min-width: 0; font-size: 0.8rem; }
  .pt th, .pt td { border-color: #bbb; }
  .sc { background: #fff; padding: 3px 4px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .sc-av { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

.photo-adv summary { cursor: pointer; }
.photo-adv input { margin-top: 8px; }

/* Reservierungen für Mitarbeiter */
.day-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.day-strip a { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 4px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); min-width: 0; }
.day-strip a:hover { border-color: var(--muted); }
.day-strip a.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.day-strip strong { font-size: 0.9rem; }
.day-strip small { font-size: 0.74rem; opacity: 0.75; }
.day-strip .mono { font-size: 0.78rem; margin-top: 2px; }
@media (max-width: 420px) { .day-strip { gap: 4px; } .day-strip a { padding: 7px 2px; } .day-strip strong { font-size: 0.82rem; } }

/* ---------- Einkaufsliste ---------- */
.k-right { flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.pill-dringend { background: var(--red); color: #fff; font-family: var(--f-body); font-size: 0.74rem; vertical-align: middle; }
h1 .pill-dringend { font-size: 0.85rem; padding: 4px 11px; }
.ek-form { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: end; }
.ek-form label { display: flex; flex-direction: column; gap: 5px; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.ek-form input:not([type=checkbox]) { font: 400 1rem var(--f-body); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; width: 100%; min-width: 0; }
.ek-form input:focus { outline: none; border-color: var(--yolk); box-shadow: 0 0 0 3px var(--yolk-soft); }
.ek-opts { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; }
.ek-opts .btn { margin-left: auto; }
.ek-opts label.check { flex-direction: row; align-items: center; gap: 8px; color: var(--ink); font-weight: 500; }
.ek-urgent { position: relative; }
.ek-urgent input { position: absolute; opacity: 0; }
.ek-urgent span { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 99px; border: 1px solid var(--line); color: var(--ink); font-weight: 600; cursor: pointer; background: var(--surface); }
.ek-urgent span::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--red); }
.ek-urgent input:checked + span { background: var(--red); border-color: var(--red); color: #fff; }
.ek-urgent input:checked + span::before { background: #fff; border-color: #fff; }
.ek-urgent input:focus-visible + span { outline: 2px solid var(--yolk); outline-offset: 2px; }
@media (max-width: 640px) {
  .ek-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ek-form .ek-name { grid-column: 1 / -1; }
  .ek-opts .btn { margin-left: 0; width: 100%; }
}
.ek-std { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.ek-std p { margin: 0; }
.ek-std-group { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 8px; align-items: start; }
.ek-std-label { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); padding-top: 8px; }
@media (max-width: 640px) { .ek-std-group { grid-template-columns: minmax(0, 1fr); gap: 4px; } .ek-std-label { padding-top: 0; } }
.ek-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ek-chip { font: 600 0.9rem var(--f-body); padding: 8px 13px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; }
.ek-chip:hover { border-color: var(--green); }
.ek-chip.is-on { background: var(--green-soft); border-color: var(--green); color: var(--green); }
.ek-filter { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.ek-filter a { flex: none; padding: 7px 13px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.88rem; }
.ek-filter a span { color: var(--muted); font-weight: 500; margin-left: 3px; }
.ek-filter a.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.ek-filter a.is-active span { color: var(--bg); opacity: 0.7; }
.ek-list { list-style: none; margin: 0; padding: 0; }
.ek-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); transition: opacity .3s; }
.ek-item:first-child { border-top: 0; padding-top: 4px; }
.ek-item.is-done { opacity: 0.35; }
.ek-item.is-done strong { text-decoration: line-through; }
.ek-done .ek-item { grid-template-columns: minmax(0, 1fr) auto; }
.ek-done-form { margin: 0; }
.ek-check { width: 30px; height: 30px; border-radius: 8px; border: 2px solid var(--line); background: var(--surface); cursor: pointer; display: grid; place-items: center; margin-top: 1px; }
.ek-check:hover { border-color: var(--green); }
.ek-check:hover::after, .is-done .ek-check::after { content: ""; width: 9px; height: 15px; border: solid var(--green); border-width: 0 3px 3px 0; transform: translateY(-2px) rotate(45deg); }
.ek-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ek-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ek-line strong { font-size: 1.05rem; }
.ek-qty { font-size: 0.9rem; padding: 1px 8px; border-radius: 6px; background: var(--surface-2); }
.ek-stock { font-size: 0.9rem; color: var(--muted); }
.ek-stock strong { color: var(--ink); }
.is-urgent .ek-stock strong { color: var(--red); }
.ek-note { font-size: 0.86rem; color: var(--warn); }
.ek-meta { font-size: 0.78rem; color: var(--muted); }
.ek-item.is-urgent { box-shadow: inset 3px 0 0 var(--red); padding-left: 10px; margin-left: -10px; }
.ek-edit summary { cursor: pointer; font-size: 0.85rem; font-weight: 600; color: var(--muted); padding: 4px 0; list-style: none; }
.ek-edit summary::-webkit-details-marker { display: none; }
.ek-edit[open] { grid-column: 1 / -1; }
.ek-edit[open] summary { color: var(--ink); }
.ek-edit-form { margin: 8px 0; padding: 12px; border-radius: 10px; background: var(--bg); display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.ek-edit-form .form-actions { grid-column: 1 / -1; }
.ek-art-table td, .ek-art-table th { white-space: nowrap; }
.zs-grid { margin-top: 4px; }

/* ---------- Marketing ---------- */
.mk-count { display: inline-block; min-width: 1.6em; padding: 0 6px; margin-left: 4px; border-radius: 99px; background: var(--surface-2); color: var(--muted); font: 600 0.78rem/1.6 var(--f-body); text-align: center; }
.mk-count.is-hot { background: var(--yolk); color: var(--yolk-ink); }

/* Wochenkopf mit Leiste */
.mk-week { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 14px; }
.mk-week-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.mk-week-nav { display: flex; align-items: center; gap: 12px; }
.mk-week-nav div { display: flex; flex-direction: column; line-height: 1.25; }
.mk-week-nav strong { font-family: var(--f-display); font-size: 1.15rem; }
.mk-week-nav .muted { font-size: 0.86rem; }
.mk-arrow { width: 34px; height: 34px; display: grid; place-items: center; text-decoration: none; color: var(--ink); font-size: 1.25rem; line-height: 1; }
.mk-arrow:hover { color: var(--ink); border-color: var(--ink); background: var(--surface-2); }
.mk-plan-form { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 10px; background: var(--yolk-soft); }
.mk-plan-form[hidden] { display: none; }
.mk-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.mk-strip-day a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 8px; border-radius: 9px; background: var(--bg); text-decoration: none; min-height: 84px; }
.mk-strip-day a:hover { background: var(--surface-2); }
.mk-strip-day a[aria-disabled] { pointer-events: none; }
.mk-strip-day.is-today a { box-shadow: inset 0 0 0 2px var(--yolk); }
.mk-strip-day.is-past a { opacity: 0.6; }
.mk-strip-label { font-size: 0.78rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.mk-strip-label b { color: var(--ink); font-size: 0.95rem; letter-spacing: 0; }
.mk-strip-items { display: flex; flex-wrap: wrap; gap: 4px; }
.mk-strip-item { width: 26px; height: 32px; border-radius: 5px; overflow: hidden; background: var(--surface-2); box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--c, var(--line)); margin: 2px; }
.mk-strip-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mk-strip-empty { color: var(--line); font-weight: 600; }
.mk-g-offen { --c: var(--yolk); }
.mk-g-geplant { --c: var(--green); }
.mk-g-gepostet { --c: var(--line); }
@media (max-width: 640px) {
  .mk-strip { gap: 4px; }
  .mk-strip-day a { padding: 6px 4px; min-height: 70px; align-items: center; }
  .mk-strip-items { justify-content: center; }
  .mk-strip-item { width: 18px; height: 22px; margin: 2px; }
}

/* Filter + Sammelaktion */
.mk-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.mk-toolbar form { margin: 0; }
.mk-filter a.is-active .mk-count:not(.is-hot) { background: var(--surface-2); color: var(--ink); }

.mk-wishbox { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; background: var(--warn-soft); border-radius: var(--r); padding: 14px 16px; color: var(--ink); }
.mk-wishbox ul { margin: 6px 0 0; padding-left: 18px; font-size: 0.92rem; display: flex; flex-direction: column; gap: 3px; }
.mk-empty p { margin: 0 0 4px; }

/* Tage und Karten */
.mk-day { display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 90px; }
.mk-day[hidden] { display: none; }
.mk-day-head { font-size: 0.95rem; display: flex; align-items: center; gap: 10px; padding-top: 6px; color: var(--muted); font-family: var(--f-body); font-weight: 600; }
.mk-card {
  display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px;
  box-shadow: inset 4px 0 0 var(--c, var(--line));
  scroll-margin-top: 90px;
}
.mk-card[hidden] { display: none; }
.mk-card.mk-entwurf { --c: var(--yolk); }
.mk-card.mk-freigegeben, .mk-card.mk-wird_gepostet { --c: var(--green); }
.mk-card.mk-fehler { --c: var(--red); }
.mk-card.mk-gepostet { --c: var(--line); }
.mk-card.mk-gepostet .mk-media { opacity: 0.8; }
.mk-media { position: relative; border-radius: 8px; overflow: hidden; background: var(--surface-2); aspect-ratio: 4 / 5; align-self: start; display: grid; place-items: center; margin-left: 4px; }
.mk-media-story, .mk-media-reel { aspect-ratio: 9 / 16; }
.mk-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mk-nophoto { color: var(--warn); font-size: 0.82rem; font-weight: 600; text-align: center; padding: 10px; line-height: 1.3; }
.mk-play {
  position: absolute; inset: auto auto 8px 8px; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(25, 46, 31, 0.78); color: #fff; display: grid; place-items: center; font-size: 0.75rem; padding-left: 2px;
}
.mk-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.mk-meta { display: flex; align-items: baseline; gap: 4px 14px; flex-wrap: wrap; }
.mk-when { font-weight: 600; }
.mk-when .mono { font-size: 1.05rem; }
.mk-where { color: var(--muted); font-size: 0.88rem; }
.mk-badge { margin-left: auto; font-size: 0.76rem; font-weight: 600; padding: 3px 10px; border-radius: 99px; white-space: nowrap; background: var(--surface-2); color: var(--muted); }
.mk-badge-entwurf { background: var(--yolk-soft); color: var(--yolk-ink); }
.mk-badge-freigegeben, .mk-badge-wird_gepostet { background: var(--green-soft); color: var(--green); }
.mk-badge-fehler { background: var(--red-soft); color: var(--red); }
.mk-k { display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.mk-headline { margin: 0; font-weight: 600; }
.mk-text { background: var(--bg); border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.mk-caption { margin: 0; line-height: 1.5; max-width: 65ch; }
.mk-tags { margin: 0; color: var(--green); font-size: 0.86rem; overflow-wrap: anywhere; }
.mk-idea { margin: 0; font-size: 0.86rem; color: var(--muted); }
.mk-wish { margin: 0; background: var(--warn-soft); color: var(--warn); border-radius: 8px; padding: 8px 12px; font-size: 0.9rem; }
.mk-err { margin: 0; color: var(--red); font-weight: 500; font-size: 0.92rem; }
.mk-links { margin: 0; display: flex; gap: 14px; flex-wrap: wrap; align-items: baseline; }
.mk-tt { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; border: 1px dashed var(--line); border-radius: 8px; padding: 8px 10px; font-size: 0.9rem; }
.mk-tt-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.mk-tt form { margin: 0; }
.mk-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding-top: 10px; border-top: 1px solid var(--line); }
.mk-actions form { margin: 0; }
.mk-actions .btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.mk-actions-rest { margin-left: auto; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.mk-why { color: var(--warn); }
.mk-drop { font-size: 0.86rem; padding: 0 4px; }
.mk-inline { padding: 12px; border-radius: 10px; background: var(--bg); display: flex; flex-direction: column; gap: 10px; }
.mk-inline[hidden] { display: none; }
@media (max-width: 560px) {
  .mk-card { grid-template-columns: 72px minmax(0, 1fr); gap: 10px 12px; padding: 12px 12px 12px 14px; }
  .mk-body { display: contents; }
  .mk-body > * { grid-column: 1 / -1; }
  .mk-media { grid-row: 1; margin-left: 0; }
  .mk-body > .mk-meta { grid-column: 2; grid-row: 1; flex-direction: column; align-items: flex-start; gap: 4px; }
  .mk-badge { margin-left: 0; }
  .mk-actions-rest { margin-left: 0; }
}

/* Mediathek */
.mk-up { display: flex; flex-direction: column; gap: 14px; }
.mk-prev { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.mk-prev-item { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; font-size: 0.8rem; color: var(--muted); }
.mk-prev-item img { width: 100%; height: 100%; object-fit: cover; }
.mk-prev-item .mk-play { width: 22px; height: 22px; inset: auto auto 5px 5px; font-size: 0.6rem; }
.mk-wishlist, .mk-tips { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 0.92rem; }
.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.mk-tile { margin: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mk-tile-img { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; background: var(--surface-2); }
.mk-tile-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mk-used { position: absolute; top: 6px; right: 6px; background: rgba(25, 46, 31, 0.78); color: #fff; font-size: 0.72rem; font-weight: 600; padding: 2px 7px; border-radius: 99px; }
.mk-tile figcaption { display: flex; flex-direction: column; gap: 2px; font-size: 0.86rem; }
.mk-note { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mk-edit summary { cursor: pointer; font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.mk-edit form { margin-top: 6px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }

/* Post bearbeiten */
.mk-edit-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.mk-preview-col { position: sticky; top: 90px; }
.mk-phone { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.mk-phone-head { display: flex; align-items: center; gap: 8px; font-size: 0.86rem; }
.mk-phone-av { width: 26px; height: 26px; border-radius: 50%; background: #192E1F; }
.mk-phone .mk-media { width: 100%; }
.mk-phone-cap { margin: 0; font-size: 0.84rem; line-height: 1.45; max-height: 220px; overflow: auto; }
.mk-channels { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.mk-channels legend { margin-bottom: 6px; }
.mk-channels label.check:has(input:disabled) { opacity: 0.45; }
.mk-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; max-height: 360px; overflow: auto; padding: 2px; }
.mk-pick-item { position: relative; aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; background: var(--surface-2); cursor: pointer; display: grid !important; place-items: center; }
.mk-pick-item input { position: absolute; opacity: 0; }
.mk-pick-item img { width: 100%; height: 100%; object-fit: cover; }
.mk-pick-item:has(input:checked) { outline: 3px solid var(--yolk); outline-offset: -3px; }
.mk-pick-item:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--yolk-soft); }
.mk-pick-item .mk-play { width: 22px; height: 22px; inset: auto auto 5px 5px; font-size: 0.6rem; }
.mk-pick-none span { color: var(--muted); font-size: 0.85rem; }
@media (max-width: 860px) {
  .mk-edit-grid { grid-template-columns: minmax(0, 1fr); }
  .mk-preview-col { position: static; max-width: 340px; }
}

/* Einstellungen */
.mk-settings { align-items: start; }
.mk-settings .form { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.mk-howto { margin-top: 12px; font-size: 0.9rem; }
.mk-howto summary { cursor: pointer; font-weight: 600; color: var(--green); }
.mk-howto ol, .mk-steps { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.mk-copyline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.mk-copyline code { font: 0.82rem var(--f-mono); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 6px 9px; overflow-wrap: anywhere; max-width: 100%; }

/* Marketing: Team-Fortschritt */
.mk-team { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; box-shadow: inset 4px 0 0 var(--yolk); }
.mk-team-head { display: flex; flex-direction: column; gap: 2px; }
.mk-team form { margin: 0; }
.mk-team-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.mk-team-steps li { display: flex; align-items: center; gap: 8px; font-size: 0.86rem; color: var(--muted); padding: 8px 10px; border-radius: 8px; background: var(--bg); }
.mk-team-steps .mk-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); flex: none; }
.mk-team-steps li.is-done { color: var(--green); }
.mk-team-steps li.is-done .mk-dot { background: var(--green); }
.mk-team-steps li.is-active { color: var(--ink); font-weight: 600; background: var(--yolk-soft); }
.mk-team-steps li.is-active .mk-dot { background: var(--yolk); animation: mk-puls 1.2s ease-in-out infinite; }
@keyframes mk-puls { 50% { transform: scale(1.5); opacity: 0.5; } }
@media (prefers-reduced-motion: reduce) { .mk-team-steps li.is-active .mk-dot { animation: none; } }
.mk-team-err { margin: 0; color: var(--warn); }
@media (max-width: 760px) { .mk-team-steps { grid-template-columns: minmax(0, 1fr); } }
.mk-fazit { margin: 0; padding: 12px 16px; border-radius: var(--r); background: var(--green-soft); color: var(--ink); font-size: 0.92rem; }
.mk-sub { color: var(--muted); font-weight: 400; }
details.mk-idea { font-size: 0.86rem; color: var(--muted); }
details.mk-idea summary { cursor: pointer; list-style: none; }
details.mk-idea summary::-webkit-details-marker { display: none; }

/* =========================================================
   Design 2026 – Maloya-Look (Waldgrün, Sand, Honig)
   Überschreibt die Grundwerte oben für alle Seiten.
   ========================================================= */
:root {
  --forest: #192E1F;
  --forest-2: #24402D;
  --sand: #F0EBE1;
  --bg: #F0EBE1;
  --surface: #FFFFFF;
  --surface-2: #F6F1E7;
  --ink: #192E1F;
  --muted: #5B6560;
  --line: #E4DDCF;
  --yolk: #E7A31C;
  --yolk-ink: #3A2903;
  --yolk-soft: #FBEFD3;
  --green: #2F6B5A;
  --green-soft: #DDEDE6;
  --terra: #B5541E;
  --f-serif: "Instrument Serif", Georgia, serif;
  --r: 20px;
  --r-s: 12px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1A13;
    --surface: #172219;
    --surface-2: #1F2D23;
    --ink: #EDE8DD;
    --muted: #A4AEA6;
    --line: #2C3B30;
    --yolk: #F0B63E;
    --yolk-ink: #2A1E02;
    --yolk-soft: #3A2E12;
    --green: #7CC4A9;
    --green-soft: #1E3329;
    --forest: #0A120D;
    --forest-2: #1A2A1F;
  }
}

body { background: var(--bg); }
h1 { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.8rem); line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: 1.2rem; }
.eyebrow { letter-spacing: 0.14em; font-size: 0.74rem; }

/* Kopfzeile: Waldgrün mit Logo */
.topbar { background: var(--forest); border-bottom: 0; color: #F0EBE1; }
.topbar-in { max-width: 1280px; gap: 24px; padding-top: 12px; padding-bottom: 12px; }
.brand { font-size: 0; }
.brand-logo { display: block; height: 34px; width: auto; }
.brand-mark {
  width: 120px; height: 32px; border-radius: 0; box-shadow: none !important; background: url(getwirtly-logo.svg) no-repeat left center / contain;
}
.brand-mark.big { width: 200px; height: 54px; background-position: center; }
.topbar .brand-mark { background-image: url(getwirtly-logo-hell.svg); }

.nav { gap: 4px; }
.nav a, .nav-btn { color: #C9D2C6; padding: 9px 15px; border-radius: 999px; font-weight: 500; }
.nav a:hover, .nav-btn:hover, .nav-btn[aria-expanded="true"] { background: rgba(240, 235, 225, 0.1); color: #FFFFFF; }
.nav a.is-active, .nav-btn.is-active { background: var(--yolk); color: #2A1E02; font-weight: 700; }
.nav-badge { box-shadow: 0 0 0 2px var(--forest); }
.me { color: #C9D2C6; }
.me-name { font-size: 0.9rem; }
.me .link-btn { color: #C9D2C6; }
.me .link-btn:hover { color: #FFFFFF; }
.me .avatar { width: 36px; height: 36px; box-shadow: 0 0 0 2px rgba(240, 235, 225, 0.25); }
.nav-drop { border-radius: 18px; padding: 8px; border-color: var(--line); box-shadow: 0 18px 40px rgb(25 46 31 / 0.22); }
.nav-drop a { border-radius: 12px; }
.subnav { background: var(--forest-2); border-top: 0; }
.subnav-in { max-width: 1280px; padding-top: 8px; padding-bottom: 8px; }
.subnav a { color: #C9D2C6; padding: 7px 14px; }
.subnav a:hover { color: #FFFFFF; background: rgba(240, 235, 225, 0.1); }
.subnav a.is-active { color: var(--forest); background: var(--sand); box-shadow: none; font-weight: 600; }
@media (max-width: 720px) {
  .me-name { display: none; }
  .brand-logo { height: 28px; }
  .nav { margin: 0 -6px; padding-bottom: 2px; }
}

/* Grundgerüst */
.wrap { max-width: 1280px; padding-block: 32px 72px; gap: 24px; }
.panel { border-radius: var(--r); padding: 22px; border-color: var(--line); }
.panel-head { margin-bottom: 14px; }
.panel-form { border-color: var(--yolk); box-shadow: 0 0 0 4px var(--yolk-soft); }
.tile { border-radius: 18px; padding: 16px 18px; }
.tile:first-child { background: var(--forest); color: #F0EBE1; border-color: transparent; }
.tile:first-child .tile-label, .tile:first-child .tile-sub { color: #C9D2C6; }
.tile:first-child .tile-num { color: var(--yolk); }
.day, .rday, .rcard, .temp-card, .pd, .pt-wrap, .cl-edit { border-radius: 18px; }
.recipe-photo, .recipe-serve { border-radius: 18px; }
.auth-card { border-radius: 24px; padding: 32px; align-items: stretch; }
.auth-card .brand-mark.big { align-self: center; margin-bottom: 4px; }

/* Knöpfe: rund, Waldgrün als Hauptaktion */
.btn { border-radius: 999px; padding: 12px 20px; min-height: 44px; }
.btn-sm { padding: 8px 14px; min-height: 36px; }
.btn-primary { background: var(--forest); color: #F0EBE1; }
.btn-primary:hover { filter: none; background: var(--forest-2); }
.btn-accent { background: var(--yolk); color: var(--yolk-ink); }
.btn-accent:hover { filter: brightness(0.96); }
.btn-ghost { background: var(--surface); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--ink); }
@media (prefers-color-scheme: dark) {
  .btn-primary { background: var(--yolk); color: var(--yolk-ink); }
  .btn-primary:hover { background: var(--yolk); filter: brightness(1.06); }
}
.chip-btn { padding: 8px 13px; }
.flash { border-radius: 14px; padding: 13px 16px; }
.pill { padding: 4px 10px; }

/* Formulare */
.form input:not([type=checkbox]):not([type=radio]), .form select, .form textarea, .daynav-pick input {
  border-radius: 12px; background: var(--surface-2); border-color: var(--line); padding: 11px 13px;
}
.form textarea { font: 400 1rem var(--f-body); color: var(--ink); width: 100%; }
.table th { letter-spacing: 0.1em; }

/* Stempeluhr / Kiosk */
.k-head { background: var(--forest); color: #F0EBE1; border-bottom: 0; }
.k-head .brand { color: #F0EBE1; }
.k-head .brand-mark { background-image: url(getwirtly-logo-hell.svg); }
#k-date, .k-count { color: #C9D2C6; }
.k-count strong { color: var(--yolk); }
.k-person { border-radius: 20px; }
.k-sheet { border-radius: 28px; }
.k-head .k-link { color: #F0EBE1; border-color: rgba(240, 235, 225, 0.3); }
.k-head .k-link:hover { background: rgba(240, 235, 225, 0.1); }
.panel-anfragen { background: var(--surface); border: 2px solid var(--yolk); }

/* ---------- Marketing (Design 2026) ---------- */
.mk-head { align-items: flex-end; }
.mk-tabs { display: flex; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.mk-tabs a { text-decoration: none; padding: 10px 18px; border-radius: 999px; font-weight: 600; white-space: nowrap; color: var(--ink); }
.mk-tabs a:hover { background: var(--surface-2); }
.mk-tabs a.is-active { background: var(--forest); color: #F0EBE1; }
.mk-tabs .mk-count { background: var(--surface-2); color: var(--ink); }
.mk-status { display: flex; flex-wrap: wrap; gap: 8px; margin-top: -8px; }
.mk-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 0.88rem; text-decoration: none; color: var(--ink); }
.mk-chip-dot { width: 8px; height: 8px; border-radius: 50%; background: #8A948E; flex: none; }
.mk-chip.is-ok .mk-chip-dot { background: var(--green); }
.mk-chip.is-warn { background: var(--yolk-soft); border-color: #EED9A6; color: #5A3E05; }
.mk-chip.is-warn .mk-chip-dot { background: var(--warn); }
a.mk-chip:hover { border-color: var(--ink); }
@media (prefers-color-scheme: dark) { .mk-chip.is-warn { color: var(--yolk); border-color: transparent; } }

.mk-week { border-radius: 24px; padding: 22px; gap: 18px; }
.mk-week-nav strong { font-size: 1.6rem; line-height: 1.1; }
.mk-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; color: var(--ink); }
.mk-plan-form { border-radius: 16px; }
.mk-strip { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.mk-strip-day a { padding: 0; background: none; min-height: 0; gap: 8px; border-radius: 0; }
.mk-strip-day a:hover { background: none; }
.mk-strip-day a:hover .mk-strip-thumb { box-shadow: 0 0 0 2px var(--ink); }
.mk-strip-day.is-today a { box-shadow: none; }
.mk-strip-day.is-today .mk-strip-thumb { box-shadow: 0 0 0 3px var(--yolk); }
.mk-strip-label { display: flex; justify-content: space-between; align-items: baseline; text-transform: none; letter-spacing: 0; font-size: 0.8rem; color: var(--muted); }
.mk-strip-label b { font-size: 0.82rem; letter-spacing: 0.08em; color: var(--ink); }
.mk-strip-thumb { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: var(--surface-2); transition: box-shadow .15s; }
.mk-strip-day.is-empty .mk-strip-thumb { background: transparent; border: 1.5px dashed var(--line); }
.mk-strip-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; }
.mk-strip-nophoto { color: var(--warn); font-size: 0.78rem; font-weight: 600; text-align: center; padding: 6px; }
.mk-strip-format { position: absolute; left: 7px; top: 7px; background: rgba(25, 46, 31, 0.86); color: #F0EBE1; font-size: 0.7rem; font-weight: 600; padding: 3px 8px; border-radius: 999px; }
.mk-strip-more { position: absolute; right: 7px; bottom: 7px; background: var(--yolk); color: var(--yolk-ink); font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.mk-strip-title { font-size: 0.84rem; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mk-strip-state { display: flex; align-items: center; gap: 6px; font-size: 0.76rem; color: var(--muted); }
.mk-strip-state span { width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--line)); }
@media (max-width: 760px) {
  .mk-strip { display: flex; overflow-x: auto; gap: 10px; scrollbar-width: none; margin: 0 -22px; padding: 2px 22px; }
  .mk-strip::-webkit-scrollbar { display: none; }
  .mk-strip-day { flex: 0 0 96px; }
  .mk-strip-title, .mk-strip-state { display: none; }
}

.mk-layout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.mk-main { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.mk-side { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 1000px) { .mk-side { position: sticky; top: 90px; } }
.mk-day-head { font-family: var(--f-display); font-size: 1.1rem; color: var(--ink); font-weight: 700; padding-top: 4px; }

.mk-card { grid-template-columns: 220px minmax(0, 1fr); gap: 22px; border-radius: 24px; padding: 18px; box-shadow: none; }
.mk-card.mk-entwurf { border-color: var(--line); }
.mk-media { border-radius: 16px; margin-left: 0; }
.mk-meta { gap: 8px; align-items: center; }
.mk-when { font-weight: 700; }
.mk-when .mono { font-size: 1rem; }
.mk-tag { background: var(--surface-2); border-radius: 999px; padding: 4px 10px; font-size: 0.8rem; }
.mk-tag-layout { background: var(--green-soft); color: var(--green); }
.mk-headline { font-family: var(--f-serif); font-style: italic; font-size: 1.6rem; line-height: 1.15; font-weight: 400; }
.mk-headline .mk-sub { display: block; font-family: var(--f-body); font-style: normal; font-size: 0.92rem; margin-top: 4px; }
.mk-text { background: none; padding: 0; gap: 8px; }
.mk-caption { line-height: 1.6; }
.mk-tags { color: var(--green); }
details.mk-idea summary { font-weight: 600; color: var(--ink); }
.mk-actions { border-top: 0; padding-top: 4px; margin-top: auto; gap: 8px; }
.mk-drop { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--red); display: grid; place-items: center; cursor: pointer; padding: 0; }
.mk-drop:hover { border-color: var(--red); background: var(--red-soft); }
.mk-body { gap: 12px; }
.mk-toolbar .viewtabs a { border-radius: 999px; }
@media (max-width: 640px) {
  .mk-card { grid-template-columns: minmax(0, 1fr); padding: 0; overflow: hidden; gap: 0; }
  .mk-body { display: flex; padding: 16px; }
  .mk-body > * { grid-column: auto; }
  .mk-media { grid-row: auto; aspect-ratio: 4 / 5; border-radius: 0; max-height: 520px; width: 100%; }
  .mk-media-story, .mk-media-reel { aspect-ratio: 4 / 5; }
  .mk-body > .mk-meta { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .mk-badge { margin-left: 0; }
  .mk-actions .btn { flex: 1 1 auto; }
}

.mk-cd { background: var(--forest); color: #F0EBE1; border-radius: 24px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.mk-cd-k { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--yolk); font-weight: 700; }
.mk-cd p { margin: 0; font-family: var(--f-serif); font-style: italic; font-size: 1.3rem; line-height: 1.3; }
.mk-side-box { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.mk-side-box h2 { font-size: 1.15rem; }
.mk-crew { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.mk-crew li { display: flex; align-items: center; gap: 12px; }
.mk-crew-av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 0.82rem; flex: none; color: #192E1F; }
.mk-crew-a { background: #DDEDE6; }
.mk-crew-b { background: #FBEFD3; }
.mk-crew-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.3; }
.mk-crew-txt small { color: var(--muted); font-size: 0.84rem; }
.mk-crew-ok { color: var(--green); flex: none; }
.mk-side-wish { background: var(--yolk-soft); border-color: transparent; }
.mk-side-wish p { margin: 0; line-height: 1.5; }
.mk-side-wish ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 0.92rem; }
.mk-side-wish .btn { align-self: stretch; }
.mk-strip-day a { width: 100%; }
.mk-strip-thumb { width: 100%; }
.mk-strip-label { gap: 6px; }
@media (max-width: 760px) { .mk-strip-label span { display: none; } .mk-week-nav { flex-wrap: wrap; } .mk-status { gap: 6px; } .mk-chip { font-size: 0.82rem; padding: 6px 12px; } }

/* ---------- Startseite 2026: Aufgaben-Kacheln + Einkaufsliste ---------- */
.todo { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.todo-tile { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; border-radius: 20px; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); transition: transform .12s, box-shadow .12s; min-height: 132px; }
.todo-tile:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(25,46,31,.08); }
.todo-top { display: flex; align-items: center; gap: 10px; }
.todo-ico { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); flex: none; }
.todo-label { font-weight: 700; font-size: 0.95rem; }
.todo-num { font-family: 'Figtree', sans-serif; font-weight: 700; font-size: 2.3rem; line-height: 1; margin-top: 6px; display: flex; align-items: center; min-height: 38px; }
.todo-sub { font-size: 0.88rem; color: var(--muted); line-height: 1.35; }
.todo-tile.is-ok .todo-num { color: var(--green); }
.todo-tile.is-ok .todo-ico { background: var(--green-soft); color: var(--green); }
.todo-tile.is-warn { background: #FBEFD3; border-color: #EBCB85; }
.todo-tile.is-warn .todo-ico { background: var(--yolk); color: #192E1F; }
.todo-tile.is-warn .todo-sub { color: #6B5420; }
.todo-tile.is-bad { background: var(--forest); border-color: transparent; color: #F0EBE1; }
.todo-tile.is-bad .todo-ico { background: #E7A31C; color: #192E1F; }
.todo-tile.is-bad .todo-num { color: #E7A31C; }
.todo-tile.is-bad .todo-sub { color: #C9D2C6; }
@media (max-width: 860px) { .todo { grid-template-columns: repeat(2, minmax(0, 1fr)); } .todo-tile { min-height: 0; padding: 14px; } .todo-num { font-size: 1.9rem; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .todo-tile.is-warn { background: #3A3018; border-color: #6B5420; color: #F0EBE1; } :root:not([data-theme="light"]) .todo-tile.is-warn .todo-sub { color: #E8D3A0; } }
:root[data-theme="dark"] .todo-tile.is-warn { background: #3A3018; border-color: #6B5420; color: #F0EBE1; }
:root[data-theme="dark"] .todo-tile.is-warn .todo-sub { color: #E8D3A0; }

.ek-home { border: 2px solid var(--yolk); }
.ek-home h2 { display: flex; align-items: center; gap: 8px; }
.ek-home-n { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px; background: var(--yolk); color: #192E1F; font-size: 0.85rem; }
.ek-home-add { display: flex; gap: 8px; margin-bottom: 12px; }
.ek-home-add input[name="name"] { flex: 1; min-width: 0; min-height: 44px; border-radius: 999px; padding: 0 16px; }
.ek-home-add .btn { width: 44px; min-height: 44px; padding: 0; font-size: 1.3rem; flex: none; }
.ek-home-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ek-home-list li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); transition: opacity .3s; }
.ek-home-list li:first-child { border-top: none; }
.ek-home-list li.is-done { opacity: .35; }
.ek-home-list li.is-done strong { text-decoration: line-through; }
.ek-home-done { margin: 0; display: contents; }
.ek-home-check { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); cursor: pointer; flex: none; padding: 0; position: relative; }
.ek-home-check:hover { border-color: var(--green); }
.is-done .ek-home-check { background: var(--green); border-color: var(--green); }
.ek-home-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ek-home-txt small { color: var(--muted); font-size: 0.82rem; }
.ek-home-urgent { font-size: 0.75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--red-soft); color: var(--red); flex: none; }
.ek-home-more { display: inline-block; margin-top: 8px; }
@media (max-width: 860px) {
  .grid-main.home-grid { display: flex; flex-direction: column; }
  .grid-main.home-grid > .stack { display: contents; }
  .grid-main.home-grid .ek-home { order: -1; }
}

/* ---------- Ideen-Radar ---------- */
.rd-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 1px; background: #24402D; border-radius: 18px; overflow: hidden; margin: 18px 0 20px; color: #F0EBE1; }
.rd-kpi, .rd-actions { background: var(--forest); padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rd-kpi-label { font-size: 0.8rem; color: #AFC0B2; font-weight: 600; }
.rd-kpi strong { font: 700 clamp(1.8rem, 1.2rem + 2vw, 2.6rem)/1 var(--f-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.rd-kpi-sub { font-size: 0.8rem; color: #7FD3A6; }
.rd-actions { justify-content: center; gap: 8px; }
.rd-actions .btn { width: 100%; white-space: nowrap; }
.rd-actions .btn-ghost, .rd-actions .btn-ghost:disabled { background: transparent; color: #F0EBE1; border-color: rgba(240, 235, 225, 0.35); }
.rd-actions .btn-ghost:hover { background: rgba(240, 235, 225, 0.1); }
.rd-actions .btn-primary { background: var(--yolk); color: #2A1E02; border-color: var(--yolk); }
.rd-actions .btn:disabled { opacity: 0.45; cursor: not-allowed; }
@media (max-width: 760px) { .rd-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .rd-actions { grid-column: 1 / -1; flex-direction: row; } .rd-kpi { padding: 14px; } }
#ideen, #langlaeufer, #einstellungen { margin-bottom: 20px; }
.rd-ideen { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.rd-idee { border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: var(--surface); }
.rd-idee.is-vorgemerkt { border-color: var(--yolk); box-shadow: 0 0 0 3px var(--yolk-soft); }
.rd-idee h3 { font: 700 1.1rem/1.2 var(--f-display); margin: 0; }
.rd-idee p { margin: 0; line-height: 1.45; }
.rd-idee-kopf { display: flex; gap: 6px; }
.rd-format { background: var(--forest); color: #F0EBE1; }
.rd-warum { font-size: 0.85rem; color: var(--muted); border-left: 3px solid var(--yolk); padding-left: 10px; }
.rd-vorbilder { font-size: 0.82rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 10px; }
.rd-idee-aktionen { margin-top: auto; padding-top: 6px; }
.rd-idee-aktionen form { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rd-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 14px; padding-bottom: 2px; }
.rd-chips a { padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); white-space: nowrap; font-size: 0.86rem; font-weight: 500; }
.rd-chips a.is-active { background: var(--forest); color: #F0EBE1; border-color: var(--forest); }
.rd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.rd-ad { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 14px; background: var(--surface-2); text-decoration: none; color: var(--ink); border: 1px solid transparent; transition: border-color .15s; }
.rd-ad:hover { border-color: var(--yolk); }
.rd-ad-kopf { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.rd-ad-kopf strong { font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd-tage { flex: none; font: 600 0.78rem var(--f-mono); padding: 2px 8px; border-radius: 99px; background: var(--surface); color: var(--muted); }
.rd-tage.is-hot { background: var(--yolk); color: #2A1E02; }
.rd-ad-titel { margin: 0; font-weight: 600; font-size: 0.88rem; }
.rd-ad-text { margin: 0; font-size: 0.85rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.rd-muster { margin: 0; font-size: 0.82rem; background: var(--surface); border-radius: 8px; padding: 8px 10px; }
.rd-muster::before { content: "Warum es läuft: "; font-weight: 700; }
.rd-ad-fuss { margin-top: auto; font-size: 0.75rem; color: var(--muted); }
.form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--ink); font: inherit; resize: vertical; }
.rd-mehr { display: block; text-align: center; margin-top: 14px; font-weight: 600; }
.rd-tabs { display: flex; gap: 6px; margin: 4px 0 14px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.rd-tabs a { padding: 10px 16px; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.rd-tabs a.is-active { color: var(--ink); border-bottom-color: var(--yolk); }
.rd-trends { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin-top: 12px; }
.rd-trend { border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 8px; border-top: 5px solid #8A948E; }
.rd-trend.stufe-chance { border-top-color: var(--yolk); }
.rd-trend.stufe-kommt { border-top-color: var(--green); }
.rd-trend h3 { font: 700 1.15rem/1.2 var(--f-display); margin: 0; }
.rd-trend p { margin: 0; line-height: 1.45; }
.rd-trend-kopf { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.rd-stufe { font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--surface-2); }
.stufe-chance .rd-stufe { background: var(--yolk); color: #2A1E02; }
.stufe-kommt .rd-stufe { background: var(--green-soft); color: var(--green); }
.rd-passt { font: 600 0.78rem var(--f-mono); color: var(--muted); }
.rd-orte { font-size: 0.8rem; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; }
.rd-de { font-size: 0.86rem; }
.rd-post img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; background: var(--surface); }
.rd-zahlen { margin: 0; font: 600 0.82rem var(--f-mono); }
.rd-unter { margin: 22px 0 4px; font: 700 1rem var(--f-display); }
.rd-konten { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.rd-konten li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; }
.rd-konten li > a { font-weight: 600; }
.rd-konten form { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.rd-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(180px, auto); }
@media (max-width: 760px) { .rd-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .rd-kpi strong { font-size: 1.7rem; } }
.rd-reel { display: grid; place-items: center; aspect-ratio: 4 / 5; border-radius: 10px; background: var(--forest); color: #F0EBE1; font-weight: 700; }

.rd-bild { display: block; margin: -16px -16px 4px; border-radius: 13px 13px 0 0; overflow: hidden; background: var(--surface-2); }
.rd-bild img { width: 100%; height: auto; max-height: 620px; object-fit: cover; object-position: top; display: block; transition: transform .25s; }
.rd-bild:hover img { transform: scale(1.02); }
.rd-bild-leer { display: grid; place-items: center; padding: 24px; background: var(--forest); color: #F0EBE1; text-align: center; font: 700 1.3rem/1.2 var(--f-display); aspect-ratio: 16 / 9; }
.rd-trend .rd-bild { margin-top: -16px; border-radius: 9px 9px 0 0; }

.rd-fotos { display: grid; gap: 4px; margin: -16px -16px 6px; border-radius: 9px 9px 0 0; overflow: hidden; }
.rd-fotos.n2 { grid-template-columns: 1fr 1fr; }
.rd-fotos.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.rd-fotos.n3 a:first-child { grid-row: 1 / 3; }
.rd-fotos a { position: relative; display: block; background: var(--surface-2); min-height: 120px; }
.rd-fotos.n1 a { aspect-ratio: 16 / 10; }
.rd-fotos.n2 a { aspect-ratio: 4 / 5; }
.rd-fotos.n3 a:first-child { aspect-ratio: 4 / 5; }
.rd-fotos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rd-fotos span { position: absolute; left: 6px; bottom: 6px; font-size: 0.68rem; padding: 2px 7px; border-radius: 99px; background: rgba(0,0,0,.55); color: #fff; max-width: calc(100% - 12px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd-rezept { background: var(--surface-2); border-radius: 10px; padding: 10px 14px; }
.rd-rezept summary { font-weight: 700; cursor: pointer; }
.rd-rezept ol { margin: 8px 0 2px; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 0.9rem; line-height: 1.4; }
.rd-links { display: flex; gap: 14px; flex-wrap: wrap; font-size: 0.85rem; font-weight: 600; }
.rd-maloya { display: flex; gap: 12px; align-items: flex-start; }
.rd-maloya > a { flex: none; width: 74px; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.rd-maloya > a img { width: 100%; display: block; }
.rd-kopf-aktionen { display: flex; gap: 8px; flex-wrap: wrap; }

.rd-leiste { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; margin: -16px -16px 4px; padding: 8px 8px 6px; background: var(--surface-2); border-radius: 9px 9px 0 0; scroll-snap-type: x mandatory; }
.rd-leiste a { position: relative; flex: none; height: 150px; aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; scroll-snap-align: start; background: var(--surface); }
.rd-leiste a:first-child { aspect-ratio: 4 / 3; }
.rd-leiste img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rd-leiste span { position: absolute; left: 4px; bottom: 4px; font-size: 0.62rem; padding: 1px 6px; border-radius: 99px; background: rgba(0,0,0,.55); color: #fff; max-width: calc(100% - 8px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 600px) { .rd-leiste a { height: 120px; } }
.rd-ttabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-top: 4px; overflow-x: auto; scrollbar-width: none; }
.rd-ttabs button { appearance: none; background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; padding: 8px 10px; font: 600 0.84rem var(--f-body, inherit); color: var(--muted); cursor: pointer; white-space: nowrap; }
.rd-ttabs button.is-active { color: var(--ink); border-bottom-color: var(--yolk); }
.rd-tpanel { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; min-height: 90px; }
.rd-tpanel[hidden] { display: none; }
.rd-schritte { margin: 0; padding-left: 0; list-style: none; counter-reset: z; display: flex; flex-direction: column; gap: 8px; font-size: 0.9rem; line-height: 1.45; }
.rd-schritte li { counter-increment: z; display: grid; grid-template-columns: 24px 1fr; gap: 8px; }
.rd-schritte li::before { content: counter(z); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--yolk-soft); color: var(--yolk-ink); font-size: 0.75rem; font-weight: 700; }
.rd-quellen { margin: 0; padding-left: 18px; font-size: 0.88rem; display: flex; flex-direction: column; gap: 4px; }
.rd-maloya p { margin: 0; line-height: 1.45; }

/* ---------- Drehliste ---------- */
.dr-hinweis { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin: 0 0 18px; border-radius: 16px; background: var(--yolk-soft); color: var(--ink); text-decoration: none; border: 1px solid var(--yolk); }
.dr-hinweis > span:nth-child(2) { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dr-hinweis .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-hinweis-icon { font-size: 1.6rem; }
.dr-hinweis-pfeil { margin-left: auto; font-size: 1.8rem; line-height: 1; color: var(--yolk-ink); }
.dr-intro { margin: -6px 0 16px; }
.dr-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-bottom: 18px; }
.dr-auftrag { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.dr-auftrag.is-busy { opacity: .6; pointer-events: none; }
.dr-kopf { display: flex; align-items: center; gap: 8px; }
.dr-nr { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--forest); color: #F0EBE1; font-weight: 700; font-size: 0.85rem; }
.dr-art { font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--surface-2); }
.dr-art.is-video { background: var(--yolk); color: #2A1E02; }
.dr-bis { margin-left: auto; font-size: 0.8rem; color: var(--muted); }
.dr-auftrag h2 { font: 700 1.2rem/1.25 var(--f-display); margin: 0; }
.dr-tipp { margin: 0; color: var(--muted); line-height: 1.45; }
.dr-knopf { justify-content: center; padding-top: 14px; padding-bottom: 14px; font-size: 1.05rem; cursor: pointer; margin-top: auto; }
.dr-leer { text-align: center; padding: 40px 20px; }
.dr-leer-gross { font: 700 1.3rem var(--f-display); margin: 0 0 6px; }
.dr-danke ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.dr-admin { margin-bottom: 18px; }

/* ---------- Bewertungen ---------- */
.bw-grid { align-items: start; }
.bw-liste { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.bw-liste li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.bw-liste li.is-done { opacity: .45; }
.bw-wer { display: flex; flex-direction: column; gap: 2px; margin-right: auto; min-width: 0; }
.bw-zeile { display: grid; grid-template-columns: 140px 1fr; gap: 12px; }
.bw-entwurf { margin-top: 16px; padding: 14px; border-radius: 12px; background: var(--yolk-soft); }
.bw-entwurf textarea { width: 100%; border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; font: inherit; background: var(--surface); color: var(--ink); }
.bw-entwurf .eyebrow { margin: 0 0 6px; }
.bw-einst summary { cursor: pointer; list-style: none; }
.bw-einst summary h2 { display: inline; }
.bw-einst summary::after { content: " ›"; color: var(--muted); }
.bw-einst[open] summary { margin-bottom: 12px; }

/* ---------- Reel-Studio ---------- */
.rs { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.rs-links { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.rs-vorschau-box { position: sticky; top: 90px; }
@media (max-width: 900px) { .rs { grid-template-columns: 1fr; } .rs-vorschau-box { position: static; } }
.rs-nr { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--forest); color: #F0EBE1; font-size: 0.85rem; margin-right: 6px; vertical-align: 2px; }
.rs-medien { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; max-height: 420px; overflow-y: auto; padding: 2px; }
.rs-medium { position: relative; display: block; width: 100%; border: 0; padding: 0; border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--surface-2); outline: 3px solid transparent; outline-offset: -3px; }
.rs-medium::before { content: ""; display: block; padding-top: 100%; }
.rs-medium img, .rs-medium video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.rs-medium .rs-wahl, .rs-medium .rs-play { z-index: 1; }
.rs-medium.is-gewaehlt { outline-color: var(--yolk); }
.rs-wahl { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; background: rgba(0,0,0,.25); color: #2A1E02; font-weight: 700; font-size: 0.8rem; display: grid; place-items: center; }
.rs-medium.is-gewaehlt .rs-wahl { background: var(--yolk); border-color: var(--yolk); }
.rs-play { position: absolute; left: 6px; bottom: 6px; font-size: 0.7rem; color: #fff; background: rgba(0,0,0,.55); border-radius: 99px; padding: 2px 7px; }
.rs-stile { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.rs-stil { text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 12px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; color: var(--ink); font: inherit; }
.rs-stil span { font-size: 0.8rem; color: var(--muted); }
.rs-stil.is-active { border-color: var(--yolk); box-shadow: 0 0 0 3px var(--yolk-soft); }
@media (max-width: 520px) { .rs-stile { grid-template-columns: 1fr; } }
.rs-buehne { display: grid; place-items: center; background: var(--surface-2); border-radius: 14px; padding: 12px; }
.rs-buehne canvas { width: 100%; max-width: 300px; height: auto; aspect-ratio: 9 / 16; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.2); background: #192E1F; }
.rs-aktionen { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.rs-aktionen .btn { flex: 1; justify-content: center; }
.rs-fortschritt { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-top: 12px; }
.rs-fortschritt span { display: block; height: 100%; width: 0; background: var(--yolk); transition: width .2s; }

/* Bildansicht (Lightbox) */
.lb-offen, .lb-offen body { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 9999; display: grid; grid-template-columns: 56px 1fr 56px; grid-template-rows: 1fr auto; align-items: center; background: rgba(12, 14, 12, .92); padding: 16px 8px 12px; }
.lb[hidden] { display: none; }
.lb-buehne { grid-column: 2; grid-row: 1; margin: 0; height: 100%; min-height: 0; display: grid; place-items: center; }
.lb-buehne img, .lb-buehne video { max-width: 100%; max-height: calc(100vh - 90px); max-height: calc(100dvh - 90px); object-fit: contain; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,.5); background: #222; }
.lb-zu { position: absolute; top: 10px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; z-index: 2; }
.lb-pfeil { grid-row: 1; width: 44px; height: 64px; border: 0; border-radius: 10px; background: rgba(255,255,255,.12); color: #fff; font-size: 34px; line-height: 1; cursor: pointer; justify-self: center; }
.lb-zurueck { grid-column: 1; }
.lb-weiter { grid-column: 3; }
.lb-zu:hover, .lb-pfeil:hover { background: rgba(255,255,255,.26); }
.lb-einzeln .lb-pfeil { visibility: hidden; }
.lb-fuss { grid-column: 1 / -1; grid-row: 2; display: flex; justify-content: center; gap: 18px; align-items: center; padding-top: 10px; color: rgba(255,255,255,.75); font-size: .9rem; min-height: 28px; }
.lb-quelle { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) {
  .lb { grid-template-columns: 0 1fr 0; padding: 56px 4px 12px; }
  .lb-pfeil { position: absolute; bottom: 10px; height: 44px; }
  .lb-zurueck { left: 12px; } .lb-weiter { right: 12px; }
}

/* Reel-Studio: Szenen, Layout-Symbole */
.rs-hilfe { margin: -4px 0 10px; }
.rs-szenen { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rs-szene { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.rs-szene.is-fokus { border-color: var(--yolk); box-shadow: 0 0 0 3px var(--yolk-soft); }
.rs-sz-bild { position: relative; width: 64px; height: 86px; padding: 0; border: 0; border-radius: 8px; overflow: hidden; cursor: pointer; background: var(--surface-2); }
.rs-sz-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rs-sz-bild span { position: absolute; top: 4px; left: 4px; min-width: 22px; height: 22px; border-radius: 50%; background: var(--yolk); color: #2A1E02; font: 700 .75rem/22px inherit; text-align: center; }
.rs-sz-bild em { position: absolute; right: 4px; bottom: 4px; font-style: normal; font-size: .65rem; color: #fff; background: rgba(0,0,0,.55); border-radius: 99px; padding: 1px 6px; }
.rs-sz-felder { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rs-regler { display: grid; grid-template-columns: 200px minmax(0, 1fr); align-items: center; gap: 10px; font-size: .82rem; margin: 0; }
.rs-regler span { color: var(--muted); white-space: nowrap; }
.rs-regler b { color: var(--ink); font-weight: 600; }
.rs-regler i { font-style: normal; font-size: .72rem; color: var(--muted); }
.rs-regler input[type=range] { width: 100%; accent-color: var(--yolk); margin: 0; }
.rs-sz-text { font: inherit; font-size: .85rem; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); width: 100%; }
.rs-sz-knoepfe { display: flex; flex-direction: column; gap: 4px; }
.rs-sz-knoepfe button { width: 32px; height: 28px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--ink); cursor: pointer; font-size: .9rem; line-height: 1; }
.rs-sz-knoepfe button:disabled { opacity: .3; cursor: default; }
.rs-sz-knoepfe button[data-a=weg]:hover { color: #B3261E; border-color: #B3261E; }
.rs-ico { display: block; width: 30px; height: 46px; border-radius: 5px; margin-bottom: 4px; background: #192E1F; position: relative; overflow: hidden; }
.rs-ico::before, .rs-ico::after { content: ""; position: absolute; }
.rs-ico-ruhig { background: linear-gradient(180deg, #9A8E7A 0 60%, #192E1F 100%); }
.rs-ico-ruhig::after { left: 4px; right: 8px; bottom: 7px; height: 4px; background: #F0EBE1; border-radius: 2px; }
.rs-ico-schnell { background: #7A6E5E; }
.rs-ico-schnell::after { left: 3px; right: 3px; top: 19px; height: 8px; background: #E7A31C; }
.rs-ico-intro::after { left: 5px; right: 5px; top: 17px; height: 6px; background: #F0EBE1; border-radius: 1px; box-shadow: 0 9px 0 -1px #E7A31C; }
.rs-ico-magazin { background: #F0EBE1; border: 1px solid var(--line); }
.rs-ico-magazin::before { left: 4px; right: 10px; top: 4px; height: 4px; background: #192E1F; }
.rs-ico-magazin::after { left: 4px; right: 4px; top: 13px; bottom: 6px; background: #9A8E7A; }
.rs-ico-geteilt::before { left: 0; right: 0; top: 0; height: 18px; background: #9A8E7A; }
.rs-ico-geteilt::after { left: 0; right: 0; bottom: 0; height: 18px; background: #B9AB90; }
.rs-ico-polaroid { background: #F0EBE1; border: 1px solid var(--line); }
.rs-ico-polaroid::after { left: 5px; right: 5px; top: 12px; height: 24px; background: #9A8E7A; border: 3px solid #fff; border-bottom-width: 7px; transform: rotate(-6deg); }
@media (max-width: 640px) {
  .rs-stile { grid-template-columns: repeat(2, 1fr); }
  .rs-regler { grid-template-columns: 1fr; gap: 2px; }
}

/* Reel-Studio: Regler einheitlich, Handy */
.rs-regler input[type=range] { -webkit-appearance: none; appearance: none; height: 28px; background: transparent; }
.rs-regler input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(to right, var(--yolk) var(--p, 0%), var(--surface-2) var(--p, 0%)); }
.rs-regler input[type=range]::-moz-range-track { height: 6px; border-radius: 99px; background: var(--surface-2); }
.rs-regler input[type=range]::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--yolk); }
.rs-regler input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: var(--yolk); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.rs-regler input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--yolk); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.rs-leiste { display: none; }
@media (max-width: 640px) {
  .rs { padding-bottom: 76px; }
  .rs-medien { grid-template-columns: repeat(4, 1fr); gap: 6px; max-height: 330px; }
  .rs-medium { border-radius: 8px; }
  .rs-wahl { width: 22px; height: 22px; top: 4px; right: 4px; font-size: .72rem; }
  .rs-szenen-box .panel-head, #rs-szenen-box .panel-head { flex-wrap: wrap; gap: 4px; }
  .rs-hilfe { display: none; }
  .rs-szene { grid-template-columns: 52px minmax(0, 1fr) 30px; gap: 10px; padding: 8px; }
  .rs-sz-bild { width: 52px; height: 70px; }
  .rs-sz-knoepfe button { width: 30px; height: 26px; }
  .rs-regler span { font-size: .8rem; }
  .rs-regler input[type=range] { height: 24px; }
  .rs-sz-text { font-size: 16px; padding: 6px 9px; }
  .rs-stile { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .rs-stil { align-items: center; text-align: center; padding: 10px 4px; gap: 2px; }
  .rs-stil span { display: none; }
  .rs-stil strong { font-size: .8rem; line-height: 1.2; }
  .rs-ico { width: 24px; height: 38px; }
  .rs-leiste { display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 50; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 10px 10px 16px; border-radius: 16px; background: var(--forest); color: #F0EBE1; box-shadow: 0 8px 24px rgba(0,0,0,.25); font-weight: 600; font-size: .9rem; }
  .rs-leiste .btn { background: var(--yolk); color: #2A1E02; border-color: var(--yolk); }
  .rs-leiste[hidden], .rs-vorschau-sichtbar .rs-leiste { display: none; }
}

/* Stil & Layouts (Layout-Atelier) */
.at-intro { max-width: 760px; margin: -6px 0 18px; }
.at-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.at-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.at-chip { position: relative; margin: 0; }
.at-chip input { position: absolute; opacity: 0; pointer-events: none; }
.at-chip span { display: inline-block; padding: 9px 14px; border: 1px solid var(--line); border-radius: 99px; font-weight: 600; font-size: .9rem; cursor: pointer; background: var(--surface); }
.at-chip input:checked + span { background: var(--forest); color: #F0EBE1; border-color: var(--forest); }
.at-chip input:focus-visible + span { outline: 2px solid var(--yolk); outline-offset: 2px; }
.at-insp { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.at-insp-bild { position: relative; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.at-insp-bild::before { content: ""; display: block; padding-top: 100%; }
.at-insp-bild a { position: absolute; inset: 0; }
.at-insp-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.at-insp-bild form { position: absolute; top: 4px; right: 4px; margin: 0; }
.at-weg { width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.at-start { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 18px; }
.at-start h2 { margin: 0 0 4px; }
.at-start p { margin: 0; }
.at-karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.at-karte { display: flex; flex-direction: column; gap: 10px; }
.at-karte.is-aus .at-bild { opacity: .45; }
.at-bild { display: block; border-radius: 12px; overflow: hidden; background: var(--surface-2); box-shadow: 0 1px 0 var(--line); }
.at-bild img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.at-karte.is-neu .at-bild { box-shadow: 0 0 0 3px var(--yolk-soft); }
.at-info { display: flex; flex-direction: column; gap: 2px; }
.at-knoepfe { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0; }
.at-knoepfe form { margin: 0; }
@media (max-width: 760px) {
  .at-grid { grid-template-columns: 1fr; }
  .at-start { flex-direction: column; align-items: stretch; }
  .at-karten { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .at-insp { grid-template-columns: repeat(4, 1fr); }
}
.at-trends{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}
.at-trends li{display:flex;flex-direction:column;gap:4px;padding:12px 14px;border:1px solid var(--line,#e4ddd0);border-radius:12px;background:var(--card-2,#fbf8f2)}
.at-trends li strong{font-size:.95rem}
.at-tag{align-self:flex-start;font-size:.72rem;font-weight:700;letter-spacing:.02em;padding:3px 9px;border-radius:999px;background:#F3D9A6;color:#5A3B05;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.at-tag.is-idee{background:var(--line);color:inherit;font-weight:600}
.at-warn{color:#9A4B12}
.at-optional>summary{cursor:pointer;list-style:none;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px}
.at-optional>summary::-webkit-details-marker{display:none}
.at-optional>summary::after{content:'▾';margin-left:auto;transition:transform .2s}
.at-optional[open]>summary::after{transform:rotate(180deg)}
.at-optional[open]>summary{margin-bottom:16px}
.at-optional h3{font-size:1rem;margin:0 0 10px}
form.at-knoepfe{display:flex;flex-direction:row;flex-wrap:wrap;gap:8px;align-items:center}
form.at-knoepfe .btn{width:auto;flex:0 0 auto;margin:0}
.at-karte,.at-info{min-width:0}
.at-karten{grid-template-columns:repeat(auto-fill,minmax(min(100%,230px),1fr))}
@media (max-width:560px){.at-karten{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.at-tag{white-space:normal}form.at-knoepfe .btn{padding-left:12px;padding-right:12px}}
.lh-rahmen{display:block;width:100%;aspect-ratio:4/5;position:relative;overflow:hidden;border:0;padding:0;border-radius:12px;background:#eee;cursor:zoom-in;--s:.2}
.lh-rahmen iframe,.lh-gross iframe{position:absolute;top:0;left:0;width:1080px;height:1350px;border:0;transform:scale(var(--s));transform-origin:0 0;pointer-events:none;background:#fff}
.lh-dialog{padding:0;border:0;background:transparent;max-width:min(92vw,560px);width:100%;overflow:visible}
.lh-dialog::backdrop{background:rgba(10,14,12,.82)}
.lh-gross{position:relative;width:100%;aspect-ratio:4/5;overflow:hidden;border-radius:10px;--s:.5}
.lh-zu{position:absolute;top:-46px;right:0;width:40px;height:40px;border-radius:50%;border:0;background:#fff;font-size:24px;line-height:1;cursor:pointer}

/* ---------- Wochenplanung ---------- */
.pt-row:not(.pt-abw) td { height: 64px; }
.btn-go { background: var(--green); border-color: var(--green); color: #fff; }
.btn-go:hover { filter: brightness(1.08); color: #fff; }
.wp-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-start; }
.wp-actions form { margin: 0; }
.wp-remind summary { list-style: none; cursor: pointer; }
.wp-remind summary::-webkit-details-marker { display: none; }
.wp-remind-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; padding: 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.wp-summary { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; }
.wp-big { font-size: 1.15rem; font-weight: 500; }
.wp-summary-end { margin-left: auto; }
.wp-layout { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.wp-grid { flex: 999 1 640px; min-width: 0; }
.wp-grid .pt { min-width: 780px; }
.wp-side { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.wp-side .panel { margin: 0; }
.wp-zeit { display: block; margin-top: 3px; font-size: 0.74rem; color: var(--muted); font-weight: 500; }
.wp-cell { position: relative; }
.wp-cell > summary { list-style: none; cursor: pointer; }
.wp-cell > summary::-webkit-details-marker { display: none; }
.wp-cell > summary:hover { background: var(--surface-2); }
.wp-cell[open] > summary { box-shadow: inset 0 0 0 2px var(--yolk); }
.wp-pop { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; width: 240px; display: flex; flex-direction: column; gap: 8px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgb(0 0 0 / 0.16); }
.pt td:nth-last-child(-n+2) .wp-pop { left: auto; right: 0; }
.wp-pop-label { display: flex; flex-direction: column; gap: 5px; font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.wp-pop select { font: 400 0.95rem var(--f-body); padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); }
.sc.sc-gap { background: var(--red-soft); border: 1px dashed var(--red); border-left-width: 3px; color: var(--red); }
.sc.sc-gap .sc-av { background: var(--red); }
.sc.sc-gap .sc-name { color: var(--red); }
.wp-hints { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.wp-hints li { padding: 2px 0 2px 10px; border-left: 3px solid var(--warn); font-size: 0.9rem; line-height: 1.4; }
.wp-hints li.is-err { border-left-color: var(--red); }
.wp-hour { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; padding: 8px 0; border-top: 1px solid var(--surface-2); font-size: 0.9rem; }
.wp-hour:first-of-type { border-top: 0; }
.wp-bar { grid-column: 1 / -1; height: 5px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.wp-bar span { display: block; height: 100%; border-radius: 99px; }
.wp-av td, .wp-av th { white-space: nowrap; }
.wp-note { display: block; color: var(--muted); max-width: 200px; white-space: normal; margin-top: 3px; }
.av-pill { display: inline-flex; min-width: 46px; justify-content: center; padding: 4px 8px; border-radius: 7px; font-size: 0.8rem; font-weight: 700; }
.av-ok { background: var(--green-soft); color: var(--green); }
.av-fest { background: var(--surface-2); color: var(--ink); }
.av-none { background: var(--bg); color: var(--muted); opacity: 0.7; }
.av-q { background: var(--yolk-soft); color: var(--warn); }
.av-weg { background: var(--red-soft); color: var(--red); }
.steps li.is-done { color: var(--muted); text-decoration: line-through; }

/* Meine Zeiten (Mitarbeiter) */
.av-frist { margin: -4px 0 0; padding: 10px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.av-frist.is-soon { background: var(--yolk-soft); border-color: var(--yolk); }
.av-frist.is-closed { background: var(--red-soft); border-color: var(--red); color: var(--red); }
.av-form { display: flex; flex-direction: column; gap: 12px; }
.av-legend { display: flex; align-items: center; gap: 6px; }
.av-dot { width: 10px; height: 10px; border-radius: 3px; background: var(--green); }
.av-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; }
.av-day { margin: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 10px 12px; display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 8px; align-items: center; min-width: 0; }
.av-day legend { float: left; padding: 0; display: flex; flex-direction: column; line-height: 1.2; }
.av-day legend span { font-size: 0.8rem; color: var(--muted); }
.av-opts { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 8px; }
.av-opt { position: relative; }
.av-opt input { position: absolute; opacity: 0; inset: 0; }
.av-opt span { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 50px; border-radius: 10px; border: 2px solid var(--line); background: var(--bg); cursor: pointer; text-align: center; padding: 4px; }
.av-opt small { font-size: 0.72rem; opacity: 0.85; }
.av-opt input:checked + span { background: var(--green); border-color: var(--green); color: #fff; }
.av-opt input:focus-visible + span { outline: 2px solid var(--yolk); outline-offset: 2px; }
.av-day[disabled] .av-opt span { cursor: not-allowed; opacity: 0.6; }
.av-note { display: flex; flex-direction: column; gap: 6px; font-size: 0.88rem; font-weight: 600; color: var(--muted); }
.av-note input { font: 400 1rem var(--f-body); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.av-send .btn { width: 100%; min-height: 52px; font-size: 1.05rem; }
@media (min-width: 761px) { .av-send .btn { width: auto; min-width: 260px; } }

/* Einstellungen */
.ws-form { display: flex; flex-direction: column; gap: 10px; }
.ws-area, .ws-shift { display: grid; align-items: center; gap: 8px; }
.ws-area { grid-template-columns: 28px 44px minmax(0, 1fr); }
.ws-shift { grid-template-columns: 28px minmax(0, 1fr) 110px 110px; }
.ws-area input[type=color] { width: 44px; height: 38px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.ws-area:not(.is-on) input[name^=name] { color: var(--muted); }
.ws-bedarf th[scope=row] { white-space: nowrap; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--ink); font-size: 0.9rem; }
.ws-bedarf input { width: 54px; text-align: center; font: 500 1rem var(--f-mono); padding: 7px 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); }
.ws-bedarf input.is-zero { background: var(--bg); color: var(--muted); }
.ws-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 7px; vertical-align: baseline; }
.ws-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 12px; }
@media (max-width: 520px) { .ws-people { grid-template-columns: minmax(0, 1fr); } }
.ws-person { margin: 0; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; background: var(--bg); }
.ws-person legend { display: flex; align-items: center; gap: 8px; font-weight: 700; padding: 0 4px; }
.ws-row { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: flex-end; }
.ws-row label:not(.ws-chip) { display: flex; flex-direction: column; gap: 4px; font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.ws-row input:not([type=checkbox]), .ws-row select, .ws-shift input, .ws-area input[name^=name] { font: 400 0.95rem var(--f-body); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 8px 9px; min-width: 0; }
.ws-row input[type=number] { width: 72px; }
.ws-areas { align-items: center; }
.ws-areas .field-label { width: 100%; }
.ws-chip { position: relative; }
.ws-chip input { position: absolute; opacity: 0; }
.ws-chip span { display: inline-flex; padding: 6px 11px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-size: 0.85rem; font-weight: 600; cursor: pointer; }
.ws-chip input:checked + span { background: var(--green-soft); border-color: var(--green); color: var(--green); }
.ws-chip input:focus-visible + span { outline: 2px solid var(--yolk); outline-offset: 2px; }
.ws-self input:checked + span { background: var(--yolk-soft); border-color: var(--yolk); color: var(--yolk-ink); }
.ws-fix summary { cursor: pointer; font-size: 0.86rem; font-weight: 600; color: var(--muted); }
.ws-fix[open] { display: flex; flex-direction: column; gap: 8px; }
.ws-rules { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; }

/* ---------- Wochenplanung: Besetzung pro Tag ---------- */
.wsb-tabs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-bottom: 14px; }
.wsb-tab { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; }
.wsb-tab small { font-size: 0.7rem; color: var(--muted); white-space: nowrap; }
.wsb-tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.wsb-tab[aria-selected="true"] small { color: rgba(255,255,255,.75); }
.wsb-day { border: 0; margin: 0; padding: 0; min-width: 0; }
.wsb-day legend { font-weight: 600; font-size: 1.05rem; margin-bottom: 8px; padding: 0; }
.wsb-grid { display: grid; grid-template-columns: minmax(120px, 1.4fr) repeat(var(--cols), minmax(104px, 1fr)); gap: 8px 10px; align-items: center; }
.wsb-shift { display: flex; flex-direction: column; align-items: center; font-size: 0.9rem; }
.wsb-shift span { font-size: 0.75rem; color: var(--muted); }
.wsb-area { display: flex; align-items: center; gap: 2px; font-size: 0.92rem; line-height: 1.2; }
.wsb-area small { display: block; font-size: 0.74rem; color: var(--muted); font-weight: 400; }
.wsb-area.is-kombi, .wsb-cell.is-kombi { border-top: 1px dashed var(--line); padding-top: 10px; }
.wsb-cell { display: flex; align-items: center; justify-content: center; gap: 4px; }
.wsb-cell input { width: 42px; text-align: center; font: 500 1rem var(--f-mono); padding: 7px 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); -moz-appearance: textfield; }
.wsb-cell input::-webkit-outer-spin-button, .wsb-cell input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.wsb-cell input.is-zero { background: var(--bg); color: var(--muted); }
.wsb-step { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 1.05rem; line-height: 1; cursor: pointer; padding: 0; }
.wsb-step:hover { border-color: var(--ink); }
.wsb-text { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--bg); font-size: 0.9rem; }
.wsb-copy { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.wsb-chip input { position: absolute; opacity: 0; pointer-events: none; }
.wsb-chip span { display: inline-block; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.85rem; cursor: pointer; }
.wsb-chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.wsb-chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.wsb-hint { margin: 12px 0 0; }
@media (max-width: 520px) {
  .wsb-grid { grid-template-columns: minmax(78px, 1fr) repeat(var(--cols), auto); gap: 8px 6px; }
  .wsb-area { font-size: 0.85rem; hyphens: auto; overflow-wrap: anywhere; }
  .wsb-step { width: 28px; height: 28px; }
  .wsb-cell input { width: 36px; }
}

/* ---------- Wochenplanung: Öffnungszeiten, Bereichs-Arbeitszeit ---------- */
.oz-form { display: flex; flex-direction: column; gap: 14px; }
.oz-block { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--surface); }
.oz-title { margin: 0 0 10px; font-size: 1rem; }
.oz-saison summary { cursor: pointer; font-weight: 600; }
.oz-saison[open] summary { margin-bottom: 10px; }
.oz-neu summary { color: var(--ink); font-weight: 600; }
.oz-week { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 6px 18px; }
.oz-day { display: grid; grid-template-columns: 92px 1fr auto 1fr auto; align-items: center; gap: 6px; padding: 3px 0; }
.oz-tag { font-weight: 600; font-size: 0.92rem; }
.oz-lang { font-weight: 600; }
.oz-day input[type=time] { font: 500 0.95rem var(--f-mono); padding: 6px 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); min-width: 0; width: 100%; }
.oz-bis { color: var(--muted); }
.oz-ruhe { display: inline-flex; align-items: center; gap: 4px; font-size: 0.82rem; color: var(--muted); white-space: nowrap; }
.oz-day.is-closed input[type=time] { opacity: .35; }
.oz-day.is-closed .oz-ruhe { color: var(--ink); font-weight: 600; }
.oz-copy { grid-column: 1 / -1; justify-self: start; margin-top: 4px; }
.oz-saison-head { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; align-items: end; margin-bottom: 10px; }
.oz-saison-head label { display: flex; flex-direction: column; gap: 3px; font-size: 0.82rem; color: var(--muted); min-width: 0; }
.oz-saison-head input:not([type=checkbox]) { width: 100%; }
.oz-saison-head input:not([type=checkbox]) { font: 400 0.95rem var(--f-body); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; min-width: 0; }
.oz-weg { flex-direction: row !important; align-items: center; gap: 5px !important; padding-bottom: 8px; }
.ws-area-zeit { grid-column: 3 / -1; display: flex; align-items: center; gap: 6px; margin-top: -2px; }
.ws-area-zeit input, .ws-shift-opt input[type=time] { font: 500 0.9rem var(--f-mono); padding: 5px 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); width: 104px; }
.ws-shift-opt { grid-column: 2 / -1; display: flex; gap: 14px; font-size: 0.85rem; color: var(--muted); margin-top: -2px; }
.ws-shift-opt .check { display: inline-flex; align-items: center; gap: 5px; }
.wsb-cell { display: grid; grid-template-columns: auto auto auto; justify-content: center; align-items: center; }
.wsb-zeit { grid-column: 1 / -1; text-align: center; font-size: 0.72rem; color: var(--muted); line-height: 1.2; }
.wsb-zeit.is-off { color: var(--warn, #A9600F); }
.wsb-zu { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--bg); font-size: 0.78rem; color: var(--muted); font-weight: 500; }
.av-zu { grid-column: 1 / -1; margin: 4px 0; text-align: center; }
@media (max-width: 520px) {
  .oz-lang { display: none; }
  .oz-day { grid-template-columns: 26px 1fr auto 1fr auto; gap: 4px; }
  .oz-ruhe span { font-size: 0.78rem; }
  .oz-day input[type=time] { padding: 6px 3px; font-size: 0.9rem; }
  .oz-block { padding: 12px 10px; }
  .oz-saison-head { grid-template-columns: 1fr 1fr; }
  .oz-saison-head label:first-child { grid-column: 1 / -1; }
}

/* Reel-Studio: Leiste über der Menüleiste unten */
@media (max-width: 640px) { .rs-leiste { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); } .rs { padding-bottom: 150px; } }

/* Reservierungen: Gesamtansicht im Stil von Heute / Diese Woche */
.rz-tag + .rz-tag { margin-top: 22px; }
.rz-tag-head { display: flex; align-items: center; gap: 10px; padding: 0 4px 10px; color: var(--ink); text-decoration: none; }
.rz-tag-head strong { font-weight: 600; font-size: 1rem; }
.rz-tag-head .muted { margin-left: auto; }
.rz-tag-head:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.rz-tag.is-today .rz-tag-head strong { color: var(--ink); }
.res-such { display: flex; flex-direction: column; gap: 12px; }
.res-such-seg { display: flex; width: 100%; }
.res-such-seg label { flex: 1; }
.res-such-seg label span { display: block; text-align: center; }
.res-neu { width: 100%; justify-content: center; margin-top: 14px; box-sizing: border-box; }
.res-aufraeumen { margin-top: 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.lh-labor .at-info .muted{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.at-knoepfe{position:relative}
.at-grund{position:relative}
.at-grund>summary{list-style:none;cursor:pointer}
.at-grund>summary::-webkit-details-marker{display:none}
.at-grund[open]>summary{background:var(--line)}
.at-grund-menu{position:absolute;z-index:20;left:0;bottom:calc(100% + 8px);width:230px;display:flex;flex-wrap:wrap;gap:6px;padding:12px;background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:0 12px 30px rgba(0,0,0,.16)}
.at-grund-menu .small.muted{width:100%;margin-bottom:2px}
.at-grund-chip{border:1px solid var(--line);background:transparent;color:inherit;border-radius:999px;padding:6px 11px;font:inherit;font-size:.82rem;cursor:pointer}
.at-grund-chip:hover{background:var(--line)}
.at-grund-menu .link-btn{width:100%;text-align:left;margin-top:4px}
.at-stilproben{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,160px),1fr));gap:14px}
.at-stilprobe{display:flex;flex-direction:column;gap:8px;padding:0;border:0;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}
.at-stilprobe .lh-rahmen{cursor:pointer;outline:3px solid transparent;outline-offset:2px;transition:outline-color .15s,transform .15s}
.at-stilprobe:hover .lh-rahmen,.at-stilprobe:focus-visible .lh-rahmen{outline-color:var(--yolk);transform:translateY(-2px)}
.at-stilprobe.is-aktiv .lh-rahmen{outline-color:var(--green)}
.at-stilproben.is-busy .at-stilprobe{opacity:.45}
.at-stilproben.is-busy .at-stilprobe.is-laeuft{opacity:1}
.at-stilprobe.is-laeuft strong::after{content:' – Designer gestaltet … (2–4 Min.)';font-weight:400}
@media (max-width:560px){.at-stilproben{grid-template-columns:repeat(2,minmax(0,1fr))}.at-grund-menu{width:210px}}
.at-testband{display:flex;flex-wrap:wrap;gap:10px 16px;align-items:center;justify-content:space-between;margin:0 0 18px;padding:14px 18px;border-radius:14px;background:var(--yolk-soft);color:var(--yolk-ink);border:1px solid var(--yolk)}
.at-testband-knoepfe{display:flex;gap:8px;flex-wrap:wrap}
.at-testband form{margin:0}
.at-marke .at-testlink{margin:6px 0 0}
.at-marke .at-grid{margin-top:18px}
.at-block h3{font-size:1rem;margin:0 0 10px}
.at-block h3:not(:first-child){margin-top:22px}
.at-zeile{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.at-zeile form{margin:0}
.at-logos{display:flex;gap:10px;margin-bottom:10px}
.at-logo{flex:1;display:flex;align-items:center;justify-content:center;height:90px;border-radius:10px;padding:14px;border:1px solid var(--line)}
.at-logo.is-hell{background:#fff}
.at-logo.is-dunkel{background:#151515}
.at-logo img{max-width:100%;max-height:100%;object-fit:contain}
.at-farben{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:0}
.at-farben input[type=color]{width:46px;height:46px;padding:0;border:1px solid var(--line);border-radius:10px;background:none;cursor:pointer}
.at-farben input[type=color]::-webkit-color-swatch-wrapper{padding:3px}
.at-farben input[type=color]::-webkit-color-swatch{border:0;border-radius:7px}
.at-farben input[data-leer]{opacity:.35}
.at-paletten{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,150px),1fr));gap:8px;margin:8px 0 0}
.at-palette{display:flex;flex-direction:column;gap:6px;align-items:flex-start;padding:8px 10px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:inherit;font:inherit;font-size:.82rem;cursor:pointer;text-align:left}
.at-palette:hover{border-color:var(--ink)}
.at-swatches{display:flex;width:100%;height:20px;border-radius:6px;overflow:hidden;box-shadow:inset 0 0 0 1px rgba(0,0,0,.08)}
.at-swatches i{flex:1}
.at-schriften{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,170px),1fr));gap:8px;margin:0}
.at-schrift{display:flex;flex-direction:column;gap:4px;align-items:flex-start;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:inherit;font:inherit;cursor:pointer;text-align:left}
.at-schrift:hover{border-color:var(--ink)}
.at-schrift.is-aktiv{border:2px solid var(--green);padding:11px}
.at-schriften .link-btn{grid-column:1/-1;justify-self:start}
.at-merkmale{margin-top:16px;padding:14px;border-radius:12px;background:var(--surface-2)}
.at-merkmale h4{margin:0 0 8px;font-size:.92rem}
.at-merkmale ul{margin:0 0 10px;padding-left:18px;font-size:.86rem;line-height:1.45}
.at-merkmale li{margin-bottom:4px}
.at-ausschnitte{display:grid;grid-template-columns:repeat(auto-fill,minmax(90px,1fr));gap:8px;margin-bottom:10px}
.at-ausschnitte a{display:flex;flex-direction:column;gap:4px;color:inherit;text-decoration:none;font-size:.72rem;line-height:1.2}
.at-ausschnitte img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px}
.at-merkmale form{margin:0}
.at-kb-fotos{display:grid;grid-template-columns:repeat(auto-fill,minmax(74px,1fr));gap:6px;margin-bottom:12px}
.at-kb-foto{position:relative;display:block;cursor:pointer}
.at-kb-foto input{position:absolute;opacity:0;pointer-events:none}
.at-kb-foto img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px;border:3px solid transparent;display:block}
.at-kb-foto input:checked+img{border-color:var(--yolk)}
.at-kb-foto input:focus-visible+img{outline:2px solid var(--ink);outline-offset:2px}
.at-kb-felder{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:10px 14px}
.at-kb-wunsch{grid-column:1/-1}
.at-kb-galerie{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,180px),1fr));gap:12px;margin-top:16px}
.at-kb-galerie figure{margin:0;display:flex;flex-direction:column;gap:6px}
.at-kb-galerie img{width:100%;border-radius:10px;display:block;box-shadow:0 4px 14px rgba(0,0,0,.12)}
.at-kb-galerie figcaption{display:flex;flex-direction:column;gap:2px}
.at-kb-aktionen{display:flex;gap:12px;align-items:center}
.at-kb-aktionen form{margin:0}

/* ---------- Agentur (agentur.php) ---------- */
.ag { display: flex; flex-direction: column; gap: 22px; }
.ag h1 { font-size: clamp(1.6rem, 4vw, 2.1rem); line-height: 1.15; }
.ag-lead { margin: 6px 0 0; color: var(--muted); font-size: 1.05rem; }
.ag-h2 { margin: 0 0 12px; font-family: var(--f-display); font-size: 1.2rem; }
.ag-h3 { margin: 0; font-family: var(--f-display); font-size: 1.05rem; }
.ag-klein { margin: 0; color: var(--muted); font-size: 0.9rem; }
.ag-gross { min-height: 50px; padding-inline: 22px; font-size: 1rem; }
.ag-schritt { max-width: 640px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.ag-fortschritt { display: flex; gap: 6px; }
.ag-fortschritt span { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.ag-fortschritt span.is-on { background: var(--green); }
.ag-form { display: flex; flex-direction: column; gap: 18px; }
.ag-feld { display: flex; flex-direction: column; gap: 8px; font-weight: 600; border: 0; padding: 0; margin: 0; min-width: 0; }
.ag-feld legend { padding: 0; margin-bottom: 8px; }
.ag-feld small { font-weight: 400; color: var(--muted); }
.ag-feld input[type=text] { font: inherit; font-weight: 400; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); }
.ag-fotos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.ag-fotos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.ag-upload { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 2px dashed var(--line); border-radius: 10px; background: var(--surface); font-weight: 400; cursor: pointer; }
.ag-upload input { max-width: 100%; }
.ag-upload span { display: none; }
.ag-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ag-chip { position: relative; }
.ag-chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.ag-chip span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 15px; border-radius: 21px; border: 1px solid var(--line); background: var(--surface); font-weight: 500; }
.ag-chip input:checked + span { background: var(--green-soft); border-color: var(--green); color: var(--green); font-weight: 700; }
.ag-chip input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }
.ag-fuss { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 6px; }
.ag-fuss-stapel { flex-direction: column; align-items: stretch; }
.ag-fuss-stapel form, .ag-fuss-stapel .btn { width: 100%; }
.ag-fuss-stapel form:last-child { text-align: center; }
.ag-karte { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ag-beratung { margin: 0; font-size: 1.05rem; line-height: 1.55; }
.ag-zahlen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; text-align: center; }
.ag-zahlen div { background: var(--surface-2); border-radius: 10px; padding: 10px 6px; display: flex; flex-direction: column; gap: 2px; }
.ag-zahlen strong { font-family: var(--f-display); font-size: 1.5rem; }
.ag-zahlen span { font-size: 0.8rem; color: var(--muted); }
.ag-beispiele { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ag-bsp { margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ag-bsp-bild { aspect-ratio: 4 / 5; border-radius: 12px; background: var(--surface-2) center / cover no-repeat; display: flex; align-items: flex-end; padding: 12px; position: relative; overflow: hidden; }
.ag-bsp-bild::before { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.ag-bsp-bild.is-leer::before { display: none; }
.ag-bsp-bild span { position: relative; color: #fff; font-family: var(--f-display); font-weight: 700; font-size: clamp(0.85rem, 2.4vw, 1.15rem); line-height: 1.1; }
.ag-bsp-bild.is-leer span { color: var(--ink); }
.ag-bsp figcaption { font-size: 0.85rem; color: var(--muted); line-height: 1.4; }
.ag-aendern summary { cursor: pointer; text-align: center; font-weight: 600; color: var(--green); padding: 10px; }
.ag-zeile { display: flex; gap: 8px; }
.ag-zeile input[type=text] { flex: 1; min-width: 0; font: inherit; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); }
.ag-zeile[hidden] { display: none; }
.ag-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.ag-tabs { align-self: flex-start; }
.ag-arbeit { display: flex; align-items: center; gap: 14px; background: var(--green-soft); color: var(--ink); border-radius: 12px; padding: 14px 16px; }
.ag-arbeit > div { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.ag-balken { height: 6px; border-radius: 3px; background: rgba(0,0,0,.08); overflow: hidden; }
.ag-balken span { display: block; height: 100%; background: var(--green); transition: width .4s; }
.ag-spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--green); border-right-color: transparent; animation: ag-dreh 0.9s linear infinite; flex: none; }
@keyframes ag-dreh { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ag-spinner { animation: none; } }
.ag-raster { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.ag-haupt { flex: 999 1 540px; min-width: 0; }
.ag-seite { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.ag-leer { background: var(--surface); border: 1px dashed var(--line); border-radius: 14px; padding: 28px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ag-leer p { margin: 0; color: var(--muted); }
.ag-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.ag-post { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.ag-post-bild { aspect-ratio: 4 / 5; background: var(--surface-2); position: relative; overflow: hidden; }
.ag-post-bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ag-post-bild.is-story img { object-fit: contain; background: #111; }
.ag-post-ohne { height: 100%; display: flex; align-items: center; justify-content: center; padding: 18px; text-align: center; color: var(--muted); font-size: 0.9rem; }
.ag-post-text { padding: 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ag-meta { font-size: 0.82rem; color: var(--muted); line-height: 1.4; }
.ag-caption { margin: 0; font-size: 0.92rem; line-height: 1.45; }
.ag-hinweis { margin: 0; font-size: 0.85rem; color: var(--warn); background: var(--warn-soft); padding: 8px 10px; border-radius: 8px; }
.ag-knoepfe { display: flex; gap: 8px; margin-top: auto; }
.ag-knoepfe form:first-child { flex: 1; }
.ag-knoepfe .btn { min-height: 44px; }
.ag-passt { width: 100%; background: var(--green); color: #fff; }
.ag-passt:disabled { opacity: .45; cursor: not-allowed; }
.ag-weg { padding-inline: 12px; color: var(--muted); }
.ag-chips-klein { gap: 6px; }
.ag-chip-btn { font: inherit; font-size: 0.85rem; min-height: 36px; padding: 0 12px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); cursor: pointer; }
.ag-notizen { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 0.88rem; }
.ag-notizen span { color: var(--muted); font-size: 0.8rem; }
.ag-zeilenkopf { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ag-woche { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; text-align: center; }
.ag-tag { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--muted); }
.ag-tag.is-heute span { color: var(--ink); font-weight: 700; }
.ag-tag b { width: 32px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; }
.ag-tag b.is-leer { background: var(--surface-2); }
.ag-tag b.is-ok, .ag-legende i.is-ok { background: var(--green-soft); color: var(--green); border: 1px solid var(--green); }
.ag-tag b.is-wartet, .ag-legende i.is-wartet { background: var(--yolk-soft); color: var(--yolk-ink); border: 1px solid var(--warn); }
.ag-legende { display: flex; flex-wrap: wrap; gap: 12px; font-size: 0.78rem; color: var(--muted); }
.ag-legende span { display: flex; align-items: center; gap: 6px; }
.ag-legende i { width: 10px; height: 10px; border-radius: 3px; }
.ag-strategie { background: var(--green); border-color: var(--green); color: #fff; }
.ag-strategie .ag-klein { color: rgba(255,255,255,.85); }
.ag-overline { margin: 0; font-size: 0.75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: rgba(255,255,255,.8); }
.ag-hell { background: #fff; color: #1B2320; }
@media (prefers-color-scheme: dark) { .ag-strategie { background: #1F3A31; border-color: #2D5446; } .ag-passt { color: #0F1B16; } }
@media (max-width: 560px) {
  .ag-beispiele { gap: 8px; }
  .ag-bsp figcaption { display: none; }
  .ag-fotos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ag-posts { grid-template-columns: 1fr; }
}
.ag-link { text-decoration: none; color: var(--ink); gap: 6px; transition: border-color .15s; }
.ag-link:hover { border-color: var(--green); }
/* ---------- Kalender (kalender.php) ---------- */
.kal-leiste { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin: 4px 0 14px; }
.kal-nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.kal-titel { margin: 0; font-family: var(--f-display); font-size: clamp(1.2rem, 3vw, 1.6rem); }
.kal-pfeil { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.kal-pfeil:hover { background: var(--surface-2); }
.kal-aktionen { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.kal-umschalter { display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.kal-umschalter a { min-height: 38px; padding: 0 14px; display: flex; align-items: center; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 600; }
.kal-umschalter a.is-active { background: var(--ink); color: var(--surface); }
.kal-info { margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; background: var(--yolk-soft); color: var(--yolk-ink); font-size: 0.92rem; }
.kal-raster { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.kal-haupt { flex: 999 1 640px; min-width: 0; overflow-x: auto; }
.kal-woche { display: grid; grid-template-columns: repeat(7, minmax(112px, 1fr)); gap: 10px; min-width: 820px; }
.kal-tag { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.kal-tagkopf { font-size: 0.82rem; font-weight: 700; color: var(--muted); padding: 4px 2px; }
.kal-tagkopf span { color: var(--ink); }
.kal-tag.is-heute .kal-tagkopf { color: var(--green); }
.kal-tag.is-heute .kal-tagkopf span { background: var(--green); color: #fff; border-radius: 6px; padding: 1px 6px; }
.kal-tag.is-vorbei { opacity: .7; }
.kal-frei { height: 56px; border: 1px dashed var(--line); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; color: var(--muted); }
.kal-post { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.kal-post:hover { border-color: var(--green); }
.kal-post.is-gewaehlt { border: 2px solid var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.kal-bild { display: block; aspect-ratio: 4 / 5; background: var(--surface-2); position: relative; overflow: hidden; }
.kal-bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kal-bild > span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 8px; text-align: center; font-size: 0.78rem; color: var(--muted); }
.kal-post.ohne-bild .kal-bild { border-bottom: 1px dashed var(--line); }
.kal-zeile { padding: 7px 8px 2px; font-size: 0.82rem; }
.kal-status { display: inline-block; margin: 2px 8px 8px; align-self: flex-start; font-size: 0.72rem; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: var(--surface-2); color: var(--muted); }
.kal-status.is-wartet { background: var(--yolk-soft); color: var(--yolk-ink); }
.kal-status.is-ok { background: var(--green-soft); color: var(--green); }
.kal-status.is-fehler { background: var(--red-soft); color: var(--red); }
.kal-monat { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; min-width: 560px; }
.kal-mkopf { font-size: 0.8rem; font-weight: 700; color: var(--muted); padding: 4px; }
.kal-mtag { min-height: 96px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 6px; display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); }
.kal-mtag:hover { border-color: var(--green); }
.kal-mtag.is-aussen { background: transparent; opacity: .55; }
.kal-mtag.is-heute { border: 2px solid var(--green); }
.kal-mzahl { font-weight: 700; font-size: 0.85rem; }
.kal-mbilder { display: flex; gap: 3px; }
.kal-mbilder img, .kal-mbilder i { width: 30%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; background: var(--surface-2); display: block; }
.kal-mzahlen { font-size: 0.72rem; color: var(--muted); margin-top: auto; }
.kal-mzahlen em { font-style: normal; color: var(--warn); font-weight: 700; }
.kal-panel { flex: 1 1 320px; max-width: 420px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 12px; position: sticky; top: 12px; }
.kal-panelkopf { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.kal-panelkopf > div { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.kal-panelkopf .kal-status { margin: 0 0 0 6px; }
.kal-zu { width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--muted); }
.kal-panelbild { aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: var(--surface-2); display: flex; align-items: center; justify-content: center; text-align: center; padding: 0; color: var(--muted); }
.kal-panelbild img { width: 100%; height: 100%; object-fit: cover; }
.kal-panelbild.is-story img { object-fit: contain; background: #111; }
.kal-panelbild > span { padding: 16px; }
.kal-meta { margin: 0; font-size: 0.85rem; color: var(--muted); }
.kal-hinweis { margin: 0; font-size: 0.88rem; color: var(--warn); background: var(--warn-soft); padding: 8px 10px; border-radius: 8px; }
.kal-form { display: flex; flex-direction: column; gap: 10px; }
.kal-form label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 0.88rem; }
.kal-form input, .kal-form textarea { font: inherit; font-weight: 400; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); min-width: 0; }
.kal-zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kal-knoepfe { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.kal-ki summary { cursor: pointer; font-weight: 600; color: var(--green); padding: 4px 0; }
.kal-ki form { margin-top: 8px; }
.kal-endknoepfe { display: flex; gap: 8px; flex-wrap: wrap; }
.kal-endknoepfe form:first-child:not(:last-child) { flex: 1; }
.kal-endknoepfe .btn { min-height: 46px; width: 100%; }
.kal-caption { margin: 0; font-size: 0.92rem; line-height: 1.45; }
.kal-fuss { margin-top: 18px; }
@media (max-width: 900px) { .kal-panel { position: static; max-width: none; flex-basis: 100%; order: -1; } }
.fo-wunsch { margin-bottom: 18px; }
.fo-karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.fo-karte { border: 2px dashed var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.fo-karte p { margin: 0; line-height: 1.45; }
.fo-wann { font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.fo-karte .btn { align-self: flex-start; }
/* =========================================================
   Marketing-Baukasten (mx-): einheitliche Bausteine im Maloya-CI
   ========================================================= */
.mx { display: flex; flex-direction: column; gap: 32px; }
.mx-kopf { display: flex; flex-direction: column; gap: 16px; }
.mx-kopfzeile { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.mx-kopf .mk-tabs { align-self: flex-start; }
.mx-abschnitt { display: flex; flex-direction: column; gap: 16px; }
.mx-abschnittkopf { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.mx-abschnittkopf h2 { font-size: 1.25rem; }
.mx-hinweis { font-size: 0.85rem; color: var(--muted); }
.mx-raster { display: grid; gap: 16px; }
.mx-raster-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mx-raster-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mx-raster-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.mx-karte { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.mx-karte-kopf { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.mx-karte-kopf h3 { margin: 0; font-family: var(--f-display); font-size: 1.05rem; }
.mx-karte p { margin: 0; }
.mx-klein { font-size: 0.85rem; color: var(--muted); }
.mx-karte-bild { padding: 0; overflow: hidden; gap: 0; }
.mx-karte-bild .mx-bild { aspect-ratio: 4 / 5; background: var(--surface-2) center / cover no-repeat; position: relative; }
.mx-karte-bild .mx-inhalt { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.mx-knoepfe { display: grid; grid-template-columns: 1fr 1fr 44px; gap: 8px; margin-top: auto; }
.mx .btn { min-height: 44px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; }
.mx .btn-icon { width: 44px; padding: 0; }
.btn-ok { background: var(--green); color: #fff; border-color: var(--green); }
.btn-ok:hover { filter: brightness(0.94); }
.mx-textlink { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--green); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.mx-weg { color: var(--red); }
.mx-chip { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; white-space: nowrap; }
.mx-chip.is-wartet { background: var(--yolk-soft); color: var(--yolk-ink); }
.mx-chip.is-ok { background: var(--green-soft); color: var(--green); }
.mx-chip.is-fehler { background: var(--red-soft); color: var(--red); }
.mx-chip.is-neutral { background: var(--surface-2); color: var(--muted); }
.mx-zahl { display: inline-flex; min-width: 22px; height: 22px; padding: 0 7px; align-items: center; justify-content: center; border-radius: 11px; background: var(--yolk); color: var(--yolk-ink); font-size: 0.75rem; font-weight: 700; }
.mx-mehr { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.mx-mehr > summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mx-mehr > summary::-webkit-details-marker { display: none; }
.mx-mehr > summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin-top: -4px; transition: transform .15s; }
.mx-mehr[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.mx-mehr > .mx-mehr-inhalt { padding: 0 20px 20px; }
.mx-liste { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.mx-zeile { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 16px 20px; border-top: 1px solid var(--line); }
.mx-zeile:first-child { border-top: 0; }
.mx-zeile-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.85rem; }
.mx-zeile b { display: block; }
.mx-schalter-zeile { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.mx-schalter { position: relative; width: 50px; height: 30px; flex: none; }
.mx-schalter input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.mx-schalter span { position: absolute; inset: 0; border-radius: 15px; background: var(--line); transition: background .15s; pointer-events: none; }
.mx-schalter span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.mx-schalter input:checked + span { background: var(--green); }
.mx-schalter input:checked + span::after { transform: translateX(20px); }
.mx-schalter input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }
.mx-trenner { height: 1px; background: var(--line); }
.mx-filter { display: flex; gap: 8px; flex-wrap: wrap; }
.mx-filter a { min-height: 36px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.mx-filter a.is-active { background: var(--forest); color: #F0EBE1; border-color: var(--forest); }
.mx-medium { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mx-medium .mx-bild { aspect-ratio: 1; border-radius: var(--r-s); background: var(--surface-2) center / cover no-repeat; position: relative; }
.mx-auf-bild { position: absolute; left: 8px; top: 8px; height: 22px; padding: 0 8px; border-radius: 999px; background: rgba(255,255,255,.92); color: #192E1F; font-size: 0.72rem; font-weight: 700; display: inline-flex; align-items: center; }
.mx-feld { display: flex; gap: 8px; }
.mx-feld input { flex: 1; min-width: 0; font: inherit; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); }
.mx-woche { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; text-align: center; font-size: 0.78rem; color: var(--muted); }
.mx-woche b { display: flex; height: 36px; align-items: center; justify-content: center; border-radius: 10px; color: var(--ink); background: var(--surface-2); margin-top: 4px; font-size: 0.85rem; }
.mx-woche b.is-ok { background: var(--green-soft); color: var(--green); }
.mx-woche b.is-wartet { background: var(--yolk-soft); color: var(--yolk-ink); }
.mx-gross { font-family: var(--f-display); font-size: 1.5rem; font-weight: 700; }
.mx-unten { display: none; }
@media (max-width: 900px) {
  .mx-raster-3 { grid-template-columns: 1fr; }
  .mx-raster-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mx-raster-2 { grid-template-columns: 1fr; }
  .mx-zeile { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .mx-zeile .mx-chip { grid-column: 2; justify-self: start; }
  .mx-zeile .btn { grid-column: 3; grid-row: 1 / span 2; }
  .mx-kopfzeile > .btn { display: none; }
  .mx-unten { display: block; position: sticky; bottom: 0; margin: 0 -16px -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); z-index: 5; }
  .mx-unten .btn { width: 100%; }
}
.mx-verb { border-top: 1px solid var(--line); }
.mx-verb:first-child { border-top: 0; }
.mx-verb > summary { list-style: none; cursor: pointer; border-top: 0; }
.mx-verb > summary::-webkit-details-marker { display: none; }
.mx-verb > summary > span:nth-child(2) { min-width: 0; }
.mx-verb[open] > summary { background: var(--surface-2); }
.mx-verb[open] .mx-verwalten { background: var(--forest); color: #F0EBE1; border-color: var(--forest); }
.mx-verb-inhalt { padding: 16px 20px 20px 80px; display: flex; flex-direction: column; gap: 14px; }
.mx-formular { display: flex; flex-direction: column; gap: 10px; max-width: 520px; }
.mx-formular label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.mx-auswahl { font: inherit; font-size: 0.85rem; padding: 2px 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); }
.mx-mehr > summary .mx-chip { margin-right: 12px; }
@media (max-width: 900px) { .mx-verb-inhalt { padding: 16px 20px 20px; } }
.mx-dateiknopf { position: relative; cursor: pointer; }
.mx-dateiknopf input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.mx-bild-link { display: block; text-decoration: none; }
.mx-bild-link .mk-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.mx-medium figcaption { display: flex; flex-direction: column; gap: 2px; }
.mx-medium-text { font-size: 0.88rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mx-medium-edit summary { cursor: pointer; font-size: 0.85rem; font-weight: 600; color: var(--green); }
.mx-medium-edit[open] { display: flex; flex-direction: column; gap: 8px; }
.mx-medium-edit .mx-feld input { min-height: 40px; padding: 0 12px; font-size: 0.9rem; }
.mx-medium-edit .btn { min-height: 40px; padding: 0 12px; }
.mx-formular-feld { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.mx-formular-feld input { font: inherit; font-weight: 400; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); }
.mx .mk-prev { margin: 0; }
.mx-bild.is-story { background-size: contain; background-color: #111; }
.mx-bild-leer { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center; color: var(--muted); font-size: 0.88rem; }
.mx-knoepfe form { margin: 0; }
.mx-knoepfe .btn:disabled { opacity: .45; cursor: not-allowed; }
.mx-unten form, .mx-unten form .btn { width: 100%; }
.mx .ag-chip-btn { min-height: 36px; }
.mx .ag-arbeit { margin: 0; }
.mx-marke-vorschau { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mx-marke-vorschau > div { height: 110px; border-radius: var(--r-s); display: flex; align-items: center; justify-content: center; padding: 16px; }
.mx-marke-vorschau img { max-width: 100%; max-height: 64px; object-fit: contain; }
.mx-farben { display: flex; gap: 8px; height: 110px; }
.mx-farben span { flex: 1; border-radius: var(--r-s); border: 1px solid var(--line); }
.mx-schriftprobe { height: 110px; border-radius: var(--r-s); background: var(--surface-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; padding: 0 12px; }
.mx-schriftprobe span:first-child { font-size: 1.9rem; line-height: 1.1; }
.mx #sammlung > p:first-child { margin: 0; }
.mx .at-marke { margin: 0; }
.kal-post .mx-chip { margin: 2px 8px 8px; align-self: flex-start; }
.kal-panelkopf .mx-chip { margin-left: 6px; }
.kal-mx .kal-leiste { margin: 0; }
.kal-mx .kal-nav h2 { font-size: 1.25rem; }
.mx-medium { margin: 0; }
.mx-unterreiter { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.mx-unterreiter a { padding: 12px 16px; text-decoration: none; color: var(--muted); font-weight: 700; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.mx-unterreiter a:hover { color: var(--ink); }
.mx-unterreiter a.is-active { color: var(--ink); border-bottom-color: var(--yolk); }
[data-panel] { display: flex; flex-direction: column; gap: 16px; }
[data-panel][hidden] { display: none; }
.mx-kat { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 0.72rem; font-weight: 700; align-self: flex-start; }
.mx-beschreibung summary { cursor: pointer; font-size: 0.85rem; font-weight: 600; color: var(--green); }
.mx-beschreibung[open] summary { margin-bottom: 4px; }
.mx-select { font: inherit; font-weight: 400; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); }
.mx-filter-klein a { min-height: 32px; font-size: 0.82rem; }
.mx-feld-stapel { flex-wrap: wrap; }
.mx-feld-stapel .mx-select { flex: 1 1 100%; min-height: 40px; font-size: 0.9rem; }
.mx-zeile-icon img { max-width: 36px; max-height: 28px; object-fit: contain; }
.mx-mini-farben { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 28px; height: 28px; }
.mx-mini-farben i { border-radius: 3px; }
.mx-verb-inhalt .at-paletten, .mx-verb-inhalt .at-schriften { margin: 0; }

/* Accordion statt Unterreiter: Überschrift = Klappzeile, nur ein Bereich offen */
.mx-klapp { display: flex; flex-direction: column; gap: 16px; }
.mx-klapp:not(.is-offen) > :not(.mx-klapp-kopf) { display: none !important; }
.mx-klapp-kopf { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 0 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s); color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.1rem; cursor: pointer; }
.mx-klapp-kopf:hover { border-color: var(--muted); }
.mx-klapp-kopf:focus-visible { outline: 3px solid var(--yolk); outline-offset: 2px; }
.mx-klapp-titel .mx-hinweis { font-weight: 600; font-size: 0.95rem; }
.mx-klapp-pfeil { margin-left: auto; flex: none; transition: transform .2s; color: var(--muted); }
.mx-klapp.is-offen > .mx-klapp-kopf { border-color: var(--ink); }
.mx-klapp.is-offen > .mx-klapp-kopf .mx-klapp-pfeil { transform: rotate(180deg); color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .mx-klapp-pfeil { transition: none; } }
.mx-filter-klein .mx-hinweis { margin-left: 4px; }
.mx-knoepfe-zeile { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.kal-plan textarea { font: inherit; width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); color: var(--ink); resize: vertical; }
.kal-plan textarea:focus-visible { outline: 3px solid var(--yolk); outline-offset: 1px; }

/* Layout anpassen */
.at-anpassen > summary { list-style: none; cursor: pointer; align-self: flex-start; }
.at-anpassen > summary::-webkit-details-marker { display: none; }
.at-anpassen[open] > summary { margin-bottom: 8px; }
.at-anpassen-form { display: flex; flex-direction: column; gap: 10px; }
.at-anpassen-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.at-anpassen-chips label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.at-anpassen-chips input { accent-color: var(--green); width: 16px; height: 16px; margin: 0; }
.at-anpassen-chips label:has(input:checked) { background: var(--forest); color: #fff; border-color: var(--forest); }
.at-anpassen-form textarea { font: inherit; width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); color: var(--ink); resize: vertical; }
.at-anpassen-form .btn { align-self: flex-start; }
.at-angepasst { display: block; }

/* Layout-Karten kompakt: eine Knopfzeile, Panels darunter */
.at-zeile { display: flex; gap: 6px; align-items: center; }
.at-zeile form { margin: 0; }
.at-zeile form:first-child { flex: 1; }
.at-zeile form:first-child .btn { width: 100%; }
.at-icon { flex: none; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); cursor: pointer; padding: 0; }
.at-icon:hover, .at-icon[aria-expanded="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.at-icon:focus-visible { outline: 3px solid var(--yolk); outline-offset: 2px; }
.at-panel { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); margin: 0; }
.at-panel[hidden] { display: none; }
.at-panel textarea { font: inherit; width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); resize: vertical; }
.at-panel .btn { align-self: flex-start; }
.at-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.at-chips label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.at-chips input { width: 15px; height: 15px; margin: 0; accent-color: var(--ink); }
.at-chips label:has(input:checked) { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.at-meta > summary { list-style: none; cursor: pointer; display: flex; }
.at-meta > summary::-webkit-details-marker { display: none; }
.at-meta > summary .at-tag::after { content: " ▾"; font-size: .9em; opacity: .7; }
.at-meta[open] > summary .at-tag::after { content: " ▴"; }
.at-meta[open] > summary { margin-bottom: 4px; }
.at-info strong { line-height: 1.25; }
.at-info { gap: 4px; }
.at-meta, .at-meta > summary { min-width: 0; max-width: 100%; }
.at-meta > summary .at-tag, .at-info > .at-tag { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; border-radius: 999px; line-height: 1.5; }
.at-zeile { flex-wrap: nowrap; }
.at-zeile form:first-child { min-width: 0; }
.at-zeile form:first-child .btn { padding-left: 10px; padding-right: 10px; white-space: nowrap; }
@media (max-width: 640px) { .at-zeile { flex-wrap: wrap; } .at-zeile form:first-child { flex: 1 1 100%; } .at-icon { width: 38px; height: 38px; } }

/* Bild-Studio */
.st-raster { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 860px) { .st-raster { grid-template-columns: 1fr; } }
.st-links .mx-karte { gap: 12px; }
.st-original { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; display: block; background: var(--surface-2); }
.st-upload { margin: 0; }
.st-dateiknopf { position: relative; overflow: hidden; width: 100%; }
.st-dateiknopf input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.st-wahl > summary { cursor: pointer; list-style: none; }
.st-wahl > summary::-webkit-details-marker { display: none; }
.st-fotos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 10px 0 0; }
.st-fotos button { aspect-ratio: 1; border: 2px solid transparent; border-radius: 10px; background: var(--surface-2) center/cover no-repeat; cursor: pointer; padding: 0; }
.st-fotos button.is-aktiv, .st-fotos button:hover { border-color: var(--ink); }
.st-rechts { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.st-eingabe { gap: 12px; }
.st-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.st-chip { font: inherit; font-size: 0.85rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.st-chip:hover { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.st-eingabe textarea { font: inherit; width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); color: var(--ink); resize: vertical; min-height: 84px; }
.st-eingabe textarea:focus-visible { outline: 3px solid var(--yolk); outline-offset: 1px; }
.st-optionen { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.st-optionen .btn { margin-left: auto; }
.st-radio { display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; cursor: pointer; }
.st-ergebnis { gap: 10px; }
.st-ergebnis img { width: 100%; max-height: 72vh; object-fit: contain; border-radius: 14px; background: var(--surface-2); display: block; }
.st-aktionen { display: flex; flex-wrap: wrap; gap: 8px; }
.st-aktionen form { margin: 0; }
.st-frueher > summary { cursor: pointer; list-style: none; }
.st-frueher > summary::-webkit-details-marker { display: none; }
.st-galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-top: 12px; }
.st-galerie figure { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.st-galerie img { width: 100%; border-radius: 10px; display: block; }
.st-galerie form { margin: 0; }
.at-panel-zeile { flex-direction: row; align-items: center; gap: 6px; padding: 8px; }
.at-panel-zeile[hidden] { display: none; }
.at-grund-wahl { flex: 1; min-width: 0; min-height: 38px; height: 38px; font-size: 0.85rem; padding: 0 10px; }
.at-panel-zeile .btn { flex: none; align-self: auto; }
.at-mehrfach { position: relative; flex: 1; min-width: 0; }
.at-mehrfach > summary { list-style: none; cursor: pointer; display: flex; align-items: center; min-height: 38px; height: 38px; font-size: 0.85rem; padding: 0 28px 0 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: relative; box-sizing: border-box; }
.at-mehrfach > summary::-webkit-details-marker { display: none; }
.at-mehrfach > summary::after { content: "▾"; position: absolute; right: 10px; top: 50%; transform: translateY(-50%); opacity: .6; }
.at-mehrfach-liste { position: absolute; z-index: 30; left: 0; right: -60px; bottom: calc(100% + 6px); display: flex; flex-direction: column; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.16); }
.at-mehrfach-liste label { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; font-size: 0.9rem; cursor: pointer; }
.at-mehrfach-liste label:hover { background: var(--surface-2); }
.at-mehrfach-liste input { width: 16px; height: 16px; margin: 0; accent-color: var(--ink); }

/* Mehrfachauswahl der Layouts */
.at-karte { position: relative; }
.at-wahl { position: absolute; z-index: 3; top: 10px; left: 10px; width: 34px; height: 34px; border-radius: 999px; background: rgba(255,255,255,.92); box-shadow: 0 2px 8px rgba(0,0,0,.18); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.at-wahl input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); cursor: pointer; }
.at-karte.is-gewaehlt .lh-rahmen, .at-karte.is-gewaehlt .at-bild { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 14px; }
.at-sammel { position: sticky; bottom: 12px; z-index: 40; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 16px 0 0; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.at-sammel[hidden] { display: none; }
.at-sammel-zahl { font-weight: 700; }
.at-sammel-knoepfe { margin-left: auto; display: flex; gap: 8px; }
@media (max-width: 640px) { .at-sammel { bottom: 84px; border-radius: 16px; } .at-sammel-knoepfe { margin-left: 0; width: 100%; } .at-sammel-knoepfe .btn { flex: 1; } }

/* getwirtly-Logo auf der Anmeldung */
.gw-login-logo { display: flex; justify-content: center; color: var(--ink); margin: 8px 0 18px; }
.gw-login-logo svg { display: block; height: 54px; width: auto; }
.auth-card .gw-feld::placeholder { color: #A8A29C; opacity: 1; }
.auth-card .gw-feld:focus::placeholder { color: transparent; }
