/* evolisflow — styling derived from ../harvey.ai.md (warm ink on paper, serif statements, no cards).
   Fonts are self-hosted OFL substitutes for Harvey's proprietary faces. */
@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans-latin.woff2") format("woff2");
  font-weight: 400 500;
  font-display: swap;
}

:root {
  /* Warm neutrals only (R > G > B), no brand accent — the CTA is ink */
  --paper: #fafaf9;
  --paper-alt: #f2f1f0;
  --ink: #0f0e0d;
  --text: #33312c;
  --muted: #706d66;
  --subtle: #8f8b85;
  --line: #cccac6;
  --line-dark: #33312c;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;

  --max-width: 108rem; /* 1728px */
  /* ponytail: fixed header height (wraps to two rows on phones); measure again if header content changes */
  --header-space: 7rem;
  --gutter: 1.25rem;
  --section-space: 5rem;
  --ease: cubic-bezier(0.3, 0.3, 0.3, 1);
}

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.45;
  color: var(--text);
  background: var(--paper);
}

/* Serif speaks (statements), sans works (structure + UI) */
h1, h2 {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.05;
  color: var(--ink);
}
h1 { font-size: clamp(2.5rem, 7vw, 4.5rem); letter-spacing: -0.0125em; max-width: 14em; }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -0.01em; max-width: 18em; }
h3 { margin: 0 0 0.5rem; font-size: 1.25rem; font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); }
p { margin: 0 0 1rem; max-width: 42rem; }
/* German has long compounds ("Renovierungsanfragen"): hyphenate by the page language instead of overflowing */
h1, h2, h3 { hyphens: auto; overflow-wrap: break-word; }

a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

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

.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: var(--gutter); top: 0.5rem; padding: 0.5rem 1rem; background: var(--paper); color: var(--ink); }

/* Header */
/* Fixed header: transparent over the hero photo (.hero reserves --header-space at its top).
   Script in index.html adds .is-solid once scrolled past it and .is-hidden while scrolling down */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  color: var(--paper);
  border-bottom: 1px solid rgba(250, 250, 249, 0.2);
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.site-header .button { border-color: var(--paper); background: var(--paper); color: var(--ink); }
.site-header .button:hover { background: var(--line); }
.site-header.is-solid { background: var(--paper); color: var(--ink); border-bottom-color: var(--line); }
.site-header.is-solid .button { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.site-header.is-solid .button:hover { background: var(--text); }
.site-header.is-hidden { transform: translateY(-100%); }

/* Language switch EN | DE (i18n.js). Follows currentColor, so it works on the transparent and the solid header */
/* Phones: one header row with language left, logo centered, button right. .header-actions dissolves
   so its two children line up with the logo; from 48rem it is a normal group on the right again */
.header-actions { display: contents; }
.lang-switch { order: -1; }
.cta-long { display: none; }
.lang-switch { display: flex; align-items: center; font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.08em; }
.lang-switch button { padding: 0.375rem; border: 0; background: none; color: inherit; font: inherit; opacity: 0.55; cursor: pointer; transition: opacity 0.3s var(--ease); }
.lang-switch button + button { border-left: 1px solid; border-image: linear-gradient(transparent 25%, currentColor 25% 75%, transparent 75%) 1; } /* short divider */
.lang-switch button:hover, .lang-switch button[aria-pressed="true"] { opacity: 1; }
.lang-switch button[aria-pressed="true"] { text-decoration: underline; text-underline-offset: 4px; }
.lang-switch button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.lang-pending body { opacity: 0; } /* only while a stored German choice is being applied, see <head> */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.35s; animation-timing-function: cubic-bezier(0.3, 0.3, 0.3, 1); }
/* Links between our own pages (Imprint, Privacy, Book…): the old page fades out, the new one rises in.
   Browsers without cross-document view transitions just navigate */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; types: page; }
}
html:active-view-transition-type(page)::view-transition-old(root) { animation: page-out 0.2s cubic-bezier(0.3, 0.3, 0.3, 1) both; }
html:active-view-transition-type(page)::view-transition-new(root) { animation: page-in 0.45s cubic-bezier(0.3, 0.3, 0.3, 1) 0.1s both; }
@keyframes page-out { to { opacity: 0; } }
@keyframes page-in { from { opacity: 0; transform: translateY(1rem); } }
.site-header:focus-within { transform: none; } /* keyboard users tabbing into the header always see it */
.header-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap; /* only below ~360px; every current phone fits one row */
  justify-content: space-between;
  gap: 0.75rem 0.5rem;
  padding-block: 1rem;
}
header .logo { font-size: 1.25rem; } /* phones: smaller so language, logo and button share one row */
header .button { white-space: nowrap; }
.logo { display: inline-flex; align-items: center; gap: 0.5rem; margin: 0; font-family: var(--serif); font-size: 1.75rem; line-height: 1; color: inherit; text-decoration: none; }
/* Logo mark as a mask filled with currentColor, so it turns paper over the hero and ink on the solid header */
.logo-mark {
  flex: none;
  width: 1.29em;
  height: 0.8em; /* mark is 1.6:1, sized with the wordmark */
  background: currentColor;
  -webkit-mask: url("images/logo-mark.png") center / contain no-repeat;
  mask: url("images/logo-mark.png") center / contain no-repeat;
}

/* Buttons: one component, two polarities */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--ink);
  color: var(--paper);
  font: inherit; /* <button> elements don't inherit fonts by default */
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.button:hover { background: var(--text); }
.button:disabled { opacity: 0.6; cursor: progress; }
.button--small { min-height: 2.25rem; padding: 0.25rem 0.875rem; font-size: 0.875rem; }
.button--ghost { border-color: var(--paper); background: transparent; color: var(--paper); }
.button--ghost:hover { background: var(--paper); color: var(--ink); }
.button--outline { background: transparent; color: var(--ink); }
.button--outline:hover { background: var(--ink); color: var(--paper); }

/* Shared text styles */
.eyebrow,
.label { margin-bottom: 1rem; color: var(--muted); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.08em; }
.lead { font-size: 1.25rem; line-height: 1.3; }
.small { color: var(--muted); font-size: 0.875rem; }
.statement {
  margin-block: 3rem 0;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.15;
  color: var(--ink);
  max-width: 28em;
}

/* Sections: separated by surface shifts, never by boxes */
.hero { padding-block: calc(var(--header-space) + 4rem) 7rem; } /* bottom leaves room for the video pulled up into it */
/* Wave photo behind the hero copy. Uniform 60% ink scrim keeps paper text >= 4.5:1 even over the white streaks */
.hero.section--dark {
  background: linear-gradient(rgba(15, 14, 13, 0.6), rgba(15, 14, 13, 0.6)), var(--ink) url("images/hero-wave.jpg") center / cover;
  color: var(--paper);
}
.hero .small { margin: 1rem 0 0; color: var(--paper); }

/* Product loop video: narrower than the content column and pulled up over the hero's bottom edge */
.product-loop { position: relative; margin-top: -3rem; }
.product-loop video {
  display: block;
  width: 100%;
  max-width: 70rem;
  height: auto;
  margin-inline: auto;
  border: 1px solid var(--line); /* defines the edge where the video's paper meets the page's paper */
  border-radius: 8px;
  background: var(--paper-alt);
}
.section { padding-block: var(--section-space); }
.section--alt { background: var(--paper-alt); }
.section--dark { background: var(--ink); color: var(--line); }
.section--dark :is(h1, h2, h3, .statement) { color: var(--paper); }
.section--dark .button { border-color: var(--paper); background: var(--paper); color: var(--ink); }
.section--dark .button:hover { background: var(--line); }
.section--dark + .section--dark { border-top: 1px solid var(--line-dark); }

/* How it works: autoplay accordion (Harvey pattern, no media).
   2px hairline on top of each step; the open step's .how-progress fills it left to right.
   When that animation ends, the script opens the next step. Paused off-screen, on hover
   and on keyboard focus; reduced motion gets a static full line and no autoplay */
.how-count { display: none; }
.how .label { display: block; margin: 0 0 0.5rem; }
.how details { position: relative; border-top: 2px solid var(--line); }
.how summary { display: block; padding-block: 1.5rem; cursor: pointer; list-style: none; }
.how summary::-webkit-details-marker { display: none; }
.how summary:focus { outline: none; } /* no browser box after a mouse click */
.how summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; } /* keyboard focus stays visible */
.how h3 { margin: 0; font-size: 1.5rem; color: var(--muted); transition: color 0.3s var(--ease); }
.how details[open] h3, .how summary:hover h3 { color: var(--ink); }
.how details[open] summary { padding-bottom: 0.75rem; }
.how details p { margin: 0; padding-bottom: 1.75rem; font-size: 1.25rem; line-height: 1.3; }
.how-progress {
  position: absolute;
  top: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
}
.how details[open] .how-progress { transform: scaleX(1); }
@media (prefers-reduced-motion: no-preference) {
  .how details[open] .how-progress { animation: how-progress 7s linear; animation-play-state: paused; }
  .how.is-playing:not(:hover):not(:has(:focus-visible)) details[open] .how-progress { animation-play-state: running; }
  /* Switching steps: the closing text folds away while the new one slides open and its text rises in.
     Height animates where interpolate-size is supported; other browsers just swap */
  .how { interpolate-size: allow-keywords; }
  .how details::details-content { height: 0; overflow: clip; transition: height 0.5s var(--ease), content-visibility 0.5s allow-discrete; }
  .how details[open]::details-content { height: auto; }
  .how summary { transition: padding 0.5s var(--ease); }
  .how details[open] p { animation: how-fade 0.6s var(--ease) 0.1s backwards; }
}
@keyframes how-progress { from { transform: scaleX(0); } }
@keyframes how-fade { from { opacity: 0; transform: translateY(0.75rem); } }

/* How it works line: each step draws its dot (::before) and the line to the next dot (::after).
   Gray line underneath, ink fill on top (background-size grows). Script adds .is-on (dot fills)
   and .is-done (line draws) step by step. Vertical on phones, horizontal from 64rem */
.flow-section { padding-top: var(--section-space); }
.flow { display: grid; gap: 2rem; margin: 3rem 0 0; padding: 0; list-style: none; }
.flow li { position: relative; padding-left: 2rem; }
.flow li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 0.625rem;
  height: 0.625rem;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  transition: background-color 0.3s var(--ease);
}
.flow .flow-end::before { background: var(--ink); } /* static version: goal filled */
.flow.is-animated .flow-end::before { background: var(--paper); }
.flow.is-animated li.is-on::before { background: var(--ink); }
.flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(0.3125rem - 0.5px);
  top: calc(0.5rem + 0.625rem + 0.375rem);
  bottom: calc(-2rem - 0.5rem + 0.375rem); /* list gap + next dot offset, stops 0.375rem above it */
  width: 1px;
  background: linear-gradient(var(--ink), var(--ink)) top left / 100% 0% no-repeat, var(--line);
  transition: background-size 0.7s var(--ease);
}
.flow li.is-done::after { background-size: 100% 100%; }
.flow h3 { margin-bottom: 0.375rem; }
.flow p { margin: 0; max-width: 20rem; }

/* Channels & tools strip: monochrome glyph + name, muted, centered */
.logos { padding-top: var(--section-space); text-align: center; }
.logos h2 { margin-inline: auto; max-width: none; font-size: clamp(1.5rem, 3vw, 2rem); }
.logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem 2.5rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 1.125rem;
  font-weight: 500;
}
.logo-row li { display: inline-flex; align-items: center; gap: 0.625rem; white-space: nowrap; }
.logo-row img { width: 1.5rem; height: 1.5rem; opacity: 0.55; }

/* Infinite marquee: two identical rows slide left by their own width, then restart unseen.
   min-width 100% keeps a row at least as wide as the strip, so no gap shows on wide screens */
.marquee.is-animated {
  display: flex;
  margin-top: 2.5rem;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); /* soft edges */
}
.marquee.is-animated .logo-row {
  flex: none;
  flex-wrap: nowrap;
  justify-content: space-around;
  min-width: 100%;
  margin: 0;
  padding-right: 2.5rem; /* = column gap, keeps spacing even at the seam */
  animation: marquee 40s linear infinite;
}
.marquee:hover .logo-row { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* Research stats in the problem section: reuses .items/.item hairline columns, big serif numbers */
.stat-number { margin: 0 0 0.75rem; font-family: var(--serif); font-size: clamp(2.75rem, 5vw, 4rem); line-height: 1; letter-spacing: -0.0125em; color: var(--ink); }
.stats .item p:last-child { max-width: 18rem; }
.sources { margin: 2.5rem 0 0; max-width: 52rem; color: var(--muted); font-size: 0.75rem; }

/* Pricing: three hairline columns, serif price, the recommended plan marked by a 2px ink line, not a box */
.plan { display: flex; flex-direction: column; }
.item.plan--key { border-top: 2px solid var(--ink); }
.plan h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 0.75rem; font-size: 1.5rem; }
.plan-tag { color: var(--muted); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.plan-for { color: var(--muted); }
.plan-price { margin: 1.5rem 0; font-family: var(--serif); font-size: clamp(2.75rem, 5vw, 3.5rem); line-height: 1; color: var(--ink); }
.plan-setup { margin: -1rem 0 1.5rem; color: var(--muted); } /* sits tight under the price, before the description */
.plan-price .plan-unit { margin-left: 0.25rem; font-family: var(--sans); font-size: 1rem; color: var(--muted); }
.plan-list { margin: 0 0 2rem; padding: 0; list-style: none; }
.plan-list li { padding-block: 0.625rem; border-top: 1px solid var(--line); }
.plan .button { align-self: flex-start; margin-top: auto; }
.plan-example { margin: 1rem 0 0; color: var(--muted); }
/* First-payment assurance under the plans: hairline + serif statement, same weight as the risk section's key block */
.assurance { margin-top: 5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.assurance h3 { font-family: var(--serif); font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 400; line-height: 1.05; }
.assurance .small { margin-top: 1rem; color: var(--muted); }

/* Feature tiles: photo + top-weighted ink scrim (keeps paper text >= 4.5:1 over bright streaks) */
.routes { display: grid; gap: 1rem; }
.route {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 26rem;
  padding: 2rem 1.5rem;
  border-radius: 8px;
  color: var(--paper);
  background: var(--ink) center / cover no-repeat;
  --route-scrim: linear-gradient(rgba(15, 14, 13, 0.65) 0 45%, rgba(15, 14, 13, 0) 100%);
  transition: flex-grow 0.5s var(--ease), opacity 0.5s var(--ease), filter 0.5s var(--ease);
}
.route--1 { background-image: var(--route-scrim), url("images/feature-1.jpg"); }
.route--2 { background-image: var(--route-scrim), url("images/feature-2.jpg"); }
.route h2 { font-size: clamp(2rem, 3vw, 2.5rem); color: var(--paper); }
/* Fixed text measure, narrower than a shrunk tile, so lines don't re-wrap while tiles resize */
.route :is(h2, p) { max-width: 22rem; }
.route .button { margin: 0.5rem 0 2rem; }
/* Small project photo: bottom right on narrow tiles, beside the text from 90rem (see below) */
.route { position: relative; }
.route-photo { width: 10rem; height: auto; aspect-ratio: 1; margin: auto auto 0; border-radius: 8px; object-fit: cover; transition: opacity 0.5s var(--ease); }

/* Split layout: statement left, supporting copy right */
.split { display: grid; gap: 1.5rem; }
.split > * { min-width: 0; } /* a long word may not widen the grid column past the screen */
.split > :is(h1, h2) { margin: 0; }
.split-aside .button { margin-top: 1rem; }


/* Steps + reassurance blocks: hairline-topped columns, no cards */
.items { display: grid; gap: 2.5rem 1rem; margin: 4rem 0 0; padding: 0; list-style: none; }
.benefits-label { margin: 4rem 0 0; color: var(--subtle); }
.benefits-label + .items { margin-top: 1rem; } /* the label sits directly above its row */
.item { padding-top: 1.25rem; border-top: 1px solid var(--line); }
.item p:last-child { margin-bottom: 0; }
.section--dark .item { border-color: var(--line-dark); }
.section--dark .item--key { border-top-color: var(--paper); }
.item--key { margin-top: 2rem; padding-top: 2rem; } /* breathing room: the key promise is its own block, not a 4th benefit */
.item--key h3 { font-family: var(--serif); font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 400; line-height: 1.05; margin-bottom: 1rem; }
.items + .statement { margin-top: 5rem; }
.item--key p { font-size: 1.25rem; line-height: 1.3; color: var(--paper); }

/* Final CTA: centered copy + one button to the booking page */
.cta { text-align: center; }
.cta :is(h2, p) { margin-inline: auto; }
.cta .eyebrow, .cta .small { color: var(--subtle); }
.cta .button { margin-block: 1.5rem 1rem; }

/* Booking page (book/): one question per screen on ink, progress line on top.
   Paper-on-ink controls, 4px radius, hairlines, no boxes. Steps are animated by book/booking.js */
[hidden] { display: none !important; }
.book-page { display: flex; flex-direction: column; min-height: 100svh; background: var(--ink); color: var(--line); }
.book-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem var(--gutter); color: var(--paper); }
.book-progress { height: 2px; background: var(--line-dark); }
.book-progress span { display: block; height: 100%; background: var(--paper); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease); }
.book { flex: 1; width: 100%; max-width: 46rem; margin: 0 auto; padding: 4rem var(--gutter) 6rem; }
.book h1 { margin-bottom: 1rem; font-size: clamp(2rem, 5vw, 3.25rem); color: var(--paper); }
.book h1:focus { outline: none; } /* focus is moved here by script for screen readers, no visible ring needed */
.book-count { margin-bottom: 1.25rem; color: var(--subtle); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.book-hint { color: var(--line); font-size: 1.125rem; }
.book-options { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 2rem; }
.book-days, .book-times { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-top: 1.5rem; }
.book-times:not(:empty) { padding-top: 1.5rem; border-top: 1px solid var(--line-dark); }
.book-options[data-field] .option { min-height: 4.5rem; font-size: 1.125rem; }
.option {
  min-height: 3rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(250, 250, 249, 0.3);
  border-radius: 4px;
  background: transparent;
  color: var(--paper);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.option:hover { border-color: var(--paper); }
.option[aria-pressed="true"] { border-color: var(--paper); background: var(--paper); color: var(--ink); }
.book-page :is(.option, .text-button, input, a):focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; }
.book-page .button { border-color: var(--paper); background: var(--paper); color: var(--ink); }
.book-page .button:hover { background: var(--line); }

.fields { display: grid; gap: 1rem; margin-top: 2rem; }
.fields label { display: grid; gap: 0.375rem; color: var(--line); font-size: 0.875rem; }
.fields input {
  min-height: 3.25rem;
  padding: 0.5rem 0.875rem;
  border: 1px solid rgba(250, 250, 249, 0.3);
  border-radius: 4px;
  background: transparent;
  color: var(--paper);
  font: inherit;
  font-size: 1.125rem;
}
.fields input:focus { border-color: var(--paper); }
.fields input::placeholder { color: var(--muted); }

.book-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2rem; }
.text-button { padding: 0; border: 0; background: none; color: var(--line); font: inherit; font-size: 0.9375rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.text-button:hover { color: var(--paper); }
.book-summary { margin: 2rem 0 0; }
.book-summary div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding-block: 0.875rem; border-top: 1px solid var(--line-dark); }
.book-summary dt { color: var(--subtle); }
.book-summary dd { margin: 0; color: var(--paper); }
.book-error { margin-top: 1.5rem; color: var(--paper); }
.book-error a { color: inherit; }

/* Footer: continues the dark zone */
.site-footer { padding-block: 2.5rem; background: var(--ink); color: var(--paper); border-top: 1px solid var(--line-dark); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; }
.footer-inner p { margin: 0; }
.site-footer .small { color: var(--subtle); }
.footer-links { display: flex; gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: inherit; font-size: 0.875rem; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.trademark-note { margin: 1.5rem 0 0; max-width: none; font-size: 0.75rem; }

@media (min-width: 48rem) {
  header .logo { font-size: 1.75rem; }
  .header-actions { display: flex; align-items: center; gap: 1rem; }
  .lang-switch { order: 0; }
  .cta-long { display: inline; }
  .cta-short { display: none; }
  :root { --gutter: 2rem; --section-space: 8rem; --header-space: 4.25rem; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  h1, h2, h3 { hyphens: manual; } /* wide screens have room; auto hyphens only on phones */
  .book-days, .book-times { grid-template-columns: repeat(5, 1fr); }
  .fields { grid-template-columns: 1fr 1fr; }
  .fields-wide { grid-column: 1 / -1; }
}

@media (min-width: 64rem) {
  .hero { padding-block: calc(var(--header-space) + 10rem) 12rem; }
  .product-loop { margin-top: -6rem; }
  .split { grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
  .split > .split-aside { padding-top: 0.5rem; }
  .hero .split { align-items: end; } /* sentence + button sit level with the headline's last line, like Harvey */
  .items--3 { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .plans { grid-template-columns: repeat(3, 1fr); }
  /* Subgrid lines up name, subtitle, price, description, list and button across the three plans,
     however long each text is (German runs longer) */
  .plan { display: grid; grid-row: span 7; grid-template-rows: subgrid; row-gap: 0; }
  .plan .button { justify-self: start; }
  .flow { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
  .flow li { padding: 2rem 1rem 0 0; }
  .flow li::before { top: 0; }
  .flow li:not(:last-child)::after {
    left: calc(0.625rem + 0.5rem);
    right: calc(-1.5rem + 0.5rem); /* stops 0.5rem before the next column's dot */
    top: calc(0.3125rem - 0.5px);
    bottom: auto;
    width: auto;
    height: 1px;
    background-size: 0% 100%; /* horizontal: ink grows left to right */
  }
  .flow li.is-done::after { background-size: 100% 100%; }
  .item--key { grid-column: 1 / -1; }
  /* Big serif step number fills the left column where Harvey shows product media */
  .how-count { display: block; margin: 2rem 0 0; font-family: var(--serif); font-size: 8rem; line-height: 1; color: var(--line); }
  .routes { display: flex; }
  .route { flex: 1 1 0; min-height: 40rem; padding: 3rem; }
  .route-photo { margin-right: 0; } /* phones center it, side-by-side tiles pin it bottom right */
}

/* Tile hover (pointer devices only): active tile widens, the other fades to gray */
@media (hover: hover) and (min-width: 64rem) {
  .routes:has(.route:is(:hover, :focus-within)) .route { flex-grow: 0.8; opacity: 0.55; filter: grayscale(1); }
  .routes:has(.route:is(:hover, :focus-within)) .route:is(:hover, :focus-within) { flex-grow: 1.2; opacity: 1; filter: none; }
}
/* Wide screens: the photo sits right of the text. A shrunk tile is too narrow for both, so its photo fades out */
@media (min-width: 90rem) {
  .route-photo { position: absolute; top: 3rem; right: 3rem; width: clamp(10rem, 100% - 30rem, 18rem); margin: 0; } /* grows into the room the text leaves */
  .routes:has(.route:is(:hover, :focus-within)) .route:not(:hover, :focus-within) .route-photo { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .button, .option, .site-header, .route, .flow li::before, .flow li::after { transition: none; }
}

/* Legal pages (legal-notice/, privacy/, terms/): light paper, one <article class="legal"> per language, the one matching <html lang> shows */
.legal-page { background: var(--paper); color: var(--text); }
.legal-page .book-header { color: var(--ink); border-bottom: 1px solid var(--line); }
.legal-page .text-button { color: var(--muted); }
.legal-page .text-button:hover { color: var(--ink); }
.legal-page :is(a, button):focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.legal { max-width: 42rem; margin: 0 auto; padding: 4rem var(--gutter) 2rem; }
.legal h1 { margin-bottom: 0.5rem; font-size: clamp(2rem, 5vw, 3rem); }
.legal h2 { max-width: none; margin: 2.5rem 0 0.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-family: var(--sans); font-size: 1.25rem; font-weight: 500; line-height: 1.3; color: var(--ink); }
.legal p { margin: 0 0 1rem; }
.legal a { color: var(--ink); }
.todo { background: #ffe14d; color: var(--ink); padding: 0 0.25em; } /* open fact or decision, must be gone before launch */
html[lang="de"] .legal[lang="en"], html:not([lang="de"]) .legal[lang="de"] { display: none; }
.legal-links { max-width: 42rem; margin: 0 auto; padding: 1rem var(--gutter) 4rem; }
.legal-links .footer-links a { color: var(--muted); }
.book-note { margin: 1rem 0 0; color: var(--subtle); font-size: 0.875rem; }
.book-note a { color: inherit; }
