/* Fixadresse Verwaltung. Phone first, calm iOS-like grouped lists, Fixadresse green with a copper accent.
   Sizes are in rem so iOS Dynamic Type (font: -apple-system-body) scales the whole app. */
:root {
  --bg: #f4f2ec;
  --card: #ffffff;
  --ink: #1a1f1c;
  --ink-2: #565d58;
  --ink-3: #5f6561;
  --line: rgba(26, 31, 28, .1);
  --fill: rgba(26, 31, 28, .06);
  --brand: #173e35;
  --brand-2: #22594b;
  --brand-soft: #e3ece7;
  --cream: #fbf9f2;
  --copper: #b8663d;
  --danger: #b3261e;
  --open: #1f7a4d;
  --closed: #a23b2a;
  --unknown: #8a6100;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(26, 31, 28, .05), 0 4px 16px rgba(26, 31, 28, .04);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --tab-h: calc(3.6rem + var(--safe-b));
  color-scheme: light;
}
html { font-size: 106.25%; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@supports (font: -apple-system-body) { html { font: -apple-system-body; } }
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: system-ui, -apple-system, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, sans-serif;
  line-height: 1.38; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, white); outline-offset: 2px; border-radius: 10px; }
svg { display: block; flex: none; }

.app { min-height: 100dvh; }
.main { padding: .25rem 1rem calc(var(--tab-h) + 6rem); max-width: 40rem; margin: 0 auto; }
.app[data-root="no"] .main { padding-bottom: 16rem; }

/* Top bar */
.bar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: .5rem;
  min-height: calc(3.25rem + var(--safe-t)); padding: var(--safe-t) .75rem 0 .75rem;
  /* Solid, so nothing scrolled shows through or looks cut under the bar. */
  background: var(--bg); border-bottom: .5px solid transparent;
}
.app[data-root="no"] .bar, .app[data-scrolled="yes"] .bar { border-bottom-color: var(--line); }
.shop-button {
  display: flex; align-items: center; gap: .55rem; min-height: 2.9rem; padding: .2rem .7rem .2rem .25rem; margin-right: auto;
  border: 0; background: transparent; border-radius: 999px; font-weight: 600; flex: 0 1 auto; min-width: 0;
}
.bar.compact .pill-label, .bar.compact-site .site .pill-label { display: none; }
.bar.no-site .site { display: none; }
.bar.compact .pill, .bar.compact-site .pill.site { padding: 0; width: 2.9rem; justify-content: center; }
.bar .pill { flex: none; }
.shop-button:active { background: var(--fill); }
.avatar {
  display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; flex: none;
  background: var(--brand); color: var(--cream); font-size: .78rem; font-weight: 700; letter-spacing: .02em;
}
.shop-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1rem; }
.shop-chevron svg { width: 1.05rem; height: 1.05rem; color: var(--ink-2); }
.pill {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 2.75rem; padding: 0 .95rem; border-radius: 999px;
  border: 0; background: var(--card); color: var(--brand); font-weight: 600; font-size: .9rem; box-shadow: var(--shadow); white-space: nowrap;
  text-decoration: none;
}
.pill svg { width: 1.25rem; height: 1.25rem; }
.back {
  display: inline-flex; align-items: center; gap: .3rem; min-height: 2.75rem; padding: 0 .4rem 0 .15rem; border: 0; background: none;
  color: var(--brand); font-size: 1rem; max-width: 42%; margin-right: auto;
}
.back span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.back svg { width: .8rem; height: 1.3rem; }
.bar-title {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: .85rem; font-weight: 600; font-size: 1rem; max-width: 46%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .15s;
}
.app[data-scrolled="yes"] .bar-title { opacity: 1; }
.icon-button {
  display: inline-grid; place-items: center; min-width: 2.75rem; min-height: 2.75rem; border: 0; border-radius: 999px;
  background: transparent; color: var(--brand);
}
.icon-button:active { background: var(--fill); }
.icon-button:disabled { color: var(--ink-3); opacity: .4; }
.icon-button svg { width: 1.4rem; height: 1.4rem; }
.icon-button.subtle { color: var(--ink-2); }
.text-button {
  min-height: 2.75rem; padding: 0 .6rem; border: 0; background: none; color: var(--brand); font-weight: 600; font-size: 1rem; border-radius: 10px;
  display: inline-flex; align-items: center; gap: .35rem; flex: none;
}
.text-button:active { background: var(--fill); }
.text-button.danger { color: var(--danger); }
.text-button svg { width: 1.2rem; height: 1.2rem; }

/* Page head */
.page-head { padding: .35rem .25rem 1rem; }
.page-head h1 { margin: 0; font-size: 2.05rem; line-height: 1.12; letter-spacing: -.02em; font-weight: 750; }
.page-head h1:focus { outline: none; }
.subtitle { margin: .35rem 0 0; color: var(--ink-2); font-size: .97rem; }
.app[data-root="no"] .page-head h1 { font-size: 1.75rem; }

/* Groups and rows */
.group { margin: 0 0 1.5rem; }
.group-title { margin: 0 .9rem .45rem; font-size: .84rem; font-weight: 600; color: var(--ink-2); letter-spacing: .01em; }
.group-intro { margin: -.15rem .9rem .7rem; font-size: .9rem; color: var(--ink-2); }
.group-intro a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -12px; color: var(--brand); font-weight: 600; font-size: 1rem; text-decoration-thickness: 1px; text-underline-offset: 3px; }
/* Intro lines and actions placed inside a card (Heute, Anfragen) get the same inset as the rows. */
.card > .group-intro { margin: 0; padding: .85rem 1rem .35rem; }
/* An intro that belongs to the page (Anfragen: how requests arrive) lines up with the page title, not a group's. */
.screen > .group-intro { margin-inline: .25rem; }
.card > .group-intro + .group-intro { padding-top: 0; }
.card > .button { margin: .6rem 1rem .9rem; width: auto; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.row {
  display: flex; align-items: center; gap: .8rem; width: 100%; min-height: 3.3rem; padding: .6rem 1rem; text-align: left;
  border: 0; background: var(--card); position: relative; font-size: 1rem;
}
.row + .row::before { content: ""; position: absolute; top: 0; left: 1rem; right: 0; border-top: .5px solid var(--line); }
.card > .row:has(.row-icon) + .row::before { left: 3.55rem; }
button.row:active, label.row:active { background: #f1f0ec; }
.row-icon { display: grid; place-items: center; width: 1.85rem; height: 1.85rem; border-radius: 8px; flex: none; background: var(--brand-soft); color: var(--brand); }
.row-icon svg { width: 1.15rem; height: 1.15rem; }
.icon-vacation { background: #f6e7dc; color: #8a4521; }
.icon-notice { background: #efe6f4; color: #5b3c71; }
.icon-tag { background: #e6eef6; color: #2a5170; }
.icon-contact { background: #e9efe4; color: #3e5a2a; }
.row-text { display: flex; flex-direction: column; gap: .1rem; flex: 1; min-width: 0; }
.row-title { font-size: 1rem; overflow-wrap: anywhere; }
.row-value { font-size: .87rem; color: var(--ink-2); overflow-wrap: anywhere; }
.nav-row .row-value { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row-title.muted { color: var(--ink-2); }
.row-title.quote { font-weight: 500; }
.chevron { color: #b5b8b5; flex: none; }
.chevron svg { width: .55rem; height: .9rem; }
.action-row .row-title { color: var(--brand); font-weight: 600; }
.action-row .row-icon { background: transparent; }
.action-row .row-icon svg { width: 1.35rem; height: 1.35rem; }
.price { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; flex: none; }
.is-hidden .row-title, .is-hidden .price { color: var(--ink-3); }
.tag {
  display: inline-block; align-self: flex-start; padding: .12rem .5rem; border-radius: 6px; font-size: .74rem; font-weight: 600;
  background: var(--fill); color: var(--ink-2); flex: none;
}
.order-row { padding-right: .5rem; gap: .25rem; }
.check-row { cursor: pointer; justify-content: space-between; }
.stack { display: grid; gap: .6rem; }

/* Status card */
.status-card { padding: 1.15rem 1.15rem 1.1rem; margin-bottom: 1.5rem; }
.status-title { display: flex; align-items: center; gap: .55rem; margin: 0; font-size: 1.05rem; font-weight: 650; }
.dot { width: .7rem; height: .7rem; border-radius: 50%; flex: none; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 16%, transparent); }
.dot-open { color: var(--open); background: var(--open); }
.dot-closed { color: var(--closed); background: var(--closed); }
.dot-unknown { color: var(--unknown); background: var(--unknown); }
.status-detail { margin: .45rem 0 .2rem; font-size: 1.55rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.18; text-wrap: balance; }
.status-hours { margin: 0; color: var(--ink-2); font-size: .95rem; }
.status-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.status-actions .button { flex: 1 1 auto; }
.status-more { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin-top: .6rem; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 3.1rem; padding: .55rem 1.1rem;
  border-radius: 13px; border: 0; font-weight: 600; font-size: 1rem; text-decoration: none; text-align: center; line-height: 1.2;
}
.button svg { width: 1.25rem; height: 1.25rem; }
.button.primary { background: var(--brand); color: var(--cream); }
.button.primary:active { background: var(--brand-2); }
.button.primary:disabled { background: #c9cfcb; color: #f5f5f3; }
.button.secondary { background: var(--brand-soft); color: var(--brand); }
.button.secondary:active { background: #d4e2da; }
.button.danger { background: var(--danger); color: #fff; }
.button.small { min-height: 2.75rem; padding: .4rem .95rem; font-size: .95rem; border-radius: 11px; }

/* Opening hours */
.day-card { padding: .35rem 1rem .75rem; margin-bottom: .75rem; }
.day-card.has-error { box-shadow: 0 0 0 2px var(--danger); }
.day-head { display: flex; align-items: center; gap: .6rem; min-height: 3rem; }
.day-name { font-weight: 650; font-size: 1.05rem; flex: 1; }
.day-state { color: var(--ink-2); font-size: .9rem; }
.intervals { display: grid; gap: .5rem; padding: .15rem 0 .2rem; }
.interval { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.to { color: var(--ink-2); font-size: .95rem; }
.time {
  min-height: 2.75rem; min-width: 6.4rem; padding: .3rem .7rem; border-radius: 10px; border: 0; background: var(--fill);
  font-variant-numeric: tabular-nums; font-size: 1.05rem; font-weight: 500; text-align: center;
}
.time::-webkit-date-and-time-value { text-align: center; }
.day-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }

/* Switch */
.switch {
  appearance: none; -webkit-appearance: none; position: relative; width: 3.2rem; height: 1.95rem; margin: 0; border-radius: 999px;
  background: #d9dcd9; transition: background .2s; flex: none; cursor: pointer;
}
.switch::after {
  content: ""; position: absolute; top: .14rem; left: .14rem; width: 1.67rem; height: 1.67rem; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .18); transition: transform .2s;
}
.switch:checked { background: var(--open); }
.switch:checked::after { transform: translateX(1.25rem); }
.switch:focus-visible { outline-offset: 3px; border-radius: 999px; }
/* The visible switch is small, the label row around it is the large target. A lone switch gets an invisible 44 px hit area. */
.day-head .switch::before, .check-row .switch::before { content: ""; position: absolute; inset: -.5rem -.4rem; }

/* Chips and segmented */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  display: inline-flex; align-items: center; gap: .35rem; min-height: 2.75rem; padding: .35rem .9rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: .93rem; text-align: left;
}
.chip svg { width: 1.1rem; height: 1.1rem; color: var(--brand); }
.chip:active { background: #f1f0ec; }
.chip.on { background: var(--brand); border-color: var(--brand); color: var(--cream); }
.day-card .chip { background: var(--fill); border-color: transparent; color: var(--brand); font-weight: 600; font-size: .88rem; }
.chips.small .chip { font-size: .9rem; padding: .3rem .8rem; }
.chips.days { gap: .45rem; }
.day-chip { width: 2.9rem; height: 2.9rem; min-height: 2.9rem; padding: 0; justify-content: center; font-weight: 650; font-size: .85rem; text-align: center; }
.intervals-card { padding: .4rem 0 0; }
.intervals-card .interval { padding: .4rem 1rem; }
.intervals-card .action-row { margin-top: .3rem; }
.site-lines .row-title { font-weight: 500; }
.site-lines .row-value { margin-top: .25rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.chips.big .chip { min-width: 6.2rem; justify-content: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.segmented { display: flex; gap: 2px; padding: 2px; border-radius: 11px; background: rgba(118, 118, 128, .12); }
.segment { flex: 1; position: relative; display: grid; place-items: center; min-height: 2.6rem; padding: 0 .6rem; border-radius: 9px; font-size: .93rem; font-weight: 500; cursor: pointer; text-align: center; }
.segment input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segment.on { background: var(--card); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); font-weight: 650; }
.segment:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--brand) 55%, white); outline-offset: 1px; }
.holiday-row .segmented { width: 8.6rem; flex: none; }
.holiday-row .segment { min-height: 2.75rem; }
.screen > .segmented { margin: 0 0 1rem; }

/* Forms */
.form-card { padding: 1rem; margin-bottom: 1rem; display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; min-width: 0; }
.field-label { font-size: .88rem; font-weight: 600; color: var(--ink-2); margin: 0; }
.field-hint { margin: 0; font-size: .84rem; color: var(--ink-3); }
.field-error { margin: .3rem 0 0; font-size: .88rem; color: var(--danger); font-weight: 500; }
.field.has-error .input { box-shadow: inset 0 0 0 2px var(--danger); }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.input {
  width: 100%; min-height: 2.9rem; padding: .6rem .8rem; border-radius: 11px; border: 0; background: var(--fill); font-size: 1rem;
  -webkit-appearance: none; appearance: none;
}
textarea.input { resize: none; line-height: 1.35; }
input[type="date"].input { min-width: 0; display: block; text-align: left; }
input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--brand); background: #fff; }
.price-editor { display: grid; gap: .65rem; }
.amounts { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.amount { position: relative; flex: 1; min-width: 6rem; max-width: 10rem; }
.amount-input { padding-right: 2rem; font-variant-numeric: tabular-nums; font-size: 1.15rem; font-weight: 600; }
.euro { position: absolute; right: .8rem; top: 50%; transform: translateY(-50%); color: var(--ink-2); font-weight: 600; }
.amount-word { color: var(--ink-2); font-weight: 500; }

/* Callouts and notes */
.callout { margin: 0 0 .75rem; padding: .9rem 1rem; border-radius: var(--radius); background: #fbf1df; color: #4d3608; display: grid; gap: .65rem; justify-items: start; }
.callout p { margin: 0; font-size: .93rem; }
.callout .button.secondary { background: #fff; color: #4d3608; }
.example-note { display: flex; align-items: center; gap: .55rem; margin: -.4rem .25rem 1rem; color: var(--ink-2); font-size: .9rem; }
.example-note .tag { background: var(--fx-brand-label); color: var(--fx-brand-label-ink); font-family: var(--fx-brand-font); }
.empty { text-align: center; color: var(--ink-2); padding: 2.5rem 1rem; }

/* Requests */
.request { padding: 1rem; margin-bottom: .75rem; }
.request-head { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; }
.request-name { margin: 0; font-size: 1.05rem; font-weight: 650; }
.request-time { color: var(--ink-2); font-size: .84rem; white-space: nowrap; }
.request-what { margin: .3rem 0 0; font-weight: 500; }
.request-wish { margin: .1rem 0 0; color: var(--ink-2); font-size: .95rem; }
.request-message { margin: .55rem 0 0; padding: .55rem .75rem; border-radius: 10px; background: var(--fill); font-size: .93rem; }
.request-actions { display: flex; gap: .5rem; margin-top: .85rem; flex-wrap: wrap; }
.request-actions .button { flex: 1 1 auto; }

/* Save bar with preview */
.bottom:empty { display: none; }
.bottom { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; padding: 0 .75rem calc(.75rem + var(--safe-b)); pointer-events: none; }
.savebar {
  pointer-events: auto; max-width: 40rem; margin: 0 auto; padding: .85rem .9rem .9rem; border-radius: 20px; background: #fff;
  box-shadow: 0 8px 30px rgba(26, 31, 28, .16), 0 0 0 .5px var(--line);
  animation: rise .22s ease-out;
}
.savebar-actions { display: flex; gap: .6rem; margin-top: .75rem; }
.savebar-actions { flex-wrap: wrap; }
.savebar-actions .button { flex: 1 1 auto; }
.savebar-actions .button.primary { flex: 1.6 1 auto; }
.preview { display: grid; gap: .15rem; max-height: 9.5rem; overflow: auto; }
.preview-title { margin: 0 0 .2rem; font-size: .78rem; font-weight: 650; color: #94491f; letter-spacing: .02em; }
.preview-line { margin: 0; font-size: .97rem; font-weight: 500; overflow-wrap: anywhere; }
.preview-en { display: flex; gap: .45rem; align-items: baseline; margin: .25rem 0 0; font-size: .86rem; color: var(--ink-2); overflow-wrap: anywhere; }
.preview-meta { margin: .2rem 0 0; font-size: .84rem; color: var(--ink-2); }
.lang-tag { flex: none; font-size: .68rem; font-weight: 700; padding: .05rem .3rem; border-radius: 4px; background: #ebe9e3; color: #4a504c; letter-spacing: .04em; }
.notice-mock { margin: 0; padding: .55rem .75rem; border-radius: 10px; background: var(--brand); color: var(--cream); font-weight: 600; font-size: .95rem; overflow-wrap: anywhere; }
.sheet .preview { margin-top: .25rem; padding: .85rem .9rem; border-radius: 12px; background: #faf8f3; box-shadow: inset 0 0 0 .5px var(--line); max-height: none; }

/* Tab bar on the phone. The same nav becomes the sidebar at 900 px and wider (end of this file). */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: center; gap: 0;
  /* Fully opaque: nothing scrolled shows through, also where iOS drops the blur (Reduce Transparency). */
  padding: .3rem .5rem calc(.25rem + var(--safe-b)); background: #faf9f6; border-top: .5px solid var(--line);
}
.app[data-root="no"] .tabbar { display: none; }
.tab-list { display: flex; justify-content: center; width: 100%; }
.side-shop, .side-menu { display: none; }
.tab {
  position: relative; flex: 1; max-width: 9rem; display: grid; justify-items: center; gap: .1rem; min-height: 3.1rem; padding: .25rem 0;
  border: 0; background: none; color: #646a66; font-size: .72rem; font-weight: 600;
}
.tab svg { width: 1.6rem; height: 1.6rem; }
.tab[aria-current="page"] { color: var(--brand); }
.badge {
  position: absolute; top: .1rem; left: calc(50% + .55rem); min-width: 1.15rem; height: 1.15rem; padding: 0 .3rem; border-radius: 999px;
  background: #9c5130; color: #fff; font-size: .7rem; font-weight: 700; line-height: 1.15rem; text-align: center;
}

/* Toast and error */
.toast-layer, .error-layer { position: fixed; left: 0; right: 0; z-index: 40; display: grid; justify-items: center; padding: 0 .75rem; pointer-events: none; }
.toast-layer { bottom: calc(var(--tab-h) + .75rem); }
.app[data-root="no"] .toast-layer { bottom: calc(var(--bottom-h, 0px) + .75rem + var(--safe-b)); }
.toast {
  pointer-events: auto; position: relative; overflow: hidden; display: flex; align-items: center; gap: .6rem; width: min(100%, 26rem);
  min-height: 3.3rem; padding: .45rem .5rem .45rem .9rem; border-radius: 16px; background: #1d2421; color: #f6f5f0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25); animation: slide-up .22s ease-out;
}
.toast-icon { color: #8fd3ad; }
.toast-icon svg { width: 1.25rem; height: 1.25rem; }
.toast-text { flex: 1; font-size: .93rem; font-weight: 500; }
/* At 135 % text on 320 px a long toast wraps, and „Rückgängig“ moves to its own line on the right instead of clipping. */
.toast { flex-wrap: wrap; }
.toast-undo { margin-left: auto; }
.toast-undo { min-height: 2.75rem; padding: 0 .9rem; border: 0; border-radius: 11px; background: rgba(255, 255, 255, .12); color: #fff; font-weight: 650; }
.toast-timer { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: #8fd3ad; transform-origin: left; animation: drain linear forwards; }
.error-layer { top: calc(3.6rem + var(--safe-t)); }
.alert {
  pointer-events: auto; width: min(100%, 28rem); padding: 1rem 1rem .85rem; border-radius: 16px; background: #fff;
  box-shadow: 0 12px 34px rgba(26, 31, 28, .22), 0 0 0 1px rgba(179, 38, 30, .25); animation: drop .2s ease-out;
}
.alert-title { margin: 0; font-weight: 700; color: var(--danger); }
.alert-text { margin: .3rem 0 0; font-size: .93rem; }
.alert-actions { display: flex; justify-content: flex-end; gap: .5rem; margin-top: .8rem; }

/* Sheets */
.sheet-layer { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.backdrop { position: absolute; inset: 0; background: rgba(20, 24, 22, .32); animation: fade .2s ease-out; }
.sheet {
  position: absolute; bottom: 0; width: min(100%, 36rem); max-height: calc(100dvh - 2.5rem - var(--safe-t)); display: flex; flex-direction: column;
  overflow: hidden; background: var(--bg); border-radius: 22px 22px 0 0; box-shadow: 0 -10px 40px rgba(0, 0, 0, .18); animation: rise .25s cubic-bezier(.2, .8, .2, 1);
}
.sheet-grip { width: 2.4rem; height: .3rem; border-radius: 999px; background: #c9cbc8; margin: .5rem auto 0; }
.sheet-head { display: flex; align-items: center; gap: .5rem; padding: .35rem .5rem .3rem 1.25rem; }
.sheet-head h2 { flex: 1; margin: 0; font-size: 1.25rem; font-weight: 700; overflow-wrap: anywhere; }
.sheet-head h2:focus { outline: none; }
.sheet-close { background: var(--fill); min-width: 2.75rem; color: var(--ink-2); }
.sheet-close svg { width: 1.1rem; height: 1.1rem; }
.sheet-head, .sheet-grip, .sheet-footer { flex-shrink: 0; }
.sheet-body { min-height: 0; overflow: auto; padding: .4rem 1.25rem 1rem; display: grid; gap: 1rem; }
.sheet-body .group { margin: 0; }
.sheet-intro { margin: 0; color: var(--ink-2); font-size: .97rem; }
.sheet-footer { display: flex; flex-wrap: wrap; gap: .6rem; padding: .75rem 1.25rem calc(1rem + var(--safe-b)); border-top: .5px solid var(--line); background: var(--bg); }
.sheet-footer .button { flex: 1 1 auto; }
/* What the save button will do, on its own line above it, so the button keeps one line on a small phone. */
.footer-summary { flex: 1 1 100%; margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; text-align: center; }
.remove { justify-self: start; margin-left: -.6rem; }
.check {
  appearance: none; -webkit-appearance: none; width: 1.6rem; height: 1.6rem; margin: 0; border-radius: 50%; border: 2px solid #c3c7c4; flex: none; position: relative;
}
.check:checked { background: var(--brand); border-color: var(--brand); }
.check:checked::after { content: ""; position: absolute; left: .47rem; top: .2rem; width: .38rem; height: .72rem; border: solid #fff; border-width: 0 .17rem .17rem 0; transform: rotate(45deg); }

/* Heute: messages that failed, first-week checklist */
.failure-row { align-items: flex-start; padding-top: .85rem; padding-bottom: .95rem; }
.icon-alert { background: #fbe4e1; color: var(--danger); }
.icon-warning { background: #f6ead8; color: #8a5a12; }
.failure-row .quote { color: var(--ink); }
.failure-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.failure-actions .button { flex: 1 1 auto; }
.setup-row { padding: 0; gap: 0; align-items: stretch; }
.card > .setup-row + .setup-row::before { left: 3.3rem; }
.setup-check { flex: none; display: grid; place-items: center; width: 3.3rem; min-height: 3.3rem; border: 0; background: none; border-radius: 0; }
.setup-mark { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 2px solid #b9bdba; color: #fff; }
.setup-mark svg { width: 1rem; height: 1rem; stroke-width: 2.6; }
.setup-check[aria-pressed="true"] .setup-mark { background: var(--open); border-color: var(--open); }
.setup-open, .setup-text { flex: 1; min-width: 0; display: flex; align-items: center; gap: .8rem; padding: .6rem 1rem .6rem 0; }
.setup-open { border: 0; background: none; text-align: left; font-size: 1rem; }
/* Without a way to open it (no site in real mode) the item is text: title over hint, left-aligned like the others. */
.setup-text { flex-direction: column; align-items: flex-start; justify-content: center; gap: .1rem; }
.setup-open:active, .setup-check:active { background: #f1f0ec; }
.is-done .row-title { color: var(--ink-2); text-decoration: line-through; text-decoration-color: rgba(26, 31, 28, .35); }

/* Appointments: Kalender, Kunden, Team, Online-Buchung (ported from Julia's P10, in the calm grouped style of U1) */
.app[data-screen="kalender"] .main { max-width: 64rem; }
.person-dot { display: inline-block; width: .65rem; height: .65rem; border-radius: 50%; background: var(--c, var(--brand)); flex: none; }
.person-avatar {
  display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; flex: none;
  background: var(--c, var(--brand)); color: #fff; font-weight: 700; font-size: 1rem;
}
.tag.warn { background: #fbe4e1; color: #8c1d16; }
.tag.ok { background: #e1f0e7; color: #1c5f3c; }
.badges { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .25rem; }
.group-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin: 0 0 .1rem; }
.group-head .group-title { margin-bottom: 0; }
.group-head .text-button { font-size: .9rem; }
.group-intro.after { margin-top: .6rem; }
.card-actions { display: flex; flex-wrap: wrap; gap: .5rem; padding: .35rem 1rem 1rem; }
.card-actions .button { flex: 1 1 auto; }
.card > .people-note { padding-top: .2rem; }
.attention { box-shadow: inset 4px 0 0 var(--copper), var(--shadow); }
.quote-box { display: block; margin: .45rem 0 .2rem; padding: .6rem .75rem; border-radius: 10px; background: var(--fill); color: var(--ink); font-size: .93rem; }
.notify-row, .inbox-row { align-items: flex-start; padding-top: .8rem; padding-bottom: .9rem; }
.inbox-type { font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.inbox-row.unread { box-shadow: inset 3px 0 0 var(--brand); }
.inbox-row.unread .inbox-type { color: var(--brand); }
.postfach-actions { margin: -.25rem 0 1rem; justify-items: start; }
.inbox-actions .button { flex: 0 1 auto; min-width: 0; }
.card + .stack { margin-top: 1rem; }
.next-card { padding: 1rem 1rem .25rem; }
.next { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .2rem 1.1rem; align-items: start; }
.next-time { margin: 0; font-size: 1.9rem; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.05; color: var(--brand); }
.next-time small { display: block; margin-top: .25rem; font-size: .84rem; font-weight: 500; color: var(--ink-2); letter-spacing: 0; }
.next-body { display: grid; gap: .2rem; min-width: 0; justify-items: start; }
.next-body p { margin: 0; }
.next-name { font-size: 1.1rem; font-weight: 650; overflow-wrap: anywhere; }
.next-actions { padding: .9rem 0; }
.next-entry + .next-entry { border-top: .5px solid var(--line); padding-top: .9rem; }
.next-label { margin: 0 0 .45rem; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8a4824; }
.next-empty { margin: 0; padding: .4rem 0 1.1rem; }
.notify-actions .button { flex: 1 1 auto; }
.tell-row { padding: .7rem .9rem; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.tell-field .segment { flex: 1 1 auto; white-space: nowrap; }
.impact-bulk { display: grid; gap: .5rem; }
.impact-bulk-title { margin: 0; font-size: .87rem; font-weight: 650; color: #4d3608; }
.impact-bulk-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.impact-bulk-actions .button { flex: 1 1 auto; background: #fff; color: #4d3608; }
.impact-item .tell-field, .impact-item .tell-row { margin: 0; }
.person-row { gap: .75rem; }
.person-count { display: grid; text-align: right; font-size: .9rem; flex: none; }
.person-count small { color: var(--ink-2); font-size: .8rem; }

/* Kalender: tools, day grid with the people as columns, week list */
.cal-card { padding: 0; margin-bottom: 1.25rem; }
.cal-tools { display: grid; gap: .65rem; padding: .85rem .85rem .75rem; border-bottom: .5px solid var(--line); }
.cal-tools .segmented { max-width: 16rem; }
.cal-nav { display: flex; align-items: center; gap: .25rem; }
.cal-date { flex: 1; margin: 0; text-align: center; font-weight: 650; font-size: 1.02rem; font-variant-numeric: tabular-nums; }
.cal-nav .icon-button svg { width: .8rem; height: 1.25rem; }
.cal-nav .text-button { margin-left: .15rem; }
.cal-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cal-actions:empty { display: none; }
.cal-actions .button { flex: 1 1 auto; }
.cal-legend { display: flex; flex-wrap: wrap; gap: .35rem .9rem; margin: 0; font-size: .87rem; color: var(--ink-2); }
.legend-item { display: inline-flex; align-items: center; gap: .4rem; }
.legend-item.away { color: #8c1d16; }
.cal-empty { margin: 0; padding: 2rem 1rem 2.2rem; text-align: center; color: var(--ink-2); display: grid; gap: 1rem; justify-items: center; }
.cal-empty-text { margin: 0; max-width: 30rem; font-size: 1rem; color: var(--ink); }
.cal-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.cal-empty-actions .button { flex: 0 1 auto; }
.callout .cal-empty-actions { justify-content: flex-start; }
.cal-note { display: grid; gap: .6rem; padding: .8rem .85rem; border-bottom: .5px solid var(--line); background: #fbf1df; color: #4d3608; }
.cal-note p { margin: 0; font-size: .93rem; }
.cal-note .cal-empty-actions { justify-content: flex-start; }
.callout.soft { background: var(--brand-soft); color: var(--brand); font-size: .93rem; }
.callout.warn-box { background: #fbe4e1; color: #8c1d16; }
.callout.warn-box .button.secondary { background: #fff; color: #8c1d16; }
.cal-grid.single { grid-template-columns: 2.9rem minmax(0, 1fr); }
.cal-scroll { overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.cal-grid { display: grid; grid-template-columns: 2.9rem repeat(var(--cols), minmax(7.4rem, 1fr)); min-width: 0; }
.cal-corner, .cal-head { position: sticky; top: 0; z-index: 3; background: var(--card); border-bottom: .5px solid var(--line); }
.cal-head { display: flex; align-items: center; gap: .45rem; min-height: 2.6rem; padding: 0 .6rem; font-weight: 650; font-size: .93rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cal-axis { position: relative; border-right: .5px solid var(--line); }
.cal-hour { position: absolute; right: .35rem; transform: translateY(-50%); font-size: .72rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.cal-hour:first-child { transform: none; top: .15rem !important; }
.cal-col { position: relative; overflow: hidden; border-right: .5px solid var(--line); background-image: linear-gradient(var(--line) .5px, transparent .5px); }
.cal-col:last-child { border-right: 0; }
.cal-off { position: absolute; left: 0; right: 0; padding: .2rem .5rem; font-size: .74rem; color: var(--ink-2);
  background: repeating-linear-gradient(135deg, rgba(26, 31, 28, .045) 0 6px, transparent 6px 12px); }
.cal-cell { position: absolute; left: 0; right: 0; padding: 0 .5rem; border: 0; border-radius: 0; background: transparent; text-align: left; }
.cal-cell-label { opacity: 0; font-size: .78rem; font-weight: 650; color: var(--brand); }
.cal-cell:hover, .cal-cell:focus-visible, .cal-cell:active { background: var(--brand-soft); }
.cal-cell:hover .cal-cell-label, .cal-cell:focus-visible .cal-cell-label, .cal-cell:active .cal-cell-label { opacity: 1; }
.cal-cell:focus-visible { outline-offset: -3px; }
.cal-bk {
  position: absolute; left: .2rem; right: .2rem; z-index: 1; display: flex; flex-direction: column; gap: .05rem; overflow: hidden;
  padding: .25rem .45rem; border: 0; border-radius: 8px; text-align: left; font-size: .8rem; line-height: 1.25;
  background: color-mix(in srgb, var(--c, var(--brand)) 13%, white); box-shadow: inset 3px 0 0 var(--c, var(--brand)), 0 1px 2px rgba(26, 31, 28, .06);
}
.cal-bk b { font-size: .84rem; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-bk .t { color: var(--ink-2); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-bk .src { font-size: .66rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: color-mix(in srgb, var(--c, var(--brand)) 75%, black); }
.cal-bk.short { gap: 0; padding-top: .15rem; }
/* Hidden on short bookings but still read out, so the button keeps its full name. */
.cal-bk.short .src, .cal-bk.tiny .src, .cal-bk.tiny .t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cal-bk.tiny { justify-content: center; padding-top: 0; padding-bottom: 0; }
.cal-bk.tiny b { font-size: .78rem; }
.cal-bk.request { background: #fff; box-shadow: inset 0 0 0 1.5px var(--c, var(--brand)); }
.cal-bk.noshow { opacity: .6; }
.cal-bk.noshow b { text-decoration: line-through; }
.cal-bk.blk { background: repeating-linear-gradient(135deg, #eef0ed 0 6px, #e4e7e3 6px 12px); box-shadow: inset 0 0 0 1px #cfd4cf; color: var(--ink-2); }
.cal-bk.flash { box-shadow: inset 3px 0 0 var(--c, var(--brand)), 0 0 0 2px var(--copper); }
.cal-now { position: absolute; left: 0; right: 0; height: 2px; z-index: 2; background: var(--copper); pointer-events: none; }
.cal-now::before { content: ""; position: absolute; left: -3px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--copper); }
.cal-week { display: grid; }
.wk-day.is-closed .wk-head { min-height: 2.75rem; color: var(--ink-2); }
.wk-day.is-closed .wk-name { font-weight: 500; }
.wk-item.request { background: #fff; box-shadow: inset 0 0 0 1.5px var(--c, var(--brand)); }
.wk-day { border-bottom: .5px solid var(--line); min-width: 0; }
.wk-head { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; width: 100%; min-height: 2.9rem; padding: .55rem 1rem;
  border: 0; background: transparent; text-align: left; font-weight: 650; }
.wk-head:active { background: #f1f0ec; }
.wk-day.is-today .wk-name { color: var(--brand); }
.wk-count { font-weight: 500; font-size: .84rem; color: var(--ink-2); white-space: nowrap; }
.wk-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); gap: .35rem; padding: 0 .75rem .8rem; }
.wk-item { display: grid; gap: .05rem; min-height: 2.75rem; padding: .4rem .6rem; border: 0; border-radius: 9px; text-align: left; font-size: .84rem;
  background: color-mix(in srgb, var(--c, var(--brand)) 11%, white); box-shadow: inset 3px 0 0 var(--c, var(--brand)); }
.wk-item b { font-weight: 650; }
.wk-item .t, .wk-item .w { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.wk-item.blk { background: repeating-linear-gradient(135deg, #eef0ed 0 6px, #e4e7e3 6px 12px); box-shadow: none; color: var(--ink-2); }
.wk-item.noshow b { text-decoration: line-through; }
.wk-none { margin: 0; padding: .2rem .25rem; font-size: .86rem; color: var(--ink-2); }

/* Sheets of the calendar */
.select { padding-right: 2rem; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 1.05rem) 52%, calc(100% - .75rem) 52%; background-size: .3rem .3rem; background-repeat: no-repeat; }
.name-row { display: flex; gap: .5rem; align-items: center; }
.name-row .input { flex: 1; min-width: 0; }
.name-row .chip { flex: none; }
.suggest:empty { display: none; }
.suggest { margin-top: .5rem; align-items: center; }
.entry-name { margin: 0; font-weight: 600; }
.sheet-error { margin: 0; padding: .65rem .8rem; border-radius: 10px; background: #fbe4e1; color: #8c1d16; font-size: .93rem; font-weight: 500; }
.callout.agree { margin: 0; }
.agree-row { display: flex; align-items: center; gap: .65rem; min-height: 2.75rem; font-weight: 600; cursor: pointer; }
.detail { display: grid; gap: .35rem; }
.detail p { margin: 0; }
.detail-when { font-size: 1.15rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.detail-line { display: flex; align-items: center; gap: .45rem; margin: 0; overflow-wrap: anywhere; }
.detail-line.muted { color: var(--ink-2); font-size: .93rem; }
.detail-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.detail-note { color: var(--ink-2); font-size: .93rem; margin: 0; }
.steps { display: flex; gap: .35rem; }
.steps span { flex: 1; height: .25rem; border-radius: 999px; background: var(--fill); }
.steps span.on { background: var(--brand); }
.days .day-pick { display: grid; justify-items: center; gap: 0; min-width: 4.6rem; padding: .3rem .5rem; text-align: center; }
.days .day-pick small { font-size: .74rem; opacity: .8; }
.days .day-pick:disabled { opacity: .45; }
.time-pick { min-width: 4.4rem; justify-content: center; font-variant-numeric: tabular-nums; font-weight: 600; }
.summary-card { padding: .9rem 1rem; display: grid; gap: .3rem; }
.summary-card p { margin: 0; }
.summary-big { margin: 0; font-size: 1.35rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.thanks { display: grid; gap: .5rem; padding: 1rem; border-radius: var(--radius); background: var(--brand-soft); }
.thanks p { margin: 0; }
.footer-status { flex: 1 1 100%; margin: 0; font-size: .87rem; color: var(--ink-2); }
.footer-status:empty { display: none; }
.sheet-footer { flex-wrap: wrap; }

/* Kunden */
.search { margin-bottom: .75rem; }
.list-count { margin: .25rem .9rem .45rem; font-size: .84rem; color: var(--ink-2); }
.customer-row { align-items: center; }
.customer-meta { display: grid; justify-items: end; gap: .1rem; font-size: .8rem; color: var(--ink-2); text-align: right; flex: none; max-width: 46%; }
.next-visit { color: var(--brand); font-weight: 600; }
.customer-card { padding: 1rem; display: grid; gap: .85rem; margin-bottom: 1.5rem; }
.customer-contact { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; margin: 0; font-weight: 600; }
.customer-contact span { display: inline-flex; align-items: center; gap: .4rem; overflow-wrap: anywhere; }
.customer-contact svg { width: 1.1rem; height: 1.1rem; color: var(--brand); }
.customer-contact .muted { color: var(--ink-2); font-weight: 500; }
.customer-card .failure-actions { margin-top: 0; }
.customer-card .field-hint { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.stats div { padding: .6rem .7rem; border-radius: 11px; background: var(--fill); font-size: .8rem; color: var(--ink-2); min-width: 0; }
.stats b { display: block; font-size: 1.25rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.visit-row { align-items: flex-start; }
.visit-date { flex: none; width: 4.6rem; font-size: .84rem; color: var(--ink-2); font-variant-numeric: tabular-nums; padding-top: .1rem; }
.pet-row { align-items: flex-start; }
.pet-actions { display: grid; flex: none; }
textarea#k-note { min-height: 5.5rem; }

/* Team and Online-Buchung */
.swatches { display: flex; flex-wrap: wrap; gap: .55rem; }
.swatch { width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 0; background: var(--c); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .0); }
.swatch.on { box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--c); }
.check-row.inset { padding-left: 0; padding-right: 0; min-height: 3rem; }
.week-card { padding: .2rem 1rem .6rem; }
.week-day { padding: .2rem 0 .45rem; }
.week-day + .week-day { border-top: .5px solid var(--line); }
.week-day .intervals { padding-bottom: .1rem; }
.week-day .text-button { margin-left: -.6rem; }
.plain-list { margin: 0; padding-left: 1.1rem; font-size: .93rem; }
.impact { display: grid; gap: .75rem; padding: .85rem; border-radius: var(--radius); background: #fbf1df; }
.impact-title { margin: 0; font-weight: 650; color: #4d3608; }
.impact-item { display: grid; gap: .45rem; padding: .8rem; border-radius: 12px; background: var(--card); box-shadow: var(--shadow); }
.impact-item p { margin: 0; }
.impact-item .tag { justify-self: start; }
.impact-item .segmented { flex-wrap: wrap; }
.impact-item .segment { flex: 1 1 5.5rem; }
.impact-item .quote-box { margin: 0; }
@media (max-width: 359px) {
  .cal-grid { grid-template-columns: 2.6rem repeat(var(--cols), minmax(6.6rem, 1fr)); }
  .name-row { flex-wrap: wrap; }
  .customer-meta { max-width: 40%; }
  .stats b { font-size: 1.05rem; }
}

/* Brand */
/* Fixadresse's own touches read brand.css (--fx-brand-*), never the shop's --brand. */
.brand-footer { display: flex; align-items: center; justify-content: center; gap: .55rem; padding: 1rem 0 .5rem; color: var(--fx-brand-credit); font-family: var(--fx-brand-font); font-size: .84rem; font-weight: var(--fx-brand-weight); }
.pill.help, .icon-button.help { color: var(--fx-brand-ink); font-family: var(--fx-brand-font); font-weight: var(--fx-brand-weight); }
.mark svg { width: auto; height: 1.35rem; aspect-ratio: 54 / 84; display: block; }
.boot-error { padding: 2rem; text-align: center; color: var(--ink-2); }

@keyframes rise { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
/* The toast moves in at full contrast from its first frame (an axe check caught a fading frame). */
@keyframes slide-up { from { transform: translateY(14px); } to { transform: none; } }
/* A sheet or toast drawn again with the same content stays still: only opening moves it. */
.sheet.still, .backdrop.still, .toast.still { animation: none; }
@keyframes drop { from { transform: translateY(-10px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes drain { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* iPad and wider: the same app, centred, with room to breathe */
@media (min-width: 700px) {
  .main { padding-left: 1.5rem; padding-right: 1.5rem; }
  /* iPad portrait: one content width for every screen, the Kalender included. */
  .main, .app[data-screen="kalender"] .main { max-width: 760px; }
  .sheet-layer { align-items: center; }
  .sheet { position: relative; bottom: auto; border-radius: 22px; max-height: min(44rem, calc(100dvh - 4rem)); }
  .sheet-grip { visibility: hidden; height: .1rem; }
  .bar { padding-left: max(1.25rem, calc(50% - 380px + 1.5rem)); padding-right: max(1.25rem, calc(50% - 380px + 1.5rem)); }
}
@media (max-width: 359px) {
  .field-pair { grid-template-columns: 1fr; }
  .holiday-row { flex-wrap: wrap; }
  .holiday-row .segmented { width: 100%; }
}

/* Desktop and wide iPad without the example frame: sidebar with the shop, the tabs and the shop menu (U1). */
@media (min-width: 900px) {
  :root { --tab-h: 0px; --side-w: 16.5rem; }
  .app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); grid-template-rows: auto 1fr; align-items: start; }
  /* The bar lines up with the centred content column below it. */
  .bar { grid-column: 2; grid-row: 1; padding-left: max(2rem, calc((100% - 46rem) / 2 + 2rem)); padding-right: max(2rem, calc((100% - 46rem) / 2 + 2rem)); }
  .app[data-root="yes"] .bar { justify-content: flex-end; }
  .bar .shop-button { display: none; }
  .main { grid-column: 2; grid-row: 2; width: 100%; max-width: 46rem; padding: .5rem 2rem 5rem; }
  .app[data-root="no"] .main { padding-bottom: 16rem; }
  .tabbar, .app[data-root="no"] .tabbar {
    grid-column: 1; grid-row: 1 / span 2; position: sticky; top: 0; align-self: start; height: 100dvh; overflow-y: auto;
    display: flex; flex-direction: column; justify-content: flex-start; gap: .15rem; padding: .75rem .75rem 1.5rem;
    background: #efece4; backdrop-filter: none; -webkit-backdrop-filter: none; border-top: 0; border-right: .5px solid var(--line);
  }
  .side-shop {
    display: flex; align-items: center; gap: .6rem; width: 100%; min-height: 3.25rem; padding: .35rem .6rem .35rem .35rem; margin-bottom: .75rem;
    border: 0; border-radius: 12px; background: transparent; font-weight: 650; font-size: 1rem; text-align: left;
  }
  .side-shop:hover, .side-shop:active { background: var(--fill); }
  .side-shop-name { flex: 1; min-width: 0; overflow-wrap: anywhere; line-height: 1.25; }
  .tab-list { flex-direction: column; gap: .15rem; }
  .tab {
    flex: none; max-width: none; display: flex; align-items: center; gap: .75rem; width: 100%; min-height: 2.75rem; padding: .4rem .75rem;
    border-radius: 10px; color: var(--ink); font-size: .95rem; font-weight: 550; text-align: left;
  }
  .tab:hover { background: var(--fill); }
  .tab svg { width: 1.3rem; height: 1.3rem; color: var(--ink-2); }
  .tab[aria-current="page"] { background: var(--brand-soft); color: var(--brand); font-weight: 650; }
  .tab[aria-current="page"] svg { color: var(--brand); }
  .tab-label { flex: 1; min-width: 0; overflow-wrap: anywhere; }
  .badge { position: static; flex: none; min-width: 1.35rem; height: 1.35rem; line-height: 1.35rem; font-size: .74rem; }
  .side-menu { display: flex; flex-direction: column; gap: .15rem; margin-top: 1rem; padding-top: 1rem; border-top: .5px solid var(--line); }
  .side-title { margin: 0 .75rem .35rem; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
  .side-item { font-size: .9rem; }
  .bottom, .toast-layer, .error-layer { left: var(--side-w); }
  .toast-layer { bottom: 1.25rem; }
  .app[data-root="no"] .toast-layer { bottom: calc(var(--bottom-h, 0px) + .75rem); }
}
.detail-links { display: flex; flex-wrap: wrap; gap: .25rem .5rem; margin-left: -.6rem; }

/* Fix round 2 of the appointment Verwaltung (27 Nov). */
/* The customer card keeps the tab bar while nothing waits to be saved, so Kalender and Heute stay one tap away. */
.app[data-screen="kunde"]:has(> .bottom:empty) .tabbar { display: flex; }
.app[data-screen="kunde"]:has(> .bottom:empty) .main { padding-bottom: calc(var(--tab-h) + 6rem); }
.app[data-screen="kunde"]:has(> .bottom:empty) .toast-layer { bottom: calc(var(--tab-h) + .75rem); }
/* Free-time markers: always on the first cell of a gap that holds the shortest service, never on hover only. */
.cal-cell.marked .cal-cell-label { opacity: 1; }
.cal-cell .cal-cell-label { font-variant-numeric: tabular-nums; }
/* A short appointment names its service in the same line where there is room. */
.cal-bk .tw { display: none; }
@media (min-width: 820px) {
  .cal-bk.tiny { flex-direction: row; align-items: center; justify-content: flex-start; gap: .4rem; }
  .cal-bk.tiny b { flex: none; max-width: 60%; }
  .cal-bk.tiny .tw { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .78rem; color: var(--ink-2); }
}
/* Heute: what the badge counts, in words. */
/* One compact block under the date (K13 decision 3): small pills that wrap tightly, so today's work starts high. */
.todo-line { margin: .3rem 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .3rem; font-size: .86rem; color: #94491f; font-weight: 600; }
.todo-label { margin-right: .1rem; }
/* Each part of „Zu tun“ leads to its card further down Heute. */
.todo-link, .todo-part {
  display: inline-flex; align-items: center; min-height: 2rem; padding: .15rem .6rem; border: 0; border-radius: 999px;
  background: #f6e7dc; color: #7a3a17; font: inherit; font-size: .82rem; font-weight: 650; text-align: left;
}
.todo-link { cursor: pointer; }
.todo-link::after { content: "›"; margin-left: .3rem; font-weight: 700; }
.todo-link:active { background: #efd8c8; }
/* A failed message's text waits behind „Text anzeigen“. */
.fold-text summary { min-height: 2.75rem; display: flex; align-items: center; color: var(--brand); font-weight: 600; font-size: .93rem; cursor: pointer; }
.fold-text .quote { display: block; margin: 0 0 .3rem; }
/* The message choice with „Wer möchte das?“ and the text the customer gets. */
.tell-box { display: grid; gap: .6rem; }
.tell-who { margin: .6rem 0 0; }
.tell-box > .tell-who { margin: 0; }
.tell-who .segment { flex: 1 1 auto; white-space: nowrap; }
.tell-preview { margin: .5rem 0 0; }
.site-choice .row-value { overflow-wrap: anywhere; }
/* The Kalender day's lighter actions under „Termin eintragen“ and „Zeit blockieren“. */
.cal-more { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 0 .25rem; margin: -.1rem 0 -.25rem -.6rem; }
.cal-more .text-button { font-size: .93rem; }

/* Shell round of 28 Nov. Long sheets: grid rows keep their content's height (a short phone squeezed them below it,
   so a card collapsed and buttons were covered), and cards in a sheet never clip what they hold. The body scrolls. */
.sheet-body { grid-auto-rows: max-content; align-content: start; }
.sheet-body > .card { overflow: visible; }
.sheet-body > .card > .row:first-child { border-top-left-radius: var(--radius); border-top-right-radius: var(--radius); }
.sheet-body > .card > .row:last-child { border-bottom-left-radius: var(--radius); border-bottom-right-radius: var(--radius); }

/* „Als Rezeption ansehen“ in the example space: a line on every screen with the way back. */
.role-banner { display: grid; gap: .6rem; justify-items: start; margin: 0 0 1rem; padding: .8rem 1rem; border-radius: var(--radius);
  background: var(--fx-brand-label); color: var(--fx-brand-label-strong); }
.role-banner-text { margin: 0; font-size: .93rem; font-weight: 550; }
.role-banner-text .tag { margin-right: .45rem; background: #fff; color: var(--fx-brand-label-ink); vertical-align: .08em; font-family: var(--fx-brand-font); }
.role-banner .button.secondary { background: #fff; color: var(--fx-brand-label-strong); }

/* Choosing a photo: real buttons that open the hidden file input, so the camera and the library are one tap. */
.photo-pick { display: flex; flex-wrap: wrap; gap: .5rem; }
.photo-pick .file-pick { flex: 1 1 13rem; display: flex; }
.photo-pick .button { white-space: nowrap; }
.photo-pick .button { flex: 1 1 auto; }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; overflow: hidden; clip: rect(0 0 0 0); }

/* Website › Fotos */
.photo-card { padding: 1rem; display: grid; gap: .85rem; }
.photo-empty { margin: 0; font-weight: 500; }
.photo-thumb { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--fill);
  aspect-ratio: 4 / 3; box-shadow: 0 0 0 .5px var(--line); }
.photo-thumb.hero { aspect-ratio: 3 / 2; }
.photo-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-number { position: absolute; left: .45rem; top: .45rem; min-width: 1.6rem; padding: .1rem .45rem; border-radius: 999px; background: rgba(20, 24, 22, .72);
  color: #fff; font-size: .78rem; font-weight: 700; text-align: center; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); gap: .6rem; }
.photo-large { width: 100%; max-height: 50vh; border-radius: 12px; overflow: hidden; background: var(--fill); }
.photo-large img { display: block; width: 100%; height: 100%; object-fit: contain; }
.photo-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.photo-actions .button { flex: 1 1 auto; }
.danger-text { color: var(--danger) !important; }
.crop-frame { position: relative; width: 100%; border-radius: 12px; overflow: hidden; background: #1a1f1c; touch-action: none; }
.crop-canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.crop-canvas:active { cursor: grabbing; }
.crop-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .85); border-radius: 12px; }
.range { width: 100%; min-height: 44px; accent-color: var(--brand); }
/* Where the photos stand on the site, as a small page. */
.site-map { padding: .85rem; display: grid; gap: .45rem; max-width: 15rem; margin-inline: auto; background: #faf8f3; }
.map-hero { aspect-ratio: 3 / 2; border-radius: 8px; overflow: hidden; background: var(--brand-soft); display: grid; place-items: center; color: var(--ink-2); font-size: .78rem; }
.map-hero img, .map-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.map-name { margin: .1rem 0 0; font-weight: 700; font-size: .9rem; }
.map-lines { display: grid; gap: .25rem; }
.map-lines span { height: .4rem; border-radius: 4px; background: var(--fill); }
.map-lines span + span { width: 70%; }
.map-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .3rem; margin-top: .2rem; }
.map-cell { position: relative; aspect-ratio: 4 / 3; border-radius: 5px; overflow: hidden; background: var(--fill); }
.map-cell b { position: absolute; left: .2rem; top: .2rem; padding: 0 .3rem; border-radius: 999px; background: rgba(20, 24, 22, .72); color: #fff; font-size: .62rem; }

/* Website › Texte */
.gut-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; align-items: start; padding: .25rem 0; }
.gut-line + .gut-line { border-top: .5px solid var(--line); padding-top: .75rem; }
.gut-actions { display: flex; gap: .15rem; padding-top: 1.6rem; }
.gut-actions .icon-button[disabled] { opacity: .35; }
.texts-en summary { min-height: 44px; display: flex; align-items: center; color: var(--brand); font-weight: 600; cursor: pointer; }
.texts-en[open] { display: grid; gap: .75rem; }
.texts-preview { margin-top: 1.25rem; padding: 1rem 1.1rem; border-radius: var(--radius); background: #faf8f3; box-shadow: inset 0 0 0 .5px var(--line); }
.mock-heading { margin: .85rem 0 .3rem; font-weight: 700; font-size: 1.05rem; color: var(--brand); }
.texts-preview .preview-title + .mock-heading { margin-top: .4rem; }
.mock-text { margin: 0 0 .5rem; font-size: .95rem; white-space: pre-line; overflow-wrap: anywhere; }
.mock-list { margin: 0; padding-left: 1.2rem; display: grid; gap: .3rem; font-size: .95rem; overflow-wrap: anywhere; }

/* Antworten and Antwortvorlagen */
.reply-chips { max-height: 11rem; overflow: auto; padding: 2px; }
.reply-text { min-height: 12rem; line-height: 1.45; }
.reply-quote { margin: 0; white-space: pre-line; }

/* Änderung anfragen */
.request-card { padding: 1rem; margin-bottom: .75rem; display: grid; gap: .55rem; }
.request-card .request-what { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.request-card .request-actions { margin-top: .2rem; }
.request-card .quote-box { margin: 0; }
.request-thumb, .request-photo img { width: 100%; max-width: 16rem; border-radius: 10px; display: block; }
.request-photo { display: grid; gap: .4rem; justify-items: start; }
.change-state.tone-new { background: #e7eefb; color: #1d3f7a; }
.change-state.tone-work { background: var(--brand-soft); color: var(--brand); }
.change-state.tone-attention { background: #fbf1df; color: #6b4708; }
.change-state.tone-ok { background: #e1f0e7; color: #1c5f3c; }
.change-state.tone-muted { background: var(--fill); color: var(--ink-2); }
.example-step .tag { background: var(--fx-brand-label); color: var(--fx-brand-label-ink); margin-right: .15rem; font-family: var(--fx-brand-font); }
.request-history summary { min-height: 2.75rem; display: flex; align-items: center; color: var(--brand); font-weight: 600; cursor: pointer; }
.texts-preview { max-height: none; overflow: visible; }

/* Shell round 2 (28 Nov): an empty date field says „Tag wählen“ instead of the device's date (shell.mjs polishInputs). */
.date-wrap { position: relative; display: block; }
.date-wrap > input { width: 100%; }
.date-hint { display: none; position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.date-wrap.empty .date-hint { display: block; }
.date-wrap.empty > input { color: transparent; }
.date-wrap.empty > input::-webkit-datetime-edit { color: transparent; }
.date-wrap.empty > input:focus { color: inherit; }
.date-wrap.empty > input:focus::-webkit-datetime-edit { color: inherit; }
.date-wrap.empty > input:focus + .date-hint { display: none; }
/* A card reached from „Zu tun“ (or brought into view after a save) stops below the sticky top bar. */
.main .group-title, .main .group-head, .main [id] { scroll-margin-top: calc(3.25rem + var(--safe-t) + .75rem); scroll-margin-bottom: calc(var(--tab-h) + 5rem); }
/* Lists opened from Heute keep the tab bar on the phone (Postfach, Kunden verständigen, Nachrichten, the Backliste),
   next to their back link, while nothing waits to be saved. */
.app:is([data-screen="postfach"], [data-screen="verstaendigen"], [data-screen="nachrichten"], [data-screen="order-day"]):has(> .bottom:empty) .tabbar { display: flex; }
.app:is([data-screen="postfach"], [data-screen="verstaendigen"], [data-screen="nachrichten"], [data-screen="order-day"]):has(> .bottom:empty) .main { padding-bottom: calc(var(--tab-h) + 6rem); }
.app:is([data-screen="postfach"], [data-screen="verstaendigen"], [data-screen="nachrichten"], [data-screen="order-day"]):has(> .bottom:empty) .toast-layer { bottom: calc(var(--tab-h) + .75rem); }

/* K13 round 2: „Diese Woche im Laden“ (modules/diese-woche.mjs), the shop's own neutral look. */
.week-state { margin: -.4rem .25rem 1rem; color: var(--ink-2); font-size: .92rem; }
.week-state.gone { color: #6b4708; }
.week-photo { display: grid; gap: .5rem; justify-items: start; }
.week-photo-img { display: block; width: 100%; max-width: 20rem; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; background: var(--fill); }
.week-preview { max-height: none; overflow: visible; margin-top: 1.25rem; padding: 1rem 1.1rem; border-radius: var(--radius); background: #faf8f3; box-shadow: inset 0 0 0 .5px var(--line); }
.week-mock { display: flex; align-items: center; gap: .85rem; padding: .75rem; border-radius: 12px; background: var(--card); box-shadow: var(--shadow); }
.week-mock-photo { width: 4.5rem; height: 3.4rem; flex: none; object-fit: cover; border-radius: 8px; }
.week-mock-text { display: grid; gap: .1rem; min-width: 0; }
.week-mock-label { font-size: .78rem; font-weight: 650; color: var(--ink-2); letter-spacing: .02em; }
.week-mock-line { font-weight: 600; overflow-wrap: anywhere; }
.week-mock-line.muted { color: var(--ink-3); font-weight: 500; }
.week-ask .failure-actions .text-button { flex: 0 0 auto; }
