/*
 * FHT24 Signature - theme.css
 * Pure presentation layer. Styles only documented core hooks (Theme Contract 2.0).
 * Tenant colours come from core variables (--color-*); fallbacks keep the page usable.
 * Assumptions about child markup are marked "ANNAHME" and listed in README.md.
 */

/* ---------- 1. Tokens ---------- */

:where(:root, body, .site-frame) {
  --sig-primary: var(--color-primary, #1F5F73);
  --sig-primary-strong: var(--color-primary-strong, #174A5A);
  --sig-surface-alt: var(--color-surface-alt, #EEF3F5);
  --sig-secondary: var(--color-secondary, #14202B);
  --sig-accent: var(--color-accent, #8FB8C6);
  --sig-accent-light: var(--color-accent-light, #B7D2DB);
  --sig-accent-hover: var(--color-accent-hover, #D3E4EA);
  --sig-focus: var(--color-focus, #1F5F73);
}

:root {
  --sig-ink: #14202B;
  --sig-text: #2E3A45;
  --sig-muted: #5B6773;
  --sig-line: #CFD6DC;
  --sig-line-soft: #E3E7EA;
  --sig-field: #BFC8CF;
  --sig-paper: #F4F6F7;
  --sig-surface: #FFFFFF;
  --sig-error: #B42318;
  --sig-on-primary: #FFFFFF;
  --sig-on-dark: #FFFFFF;
  --sig-on-dark-muted: rgba(255, 255, 255, 0.74);
  --sig-on-dark-soft: rgba(255, 255, 255, 0.6);
  --sig-on-dark-line: rgba(255, 255, 255, 0.14);

  --sig-font-display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sig-font-body: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --sig-shell: 1280px;
  --sig-gutter: 80px;
  --sig-section: 128px;
  --sig-r-sm: 6px;
  --sig-r-img: 8px;
  --sig-r-panel: 10px;
  --sig-shadow-dock:
    0 18px 44px rgba(10, 18, 24, 0.18),
    0 0 24px rgba(10, 18, 24, 0.09),
    0 0 0 1px rgba(10, 18, 24, 0.06);
  --sig-shadow-soft: 0 18px 40px rgba(10, 18, 24, 0.12);
  --sig-ease: 160ms ease;
}

/* ---------- 2. Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--sig-paper);
  color: var(--sig-text);
  font-family: var(--sig-font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--sig-primary);
  text-underline-offset: 0.18em;
  transition: color var(--sig-ease);
}

a:hover {
  color: var(--sig-primary-strong);
}

:focus-visible {
  outline: 2px solid var(--sig-focus);
  outline-offset: 3px;
}

::selection {
  background: var(--sig-surface-alt);
  color: var(--sig-ink);
}

.skip-link {
  position: absolute;
  top: 0;
  left: -9999px;
  z-index: 100;
  padding: 12px 20px;
  border-radius: 0 0 var(--sig-r-sm) 0;
  background: var(--sig-primary);
  color: var(--sig-on-primary);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

.demo-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0.65rem var(--sig-gutter);
  border-bottom: 1px solid #d97706;
  background: #fff7ed;
  color: #7c2d12;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
}

.demo-banner span {
  color: #d97706;
  font-size: 0.72rem;
}

.demo-banner--hidden {
  display: none;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  font-family: var(--sig-font-display);
  font-weight: 400;
  color: var(--sig-ink);
  letter-spacing: -0.02em;
  line-height: 1.06;
  hyphens: none;
  word-break: normal;
  overflow-wrap: break-word;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.125rem, 0.4rem + 8.6vw, 4.25rem);
  line-height: 1.02;
}

h2 {
  font-size: clamp(1.75rem, 8.6vw, 3.5rem);
}

h3 {
  font-size: clamp(1.375rem, 0.8rem + 2.9vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h4 {
  font-size: 1.375rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

p:last-child {
  margin-bottom: 0;
}

/* Shared control look (inputs outside the checkout) */
:where(.route-entry, .form-card) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea) {
  width: 100%;
  font: 500 1.0625rem/1.4 var(--sig-font-body);
  color: var(--sig-ink);
}

:where(.route-entry, .form-card) ::placeholder {
  color: #7C8791;
  opacity: 1;
}

:where(.form-card, .route-entry) button[type="submit"],
a.nav-action,
.nav-action > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--sig-r-sm);
  background: var(--sig-primary);
  color: var(--sig-on-primary);
  font: 600 0.9375rem/1.2 var(--sig-font-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--sig-ease);
}

:where(.form-card, .route-entry) button[type="submit"]:hover,
a.nav-action:hover,
.nav-action > a:hover {
  background: var(--sig-primary-strong);
  color: var(--sig-on-primary);
}

:where(.form-card, .route-entry) button[type="submit"]:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ---------- 3. Page frame ---------- */

.site-frame {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

.site-main > .page {
  flex: 1 0 auto;
}

.site-footer {
  margin-top: auto;
}

.shell {
  width: 100%;
  max-width: calc(var(--sig-shell) + 2 * var(--sig-gutter));
  margin-inline: auto;
  padding-inline: var(--sig-gutter);
}

/* ---------- 4. Header, brand, navigation ---------- */

.site-header {
  position: relative;
  z-index: 10;
  background: var(--sig-surface);
  box-shadow:
    0 1px 0 rgba(20, 32, 43, 0.08),
    0 8px 22px rgba(10, 18, 24, 0.07);
}

.header-language-row {
  position: relative;
  min-height: 26px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.header-language-row::after {
  position: absolute;
  right: var(--sig-gutter);
  bottom: -5px;
  left: var(--sig-gutter);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sig-line) 14%, var(--sig-line) 86%, transparent);
  content: "";
}

.header-inner {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  max-width: min(340px, 40%);
  min-height: 40px;
  color: var(--sig-ink);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.brand:hover {
  color: var(--sig-ink);
}

.brand img {
  width: auto;
  height: auto;
  max-height: 48px;
  max-width: min(320px, 100%);
  object-fit: contain;
}

.brand-mark {
  flex: none;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 8px;
  background: var(--sig-primary);
  color: var(--sig-on-primary);
  font-family: var(--sig-font-display);
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1;
  overflow: hidden;
}

.brand-mark i {
  display: block;
  width: 3px;
  height: 17px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  transform: skewX(-12deg);
}

.brand-mark i:nth-child(2) {
  height: 23px;
}

/* ANNAHME: if the core renders the logo image inside .brand-mark, drop the square */
.brand-mark:has(img) {
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
}

/* Text fallback: at most two lines on desktop */
.brand > :not(.brand-mark):not(img):not(picture) {
  min-width: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.primary-navigation {
  display: flex;
  align-items: center;
  gap: 36px;
  min-width: 0;
}

.primary-navigation ul {
  display: flex;
  align-items: center;
  gap: 36px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-navigation a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--sig-ink);
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: color var(--sig-ease);
}

.primary-navigation a:hover {
  color: var(--sig-primary);
}

.primary-navigation a:focus-visible {
  outline-offset: 4px;
  border-radius: 3px;
}

/* Requires CE-01 (aria-current="page" from the core) */
.primary-navigation a[aria-current="page"] {
  color: var(--sig-ink);
  font-weight: 600;
}

.primary-navigation a:not(.nav-action)[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--sig-primary) 12%, var(--sig-primary) 88%, transparent);
  content: "";
}

.primary-navigation a.nav-action,
.primary-navigation .nav-action > a {
  color: var(--sig-on-primary);
  text-decoration: none;
}

.primary-navigation a.nav-action[aria-current="page"],
.primary-navigation .nav-action > a[aria-current="page"] {
  background: var(--sig-primary-strong);
  box-shadow: inset 0 -3px 0 rgba(255, 255, 255, 0.5);
}

.primary-navigation-toggle {
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
  border: 1px solid var(--sig-line);
  border-radius: var(--sig-r-sm);
  background: var(--sig-surface);
  color: var(--sig-ink);
  cursor: pointer;
}

.primary-navigation-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform var(--sig-ease), opacity var(--sig-ease);
}

/* ---------- 5. Home: hero with docked route entry ---------- */

.route-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: clamp(560px, 54vw, 780px);
  overflow: hidden;
  background: linear-gradient(160deg, #4A5A66 0%, var(--sig-secondary) 72%);
  color: var(--sig-on-dark);
}

.route-hero__image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.route-hero__image img,
.route-hero__image picture {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: right center;
}

.route-hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(15, 25, 33, 0.86) 0%, rgba(15, 25, 33, 0.62) 34%, rgba(15, 25, 33, 0) 62%);
}

.route-hero__content {
  width: 100%;
  max-width: calc(var(--sig-shell) + 2 * var(--sig-gutter));
  margin-inline: auto;
  padding: 128px var(--sig-gutter) 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 64px;
}

.route-hero__copy {
  max-width: 600px;
}

.route-hero__copy :is(h1, h2) {
  color: var(--sig-on-dark);
  letter-spacing: -0.025em;
}

.route-hero__copy p {
  max-width: 500px;
  color: #E4EAEE;
  font-size: clamp(1.0625rem, 0.9rem + 0.6vw, 1.25rem);
  line-height: 1.5;
}

.route-entry {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(180px, 1.4fr) minmax(120px, 0.7fr) minmax(110px, 0.65fr) auto;
  align-items: stretch;
  padding: 14px;
  border-radius: var(--sig-r-panel);
  background: var(--sig-surface);
  color: var(--sig-ink);
  box-shadow: var(--sig-shadow-dock);
}

.route-entry > :not(input[type="hidden"]):not(button):not([data-address-status]) {
  min-width: 0;
  padding: 12px 20px;
  border-right: 1px solid var(--sig-line-soft);
}

.route-entry > input[type="hidden"] {
  display: none;
}

.route-entry > [data-address-status] {
  grid-column: 1 / -1;
  min-height: 0;
  margin: 0;
  color: var(--sig-error);
  font-size: 0.875rem;
}

.route-entry label {
  display: block;
  margin-bottom: 4px;
  color: var(--sig-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.route-entry :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select) {
  min-height: 44px;
  padding: 6px 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
}

.route-entry :is(input, select):focus-visible {
  outline-offset: 2px;
}

.route-entry [aria-invalid="true"] {
  box-shadow: inset 0 -2px 0 var(--sig-error);
}

.route-entry button[type="submit"],
.route-entry > button[type="submit"] {
  width: 100%;
  height: 100%;
  min-height: 64px;
  padding: 0 32px;
  font-size: 1rem;
}

/* ---------- 6. Content sections ---------- */

.content-section {
  padding-block: var(--sig-section);
}

.content-section:not(:has(> .shell)) {
  padding-inline: max(var(--sig-gutter), calc((100% - var(--sig-shell)) / 2));
}

.content-section h2 {
  max-width: 20ch;
}

.content-section > p,
.content-section > .shell > p {
  max-width: 62ch;
  color: var(--sig-muted);
  font-size: 1.125rem;
}

.route-region-panel {
  display: grid;
  gap: 24px;
}

.route-region-visual {
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: var(--sig-r-img);
  object-fit: cover;
  box-shadow: var(--sig-shadow-soft);
}

.about-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(360px, 6fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.about-intro-grid__image {
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: var(--sig-r-img);
  object-fit: cover;
  box-shadow: var(--sig-shadow-soft);
}

.about-service-area {
  margin-top: clamp(64px, 8vw, 112px);
  padding-top: 40px;
  border-top: 1px solid var(--sig-line);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-list > li {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--sig-field);
  border-radius: 999px;
  background: var(--sig-surface);
  color: var(--sig-ink);
  font-weight: 500;
}

/* Feature grid from the real route-first-home markup: .vehicle-grid > .vehicle-card. */
.content-section[aria-labelledby="benefits-heading"] > .vehicle-grid {
  counter-reset: sig-feature;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 64px;
  margin: 64px 0 0;
}

.content-section[aria-labelledby="benefits-heading"] > .vehicle-grid > .vehicle-card {
  counter-increment: sig-feature;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-content: start;
  height: auto;
  padding: 32px 0 48px;
  border-top: 1px solid var(--sig-line);
  border-radius: 0;
  background: transparent;
  color: var(--sig-muted);
  overflow: visible;
}

.content-section[aria-labelledby="benefits-heading"] > .vehicle-grid > .vehicle-card::before {
  content: counter(sig-feature, decimal-leading-zero);
  grid-row: 1 / span 4;
  padding-top: 6px;
  color: var(--sig-primary);
  font-size: 0.875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.content-section[aria-labelledby="benefits-heading"] > .vehicle-grid > .vehicle-card > * {
  grid-column: 2;
  margin-top: 0;
  padding: 0;
}

.content-section[aria-labelledby="benefits-heading"] > .vehicle-grid > .vehicle-card > :last-child {
  margin-top: 0;
  padding-bottom: 0;
}

.content-section[aria-labelledby="benefits-heading"] > .vehicle-grid > .vehicle-card :is(h3, h4, strong) {
  display: block;
  margin: 0 0 10px;
  color: var(--sig-ink);
  font-family: var(--sig-font-display);
  font-size: clamp(1.375rem, 1.1rem + 0.8vw, 1.6875rem);
  font-weight: 400;
  line-height: 1.15;
}

/* ---------- 7. Process ("So funktioniert es") ---------- */

.content-section:has(.process-list) {
  background: var(--sig-secondary);
  color: var(--sig-on-dark-muted);
}

.content-section:has(.process-list) :is(h2, h3) {
  color: var(--sig-on-dark);
}

.content-section:has(> .process-list) {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  column-gap: 96px;
  align-items: start;
}

.content-section:has(> .process-list) > :not(.process-list) {
  grid-column: 1;
}

.content-section:has(> .process-list) > .process-list {
  grid-column: 2;
  grid-row: 1 / span 6;
}

.process-list {
  counter-reset: sig-step;
  position: relative;
  display: grid;
  margin: 0;
  padding: 8px 0 0;
  list-style: none;
}

.process-list > li {
  counter-increment: sig-step;
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  column-gap: 40px;
  align-content: start;
  padding-bottom: 72px;
  font-size: 1.0625rem;
  line-height: 1.65;
}

.process-list > li:last-child {
  padding-bottom: 0;
}

.process-list > li::before {
  content: counter(sig-step);
  position: relative;
  z-index: 1;
  grid-row: 1 / span 4;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--sig-primary);
  border-radius: 50%;
  background: var(--sig-paper);
  color: var(--sig-primary);
  font-family: var(--sig-font-display);
  font-size: 2.125rem;
  line-height: 1;
}

.process-list > li::after {
  content: "";
  position: absolute;
  top: 72px;
  bottom: 0;
  left: 35.5px;
  width: 1px;
  background: linear-gradient(180deg, var(--sig-primary), var(--sig-line));
}

.process-list > li:last-child::after {
  display: none;
}

.content-section:has(.process-list) .process-list > li::before {
  border-color: var(--sig-accent-light);
  background: var(--sig-secondary);
  color: var(--sig-accent-light);
}

.content-section:has(.process-list) .process-list > li::after {
  background: linear-gradient(180deg, var(--sig-accent-light), var(--sig-on-dark-line));
}

.process-list > li > * {
  grid-column: 2;
  max-width: 34rem;
}

.process-list > li :is(h3, h4, strong) {
  display: block;
  margin: 12px 0 12px;
  font-family: var(--sig-font-display);
  font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem);
  font-weight: 400;
  line-height: 1.15;
}

/* ---------- 8. Vehicles ---------- */

.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vehicle-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: var(--sig-r-panel);
  background: var(--sig-surface);
  color: var(--sig-muted);
}

.vehicle-card > :not(.vehicle-geometry):not(img):not(picture) {
  padding-inline: 32px;
}

.vehicle-card > :not(.vehicle-geometry):not(img):not(picture):first-of-type,
.vehicle-card > .vehicle-geometry + * {
  padding-top: 32px;
}

.vehicle-card > :last-child {
  margin-top: auto;
  padding-bottom: 30px;
}

/* Image surface; also the fallback until CE-03 delivers vehicle images */
.vehicle-geometry,
.vehicle-card > img,
.vehicle-card > picture {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: linear-gradient(160deg, var(--sig-surface-alt) 0%, #D5DCE1 100%);
  color: var(--sig-primary);
}

.vehicle-geometry svg {
  width: 100%;
  height: 100%;
}

.vehicle-card :is(h2, h3) {
  margin: 0 0 12px;
  font-size: clamp(1.625rem, 1.2rem + 1.2vw, 2.125rem);
  line-height: 1.1;
}

/* ANNAHME CE-07: capacities as dl > dt/dd; plain text stays readable otherwise */
.vehicle-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 24px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--sig-line-soft);
}

.vehicle-card dl > div + div,
.vehicle-card dl > dt ~ dt {
  padding-left: 24px;
  border-left: 1px solid var(--sig-line-soft);
}

.vehicle-card dt {
  color: var(--sig-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vehicle-card dd {
  margin: 0;
  color: var(--sig-ink);
  font-family: var(--sig-font-display);
  font-size: 2.125rem;
  line-height: 1;
}

/* ---------- 9. Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
  gap: 32px;
}

.contact-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 48px;
  border-radius: var(--sig-r-panel);
  background: var(--sig-secondary);
  color: var(--sig-on-dark-muted);
}

.contact-card::after {
  position: absolute;
  right: -72px;
  bottom: -96px;
  z-index: -1;
  width: 220px;
  height: 220px;
  border: 1px solid var(--sig-on-dark-line);
  border-radius: 50%;
  box-shadow: 0 0 0 32px rgba(255, 255, 255, 0.025), 0 0 0 64px rgba(255, 255, 255, 0.018);
  content: "";
}

.contact-card__title {
  margin-bottom: 32px;
  color: var(--sig-on-dark);
  font-family: var(--sig-font-display);
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem);
  line-height: 1.1;
}

.contact-card :is(h2, h3, strong) {
  color: var(--sig-on-dark);
}

.contact-card a {
  color: var(--sig-on-dark);
  text-decoration-color: var(--sig-accent-light);
  overflow-wrap: anywhere;
}

.contact-card a:hover {
  color: var(--sig-accent-hover);
}

.contact-card a[href^="tel:"] {
  font-family: var(--sig-font-display);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  text-decoration: none;
}

.contact-card :is(dl, ul) {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-card dl > div + div,
.contact-card :is(dt, li) + :is(dt, li) {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--sig-on-dark-line);
}

.contact-card dt {
  color: var(--sig-accent-light);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-card dd {
  margin: 6px 0 0;
}

.contact-card dd span {
  display: block;
}

.form-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 18px;
  padding: 56px 64px;
  border: 1px solid var(--sig-line-soft);
  border-radius: var(--sig-r-panel);
  background: var(--sig-surface);
  box-shadow: 0 18px 44px rgba(10, 18, 24, 0.07);
}

.form-card__intro {
  grid-column: 1 / -1;
  margin-bottom: 8px;
}

.form-card__intro h2 {
  max-width: 14ch;
  margin-bottom: 12px;
  font-size: clamp(2rem, 1.6rem + 1.4vw, 3rem);
}

.form-card__intro > p:last-child {
  max-width: 52ch;
  color: var(--sig-muted);
}

.form-card__eyebrow {
  margin-bottom: 12px;
  color: var(--sig-primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.form-card label {
  display: block;
  margin-bottom: 8px;
  color: var(--sig-ink);
  font-size: 0.875rem;
  font-weight: 600;
}

.form-card > label:nth-of-type(n + 3),
.form-card > .privacy-check,
.form-card > [role="status"] {
  grid-column: 1 / -1;
}

.form-card :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select) {
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid var(--sig-field);
  border-radius: var(--sig-r-sm);
  background: var(--sig-surface);
}

.form-card textarea {
  min-height: 160px;
  padding: 16px;
  border: 1px solid var(--sig-field);
  border-radius: var(--sig-r-sm);
  background: var(--sig-surface);
  resize: vertical;
}

.form-card :is(input, select, textarea):focus-visible {
  outline: 2px solid var(--sig-focus);
  outline-offset: 0;
  box-shadow: 0 0 0 5px var(--sig-surface-alt);
}

.form-card [aria-invalid="true"] {
  border-color: var(--sig-error);
  border-width: 2px;
}

.form-card [role="alert"],
.form-card [id$="-error"] {
  color: var(--sig-error);
  font-size: 0.875rem;
  font-weight: 600;
}

.form-card button[type="submit"] {
  grid-column: 1 / -1;
  justify-self: start;
  align-self: flex-start;
  min-height: 56px;
  padding: 0 32px;
  font-size: 1.0625rem;
}

.privacy-check {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border-radius: var(--sig-r-img);
  background: var(--sig-surface-alt);
  color: var(--sig-text);
  font-size: 1rem;
  line-height: 1.55;
}

.privacy-check label {
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-weight: 400;
}

.privacy-check input[type="checkbox"] {
  flex: none;
  width: 24px;
  height: 24px;
  margin: 0;
  accent-color: var(--sig-primary);
}

.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- 10. FAQ ---------- */

.faq-list {
  max-width: 880px;
  border-bottom: 1px solid var(--sig-line);
}

.faq-list details {
  border-top: 1px solid var(--sig-line);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 88px;
  padding: 24px 0;
  color: var(--sig-ink);
  font-family: var(--sig-font-display);
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  line-height: 1.25;
  list-style: none;
  cursor: pointer;
  transition: color var(--sig-ease);
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::marker {
  content: "";
}

.faq-list summary > * {
  margin: 0;
  font: inherit;
  color: inherit;
}

.faq-list summary::after {
  content: "";
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--sig-field);
  border-radius: 50%;
  background-image: linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 14px 1.5px, 1.5px 14px;
  transition: background-size var(--sig-ease), border-color var(--sig-ease);
}

.faq-list details[open] > summary::after {
  background-size: 14px 1.5px, 1.5px 0;
  border-color: currentColor;
}

.faq-list summary:hover {
  color: var(--sig-primary);
}

.faq-list summary:focus-visible {
  outline-offset: 4px;
  border-radius: 4px;
}

.faq-list details > :not(summary) {
  max-width: 62ch;
  margin: 0;
  padding: 0 96px 36px 0;
  color: var(--sig-muted);
  font-size: 1.125rem;
  line-height: 1.7;
}

/* ---------- 11. Footer ---------- */

.site-footer {
  padding: 64px 0 32px;
  background: var(--sig-secondary);
  color: var(--sig-on-dark-muted);
  font-size: 0.9375rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--sig-on-dark-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--sig-on-dark);
  text-decoration: underline;
}

.legal-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 0 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.language-switcher {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 2px;
  border: 1px solid var(--sig-on-dark-line);
  border-radius: var(--sig-r-sm);
  list-style: none;
}

.language-switcher a {
  min-width: 44px;
  justify-content: center;
  padding: 0 10px;
  border-radius: 4px;
  font-weight: 500;
}

.language-switcher a:hover {
  background: var(--sig-on-dark-line);
  text-decoration: none;
}

.language-switcher a[aria-current]:not([aria-current="false"]) {
  background: var(--sig-surface);
  color: var(--sig-secondary);
  font-weight: 600;
}

.language-switcher select {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--sig-on-dark-line);
  border-radius: var(--sig-r-sm);
  background: transparent;
  color: var(--sig-on-dark);
  font: 500 0.9375rem var(--sig-font-body);
}

.language-switcher select option {
  color: var(--sig-ink);
}

.site-header .language-switcher {
  position: relative;
  z-index: 1;
  min-height: 22px;
  margin-bottom: 2px;
  padding: 1px;
  border-color: var(--sig-line);
  background: var(--sig-paper);
}

.site-header .language-switcher a {
  min-width: 34px;
  min-height: 20px;
  padding: 0 7px;
  color: var(--sig-muted);
  font-size: 0.6875rem;
  line-height: 2;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.site-header .language-switcher a:hover {
  background: var(--sig-surface-alt);
  color: var(--sig-ink);
}

.site-header .language-switcher a[aria-current]:not([aria-current="false"]) {
  background: var(--sig-primary);
  color: var(--sig-on-primary);
}

.platform-signature {
  flex-basis: 100%;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--sig-on-dark-line);
  color: var(--sig-on-dark-soft);
  font-size: 0.8125rem;
}

.platform-signature a {
  min-height: 44px;
  color: var(--sig-on-dark-muted);
}

/* ---------- 12. Booking environment (checkout markup unchanged) ---------- */

.page--booking {
  padding-block: 80px var(--sig-section);
}

.page--booking:not(:has(.shell)) {
  padding-inline: max(var(--sig-gutter), calc((100% - var(--sig-shell)) / 2));
}

/* Cosmetic overrides only: typography, colour, radius, states. No layout, no display, no order. */
.platform-booking {
  font-family: var(--sig-font-body);
  color: var(--sig-text);
}

.platform-booking :is(h1, h2, h3) {
  font-family: var(--sig-font-display);
  font-weight: 400;
  color: var(--sig-ink);
}

.platform-booking :is(input, select, textarea) {
  font-family: inherit;
  border-radius: var(--sig-r-sm);
}

.platform-booking :is(input, select, textarea, button, a, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--sig-focus);
  outline-offset: 2px;
}

.platform-booking [aria-invalid="true"] {
  border-color: var(--sig-error);
}

.platform-booking :disabled,
.platform-booking [aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
}

.platform-booking :is(input[type="checkbox"], input[type="radio"]) {
  accent-color: var(--sig-primary);
}

/* ---------- 13. Motion ---------- */

@media (min-width: 901px) {
  body.theme-fht24-signature {
    --sig-header-expanded-height: 92px;
    --sig-header-condensed-height: 66px;
    padding-top: var(--sig-header-expanded-height);
    transition: padding-top 260ms ease;
  }

  body.theme-fht24-signature.site-header-condensed {
    padding-top: var(--sig-header-condensed-height);
  }

  .theme-fht24-signature .site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 50;
    width: 100%;
    background: var(--sig-surface);
    transition:
      background-color 260ms ease,
      box-shadow 260ms ease;
  }

  .theme-fht24-signature .site-header.is-scrolled {
    background: color-mix(in srgb, var(--sig-surface) 92%, transparent);
    box-shadow:
      0 1px 0 rgba(20, 32, 43, 0.08),
      0 12px 30px rgba(10, 18, 24, 0.13);
    -webkit-backdrop-filter: saturate(120%) blur(12px);
    backdrop-filter: saturate(120%) blur(12px);
  }

  .theme-fht24-signature .header-language-row {
    height: 26px;
    max-height: 26px;
    overflow: visible;
    opacity: 1;
    transform: translateY(0);
    transition:
      min-height 260ms ease,
      height 260ms ease,
      max-height 260ms ease,
      opacity 180ms ease,
      transform 260ms ease;
  }

  .theme-fht24-signature .header-language-row::after {
    transition: opacity 160ms ease;
  }

  .theme-fht24-signature .site-header.is-scrolled .header-language-row {
    min-height: 0;
    height: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-100%);
  }

  .theme-fht24-signature .site-header.is-scrolled .header-language-row::after {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

@media (forced-colors: active) {
  :focus-visible {
    outline-color: CanvasText;
  }

  .primary-navigation a[aria-current="page"] {
    text-decoration-color: CanvasText;
  }
}
