/* Kalkweiß Malerwerkstatt: Stile. Gestaltungswerte hängen an den Variablen in :root, der Baukasten überschreibt nur diese. */
@font-face { font-family: "Literata"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("/assets/fonts/literata-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: "Literata"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("/assets/fonts/literata-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  /* Palette „Frost Bright“ (no-slop-ui): kühles Hellgrau, Tinte, Petrol als einziger Handlungsfarbton.
     Die Wandfarben der Farbprobe sind Inhalt, keine Gestaltung, und stehen in src/data/toene.json. */
  --c-main: #0f766e;
  --c-main-hover: #115e59;
  --c-accent: #0f766e;
  --c-on-main: #ffffff;
  --c-ink: #0f172a;
  --c-muted: #475569;
  --c-bg: #f1f5f9;
  --c-surface: #ffffff;
  --c-alt: #e2e8f0;
  --c-line: #cbd5e1;
  --c-field: #64748b;
  --c-tint: #e3f1ef;
  --c-warn: #b42318;
  --font-head: "Literata", Georgia, serif;
  --font-body: "Literata", Georgia, serif;
  --fs: 17.5px;
  --hs: 1;
  --hw: 600;
  --lh: 1.6;
  --wrap: 1200px;
  --radius: 2px;
  --space: 1;
  --shadow: 0 2px 8px rgba(15, 23, 42, .08);
  --sec-y: calc(96px * var(--space));
  --gutter: 24px;
  --header-h: 72px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --c-main: #5eb5a9; --c-main-hover: #7cc7bc; --c-accent: #5eb5a9; --c-on-main: #0f172a;
    --c-ink: #f1f5f9; --c-muted: #94a3b8; --c-bg: #0f172a; --c-surface: #1e293b; --c-alt: #162032; --c-line: #334155; --c-field: #748297;
    --c-tint: #12322f; --c-warn: #f97066; --shadow: 0 2px 8px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --c-main: #5eb5a9; --c-main-hover: #7cc7bc; --c-accent: #5eb5a9; --c-on-main: #0f172a;
  --c-ink: #f1f5f9; --c-muted: #94a3b8; --c-bg: #0f172a; --c-surface: #1e293b; --c-alt: #162032; --c-line: #334155; --c-field: #748297;
  --c-tint: #12322f; --c-warn: #f97066; --shadow: 0 2px 8px rgba(0, 0, 0, .4);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--c-bg); color: var(--c-ink); font: 400 var(--fs)/var(--lh) var(--font-body); overflow-wrap: break-word; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--c-main); text-underline-offset: .18em; text-decoration-thickness: 1px; transition: color .15s ease; }
a:hover { color: var(--c-main-hover); text-decoration-thickness: 2px; }
a[href], button:not(:disabled), summary, select, label[for], label.tone, input[type="checkbox"], input[type="radio"], [role="button"] { cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--c-main); outline-offset: 2px; }
h1, h2, h3 { margin: 0 0 .45em; font-family: var(--font-head); font-weight: var(--hw); line-height: 1.12; letter-spacing: -.01em; color: var(--c-ink); text-wrap: balance; }
h1 { font-size: calc(clamp(36px, 1.8rem + 3.2vw, 70px) * var(--hs)); line-height: 1.04; letter-spacing: -.02em; }
h2 { font-size: calc(clamp(28px, 1.4rem + 1.6vw, 44px) * var(--hs)); }
h3 { font-size: calc(clamp(20px, 1.1rem + .45vw, 25px) * var(--hs)); line-height: 1.22; }
p, ul, ol, dl, figure, table { margin: 0 0 1em; }
p { text-wrap: pretty; }
address { font-style: normal; }
[hidden] { display: none !important; }
.icon { width: 20px; height: 20px; flex: none; fill: currentColor; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--c-main); color: var(--c-on-main); font-weight: 600; }
.skip-link:focus { top: 12px; }
main:focus { outline: none; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.lead { font-size: calc(var(--fs) * 1.14); color: var(--c-muted); max-width: 52ch; }
.muted { color: var(--c-muted); }
.req { margin-left: 2px; color: var(--c-warn); font-weight: 700; }

.concept-note { padding: 8px 0; border-bottom: 1px solid var(--c-line); color: var(--c-muted); font-size: 14px; line-height: 1.45; }
.concept-note p { margin-block: 0; }
.concept-note a { color: inherit; }
.announce { background: var(--c-tint); color: var(--c-ink); }
.announce p { margin: 0; padding: 10px 0; font-weight: 600; }
.announce--vac { background: var(--c-main); color: var(--c-on-main); }
.announce--vac a { color: inherit; }

/* ---------- Knöpfe ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 24px; border: 1px solid var(--c-main); border-radius: var(--radius); background: var(--c-main); color: var(--c-on-main); font: 600 16.5px/1.2 var(--font-body); text-decoration: none; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.btn:hover { background: var(--c-main-hover); border-color: var(--c-main-hover); color: var(--c-on-main); text-decoration: none; }
.btn:active { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-bg); }
.btn--ghost { background: transparent; color: var(--c-ink); border-color: var(--c-ink); }
.btn--ghost:hover { background: var(--c-surface); color: var(--c-ink); border-color: var(--c-ink); }
.btn .icon { width: 18px; height: 18px; }

/* ---------- Kopfzeile ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--c-bg); border-bottom: 1px solid var(--c-line); }
.site-header__inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; min-height: 44px; margin-right: auto; color: var(--c-ink); text-decoration: none; }
.brand:hover { color: var(--c-ink); text-decoration: none; }
/* Marke als Farbkarte: Kalkweiß oben, Petrol unten */
.brand__chip { width: 22px; height: 28px; flex: none; border: 1.5px solid var(--c-ink); background: #f7f9ef; box-shadow: inset 0 -9px 0 var(--c-main); }
.brand__name { font-size: 23px; font-weight: 700; letter-spacing: -.01em; }
.brand__sub { font-size: 14.5px; color: var(--c-muted); white-space: nowrap; }
.site-nav__list { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.site-nav a { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 8px 12px; color: var(--c-ink); font-size: 16.5px; text-decoration: none; border-bottom: 2px solid transparent; transition: color .15s ease, border-color .15s ease; }
.site-nav a:hover { color: var(--c-main); }
.site-nav a[aria-current="page"] { color: var(--c-main); font-weight: 600; border-bottom-color: var(--c-main); }
.header-tools { display: flex; align-items: center; gap: 8px; }
.tool { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; border: 1px solid var(--c-line); border-radius: var(--radius); background: transparent; color: var(--c-ink); font: 600 14px/1 var(--font-body); text-decoration: none; transition: border-color .15s ease; }
.tool:hover { border-color: var(--c-ink); color: var(--c-ink); text-decoration: none; }
.tool svg { width: 20px; height: 20px; }
.theme-toggle .i-sun { display: none; }
.theme-toggle[aria-pressed="true"] .i-sun { display: block; }
.theme-toggle[aria-pressed="true"] .i-moon { display: none; }
.nav-toggle { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1px solid var(--c-line); border-radius: var(--radius); background: transparent; color: var(--c-ink); font: 600 15px/1 var(--font-body); }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 18px; height: 2px; background: currentColor; }
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; } .nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

/* ---------- Abschnitte ---------- */
.section { padding-block: var(--sec-y); }
.section--alt { background: var(--c-alt); }
.section--tight { padding-block: calc(var(--sec-y) * .6); }
.head { max-width: 720px; margin-bottom: 44px; }
.head p { margin: 0; color: var(--c-muted); }
.breadcrumb { margin: 0 0 4px; font-size: 15px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.breadcrumb li { display: flex; align-items: center; gap: 4px; }
.breadcrumb li + li::before { content: "/"; color: var(--c-muted); }
.breadcrumb a { display: inline-block; min-width: 44px; padding-block: 12px; color: var(--c-muted); }

/* ---------- Kopfbereich Startseite: Titelzeile, darunter Fotoband über die volle Breite ---------- */
.hero__top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 64px; align-items: end; padding-block: 72px 48px; }
.hero__top h1 { margin: 0; max-width: 15ch; }
.hero__side .lead { margin: 0; }
.hero__band { position: relative; margin: 0; height: clamp(240px, 40vw, 540px); background: var(--c-alt); border-block: 1px solid var(--c-ink); overflow: hidden; }
.hero__band img { width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }
.hero__band figcaption, .page-hero__media figcaption { position: absolute; right: 12px; bottom: 12px; margin: 0; padding: 2px 8px; background: rgba(15, 23, 42, .84); color: #f1f5f9; font-size: 12.5px; line-height: 1.5; }
.hero__band figcaption a, .page-hero__media figcaption a { color: inherit; }

/* ---------- Arbeiten: Zeilen mit Foto links ---------- */
.works { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--c-line); }
.work { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 24px 48px; align-items: center; padding: 32px 0; border-top: 1px solid var(--c-line); }
.work img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.work h3 { margin-bottom: 8px; font-size: calc(clamp(26px, 1.3rem + 1vw, 36px) * var(--hs)); }
.work h3 a { display: inline-block; padding-block: 6px; color: var(--c-ink); text-decoration: none; }
.work h3 a::after { content: " \2192"; color: var(--c-main); }
.work h3 a:hover { color: var(--c-main); text-decoration: underline; }
.work p { max-width: 46ch; margin-bottom: 10px; color: var(--c-muted); }
.work .work__credit { margin: 0; font-size: 13px; }
.work__credit a { color: inherit; }

/* ---------- Farbprobe (Erkennungsmotiv) ---------- */
.probe { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-areas: "head head" "room tones" "room foot"; gap: 28px 48px; align-items: start; }
.probe__head { grid-area: head; max-width: 720px; }
.probe__head h2 { margin-bottom: .3em; }
.probe__head p { margin: 0; }
.probe__room { grid-area: room; margin: 0; border: 1px solid var(--c-ink); background: var(--c-surface); }
.probe__room svg { width: 100%; height: auto; }
.probe__room figcaption { padding: 10px 14px; border-top: 1px solid var(--c-line); font-size: 15px; color: var(--c-muted); }
.probe__room figcaption span { color: var(--c-ink); font-weight: 600; }
/* Das Zimmer ist ein Bild: feste Farben, nur die Wand wechselt */
.room__wall { fill: var(--wand, #f7f9ef); transition: fill .2s ease; }
.room__floor { fill: #b79b78; }
.room__planks { fill: none; stroke: rgba(70, 48, 26, .28); stroke-width: 1.5; }
.room__trim, .room__door { fill: #f6f6f1; stroke: #2b3036; stroke-width: 1.5; }
.room__glass { fill: #dce7ec; }
.room__frame { fill: none; stroke: #f6f6f1; stroke-width: 9; }
.room__line { fill: none; stroke: #2b3036; stroke-opacity: .55; stroke-width: 1.5; }
.room__knob { fill: #7b8186; }
.room__lamp { fill: #2b3036; }
.probe__tones { grid-area: tones; min-width: 0; margin: 0; padding: 0; border: 0; }
.probe__tones legend { margin-bottom: 10px; padding: 0; font-weight: 600; }
.tones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tone { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: center; min-height: 58px; padding: 8px 10px; border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-surface); transition: border-color .15s ease; }
.tone:hover { border-color: var(--c-ink); }
.tone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.tone:has(input:focus-visible) { outline: 2px solid var(--c-main); outline-offset: 2px; }
.tone:has(input:checked) { border: 2px solid var(--c-ink); padding: 7px 9px; }
.tone__chip { width: 34px; height: 40px; border: 1px solid rgba(15, 23, 42, .3); }
.tone__text { font-size: 14.5px; line-height: 1.25; }
.tone__code { display: block; font-size: 12.5px; font-weight: 600; color: var(--c-muted); }
.tone:has(input:checked) .tone__text { font-weight: 600; }
.probe__foot { grid-area: foot; }
.probe__note { margin: 14px 0 0; font-size: 14.5px; color: var(--c-muted); }
.probe__note a { color: inherit; }
.probe-hint { margin: 28px 0 0; }

/* ---------- Tage und Hinweise ---------- */
.days { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin: 0; padding: 0; list-style: none; }
.days li { padding-top: 16px; border-top: 3px solid var(--c-ink); }
.days h3 { font-size: calc(clamp(26px, 1.3rem + 1vw, 34px) * var(--hs)); }
.days p { margin: 0; color: var(--c-muted); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 32px 0 0; padding: 0; list-style: none; }
.facts li { padding-top: 14px; border-top: 2px solid var(--c-main); }
.facts h3 { margin-bottom: 6px; }
.facts p { margin: 0; color: var(--c-muted); }

/* ---------- Gebiet ---------- */
.area { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 48px; align-items: start; }
.towns { columns: 3; column-gap: 32px; margin: 0; padding: 0; list-style: none; }
.towns li { padding: 9px 0; border-bottom: 1px solid var(--c-line); break-inside: avoid; }

/* ---------- Unterseiten ---------- */
.page-head { padding-block: 48px 8px; }
.page-head h1 { margin-bottom: .3em; }
.page-head .lead { margin: 0; }
.page-hero { padding-block: 40px 64px; border-bottom: 1px solid var(--c-line); }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 64px; align-items: center; }
.page-hero__media { position: relative; margin: 0; border: 1px solid var(--c-ink); }
.page-hero__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.ticks { columns: 2; column-gap: 48px; margin: 0; padding: 0; list-style: none; }
.ticks li { break-inside: avoid; display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--c-line); }
.ticks li::before { content: ""; flex: none; width: 12px; height: 16px; margin-top: .3em; border: 1px solid var(--c-ink); background: var(--c-surface); box-shadow: inset 0 -6px 0 var(--c-main); }
.others { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin: 0; padding: 0; list-style: none; }
.others a { display: block; min-height: 44px; padding-top: 16px; border-top: 3px solid var(--c-ink); color: var(--c-ink); text-decoration: none; }
.others h3 { margin-bottom: 4px; transition: color .15s ease; }
.others a:hover h3 { color: var(--c-main); text-decoration: underline; text-underline-offset: .18em; }
.others span { display: block; color: var(--c-muted); }

/* ---------- Fragen ---------- */
.faq { border-top: 1px solid var(--c-ink); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--c-line); }
.faq summary { position: relative; display: block; padding: 20px 48px 20px 0; font-weight: 600; font-size: 19px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--c-main); }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 30px; font-weight: 400; color: var(--c-main); }
.faq details[open] > summary::after { content: "\2212"; }
details.is-anim { overflow: hidden; }
.faq details p { margin: 0; padding: 0 0 20px; max-width: 68ch; color: var(--c-muted); }

/* ---------- Aufruf ---------- */
.cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; padding: 44px 0; border-block: 3px solid var(--c-ink); }
.cta h2 { margin-bottom: .2em; font-size: calc(clamp(30px, 1.6rem + 2vw, 50px) * var(--hs)); }
.cta p { margin: 0; color: var(--c-muted); max-width: 52ch; }
.cta .actions { margin: 0; }

/* ---------- Formular ---------- */
.book { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.form { padding: 32px; border: 1px solid var(--c-line); background: var(--c-surface); }
.form h2 { font-size: calc(28px * var(--hs)); }
.form__hint { color: var(--c-muted); font-size: 15.5px; }
.field { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.field label, .field legend { display: block; margin-bottom: 6px; padding: 0; font-size: 16px; font-weight: 600; }
.field .opt { font-weight: 400; color: var(--c-muted); }
.field input:not([type="radio"]):not([type="checkbox"]), .field select, .field textarea { display: block; width: 100%; min-height: 50px; padding: 11px 14px; border: 1px solid var(--c-field); border-radius: var(--radius); background: var(--c-surface); color: var(--c-ink); font: 400 16.5px/1.4 var(--font-body); transition: border-color .15s ease; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--c-ink); }
.field [aria-invalid="true"] { border-color: var(--c-warn) !important; border-width: 2px !important; }
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.options label { display: flex; gap: 10px; align-items: flex-start; min-height: 50px; margin: 0; padding: 12px 14px; border: 1px solid var(--c-field); border-radius: var(--radius); font-weight: 400; font-size: 16px; transition: border-color .15s ease; }
.options label:hover { border-color: var(--c-ink); }
.options input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--c-main); }
.options label:has(input:checked) { border: 2px solid var(--c-main); padding: 11px 13px; background: var(--c-tint); }
.options[aria-invalid="true"] label { border-color: var(--c-warn); }
.field__hint { margin: 6px 0 0; color: var(--c-muted); font-size: 14.5px; }
.field__error { display: flex; gap: 6px; margin: 6px 0 0; color: var(--c-warn); font-size: 14.5px; font-weight: 600; }
.field__error::before { content: "!"; display: inline-grid; place-items: center; width: 18px; height: 18px; flex: none; margin-top: 2px; border-radius: 50%; background: var(--c-warn); color: var(--c-surface); font-size: 12px; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; margin: 4px 0 18px; font-size: 15.5px; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--c-main); }
.form .btn[type="submit"] { width: 100%; }
.form-status { margin: 14px 0 0; font-size: 15.5px; color: var(--c-muted); }
.aside { padding-top: 33px; }
.aside h2 { font-size: calc(28px * var(--hs)); }
.contact-list { display: grid; grid-template-columns: 40% minmax(0, 1fr); margin: 0 0 24px; }
.contact-list dt, .contact-list dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--c-line); line-height: 24px; }
.contact-list dt { padding-right: 16px; font-weight: 600; }
.contact-list a { display: inline-block; padding-block: 10px; margin-block: -10px; }
.hours { width: 100%; margin: 0 0 12px; border-collapse: collapse; }
.hours th, .hours td { padding: 10px 0; border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: top; line-height: 24px; }
.hours th { width: 40%; padding-right: 16px; font-weight: 600; }
.vac-note { margin: 10px 0 0; padding: 8px 12px; background: var(--c-tint); color: var(--c-ink); font-weight: 600; }

.dialog { width: min(100% - 32px, 580px); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--c-line); background: var(--c-surface); color: var(--c-ink); box-shadow: var(--shadow); }
.dialog::backdrop { background: rgba(15, 23, 42, .55); }
.dialog__body { padding: 28px; }
.dialog h2 { font-size: calc(26px * var(--hs)); }
.dialog__text { max-height: 240px; overflow: auto; margin: 0 0 18px; padding: 14px; border: 1px solid var(--c-line); background: var(--c-alt); font: 400 15px/1.5 var(--font-body); white-space: pre-wrap; }
.dialog .actions { margin-top: 0; }
.dialog__close { margin-top: 16px; }

.narrow { max-width: 760px; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; font-size: calc(28px * var(--hs)); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

/* ---------- Fußzeile ---------- */
.site-footer { margin-top: var(--sec-y); padding: 56px 0 28px; border-top: 3px solid var(--c-ink); font-size: 16px; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.site-footer h2 { margin: 0 0 12px; font-size: 19px; letter-spacing: 0; }
.site-footer p, .site-footer address { color: var(--c-muted); }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li a, .site-footer address a { display: inline-block; min-width: 44px; padding-block: 10px; line-height: 24px; }
.hours-list li { padding: 4px 0; color: var(--c-muted); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--c-line); color: var(--c-muted); font-size: 14.5px; }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom a { color: inherit; }
.quickbar { display: none; }

/* ---------- Motor ---------- */
.page-loader { position: fixed; inset: 0 0 auto; z-index: 100; pointer-events: none; }
.page-loader__bar { position: absolute; top: 0; left: 0; height: 3px; width: 100%; background: var(--c-main); transform-origin: left; animation: bb-load 8s cubic-bezier(.1, .7, .1, 1) forwards; }
.page-loader__pill { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--c-ink); color: var(--c-bg); font: 600 14px/1 var(--font-body); transform: translateX(-50%); box-shadow: var(--shadow); }
.page-loader__spin { width: 16px; height: 16px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: bb-spin .8s linear infinite; }
html.is-loading main { opacity: .6; transition: opacity .2s .1s; }
@keyframes bb-load { from { transform: scaleX(0); } to { transform: scaleX(.92); } }
@keyframes bb-spin { to { transform: rotate(360deg); } }
@keyframes bb-fade { from { opacity: 0; } to { opacity: 1; } }
.preview-bar { position: sticky; top: 0; z-index: 60; display: flex; justify-content: center; gap: 14px; padding: 8px 16px; background: var(--c-ink); color: var(--c-bg); font: 600 14px/1.4 var(--font-body); }
.preview-bar a { color: inherit; }
.section--block .media img { aspect-ratio: 4 / 3; }

@media (max-width: 1200px) { .brand__sub { display: none; } }
@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; }
  .js .site-nav { visibility: hidden; opacity: 0; max-height: calc(100dvh - var(--header-h)); overflow: auto; overscroll-behavior: contain; border-bottom: 1px solid var(--c-ink); background: var(--c-bg); box-shadow: var(--shadow); }
  .nav-anim .site-nav { transition: opacity .18s ease, visibility 0s linear .18s; }
  .js .site-nav.is-open { visibility: visible; opacity: 1; }
  .nav-anim .site-nav.is-open { transition: opacity .18s ease, visibility 0s; }
  .site-nav__list { flex-direction: column; gap: 0; width: min(100% - 2 * var(--gutter), var(--wrap)); margin: 0 auto; padding: 8px 0 16px; }
  .site-nav a { justify-content: flex-start; min-height: 52px; padding: 12px 4px; border-bottom: 1px solid var(--c-line); font-size: 18px; }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--c-line); }
  .site-nav li:last-child a { border-bottom: 0; }
  html.nav-open body::after { content: ""; position: fixed; inset: 0; z-index: 20; background: rgba(15, 23, 42, .45); animation: bb-fade .18s ease; }
  .probe { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "room" "tones" "foot"; }
  .tones { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --sec-y: calc(64px * var(--space)); }
  .hero__top { grid-template-columns: minmax(0, 1fr); padding-block: 48px 36px; }
  .hero__top h1 { max-width: none; }
  .page-hero__grid, .area, .book { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .page-hero { padding-top: 24px; }
  .page-hero__media img { aspect-ratio: 4 / 3; }
  .work { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px 28px; }
  .days, .facts { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .tones { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__grid > :first-child { grid-column: 1 / -1; }
  .aside { padding-top: 0; }
  .cta { grid-template-columns: minmax(0, 1fr); align-items: start; }
}
@media (max-width: 640px) {
  :root { --fs: 17px; --gutter: 16px; --sec-y: calc(52px * var(--space)); --header-h: 62px; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .site-header__inner { gap: 8px; }
  .brand__name { font-size: 20px; }
  .brand__chip { width: 18px; height: 24px; box-shadow: inset 0 -8px 0 var(--c-main); }
  .nav-toggle__label { display: none; }
  .nav-toggle { padding: 0 13px; }
  .actions .btn { flex: 1 1 100%; }
  h1, h2 { hyphens: auto; -webkit-hyphens: auto; }
  .hero__band { height: 260px; }
  .hero__band figcaption, .page-hero__media figcaption { left: 8px; right: auto; bottom: 8px; }
  .work { grid-template-columns: minmax(0, 1fr); padding: 28px 0; }
  .tones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tone { grid-template-columns: 26px minmax(0, 1fr); gap: 8px; padding: 8px; }
  .tone:has(input:checked) { padding: 7px; }
  .tone__chip { width: 26px; height: 34px; }
  .tone__text { font-size: 13.5px; overflow-wrap: normal; }
  .towns { columns: 2; }
  .ticks { columns: 1; }
  .others { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .options, .field-row { grid-template-columns: minmax(0, 1fr); }
  .form { padding: 22px 18px; }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .dialog__body { padding: 22px 18px; }
  .quickbar { display: block; position: fixed; inset: auto 0 0; z-index: 25; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--c-ink); background: var(--c-bg); }
  .quickbar ul { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 8px; margin: 0; padding: 0; list-style: none; }
  .quickbar a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 6px; border: 1px solid var(--c-line); border-radius: var(--radius); color: var(--c-ink); font-size: 15px; font-weight: 600; text-decoration: none; }
  .quickbar .icon { width: 18px; height: 18px; }
  .quickbar__main a { border-color: var(--c-main); background: var(--c-main); color: var(--c-on-main); }
  .page-loader__pill { bottom: calc(84px + env(safe-area-inset-bottom)); }
}
@media (max-width: 380px) {
  .contact-list { grid-template-columns: minmax(0, 1fr); }
  .contact-list dt { border-bottom: 0; padding-bottom: 0; }
  .towns { columns: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .quickbar, .announce, .concept-note, .nav-toggle { display: none !important; }
  body { padding: 0; background: #fff; color: #000; }
}
@media (max-width: 360px) {
  .tone__text { hyphens: auto; -webkit-hyphens: auto; }
}

/* Sanfte Sprünge zu Ankern und Seitenübergang: Farbrolle von oben nach unten (vom Inhaber gewünscht; aus bei reduzierter Bewegung) */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  @view-transition { navigation: auto; }
}
.site-header { view-transition-name: kopf; }
.quickbar { view-transition-name: leiste; }
::view-transition-old(root), ::view-transition-new(root) { mix-blend-mode: normal; }
::view-transition-old(root) { animation: none; }
::view-transition-new(root) { animation: seitenwechsel .5s ease-in-out both; }
@keyframes seitenwechsel { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }

/* Bildnachweise: Tippziele mindestens 44 px */
figcaption a, [class*="credit"] a, body[data-page="impressum"] main a { display: inline-block; min-width: 44px; padding-block: 15px; overflow-wrap: anywhere; }
