/* Booking page – "Ruhig & edel". Mobile first. No external requests (fonts fall back to the system font).
   Brand colours from mehrverdient.de: navy + warm gold. Spec: docs/superpowers/specs/2026-11-13-booking-page-redesign-design.md */
:root {
  --navy: #061935;
  --navy-2: #0f2a52;
  --gold: #90826b;         /* 3.76:1 on white: large text, the logotype ".de" and decoration only */
  --gold-soft: #e9e2d3;
  --gold-bright: #d9c79d;
  --ink: #0b1626;
  --muted: #5b6676;        /* 5.9:1 on white */
  --line: #e6e8ec;
  --bg: #ffffff;
  --tint: #f6f4ef;
  --warn-bg: #fbf1dc;
  --warn-line: #e2c27a;
  --radius: 20px;
  --gutter: 20px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --shadow: 0 16px 40px -24px rgba(6, 25, 53, 0.35);
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-padding-bottom: 6rem; /* keep focused chips clear of the booking bar */ }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h2 { font-size: 1.625rem; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; text-wrap: balance; }
h3 { font-size: 1rem; line-height: 1.35; font-weight: 650; }
a { color: var(--navy); text-underline-offset: 0.18em; }

:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 6px; }

.nw { white-space: nowrap; }
.small { font-size: 0.875rem; color: var(--muted); margin-top: 14px; }
.lead { color: var(--muted); margin-top: 8px; }

.wrap { max-width: 35rem; margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 20;
  background: var(--navy); color: #fff; padding: 0.5rem 0.9rem; border-radius: 10px;
}
.skip-link:focus { top: 0.5rem; }

/* Top bar */
.topbar-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 16px; padding-block: 16px; }
.brand { font-weight: 700; letter-spacing: -0.01em; font-size: 1rem; color: var(--navy); }
.brand-tld { color: var(--gold); }
.brand-link { text-decoration: none; }
.topbar-name { font-size: 0.875rem; color: var(--muted); }

/* Sections */
main > section { margin-top: 56px; }
main > section.hero { margin-top: 8px; }

/* Buttons */
.button {
  display: flex; align-items: center; justify-content: center; text-align: center;
  width: 100%; min-height: 56px; padding: 10px 24px; border-radius: 16px;
  background: var(--navy); color: #fff; text-decoration: none;
  font-weight: 650; font-size: 1.0625rem; line-height: 1.2; letter-spacing: -0.005em;
  box-shadow: 0 8px 24px -8px rgba(6, 25, 53, 0.5);
  transition: transform 100ms ease-out, background-color 150ms ease-out;
}
.button:hover { background: var(--navy-2); }
.button:active { transform: scale(0.97); }
.button:focus-visible { outline-color: var(--gold); border-radius: 16px; }
.button-small { width: auto; min-height: 44px; padding: 8px 18px; border-radius: 14px; font-size: 0.9375rem; box-shadow: none; white-space: nowrap; }

/* Hero */
.me { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.me img {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: #fff;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--gold-bright);
}
.me b { display: block; font-size: 1.0625rem; line-height: 1.2; font-weight: 650; }
.me span { color: var(--muted); font-size: 0.875rem; }
.kicker {
  display: inline-block; padding: 6px 12px; border-radius: 14px;
  background: var(--gold-soft); color: #4d4433; font-size: 0.8125rem; font-weight: 600; line-height: 1.3;
}
.hero h1 { margin-top: 14px; font-size: 1rem; font-weight: 400; }
.h1-display {
  display: block; color: var(--navy); font-weight: 750; text-wrap: balance;
  font-size: clamp(2.5rem, 11.5vw, 3.5rem); line-height: 1.02; letter-spacing: -0.04em;
}
.h1-display em { font-style: normal; color: var(--gold); }
.h1-anchor { display: block; margin-top: 14px; font-size: 1.125rem; line-height: 1.4; font-weight: 700; color: var(--navy); }
.h1-cond { display: block; margin-top: 2px; font-size: 1rem; font-weight: 400; color: var(--muted); }
.hero .button { margin-top: 22px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; font-size: 0.875rem; color: var(--muted); }
.meta li::before { content: "✓ "; color: var(--gold); font-weight: 700; }

/* Numbers */
.tiles { display: grid; gap: 12px; margin-top: 20px; }
.tile {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: baseline;
  padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.number { font-size: 1.75rem; line-height: 1.1; font-weight: 750; letter-spacing: -0.03em; color: var(--navy); font-variant-numeric: tabular-nums; white-space: nowrap; }
.number-pre { font-size: 1rem; font-weight: 650; letter-spacing: 0; }
.number-label { font-weight: 650; }
.number-cond { grid-column: 2; color: var(--muted); font-size: 0.9375rem; }

/* Depot-Check */
.check-card { margin-top: 20px; padding: 22px 20px; border-radius: 24px; background: var(--navy); color: #fff; }
.check-card:has(> form[hidden]) { display: none; }
.check { display: grid; gap: 22px; }
.step { display: grid; gap: 14px; }
.step-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-bright); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 12px; font-size: 1.125rem; line-height: 1.3; font-weight: 650; letter-spacing: -0.01em; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
/* The real radio lies invisibly over its own chip, so taps, focus and "scroll into view" all land on the chip. */
.choice { position: relative; display: inline-flex; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice label {
  display: inline-flex; align-items: center; min-height: 44px; padding: 9px 16px; border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.4); font-size: 0.9375rem; font-weight: 550; line-height: 1.25;
  transition: transform 100ms ease-out, background-color 120ms ease-out, border-color 120ms ease-out;
}
.choice input:hover + label { border-color: var(--gold-bright); }
.choice input:active + label { transform: scale(0.97); }
.choice input:checked + label { background: var(--gold-bright); color: var(--navy); border-color: transparent; font-weight: 650; }
.choice input:focus-visible + label { outline: 3px solid var(--gold-bright); outline-offset: 2px; }
.result { margin-top: 22px; padding: 18px; border-radius: 16px; background: #fff; color: var(--ink); animation: result-in 200ms ease-out; }
.result:empty { display: none; }
.result > * + * { margin-top: 10px; }
.result-hint { color: var(--muted); font-size: 0.9375rem; }
.result-amount { font-size: 1.25rem; line-height: 1.3; font-weight: 700; letter-spacing: -0.015em; color: var(--navy); animation: result-in 200ms ease-out; }
.result-lines { padding-left: 1.1rem; list-style: disc; font-size: 0.9375rem; }
.result-lines li + li { margin-top: 4px; }
.result-note { padding: 12px 14px; border-radius: 12px; background: var(--warn-bg); border: 1px solid var(--warn-line); font-size: 0.9375rem; }
@keyframes result-in { from { opacity: 0; } to { opacity: 1; } }

/* Why now */
.reasons { display: grid; gap: 12px; margin-top: 20px; }
.reason { padding: 18px 20px; border-radius: var(--radius); background: var(--tint); }
.reason p { color: var(--muted); font-size: 0.9375rem; margin-top: 2px; }
.note { margin-top: 12px; padding: 16px 18px; border-radius: 16px; border: 1px solid #e5dcc7; background: #fbf8f1; font-size: 0.9375rem; }

/* How it works */
.steps { counter-reset: s; margin-top: 12px; }
.steps li { counter-increment: s; position: relative; padding: 16px 0 16px 54px; min-height: 72px; border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 0; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 16px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: var(--gold-soft); color: var(--navy); font-weight: 700;
}
.steps p { color: var(--muted); font-size: 0.9375rem; }

/* About */
.portrait { position: relative; margin-top: 20px; border-radius: 28px; overflow: hidden; background: linear-gradient(180deg, #f1ece1, var(--gold-soft)); }
.david-media { display: block; }
.david-photo { display: block; width: 100%; height: auto; aspect-ratio: 1 / 0.92; object-fit: cover; object-position: 50% 0; mix-blend-mode: multiply; }
.david-video { display: block; width: 100%; background: #000; }
.name-chip {
  position: absolute; left: 12px; bottom: 12px; padding: 8px 14px; border-radius: 14px; font-weight: 650;
  background: rgba(255, 255, 255, 0.72); border: 1px solid rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
}
.david-media.has-video + .name-chip { display: none; }
.placeholder-text { margin-top: 18px; border-left: 4px dashed var(--warn-line); padding-left: 12px; }
.fair { margin-top: 18px; padding: 18px 20px; border-radius: var(--radius); background: var(--tint); }
.fair p { color: var(--muted); font-size: 0.9375rem; margin-top: 2px; }

/* Calendar */
.calendar { scroll-margin-top: 12px; }
.calendar:focus { outline: none; }
.cal-wrap { max-width: 64rem; margin: 20px auto 0; padding: 0 12px; }
.cal-inline { width: 100%; min-height: 32rem; border-radius: 24px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.cal-loading { text-align: center; color: var(--muted); padding: 3rem var(--gutter); }
.cal-fallback { max-width: 35rem; margin-inline: auto; text-align: center; padding: 1rem 8px 1.5rem; }
.cal-fallback p { margin-bottom: 14px; }
.cal-direct { text-align: center; padding: 0 var(--gutter); margin-top: 1rem; }

/* Footer */
.footer { margin-top: 56px; padding: 32px 0 40px; border-top: 1px solid var(--line); font-size: 0.9375rem; color: var(--muted); }
body:has(.bar:not([hidden])) .footer { padding-bottom: 7.5rem; }
.footer nav { display: flex; gap: 1.25rem; margin: 0.5rem 0 1rem; }
.footer nav a { color: var(--ink); font-weight: 600; padding: 0.35rem 0; }
.footer-legal { font-size: 0.8125rem; line-height: 1.5; }

/* Booking bar (bar.js adds .on) */
.bar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 10; max-width: 33.5rem; margin-inline: auto;
  display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 14px; border-radius: 20px;
  background: rgba(255, 255, 255, 0.72); border: 1px solid rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 12px 32px -8px rgba(6, 25, 53, 0.28), 0 0 0 1px rgba(6, 25, 53, 0.06);
  opacity: 0; transform: translateY(24px); pointer-events: none; visibility: hidden;
  transition: opacity 240ms var(--ease), transform 320ms var(--ease), visibility 0s linear 320ms;
}
.bar.on { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.bar img { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #fff; }
.bar-text { flex: 1; min-width: 0; line-height: 1.2; }
.bar-text b { display: block; font-size: 0.9375rem; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-text span { display: block; font-size: 0.8125rem; color: #3a4452; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Narrow phones: the text needs the room of the small photo. */
@media (max-width: 23.75rem) {
  .bar img { display: none; }
}

/* Legal pages */
.draft-banner { background: var(--warn-bg); border-bottom: 2px solid var(--warn-line); padding: 0.75rem var(--gutter); font-size: 0.9375rem; text-align: center; }
.legal { padding: 2rem 0 2.5rem; }
.legal h1 { font-size: 2rem; line-height: 1.1; letter-spacing: -0.03em; font-weight: 750; color: var(--navy); margin-bottom: 0.6em; }
.legal h2 { font-size: 1.3rem; margin: 1.75rem 0 0.5em; }
.legal h3 { font-size: 1.05rem; margin: 1.25rem 0 0.4em; }
.legal p, .legal ul, .legal ol, .legal address { margin-bottom: 1em; }
.legal ul { list-style: disc; padding-left: 1.2rem; }
.legal ol { list-style: decimal; padding-left: 1.2rem; }
.legal address { font-style: normal; }
.mark { background: var(--warn-bg); outline: 1px dashed var(--warn-line); padding: 0 0.2em; }
.back { display: inline-block; margin-bottom: 1.5rem; }

/* Larger screens: same single column, a little more air */
@media (min-width: 40rem) {
  main > section { margin-top: 72px; }
  main > section.hero { margin-top: 32px; }
  .topbar-inner { padding-block: 22px; }
}

/* User preferences */
@media (prefers-reduced-motion: reduce) {
  .button, .choice label { transition: none; }
  .button:active, .choice input:active + label { transform: none; }
  .bar { transform: none; transition: opacity 200ms ease, visibility 0s linear 200ms; }
  .bar.on { transition-delay: 0s; }
  .result, .result-amount { animation: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .bar, .name-chip { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; border-color: var(--navy); }
}
@media (prefers-contrast: more) {
  :root { --muted: #3a4452; --line: #8b93a1; }
  .bar, .name-chip { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; border-color: var(--navy); }
  .h1-display em { color: #5f5543; }
  .choice label { border-color: #fff; }
}
