/* ==========================================================================
   Fahrschule DEVAM — V4 design system
   "Daylight on graphite": graphite surfaces, warm cream reading areas,
   terracotta as the single signal colour.
   Order: fonts · tokens · base · layout · type · controls · header ·
   sections · components · forms · footer · overlays · admin · motion
   ========================================================================== */

/* ---------- Fonts (self-hosted, OFL) ---------- */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  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+2212, U+FEFF, U+FFFD;
}

/* V9: Latin Extended (Turkish ğ ş İ, etc.) from the same Archivo 2.001 source - only loaded when used */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-ext-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Metric-matched fallback keeps the swap from shifting layout */
@font-face {
  font-family: "Archivo Fallback";
  src: local("Arial");
  size-adjust: 101%;
  ascent-override: 88%;
  descent-override: 21%;
  line-gap-override: 0%;
}

/* ---------- Tokens ---------- */
:root {
  /* palette */
  --c-graphite-950: #232527;
  --c-graphite-900: #2a2c2f;
  --c-graphite-800: #303235;
  --c-graphite-700: #383b3e;
  --c-graphite-600: #43464a;
  --c-graphite-500: #56595d;
  --c-charcoal: #4a4642;
  --c-terra-300: #f0845a;
  --c-terra-400: #e96a3a;
  --c-terra-500: #c65a37;
  --c-terra-600: #bd5230;
  --c-terra-700: #9f452c;
  --c-cream-50: #faf7f2;
  --c-cream-100: #f1e8dc;
  --c-sand-200: #ded1c1;
  --c-ink: #27292b;
  --c-ink-2: #57524c;
  --c-light: #f7f3ed;
  --c-light-2: #cdc5bb;
  --c-success: #3f7a52;
  --c-error: #b3261e;

  /* type */
  --font: "Archivo", "Archivo Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-display: clamp(2.125rem, 1.5rem + 2.9vw, 3.75rem);
  --fs-h1: clamp(2rem, 1.45rem + 2.7vw, 3.5rem);
  --fs-h2: clamp(1.875rem, 1.4rem + 1.9vw, 2.875rem);
  --fs-h3: clamp(1.25rem, 1.12rem + 0.45vw, 1.5rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-xs: 0.8125rem;
  --fs-eyebrow: 0.8125rem;

  /* spacing scale (4 · 8 · 12 · 16 · 24 · 32 · 48 · 64 · 96 · 128) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;
  --section-y: clamp(4rem, 2.6rem + 5.2vw, 7.5rem);

  /* containers */
  --gutter: clamp(1rem, 0.4rem + 3vw, 2.5rem);
  --container-text: 42rem;
  --container: 76rem;
  --container-wide: 90rem;

  /* shape & depth */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgb(20 18 16 / 0.18);
  --shadow: 0 1px 2px rgb(20 18 16 / 0.16), 0 14px 34px -14px rgb(20 18 16 / 0.42);
  --shadow-lg: 0 2px 4px rgb(20 18 16 / 0.12), 0 30px 64px -24px rgb(20 18 16 / 0.5);

  /* motion */
  --dur-1: 140ms;
  --dur-2: 220ms;
  --dur-3: 420ms;
  --dur-4: 900ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --header-h: 72px;
  --dock-h: 0px;
  color-scheme: dark;
}

@media (max-width: 899px) {
  :root {
    --header-h: 64px;
  }
}

/* below 1200px the quick-contact dock sits at the bottom; the body padding keeps it off the content */
@media (max-width: 1199px) {
  :root {
    --dock-h: calc(62px + env(safe-area-inset-bottom, 0px));
  }
}

@media (min-width: 700px) and (max-width: 1199px) {
  :root {
    --dock-h: calc(58px + 1.5rem + env(safe-area-inset-bottom, 0px));
  }
}

/* Surface tones: components read --bg / --fg / --line and adapt automatically */
.tone-dark,
.tone-dark-2,
.tone-deep,
.tone-terra {
  --fg: var(--c-light);
  --fg-2: var(--c-light-2);
  --line: rgb(247 243 237 / 0.13);
  --line-strong: rgb(247 243 237 / 0.28);
  --accent-ink: var(--c-terra-300);
  --focus: var(--c-terra-300);
  --field-bg: var(--c-graphite-900);
  color-scheme: dark;
}
.tone-dark { --bg: var(--c-graphite-800); --bg-raised: var(--c-graphite-700); }
/* lighter accent on the lighter graphite keeps small eyebrow text above 4.5:1 */
.tone-dark-2 { --bg: var(--c-graphite-700); --bg-raised: var(--c-graphite-600); --accent-ink: #f49670; }
.tone-deep { --bg: var(--c-graphite-950); --bg-raised: var(--c-graphite-800); }
.tone-terra {
  --bg: var(--c-terra-600);
  --bg-raised: var(--c-terra-700);
  --fg-2: rgb(255 248 241 / 0.9);
  --line: rgb(255 248 241 / 0.24);
  --accent-ink: var(--c-cream-50);
  --focus: var(--c-cream-50);
}
.tone-cream,
.tone-warm {
  --fg: var(--c-ink);
  --fg-2: var(--c-ink-2);
  --line: rgb(39 41 43 / 0.13);
  --line-strong: rgb(39 41 43 / 0.3);
  --accent-ink: var(--c-terra-700);
  --focus: var(--c-terra-700);
  --field-bg: #fff;
  color-scheme: light;
}
.tone-cream { --bg: var(--c-cream-100); --bg-raised: var(--c-cream-50); }
.tone-warm { --bg: var(--c-cream-50); --bg-raised: #fff; }
.tone-dark,
.tone-dark-2,
.tone-deep,
.tone-terra,
.tone-cream,
.tone-warm {
  background-color: var(--bg);
  color: var(--fg);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  scroll-padding-bottom: calc(var(--dock-h) + 1rem);
  background: var(--c-graphite-800);
}

@media (prefers-reduced-motion: no-preference) {
  html:focus-within {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-weight: 400;
  color: var(--c-light);
  background: var(--c-graphite-800);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: var(--dock-h);
}

img,
svg,
picture {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* zero specificity so component padding (journey, reviews track) always wins */
:where(ul, ol)[role="list"] {
  list-style: none;
  padding: 0;
}

::selection {
  background: var(--c-terra-400);
  color: var(--c-ink);
}

:focus-visible {
  outline: 3px solid var(--focus, var(--c-terra-300));
  outline-offset: 3px;
  border-radius: 3px;
}

[hidden] {
  display: none !important;
}

html.is-locked,
html.is-locked body {
  overflow: hidden;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--c-cream-50);
  color: var(--c-ink);
  font-weight: 650;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--dur-2) var(--ease-out);
}

.skip-link:focus-visible {
  transform: none;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Layout ---------- */
.wrap {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.wrap--wide {
  width: min(100% - 2 * var(--gutter), var(--container-wide));
}

.wrap--text {
  width: min(100% - 2 * var(--gutter), var(--container-text));
}

.section {
  padding-block: var(--section-y);
  position: relative;
}

.section--tight {
  padding-block: clamp(3rem, 2.2rem + 3vw, 5rem);
}

/* single-column grids must never grow wider than the viewport */
.split,
.page-hero__grid,
.classes-grid,
.media-split,
.footer-top,
.admin-grid {
  grid-template-columns: minmax(0, 1fr);
}

.split {
  display: grid;
  gap: var(--space-7) var(--space-8);
  align-items: start;
}

.nowrap {
  white-space: nowrap;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .split > .col-4 { grid-column: span 4; }
  .split > .col-5 { grid-column: span 5; }
  .split > .col-6 { grid-column: span 6; }
  .split > .col-7 { grid-column: span 7; }
  .split > .col-8 { grid-column: span 8; }
  .split--center { align-items: center; }
  .split > .sticky-col {
    position: sticky;
    top: calc(var(--header-h) + var(--space-6));
  }
}

.stack > * + * {
  margin-top: var(--flow, var(--space-4));
}

/* ---------- Typography ---------- */
.display,
.h2,
h1,
h2 {
  font-stretch: 108%;
  font-weight: 720;
  letter-spacing: -0.022em;
  line-height: 1.04;
  text-wrap: balance;
}

/* long German compounds must never push the page wider than a 320px screen */
h1,
h2,
h3 {
  overflow-wrap: anywhere; /* also lowers min-content inside start-aligned grids */
  hyphens: auto;
}

.display {
  font-size: var(--fs-display);
  letter-spacing: -0.03em;
  line-height: 1;
}

h1 {
  font-size: var(--fs-h1);
}

h2,
.h2 {
  font-size: var(--fs-h2);
  line-height: 1.08;
}

h3,
.h3 {
  font-size: var(--fs-h3);
  font-weight: 650;
  font-stretch: 104%;
  letter-spacing: -0.01em;
  line-height: 1.22;
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

.accent {
  color: var(--accent-ink);
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--fg-2);
  max-width: 40rem;
}

.muted {
  color: var(--fg-2);
}

.small {
  font-size: var(--fs-small);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: var(--fs-eyebrow);
  font-weight: 650;
  font-stretch: 112%;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.section-head {
  display: grid;
  gap: var(--space-4);
  margin-bottom: clamp(2.5rem, 1.8rem + 2.5vw, 4rem);
}

.section-head > .eyebrow {
  margin-bottom: calc(var(--space-2) * -1);
}

@media (min-width: 900px) {
  .section-head--split {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
    column-gap: var(--space-8);
  }
  .section-head--split > .eyebrow,
  .section-head--split > h2 {
    grid-column: 1;
  }
  .section-head--split > .section-head__aside {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: end;
  }
}

.section-head__aside {
  display: grid;
  gap: var(--space-4);
  justify-items: start;
}

.prose {
  max-width: var(--container-text);
}

.prose > * + * {
  margin-top: var(--space-4);
}

.prose h2 {
  font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
  margin-top: var(--space-7);
}

.prose h3 {
  margin-top: var(--space-6);
}

.prose ul {
  padding-left: 1.25rem;
}

.prose a {
  color: var(--accent-ink);
  font-weight: 550;
}

/* ---------- Controls ---------- */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

.btn {
  --btn-bg: var(--c-terra-600);
  --btn-fg: #fff;
  --btn-border: transparent;
  --btn-shadow: inset 0 1px 0 rgb(255 255 255 / 0.16), 0 12px 26px -14px rgb(159 69 44 / 0.9);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 3.125rem;
  padding: 0.75rem 1.375rem;
  border: 1px solid var(--btn-border);
  border-radius: var(--radius-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  box-shadow: var(--btn-shadow);
  font-size: 1rem;
  font-weight: 650;
  font-stretch: 104%;
  letter-spacing: 0.005em;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform var(--dur-2) var(--ease-out),
    background-color var(--dur-2) ease,
    border-color var(--dur-2) ease,
    box-shadow var(--dur-2) ease,
    color var(--dur-2) ease;
}

.btn .icon {
  width: 1.125rem;
  height: 1.125rem;
  transition: transform var(--dur-2) var(--ease-out);
}

.btn {
  max-width: 100%;
}

@media (max-width: 400px) {
  .btn {
    white-space: normal;
  }
}

.btn:hover {
  --btn-bg: var(--c-terra-700);
  transform: translateY(-2px);
  --btn-shadow: inset 0 1px 0 rgb(255 255 255 / 0.12), 0 18px 32px -16px rgb(159 69 44 / 0.95);
}

.btn:hover .icon--arrow {
  transform: translateX(3px);
}

.btn:active {
  transform: translateY(0);
  transition-duration: var(--dur-1);
}

.btn[disabled],
.btn[aria-disabled="true"] {
  cursor: progress;
  opacity: 0.72;
  transform: none;
}

.btn--secondary {
  --btn-bg: transparent;
  --btn-fg: var(--fg);
  --btn-border: var(--line-strong);
  --btn-shadow: none;
}

.btn--secondary:hover {
  --btn-bg: color-mix(in srgb, var(--fg) 7%, transparent);
  --btn-border: var(--fg);
  --btn-shadow: none;
}

.btn--light {
  --btn-bg: var(--c-cream-50);
  --btn-fg: var(--c-ink);
  --btn-shadow: 0 12px 26px -14px rgb(35 20 12 / 0.6);
}

.btn--light:hover {
  --btn-bg: #fff;
  --btn-shadow: 0 18px 30px -16px rgb(35 20 12 / 0.7);
}

.btn--sm {
  min-height: 2.625rem;
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
}

.btn--block {
  width: 100%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-block: 0.25rem;
  color: var(--accent-ink);
  font-weight: 650;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size var(--dur-3) var(--ease-out);
}

.text-link .icon {
  width: 1.05rem;
  height: 1.05rem;
  transition: transform var(--dur-2) var(--ease-out);
}

.text-link:hover,
a:hover > .text-link,
.text-link:focus-visible {
  background-size: 100% 1.5px;
}

.text-link:hover .icon--arrow,
a:hover .text-link .icon--arrow,
.class-tile:hover .text-link .icon--arrow {
  transform: translateX(4px);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--fg-2);
}

.pill--accent {
  border-color: transparent;
  background: color-mix(in srgb, var(--c-terra-500) 20%, transparent);
  color: var(--accent-ink);
}

.pill--light {
  border-color: transparent;
  background: rgb(247 243 237 / 0.92);
  color: var(--c-ink);
}

/* ---------- Header ---------- */
.header-sentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 48px;
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  view-transition-name: site-header;
}

/* Blur lives on a pseudo-element: backdrop-filter on the header itself would become
   the containing block of the fixed mobile menu panel and collapse it. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(48 50 53 / 0.9);
  border-bottom: 1px solid rgb(247 243 237 / 0.08);
  backdrop-filter: saturate(1.2) blur(14px);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  transition: background-color var(--dur-3) ease, box-shadow var(--dur-3) ease;
}

.site-header.is-scrolled::before {
  background: rgb(42 44 47 / 0.95);
  box-shadow: 0 16px 40px -24px rgb(10 10 10 / 0.7);
}

html.menu-open .site-header::before {
  background: var(--c-graphite-800);
}

.header-bar {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.brand {
  display: block;
  flex: none;
  margin-right: auto;
  border-radius: var(--radius-xs);
  transition: opacity var(--dur-2) ease;
}

.brand img {
  width: auto;
  height: 50px;
  transition: height var(--dur-3) var(--ease-out);
}

.site-header.is-scrolled .brand img {
  height: 44px;
}

.brand:hover {
  opacity: 0.88;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 0.2rem + 1.4vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--c-light-2);
  font-size: 0.96875rem;
  font-weight: 550;
  text-decoration: none;
  transition: color var(--dur-2) ease;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.4rem;
  height: 2px;
  border-radius: 2px;
  background: var(--c-terra-400);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-3) var(--ease-out);
}

.nav-list a:hover {
  color: var(--c-light);
}

.nav-list a:hover::after {
  transform: scaleX(0.4);
}

.nav-list a[aria-current="page"] {
  color: var(--c-light);
}

.nav-list a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.nav-phone {
  display: none;
  align-items: center;
  gap: 0.5rem;
  color: var(--c-light);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.nav-phone .icon {
  color: var(--c-terra-300);
}

.nav-panel__contact {
  display: none;
}

.menu-toggle {
  display: none;
}

@media (min-width: 1080px) {
  .nav-panel {
    display: flex;
    align-items: center;
    gap: clamp(1.5rem, 0.5rem + 2vw, 2.75rem);
  }
}

@media (min-width: 1360px) {
  .nav-phone {
    display: inline-flex;
  }
}

@media (max-width: 1079px) {
  .brand img {
    height: 44px;
  }
  .site-header.is-scrolled .brand img {
    height: 40px;
  }

  .menu-toggle {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 2.875rem;
    height: 2.875rem;
    margin-right: -0.5rem;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--c-light);
  }

  .menu-toggle__bars,
  .menu-toggle__bars::before,
  .menu-toggle__bars::after {
    display: block;
    width: 1.375rem;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform var(--dur-3) var(--ease-out), opacity var(--dur-2) ease;
  }

  .menu-toggle__bars {
    position: relative;
  }

  .menu-toggle__bars::before,
  .menu-toggle__bars::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .menu-toggle__bars::before { transform: translateY(-7px); }
  .menu-toggle__bars::after { transform: translateY(7px); width: 0.875rem; }

  .menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: rotate(-45deg); width: 1.375rem; }

  .nav-panel {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 49;
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    padding: var(--space-5) var(--gutter) calc(var(--space-6) + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--c-graphite-800);
    border-top: 1px solid rgb(247 243 237 / 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out), visibility 0s linear var(--dur-3);
  }

  .nav-panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out), visibility 0s;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list li + li {
    border-top: 1px solid rgb(247 243 237 / 0.09);
  }

  .nav-list a {
    display: flex;
    justify-content: space-between;
    min-height: 3.75rem;
    font-size: 1.375rem;
    font-weight: 620;
    font-stretch: 106%;
    color: var(--c-light);
  }

  .nav-list a::after {
    left: 0;
    right: auto;
    top: 50%;
    bottom: auto;
    width: 4px;
    height: 1.5rem;
    margin-left: calc(var(--gutter) * -1);
    transform: translateY(-50%) scaleY(0);
  }

  .nav-list a[aria-current="page"] {
    color: var(--c-terra-300);
  }

  .nav-list a[aria-current="page"]::after {
    transform: translateY(-50%) scaleY(1);
  }

  .nav-list a:hover::after {
    transform: translateY(-50%) scaleY(1);
  }

  .nav-actions {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
  }

  .nav-actions .btn {
    min-height: 3.25rem;
    font-size: 1.0625rem;
  }

  .nav-phone {
    display: inline-flex;
    justify-content: center;
    min-height: 3.25rem;
    border: 1px solid rgb(247 243 237 / 0.26);
    border-radius: var(--radius-sm);
    font-size: 1.0625rem;
  }

  .nav-panel__contact {
    display: grid;
    gap: var(--space-1);
    margin-top: auto;
    padding-top: var(--space-5);
    border-top: 1px solid rgb(247 243 237 / 0.09);
    color: var(--c-light-2);
    font-size: var(--fs-small);
  }

  html.menu-open,
  html.menu-open body {
    overflow: hidden;
  }
}

/* ---------- Home hero ---------- */
.hero {
  position: relative;
  z-index: 2; /* lets the facts bar overlap the following section */
  isolation: isolate;
}

.hero__media {
  position: relative;
  overflow: hidden;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__inner {
  position: relative;
}

.hero__content {
  display: grid;
  gap: var(--space-5);
  justify-items: start;
}

.hero__content .eyebrow {
  margin-bottom: calc(var(--space-2) * -1);
}

.hero__content .lead {
  color: var(--c-light-2);
  max-width: 34rem;
}

.hero__content .actions {
  margin-top: var(--space-2);
}

.hero-facts {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.hero-facts li {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5);
}

.hero-facts li + li {
  border-top: 1px solid var(--line);
}

.hero-facts__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c-terra-500) 13%, transparent);
  color: var(--c-terra-700);
}

.hero-facts small {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-2);
}

.hero-facts strong,
.hero-facts a {
  font-weight: 620;
  line-height: 1.35;
  color: var(--fg);
}

.hero-facts a {
  display: inline-block;
  min-height: 1.75rem;
  padding-block: 0.125rem;
  text-decoration: none;
}

.hero-facts a:hover {
  text-decoration: underline;
}

@media (max-width: 899px) {
  .hero__media {
    aspect-ratio: 16 / 10;
    max-height: 46svh;
    width: 100%;
  }
  .hero__media img {
    object-position: 68% 60%;
  }
  .hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgb(48 50 53 / 0) 45%, var(--c-graphite-800) 100%);
  }
  .hero__inner {
    margin-top: -2.5rem;
    padding-bottom: var(--space-7);
  }
  .hero-facts-wrap {
    padding-bottom: var(--space-8);
  }
}

@media (min-width: 900px) {
  .hero {
    min-height: clamp(560px, calc(86svh - var(--header-h)), 780px);
    display: grid;
    grid-template-rows: 1fr auto;
  }
  .hero__media {
    position: absolute;
    inset: 0 0 0 30%;
    z-index: -1;
  }
  .hero__media img {
    object-position: 62% 55%;
  }
  .hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(90deg, var(--c-graphite-800) 0%, rgb(48 50 53 / 0.86) 16%, rgb(48 50 53 / 0.28) 46%, rgb(48 50 53 / 0) 70%),
      linear-gradient(0deg, var(--c-graphite-800) 0%, rgb(48 50 53 / 0) 34%);
  }
  .hero__inner {
    align-self: center;
    padding-block: var(--space-9) var(--space-9);
  }
  .hero__content {
    max-width: 44rem;
  }
  .hero-facts-wrap {
    position: relative;
    z-index: 2;
    margin-bottom: -3.5rem;
  }
  .hero-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hero-facts li + li {
    border-top: 0;
    border-left: 1px solid var(--line);
  }
  .after-hero {
    padding-top: calc(var(--section-y) + 3.5rem);
  }
}

/* ---------- Page hero (sub pages) ---------- */
.page-hero {
  position: relative;
  overflow: clip;
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 5.5rem) clamp(3.5rem, 2rem + 5vw, 6.5rem);
}

.page-hero__grid {
  display: grid;
  gap: var(--space-7);
  align-items: center;
}

.page-hero__content {
  display: grid;
  gap: var(--space-5);
  justify-items: start;
}

.page-hero__content .eyebrow {
  margin-bottom: calc(var(--space-2) * -1);
}

.page-hero__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}

.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero__media figcaption {
  position: absolute;
  left: var(--space-4);
  bottom: var(--space-4);
}

.page-hero--compact {
  padding-block: clamp(2.5rem, 1.6rem + 3vw, 4.5rem) clamp(2.5rem, 1.6rem + 3vw, 4rem);
}

@media (min-width: 900px) {
  .page-hero__grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    gap: var(--space-8);
  }
  .page-hero__media {
    aspect-ratio: 5 / 4;
  }
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-small);
  color: var(--fg-2);
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  opacity: 0.55;
}

.breadcrumbs a {
  color: var(--fg-2);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--fg);
  text-decoration: underline;
}

.breadcrumbs [aria-current] {
  color: var(--fg);
}

.fact-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  margin: var(--space-2) 0 0;
  padding: var(--space-4) 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
  color: var(--fg-2);
  font-size: var(--fs-small);
}

.fact-row li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.fact-row .icon {
  color: var(--accent-ink);
}

/* ---------- Full-bleed photo hero (Fuhrpark) ---------- */
.photo-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: clamp(460px, 72svh, 720px);
  overflow: clip;
}

.photo-hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.photo-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 55%;
}

.photo-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, var(--c-graphite-800) 2%, rgb(48 50 53 / 0.72) 38%, rgb(48 50 53 / 0.08) 72%),
    linear-gradient(90deg, rgb(48 50 53 / 0.7) 0%, rgb(48 50 53 / 0) 60%);
}

.photo-hero__content {
  display: grid;
  gap: var(--space-5);
  justify-items: start;
  max-width: 40rem;
  padding-block: var(--space-9) var(--space-8);
}

/* ---------- Class tiles ---------- */
.classes-grid {
  display: grid;
  gap: var(--space-5);
}

.class-tile {
  position: relative;
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
  transition: transform var(--dur-3) var(--ease-out), border-color var(--dur-3) ease, box-shadow var(--dur-3) ease;
}

.class-tile:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.class-tile:focus-within {
  border-color: var(--c-terra-300);
}

.class-tile__media {
  position: relative;
  overflow: hidden;
  background: var(--c-graphite-900);
  aspect-ratio: 16 / 10;
}

.class-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-4) var(--ease-out);
}

.class-tile:hover .class-tile__media img {
  transform: scale(1.035);
}

.class-tile__media .pill {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
}

.class-tile__body {
  display: grid;
  align-content: start;
  gap: var(--space-3);
  padding: var(--space-5);
}

.class-tile__body p {
  color: var(--fg-2);
}

.class-tile__meta {
  font-size: var(--fs-xs);
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-2);
}

.class-tile .text-link {
  margin-top: var(--space-2);
  justify-self: start;
}

.stretched::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.stretched {
  text-decoration: none;
}

.stretched:focus-visible {
  outline: none;
}

.stretched:focus-visible::after {
  outline: 3px solid var(--focus);
  outline-offset: -3px;
  border-radius: var(--radius);
}

@media (min-width: 640px) and (max-width: 899px) {
  .class-tile--row {
    grid-template-columns: 2fr 3fr;
  }
  .class-tile--row .class-tile__media {
    aspect-ratio: auto;
    min-height: 100%;
  }
}

@media (min-width: 900px) {
  .classes-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-rows: auto auto;
  }
  .class-tile--feature {
    grid-row: span 2;
    grid-template-rows: 1fr auto;
  }
  .class-tile--feature .class-tile__media {
    aspect-ratio: auto;
    min-height: 22rem;
  }
  .class-tile--feature .class-tile__body {
    padding: var(--space-6);
  }
  .class-tile--feature h3 {
    font-size: clamp(1.625rem, 1.2rem + 1vw, 2.125rem);
  }
  .class-tile--row {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
  .class-tile--row .class-tile__media {
    aspect-ratio: auto;
    min-height: 100%;
  }
}

.classes-compact {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.classes-compact li {
  display: grid;
  gap: var(--space-2) var(--space-5);
  align-items: center;
  padding-block: var(--space-5);
  border-bottom: 1px solid var(--line);
}

.classes-compact h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

.classes-compact p {
  color: var(--fg-2);
}

@media (min-width: 760px) {
  .classes-compact li {
    grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) auto;
  }
}

/* ---------- Numbered editorial list ---------- */
.numbered {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: item;
  border-top: 1px solid var(--line);
}

.numbered > li {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: var(--space-2) var(--space-4);
  padding-block: var(--space-5);
  border-bottom: 1px solid var(--line);
}

.numbered > li::before {
  counter-increment: item;
  content: counter(item, decimal-leading-zero);
  grid-row: span 2;
  padding-top: 0.2rem;
  font-size: var(--fs-small);
  font-weight: 700;
  font-stretch: 112%;
  letter-spacing: 0.04em;
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
}

.numbered h3 {
  font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem);
}

.numbered p {
  color: var(--fg-2);
}

@media (min-width: 700px) {
  .numbered--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--space-7);
  }
  .numbered--two > li:first-child {
    grid-column: 1 / -1;
  }
  .numbered--two > li:first-child h3 {
    font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  }
  .numbered--two > li:first-child p {
    font-size: var(--fs-lead);
    max-width: 40rem;
  }
}

/* ---------- Journey / timeline (signature component) ---------- */
.journey {
  --node: 3.5rem;
  --gap: var(--space-5);
  position: relative;
  display: grid;
  gap: var(--space-6);
  margin: 0;
  padding: 0 0 0 calc(var(--node) + var(--space-5));
  list-style: none;
}

.journey::before,
.journey::after {
  content: "";
  position: absolute;
  left: calc(var(--node) / 2 - 1px);
  top: calc(var(--node) / 2);
  bottom: calc(var(--node) / 2);
  width: 2px;
  border-radius: 2px;
  background: var(--line-strong);
}

.journey::after {
  background: linear-gradient(180deg, var(--c-terra-500), var(--c-terra-400));
  transform-origin: top;
}

.journey-step {
  position: relative;
  display: grid;
  gap: var(--space-2);
  min-height: var(--node);
  align-content: start;
}

.journey-node {
  position: absolute;
  left: calc((var(--node) + var(--space-5)) * -1);
  top: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: var(--node);
  height: var(--node);
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg);
  color: var(--fg);
  font-size: var(--fs-small);
  font-weight: 700;
  font-stretch: 112%;
  font-variant-numeric: tabular-nums;
  transition: border-color var(--dur-3) ease, background-color var(--dur-3) ease, color var(--dur-3) ease, transform var(--dur-3) var(--ease-out);
}

.journey-step h3 {
  padding-top: 0.75rem;
}

.journey-step p {
  color: var(--fg-2);
  max-width: 30rem;
}

.journey-step:last-child .journey-node {
  border-color: var(--c-terra-400);
}

.journey-step:last-child .journey-node {
  background: var(--c-terra-600);
  color: #fff;
}

@media (min-width: 900px) {
  .journey {
    grid-template-columns: repeat(var(--steps, 5), minmax(0, 1fr));
    gap: var(--gap);
    padding: 0;
  }
  .journey::before,
  .journey::after {
    top: calc(var(--node) / 2 - 1px);
    bottom: auto;
    left: calc(var(--node) / 2);
    right: calc((100% - (var(--steps, 5) - 1) * var(--gap)) / var(--steps, 5) - var(--node) / 2);
    width: auto;
    height: 2px;
  }
  .journey::after {
    background: linear-gradient(90deg, var(--c-terra-500), var(--c-terra-400));
    transform-origin: left;
  }
  .journey-step {
    padding-top: calc(var(--node) + var(--space-4));
  }
  .journey-node {
    left: 0;
  }
  .journey-step h3 {
    padding-top: 0;
  }
}

/* ---------- Media split (image bleeding to the edge) ---------- */
.media-split {
  display: grid;
  overflow: clip;
}

.media-split__media {
  position: relative;
  min-height: 18rem;
}

.media-split__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-split__body {
  padding-block: var(--section-y);
}

.media-split__inner {
  display: grid;
  gap: var(--space-5);
  justify-items: start;
  max-width: 34rem;
}

.info-pair {
  display: grid;
  gap: var(--space-5);
  width: 100%;
  margin-top: var(--space-3);
}

.info-pair > div {
  display: grid;
  gap: var(--space-2);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line-strong);
}

.info-pair p {
  color: var(--fg-2);
  font-size: var(--fs-small);
}

@media (max-width: 899px) {
  .media-split__media {
    aspect-ratio: 16 / 10;
  }
  .media-split__body {
    padding-inline: var(--gutter);
  }
}

@media (min-width: 560px) {
  .info-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .media-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 36rem;
  }
  .media-split__body {
    display: flex;
    align-items: center;
    padding-inline: var(--space-8) max(var(--gutter), calc((100vw - var(--container)) / 2));
  }
  .media-split--flip .media-split__media {
    order: 2;
  }
  .media-split--flip .media-split__body {
    padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2)) var(--space-8);
  }
}

/* ---------- Feature checklist ---------- */
.checklist {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--bg-raised);
  font-weight: 560;
  line-height: 1.4;
}

.checklist .icon {
  margin-top: 0.05rem;
  color: var(--accent-ink);
  stroke-width: 2.2;
}

@media (min-width: 560px) {
  .checklist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Schedule ---------- */
.schedule {
  margin: 0;
  border-top: 1px solid var(--line);
}

.schedule > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-4);
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--line);
}

.schedule dt {
  font-weight: 650;
}

.schedule dd {
  color: var(--fg-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.schedule--large dt {
  font-size: var(--fs-h3);
  font-stretch: 106%;
}

.schedule--large dd {
  font-size: var(--fs-lead);
  color: var(--fg);
}

/* ---------- Proof: success moments + Google reviews ---------- */
.proof-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.proof-gallery figure {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 3 / 4;
  background: var(--c-sand-200);
  box-shadow: var(--shadow-sm);
}

.proof-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 700px) {
  .proof-gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-4);
  }
  .proof-gallery li:nth-child(even) {
    transform: translateY(var(--space-6));
  }
}

.proof-caption {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  font-size: var(--fs-small);
  color: var(--fg-2);
}

@media (min-width: 700px) {
  .proof-caption {
    margin-top: calc(var(--space-6) + var(--space-4));
  }
}

.google-card {
  display: grid;
  gap: var(--space-4);
  justify-items: start;
  padding: var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
}

.google-card__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-small);
  font-weight: 650;
  color: var(--fg-2);
}

.rating-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
}

.rating-summary__score {
  font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  font-weight: 720;
  font-stretch: 110%;
  line-height: 1;
  letter-spacing: -0.02em;
}

.stars {
  --pct: 100%;
  position: relative;
  display: inline-flex;
  gap: 2px;
  color: color-mix(in srgb, var(--fg) 22%, transparent);
}

.stars__fill {
  position: absolute;
  inset: 0;
  display: inline-flex;
  gap: 2px;
  overflow: hidden;
  width: var(--pct);
  color: #d9822b;
}

.stars .icon {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
  stroke: none;
}

.reviews {
  margin-top: var(--space-7);
}

.reviews__controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.reviews__buttons {
  display: flex;
  gap: var(--space-2);
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--fg);
  transition: background-color var(--dur-2) ease, border-color var(--dur-2) ease, opacity var(--dur-2) ease;
}

.icon-btn:hover {
  border-color: var(--fg);
  background: color-mix(in srgb, var(--fg) 8%, transparent);
}

.icon-btn[disabled] {
  opacity: 0.35;
  cursor: default;
}

.reviews__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(88%, 24rem);
  gap: var(--space-4);
  margin: 0;
  padding: 0 0 var(--space-3);
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.review-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: var(--space-3);
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
  scroll-snap-align: start;
}

.review-card__head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.review-card__avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--c-graphite-700);
  color: var(--c-light);
  font-weight: 700;
}

.review-card__author {
  font-weight: 650;
  line-height: 1.3;
}

.review-card__author a {
  text-decoration: none;
}

.review-card__author a:hover {
  text-decoration: underline;
}

.review-card__date {
  display: block;
  font-size: var(--fs-xs);
  color: var(--fg-2);
}

.review-card__text {
  color: var(--fg);
  font-size: var(--fs-small);
  line-height: 1.6;
}

.review-card__source {
  font-size: var(--fs-xs);
  color: var(--fg-2);
}

/* ---------- FAQ (native details) ---------- */
.faq {
  border-top: 1px solid var(--line-strong);
}

.faq details {
  border-bottom: 1px solid var(--line-strong);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 3.5rem;
  padding-block: var(--space-4);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  font-weight: 640;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover {
  color: var(--accent-ink);
}

.faq__icon {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: transform var(--dur-3) var(--ease-out), background-color var(--dur-2) ease, border-color var(--dur-2) ease;
}

.faq__icon .icon {
  width: 1rem;
  height: 1rem;
}

.faq details[open] .faq__icon {
  transform: rotate(45deg);
  border-color: var(--c-terra-600);
  background: var(--c-terra-600);
  color: #fff;
}

.faq__answer {
  padding: 0 3.25rem var(--space-5) 0;
  color: var(--fg-2);
  max-width: 44rem;
}

.faq__answer a {
  color: var(--accent-ink);
  font-weight: 600;
}

@supports (interpolate-size: allow-keywords) {
  .faq {
    interpolate-size: allow-keywords;
  }
  .faq details::details-content {
    block-size: 0;
    overflow: clip;
    transition: block-size var(--dur-3) var(--ease-out), content-visibility var(--dur-3) allow-discrete;
  }
  .faq details[open]::details-content {
    block-size: auto;
  }
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: clip;
  background:
    radial-gradient(120% 140% at 100% 0%, rgb(233 106 58 / 0.55) 0%, rgb(233 106 58 / 0) 55%),
    linear-gradient(135deg, var(--c-terra-600) 0%, var(--c-terra-700) 100%);
}

.cta-band__emblem {
  position: absolute;
  right: max(-5rem, calc((100vw - var(--container)) / 2 - 6rem));
  top: 50%;
  width: clamp(10rem, 4rem + 22vw, 26rem);
  opacity: 0.08;
  transform: translateY(-50%) rotate(-8deg);
  filter: grayscale(1) brightness(3);
  pointer-events: none;
}

.cta-band__inner {
  position: relative;
  display: grid;
  gap: var(--space-5);
  justify-items: start;
}

.cta-band h2 {
  max-width: 22ch;
}

.cta-band p {
  color: var(--fg-2);
  max-width: 36rem;
  font-size: var(--fs-lead);
}

.cta-band .btn--secondary {
  --btn-border: rgb(255 248 241 / 0.55);
}

@media (min-width: 900px) {
  .cta-band__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    column-gap: var(--space-8);
  }
  .cta-band__inner .actions {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }
}

/* ---------- Contact ---------- */
.contact-actions {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-action {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-4);
  min-height: 4.5rem;
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
  color: var(--fg);
  text-decoration: none;
  transition: transform var(--dur-2) var(--ease-out), border-color var(--dur-2) ease, background-color var(--dur-2) ease;
}

a.contact-action:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.contact-action__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c-terra-500) 18%, transparent);
  color: var(--accent-ink);
}

.contact-action small {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-2);
}

.contact-action strong {
  display: block;
  font-weight: 640;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.contact-action > .icon {
  color: var(--fg-2);
  transition: transform var(--dur-2) var(--ease-out), color var(--dur-2) ease;
}

a.contact-action:hover > .icon {
  color: var(--accent-ink);
  transform: translateX(3px);
}

@media (min-width: 700px) {
  .contact-actions--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .contact-actions--grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
  }
  .contact-actions--grid .contact-action {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto 1fr;
    align-items: start;
    min-height: 10rem;
    padding: var(--space-5);
  }
  .contact-actions--grid .contact-action__icon {
    grid-column: 1;
  }
  .contact-actions--grid .contact-action > span:not(.contact-action__icon) {
    grid-column: 1 / -1;
    align-self: end;
  }
  .contact-actions--grid .contact-action > .icon {
    grid-column: 2;
    grid-row: 1;
  }
}

.hours {
  display: grid;
  gap: var(--space-3);
}

.hours h3 {
  font-size: var(--fs-small);
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-2);
}

.map-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-raised);
  box-shadow: var(--shadow);
}

.map-card__image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.map-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The whole map preview opens Google Maps (plain GET link, duplicate of the labelled button). */
.map-card__link {
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: pointer;
}

.map-card__image:hover img {
  filter: saturate(1.08);
}

.map-card__attrib {
  z-index: 2;
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 0.2rem 0.5rem;
  border-top-left-radius: var(--radius-xs);
  background: rgb(250 247 242 / 0.88);
  color: var(--c-ink);
  font-size: 0.6875rem;
}

.map-card__attrib a {
  color: inherit;
}

.map-card__body {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6) var(--space-6);
}

.map-card__body address {
  font-style: normal;
  font-size: var(--fs-h3);
  font-weight: 650;
  line-height: 1.3;
}

.map-card__note {
  font-size: var(--fs-xs);
  color: var(--fg-2);
}

/* ---------- Forms ---------- */
.form-card {
  padding: clamp(1.25rem, 0.6rem + 2.4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-raised);
  box-shadow: var(--shadow);
}

.form-card > h2,
.form-card > .h3 {
  margin-bottom: var(--space-2);
}

.form-card__intro {
  margin-bottom: var(--space-6);
  color: var(--fg-2);
}

.form {
  display: grid;
  gap: var(--space-6);
}

.form fieldset {
  display: grid;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.form legend {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  margin-bottom: var(--space-4);
  padding: 0;
  font-size: var(--fs-small);
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-2);
}

.form legend::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.form-grid {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .field--full {
    grid-column: 1 / -1;
  }
}

.field {
  display: grid;
  gap: 0.375rem;
  align-content: start;
}

.field label {
  font-size: var(--fs-small);
  font-weight: 620;
  color: var(--fg);
}

.field .req {
  color: var(--accent-ink);
}

.field .optional {
  font-weight: 450;
  color: var(--fg-2);
}

.input {
  width: 100%;
  min-height: 3.125rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--field-bg);
  color: var(--fg);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color var(--dur-2) ease, box-shadow var(--dur-2) ease;
  appearance: none;
}

.input::placeholder {
  color: color-mix(in srgb, var(--fg-2) 75%, transparent);
}

.input:hover {
  border-color: color-mix(in srgb, var(--fg) 45%, transparent);
}

.input:focus {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 30%, transparent);
}

textarea.input {
  min-height: 8.5rem;
  resize: vertical;
}

select.input {
  padding-right: 2.75rem;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 1.3rem) 55%, calc(100% - 0.95rem) 55%;
  background-size: 0.35rem 0.35rem;
  background-repeat: no-repeat;
}

.input[aria-invalid="true"] {
  border-color: var(--c-error);
  box-shadow: 0 0 0 3px rgb(179 38 30 / 0.16);
}

.tone-dark .input[aria-invalid="true"],
.tone-dark-2 .input[aria-invalid="true"] {
  border-color: #ff8a80;
  box-shadow: 0 0 0 3px rgb(255 138 128 / 0.18);
}

.field-error {
  display: flex;
  align-items: flex-start;
  gap: 0.375rem;
  font-size: var(--fs-small);
  font-weight: 560;
  line-height: 1.4;
  color: var(--c-error);
}

.tone-dark .field-error,
.tone-dark-2 .field-error {
  color: #ffaba4;
}

.field-error .icon {
  width: 1rem;
  height: 1rem;
  margin-top: 0.1rem;
}

.form-footer {
  display: grid;
  gap: var(--space-4);
}

.form-note {
  font-size: var(--fs-xs);
  color: var(--fg-2);
  line-height: 1.55;
}

.form-note a {
  color: var(--accent-ink);
}

.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  font-size: var(--fs-small);
  line-height: 1.5;
}

.form-status:empty {
  display: none;
}

.form-status[data-state="error"] {
  background: rgb(179 38 30 / 0.1);
  border: 1px solid rgb(179 38 30 / 0.35);
}

.tone-dark .form-status[data-state="error"],
.tone-dark-2 .form-status[data-state="error"] {
  background: rgb(255 138 128 / 0.1);
  border-color: rgb(255 138 128 / 0.35);
}

.form-status[data-state="ok"] {
  background: rgb(63 122 82 / 0.14);
  border: 1px solid rgb(63 122 82 / 0.4);
}

.form-status a {
  color: var(--accent-ink);
  font-weight: 650;
}

.form-status .icon {
  margin-top: 0.1rem;
}

.form-success {
  display: grid;
  gap: var(--space-4);
  justify-items: start;
  padding: var(--space-5) 0;
}

.form-success__icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--c-success);
  color: #fff;
}

.form-success__icon .icon {
  width: 1.75rem;
  height: 1.75rem;
  stroke-width: 2.4;
}

.form-success:focus {
  outline: none;
}

.btn .spinner {
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid rgb(255 255 255 / 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.steps-aside {
  display: grid;
  gap: var(--space-6);
  padding: clamp(1.25rem, 0.8rem + 1.8vw, 2.25rem);
  border-radius: var(--radius-lg);
}

.mini-steps {
  display: grid;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: mini;
}

.mini-steps li {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: var(--space-3);
  align-items: start;
}

.mini-steps li::before {
  counter-increment: mini;
  content: counter(mini);
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  font-size: var(--fs-xs);
  font-weight: 700;
}

.mini-steps li:first-child::before {
  border-color: var(--c-terra-400);
  background: var(--c-terra-600);
  color: #fff;
}

.mini-steps strong {
  display: block;
  line-height: 1.35;
}

.mini-steps span {
  display: block;
  font-size: var(--fs-small);
  color: var(--fg-2);
}

/* ---------- Gallery + lightbox ---------- */
.gallery {
  display: grid;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--c-graphite-900);
}

.gallery__btn {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  cursor: zoom-in;
}

.gallery__btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-4) var(--ease-out);
}

.gallery__btn:hover img {
  transform: scale(1.03);
}

.gallery__btn:focus-visible {
  outline-offset: -3px;
}

.gallery__caption {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-6) var(--space-4) var(--space-4);
  background: linear-gradient(0deg, rgb(35 37 39 / 0.88), rgb(35 37 39 / 0));
  color: var(--c-light);
  pointer-events: none;
}

.gallery__caption strong {
  display: block;
  font-weight: 640;
  line-height: 1.3;
}

.gallery__caption small {
  display: block;
  font-size: var(--fs-xs);
  color: var(--c-light-2);
}

.gallery__zoom {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgb(247 243 237 / 0.16);
  backdrop-filter: blur(6px);
}

.gallery__zoom .icon {
  width: 1rem;
  height: 1rem;
}

.gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery__item {
  aspect-ratio: 3 / 4;
}

.gallery__item--wide {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 10;
}

@media (min-width: 900px) {
  .gallery {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--space-5);
  }
  .gallery__item {
    grid-column: span 4;
    aspect-ratio: 4 / 5;
  }
  .gallery__item--wide {
    grid-column: span 8;
    aspect-ratio: 16 / 10;
  }
  /* the side tile follows the row height set by the wide tile */
  .gallery__item--side {
    aspect-ratio: auto;
  }
  .gallery__item--side .gallery__btn {
    position: absolute;
    inset: 0;
  }
}

.figure-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-raised);
  box-shadow: var(--shadow);
}

.figure-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.figure-card figcaption {
  padding: var(--space-4) var(--space-5);
  font-size: var(--fs-small);
  color: var(--fg-2);
}

.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgb(26 27 29 / 0.96);
  color: var(--c-light);
  --fg: var(--c-light);
  --line-strong: rgb(247 243 237 / 0.3);
  --focus: var(--c-terra-300);
}

.lightbox::backdrop {
  background: rgb(0 0 0 / 0.5);
}

.lightbox[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.lightbox__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--gutter);
  font-size: var(--fs-small);
  color: var(--c-light-2);
}

.lightbox__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 0 var(--gutter);
  touch-action: pan-y;
}

.lightbox__stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox__caption {
  padding: var(--space-4) var(--gutter) calc(var(--space-5) + env(safe-area-inset-bottom, 0px));
  text-align: center;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgb(35 37 39 / 0.7);
}

.lightbox__nav--prev { left: var(--space-3); }
.lightbox__nav--next { right: var(--space-3); }

@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] {
    animation: fade-in var(--dur-2) ease both;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

/* ---------- Legal ---------- */
.notice {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-4) var(--space-5);
  border: 1px solid color-mix(in srgb, var(--c-terra-600) 45%, transparent);
  border-left-width: 4px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--c-terra-500) 9%, var(--bg));
  font-size: var(--fs-small);
}

.notice .icon {
  margin-top: 0.15rem;
  color: var(--accent-ink);
}

.todo {
  padding: 0.05rem 0.35rem;
  border-radius: var(--radius-xs);
  background: color-mix(in srgb, var(--c-terra-500) 16%, transparent);
  color: var(--accent-ink);
  font-weight: 600;
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem) var(--space-6);
}

.footer-top {
  display: grid;
  gap: var(--space-7);
  padding-bottom: var(--space-7);
  border-bottom: 1px solid var(--line);
}

.footer-brand {
  display: grid;
  gap: var(--space-5);
  justify-items: start;
  max-width: 22rem;
}

.footer-brand img {
  width: auto;
  height: 7.5rem;
}

.footer-brand p {
  color: var(--fg-2);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6) var(--space-5);
}

.footer-col h2 {
  margin-bottom: var(--space-4);
  font-size: var(--fs-xs);
  font-weight: 650;
  font-stretch: 112%;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.footer-col ul {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col a,
.footer-col p,
.footer-col address {
  color: var(--fg-2);
  font-size: var(--fs-small);
  font-style: normal;
  line-height: 1.5;
  text-decoration: none;
}

.footer-col a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 1.75rem;
  transition: color var(--dur-2) ease;
}

.footer-col a:hover {
  color: var(--fg);
  text-decoration: underline;
}

.footer-col .icon {
  width: 1.05rem;
  height: 1.05rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3) var(--space-6);
  padding-top: var(--space-5);
  font-size: var(--fs-xs);
  color: var(--fg-2);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-legal a,
.footer-legal button {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--fg-2);
  font-size: var(--fs-xs);
  text-decoration: none;
}

.footer-legal a:hover,
.footer-legal button:hover {
  color: var(--fg);
  text-decoration: underline;
}

.footer-col a {
  overflow-wrap: anywhere;
}

@media (max-width: 399px) {
  .footer-cols {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 760px) {
  .footer-cols {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(0, 1.2fr) minmax(0, 0.75fr);
  }
}

/* brand beside the columns only when every column keeps whole words */
@media (min-width: 1200px) {
  .footer-top {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: var(--space-8);
  }
}

/* ---------- Floating contact (desktop rail / mobile dock) ---------- */
.dock {
  position: fixed;
  z-index: 40;
  view-transition-name: contact-dock;
}

.dock ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dock a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--c-light);
}

.dock .icon {
  width: 1.3rem;
  height: 1.3rem;
}

@media (max-width: 1199px) {
  .dock {
    inset: auto 0 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgb(42 44 47 / 0.96);
    border-top: 1px solid rgb(247 243 237 / 0.1);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
  .dock ul {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
  }
  .dock li + li {
    border-left: 1px solid rgb(247 243 237 / 0.08);
  }
  .dock a {
    flex-direction: column;
    justify-content: center;
    gap: 0.2rem;
    height: 62px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
  }
  .dock a .icon {
    color: var(--c-terra-300);
  }
  .dock a:active {
    background: rgb(247 243 237 / 0.06);
  }
  html.menu-open .dock {
    visibility: hidden;
  }
}

/* tablets and small laptops: a compact centred pill instead of a full-width bar */
@media (min-width: 700px) and (max-width: 1199px) {
  .dock {
    left: 50%;
    right: auto;
    bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    width: min(27rem, 100% - 2 * var(--gutter));
    padding-bottom: 0;
    overflow: hidden;
    translate: -50% 0;
    border: 1px solid rgb(247 243 237 / 0.14);
    border-radius: 999px;
    box-shadow: 0 16px 36px -18px rgb(10 10 10 / 0.8);
  }
  .dock a {
    height: 58px;
  }
}

@media (min-width: 1200px) {
  .dock {
    right: 1.25rem;
    bottom: 1.5rem;
  }
  .dock ul {
    display: grid;
    gap: 0.625rem;
  }
  .dock a {
    position: relative;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border: 1px solid rgb(247 243 237 / 0.14);
    border-radius: 50%;
    background: rgb(56 59 62 / 0.94);
    box-shadow: 0 10px 26px -12px rgb(10 10 10 / 0.7);
    transition: background-color var(--dur-2) ease, transform var(--dur-2) var(--ease-out), border-color var(--dur-2) ease;
  }
  .dock a:hover,
  .dock a:focus-visible {
    background: var(--c-terra-600);
    border-color: var(--c-terra-600);
    transform: translateX(-2px);
  }
  .dock__label {
    position: absolute;
    right: calc(100% + 0.625rem);
    top: 50%;
    padding: 0.35rem 0.7rem;
    border-radius: var(--radius-xs);
    background: var(--c-cream-50);
    color: var(--c-ink);
    font-size: var(--fs-xs);
    font-weight: 650;
    white-space: nowrap;
    box-shadow: 0 0 0 1px rgb(39 41 43 / 0.14), 0 8px 20px -10px rgb(10 10 10 / 0.6);
    opacity: 0;
    transform: translate(6px, -50%);
    pointer-events: none;
    transition: opacity var(--dur-2) ease, transform var(--dur-2) var(--ease-out);
  }
  .dock a:hover .dock__label,
  .dock a:focus-visible .dock__label {
    opacity: 1;
    transform: translate(0, -50%);
  }
}

/* ---------- Admin ---------- */
.admin-body {
  padding-bottom: 0;
  background: var(--c-graphite-900);
}

.admin-header {
  border-bottom: 1px solid rgb(247 243 237 / 0.08);
  background: var(--c-graphite-800);
}

.admin-header .header-bar {
  min-height: 4.5rem;
  gap: var(--space-4);
}

.admin-header .brand {
  margin-right: 0;
}

.admin-header .brand img {
  height: 40px;
}

@media (max-width: 480px) {
  .admin-header .brand img {
    height: 34px;
  }
  .admin-logout-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

.admin-header__tag {
  margin-right: auto;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-xs);
  background: rgb(247 243 237 / 0.08);
  font-size: var(--fs-xs);
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-light-2);
}

.admin-main {
  padding-block: clamp(2rem, 1.5rem + 3vw, 4rem);
}

.admin-login {
  max-width: 26rem;
  margin: clamp(1rem, 4vw, 4rem) auto;
}

.admin-grid {
  display: grid;
  gap: var(--space-5);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  margin: 0;
}

.admin-stat {
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
}

.admin-stat dt {
  font-size: var(--fs-xs);
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-2);
}

.admin-stat dd {
  margin-top: var(--space-1);
  font-size: 1.75rem;
  font-weight: 700;
  font-stretch: 108%;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 760px) {
  .admin-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.status-card {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
}

@media (min-width: 760px) {
  .status-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

.status-line {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 620;
}

.status-dot {
  width: 0.75rem;
  height: 0.75rem;
  flex: none;
  border-radius: 50%;
  background: var(--c-light-2);
  box-shadow: 0 0 0 4px rgb(205 197 187 / 0.18);
}

.status-dot[data-state="ok"] {
  background: #6fbf87;
  box-shadow: 0 0 0 4px rgb(111 191 135 / 0.18);
}

.status-dot[data-state="warn"] {
  background: #e9a13a;
  box-shadow: 0 0 0 4px rgb(233 161 58 / 0.18);
}

.status-meta {
  margin-top: var(--space-1);
  font-size: var(--fs-small);
  color: var(--fg-2);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-small);
}

.admin-table th,
.admin-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  font-size: var(--fs-xs);
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-2);
}

.admin-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-table .empty {
  padding: var(--space-6) var(--space-4);
  color: var(--fg-2);
  text-align: center;
}

.status-pill {
  display: inline-flex;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: 650;
  white-space: nowrap;
}

.status-pill--visible {
  background: rgb(111 191 135 / 0.16);
  color: #9ad6ad;
}

.status-pill--hidden {
  background: rgb(247 243 237 / 0.1);
  color: var(--c-light-2);
}

@media (max-width: 759px) {
  .admin-table thead {
    display: none;
  }
  .admin-table tr {
    display: grid;
    gap: var(--space-2);
    padding: var(--space-4);
    border-bottom: 1px solid var(--line);
  }
  .admin-table td {
    display: grid;
    grid-template-columns: 6rem minmax(0, 1fr);
    gap: var(--space-3);
    padding: 0;
    border: 0;
  }
  .admin-table td::before {
    content: attr(data-label);
    font-size: var(--fs-xs);
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--fg-2);
  }
  .admin-table td.empty {
    display: block;
  }
  .admin-table td.empty::before {
    content: none;
  }
}

/* ---------- CSP-safe hooks (replace inline style attributes) ---------- */
[data-i="1"] { --i: 1; }
[data-i="2"] { --i: 2; }
[data-i="3"] { --i: 3; }
[data-i="4"] { --i: 4; }
[data-i="5"] { --i: 5; }
.journey[data-steps="5"] { --steps: 5; }
.journey[data-steps="6"] { --steps: 6; }
.stack[data-flow="5"] { --flow: var(--space-5); }
.stack[data-flow="6"] { --flow: var(--space-6); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-7 { margin-top: var(--space-7); }
.my-5 { margin-block: var(--space-5); }
.fw-semi { font-weight: 650; }
.block { display: block; }

/* ---------- Legal pages ---------- */
.placeholder {
  padding: 0.05rem 0.35rem;
  border: 1px dashed var(--c-terra-700);
  border-radius: var(--radius-xs);
  background: rgb(233 106 58 / 0.14);
  color: var(--c-ink);
  font-size: 0.92em;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.legal-meta {
  font-size: var(--fs-small);
  color: var(--fg-2);
}

.legal-summary,
.legal-toc,
.legal-callout {
  padding: var(--space-5) var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
}

.prose .legal-summary h2,
.prose .legal-toc h2 {
  margin-top: 0;
  font-size: var(--fs-h3);
}

.legal-points {
  display: grid;
  gap: var(--space-2);
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
}

.legal-points li {
  position: relative;
  padding-left: 1.6rem;
}

.legal-points li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.55em;
  width: 0.55rem;
  height: 0.3rem;
  border-left: 2px solid var(--accent-ink);
  border-bottom: 2px solid var(--accent-ink);
  transform: rotate(-45deg);
}

.legal-toc ol {
  margin: var(--space-4) 0 0;
  padding-left: 1.4rem;
  columns: 2 16rem;
  column-gap: var(--space-6);
}

.legal-toc li {
  break-inside: avoid;
  padding-block: 0.15rem;
}

.prose [id] {
  scroll-margin-top: calc(var(--header-h) + 1.25rem);
}

.legal-callout {
  border-left: 4px solid var(--c-terra-600);
}

.legal-callout > * + * {
  margin-top: var(--space-3);
}

.legal-dl {
  display: grid;
  gap: var(--space-3);
  margin: 0;
}

.legal-dl > div {
  display: grid;
  gap: var(--space-1) var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--line);
}

.legal-dl dt {
  font-weight: 650;
}

@media (min-width: 640px) {
  .legal-dl > div {
    grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
  }
}

.legal-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
}

.legal-table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: var(--fs-small);
  line-height: 1.5;
}

.legal-table th,
.legal-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  font-size: var(--fs-xs);
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-2);
}

.legal-table tbody tr:last-child td {
  border-bottom: 0;
}

.prose code {
  padding: 0.05rem 0.3rem;
  border-radius: var(--radius-xs);
  background: color-mix(in srgb, var(--fg) 8%, transparent);
  font-size: 0.92em;
}

/* ---------- Privacy microcopy ---------- */
.field-hint {
  font-size: var(--fs-xs);
  line-height: 1.45;
  color: var(--fg-2);
}

.external-note {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
  font-size: var(--fs-xs);
  line-height: 1.5;
  color: var(--fg-2);
}

.external-note .icon {
  width: 1rem;
  height: 1rem;
  margin-top: 0.1rem;
  flex: none;
}

.external-note a,
.reviews-note a {
  color: var(--accent-ink);
}

/* ---------- Google review attribution ---------- */
.google-card__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2) var(--space-4);
  width: 100%;
}

.google-attribution {
  font-family: Roboto, Arial, sans-serif;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0;
  white-space: nowrap;
  color: var(--fg-2);
}

.reviews-note {
  font-size: var(--fs-xs);
  line-height: 1.5;
  color: var(--fg-2);
}

.review-card__avatar {
  overflow: hidden;
}

.review-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-card__source a {
  color: var(--accent-ink);
}

@media print {
  .site-footer .footer-top,
  .legal-toc {
    display: none !important;
  }
  .legal-page .page-hero {
    padding-block: 1rem;
    background: #fff;
    color: #000;
  }
  .prose a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
  }
}

/* ---------- Motion: reveals (only when JS is present) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    transition:
      opacity var(--dur-4) var(--ease-out),
      transform var(--dur-4) var(--ease-out);
    transition-delay: calc(var(--i, 0) * 80ms);
  }

  .js [data-reveal="up"]:not(.is-in) {
    opacity: 0;
    transform: translateY(18px);
  }

  .js [data-reveal="fade"]:not(.is-in) {
    opacity: 0;
  }

  /* Clip the children, not the observed element: a fully clipped target has zero
     intersection area in Chromium and would never be revealed or clickable. */
  .js [data-reveal="clip"] > * {
    transition: clip-path 1100ms var(--ease-out);
    transition-delay: calc(var(--i, 0) * 80ms);
  }

  .js [data-reveal="clip"]:not(.is-in) > * {
    clip-path: inset(0 100% 0 0);
  }

  .js [data-reveal="clip"] img {
    transition: transform 1400ms var(--ease-out);
  }

  .js [data-reveal="clip"]:not(.is-in) img {
    transform: scale(1.08);
  }

  .js .journey[data-reveal]::after {
    transition: transform 1600ms var(--ease-in-out) 200ms;
  }

  .js .journey[data-reveal]:not(.is-in)::after {
    transform: scaleX(0);
  }

  .js .journey[data-reveal] .journey-step {
    transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
    transition-delay: calc(200ms + var(--i, 0) * 260ms);
  }

  .js .journey[data-reveal]:not(.is-in) .journey-step {
    opacity: 0;
    transform: translateY(12px);
  }

  .js .journey[data-reveal] .journey-node {
    transition-delay: calc(260ms + var(--i, 0) * 260ms);
  }

  .js .journey[data-reveal]:not(.is-in) .journey-node {
    border-color: var(--line-strong);
  }

  .journey.is-in .journey-node {
    border-color: var(--c-terra-400);
  }

  @media (max-width: 899px) {
    .js .journey[data-reveal]:not(.is-in)::after {
      transform: scaleY(0);
    }
  }

  /* hero image settles as the page scrolls (progressive enhancement) */
  @supports (animation-timeline: scroll()) {
    @media (min-width: 900px) {
      .hero__media img {
        animation: hero-settle linear both;
        animation-timeline: scroll(root);
        animation-range: 0 90vh;
      }
    }
  }
}

@keyframes hero-settle {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.06) translateY(2%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .journey .journey-node {
    border-color: var(--c-terra-400);
  }
}

/* ---------- Cross-document view transitions (progressive) ---------- */
@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 240ms;
  animation-timing-function: var(--ease-out);
}

::view-transition-group(site-header),
::view-transition-group(contact-dock) {
  animation-duration: 0s;
}

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header,
  .dock,
  .cta-band,
  .skip-link {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
    padding: 0;
  }
  .site-notice,
  .today-status {
    display: none !important;
  }
}

/* ==========================================================================
   V6 — inline icon sprite · central opening hours · walk-in contact · admin settings
   ========================================================================== */

/* The sprite is inlined in every page; zero-size instead of display:none keeps <use> references working */
.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

/* ---------- Mobile menu contact lines ---------- */
.nav-panel__line {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.nav-panel__line .icon {
  width: 1rem;
  height: 1rem;
  margin-top: 0.2rem;
  color: var(--c-terra-300);
}

/* ---------- Public notice (admin controlled, renders nothing when off) ---------- */
.site-notice {
  position: relative;
  z-index: 3;
  background: var(--c-cream-100);
  color: var(--c-ink);
  border-bottom: 1px solid rgb(39 41 43 / 0.12);
}

.site-notice__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem var(--space-4);
  padding-block: 0.7rem;
  font-size: var(--fs-small);
  line-height: 1.45;
}

.site-notice__inner > .icon {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--c-terra-700);
}

.site-notice__inner p {
  flex: 1 1 16rem;
  min-width: 0;
}

.site-notice__link {
  color: var(--c-terra-700);
  font-weight: 650;
  text-underline-offset: 0.2em;
}

/* ---------- "Heute" status ---------- */
.today-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 100%;
  padding: 0.3rem 0.75rem 0.3rem 0.6rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--fg) 8%, transparent);
  color: var(--fg);
  font-size: var(--fs-xs);
  font-weight: 650;
  line-height: 1.3;
}

.today-status__dot {
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--fg-2);
}

.today-status[data-state="open"] .today-status__dot {
  background: #3fa564;
  box-shadow: 0 0 0 3px rgb(63 165 100 / 0.24);
}

.today-status[data-state="later"] .today-status__dot {
  background: var(--c-terra-400);
  box-shadow: 0 0 0 3px rgb(233 106 58 / 0.24);
}

.site-footer .today-status {
  margin-top: var(--space-4);
}

/* footer column is narrow: a quiet status line instead of a pill that would wrap */
.today-status--footer {
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0;
  border-radius: 0;
  background: none;
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.45;
  text-wrap: balance;
}

.today-status--footer .today-status__dot {
  margin-top: 0.42em;
}

/* ---------- Schedules rendered from business data ---------- */
.schedule dd {
  white-space: normal;
  text-align: right;
}

.schedule__and {
  color: var(--fg-2);
  font-size: 0.9em;
}

.schedule--week > div {
  padding-block: 0.7rem;
  transition: background-color var(--dur-3) ease, box-shadow var(--dur-3) ease;
}

.schedule--week .is-closed dt {
  font-weight: 520;
  color: var(--fg-2);
}

.schedule--week .is-closed dd {
  color: color-mix(in srgb, var(--fg-2) 85%, transparent);
}

/* the highlight bleeds sideways via shadows, so text and separator lines stay aligned with the card */
.schedule [data-day].is-today {
  --today-bg: color-mix(in srgb, var(--c-terra-500) 11%, transparent);
  background: var(--today-bg);
  box-shadow: -0.75rem 0 0 var(--today-bg), 0.75rem 0 0 var(--today-bg);
}

.schedule [data-day].is-today dt::after {
  content: "Heute";
  margin-left: 0.5rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: var(--c-terra-600);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  vertical-align: 0.12em;
}

.hours-fallback {
  color: var(--fg-2);
}

.hours__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
}

.hours__more {
  margin-top: var(--space-1);
}

/* ---------- Special dates ---------- */
.special-hours {
  display: grid;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px dashed var(--line-strong);
}

.special-hours__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-xs);
  font-weight: 650;
  font-stretch: 108%;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.special-hours__title .icon {
  width: 1rem;
  height: 1rem;
}

.special-hours__list {
  display: grid;
  gap: var(--space-2);
}

.special-hours__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.1rem var(--space-4);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--c-terra-500) 10%, transparent);
}

.special-hours__date {
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.special-hours__value {
  font-weight: 650;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.special-hours__item--closed .special-hours__value {
  color: var(--accent-ink);
}

.special-hours__note {
  grid-column: 1 / -1;
  font-size: var(--fs-small);
  color: var(--fg-2);
}

/* ---------- Footer hours ---------- */
.footer-col .footer-hours {
  display: grid;
}

.footer-hours + .footer-hours {
  margin-top: var(--space-3);
}

.footer-hours__days {
  color: var(--fg);
  font-weight: 600;
}

.footer-special {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
}

.footer-col .footer-special__title {
  margin-bottom: var(--space-2);
  font-size: var(--fs-xs);
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.footer-special li {
  display: grid;
  font-size: var(--fs-small);
  line-height: 1.45;
  color: var(--fg-2);
}

.footer-col__plain {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--fg-2);
  font-size: var(--fs-small);
  line-height: 1.5;
}

/* ---------- Kontakt: hero with hours strip, visit section ---------- */
.contact-hero__head {
  display: grid;
  gap: var(--space-6);
  align-items: end;
}

@media (min-width: 900px) {
  .contact-hero__head {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--space-8);
  }
}

.hours-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-3) var(--space-4);
  align-items: start;
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
  color: var(--fg);
  text-decoration: none;
  transition: transform var(--dur-2) var(--ease-out), border-color var(--dur-2) ease;
}

.hours-strip:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.hours-strip__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c-terra-500) 18%, transparent);
  color: var(--accent-ink);
}

.hours-strip__body {
  display: grid;
  gap: 0.35rem;
  justify-items: start;
  min-width: 0;
}

.hours-strip small {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-2);
}

.hours-strip strong {
  font-weight: 640;
  line-height: 1.4;
}

/* grouped hours ("Di & Do 17–20 Uhr · Sa 10–14 Uhr"): groups never break inside; narrow
   containers stack the groups instead of leaving a dangling separator */
.hours-group {
  white-space: nowrap;
}

/* the strip is always a narrow column: one group per line at every width */
.hours-strip .hours-group {
  display: block;
}

.hours-strip .hours-sep {
  display: none;
}

@media (max-width: 559px) {
  .hero-facts .hours-group {
    display: block;
  }
  .hero-facts .hours-sep {
    display: none;
  }
}

.hours-strip .today-status {
  margin-top: 0.25rem;
}

.hours-strip__more {
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--fs-small);
  font-weight: 650;
  color: var(--accent-ink);
}

.hours-strip__more .icon {
  width: 1rem;
  height: 1rem;
  transition: transform var(--dur-2) var(--ease-out);
}

.hours-strip:hover .icon--arrow {
  transform: translateX(3px);
}

.contact-actions + .external-note {
  margin-top: var(--space-4);
}

.hours-card {
  display: grid;
  gap: var(--space-4);
  padding: clamp(1.25rem, 0.9rem + 1.2vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-raised);
  box-shadow: var(--shadow-sm);
}

.hours-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
}

.hours-card__title {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.hours-card__title .icon {
  color: var(--accent-ink);
}

.map-card__place {
  display: grid;
  gap: var(--space-2);
}

/* small laptops / landscape tablets: give the hours column room before the 5/7 split */
@media (min-width: 900px) and (max-width: 1199px) {
  .visit-split > .col-5,
  .visit-split > .col-7 {
    grid-column: span 6;
  }
}

@media (max-width: 599px) {
  .admin-lead {
    font-size: var(--fs-small);
  }
}

@media (max-width: 399px) {
  .admin-nav .icon {
    display: none;
  }
}

.inline-link {
  color: var(--accent-ink);
  font-weight: 650;
  white-space: nowrap;
}

/* ---------- Mobile contact dock: move aside while typing ---------- */
/* the side rail must never sit on the legal links at the very end of the page */
@media (min-width: 1200px) and (max-width: 1439px) {
  .footer-bottom {
    padding-right: 4.25rem;
  }
}

@media (max-width: 1199px) {
  .dock {
    transition: transform var(--dur-3) var(--ease-out), visibility 0s linear;
  }
  html:has(.form :is(input, textarea, select):focus) .dock {
    transform: translateY(110%);
    visibility: hidden;
    transition: transform var(--dur-3) var(--ease-out), visibility 0s linear var(--dur-3);
  }
}

/* ---------- Admin: Betriebsdaten ---------- */
.admin-shell {
  display: grid;
  gap: clamp(3rem, 2rem + 3vw, 5rem);
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.admin-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--fg);
  font-size: var(--fs-small);
  font-weight: 620;
  text-decoration: none;
  transition: border-color var(--dur-2) ease, background-color var(--dur-2) ease;
}

.admin-nav a:hover {
  border-color: var(--fg);
  background: color-mix(in srgb, var(--fg) 6%, transparent);
}

.admin-nav .icon {
  width: 1.05rem;
  height: 1.05rem;
  color: var(--accent-ink);
}

.admin-lead {
  max-width: 46rem;
}

[id="betriebsdaten"],
[id="bewertungen"] {
  scroll-margin-top: var(--space-5);
}

.biz-form {
  display: grid;
  gap: var(--space-5);
}

.admin-card {
  display: grid;
  gap: var(--space-4);
  min-width: 0;
  margin: 0;
  padding: clamp(1.25rem, 0.8rem + 1.5vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-raised);
}

.admin-card__title {
  float: left; /* turns the legend into a normal grid item */
  width: 100%;
  padding: 0;
  font-size: var(--fs-h3);
  font-weight: 650;
  font-stretch: 104%;
  line-height: 1.25;
}

.admin-card__hint {
  margin-top: calc(var(--space-2) * -1);
  max-width: 48rem;
  color: var(--fg-2);
  font-size: var(--fs-small);
}

.hours-editor {
  display: grid;
  border-top: 1px solid var(--line);
}

.hours-row {
  display: grid;
  gap: var(--space-3) var(--space-5);
  align-items: center;
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--line);
}

@media (min-width: 760px) {
  .hours-row {
    grid-template-columns: minmax(0, 16rem) minmax(0, 1fr);
    min-height: 4.25rem;
  }
  .hours-row__error {
    grid-column: 2;
  }
}

.hours-row__day {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.hours-row__name {
  font-weight: 650;
}

.hours-row__times {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-4);
  min-width: 0;
}

.hours-row:not(.is-open) .time-range,
.hours-row:not(.is-open) [data-add-range] {
  display: none !important;
}

.hours-row.is-open .hours-row__closed {
  display: none;
}

.hours-row__closed {
  color: var(--fg-2);
  font-size: var(--fs-small);
}

.time-range {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 1 19rem;
  min-width: 0;
}

.time-range__dash {
  color: var(--fg-2);
}

.input--time {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  min-height: 2.75rem;
  padding: 0.45rem 0.6rem;
  font-variant-numeric: tabular-nums;
}

.switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  font-size: var(--fs-small);
  font-weight: 600;
  cursor: pointer;
}

/* keeps keyboard focus and scrolled-to fields clear of the sticky save bar */
html:has(.admin-savebar) {
  scroll-padding-bottom: 7rem;
}

.switch input {
  position: absolute;
  z-index: 1; /* the real control receives pointer events, the track is decoration */
  top: 50%;
  left: 0;
  width: 2.75rem;
  height: 1.6rem;
  margin: 0;
  opacity: 0;
  transform: translateY(-50%);
  cursor: pointer;
}

.switch__track {
  position: relative;
  flex: none;
  width: 2.75rem;
  height: 1.6rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--c-graphite-500);
  transition: background-color var(--dur-2) ease, border-color var(--dur-2) ease;
}

.switch__track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(1.6rem - 6px);
  height: calc(1.6rem - 6px);
  border-radius: 50%;
  background: var(--c-light);
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.35);
  transition: transform var(--dur-2) var(--ease-out);
}

.switch input:checked + .switch__track {
  border-color: var(--c-terra-600);
  background: var(--c-terra-600);
}

.switch input:checked + .switch__track::after {
  transform: translateX(1.15rem);
}

.switch input:focus-visible + .switch__track {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.switch__text {
  min-width: 5.5rem;
  color: var(--fg-2);
}

.switch input:checked ~ .switch__text {
  color: var(--fg);
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.75rem;
  padding: 0 0.25rem;
  border: 0;
  background: none;
  color: var(--accent-ink);
  font-size: var(--fs-small);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.link-btn .icon {
  width: 1rem;
  height: 1rem;
}

.notice .link-btn {
  min-height: 0;
  padding: 0;
}

.icon-btn--sm .icon {
  width: 1.05rem;
  height: 1.05rem;
}

.icon-btn--danger:hover {
  border-color: #ff8a80;
  color: #ffaba4;
}

.admin-preview {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--fg) 5%, transparent);
  color: var(--fg-2);
  font-size: var(--fs-small);
}

.admin-preview .icon {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.12rem;
  color: #9ad6ad;
}

.admin-preview strong {
  color: var(--fg);
}

.admin-links {
  color: var(--fg-2);
  font-size: var(--fs-xs);
  overflow-wrap: anywhere;
}

.admin-links:empty {
  display: none;
}

.admin-links code {
  display: inline-block;
  margin: 0.15rem 0.25rem 0 0;
  padding: 0.05rem 0.4rem;
  border-radius: var(--radius-xs);
  background: color-mix(in srgb, var(--fg) 8%, transparent);
}

.special-editor {
  display: grid;
  gap: var(--space-2);
}

.special-editor:empty {
  display: none;
}

.special-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-2) var(--space-4);
  padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4);
  border: 1px solid var(--line);
  border-left: 3px solid var(--c-terra-500);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--fg) 3%, transparent);
}

.special-item__main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem var(--space-3);
  min-width: 0;
}

.special-item__date {
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.special-item__note {
  flex-basis: 100%;
  color: var(--fg-2);
  font-size: var(--fs-small);
}

.special-item__actions {
  display: flex;
  gap: var(--space-1);
}

.special-item .field-error {
  grid-column: 1 / -1;
}

.admin-empty {
  color: var(--fg-2);
  font-size: var(--fs-small);
}

.admin-add {
  justify-self: start;
}

.special-form {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-5);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--c-graphite-800);
}

.special-form__title {
  font-weight: 650;
}

.special-form__grid {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .special-form__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .form-grid--address {
    grid-template-columns: minmax(0, 9rem) minmax(0, 1fr);
  }
}

.field__label {
  font-size: var(--fs-small);
  font-weight: 620;
}

#noticeFields.is-disabled {
  opacity: 0.55;
}

.admin-savebar {
  position: sticky;
  bottom: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-5);
  padding: var(--space-4) var(--space-5) calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius) var(--radius) 0 0;
  background: rgb(48 50 53 / 0.96);
  box-shadow: 0 -16px 32px -20px rgb(0 0 0 / 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.admin-savebar__status {
  flex: 1 1 18rem;
  color: var(--fg-2);
  font-size: var(--fs-small);
}

.admin-savebar__status[data-state="ok"] {
  color: #9ad6ad;
}

.admin-savebar__status[data-state="error"] {
  color: #ffaba4;
}

.admin-savebar__status[data-state="dirty"] {
  color: var(--c-terra-300);
}

/* ==========================================================================
   V8 — additions on top of the V6 design system
   Same graphite/terracotta language, clearer heading hierarchy, livelier
   controls (the one quality taken over from V7) and the new offer components.
   ========================================================================== */

/* ---------- Home hero: swapped hierarchy ----------
   V6 had a small eyebrow above a large headline. V8 keeps both in place but
   turns the upper line into the page title and the lower line into a kicker. */
.hero__title {
  max-width: 16ch;
  margin-bottom: calc(var(--space-3) * -1);
}

.hero__tagline,
.page-hero__kicker {
  display: inline-flex;
  align-items: baseline;
  gap: 0.75rem;
  max-width: 34rem;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.1875rem);
  font-weight: 650;
  font-stretch: 106%;
  letter-spacing: 0.005em;
  line-height: 1.4;
  color: var(--accent-ink);
}

.hero__tagline::before,
.page-hero__kicker::before {
  content: "";
  flex: none;
  position: relative;
  top: -0.35em;
  width: 1.5rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

@media (max-width: 479px) {
  .hero__title {
    max-width: none;
  }
  .hero__tagline,
  .page-hero__kicker {
    gap: 0.5rem;
  }
  .hero__tagline::before,
  .page-hero__kicker::before {
    width: 1rem;
  }
}

/* ---------- Page heroes: title · kicker · supporting headline · lead ---------- */
.page-hero__title {
  max-width: 18ch;
  margin-bottom: calc(var(--space-3) * -1);
}

.page-hero__headline {
  max-width: 24ch;
  font-size: clamp(1.25rem, 1.1rem + 0.75vw, 1.875rem);
  font-weight: 680;
  font-stretch: 106%;
  letter-spacing: -0.012em;
  line-height: 1.18;
  text-wrap: balance;
  color: var(--fg);
}

.page-hero__content .lead,
.photo-hero__content .lead {
  max-width: 38rem;
}

@media (max-width: 479px) {
  .page-hero__title,
  .page-hero__headline {
    max-width: none;
  }
}

/* ---------- Licence-class variants (B · B78 · B197) ---------- */
.variant-grid {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 760px) {
  .variant-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.variant-card {
  display: grid;
  align-content: start;
  gap: var(--space-3);
  padding: clamp(1.25rem, 0.9rem + 1.2vw, 1.875rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
  transition: transform var(--dur-3) var(--ease-out), border-color var(--dur-3) ease, box-shadow var(--dur-3) ease;
}

.variant-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.variant-card:focus-within {
  border-color: var(--focus);
}

.variant-card--highlight {
  border-color: color-mix(in srgb, var(--c-terra-400) 55%, transparent);
  box-shadow: inset 0 2px 0 var(--c-terra-400);
}

.variant-card__badge {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg);
}

.variant-card h3 {
  font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem);
}

.variant-card__lead {
  color: var(--fg-2);
}

.variant-card__facts {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-2);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}

.variant-card__facts > div {
  display: grid;
  gap: 0.125rem;
}

.variant-card__facts dt {
  font-size: var(--fs-xs);
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-2);
}

.variant-card__facts dd {
  margin: 0;
  font-size: var(--fs-small);
  line-height: 1.5;
}

.variant-card .text-link {
  margin-top: var(--space-2);
  justify-self: start;
}

/* ---------- Legal footnote (B197 sources) ---------- */
.legal-note {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-top: var(--space-6);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--bg-raised) 70%, transparent);
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--fg-2);
}

.legal-note .icon {
  flex: none;
  margin-top: 0.2rem;
  color: var(--accent-ink);
}

/* ---------- Future offer (Anhänger ab 2027) – announcement, never bookable ---------- */
.future-card {
  display: grid;
  gap: var(--space-5);
  margin-top: var(--space-5);
  padding: var(--space-5);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg-raised) 55%, transparent);
}

.future-card__media {
  overflow: hidden;
  border-radius: var(--radius-sm);
  aspect-ratio: 16 / 9;
}

.future-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
}

.future-card__body {
  display: grid;
  align-content: center;
  gap: var(--space-3);
}

.future-card__status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-self: start;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-2);
}

.future-card__status .icon {
  width: 1rem;
  height: 1rem;
}

.future-card__body p {
  max-width: 52ch;
  color: var(--fg-2);
}

@media (min-width: 760px) {
  .future-card {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    align-items: center;
    padding: var(--space-5) var(--space-6) var(--space-5) var(--space-5);
  }
  .future-card__media {
    aspect-ratio: 4 / 3;
  }
}

.classes-compact__soon h3 {
  color: var(--fg-2);
}

/* ---------- Consent checkbox ---------- */
.field--check {
  gap: 0.5rem;
}

.check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.75rem;
  cursor: pointer;
}

.check__box {
  position: absolute;
  width: 1.5rem;
  height: 1.5rem;
  margin: 0;
  opacity: 0;
}

.check__mark {
  position: relative;
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xs);
  background: var(--field-bg);
  transition: border-color var(--dur-2) ease, background-color var(--dur-2) ease, box-shadow var(--dur-2) ease;
}

.check__mark::after {
  content: "";
  position: absolute;
  left: 0.46rem;
  top: 0.2rem;
  width: 0.35rem;
  height: 0.7rem;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0.6);
  opacity: 0;
  transition: opacity var(--dur-1) ease, transform var(--dur-2) var(--ease-out);
}

.check:hover .check__mark {
  border-color: color-mix(in srgb, var(--fg) 45%, transparent);
}

.check__box:checked + .check__mark {
  border-color: var(--c-terra-600);
  background: var(--c-terra-600);
}

.check__box:checked + .check__mark::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

.check__box:focus-visible + .check__mark {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.check__box[aria-invalid="true"] + .check__mark {
  border-color: var(--c-error);
  box-shadow: 0 0 0 3px rgb(179 38 30 / 0.16);
}

.check__text {
  font-size: var(--fs-small);
  font-weight: 450;
  line-height: 1.55;
  color: var(--fg-2);
}

.check__text a {
  color: var(--accent-ink);
  font-weight: 620;
}

.form-card__title {
  margin-bottom: var(--space-2);
  font-size: var(--fs-h3);
  font-weight: 680;
  letter-spacing: -0.012em;
  line-height: 1.2;
}

/* ---------- Controls: the "more alive" quality taken over from V7 ----------
   Same V6 colours and shapes; only the reaction to hover, focus and press is
   sharper. Movement stays below 3px so nothing jumps. */
.btn:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.btn:hover .icon:not(.icon--arrow) {
  transform: scale(1.06);
}

.btn:active {
  transform: translateY(1px);
}

.btn--secondary {
  --btn-shadow: inset 0 0 0 0 transparent;
}

.btn--secondary:hover {
  --btn-bg: color-mix(in srgb, var(--fg) 12%, transparent);
  --btn-border: var(--fg);
  --btn-shadow: 0 10px 22px -18px rgb(12 10 9 / 0.9);
}

.tone-cream .btn--secondary:hover,
.tone-warm .btn--secondary:hover {
  --btn-bg: color-mix(in srgb, var(--c-terra-700) 8%, transparent);
  --btn-border: var(--c-terra-700);
  --btn-fg: var(--c-terra-700);
}

.btn--light:active,
.btn--secondary:active {
  transform: translateY(1px);
}

/* the underline of a text link grows from the left and is easier to see */
.text-link {
  background-size: 0 2px;
}

.text-link:hover,
a:hover > .text-link,
.text-link:focus-visible {
  background-size: 100% 2px;
}

.text-link:focus-visible {
  outline-offset: 4px;
}

.contact-action:focus-visible,
.gallery__btn:focus-visible,
.hours-strip:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.contact-action:active,
.class-tile:active,
.variant-card:active {
  transform: translateY(0);
}

/* Touch devices keep the sticky :hover state off the controls. */
@media (hover: none) {
  .btn:hover,
  .class-tile:hover,
  .variant-card:hover,
  .contact-action:hover {
    transform: none;
  }
  .btn:hover .icon--arrow,
  .btn:hover .icon:not(.icon--arrow) {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn:hover,
  .btn:active,
  .class-tile:hover,
  .variant-card:hover,
  .contact-action:hover,
  .class-tile:hover .class-tile__media img {
    transform: none;
  }
  .btn:hover .icon--arrow,
  .btn:hover .icon:not(.icon--arrow),
  .text-link:hover .icon--arrow {
    transform: none;
  }
}

/* ==========================================================================
   V8 — administration area
   Same dark V6 surfaces as the public site; only the components are new.
   ========================================================================== */

.admin-shell {
  gap: var(--space-6);
}

.admin-nav a.is-active {
  border-color: var(--c-terra-500);
  background: color-mix(in srgb, var(--c-terra-500) 18%, transparent);
  color: #fff;
}

.admin-nav a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.admin-nav__badge {
  display: inline-grid;
  place-items: center;
  min-width: 1.4rem;
  height: 1.4rem;
  padding-inline: 0.35rem;
  border-radius: 999px;
  background: var(--c-terra-600);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 700;
}

.admin-section {
  scroll-margin-top: var(--space-5);
}

/* ---------- toolbar, filters, search ---------- */
.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

.admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.chip {
  min-height: 2.375rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--fg-2);
  font-size: var(--fs-small);
  font-weight: 620;
  transition: border-color var(--dur-2) ease, background-color var(--dur-2) ease, color var(--dur-2) ease;
}

.chip:hover {
  border-color: var(--fg);
  color: var(--fg);
}

.chip.is-active {
  border-color: var(--c-terra-500);
  background: color-mix(in srgb, var(--c-terra-500) 18%, transparent);
  color: #fff;
}

.chip:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.admin-search {
  flex: 1 1 16rem;
  min-width: 12rem;
}

.admin-search .input {
  min-height: 2.75rem;
}

/* ---------- lists ---------- */
.admin-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.admin-list__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--line);
}

.admin-list__row small {
  display: block;
  color: var(--fg-2);
  font-size: var(--fs-xs);
}

.admin-list__meta {
  color: var(--fg-2);
  font-size: var(--fs-small);
  white-space: nowrap;
}

.admin-list__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.admin-ref {
  display: block;
  color: var(--fg-2);
  font-size: var(--fs-xs);
}

.admin-table td small {
  display: block;
  color: var(--fg-2);
  font-size: var(--fs-xs);
}

.admin-secret code {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--c-graphite-900);
  font-size: 1.0625rem;
  letter-spacing: 0.12em;
  word-break: break-all;
}

.admin-locked {
  margin-top: var(--space-2);
  color: var(--accent-ink);
  font-size: var(--fs-small);
  font-weight: 620;
}

.admin-card.is-locked {
  opacity: 0.65;
}

/* ---------- status pills for the V8 record states ---------- */
.status-pill--neu,
.status-pill--offen {
  background: color-mix(in srgb, var(--c-terra-500) 22%, transparent);
  color: #ffc5ab;
}

.status-pill--kontaktiert,
.status-pill--pausiert {
  background: rgb(120 160 210 / 0.18);
  color: #bcd6f5;
}

.status-pill--termin_vereinbart,
.status-pill--aktiv,
.status-pill--genehmigt {
  background: rgb(111 191 135 / 0.16);
  color: #9ad6ad;
}

.status-pill--kunde {
  background: rgb(111 191 135 / 0.26);
  color: #b6e6c5;
}

.status-pill--nicht_erreicht,
.status-pill--error,
.status-pill--abgelehnt {
  background: rgb(179 38 30 / 0.22);
  color: #ffaba4;
}

.status-pill--abgeschlossen,
.status-pill--widerrufen {
  background: rgb(247 243 237 / 0.1);
  color: var(--c-light-2);
}

.btn--danger {
  --btn-fg: #ffaba4;
  --btn-border: rgb(255 138 128 / 0.5);
}

.btn--danger:hover {
  --btn-bg: rgb(179 38 30 / 0.22);
  --btn-border: #ffaba4;
  --btn-fg: #ffd3cf;
}

/* ---------- dialogs ---------- */
.admin-dialog {
  width: min(100% - 2rem, 46rem);
  max-height: min(90dvh, 52rem);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--c-graphite-800);
  color: var(--c-light);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.admin-dialog::backdrop {
  background: rgb(12 10 9 / 0.68);
  backdrop-filter: blur(3px);
}

.admin-dialog__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--line);
  background: var(--c-graphite-900);
}

.admin-dialog__body {
  display: grid;
  gap: var(--space-4);
  max-height: 62dvh;
  padding: var(--space-5);
  overflow-y: auto;
}

.admin-dialog__footer {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: flex-end;
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--line);
  background: var(--c-graphite-900);
}

.record-facts {
  display: grid;
  gap: var(--space-3);
  margin: 0;
}

.record-facts > div {
  display: grid;
  grid-template-columns: minmax(0, 9rem) minmax(0, 1fr);
  gap: var(--space-3);
  align-items: baseline;
}

.record-facts dt {
  color: var(--fg-2);
  font-size: var(--fs-small);
  font-weight: 620;
}

.record-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.record-message {
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--c-graphite-900);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.record-notes {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.record-notes li {
  padding: var(--space-3) var(--space-4);
  border-left: 2px solid var(--c-terra-500);
  background: color-mix(in srgb, var(--c-graphite-900) 70%, transparent);
  overflow-wrap: anywhere;
}

.record-notes small {
  display: block;
  margin-top: 0.35rem;
  color: var(--fg-2);
  font-size: var(--fs-xs);
}

@media (max-width: 559px) {
  .record-facts > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.125rem;
  }
}

/* ---------- calendar ---------- */
.cal-toolbar {
  justify-content: space-between;
}

.cal-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.cal-range {
  margin-left: var(--space-2);
  font-weight: 650;
}

.cal-body {
  min-width: 0;
}

.cal-grid {
  display: grid;
  gap: 1px;
  padding: 1px;
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}

.cal-grid--month {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.cal-grid--week {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.cal-cell {
  display: grid;
  align-content: start;
  gap: 0.35rem;
  min-height: 7rem;
  padding: var(--space-2);
  background: var(--c-graphite-800);
}

.cal-cell.is-outside {
  background: var(--c-graphite-900);
  opacity: 0.6;
}

.cal-cell.is-today {
  box-shadow: inset 0 0 0 2px var(--c-terra-500);
}

.cal-cell__day {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  font-weight: 700;
}

.cal-cell__day small {
  color: var(--fg-2);
  font-size: var(--fs-xs);
  font-weight: 600;
}

.cal-entry {
  display: grid;
  gap: 0.1rem;
  width: 100%;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--c-terra-500);
  border-radius: var(--radius-xs);
  background: var(--c-graphite-700);
  color: var(--fg);
  text-align: left;
  transition: border-color var(--dur-2) ease, background-color var(--dur-2) ease, transform var(--dur-2) var(--ease-out);
}

.cal-entry:hover {
  background: var(--c-graphite-600);
  transform: translateY(-1px);
}

.cal-entry:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.cal-entry.is-cancelled {
  opacity: 0.55;
  text-decoration: line-through;
}

.cal-entry--fahrstunde {
  border-left-color: #7fb6ff;
}

.cal-entry--pruefung {
  border-left-color: #ffcf6a;
}

.cal-entry--blocker {
  border-left-color: var(--c-light-2);
}

.cal-entry--theorie {
  border-left-color: #9ad6ad;
}

.cal-entry__time {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--accent-ink);
}

.cal-entry__title {
  font-size: var(--fs-small);
  font-weight: 620;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.cal-entry__meta {
  font-size: var(--fs-xs);
  color: var(--fg-2);
  overflow-wrap: anywhere;
}

.cal-day {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised, var(--c-graphite-700));
}

.cal-day__title {
  font-size: var(--fs-h3);
}

@media (max-width: 899px) {
  .cal-grid--month,
  .cal-grid--week {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cal-cell {
    min-height: 5.5rem;
  }
}

@media (max-width: 479px) {
  .cal-grid--month,
  .cal-grid--week {
    grid-template-columns: minmax(0, 1fr);
  }
  .cal-cell.is-outside {
    display: none;
  }
}

/* ---------- media manager ---------- */
.media-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
}

.media-item {
  display: grid;
  align-content: start;
  gap: var(--space-3);
  margin: 0;
  padding: var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--c-graphite-700);
}

.media-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--c-graphite-900);
}

.media-item__name {
  font-weight: 650;
  overflow-wrap: anywhere;
}

.media-item__meta,
.media-item__path {
  color: var(--fg-2);
  font-size: var(--fs-xs);
  overflow-wrap: anywhere;
}

.media-item .actions {
  gap: var(--space-2);
}

/* ---------- accounts & permissions ---------- */
.admin-person {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--c-graphite-700);
}

.admin-person + .admin-person {
  margin-top: var(--space-3);
}

.admin-person summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4);
  cursor: pointer;
  font-weight: 620;
}

.admin-person summary small {
  display: block;
  color: var(--fg-2);
  font-size: var(--fs-xs);
  font-weight: 450;
}

.admin-person summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: -3px;
  border-radius: var(--radius);
}

.admin-person__body {
  display: grid;
  gap: var(--space-4);
  padding: 0 var(--space-4) var(--space-4);
  border-top: 1px solid var(--line);
  padding-top: var(--space-4);
}

.perm-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

.perm-group {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  min-width: 0;
}

.perm-group legend {
  padding-inline: 0.35rem;
  color: var(--accent-ink);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.check--inline {
  gap: 0.6rem;
  align-items: center;
}

.check--inline .check__mark {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0;
}

.check--inline .check__mark::after {
  left: 0.37rem;
  top: 0.14rem;
  width: 0.3rem;
  height: 0.6rem;
}

.check--inline .check__text {
  font-size: var(--fs-small);
  color: var(--fg);
}

/* ---------- content editor ---------- */
#contentGroups {
  display: grid;
  gap: var(--space-4);
}

#contentGroups .field-hint {
  overflow-wrap: anywhere;
}

/* An incomplete form keeps its submit button disabled; that must not look like "working". */
.btn[disabled][aria-disabled="true"] {
  cursor: not-allowed;
}

/* V8: the stacked admin tables carry longer labels and pills than V6 did. */
@media (max-width: 759px) {
  .admin-table td {
    grid-template-columns: minmax(5.5rem, auto) minmax(0, 1fr);
    align-items: start;
  }
  .admin-table td::before {
    padding-top: 0.15rem;
    line-height: 1.3;
  }
  .admin-table td > * {
    justify-self: start;
  }
  .admin-table td .status-pill {
    display: inline-flex;
    width: auto;
  }
  .admin-table td small {
    grid-column: 2;
  }
  .admin-table td .btn {
    width: auto;
  }
}

/* V8 contrast corrections (WCAG 2.2 AA, measured with axe-core) */
/* the strip sits on the raised graphite, where --c-terra-300 only reaches 4.38:1 */
.tone-dark .hours-strip__more,
.tone-dark-2 .hours-strip__more {
  color: #f49670;
}

/* a closed day that is also today: the tinted row pushed the muted text to 4.49:1 */
.schedule--week .is-closed.is-today dd,
.schedule [data-day].is-today dd {
  color: var(--fg-2);
}

/* =====================================================================================
   V9 additions: language switcher, consent UI, price request, multilingual + RTL support
   ===================================================================================== */

/* ---------- Language switcher (header, top right) ---------- */
.lang-switch {
  position: relative;
  flex: none;
}

.lang-switch__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.75rem;
  padding: 0 0.7rem;
  border: 1px solid rgb(247 243 237 / 0.22);
  border-radius: var(--radius-sm);
  color: var(--c-light);
  font-size: 0.875rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  list-style: none;
  cursor: pointer;
  user-select: none;
  transition: border-color var(--dur-2) ease, background-color var(--dur-2) ease;
}

.lang-switch__toggle::-webkit-details-marker,
.lang-switch__toggle::marker {
  display: none;
  content: "";
}

.lang-switch__toggle .icon {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--c-terra-300);
}

.lang-switch__toggle .lang-switch__chevron {
  width: 0.9rem;
  height: 0.9rem;
  color: currentColor;
  transition: transform var(--dur-2) var(--ease-out);
}

.lang-switch__toggle:hover {
  border-color: rgb(247 243 237 / 0.5);
  background: rgb(247 243 237 / 0.06);
}

.lang-switch__toggle:focus-visible {
  outline: 3px solid var(--focus, var(--c-terra-300));
  outline-offset: 2px;
}

.lang-switch[open] .lang-switch__chevron {
  transform: rotate(180deg);
}

.lang-switch__menu {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 0.5rem);
  z-index: 60;
  display: grid;
  gap: 0.125rem;
  min-width: 12.5rem;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  border: 1px solid rgb(247 243 237 / 0.12);
  border-radius: var(--radius);
  background: var(--c-graphite-800);
  box-shadow: var(--shadow-lg);
}

/* Every row: identical two-column grid (code | name). Rows follow the PAGE direction, not the
   direction of their own language, so codes and names form two straight columns in every
   language; the name itself is isolated so Arabic/Latin text still renders correctly. */
.lang-switch__menu a {
  direction: inherit;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  align-items: center;
  column-gap: 0.75rem;
  min-height: 2.75rem;
  padding: 0.35rem 0.75rem;
  line-height: 1.25;
  text-align: start;
  border-radius: var(--radius-sm);
  color: var(--c-light);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: background-color var(--dur-1) ease, color var(--dur-1) ease;
}

.lang-switch__menu a:hover,
.lang-switch__menu a:focus-visible {
  background: rgb(247 243 237 / 0.08);
}

.lang-switch__menu a[aria-current] {
  color: var(--c-terra-300);
  font-weight: 650;
}

.lang-switch__menu a > span:last-child {
  unicode-bidi: isolate;
  text-align: start;
  white-space: nowrap;
}

.lang-switch__code {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: start;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  opacity: 0.7;
}

@media (min-width: 1080px) {
  .header-bar > .lang-switch {
    order: 3;
  }
}

@media (max-width: 1079px) {
  .header-bar {
    gap: var(--space-3);
  }
  .header-bar > .lang-switch {
    order: 1;
  }
  .header-bar > .menu-toggle {
    order: 2;
  }
  .lang-switch__toggle {
    padding: 0 0.55rem;
  }
}

@media (max-width: 400px) {
  .header-bar {
    gap: var(--space-2);
  }
  .brand img,
  .site-header.is-scrolled .brand img {
    height: 36px;
  }
  .lang-switch__toggle .lang-switch__chevron {
    display: none;
  }
}

/* ---------- Price request ---------- */
.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  margin: 0;
}

.price-hint {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--c-terra-500);
  border-radius: var(--radius-sm);
  font-size: var(--fs-small);
  line-height: 1.55;
  color: var(--fg-2);
}

.price-hint .icon {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
  color: var(--accent-ink);
}

.field-optional {
  font-weight: 400;
  font-size: var(--fs-xs);
  color: var(--fg-2);
}

.form-grid > .field-hint {
  margin: calc(var(--space-2) * -1) 0 0;
}

.field .field-hint {
  margin: 0.35rem 0 0;
}

/* ---------- Legal pages ---------- */
.legal-translation-note {
  margin-top: var(--space-3);
  font-style: italic;
}

/* ---------- Consent: banner (only when optional services exist) and settings dialog ---------- */
.consent-banner {
  position: fixed;
  inset-inline: 0;
  bottom: var(--dock-h);
  z-index: 80;
  padding: var(--space-4) 0 calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgb(247 243 237 / 0.14);
  background: rgb(35 37 39 / 0.97);
  color: var(--c-light);
  box-shadow: 0 -18px 40px -24px rgb(0 0 0 / 0.8);
}

.consent-banner__inner {
  display: grid;
  gap: var(--space-4);
  align-items: center;
}

.consent-banner__title {
  margin: 0 0 0.25rem;
  font-weight: 700;
}

.consent-banner__text p {
  margin: 0;
  font-size: var(--fs-small);
  line-height: 1.55;
}

.consent-banner__text a {
  color: var(--c-terra-300);
}

.consent-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

@media (min-width: 900px) {
  .consent-banner__inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

.consent-dialog {
  --fg: var(--c-ink);
  --fg-2: var(--c-ink-2);
  --line: rgb(39 41 43 / 0.13);
  --line-strong: rgb(39 41 43 / 0.3);
  --accent-ink: var(--c-terra-700);
  --focus: var(--c-terra-700);
  width: min(40rem, calc(100% - 2 * var(--gutter)));
  max-height: min(88vh, 48rem);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--c-cream-50);
  color: var(--c-ink);
  box-shadow: var(--shadow-lg);
  color-scheme: light;
}

.consent-dialog::backdrop {
  background: rgb(20 20 22 / 0.72);
}

.consent-dialog__panel {
  display: grid;
  gap: var(--space-4);
  padding: clamp(1.25rem, 0.9rem + 1.6vw, 2rem);
}

.consent-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.consent-dialog__title {
  margin: 0;
  font-size: var(--fs-h3);
  line-height: 1.2;
}

.consent-dialog__intro,
.consent-none,
.consent-dialog__more {
  margin: 0;
  font-size: var(--fs-small);
  line-height: 1.55;
  color: var(--c-ink-2);
}

.consent-dialog a {
  color: var(--c-terra-700);
}

.consent-group {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.consent-group__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.consent-group h3 {
  margin: 0;
  font-size: 1.0625rem;
}

.consent-group__text,
.consent-group__service {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--c-ink-2);
}

.consent-list {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--c-ink-2);
}

.consent-list code {
  font-size: 0.8125rem;
  color: var(--c-ink);
  unicode-bidi: isolate;
  direction: ltr;
}

.consent-list li > span {
  display: block;
}

.consent-optional {
  display: grid;
  gap: var(--space-3);
}

.consent-optional:empty {
  display: none;
}

.consent-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-2);
}

.consent-dialog .btn--secondary {
  --btn-fg: var(--c-ink);
}

.consent-dialog .switch__track {
  background: var(--c-sand-200);
}

/* ---------- "Heute" marker in the weekly schedule, per language ---------- */
:lang(tr) .schedule [data-day].is-today dt::after { content: "Bugün"; }
:lang(en) .schedule [data-day].is-today dt::after { content: "Today"; }
:lang(ru) .schedule [data-day].is-today dt::after { content: "Сегодня"; }
:lang(ar) .schedule [data-day].is-today dt::after { content: "اليوم"; }

/* ---------- Scripts without Archivo glyphs: native system fonts, calmer spacing ---------- */
:lang(ru) {
  --font: "Archivo", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

:lang(ar) {
  --font: "Segoe UI", Tahoma, "Noto Naskh Arabic", "Noto Sans Arabic", "Geeza Pro", Arial, sans-serif;
}

:lang(ar) body,
:lang(ar) .eyebrow,
:lang(ar) .display,
:lang(ar) h1,
:lang(ar) h2,
:lang(ar) h3 {
  letter-spacing: 0;
}

:lang(ar) .eyebrow {
  text-transform: none;
}

/* Numbers, phone numbers, e-mail addresses and times keep their own direction in RTL text */
.nowrap[dir="ltr"],
[dir="rtl"] a[href^="tel:"],
[dir="rtl"] a[href^="mailto:"],
[dir="rtl"] .hours-group,
[dir="rtl"] .footer-hours__days,
[dir="rtl"] input[type="tel"],
[dir="rtl"] input[type="email"] {
  unicode-bidi: isolate;
}

[dir="rtl"] input[type="tel"],
[dir="rtl"] input[type="email"] {
  text-align: right;
}

/* ---------- RTL (Arabic): mirror the physical left/right rules of the base stylesheet ---------- */
[dir="rtl"] .brand {
  margin-right: 0;
  margin-left: auto;
}

[dir="rtl"] .skip-link {
  left: auto;
  right: 0.75rem;
}

[dir="rtl"] .hp {
  left: auto;
  right: -9999px;
}

[dir="rtl"] .icon--arrow,
[dir="rtl"] .icon use[href="#arrow-right"],
[dir="rtl"] .icon use[href="#arrow-left"],
[dir="rtl"] .icon use[href="#arrow-up-right"],
[dir="rtl"] .icon use[href="#chevron-left"],
[dir="rtl"] .icon use[href="#chevron-right"] {
  transform: scaleX(-1);
  transform-origin: center;
  transform-box: fill-box;
}

[dir="rtl"] .btn:hover .icon--arrow,
[dir="rtl"] .text-link:hover .icon--arrow,
[dir="rtl"] .text-link:focus-visible .icon--arrow {
  transform: scaleX(-1) translateX(4px);
}

[dir="rtl"] .nav-list a::after {
  transform-origin: right;
}

[dir="rtl"] .prose ul,
[dir="rtl"] .legal-toc ol {
  padding-left: 0;
  padding-right: 1.4rem;
}

[dir="rtl"] .breadcrumbs li:not(:last-child)::after {
  margin-left: 0;
  margin-right: 0.5rem;
}

[dir="rtl"] .class-tile__media .pill,
[dir="rtl"] .page-hero__media figcaption {
  left: auto;
  right: var(--space-4);
}

[dir="rtl"] .map-card__attrib {
  right: auto;
  left: 0;
  border-top-left-radius: 0;
  border-top-right-radius: var(--radius-xs);
}

[dir="rtl"] .cta-band__emblem {
  right: auto;
  left: max(-5rem, calc((100vw - var(--container)) / 2 - 6rem));
}

[dir="rtl"] select.input {
  padding-right: 1rem;
  padding-left: 2.75rem;
  background-position: 1.3rem 55%, 0.95rem 55%;
}

[dir="rtl"] .gallery__btn,
[dir="rtl"] .admin-table th,
[dir="rtl"] .admin-table td,
[dir="rtl"] .legal-table th,
[dir="rtl"] .legal-table td {
  text-align: right;
}

[dir="rtl"] .schedule dd,
[dir="rtl"] .special-hours__value {
  text-align: left;
}

[dir="rtl"] .schedule [data-day].is-today dt::after {
  margin-left: 0;
  margin-right: 0.5rem;
}

[dir="rtl"] .legal-points li {
  padding-left: 0;
  padding-right: 1.6rem;
}

[dir="rtl"] .legal-points li::before {
  left: auto;
  right: 0.2rem;
}

[dir="rtl"] .legal-callout {
  border-left: 0;
  border-right: 4px solid var(--c-terra-600);
}

[dir="rtl"] .check__mark::after {
  left: auto;
  right: 0.46rem;
}

[dir="rtl"] .switch input {
  left: auto;
  right: 0;
}

[dir="rtl"] .switch__track::after {
  left: auto;
  right: 2px;
}

[dir="rtl"] .switch input:checked + .switch__track::after {
  transform: translateX(-1.15rem);
}

[dir="rtl"] .lightbox__nav--prev { left: auto; right: var(--space-3); }
[dir="rtl"] .lightbox__nav--next { right: auto; left: var(--space-3); }

@media (min-width: 900px) {
  [dir="rtl"] .hero-facts li + li {
    border-left: 0;
    border-right: 1px solid var(--line);
  }
}

@media (max-width: 1079px) {
  [dir="rtl"] .menu-toggle {
    margin-right: 0;
    margin-left: -0.5rem;
  }
  [dir="rtl"] .nav-list a::after {
    left: auto;
    right: 0;
    margin-left: 0;
    margin-right: calc(var(--gutter) * -1);
  }
}

@media (max-width: 1199px) {
  [dir="rtl"] .dock li + li {
    border-left: 0;
    border-right: 1px solid rgb(247 243 237 / 0.08);
  }
}

@media (min-width: 1200px) {
  [dir="rtl"] .dock {
    right: auto;
    left: 1.25rem;
  }
  [dir="rtl"] .dock a:hover,
  [dir="rtl"] .dock a:focus-visible {
    transform: translateX(2px);
  }
  [dir="rtl"] .dock__label {
    right: auto;
    left: calc(100% + 0.625rem);
  }
}

@media (min-width: 1200px) and (max-width: 1439px) {
  [dir="rtl"] .footer-bottom {
    padding-right: 0;
    padding-left: 4.25rem;
  }
}

/* The vertical journey line sits on the start side */
[dir="rtl"] .photo-hero__media::after {
  background:
    linear-gradient(0deg, var(--c-graphite-800) 2%, rgb(48 50 53 / 0.72) 38%, rgb(48 50 53 / 0.08) 72%),
    linear-gradient(270deg, rgb(48 50 53 / 0.7) 0%, rgb(48 50 53 / 0) 60%);
}

@media (min-width: 900px) {
  [dir="rtl"] .hero__media {
    inset: 0 30% 0 0;
  }
  [dir="rtl"] .hero__media img {
    object-position: 38% 55%;
  }
  [dir="rtl"] .hero__media::after {
    background:
      linear-gradient(270deg, var(--c-graphite-800) 0%, rgb(48 50 53 / 0.86) 16%, rgb(48 50 53 / 0.28) 46%, rgb(48 50 53 / 0) 70%),
      linear-gradient(0deg, var(--c-graphite-800) 0%, rgb(48 50 53 / 0) 34%);
  }
  [dir="rtl"] .journey::after {
    background: linear-gradient(270deg, var(--c-terra-500), var(--c-terra-400));
    transform-origin: right;
  }
  [dir="rtl"] .journey::before,
  [dir="rtl"] .journey::after {
    left: calc((100% - (var(--steps, 5) - 1) * var(--gap)) / var(--steps, 5) - var(--node) / 2);
    right: calc(var(--node) / 2);
  }
  [dir="rtl"] .journey-node {
    left: auto;
    right: 0;
  }
}

@media (max-width: 899.98px) {
  [dir="rtl"] .journey {
    padding: 0 calc(var(--node) + var(--space-5)) 0 0;
  }
  [dir="rtl"] .journey::before,
  [dir="rtl"] .journey::after {
    left: auto;
    right: calc(var(--node) / 2 - 1px);
  }
  [dir="rtl"] .journey-node {
    left: auto;
    right: calc((var(--node) + var(--space-5)) * -1);
  }
}

/* ---------- Admin: price requests stand out in the lead list ---------- */
.status-pill--price {
  border-color: transparent;
  background: var(--c-terra-600);
  color: #fff;
}

/* ==========================================================================
   V11 - header social links, language service, admin-controlled image links
   ========================================================================== */

/* Header (desktop): Instagram / TikTok right of the language selector. Mobile: in the menu panel. */
.header-social {
  display: none;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social-link {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  color: var(--c-light);
  text-decoration: none;
  transition: background-color var(--dur-2) ease, color var(--dur-2) ease;
}

.social-link .icon {
  width: 1.2rem;
  height: 1.2rem;
}

.social-link:hover {
  background: rgb(247 243 237 / 0.08);
  color: var(--c-terra-300);
}

.social-link:focus-visible {
  outline: 3px solid var(--focus, var(--c-terra-300));
  outline-offset: 2px;
}

/* From 1200px only: below that the header has no room left in the longer languages (DE, RU) -
   the icons stay in the footer (and in the menu panel below 1080px). */
@media (min-width: 1200px) {
  .header-bar > .header-social {
    display: flex;
    order: 4;
    margin-inline-start: calc(var(--space-6) * -0.5);
  }
}

.nav-social {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: var(--space-2) 0 0;
  padding: 0;
  list-style: none;
}

.nav-social .social-link {
  display: inline-flex;
  gap: 0.5rem;
  width: auto;
  height: 2.75rem;
  padding: 0 0.85rem;
  border: 1px solid rgb(247 243 237 / 0.18);
  font-size: var(--fs-small);
  font-weight: 600;
}

/* Contact page: service languages + Russian-speaking contact */
.language-service {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-top: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
  color: var(--fg);
}

.language-service__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c-terra-500) 18%, transparent);
  color: var(--accent-ink);
}

.language-service__body {
  display: grid;
  gap: var(--space-2);
  min-width: 0;
}

.language-service__title small {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-2);
}

.language-service__title strong {
  display: block;
  font-weight: 640;
  line-height: 1.35;
}

.language-service__contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  color: var(--fg-2);
}

.language-service__contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--fg);
  font-weight: 640;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent-ink) 55%, transparent);
  text-underline-offset: 0.2em;
  white-space: nowrap;
}

.language-service__contact a:hover {
  color: var(--accent-ink);
}

.language-service__contact .icon {
  width: 1rem;
  height: 1rem;
  color: var(--accent-ink);
}

@media (min-width: 1100px) {
  .language-service {
    align-items: center;
  }
  .language-service__body {
    grid-auto-flow: column;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
    width: 100%;
  }
}

/* Images whose click action is configured in the administration */
.img-link {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.img-link:focus-visible {
  outline: 3px solid var(--focus, var(--c-terra-300));
  outline-offset: -3px;
}

.gallery__btn--link {
  cursor: pointer;
}

.gallery__btn--static {
  cursor: default;
}

.gallery__btn--static:hover img {
  transform: none;
}

/* Admin (V11): image click actions and logo variants */
.image-actions {
  display: grid;
  gap: var(--space-4);
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
}

.image-action {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}

.image-action__thumb {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.image-action__body {
  display: grid;
  gap: var(--space-3);
  min-width: 0;
}

.image-action__target code {
  overflow-wrap: anywhere;
}

@media (max-width: 599px) {
  .image-action {
    grid-template-columns: 1fr;
  }
}

.brand-placements {
  display: grid;
  gap: var(--space-5);
}

.brand-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-3);
}

.brand-option {
  position: relative;
  display: grid;
  gap: var(--space-2);
  padding: var(--space-3);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.brand-option input {
  position: absolute;
  inset-block-start: var(--space-3);
  inset-inline-end: var(--space-3);
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--c-terra-500);
}

.brand-option:has(input:checked) {
  border-color: var(--c-terra-500);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-terra-500) 22%, transparent);
}

.brand-option:has(input:focus-visible) {
  outline: 3px solid var(--focus, var(--c-terra-300));
  outline-offset: 2px;
}

.brand-option__preview {
  display: grid;
  place-items: center;
  height: 6.5rem;
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  background: var(--c-graphite-800);
  color: var(--c-light-2);
}

.brand-option__preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.brand-option__preview--favicon img,
.brand-option__preview--emblem img {
  max-height: 4rem;
}

.brand-option__label {
  font-weight: 640;
  line-height: 1.3;
}

.brand-option__label small {
  display: block;
  font-weight: 400;
  color: var(--fg-2);
}
