/* Isch frei? · Belegungskalender (Slice 7m, D72; Jan's design in design/isch-frei/).
 * Two parts: the widget public/widget.js builds (.iw), and the plain calendar the server
 * renders for browsers without JS (.bk and its old class names). Both draw from the same
 * tokens on :root. Her theme.css comes after this file and sets --accent, --accent-text,
 * --widget-bg, --font and maybe --radius; everything else here is ours. Fonts are
 * self-hosted: no request to a font CDN (CSP, DSGVO). */

@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/open-sans-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/open-sans-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/schibsted-grotesk-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/schibsted-grotesk-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/schibsted-grotesk-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/schibsted-grotesk-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/schibsted-grotesk-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/schibsted-grotesk-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/newsreader-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/newsreader-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/newsreader-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/newsreader-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/newsreader-latin-400-italic.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/newsreader-latin-ext-400-italic.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Tokens ---------- */
:root {
  /* hers: theme.css overrides these five (and --radius when she chose corners) */
  --accent: #2f5d4a;
  --accent-text: #ffffff;
  --widget-bg: #fbfaf6;
  --font: "Schibsted Grotesk", system-ui, sans-serif;
  /* ours */
  --paper: var(--widget-bg);
  --panel: #f2efe8;
  --ink: #1c1f1b;
  --ink-2: #3a3934;
  --ink-3: #4a4840;
  --muted: #6b685f;          /* the lightest text allowed on paper (5.3:1) */
  --line: #e6e2d8;
  --line-2: #e1dcd0;
  --field-line: #d6d0c3;
  --stepper-line: #cbc5b7;
  --chip-on: #e9e5da;
  --chip-hover: #f1eee7;
  --hatch: repeating-linear-gradient(-45deg, #e2ddd1 0 2px, #f0ede6 2px 7px);
  --busy-fg: #8f8b80;
  --past-fg: #c2beb3;
  --reach-fg: #a29e93;
  --ok: #3f8a5c;
  --error: #8a3b1e;
  --on-accent: var(--accent-text);
  /* 17 % and 9 % accent on her background, mixed in theme.css (no color-mix(): iOS before 16.2 lacks it);
     the fallbacks are the mix for the default accent on the default background */
  --accent-soft: var(--iw-soft, #d8dfd9);
  --accent-softer: var(--iw-softer, #e9ece7);
  /* corners: her choice (0, 4 or 12 px), else the design's own */
  --r: var(--radius, 10px);
  --r-s: calc(var(--r) * .6);
  --r-p: calc(var(--r) * 1.8);
  --serif: "Newsreader", Georgia, serif;
  --sans: var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 15px/1.4 var(--sans); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }

/* ================= The widget (built by widget.js) ================= */
/* The wrapper is the container, padding and all, so the narrow layout begins where the script says (under 760 px). */
.bk-live { padding: 0; container-type: inline-size; }
.iw {
  max-width: 1080px;
  margin: 0 auto;
  padding: 36px 40px 30px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.4;
}
.iw :where(button) { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.iw :where(button:disabled, button[aria-disabled="true"]) { cursor: default; }
.iw :focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.iw a { color: var(--ink); }
.iw a:hover { color: var(--ink-3); }

/* ---------- Header ---------- */
.iw-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 26px; }
.iw-eyebrow { font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 4px; }
.iw-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.05; letter-spacing: -0.012em; }
.iw-head-r { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
/* D215: before any date no amount, only the hint that the dates show the total. */
.iw-from { margin: 10px 0 0; font-size: 14.5px; line-height: 1.35; color: var(--ink-3); }
.iw-lang { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; font-size: 13.5px; font-weight: 500; text-underline-offset: 3px; }
.iw-sync { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); padding-bottom: 4px; }
.iw-sync::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex-shrink: 0; }

/* ---------- Layout ---------- */
.iw-body { display: flex; gap: clamp(28px, 4cqi, 48px); align-items: flex-start; }
.iw-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.iw-cal { display: flex; flex-direction: column; gap: 22px; }

/* ---------- Month rail: one chip per month she shows ---------- */
.iw-rail-cap { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.iw-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; }
.iw-chip { height: 62px; min-width: 0; padding: 8px 7px; border-radius: var(--r); display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; text-align: left; transition: background-color .15s ease; }
.iw-chip:hover { background: var(--chip-hover); }
.iw-chip[aria-current="true"] { background: var(--chip-on); }
.iw-chip-m { font-size: 12px; font-weight: 500; color: var(--ink-3); }
.iw-chip-n { font-size: 17px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.iw-meter { display: block; width: 100%; height: 3px; border-radius: 2px; background: #e0dbcf; overflow: hidden; }
.iw-meter > span { display: block; width: 0; height: 3px; background: var(--accent); }

/* ---------- Months + day grid ---------- */
.iw-months { display: flex; gap: 36px; }
.iw-month { flex: 0 1 308px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.iw-mhead { height: 36px; display: flex; align-items: center; gap: 6px; }
.iw-mtitle { margin: 0; flex-grow: 1; padding-left: 4px; font-family: var(--serif); font-weight: 500; font-size: 21px; letter-spacing: -0.005em; }
.iw-nav { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.iw-nav:not(:disabled):hover { background: #efece4; }
.iw-nav:disabled { opacity: .28; }
.iw-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 44px)); row-gap: 4px; }
.iw-wd { height: 26px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 500; color: var(--muted); }

/* A day is a full-width cell (it carries the range band) holding a tile (.n).
   --under is the colour behind a half-booked tile, so its diagonal cut matches the band. */
.iw .d { --under: var(--paper); height: 42px; display: flex; align-items: center; justify-content: center; }
.iw .d .n { position: relative; width: 38px; height: 38px; border-radius: var(--r); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; transition: background-color .12s ease, box-shadow .12s ease; }
.iw .d:not([aria-disabled="true"]):hover .n { outline: 1.5px solid var(--ink); outline-offset: -1.5px; }

.iw .d.is-past .n { color: var(--past-fg); font-weight: 400; }
.iw .d.is-busy .n { background: var(--hatch); color: var(--busy-fg); text-decoration: line-through; font-weight: 400; }
.iw .d.is-in .n { background: linear-gradient(135deg, var(--under) 50%, transparent 50%), var(--hatch); }   /* others arrive: free until noon */
.iw .d.is-out .n { background: linear-gradient(135deg, transparent 50%, var(--under) 50%), var(--hatch); }  /* others leave: free from noon */
.iw .d.out-of-reach .n { color: var(--reach-fg); font-weight: 400; }

.iw .d.in-range { --under: var(--accent-soft); background: var(--accent-soft); }
.iw .d.pv-range { --under: var(--accent-softer); background: var(--accent-softer); }
.iw .d.is-start.has-end { background: linear-gradient(90deg, transparent 50%, var(--accent-soft) 50%); }
.iw .d.is-start.has-pv { background: linear-gradient(90deg, transparent 50%, var(--accent-softer) 50%); }
.iw .d.is-end { background: linear-gradient(90deg, var(--accent-soft) 50%, transparent 50%); }
.iw .d.pv-end { background: linear-gradient(90deg, var(--accent-softer) 50%, transparent 50%); }
.iw .d.pv-end .n { box-shadow: inset 0 0 0 1.5px var(--accent); }
.iw .d.is-start .n, .iw .d.is-end .n { background: var(--accent); color: var(--on-accent); text-decoration: none; font-weight: 600; }

.iw .d.is-today .n::after { content: ""; position: absolute; bottom: 4px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.iw .d.is-today.is-start .n::after, .iw .d.is-today.is-end .n::after { background: var(--on-accent); }

.iw-reset { align-self: flex-start; min-height: 36px; font-size: 13.5px; font-weight: 500; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer: legend + mark ---------- */
.iw-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; }
.iw-legend { display: flex; align-items: center; gap: 10px 18px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-3); margin: 0; padding: 0; list-style: none; }
.iw-legend li { display: flex; align-items: center; gap: 7px; }
.iw-sw { width: 22px; height: 22px; border-radius: var(--r-s); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 500; }
.iw-sw--free { box-shadow: inset 0 0 0 1px var(--field-line); }
.iw-sw--busy { background: var(--hatch); color: var(--busy-fg); text-decoration: line-through; font-weight: 400; }
.iw-sw--change { background: linear-gradient(135deg, var(--paper) 50%, transparent 50%), var(--hatch); }
.iw-brand { margin-left: auto; display: flex; align-items: center; gap: 5px; color: var(--muted); font-family: var(--serif); font-style: italic; font-size: 15px; }
.iw-brand a { display: inline-block; line-height: 44px; color: inherit; text-decoration: none; white-space: nowrap; }
/* The colour mark (layout.ts has its twin), on the text's baseline so no browser's line box moves it. */
.iw-mark { width: 17px; height: 17px; margin-right: 5px; vertical-align: -.24em; }
.iw-brand a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Summary panel ---------- */
.iw-panel { width: clamp(270px, 28cqi, 300px); flex-shrink: 0; background: var(--panel); border-radius: var(--r-p); padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.iw-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: #ffffff; border-radius: var(--r); box-shadow: 0 0 0 1px #e3ded2; }
.iw-date { padding: 11px 14px 12px; text-align: left; border-radius: var(--r); display: flex; flex-direction: column; gap: 3px; }
.iw-date[aria-current="true"] { box-shadow: inset 0 0 0 2px var(--accent); }
.iw-date-l { font-size: 12px; font-weight: 500; color: var(--muted); }
.iw-date-v { font-size: 15.5px; font-weight: 600; }
.iw-date-v.is-empty { color: var(--muted); }
.iw-fullnote { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.iw-hint { margin: 0; min-height: 40px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.iw-hint.is-error { color: var(--error); }
.iw-hint strong { font-weight: 600; }
.iw-rule { height: 1px; background: var(--line-2); border: 0; margin: 0; }

.iw-guests { display: flex; flex-direction: column; gap: 10px; }
.iw-guest { display: flex; align-items: center; justify-content: space-between; min-height: 40px; }
.iw-guest-l { display: flex; flex-direction: column; gap: 1px; }
.iw-guest-l b { font-size: 14.5px; font-weight: 500; }
.iw-guest-l small { font-size: 12px; color: var(--muted); }
.iw-stepper { display: flex; align-items: center; gap: 10px; }
.iw-stepper output { width: 18px; text-align: center; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.iw-step { width: 36px; height: 36px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--stepper-line); display: flex; align-items: center; justify-content: center; }
.iw-step:not(:disabled):hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.iw-step:disabled { opacity: .32; }

.iw-price { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--ink-2); }
.iw-price div { display: flex; justify-content: space-between; gap: 12px; }
.iw-price span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.iw-price .total { margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--line-2); align-items: baseline; font-size: 16px; font-weight: 600; color: var(--ink); }
.iw-notes { display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.iw-notes p { margin: 0; }
.iw-perk { display: flex; gap: 8px; align-items: flex-start; color: var(--ink-3); }
.iw-perk svg { flex-shrink: 0; margin-top: 1px; }
.iw-perk strong { font-weight: 600; }

.iw-cta { min-height: 50px; border-radius: var(--r); background: var(--accent); color: var(--on-accent); font-size: 15.5px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 22px; transition: filter .15s ease; }
.iw-cta:not(:disabled):hover { filter: brightness(1.1); }
.iw-cta:disabled { background: #e3dfd4; color: var(--muted); }

/* ---------- Enquiry form ---------- */
.iw-form { display: flex; flex-direction: column; gap: 22px; }
.iw-back { align-self: flex-start; min-height: 36px; display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 500; color: var(--ink-3); }
.iw-h3 { margin: 0 0 8px; font-family: var(--serif); font-weight: 400; font-size: 32px; letter-spacing: -0.01em; line-height: 1.1; }
.iw-lead { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-3); max-width: 520px; }
.iw-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.iw-fld { display: flex; flex-direction: column; gap: 6px; }
.iw-fld--wide { grid-column: 1 / -1; }
.iw-fld label { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.iw-fld label span { font-weight: 400; color: var(--muted); }
.iw-fld input, .iw-fld textarea { width: 100%; border: 0; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--field-line); background: #ffffff; padding: 12px 14px; font: inherit; font-size: 15px; color: var(--ink); outline: none; }
.iw-fld input:focus, .iw-fld textarea:focus { box-shadow: inset 0 0 0 2px var(--ink); }
.iw-fld input:focus-visible, .iw-fld textarea:focus-visible { outline: none; }
.iw-fld [aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--error); }
.iw-fld textarea { resize: vertical; min-height: 104px; }
.iw-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.iw-send { display: flex; align-items: center; gap: 22px; }
.iw-send .iw-cta { flex-shrink: 0; }
.iw-small { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.iw-errors { margin: 0; padding: 12px 14px; border-radius: var(--r); background: #f6e7e0; color: var(--error); font-size: 13.5px; }
.iw-errors p { margin: 0; font-weight: 600; }
.iw-errors ul { margin: 4px 0 0; padding-left: 18px; }

/* ---------- Thanks (the server's block, also on the page without JS) ---------- */
.iw-thanks .bk-thanks { padding: 40px 0; }
.iw[data-step="thanks"] .iw-panel { display: none; }   /* sent: nothing left to change */

/* ---------- Bottom bar (narrow only) ---------- */
.iw-bar { display: none; }

/* ---------- Narrow: one month, bottom bar, panel moves into the enquiry step ---------- */
@container (max-width: 759px) {
  .iw-head { margin-bottom: 20px; }
  .iw-title { font-size: 28px; }
  .iw-head-r { align-items: flex-start; }
  .iw-sync { font-size: 12.5px; }
  .iw-body { flex-direction: column; gap: 20px; align-items: stretch; }
  .iw-main { width: 100%; gap: 20px; }
  .iw-cal { gap: 18px; }
  .iw-panel { width: 100%; }
  .iw[data-step="cal"] .iw-panel { display: none; }
  .iw[data-step="form"] .iw-body { flex-direction: column-reverse; }
  .iw[data-step="form"] .iw-panel .iw-dates,
  .iw[data-step="form"] .iw-panel .iw-dates + .iw-rule { display: none; }

  .iw-rail { display: flex; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 0 20px; }
  .iw-rail::-webkit-scrollbar { display: none; }
  .iw-chip { width: 56px; flex-shrink: 0; }
  .iw-months { justify-content: center; }
  .iw-month { flex: 0 1 336px; }
  .iw-mhead { justify-content: space-between; }
  .iw-mtitle { flex-grow: 0; padding: 0; font-size: 22px; text-align: center; }
  .iw-nav { width: 44px; height: 44px; }
  .iw-grid { grid-template-columns: repeat(7, minmax(0, 48px)); justify-content: center; }
  .iw .d { height: 46px; }
  .iw .d .n { width: min(42px, 100%); height: 42px; font-size: 16px; }
  .iw-reset { align-self: center; min-height: 44px; }
  .iw-foot { flex-direction: column; align-items: flex-start; }
  .iw-brand { margin-left: 0; }
  .iw-fields { grid-template-columns: minmax(0, 1fr); }
  .iw-fld input, .iw-fld textarea { font-size: 16px; } /* stops iOS zooming in on focus */
  .iw-send { flex-direction: column; align-items: stretch; }
  .iw-step { width: 40px; height: 40px; }

  /* Inside the iframe it cannot stick to the guest's screen (embed.js sizes the iframe to the
     widget); it sits right under the month, and choosing the departure scrolls it into view. */
  .iw[data-step="cal"] .iw-bar {
    display: flex; align-items: center; gap: 14px;
    position: sticky; bottom: 0; z-index: 2;
    margin: 0 -20px; padding: 14px 20px 16px;
    background: var(--paper);
    box-shadow: 0 -1px 0 var(--line), 0 -14px 28px rgba(28, 31, 27, .06);
  }
  .iw-bar-t { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
  .iw-bar-t b { font-size: 14.5px; font-weight: 600; }
  .iw-bar-t span { font-size: 12.5px; color: var(--ink-3); }
  .iw-bar .iw-cta { min-height: 48px; padding: 0 20px; font-size: 15px; }
  .iw-toast { position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); margin: 0 12px; padding: 12px 14px; border-radius: var(--r); background: var(--ink); color: var(--paper); font-size: 13.5px; line-height: 1.4; }
  .iw-toast strong { font-weight: 600; }
}
@container (max-width: 759px) {
  .iw { padding: 24px 20px 30px; }
}
@container (max-width: 359px) {
  .iw { padding: 20px 12px 24px; }
  .iw-rail { margin: 0 -12px; padding: 0 12px; }
  .iw[data-step="cal"] .iw-bar { margin: 0 -12px; padding: 14px 12px 16px; }
}

/* ================= The plain calendar (no JS) and the server's own pages ================= */
.bk { max-width: 1080px; margin: 0 auto; padding: 24px 20px 30px; }
.bk-live { max-width: none; padding: 0; }
.bk-head h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.1; letter-spacing: -0.01em; }
.bk-sync { display: flex; align-items: center; gap: 8px; margin: 8px 0 20px; color: var(--ink-3); font-size: 13px; }
.bk-sync::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex-shrink: 0; }
/* hosted: the language switch (Slice P8), a plain link so it works without JS */
.bk-lang { float: right; margin: -10px 0 0 12px; font-size: 13.5px; }
.bk-lang a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; color: var(--ink); font-weight: 500; text-underline-offset: 3px; }

.bk-months { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px 36px; }
.month h3 { margin: 0 0 8px; font-family: var(--serif); font-weight: 500; font-size: 20px; }
.grid { display: grid; grid-template-columns: repeat(7, minmax(0, 44px)); gap: 3px; }
.wd { text-decoration: none; text-align: center; font-size: 12px; font-weight: 500; color: var(--muted); padding-bottom: 4px; }
.grid > .d { --under: var(--paper); width: min(40px, 100%); justify-self: center; display: flex; align-items: center; justify-content: center; height: 38px; border: 0; border-radius: var(--r); padding: 0; background: none; font: inherit; font-size: 14.5px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--ink); }
.grid > .d.pad { background: none; }
.grid > .d.past { color: var(--past-fg); font-weight: 400; }
.grid > .s-frei { background: none; }
.grid > .s-belegt { background: var(--hatch); color: var(--busy-fg); font-weight: 400; }
.s-belegt > span { text-decoration: line-through; }
.grid > .s-anreise { background: linear-gradient(135deg, var(--under) 50%, transparent 50%), var(--hatch); }   /* taken from noon */
.grid > .s-abreise { background: linear-gradient(135deg, transparent 50%, var(--under) 50%), var(--hatch); }   /* taken until noon */

.bk-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 18px; padding: 16px 0 0; margin: 20px 0 0; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); }
.bk-legend li { display: flex; align-items: center; gap: 7px; }
.sw { width: 22px; height: 22px; border-radius: var(--r-s); display: inline-block; }
.sw.s-frei { box-shadow: inset 0 0 0 1px var(--field-line); }
.sw.s-belegt { background: var(--hatch); }
.sw.s-anreise { background: linear-gradient(135deg, var(--paper) 50%, transparent 50%), var(--hatch); }
.sw.s-abreise { background: linear-gradient(135deg, transparent 50%, var(--paper) 50%), var(--hatch); }
.no-js .bk-hint, .bk-pager, .bk-steps { display: none; }
.bk-hint { margin: 16px 0 0; font-size: 13.5px; color: var(--ink-2); }

.bk-form { margin-top: 28px; padding: 22px; border-radius: var(--r-p); background: var(--panel); display: grid; gap: 16px; max-width: 640px; }
.bk-form-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.1; }
.bk-form label { display: block; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.opt { font-weight: 400; color: var(--muted); }
.bk-form input, .bk-form select, .bk-form textarea { display: block; margin-top: 6px; width: 100%; min-height: 44px; padding: 10px 12px; border: 0; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--field-line); background: #ffffff; font: inherit; font-size: 16px; color: var(--ink); }
.bk-form textarea { min-height: 96px; resize: vertical; }
.bk-form input:focus, .bk-form select:focus, .bk-form textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ink); }
.row { display: grid; gap: 16px; }
@media (min-width: 480px) {
  .row.two { grid-template-columns: 1fr 1fr; }
  .row.three { grid-template-columns: repeat(3, 1fr); }
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bk-estimate { display: none; }
.bk-privacy, .bk-small { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.bk-privacy a { color: var(--ink); }
.bk-submit, .button-accent { justify-self: start; display: inline-flex; align-items: center; min-height: 50px; padding: 0 22px; border: 0; border-radius: var(--r); background: var(--accent); color: var(--on-accent); font: inherit; font-size: 15.5px; font-weight: 600; text-decoration: none; cursor: pointer; transition: filter .15s ease; }
.bk-submit:hover, .button-accent:hover { filter: brightness(1.1); }
.bk-submit:disabled { opacity: .6; cursor: progress; }
.bk-errors { margin: 0; padding: 12px 14px; border-radius: var(--r); background: #f6e7e0; color: var(--error); font-size: 13.5px; }
.bk-errors p { margin: 0; font-weight: 600; }
.bk-errors ul { margin: 4px 0 0; padding-left: 18px; }

/* thanks: the same block in the widget and on the page after a plain form */
.bk-thanks { display: flex; flex-direction: column; gap: 16px; max-width: 540px; padding: 16px 0; }
.bk-thanks:focus { outline: none; }
.bk-check { width: 48px; height: 48px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.bk-thanks h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1.1; letter-spacing: -0.012em; }
.bk-thanks p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.bk-thanks a { color: var(--ink); font-weight: 500; text-underline-offset: 3px; }
.bk-demo-note { padding: 12px 14px; border-radius: var(--r); background: var(--panel); font-size: 14px !important; }

/* hosted without a running Abo (D47): her name and her mail address */
.bk-closed .bk-head h2 { margin-bottom: 16px; font-size: 32px; }
.bk-closed p { margin: 0 0 16px; font-size: 15px; line-height: 1.55; color: var(--ink-2); max-width: 540px; }

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