/* Verwaltung · Cathrin Raasch Atelier
   Ruhig, warm, gut lesbar: Creme, Tinte (Braun), ein Rosé-Akzent. Mobil zuerst. */

:root {
  --bg: #f7f0e6;
  --surface: #fffcf7;
  --surface-2: #f2e8db;
  --blush: #edd7c2;          /* Hintergrund des Logos */
  --blush-2: #e5c9b2;
  --ink: #3a2a22;
  --ink-2: #6a5649;
  --ink-3: #8a7566;
  --line: #e6d8c6;
  --line-strong: #c9b49e;
  --rose: #a3485a;
  --rose-hover: #8e3b4c;
  --rose-ink: #8a3647;
  --rose-soft: #f7e3e1;
  --sage: #4f7550;
  --sage-soft: #e6eee0;
  --amber: #c98a1b;
  --amber-soft: #fbedcf;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(58, 42, 34, .05), 0 10px 28px -18px rgba(58, 42, 34, .28);
  --font: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --tabbar-h: 68px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 18px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--rose-ink); text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 2px; border-radius: 8px; }
h1:focus, h1:focus-visible, .main:focus { outline: none; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 10px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.ico { display: inline-flex; flex: none; width: 24px; height: 24px; }
.ico svg { width: 100%; height: 100%; }
.ico-sm { width: 20px; height: 20px; }
.ico-xs { width: 17px; height: 17px; vertical-align: -3px; margin-right: 4px; }
.push { margin-left: auto; }
.muted { color: var(--ink-2); }
.small { font-size: 16px; }
.strong { font-weight: 600; }
.row { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.stack { display: flex; flex-direction: column; gap: 20px; }

/* ---------- Marke (Schriftzug) ---------- */
.brand-mark {
  --w: 220px;
  display: block;
  width: var(--w);
  height: calc(var(--w) * 295 / 1184);
  background: url("../img/logo-ink-header.webp") left center / contain no-repeat;
}

/* ---------- Begrüßung ---------- */
.welcome {
  min-height: 100vh; min-height: 100dvh;
  display: grid; place-items: center;
  padding: 24px 16px;
  background: var(--blush);
}
.welcome-card {
  width: min(460px, 100%);
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.welcome-logo { width: min(320px, 82vw); height: auto; margin: 0 0 4px; }
.welcome-title { font: 600 clamp(34px, 8vw, 44px)/1.15 var(--serif); }
.welcome-text { font-size: 19px; color: var(--ink-2); max-width: 34ch; }
.btn-xl { min-height: 60px; padding: 0 34px; font-size: 20px; border-radius: 16px; width: min(320px, 100%); justify-content: center; }
.welcome-dog { display: flex; align-items: center; gap: 12px; margin: 10px 0 0; text-align: left; color: var(--ink-2); font-size: 16px; }
.welcome-dog img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; border: 3px solid var(--surface); }
.welcome-note { font-size: 15px; color: var(--ink-2); }

/* ---------- App-Hülle ---------- */
.app { min-height: 100vh; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 16px; padding-top: max(8px, env(safe-area-inset-top));
  background: rgba(247, 240, 230, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  min-height: 64px;
}
.brand { text-decoration: none; color: inherit; display: inline-flex; flex-direction: column; align-items: flex-start; }
.brand-mobile .brand-mark { --w: 168px; }
.savestate {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600; color: var(--sage);
  background: var(--sage-soft); padding: 6px 12px; border-radius: 999px;
  white-space: nowrap;
}
.save-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.savestate.is-pending { color: #8a5d0f; background: var(--amber-soft); }
.savestate.is-pending .save-dot { animation: pulse .8s ease-in-out infinite alternate; }
.savestate.flash { animation: flash 1.2s ease-out; }
@keyframes pulse { to { opacity: .3; } }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(79, 117, 80, .45); } 100% { box-shadow: 0 0 0 10px rgba(79, 117, 80, 0); } }

.main {
  padding: 20px 16px calc(var(--tabbar-h) + 40px + env(safe-area-inset-bottom));
  max-width: 1180px;
}
.sidebar { display: none; }

/* Untere Leiste (Handy) */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -8px 24px -18px rgba(58, 42, 34, .35);
}
.tabbar .nav-item {
  position: relative;
  min-height: var(--tabbar-h);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  text-decoration: none; color: var(--ink-2);
  font-size: 13.5px; font-weight: 600;
}
.tabbar .nav-ico { position: relative; display: grid; place-items: center; width: 56px; height: 32px; border-radius: 999px; transition: background .2s; }
.tabbar .nav-item.is-active { color: var(--rose-ink); }
.tabbar .nav-item.is-active .nav-ico { background: var(--rose-soft); }
.badge {
  position: absolute; top: 6px; left: calc(50% + 6px);
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--rose); color: #fff; font-size: 13px; font-weight: 700; line-height: 22px; text-align: center;
  box-shadow: 0 0 0 2px var(--surface);
}
.badge-inline { position: static; box-shadow: none; }

/* ---------- Überschriften ---------- */
.section-head { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.section-head > .btn { margin-top: 6px; }
.section-title { font: 600 clamp(28px, 6vw, 36px)/1.15 var(--serif); letter-spacing: -.01em; }
.lead { color: var(--ink-2); font-size: 18px; max-width: 60ch; }
.list-title { font: 600 21px/1.3 var(--serif); margin: 4px 0 12px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.list-sub { font: 400 16px var(--font); color: var(--ink-2); width: 100%; }
.count { font: 700 14px/1 var(--font); background: var(--surface-2); color: var(--ink-2); border-radius: 999px; padding: 5px 10px; }
.count-rose { background: var(--rose); color: #fff; }

/* ---------- Karten ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 16px;
  min-width: 0;
}
.card-head { display: flex; align-items: flex-start; gap: 12px; }
.card-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--blush); color: var(--ink); flex: none; }
.card-titles { flex: 1; min-width: 0; padding-top: 2px; }
.card-title { font: 600 20px/1.3 var(--serif); }
.card-sub { color: var(--ink-2); font-size: 16px; margin-top: 4px; }
.card-soft { background: var(--surface-2); box-shadow: none; }
.card-attention { border-color: var(--rose); box-shadow: 0 0 0 1px var(--rose), var(--shadow); }
.card-switch { padding: 10px 18px; gap: 6px; }
.text-link { font-weight: 600; text-decoration: none; color: var(--rose-ink); min-height: 44px; display: inline-flex; align-items: center; gap: 4px; padding: 0 4px; }
.text-link:hover { text-decoration: underline; }
.dash { display: flex; flex-direction: column; gap: 20px; }
.dash-col { display: contents; }
.grid-2 { display: grid; gap: 20px; grid-template-columns: 1fr; align-items: start; }

/* ---------- Knöpfe ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 18px;
  border-radius: var(--radius-sm); border: 1.5px solid transparent;
  font-weight: 600; font-size: 17px; line-height: 1.2;
  cursor: pointer; text-decoration: none; text-align: left;
  transition: background .15s, border-color .15s, color .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--rose); color: #fff; }
.btn-primary:hover { background: var(--rose-hover); }
.btn-soft { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-soft:hover { background: var(--surface-2); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-danger { background: #8b2e3d; color: #fff; }
.btn-danger:hover { background: #72232f; }
.btn-chip { background: var(--surface); border-color: var(--line-strong); border-radius: 999px; }
.btn-chip:hover { border-color: var(--rose); color: var(--rose-ink); }
.btn-sm { padding: 0 14px; font-size: 16px; gap: 8px; }
.btn-sm .ico { width: 20px; height: 20px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

.icon-btn {
  width: 48px; height: 48px; flex: none;
  display: inline-grid; place-items: center;
  border-radius: var(--radius-sm); border: 1.5px solid var(--line);
  background: var(--surface); color: var(--ink-2); cursor: pointer;
}
.icon-btn:hover:not([disabled]) { background: var(--surface-2); color: var(--ink); }
.icon-btn[disabled] { opacity: .3; cursor: not-allowed; }
.icon-btn-danger:hover:not([disabled]) { color: #8b2e3d; border-color: #e3b5bc; background: #fbeef0; }
.icon-btn.is-on { color: #b07a10; border-color: #ecd193; background: var(--amber-soft); }
.icon-btn.is-on svg { fill: #e2b13c; }

/* ---------- Formulare ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.field label, .tone-group legend, .field-label { font-weight: 600; }
.field-hint { font-size: 16px; color: var(--ink-2); }
.counter { font-size: 15px; color: var(--ink-3); white-space: nowrap; }
.counter.over { color: var(--rose-ink); font-weight: 700; }
input[type="text"], input[type="url"], input[type="date"], input[type="time"], input[type="email"], select, textarea {
  width: 100%; min-height: 52px;
  padding: 12px 14px;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  background: #fff;
  font-size: 18px;
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; line-height: 1.45; }
input::placeholder, textarea::placeholder { color: #a8968a; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px rgba(163, 72, 90, .2); }
[aria-invalid="true"] { border-color: #b3273f !important; }
.field-error { color: #9c2238; font-weight: 600; font-size: 16px; }
.field-error::before { content: "! "; }
.form-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.field > .btn, .card > .btn { align-self: flex-start; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236a5649' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 22px; padding-right: 44px; }

/* Schalter */
.switch { display: flex; align-items: center; gap: 14px; min-height: 56px; cursor: pointer; position: relative; padding: 4px 0; }
.switch input { position: absolute; opacity: 0; width: 52px; height: 32px; margin: 0; cursor: pointer; }
.switch-track { position: relative; flex: none; width: 54px; height: 32px; border-radius: 999px; background: #d6c6b4; transition: background .2s; }
.switch-thumb { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.switch input:checked + .switch-track { background: var(--sage); }
.switch input:checked + .switch-track .switch-thumb { transform: translateX(22px); }
.switch input:focus-visible + .switch-track { outline: 3px solid var(--rose); outline-offset: 3px; }
.switch-text { display: flex; flex-direction: column; }
.switch-label { font-weight: 600; }
.switch-hint { font-size: 16px; color: var(--ink-2); }

.check { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; cursor: pointer; }
.check input { width: 24px; height: 24px; accent-color: var(--rose); margin: 0; flex: none; }

/* Hinweise im Text */
.note { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; color: var(--ink-2); }
.note .ico { color: var(--ink-3); width: 22px; height: 22px; margin-top: 1px; }
.note-info { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; color: var(--ink); }
.note-warn { background: var(--amber-soft); border-radius: var(--radius-sm); padding: 12px 14px; color: #5d4210; }
.note-warn .ico { color: #a87212; }

.tag { display: inline-flex; align-items: center; gap: 2px; font: 700 13px/1 var(--font); padding: 5px 9px; border-radius: 999px; letter-spacing: .01em; vertical-align: 3px; }
.tag .ico-xs { margin-right: 2px; width: 15px; height: 15px; vertical-align: 0; }
.tag-muted { background: var(--surface-2); color: var(--ink-2); }
.tag-rose { background: var(--rose-soft); color: var(--rose-ink); }
.tag-cream { background: rgba(255, 252, 247, .94); color: var(--ink); }

.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 18px 8px; }
.empty-ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--blush); color: var(--ink-2); margin-bottom: 4px; }
.empty-ico .ico { width: 30px; height: 30px; }
.empty-title { font: 600 19px var(--serif); }
.empty-text { color: var(--ink-2); max-width: 36ch; margin-bottom: 8px; }
.empty-line { padding: 4px 2px 8px; }

/* ---------- Start ---------- */
.hello { display: flex; gap: 16px; align-items: center; }
.hello-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid var(--surface); box-shadow: 0 0 0 2px var(--blush-2); flex: none; }
.big-stat { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; padding: 6px 10px 6px 4px; border-radius: 14px; min-height: 64px; }
.big-stat:hover { background: var(--surface-2); }
.big-num { font: 600 48px/1 var(--serif); color: var(--rose); min-width: 40px; }
.big-label { font-weight: 600; flex: 1; }
.mini-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.mini-list li { display: flex; gap: 14px; align-items: center; }
.mini-text { display: flex; flex-direction: column; min-width: 0; }
.mini-text .muted { font-size: 16px; }
.date-chip { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 12px; background: var(--blush); flex: none; line-height: 1.05; }
.date-chip strong { font: 600 22px var(--serif); }
.date-chip span { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
.status-pill { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-weight: 700; }
.status-open { background: var(--sage-soft); color: var(--sage); }
.status-appointment { background: var(--amber-soft); color: #7a5410; }
.status-closed { background: #ece3dd; color: var(--ink); }
.status-vacation { background: var(--rose-soft); color: var(--rose-ink); }
.quick-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.vac-form { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--radius-sm); background: var(--surface-2); }
.vac-form > label:first-child { font-weight: 600; }
.site-list { display: flex; flex-direction: column; gap: 10px; }
.how { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.how li::marker { color: var(--rose); font-weight: 700; }
ul.how { list-style: disc; }

/* ---------- Hinweis / Banner ---------- */
.bn { padding: 12px 16px; text-align: center; font-size: 15.5px; line-height: 1.4; }
.bn-text { max-width: 60ch; margin: 0 auto; overflow-wrap: anywhere; }
.bn-link { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; margin-left: 8px; white-space: nowrap; }
.bn-info { background: #e8dfcf; color: var(--ink); }
.bn-warn { background: #f3d699; color: #43300d; }
.bn-closed { background: #3a2a22; color: #f7efe4; }
.bn-sale { background: var(--rose); color: #fff; }
.bn-compact { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }
.bn-compact .bn { font-size: 15px; padding: 12px 14px; }
.bn-compact.is-off .bn, .preview.is-off .bn { filter: grayscale(1); opacity: .5; }
.chips-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.vis-state { display: flex; gap: 8px; align-items: flex-start; font-size: 16px; font-weight: 600; padding: 2px 0 8px; }
.vis-state .ico { width: 22px; height: 22px; }
.vis-on { color: var(--sage); }
.vis-off { color: var(--ink-2); }
.vis-warn { color: #8a5d0f; }
.vis-wait { color: var(--ink-2); }

.tone-group { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tone-group legend { padding: 0; margin-bottom: 8px; }
.tone-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tone-chip { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px; min-height: 64px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; background: #fff; }
.tone-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tone-sample { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; font: 600 16px var(--serif); flex: none; padding: 0; }
.tone-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.tone-text span { font-size: 14px; color: var(--ink-2); }
.tone-chip:has(input:checked) { border-color: var(--rose); box-shadow: 0 0 0 1.5px var(--rose); background: var(--rose-soft); }
.tone-chip:has(input:focus-visible) { outline: 3px solid var(--rose); outline-offset: 2px; }

.preview { position: relative; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fbf7f1; box-shadow: var(--shadow); }
.pv-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.pv-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.pv-url { margin-left: 8px; flex: 1; background: var(--surface); border-radius: 999px; font-size: 13px; color: var(--ink-3); padding: 3px 12px; }
.pv-page { padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.pv-nav { display: flex; align-items: center; justify-content: space-between; }
.pv-logo { --w: 92px; }
.pv-lines { display: flex; gap: 8px; }
.pv-lines i { width: 32px; height: 6px; border-radius: 3px; background: var(--line); }
.pv-hero { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 6px; }
.pv-hero img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; }
.pv-hero img:first-child { aspect-ratio: auto; height: 100%; }
.pv-off { position: absolute; left: 50%; top: 58%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 8px; background: rgba(58, 42, 34, .88); color: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 15px; white-space: nowrap; }
.side-title { display: flex; align-items: center; gap: 8px; font: 600 18px var(--serif); margin-bottom: 10px; color: var(--ink-2); }

/* Zweispaltig (Formular + Vorschau) */
.split { display: flex; flex-direction: column; gap: 20px; }
.split > * { min-width: 0; }
.split-main { min-width: 0; }

/* ---------- Termine / Links / Anfragen (Listen) ---------- */
.ev-list, .lk-list, .bk-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ev, .lk, .bk {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px; display: flex; gap: 14px;
}
.ev-date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 64px; min-height: 76px; padding: 6px 0; border-radius: 14px; background: var(--blush); flex: none; line-height: 1.1; align-self: flex-start; }
.ev-date strong { font: 600 28px var(--serif); }
.ev-date span { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.ev-wd { color: var(--rose-ink) !important; }
.ev-body, .lk-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ev-title, .lk-title { font: 600 19px/1.35 var(--serif); overflow-wrap: break-word; hyphens: auto; }
.ev-title .tag, .lk-title .tag { margin-left: 8px; }
.lk-title .star-on { vertical-align: -3px; margin-right: 6px; }
.ev-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--ink-2); font-size: 16px; }
.ev-note, .lk-note { font-size: 16px; color: var(--ink-2); }
.ev-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ev, .lk { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 14px; }
.ev > .ev-actions, .lk > .ev-actions { grid-column: 1 / -1; padding-top: 12px; border-top: 1px solid var(--line); }
.ev.is-hidden, .lk.is-hidden { background: var(--surface-2); border-style: dashed; }
.ev.is-hidden .ev-date { opacity: .55; }
.ev.is-past { box-shadow: none; }
.ev.is-past .ev-date { background: var(--surface-2); }

details.past { background: transparent; }
details.past > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 14px;
  border-radius: var(--radius-sm); background: var(--surface-2); font-weight: 600; color: var(--ink-2);
}
details.past > summary::-webkit-details-marker { display: none; }
.summary-chev { transition: transform .2s; }
details[open] > summary .summary-chev { transform: rotate(90deg); }
details.past[open] > summary { margin-bottom: 12px; }
details.past > p { margin: 0 0 12px; }

.lk { align-items: flex-start; }
.lk-order { display: flex; flex-direction: column; align-items: center; gap: 4px; grid-row: 1; }
.lk-pos { font: 600 16px var(--serif); color: var(--ink-3); }
.lk-url { font-size: 16px; text-decoration: none; display: inline-flex; align-items: center; gap: 2px; align-self: flex-start; min-height: 32px; overflow-wrap: anywhere; }
.lk-url:hover { text-decoration: underline; }
.lk.is-star { border-color: #ecd193; box-shadow: 0 0 0 1px #ecd193, var(--shadow); }
.star-on { color: #c08d1c; }
.star-on svg { fill: #e2b13c; }

/* Anprobe */
.segmented { display: flex; padding: 4px; border-radius: 16px; background: var(--surface-2); gap: 4px; align-self: stretch; }
.segmented .seg { flex: 1; justify-content: center; }
.seg { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border: 0; border-radius: 12px; background: transparent; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.seg.is-active { background: var(--surface); color: var(--rose-ink); box-shadow: 0 1px 4px rgba(58, 42, 34, .15); }
.bk { flex-direction: column; gap: 10px; border-left-width: 5px; }
.bk-angefragt { border-left-color: var(--rose); }
.bk-bestaetigt { border-left-color: var(--sage); }
.bk-abgelehnt { border-left-color: var(--line-strong); background: var(--surface-2); box-shadow: none; }
.bk.is-past { opacity: .75; }
.bk-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bk-name { font: 600 21px var(--serif); }
.bk-when { display: flex; gap: 8px; align-items: flex-start; }
.bk-when .ico { margin-top: 2px; color: var(--rose-ink); }
.bk-product { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; padding: 6px; margin: 0 -6px; border-radius: 12px; align-self: flex-start; }
.bk-product:hover { background: var(--surface-2); }
.bk-product img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.bk-product > span { display: flex; flex-direction: column; line-height: 1.25; }
.bk-note { margin: 0; padding: 10px 14px; border-left: 3px solid var(--blush-2); background: #fbf6ef; border-radius: 0 10px 10px 0; font-style: italic; color: var(--ink-2); font-size: 17px; }
.bk-contact { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 16px; }
.bk-contact a { min-height: 40px; display: inline-flex; align-items: center; }
.bk-mails { font-size: 16px; color: var(--ink-2); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.bk-mails a { font-weight: 600; min-height: 40px; display: inline-flex; align-items: center; }
.bk-group { display: flex; flex-direction: column; }

.wd-list { list-style: none; margin: 0; padding: 0; }
.wd-row { border-top: 1px solid var(--line); padding: 6px 0 10px; }
.wd-row:first-child { border-top: 0; }
.wd-times { display: flex; flex-direction: column; gap: 10px; padding: 4px 0 4px 0; }
.time-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.time-chip { display: inline-flex; align-items: center; gap: 2px; padding-left: 14px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: #fff; font-weight: 600; font-variant-numeric: tabular-nums; min-height: 48px; }
.chip-x { width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; }
.chip-x .ico { width: 20px; height: 20px; }
.chip-rose { border-color: #e9c3c8; background: var(--rose-soft); color: var(--rose-ink); }
.time-add { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.time-add input[type="time"] { width: 150px; }

.stepper { display: flex; align-items: center; gap: 8px; }
.step-val { min-width: 130px; text-align: center; font-size: 18px; padding: 10px 0; border-radius: 12px; background: var(--surface-2); }
.step-val strong { font: 600 22px var(--serif); }

.cal { display: flex; flex-direction: column; gap: 8px; margin: 0 -6px; max-width: 480px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; }
.cal-title { font: 600 19px var(--serif); text-transform: capitalize; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-wds span { text-align: center; font-size: 14px; font-weight: 700; color: var(--ink-3); padding: 4px 0; }
.cal-day {
  position: relative; aspect-ratio: 1; min-height: 44px;
  display: grid; place-items: center;
  border: 1.5px solid transparent; border-radius: 12px; background: transparent;
  font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink-3); cursor: pointer;
}
.cal-day:hover:not([disabled]) { border-color: var(--line-strong); }
.cal-day.is-fit { background: var(--sage-soft); color: var(--ink); }
.cal-day.is-blocked { background: var(--rose-soft); color: var(--rose-ink); border: 1.5px dashed var(--rose); }
.cal-day.is-blocked span { text-decoration: line-through; text-decoration-thickness: 2px; }
.cal-day.is-today { box-shadow: inset 0 0 0 2px var(--ink); }
.cal-day.has-booking::after { content: ""; position: absolute; bottom: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--rose); }
.cal-day[disabled] { opacity: .35; cursor: default; background: transparent; border-color: transparent; }
.cal-legend { list-style: none; margin: 4px 0 0; padding: 0 6px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 15px; color: var(--ink-2); }
.cal-legend li { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 16px; height: 16px; border-radius: 5px; display: inline-block; }
.lg-fit { background: var(--sage-soft); border: 1px solid #c6d6bd; }
.lg-blocked { background: var(--rose-soft); border: 1.5px dashed var(--rose); }
.lg-booked { width: 8px; height: 8px; border-radius: 50%; background: var(--rose); margin: 0 4px; }
.blocked-list { display: flex; flex-direction: column; gap: 8px; }

.slot-days { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.slot-date { font-weight: 600; margin-bottom: 6px; }
.slot-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.slot { padding: 6px 12px; border-radius: 999px; background: var(--sage-soft); color: var(--sage); font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.slot.is-taken { background: var(--surface-2); color: var(--ink-3); text-decoration: line-through; }

/* Shop */
.fe-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; counter-reset: fe; }
.fe { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 6px 12px; padding: 8px 10px 8px 8px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.fe-pos, .fe img { grid-row: 1 / span 2; }
.fe-btns { grid-column: 3; }
.fe-pos { font: 600 18px var(--serif); color: var(--rose-ink); width: 22px; text-align: center; flex: none; }
.fe img { width: 64px; height: 84px; object-fit: cover; border-radius: 8px; flex: none; }
.fe-name { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; align-self: end; }
.fe-name strong { font-weight: 600; overflow-wrap: break-word; }
.fe-btns { display: flex; gap: 4px; flex: none; }
.fe-btns .icon-btn { width: 44px; height: 48px; }
.pr-cat + .pr-cat { margin-top: 18px; }
.pr-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pr { border: 1.5px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.pr.is-on { border-color: var(--rose); box-shadow: 0 0 0 1.5px var(--rose); }
.pr-img { position: relative; }
.pr-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.pr-tags { position: absolute; left: 8px; top: 8px; right: 8px; display: flex; flex-wrap: wrap; gap: 4px; }
.pr-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pr-name { font: 600 17px/1.25 var(--serif); }
.pr-meta { font-size: 15px; color: var(--ink-2); line-height: 1.35; }
.pr-meta strong { color: var(--ink); }
.check-big { margin-top: auto; padding: 4px 0; font-weight: 600; font-size: 16px; line-height: 1.2; }
.pr .text-link { min-height: 40px; padding: 0; font-size: 15px; }

/* Atelier */
.mode-cards { border: 0; margin: 0; padding: 0; min-width: 0; }
.mode-cards legend { padding: 0; margin-bottom: 12px; }
.mode-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.mode-card { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px; min-height: 76px; border: 1.5px solid var(--line); border-radius: 16px; background: #fff; cursor: pointer; }
.mode-card input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.mode-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--surface-2); flex: none; }
.mode-text { display: flex; flex-direction: column; line-height: 1.3; flex: 1; }
.mode-text strong { font-size: 19px; }
.mode-text span { font-size: 15.5px; color: var(--ink-2); }
.mode-check { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; color: transparent; flex: none; }
.mode-check .ico { width: 18px; height: 18px; }
.mode-card:has(input:checked) { border-color: var(--rose); box-shadow: 0 0 0 1.5px var(--rose); background: var(--rose-soft); }
.mode-card:has(input:checked) .mode-check { background: var(--rose); border-color: var(--rose); color: #fff; }
.mode-card:has(input:checked) .mode-ico { background: var(--surface); color: var(--rose-ink); }
.mode-card:has(input:focus-visible) { outline: 3px solid var(--rose); outline-offset: 2px; }
.hours-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.hours-row { display: grid; grid-template-columns: 1fr 48px; gap: 8px 10px; align-items: end; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.hours-row .field:nth-child(2) { grid-column: 1; }
.hours-del { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.google-jump { text-decoration: none; align-items: center; min-height: 52px; }
.card-google:focus { outline: none; }
.card-google { border: 2px solid #c9d8ee; background: #f7faff; }
.ico-google { background: #fff; border: 1px solid #dfe6f1; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: st; display: flex; flex-direction: column; gap: 14px; }
.steps li { counter-increment: st; position: relative; padding-left: 46px; }
.steps li::before { content: counter(st); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%; background: #2f5ea8; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 16px; }
.card-google .btn-primary { background: #2f5ea8; }
.card-google .btn-primary:hover { background: #244b88; }

/* Über mich */
.about-pv { display: flex; gap: 16px; align-items: flex-start; }
.about-pv img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex: none; }
.about-head { font: 600 22px var(--serif); }
.about-role { font-style: italic; font-family: var(--serif); color: var(--rose-ink); margin-bottom: 8px; }
.about-text { color: var(--ink); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; }
.facts dt { font-weight: 600; color: var(--ink-2); }
.facts dd { margin: 0; }

/* Mehr */
.more-grid { display: flex; flex-direction: column; gap: 10px; }
.more-tile { display: flex; align-items: center; gap: 14px; padding: 14px 16px; min-height: 72px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: inherit; box-shadow: var(--shadow); }
.more-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--blush); flex: none; }
.more-text { display: flex; flex-direction: column; flex: 1; line-height: 1.3; }
.more-text strong { font: 600 19px var(--serif); }
.more-text span { font-size: 16px; color: var(--ink-2); }
.more-chev { color: var(--ink-3); }

/* ---------- Dialog (Bottom-Sheet) ---------- */
dialog.sheet {
  border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 100%;
  max-height: 92vh; max-height: 92dvh;
  border-radius: 22px 22px 0 0; background: var(--surface); color: var(--ink);
  box-shadow: 0 -10px 40px rgba(58, 42, 34, .25);
  animation: sheetIn .22s ease-out;
}
dialog.sheet::backdrop { background: rgba(42, 30, 24, .45); }
@keyframes sheetIn { from { transform: translateY(40px); opacity: 0; } }
.sheet-form { display: flex; flex-direction: column; max-height: inherit; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 6px 20px; }
.sheet-head h2 { font: 600 24px var(--serif); }
.sheet-x { border: 0; }
.sheet-intro { padding: 0 20px; color: var(--ink-2); }
.sheet-body { padding: 12px 20px 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; }
.sheet-actions { display: flex; gap: 10px; justify-content: flex-end; padding: 12px 16px; padding-bottom: max(12px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.sheet-actions .btn-primary { flex: 1; justify-content: center; max-width: 320px; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; left: 12px; right: 12px; bottom: calc(var(--tabbar-h) + 12px + env(safe-area-inset-bottom)); z-index: 60; display: flex; justify-content: center; pointer-events: none; }
.toast {
  pointer-events: auto;
  display: flex; align-items: center; gap: 6px;
  max-width: 560px; width: 100%;
  padding: 6px 6px 6px 16px; min-height: 60px;
  background: var(--ink); color: #f7efe4; border-radius: 16px;
  box-shadow: 0 12px 34px -10px rgba(0, 0, 0, .45);
  animation: toastIn .2s ease-out;
}
.toast.leaving { opacity: 0; transform: translateY(8px); transition: .2s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } }
.toast-msg { flex: 1; display: flex; align-items: center; gap: 10px; font-size: 16.5px; font-weight: 600; line-height: 1.3; }
.toast-msg .ico { color: #a9c7a4; }
.toast-undo { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 14px; border: 0; border-radius: 12px; background: #f6dcd8; color: #5b2230; font-weight: 700; cursor: pointer; white-space: nowrap; }
.toast-undo:hover { background: #fff; }
.toast-close { width: 44px; height: 48px; border: 0; background: transparent; color: #cdbfb3; cursor: pointer; display: grid; place-items: center; border-radius: 12px; }
.toast-undo .ico, .toast-close .ico { width: 20px; height: 20px; }

/* ---------- Größere Handys / Tablets ---------- */
@media (min-width: 560px) {
  .main { padding-left: 24px; padding-right: 24px; }
  .mode-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .pr-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
  .tone-chips { grid-template-columns: repeat(4, 1fr); }
  .tone-chip { flex-direction: column; align-items: flex-start; }
  .hours-row { grid-template-columns: 1fr 1.4fr 48px; }
  .hours-row .field:nth-child(2) { grid-column: auto; }
  .hours-del { grid-column: auto; grid-row: auto; align-self: end; }
  .card { padding: 22px; }
  .cal { margin: 0; }
  .wd-times { padding-left: 68px; }
  .segmented { display: inline-flex; align-self: flex-start; }
  .segmented .seg { flex: none; }
  .cal-grid { gap: 6px; }
  .section-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px 20px; }
  .section-head .lead { grid-column: 1 / -1; grid-row: 2; }
  .section-head > .btn { margin-top: 0; grid-column: 2; grid-row: 1; }
}

/* ---------- Computer: Seitenleiste ---------- */
@media (min-width: 960px) {
  .app { display: grid; grid-template-columns: 272px minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .sidebar {
    display: flex; flex-direction: column; gap: 18px;
    grid-row: 1 / span 2; position: sticky; top: 0; height: 100vh; overflow-y: auto;
    background: var(--blush); padding: 22px 16px;
    border-right: 1px solid var(--blush-2);
  }
  .sidebar .brand { padding: 0 8px; }
  .brand-sub { font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin: 2px 0 0 4px; }
  .side-nav { display: flex; flex-direction: column; gap: 2px; }
  .side-nav .nav-item {
    display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 0 12px;
    border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 600;
  }
  .side-nav .nav-item:hover { background: rgba(255, 252, 247, .5); }
  .side-nav .nav-item.is-active { background: var(--surface); color: var(--rose-ink); box-shadow: 0 1px 3px rgba(58, 42, 34, .12); }
  .side-nav .nav-ico { position: relative; display: grid; place-items: center; }
  .side-nav .badge { position: static; margin-left: auto; box-shadow: none; }
  .side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; padding-top: 14px; border-top: 1px solid var(--blush-2); }
  .side-label { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); padding: 0 12px; }
  .side-sites { display: flex; flex-direction: column; }
  .site-link { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 12px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; }
  .site-link:hover { background: rgba(255, 252, 247, .5); }
  .site-link .ico { margin-left: auto; color: var(--ink-3); }

  .topbar { grid-column: 2; justify-content: flex-end; padding: 10px 32px; min-height: 60px; background: rgba(247, 240, 230, .9); }
  .brand-mobile { display: none; }
  .main { grid-column: 2; padding: 28px 32px 80px; width: 100%; }
  .tabbar { display: none; }
  .toasts { bottom: 24px; left: 272px; }
  .main[data-route="mehr"] .more-grid { display: grid; grid-template-columns: 1fr 1fr; }

  dialog.sheet { margin: auto; width: min(620px, calc(100% - 48px)); border-radius: 22px; max-height: 88vh; animation: dialogIn .2s ease-out; }
  @keyframes dialogIn { from { transform: scale(.97); opacity: 0; } }
  .sheet-head { padding: 20px 20px 6px 28px; }
  .sheet-intro, .sheet-body { padding-left: 28px; padding-right: 28px; }
  .sheet-actions { padding: 14px 20px; border-radius: 0 0 22px 22px; }
}

@media (min-width: 1180px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .dash { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .dash-col { display: flex; flex-direction: column; gap: 20px; }
  .split { display: grid; grid-template-columns: minmax(0, 1fr) 400px; align-items: start; gap: 24px; }
  .split-shop { grid-template-columns: 360px minmax(0, 1fr); }
  .sticky { position: sticky; top: 84px; }
  .split-side .card-google { position: sticky; top: 84px; }
  .google-jump { display: none; }
}

/* Hinweis: Vorschau am Handy zuerst */
@media (max-width: 1179px) {
  .main[data-route="hinweis"] .split-side { order: -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Schmale Handys: Aktionsknöpfe etwas kompakter, damit sie in eine Zeile passen */
@media (max-width: 420px) {
  .ev, .lk, .bk { padding: 14px; }
  .ev-actions { gap: 6px; }
  .ev-actions .btn { padding: 0 13px; gap: 6px; }
}

/* =========================================================
   Feinschliff nach QA-Durchgang
   ========================================================= */
.nowrap { white-space: nowrap; }

/* Seitenleiste: Farbe reicht immer bis ganz unten */
@media (min-width: 960px) {
  .app { background: linear-gradient(to right, var(--blush) 271px, var(--blush-2) 271px, var(--blush-2) 272px, transparent 272px); }
}

/* Farbwahl: Kacheln dürfen schrumpfen (vorher ragten sie bei 360 px aus der Karte) */
.tone-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tone-chip { flex-direction: column; align-items: flex-start; gap: 8px; }
.tone-text strong, .tone-text span { overflow-wrap: break-word; hyphens: auto; }
@media (min-width: 560px) { .tone-chips { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Zwei Felder nebeneinander: Eingabefelder auf gleicher Höhe, Erklärung darunter */
.form-grid .field > .field-hint { order: 3; }
.form-grid .field > .field-error { order: 4; }
.form-grid .field > .btn { order: 5; }

/* Tippflächen: mindestens 44 px */
.text-link { min-width: 44px; justify-content: center; padding: 0 8px; }
.lk-url, .bk-contact a, .pr .text-link { min-height: 44px; }

/* Anfrage: Antwort-Mails als zwei klare Knöpfe */
.bk-mails { display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); color: var(--ink); }
.bk-mails-label { font-size: 15px; font-weight: 700; color: var(--ink-2); }
.bk-mails .row { gap: 8px; }
.bk-mails .btn { background: var(--surface); border-color: var(--line-strong); color: var(--ink); font-weight: 600; }
.bk-mails .btn:hover { border-color: var(--rose); color: var(--rose-ink); }

/* Öffnungszeiten: „Tag / Zeit“ nur über der ersten Zeile (für Screenreader bleiben die Labels) */
@media (min-width: 560px) {
  .hours-row + .hours-row label {
    position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .hours-list { gap: 10px; }
  .hours-row { padding-bottom: 10px; }
}

/* Shop-Auswahl am Handy: Zeilen mit Foto links statt zwei gequetschter Spalten */
.pr-tags-body { display: none; }
@media (max-width: 559px) {
  .pr-grid { grid-template-columns: 1fr; gap: 10px; }
  .pr { flex-direction: row; align-items: stretch; }
  .pr-img { width: 112px; flex: none; }
  .pr-img img { height: 100%; min-height: 150px; aspect-ratio: auto; }
  .pr-img .pr-tags { display: none; }
  .pr-tags-body { display: flex; position: static; flex-wrap: wrap; gap: 4px; margin-bottom: 2px; }
  .pr-body { padding: 10px 12px; gap: 2px; }
  .pr .check-big { margin-top: 6px; }
  .card-head:has(> .btn) { flex-wrap: wrap; }
  .card-head:has(> .btn) .card-titles { flex: 1 1 150px; }
  .card-head > .btn { margin-left: 56px; }
  .card-head > .btn-ghost { margin-left: 42px; }
}

/* Schmale Handys */
@media (max-width: 420px) {
  .ev-actions { gap: 4px; }
  .ev-actions .btn-ghost { padding: 0 8px; }
  /* Anfragen: Hauptaktion bekommt eine eigene, volle Zeile */
  .bk .ev-actions > .btn-primary { flex: 1 1 100%; justify-content: center; }
  .bk .ev-actions { gap: 8px; }
  .bk-mails .row .btn { flex: 1 1 auto; justify-content: center; }
}
@media (max-width: 400px) {
  .brand-mobile .brand-mark { --w: 150px; }
  .savestate { font-size: 14px; padding: 6px 10px; gap: 6px; }
  .topbar { gap: 8px; }
}
.pr-tags-body .tag { background: var(--surface-2); color: var(--ink-2); }
.bk-mails a.btn { min-height: 44px; }
.brand-mobile { min-height: 44px; justify-content: center; }

/* =========================================================
   Termine mit Art & Zeitraum, Öffnungstage, Lookbook
   ========================================================= */

/* Auswahlknöpfe im Formular (z. B. Art des Termins) */
.choice-group { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.choice-group legend { padding: 0; margin-bottom: 8px; }
.choice-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.choice-chip { position: relative; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 12px; border: 1.5px solid var(--line-strong); border-radius: 14px; background: #fff; cursor: pointer; font-weight: 600; line-height: 1.2; }
.choice-chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.choice-chip .ico { color: var(--ink-3); }
.choice-chip:has(input:checked) { border-color: var(--rose); box-shadow: 0 0 0 1.5px var(--rose); background: var(--rose-soft); color: var(--rose-ink); }
.choice-chip:has(input:checked) .ico { color: var(--rose-ink); }
.choice-chip:has(input:focus-visible) { outline: 3px solid var(--rose); outline-offset: 2px; }
@media (min-width: 560px) { .choice-chips { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Art-Schildchen */
.ev-tags, .mini-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-type { text-transform: none; }
.tag-markt { background: var(--amber-soft); color: #6b4a0e; }
.tag-kurs { background: var(--sage-soft); color: #36573a; }
.tag-atelier { background: var(--blush); color: var(--ink); }
.tag-sonstiges { background: var(--surface-2); color: var(--ink-2); }
.tag-sample { background: #efe6f3; color: #5c3f6b; }

/* Mehrtägige Termine */
.ev-date { width: 72px; }
.ev-date.is-range { padding: 6px 4px; }
.ev-date.is-range strong { font-size: 21px; white-space: nowrap; }
.ev-date span { white-space: nowrap; }
.ev.is-running { border-color: var(--rose); box-shadow: 0 0 0 1px var(--rose), var(--shadow); }
.ev-body .lk-url { min-height: 44px; }
.date-chip.is-range { width: auto; min-width: 56px; padding: 0 8px; }
.date-chip.is-range strong { font-size: 17px; white-space: nowrap; }
.mini-list li { align-items: flex-start; }
.mini-text { gap: 2px; }
.mini-tags .tag { vertical-align: 0; }

/* Schnellfilter */
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--surface); font-weight: 600; cursor: pointer; }
.filter-chip:hover { border-color: var(--rose); color: var(--rose-ink); }
.filter-chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter-count { font-size: 14px; font-weight: 700; min-width: 24px; padding: 2px 7px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); text-align: center; }
.filter-chip.is-active .filter-count { background: rgba(255, 255, 255, .2); color: #fff; }

/* Öffnungstage als große Knöpfe */
.day-set { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.day-set legend { padding: 0; margin-bottom: 10px; }
.day-chips { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; max-width: 480px; }
.day-chip { position: relative; display: grid; place-items: center; min-height: 52px; border: 1.5px solid var(--line-strong); border-radius: 14px; background: #fff; font-weight: 700; cursor: pointer; }
.day-chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.day-chip:has(input:checked) { background: var(--sage); border-color: var(--sage); color: #fff; }
.day-chip:has(input:focus-visible) { outline: 3px solid var(--rose); outline-offset: 2px; }
@media (max-width: 400px) { .day-chips { gap: 4px; } .day-chip { min-height: 48px; border-radius: 12px; font-size: 16px; } }

/* Grundregel-Zeilen mit Reihenfolge */
.hours-block { display: flex; flex-direction: column; gap: 10px; }
.hours-row { grid-template-columns: minmax(0, 1fr); }
.hours-row .field:nth-child(2) { grid-column: 1; }
.hours-btns { display: flex; gap: 6px; justify-content: flex-end; }
@media (min-width: 560px) {
  .hours-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; }
  .hours-row .field:nth-child(2) { grid-column: auto; }
  .hours-btns .icon-btn { width: 44px; }
}
.self-start { align-self: flex-start; }

/* Vorschau: automatisch geschlossene Tage */
.closed-pv { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); }
.closed-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.closed-list li { display: flex; flex-wrap: wrap; gap: 2px 12px; }
.closed-date { font-weight: 700; min-width: 11ch; }
.closed-why { color: var(--ink-2); }
.mini-text strong, .mini-text .muted, .closed-why, .closed-date, .switch-label, .switch-hint, .note > span { overflow-wrap: anywhere; hyphens: auto; min-width: 0; }

/* Anprobe-Kalender: Markt- und Kurstage */
.cal-day.is-event { background: var(--amber-soft); color: #6b4a0e; border: 1.5px dotted #c99a3c; }
.lg-event { background: var(--amber-soft); border: 1.5px dotted #c99a3c; }

/* Lookbook */
.lb-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.lb {
  display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 12px 14px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px;
}
.lb > .ev-actions { grid-column: 1 / -1; padding-top: 12px; border-top: 1px solid var(--line); }
.lb.is-hidden { background: var(--surface-2); border-style: dashed; }
.lb.is-hidden .lb-thumb { opacity: .55; }
.lb.is-sample { border-style: dashed; border-color: var(--line-strong); }
.lb-thumb { width: 80px; height: 100px; object-fit: cover; border-radius: 10px; background: var(--surface-2); }
.lb-body { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.lb-title { font: 600 19px/1.35 var(--serif); overflow-wrap: break-word; }
.lb-meta { font-size: 16px; color: var(--ink-2); overflow-wrap: break-word; }
@media (max-width: 420px) {
  .lb { padding: 14px; gap: 10px 12px; }
  .lb-thumb { width: 64px; height: 80px; }
}

/* Foto-Auswahl */
dialog.sheet-wide { max-width: 100%; }
@media (min-width: 960px) { dialog.sheet-wide { width: min(860px, calc(100% - 48px)); } }
.pick-upload { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; padding: 14px; border-radius: var(--radius-sm); background: var(--surface-2); }
.pick-h { font: 600 19px var(--serif); }
.pick-status:empty { display: none; }
.pick-shop { display: flex; flex-direction: column; gap: 14px; }
.pick-group { display: flex; flex-direction: column; gap: 8px; }
.pick-title { margin: 0; font-size: 16px; font-weight: 700; color: var(--ink-2); }
.pick-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.pick { position: relative; display: block; width: 100%; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: var(--surface-2); cursor: pointer; }
.pick img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.pick:hover { border-color: var(--rose); }
.pick.is-used { border-color: var(--sage); }
.pick-used { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--sage); color: #fff; }
.pick-used .ico { width: 18px; height: 18px; }
.lb-form-pv { display: flex; align-items: center; gap: 14px; }
.lb-form-pv img { width: 72px; height: 90px; object-fit: cover; border-radius: 10px; flex: none; }
@media (max-width: 420px) {
  .filter-chips { gap: 6px; }
  .filter-chip { padding: 0 10px; gap: 6px; flex: 1 1 auto; justify-content: center; }
  .filter-count { padding: 2px 6px; min-width: 22px; }
}

/* ---------- Feste Kurse ---------- */
/* Auswahlknöpfe im Kurs-Formular: Wochentage (7) und Wochen im Monat (5) in einer Reihe */
.choice-chips.chips-days { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; max-width: 480px; }
.choice-chips.chips-weeks { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; max-width: 420px; }
.chips-days .choice-chip, .chips-weeks .choice-chip { justify-content: center; padding: 6px 2px; text-align: center; font-weight: 700; }
.chips-weeks .choice-text { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.chips-weeks .choice-text strong { font: 600 20px var(--serif); }
.chip-sub { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.choice-chip:has(input:checked) .chip-sub { color: var(--rose-ink); }
.choice-group.has-error .choice-chip { border-color: #b3273f; }
@media (max-width: 400px) { .choice-chips.chips-days, .choice-chips.chips-weeks { gap: 4px; } .chips-days .choice-chip, .chips-weeks .choice-chip { border-radius: 12px; } }
.kc-rule-pv { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--sage-soft); color: #36573a; font-size: 16px; }
.kc-rule-pv .ico { margin-top: 1px; }
.kc-rule-pv > span { min-width: 0; overflow-wrap: anywhere; }
.kc-rule-next { color: var(--ink-2); }

/* Kurskarten (Grundgerüst wie die Linkliste) */
.kc .ev-tags .tag { vertical-align: 0; }
.kc-sub { font-family: var(--serif); font-style: italic; color: var(--rose-ink); margin-top: -4px; overflow-wrap: break-word; }
.kc-price { font-weight: 700; color: var(--ink); }
.kc-line { font-size: 16px; color: var(--ink-2); overflow-wrap: break-word; }
.kc-next { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); }
.kc.is-hidden .kc-next { background: var(--surface); }
.kc-dates { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.kc-date { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; padding: 5px 11px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: 15px; }
.kc-skips { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; font-size: 15px; color: var(--ink-2); }
.kc-skips li { overflow-wrap: anywhere; }
.kc-skip-date { font-weight: 700; text-decoration: line-through; text-decoration-thickness: 1.5px; }

/* Kurspausen: Datum + Knopf in einer Zeile (bricht bei Platzmangel um) */
.kc-break-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.kc-break-row input[type="date"] { flex: 1 1 180px; min-width: 0; max-width: 260px; }
.kc-break-row .btn { flex: none; }

/* ---------- Anmeldung mit Passwort (mit Worker) ---------- */
.login { display: grid; gap: 8px; text-align: left; margin-top: 8px; }
.login[hidden] { display: none; }
.login label { font-weight: 700; }
.login input { min-height: 54px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--line-strong); background: var(--surface); font-size: 19px; }
.login input:focus-visible { outline: 3px solid rgba(163, 72, 90, .3); border-color: var(--rose); }
.login input[aria-invalid="true"] { border-color: var(--rose); }
.login .field-error[hidden] { display: none; }
.login .btn { margin-top: 6px; }

/* ---------- Shop ---------- */
.tag-sage { background: var(--sage-soft); color: #36573a; }
.shop-panel { animation: shop-in .35s cubic-bezier(.22, .61, .36, 1) both; }
@keyframes shop-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.od-bar { justify-content: space-between; align-items: center; }
.wd { display: grid; gap: 10px; border-left: 3px solid var(--rose, #c0756a); }
.wd-title { display: flex; gap: 8px; align-items: center; font-size: 17px; margin: 0; }
.wd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.wd-item { display: grid; gap: 4px; padding-top: 10px; border-top: 1px solid var(--line, #e5ddd2); }
.wd-item p { margin: 0; }
.od-list, .ar-list, .od-items, .ph-list { list-style: none; margin: 0; padding: 0; }
.od-list, .ar-list { display: flex; flex-direction: column; gap: 14px; }
.od { display: flex; flex-direction: column; gap: 14px; border-left: 5px solid var(--line-strong); }
.od-bezahlt, .od-abholbereit { border-left-color: var(--rose); }
.od-verschickt, .od-abgeholt { border-left-color: var(--sage); }
.od-erstattet, .od-abgebrochen { background: var(--surface-2); box-shadow: none; }
.od-dispute { border-left-color: var(--amber); }
.od-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.od-no { font: 600 21px var(--serif); }
.od-when { margin-left: auto; }
.od-items { display: flex; flex-direction: column; gap: 10px; }
.od-item { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.od-item img, .od-noimg { width: 56px; height: 70px; border-radius: 10px; object-fit: cover; background: var(--surface-2); display: grid; place-items: center; color: var(--ink-3); }
.od-item-t { display: flex; flex-direction: column; line-height: 1.3; gap: 2px; }
.od-itemnote { font-style: italic; color: var(--ink-2); font-size: 16px; }
.od-price { font-variant-numeric: tabular-nums; white-space: nowrap; }
.od-sum { display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; border-top: 1px solid var(--line); }
.od-sum strong { font: 600 22px var(--serif); }
.od-cust { padding: 12px 14px; border-radius: 14px; background: var(--surface-2); display: flex; flex-direction: column; gap: 4px; }
.od-name { font-weight: 700; }
.od-addr { white-space: pre-line; }
.od-contact { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 16px; }
.od-contact a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; }
.od-track { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.od-track .ico { color: var(--sage); }
.od-actions { gap: 8px; }

.ar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; transition: opacity .3s; }
.ar.is-hidden { opacity: .7; background: var(--surface-2); box-shadow: none; }
.ar-img { position: relative; width: 72px; height: 90px; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; color: var(--ink-3); cursor: pointer; }
.ar-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.16, 1, .3, 1); }
.ar-img:hover img { transform: scale(1.06); }
.ar-img:focus-visible { outline: 3px solid var(--rose); outline-offset: 2px; }
.ar-imgcount { position: absolute; right: 4px; bottom: 4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: rgba(58, 42, 34, .78); color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.ar-name { font: 600 19px var(--serif); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ar-meta { color: var(--ink-2); font-size: 16px; }
.ar-btns { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }

.ph-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; margin-bottom: 14px; }
.ph { position: relative; border-radius: 14px; overflow: hidden; background: var(--surface-2); aspect-ratio: 4 / 5; animation: shop-in .3s ease both; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph.is-cover { outline: 3px solid var(--rose); outline-offset: -3px; }
.ph-cover { position: absolute; left: 6px; top: 6px; padding: 4px 8px; border-radius: 99px; background: var(--rose); color: #fff; font-size: 12px; font-weight: 700; }
.ph-btns { position: absolute; right: 4px; bottom: 4px; display: flex; gap: 4px; }
.ph-btns .icon-btn { background: rgba(255, 252, 247, .94); }
.ph-empty { grid-column: 1 / -1; padding: 18px 0; }
.ph-more { margin-top: 18px; }
.ph-more summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }

@media (max-width: 640px) {
  .ar { grid-template-columns: auto minmax(0, 1fr); }
  .ar-btns { grid-column: 1 / -1; justify-content: flex-start; }
  .od-when { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .shop-panel, .ph { animation: none; } }

/* ---------- Statistik ---------- */
.stat-tiles { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 560px) { .stat-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stat-tile { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.stat-tile-v { font-size: 30px; font-weight: 700; line-height: 1.15; }
.stat-tile-l { color: var(--ink-2); font-size: 15px; }
.stat-chart { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.stat-readout { color: var(--ink-2); font-size: 16px; }
.stat-bars { display: flex; align-items: stretch; gap: 2px; height: 160px; border-bottom: 1px solid var(--line-strong); }
.stat-col { flex: 1 1 0; min-width: 0; display: flex; align-items: flex-end; justify-content: center; padding: 0; border: 0; background: transparent; cursor: pointer; }
.stat-col:hover, .stat-col:focus-visible { background: var(--surface-2); }
.stat-bar { display: block; width: 100%; max-width: 24px; background: var(--rose); border-radius: 4px 4px 0 0; }
.stat-axis { display: flex; justify-content: space-between; color: var(--ink-2); font-size: 14px; }
.stat-table summary { cursor: pointer; color: var(--rose-ink); font-size: 16px; padding: 6px 0; }
.stat-table table { width: 100%; border-collapse: collapse; font-size: 16px; }
.stat-table th, .stat-table td { text-align: left; padding: 6px 0; border-bottom: 1px solid var(--line); }
.stat-table th:last-child, .stat-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.stat-rank { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.stat-rank li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 16px; }
.stat-rank-n { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.stat-rank-track { grid-column: 1 / -1; display: block; height: 8px; }
.stat-rank-track span { display: block; height: 100%; background: var(--rose); border-radius: 0 4px 4px 0; }
.stat-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stat-link > div { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
