/* DRIVE FIT+ – HTML-Entwurf
   Farben und Formen aus den Plakaten (Senioren, Handicap, Trauma).
   Schrift: Nunito Sans als freie Alternative zu Avenir Next (Plakatschrift). */

@font-face {
  font-family: "Nunito Sans";
  src: url("../fonts/nunito-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Marke */
  --espresso: #1f0909;
  --espresso-tief: #160606;
  --espresso-hell: #2c100e;
  --bordeaux: #641518;
  --signal: #b63632;
  --signal-dunkel: #962a29;
  --weiss: #ffffff;
  --nebel: #f3f0f0;
  --linie: #e3dbdb;
  --tinte: #241414;
  --grau: #6b5c5c;

  /* Kennfarben der vier Rubriken */
  --blau: #5f93d4;
  --petrol: #34a0a2;
  --sand: #dcb86c;
  --anthrazit: #2e3136;
  --stahl: #a9b2bc;

  /* Flächen der Angebotskarten in den hellen Plakattönen, damit schwarze Schrift genug
     Kontrast hat (Unternehmen bleibt Bordeaux mit weisser Schrift) */
  --blau-flaeche: #5f93d4;
  --petrol-flaeche: #34a0a2;
  --sand-flaeche: #e3c879;

  --akzent: var(--signal);

  /* Flächen und Ringe – Variante B überschreibt diese Werte */
  --flaeche: var(--espresso);
  --flaeche-hell: var(--espresso-hell);
  --flaeche-text: var(--weiss);
  --flaeche-text-2: rgba(255, 255, 255, 0.86);
  --punkte: rgba(255, 255, 255, 0.07);
  --karte: var(--espresso);
  --karte-text: var(--weiss);
  --karte-text-2: rgba(255, 255, 255, 0.82);
  --b2b: var(--anthrazit);
  --ring: var(--signal);
  --ring-2: var(--bordeaux);
  --kontakt-bg: var(--espresso);
  --kontakt-ring: var(--signal);
  --kontakt-ring-2: var(--bordeaux);
  --footer-bg: var(--espresso-tief);
  --platzhalter-bg: var(--espresso);
  --fokus-flaeche: var(--weiss);

  --font: "Nunito Sans", "Avenir Next", Avenir, system-ui, sans-serif;
  --max: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 84px;
  --radius: 26px;
  --pill: 999px;
}

/* Grundlagen */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.1875rem;
  font-weight: 430;
  line-height: 1.6;
  color: var(--tinte);
  background: var(--weiss);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--signal);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--signal-dunkel);
}

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

/* Fokusrahmen: auf Plakatflächen je nach Variante hell oder dunkel */
.hero,
.poster-hero,
.rubrik,
.seitenkopf {
  --fokus: var(--fokus-flaeche);
}

.kontakt,
.site-footer,
.rubrik--breit,
.poster-hero.r-unternehmen {
  --fokus: var(--weiss);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
}

h3 {
  font-size: 1.375rem;
  line-height: 1.25;
}

p,
ul,
ol {
  margin: 0;
}

p + p {
  margin-top: 1em;
}

p,
li,
dd,
figcaption {
  text-wrap: pretty;
}

.lead {
  font-size: clamp(1.25rem, 1.9vw, 1.4375rem);
  line-height: 1.5;
  font-weight: 500;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  background: var(--weiss);
  color: var(--tinte);
  padding: 12px 20px;
  border-radius: var(--pill);
  font-weight: 800;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.section {
  padding-block: clamp(72px, 9vw, 128px);
}

.section--nebel {
  background: var(--nebel);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-head p {
  margin-top: 16px;
  color: var(--grau);
}

.text-spalte {
  max-width: 68ch;
}

/* Buttons und Pills (Pills wie die Kontaktleiste der Plakate) */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 28px;
  border: 2px solid transparent;
  border-radius: var(--pill);
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.btn--signal {
  background: var(--signal);
  color: var(--weiss);
}

.btn--signal:hover {
  background: var(--signal-dunkel);
  color: var(--weiss);
}

.btn--weiss {
  background: var(--weiss);
  color: var(--signal);
}

.btn--weiss:hover {
  background: var(--nebel);
  color: var(--signal-dunkel);
}

.btn--rand {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--weiss);
}

.btn--rand:hover {
  border-color: var(--weiss);
  color: var(--weiss);
  background: rgba(255, 255, 255, 0.08);
}

.btn--rand-dunkel {
  border-color: var(--tinte);
  color: var(--tinte);
}

.btn--rand-dunkel:hover {
  background: var(--tinte);
  color: var(--weiss);
}

.btn-reihe {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 0 28px;
  border-radius: var(--pill);
  background: var(--weiss);
  color: var(--signal);
  font-size: 1.25rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.pill:hover {
  color: var(--signal-dunkel);
  background: var(--nebel);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--weiss);
  border-bottom: 1px solid var(--linie);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
}

.brand {
  flex: none;
  display: block;
  padding-block: 8px;
}

.brand img {
  height: 66px;
  width: auto;
}

/* Aufteilung wie in D: Navigation links beim Logo (64 px Abstand), Sprachwahl und Telefon
   rechts. Die Sprachwahl steht im Markup nach dem Telefon und wird per order davor gesetzt
   (nur Text, keine Links, die Tab-Reihenfolge ist also nicht betroffen). */
.nav {
  margin-left: 44px;
}

.nav > ul {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  padding: 0;
}

.nav a,
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border: 0;
  border-radius: var(--pill);
  background: none;
  color: var(--tinte);
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

/* Nur die oberste Menüzeile, nicht die Kacheln im Angebote-Menü */
.nav > ul > li > a,
.nav-toggle {
  white-space: nowrap;
}

/* Kleinere Laptops: Sechs Menüpunkte brauchen etwas weniger Abstand, damit alles in einer Zeile bleibt */
@media (min-width: 1141px) and (max-width: 1300px) {
  .nav {
    margin-left: 16px;
  }

  .nav > ul > li > a,
  .nav-toggle {
    padding-inline: 9px;
    font-size: 1rem;
  }
}

.nav a:hover,
.nav-toggle:hover {
  background: var(--nebel);
  color: var(--tinte);
}

.nav a[aria-current="page"],
.nav-toggle.ist-aktiv {
  color: var(--signal);
}

.nav-toggle .icon {
  width: 18px;
  height: 18px;
  transition: rotate 0.15s;
}

.dropdown {
  position: relative;
}

.dropdown[data-open] .nav-toggle .icon {
  rotate: 180deg;
}

.dropdown-panel {
  display: none;
}

.dropdown-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Gruppentitel: «Sicher & Mobil – auch …» steht einmal über den drei privaten Angeboten,
   die Einträge nennen nur noch, was sie unterscheidet (wie die Karten der Startseite) */
.dropdown-label {
  margin: 0;
  color: var(--tinte);
  font-size: 1.1875rem;
  font-weight: 800;
}

/* Jedes Angebot als Farbfläche in seiner Bereichsfarbe, wie die Karten der Startseite;
   schwarze Schrift, bei Unternehmen weisse. Die aktuelle Seite bekommt einen Rahmen in Schriftfarbe
   (als outline, damit ihn das Foto nicht verdeckt). */
.dropdown-panel a {
  --flaeche-k: var(--kachel);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  align-content: start;
  row-gap: 4px;
  width: 100%;
  min-height: 96px;
  padding: 14px 92px 14px 18px;
  border-radius: 14px;
  background: var(--flaeche-k);
  color: var(--kachel-text, var(--weiss));
  line-height: 1.3;
}

.dropdown-panel a:hover,
.dropdown-panel a[aria-current="page"] {
  --flaeche-k: color-mix(in srgb, var(--kachel) 86%, var(--weiss));
  background: var(--flaeche-k);
  color: var(--kachel-text, var(--weiss));
}

.dropdown-panel a[aria-current="page"] {
  outline: 3px solid currentColor;
  outline-offset: -3px;
}

/* Gilt auch für die Kacheln «Weitere Angebote» unten auf den Angebotsseiten */
:is(.dropdown-panel, .weitere) a { --kachel: var(--bereich); }

:is(.dropdown-panel, .weitere) :is(.r-senioren, .r-handicap, .r-trauma) {
  --kachel-text: var(--tinte);
}

.dropdown-panel small {
  font-size: 0.9375rem;
  font-weight: 500;
  opacity: 0.92;
}

/* Bereichsfoto als Linse oben rechts, von der Fläche oben und rechts angeschnitten, mit
   Doppelring wie auf den Karten (Lücke in der Flächenfarbe). Eigene kleine Bilddateien
   (menue-*.jpg), damit das Menü keine grossen Fotos lädt. */
.dropdown-bild {
  position: absolute;
  top: -26px;
  right: -30px;
  z-index: -1;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 0 0 5px rgba(255, 255, 255, 0.4),
    0 0 0 8px var(--flaeche-k),
    0 0 0 10px rgba(255, 255, 255, 0.4);
}

/* Desktop: Der Kopf erweitert sich nach unten. Das Feld schliesst ohne Kante an den Kopf
   an, ist so breit wie der Inhaltsbereich und unten gerundet wie die Karten; die vier
   Angebote stehen nebeneinander. Es fährt von oben auf (clip-path, seitlich und unten mit
   Reserve für den Schatten), die Angebote folgen leicht versetzt.
   Das Feld ist leicht durchscheinend, die Seite darunter scheint weichgezeichnet durch.
   Oben am Kopf ist es deckend weiss und wird nach unten durchscheinend, so entsteht
   keine Naht zum Kopf. Die Seite dahinter wird leicht abgedunkelt (body::after unter
   dem Kopf). */
@media (min-width: 1141px) {
  .site-header:has(.dropdown[data-open]) {
    border-bottom-color: transparent;
  }

  .dropdown {
    position: static;
  }

  .dropdown[data-open] .nav-toggle {
    background: var(--nebel);
  }

  .dropdown-panel {
    position: absolute;
    top: 100%;
    left: 50%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(min-content, 1fr);
    gap: 4px 8px;
    width: calc(min(100% - 2 * var(--gutter), var(--max)) + 64px);
    margin: 0;
    padding: 16px 16px 24px;
    translate: -50% 0;
    background: linear-gradient(var(--weiss), rgba(255, 255, 255, 0.72) 56px);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    backdrop-filter: blur(20px) saturate(1.3);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 28px 48px -28px rgba(31, 9, 9, 0.5);
    visibility: hidden;
    clip-path: inset(0 -80px 100% -80px);
  }

  .dropdown[data-open] .dropdown-panel {
    visibility: visible;
    clip-path: inset(0 -80px -80px -80px);
  }

  /* Gruppen teilen sich Spalten und Zeilen des Felds (subgrid), so sind alle vier
     Farbflächen gleich hoch, auch wenn ein Text umbricht */
  .dropdown-gruppe {
    grid-column: span 3;
    grid-row: span 2;
    display: grid;
    grid-template-columns: subgrid;
    grid-template-rows: subgrid;
  }

  .dropdown-gruppe--firma {
    grid-column: span 1;
  }

  .dropdown-gruppe ul {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: subgrid;
  }

  /* Titel einzeilig; die Spalte für Unternehmen wird bei Bedarf so breit wie ihr Titel */
  .dropdown-label {
    grid-column: 1 / -1;
    padding: 10px 16px 6px;
    white-space: nowrap;
  }

  .dropdown-panel a {
    align-content: start;
    row-gap: 6px;
    height: 100%;
    padding: 18px 92px 20px 16px;
    border-radius: 18px;
    font-size: 1.125rem;
  }

  body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 49;
    visibility: hidden;
    opacity: 0;
    background: rgba(31, 9, 9, 0.2);
  }

  body:has(.dropdown[data-open])::after {
    visibility: visible;
    opacity: 1;
  }
}

@media (min-width: 1141px) and (prefers-reduced-motion: no-preference) {
  .dropdown-panel {
    transition: clip-path 0.2s ease-in, visibility 0s linear 0.2s;
  }

  .dropdown[data-open] .dropdown-panel {
    transition: clip-path 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  body::after {
    transition: opacity 0.2s ease-in, visibility 0s linear 0.2s;
  }

  body:has(.dropdown[data-open])::after {
    transition: opacity 0.3s ease-out;
  }

  .dropdown-label,
  .dropdown-panel li {
    opacity: 0;
    translate: 0 -6px;
    transition: opacity 0.15s ease-in, translate 0.15s ease-in;
  }

  .dropdown[data-open] .dropdown-label,
  .dropdown[data-open] .dropdown-panel li {
    opacity: 1;
    translate: 0 0;
    transition: opacity 0.3s ease-out 0.06s, translate 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) 0.06s;
  }

  .dropdown[data-open] .dropdown-panel li:nth-child(1) { transition-delay: 0.1s; }
  .dropdown[data-open] .dropdown-panel li:nth-child(2) { transition-delay: 0.15s; }
  .dropdown[data-open] .dropdown-panel li:nth-child(3) { transition-delay: 0.2s; }
  .dropdown[data-open] .dropdown-gruppe--firma li { transition-delay: 0.25s; }

  .nav-toggle .icon {
    transition: rotate 0.25s ease;
  }
}

@keyframes menu-auf {
  from {
    opacity: 0;
    translate: 0 -12px;
  }
}

.header-tel {
  order: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 2px solid var(--signal);
  border-radius: var(--pill);
  color: var(--signal);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.header-tel:hover {
  background: var(--signal);
  color: var(--weiss);
}

.sprachen {
  display: flex;
  gap: 2px;
  list-style: none;
  padding: 0;
  font-size: 0.9375rem;
  font-weight: 800;
}

.sprachen a,
.sprachen span {
  display: block;
  padding: 6px 7px;
  border-radius: 8px;
  color: var(--grau);
  text-decoration: none;
}

.sprachen [aria-current] {
  color: var(--tinte);
  box-shadow: inset 0 -2px 0 var(--signal);
  border-radius: 0;
}

.sprachen .folgt {
  opacity: 0.45;
  cursor: help;
}

.sprachen--kopf {
  order: 1;
  margin-left: auto;
  margin-right: 4px;
}

.nav-sprachen {
  display: none;
}

.menu-btn {
  order: 3;
  display: none;
}

@media (max-width: 1140px) {
  :root {
    --header-h: 72px;
  }

  .brand img {
    height: 56px;
  }

  /* Sprachwahl auch am Handy im Kopf, nicht nur ganz unten im Menü (Ingrid, V5 Nr. 67) */
  .sprachen--kopf {
    margin-left: auto;
    margin-right: 0;
  }

  .sprachen--kopf a,
  .sprachen--kopf span {
    padding: 10px 6px;
  }

  .menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 16px;
    border: 2px solid var(--tinte);
    border-radius: var(--pill);
    background: none;
    color: var(--tinte);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
  }

  .menu-btn .zu,
  .site-header[data-menu-open] .menu-btn .auf {
    display: none;
  }

  .site-header[data-menu-open] .menu-btn .zu {
    display: inline;
  }

  /* Offenes Menü: nur das X als runder Knopf wie das Telefon, ohne «Menü», damit im Kopf mehr Platz bleibt
     (17.11.2026). Vorleseprogramme lesen das Wort weiter als Namen des Knopfs. */
  .site-header[data-menu-open] .menu-btn {
    width: 48px;
    padding: 0;
    justify-content: center;
  }

  .site-header[data-menu-open] .menu-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .header-tel {
    padding: 0;
    width: 48px;
    height: 48px;
    justify-content: center;
  }

  .header-tel .tel-text {
    display: none;
  }

  .nav {
    display: none;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    margin-left: 0;
    overflow-y: auto;
    padding: 20px var(--gutter) 48px;
    background: var(--weiss);
  }

  .site-header[data-menu-open] .nav {
    display: block;
  }

  @media (prefers-reduced-motion: no-preference) {
    .site-header[data-menu-open] .nav {
      animation: menu-auf 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    }
  }

  .nav > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav > ul > li {
    border-bottom: 1px solid var(--linie);
  }

  .nav a {
    width: 100%;
    padding: 16px 4px;
    font-size: 1.375rem;
  }

  /* Im Handy-Menü keine graue Pille beim Antippen, die Zeilen haben Trennlinien. Nur die Schrift wird rot. */
  .nav > ul > li > a {
    border-radius: 0;
  }

  .nav > ul > li > a:hover {
    background: none;
    color: var(--signal);
  }

  .nav-toggle {
    display: none;
  }

  .dropdown-panel {
    display: block;
    position: static;
    width: auto;
    padding: 0 0 12px;
    border: 0;
    box-shadow: none;
  }

  .dropdown-panel a {
    padding: 14px 96px 14px 16px;
    font-size: 1.25rem;
  }

  .dropdown-gruppe ul {
    display: grid;
    gap: 8px;
    margin-top: 8px;
  }

  .dropdown-label {
    padding: 14px 4px 0;
  }

  .dropdown-gruppe--firma {
    margin-top: 8px;
  }

  .sprachen {
    padding-top: 20px;
    font-size: 1.125rem;
  }

  .sprachen--kopf {
    padding-top: 0;
    font-size: 1rem;
  }
}

/* Handy: engere Abstände im Kopf */
@media (max-width: 599px) {
  .site-header .wrap {
    gap: 10px;
  }
}

/* Schmale Handys: Neben dem Knopf «Menü» haben nur die beiden anderen Sprachen Platz. Bei offenem Menü ist der Knopf
   nur ein X, dann passt auch die aktuelle Sprache. Gemessen am 17.11.2026: Platz für sie ab 400 px bei geschlossenem
   Menü (Grenze mit Reserve bei 410 px), ab 360 px bei offenem. */
@media (max-width: 409px) {
  .site-header:not([data-menu-open]) .sprachen--kopf li:has([aria-current]) {
    display: none;
  }
}

/* Sehr schmale Handys: kein Platz im Kopf, die Sprachwahl steht dann zuoberst im Menü statt ganz unten */
@media (max-width: 359px) {
  .sprachen--kopf {
    display: none;
  }

  /* Die Sprachwahl im Menü gibt es nur hier, wo sie im Kopf fehlt, zuoberst. Darüber steht sie nur im Kopf
     (unten im Menü auf Wunsch des Users entfernt, 17.11.2026). */
  .nav-sprachen {
    display: block;
    order: -1;
    border-bottom: 0 !important;
  }

  .nav-sprachen .sprachen {
    padding-top: 0;
    padding-bottom: 8px;
  }

  /* Die Sprachlinks nicht wie Menüpunkte setzen, sonst sind EN und FR grösser als die aktuelle Sprache */
  .nav-sprachen .sprachen a {
    width: auto;
    padding: 6px 7px;
    font-size: inherit;
  }
}

/* Linse: runder Bildausschnitt mit rotem Ring, wie auf den Plakaten */

.lens {
  --r1: clamp(10px, 1.25vw, 18px);
  --r2: clamp(5px, 0.7vw, 9px);
  --r3: clamp(3px, 0.35vw, 5px);
  --ring-aussen: var(--akzent);
  position: absolute;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--flaeche-hell);
  box-shadow:
    0 0 0 var(--r1) var(--ring),
    0 0 0 calc(var(--r1) + var(--r2)) var(--lens-gap, var(--flaeche)),
    0 0 0 calc(var(--r1) + var(--r2) + var(--r3)) var(--ring-aussen);
}

.lens img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lens--leer {
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 14px, transparent 14px 28px),
    var(--leer-bg, #3a3e44);
}

.lens-platzhalter {
  position: absolute;
  left: 20%;
  bottom: 22%;
  max-width: 15em;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.lens-platzhalter .icon {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
  stroke-width: 1.5;
}

/* Plakat-Titel «Sicher & Mobil» */

.plakat-titel {
  display: block;
  font-size: clamp(3.25rem, 8vw, 6.5rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.008em;
}

.plakat-titel span {
  display: block;
}

.plakat-frage {
  display: block;
  margin-top: 0.45em;
  font-size: clamp(1.75rem, 3.3vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.005em;
}

.rubrik-thema {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  color: var(--akzent);
  font-weight: 800;
}

.rubrik-thema::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: currentColor;
}

/* Rubrik-Farben: --akzent für Ringe und Linien, --bereich für Flächen (Karten, Kopf der
   Angebotsseiten, Kacheln) */
.r-senioren { --akzent: var(--blau); --bereich: var(--blau-flaeche); }
.r-handicap { --akzent: var(--petrol); --bereich: var(--petrol-flaeche); }
.r-trauma { --akzent: var(--sand); --bereich: var(--sand-flaeche); }
.r-unternehmen { --akzent: var(--stahl); --bereich: var(--bordeaux); }
/* Über mich: Karte und Statement im Bordeaux der Marke, wie bei Unternehmen */
.r-marke { --akzent: var(--signal); --bereich: var(--bordeaux); }

/* Startseite: Hero */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--flaeche);
  color: var(--flaeche-text);
}

.hero::before,
.poster-hero::before,
.seitenkopf--plakat::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(circle, var(--punkte) 1.3px, transparent 1.8px);
  background-size: 15px 15px;
  -webkit-mask-image: linear-gradient(105deg, #000 0%, transparent 42%);
  mask-image: linear-gradient(105deg, #000 0%, transparent 42%);
}

/* Die Linse ragt rechts aus dem Bild, beginnt aber nie vor der Textspalte: linker Rand der
   Spalte + Textbreite (höchstens die halbe Fensterbreite, «selbstbestimmt» ist bei 88 px
   rund 626 px breit) + 40 px Luft + die Ringe. */
.hero .lens {
  --ring-aussen: var(--ring-2);
  width: min(66vw, 900px);
  left: max(
    100% - min(66vw, 900px) + min(15vw, 240px),
    max(var(--gutter), (100% - var(--max)) / 2) + min(50vw, 660px) + 40px + var(--r1) + var(--r2) + var(--r3)
  );
  top: 50%;
  translate: 0 -50%;
  z-index: -1;
}

/* Titelbild: Fotos blenden langsam ineinander und zoomen dabei leicht auf das Gesicht zu
   (--fokus). Den Takt (7 s) gibt main.js vor, der Zoom dauert Takt plus Überblendung.
   Bei «Bewegung reduzieren» bleibt das erste Foto stehen. */
.bildwechsel img {
  opacity: 0;
  object-position: var(--fokus, 50% 30%);
  transform-origin: var(--fokus, 50% 30%);
  transition: opacity 2.5s ease;
  will-change: transform, opacity;
}

.bildwechsel img.ist-aktiv {
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .bildwechsel img.ist-aktiv,
  .bildwechsel img.war-aktiv {
    animation: bild-zoom 9.5s linear forwards;
  }
}

@keyframes bild-zoom {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.07);
  }
}

/* Firefox rundet langsame Zooms auf ganze Pixel, das Bild ruckelt dort (bekannter Fehler
   ohne verlässliche Abhilfe). In Firefox deshalb nur überblenden. */
@supports (-moz-appearance: none) {
  .bildwechsel img.ist-aktiv,
  .bildwechsel img.war-aktiv {
    animation: none;
  }
}

.hero-inhalt {
  display: flex;
  align-items: center;
  min-height: clamp(580px, calc(100vh - var(--header-h)), 820px);
  padding-block: 80px;
}

.hero-text {
  max-width: min(560px, 50vw);
}

.hero h1 {
  font-size: clamp(2.875rem, 6.6vw, 5.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.008em;
  hyphens: manual;
}

/* Kleine Handys: «selbstbestimmt» passt sonst nicht in die Zeile */
@media (max-width: 420px) {
  .hero h1 {
    font-size: clamp(2rem, 11.6vw, 2.875rem);
  }
}

.hero h1 span {
  display: block;
}

.hero .lead {
  margin-top: 28px;
  max-width: 30em;
  color: var(--flaeche-text-2);
}

@media (prefers-reduced-motion: no-preference) {
  .hero .lens {
    animation: linse-auf 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  @keyframes linse-auf {
    from {
      opacity: 0;
      scale: 0.94;
    }
  }
}

@media (max-width: 860px) {
  .hero .lens {
    width: 100vw;
    left: auto;
    right: -26vw;
    top: -10vw;
    translate: none;
  }

  .hero-inhalt {
    align-items: flex-end;
    min-height: 0;
    padding-top: 86vw;
    padding-bottom: 64px;
  }

  .hero-text {
    max-width: 560px;
  }
}

/* Startseite: Warum DRIVE FIT+ */

.warum-raster {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(32px, 6vw, 96px);
}

.warum-liste {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px clamp(28px, 4vw, 56px);
  list-style: none;
  padding: 0;
}

.warum-liste li {
  padding-top: 24px;
  border-top: 2px solid var(--tinte);
}

.warum-liste .icon {
  width: 40px;
  height: 40px;
  color: var(--signal);
  stroke-width: 1.6;
  margin-bottom: 18px;
}

.warum-liste p {
  margin-top: 8px;
  color: var(--grau);
}

/* Fünfter Punkt über die ganze Breite (Handicap) */
.warum-liste .warum-breit {
  grid-column: 1 / -1;
}

.warum-liste--drei {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 860px) {
  .warum-raster,
  .warum-liste {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Startseite: Rubriken als kleine Plakate */

.rubriken {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.rubrik {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius);
  background: var(--karte);
  color: var(--karte-text);
  --lens-gap: var(--karte);
}

/* Bildbereich so hoch, dass der Titel unter der Linse steht und nicht auf dem Foto */
.rubrik-bild {
  position: relative;
  aspect-ratio: 1 / 0.98;
}

/* Auf den farbigen Karten sind beide Ringe halbtransparent weiss, damit sie nicht
   hervorstechen; Rot bleibt der Linse auf dunklem Grund */
.rubrik .lens {
  --ring: rgba(255, 255, 255, 0.4);
  --ring-aussen: rgba(255, 255, 255, 0.4);
  width: 112%;
  right: -36%;
  top: -16%;
  z-index: -1;
}

.rubrik-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  padding: 8px clamp(24px, 2.6vw, 34px) clamp(28px, 3vw, 36px);
}

.rubrik h3 .plakat-titel {
  font-size: clamp(2.5rem, 3.6vw, 3.25rem);
}

.rubrik h3 .plakat-frage {
  font-size: clamp(1.375rem, 1.8vw, 1.625rem);
}

/* Die drei Karten führen die Überschrift «Sicher & Mobil – auch …» fort, gross steht nur,
   was sie unterscheidet (wie in D) */
.rubrik-frage {
  font-size: clamp(2rem, 3vw, 2.625rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.008em;
}

/* Nebeneinander: Platz für zwei Zeilen, unten bündig, damit die Unterzeilen auf einer Höhe stehen */
@media (min-width: 1001px) {
  .rubrik-frage {
    display: flex;
    align-items: flex-end;
    min-height: 2em;
  }
}

.rubrik .rubrik-thema {
  margin-top: 18px;
}

/* Auf den Karten ohne Punkt davor */
.rubrik .rubrik-thema::before {
  content: none;
}

.rubrik-text > p:not(.rubrik-thema) {
  margin-top: 10px;
  color: var(--karte-text-2);
}

.rubrik-text .btn {
  margin-top: auto;
}

.rubrik-text > :has(+ .btn) {
  margin-bottom: 28px;
}

/* Angebotskarten in der Bereichsfarbe, mit schwarzer Schrift (Unternehmen: Bordeaux, weiss).
   Die Unterzeile steht in der Schriftfarbe der Karte. */
.rubrik.r-senioren { --karte: var(--blau-flaeche); }
.rubrik.r-handicap { --karte: var(--petrol-flaeche); }

.rubrik.r-trauma { --karte: var(--sand-flaeche); }

.rubrik.r-senioren,
.rubrik.r-handicap,
.rubrik.r-trauma {
  --karte-text: var(--tinte);
  --karte-text-2: rgba(36, 20, 20, 0.9);
}

.rubrik .rubrik-thema {
  color: var(--karte-text);
}

/* Unternehmen-Karte in Bordeaux wie in D, der Bildplatzhalter etwas dunkler */
.rubrik--breit {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  --karte: var(--bordeaux);
  --karte-text: var(--weiss);
  --karte-text-2: rgba(255, 255, 255, 0.86);
  --leer-bg: #4a0f12;
  background: var(--karte);
  --lens-gap: var(--karte);
}

.rubrik--breit .rubrik-text {
  justify-content: center;
  padding: clamp(36px, 4.5vw, 64px);
}

.rubrik--breit .rubrik-bild {
  order: 2;
  aspect-ratio: auto;
  min-height: 420px;
}

.rubrik--breit .lens {
  width: 118%;
  right: -46%;
  top: 50%;
  translate: 0 -50%;
}

.rubrik-liste {
  margin-top: 18px;
  padding: 0;
  list-style: none;
  color: var(--karte-text-2);
}

.rubrik-liste li {
  position: relative;
  padding-left: 22px;
}

.rubrik-liste li + li {
  margin-top: 4px;
}

.rubrik-liste li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--karte-text-2);
}

@media (max-width: 1000px) {
  .rubriken {
    grid-template-columns: 1fr;
    max-width: 560px;
  }

  .rubrik--breit {
    grid-template-columns: 1fr;
  }

  .rubrik--breit .rubrik-bild {
    order: 0;
    min-height: 0;
    aspect-ratio: 1 / 0.98;
  }

  .rubrik--breit .lens {
    width: 112%;
    right: -36%;
    top: -16%;
    translate: none;
  }

  .rubrik--breit .rubrik-text {
    padding: 8px clamp(24px, 5vw, 34px) 36px;
  }
}

/* Handy und Tablet: Angebote als Reihe zum Wischen, die nächste Karte schaut am Rand herein.
   Die Karten sind kompakter, damit eine ganz auf den Bildschirm passt. Die Punkte darunter setzt main.js. */
@media (max-width: 1000px) {
  /* Alle Karten gleich hoch, der Knopf steht unten bündig. Dafür in der Reihe nur Titel und
     Unterzeile, der Satz und die Firmenliste stehen auf den Unterseiten. */
  .rubriken {
    display: flex;
    align-items: stretch;
    gap: 12px;
    max-width: none;
    margin-inline: calc(-1 * var(--gutter));
    padding: 4px var(--gutter) 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }

  .rubriken::-webkit-scrollbar {
    display: none;
  }

  .rubriken > .rubrik {
    flex: 0 0 min(84%, 340px);
    scroll-snap-align: start;
  }

  .rubriken .rubrik-bild {
    aspect-ratio: 1 / 0.58;
  }

  .rubriken .rubrik .lens {
    width: 70%;
    right: -12%;
    top: -13%;
  }

  .rubriken .rubrik-text {
    padding: 14px 22px 22px;
  }

  /* Platz für zwei Zeilen, unten bündig, damit die Unterzeilen auf einer Höhe stehen */
  .rubriken .rubrik-frage {
    display: flex;
    align-items: flex-end;
    min-height: 2em;
    font-size: 1.625rem;
  }

  .rubriken .rubrik h3 .plakat-titel {
    font-size: 1.75rem;
  }

  .rubriken .rubrik h3 .plakat-frage {
    font-size: 1.0625rem;
  }

  .rubriken .rubrik .rubrik-thema {
    margin-top: 8px;
    margin-bottom: 18px;
    font-size: 1rem;
  }

  .rubriken .rubrik-text > p:not(.rubrik-thema),
  .rubriken .rubrik-liste {
    display: none;
  }

  /* Die Firmenkarte hat mit «Auch als Unternehmen …» schon eine Unterzeile, sonst wäre sie
     eine Zeile höher als die anderen */
  .rubriken .rubrik--breit .rubrik-thema {
    display: none;
  }

  .rubriken .rubrik--breit h3 {
    margin-bottom: 18px;
  }
}

.reihe-punkte {
  display: flex;
  justify-content: center;
  gap: 2px;
  margin-top: 10px;
}

.reihe-punkte[hidden] {
  display: none;
}

.reihe-punkte button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.reihe-punkte button::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: var(--pill);
  background: var(--tinte);
  opacity: 0.25;
  transition: width 0.2s, opacity 0.2s;
}

.reihe-punkte button[aria-current="true"]::before {
  width: 24px;
  opacity: 1;
}

/* Über mich (Anriss auf der Startseite) */

.ueber-raster {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(40px, 7vw, 112px);
}

.portrait {
  position: relative;
  margin: 0;
  aspect-ratio: 1;
  width: min(100%, 460px);
}

.portrait .lens {
  --ring-aussen: var(--ring-2);
  inset: 0;
  width: 100%;
  --lens-gap: var(--weiss);
}

.portrait .lens img {
  object-position: 12% 0%;
}

.zitat-gross {
  font-size: clamp(2rem, 4vw, 3.125rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.008em;
}

.ueber-text .lead {
  margin-top: 24px;
}

.ueber-text > p:not(.lead) {
  margin-top: 16px;
  color: var(--grau);
}

.punkte {
  margin-top: 24px;
  padding: 0;
  list-style: none;
}

.punkte li {
  position: relative;
  padding-left: 30px;
}

.punkte li + li {
  margin-top: 8px;
}

.punkte li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.5em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 3px solid var(--signal);
}

@media (max-width: 860px) {
  .ueber-raster {
    grid-template-columns: 1fr;
  }

  .portrait {
    width: min(78vw, 360px);
    margin-inline: auto;
  }
}

/* Stimmen */

.stimmen {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px) clamp(28px, 5vw, 80px);
}

/* Stimmen als Karten wie die Angebote: Foto als Linse oben rechts, von der Karte
   angeschnitten, mit Doppelring wie auf den Plakaten; grosses, zartrotes « als Auftakt.
   Auf weissen Abschnitten sind die Karten hellgrau. */
.stimme {
  --stimme-bg: var(--weiss);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: clamp(28px, 3vw, 40px);
  padding-top: 0;
  border-radius: var(--radius);
  background: var(--stimme-bg);
}

.section:not(.section--nebel) .stimme {
  --stimme-bg: var(--nebel);
}

/* Kopfzone der Karte: hoch genug, dass das Zitat unter der Linse beginnt */
.stimme::before {
  content: "«" / "";
  display: flex;
  align-items: flex-end;
  height: 168px;
  padding-bottom: 4px;
  color: color-mix(in srgb, var(--signal) 28%, var(--stimme-bg));
  font-size: 9rem;
  font-weight: 900;
  line-height: 0.6;
}

.stimme blockquote {
  flex: 1;
  margin: 0;
  font-size: 1.3125rem;
  font-weight: 560;
  line-height: 1.5;
}

.stimme blockquote p::after {
  content: "»";
}

/* Anführungszeichen je Sprache: Französisch mit schmalem Leerzeichen, Englisch “…” */
:lang(fr) .stimme blockquote p::after {
  content: "\202f»";
}

:lang(en) .stimme::before {
  content: "“" / "";
}

:lang(en) .stimme blockquote p::after {
  content: "”";
}

.stimme figcaption {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 2px solid var(--linie);
  color: var(--grau);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
}

.stimme figcaption strong {
  color: var(--tinte);
  font-weight: 800;
}

.stimme-bild {
  position: absolute;
  top: -36px;
  right: -28px;
  z-index: -1;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 0 0 8px var(--ring),
    0 0 0 13px var(--stimme-bg),
    0 0 0 16px var(--ring-2);
}

/* Entwurf: Platzhalter, bis das Foto da ist */
.stimme-bild--platz {
  display: grid;
  place-items: center;
  padding: 34px 26px 0 0;
  box-sizing: border-box;
  background: color-mix(in srgb, var(--bordeaux) 12%, var(--weiss));
  color: var(--grau);
  font-size: 0.875rem;
  font-weight: 700;
  text-align: center;
}

/* Handy: Stimmen als Reihe zum Wischen wie die Angebote, alle Karten gleich hoch,
   Name und Foto unten bündig. Punkte darunter aus main.js (.reihe-punkte). */
@media (max-width: 760px) {
  .stimmen {
    display: flex;
    align-items: stretch;
    gap: 12px;
    margin-inline: calc(-1 * var(--gutter));
    padding: 4px var(--gutter) 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }

  .stimmen::-webkit-scrollbar {
    display: none;
  }

  .stimmen > .stimme {
    flex: 0 0 min(84%, 340px);
    scroll-snap-align: start;
    padding: 0 22px 22px;
  }

  .stimme::before {
    height: 112px;
    font-size: 6rem;
  }

  .stimme-bild {
    top: -28px;
    right: -22px;
    width: 116px;
    height: 116px;
  }

  .stimme blockquote {
    font-size: 1.0625rem;
    line-height: 1.5;
  }

  .stimme figcaption {
    margin-top: 18px;
    padding-top: 14px;
    font-size: 0.9375rem;
  }
}

/* Partnerlogos als Laufband über die ganze Breite, an den Rändern weich ausgeblendet.
   Die Reihe steht doppelt im Markup (build.py); beide wandern um ihre eigene Breite nach
   links, so schliesst die Kopie nahtlos an. Maus darüber oder Tastaturfokus auf einem Logo
   hält das Band an. */

.partner .section-head {
  margin-bottom: clamp(48px, 6vw, 80px);
}

.logo-laufband {
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.logo-reihe {
  --logo-h: 68px;
  display: flex;
  flex: none;
  align-items: center;
  gap: 112px;
  margin: 0;
  padding: 0 56px;
  list-style: none;
}

.logo-reihe li,
.logo-reihe a {
  display: flex;
  align-items: center;
}

/* Höhe = Grundhöhe × Faktor je Logo (--f aus build.py); die Zeile fasst das grösste Logo */
.logo-reihe li {
  height: calc(var(--logo-h) * 1.5);
}

.logo-reihe img {
  width: auto;
  max-width: none;
  height: calc(var(--logo-h) * var(--f, 1));
}

@media (prefers-reduced-motion: no-preference) {
  .logo-reihe {
    animation: laufband 50s linear infinite;
  }

  .logo-laufband:hover .logo-reihe,
  .logo-laufband:focus-within .logo-reihe {
    animation-play-state: paused;
  }
}

@keyframes laufband {
  to {
    transform: translateX(-100%);
  }
}

/* Bewegung reduziert: Logos stehen still und brechen um, die Kopie entfällt */
@media (prefers-reduced-motion: reduce) {
  .logo-laufband {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .logo-reihe {
    flex: 1 1 auto;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 56px;
  }

  .logo-reihe[aria-hidden] {
    display: none;
  }
}

@media (max-width: 760px) {
  .logo-reihe {
    --logo-h: 48px;
    gap: 72px;
    padding: 0 36px;
  }
}

/* Publikationen */

.publikation-anriss {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 7vw, 112px);
}

.cover-paar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 40px);
  padding: 4%;
}

/* Titelseiten flach (aus den Mockups entzerrt), wie ein aufliegendes Heft leicht gedreht.
   Darüber Falz links und ein weicher Glanzstreifen, beide Hefte gleich. */
.cover-heft {
  position: relative;
  display: block;
  rotate: 3deg;
  box-shadow: 0 1px 2px rgba(31, 9, 9, 0.18), 0 16px 32px -10px rgba(31, 9, 9, 0.38);
}

.cover-heft::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.14) 0, rgba(255, 255, 255, 0.3) 1.4%, rgba(255, 255, 255, 0) 4%),
    linear-gradient(105deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0.2) 52%, rgba(255, 255, 255, 0) 66%);
  pointer-events: none;
}

.cover-heft img {
  display: block;
  width: 100%;
  height: auto;
}

/* Startseite und Unternehmen: Das Heft führt zur Publikation und hebt sich beim Darüberfahren */
.cover-link {
  display: block;
}

@media (prefers-reduced-motion: no-preference) {
  .cover-heft {
    transition: rotate 0.35s ease, translate 0.35s ease, box-shadow 0.35s ease;
  }

  .cover-link:hover .cover-heft,
  .cover-link:focus-visible .cover-heft {
    rotate: 1deg;
    translate: 0 -8px;
    box-shadow: 0 2px 4px rgba(31, 9, 9, 0.16), 0 30px 44px -12px rgba(31, 9, 9, 0.42);
  }
}

.preise {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 24px;
  padding: 0;
  list-style: none;
  font-weight: 700;
}

.preise strong {
  color: var(--signal);
  font-weight: 900;
}

@media (max-width: 860px) {
  .publikation-anriss {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Publikationen: Karten mit dem Heft auf hellem Bordeaux-Ton, unten Preis und Bestellknopf bündig.
   Die Broschüre für erfahrene Verkehrsteilnehmende gross und quer, darunter die beiden Leitfäden. */
.produkt-karten {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 32px);
  padding: 0;
  list-style: none;
}

.produkt-karten--zwei {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.produkt-gruppe {
  margin: clamp(64px, 8vw, 104px) 0 clamp(24px, 3vw, 36px);
  font-size: clamp(1.625rem, 2.6vw, 2.125rem);
}

.produkt-karte {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--weiss);
}

/* Heftfläche in der Bereichsfarbe mit Ring wie auf den Angebotskarten: die Broschüre für erfahrene
   Verkehrsteilnehmende in Blau wie Senioren, die Leitfäden für Fahrschulen in Bordeaux wie Institutionen */
.produkt-bild {
  --r1: clamp(10px, 1.1vw, 16px);
  --r2: clamp(5px, 0.6vw, 8px);
  --r3: clamp(3px, 0.3vw, 4px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: clamp(36px, 4vw, 52px) 24px;
  background: var(--bereich, var(--bordeaux));
}

.produkt-bild::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 92%;
  aspect-ratio: 1;
  left: 58%;
  top: 42%;
  translate: -50% -50%;
  border: var(--r1) solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  box-shadow:
    0 0 0 var(--r2) var(--bereich, var(--bordeaux)),
    0 0 0 calc(var(--r2) + var(--r3)) rgba(255, 255, 255, 0.3);
}

/* Heft als Link (Seniorenseite): Link über die ganze Breite, damit die Heftbreite sich auf die Fläche bezieht */
.produkt-bild .cover-link {
  display: grid;
  place-items: center;
  width: 100%;
}

.produkt-bild .cover-heft {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18), 0 22px 40px -12px rgba(0, 0, 0, 0.5);
}

.produkt-bild .cover-heft,
.cover-platz {
  width: min(56%, 220px);
}

.cover-platz {
  display: grid;
  place-items: center;
  aspect-ratio: 148 / 210;
  border-radius: 4px;
  rotate: 3deg;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 16px, transparent 16px 32px),
    var(--platzhalter-bg);
  color: rgba(255, 255, 255, 0.75);
  font-weight: 700;
  text-align: center;
}

.produkt-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(24px, 2.6vw, 34px);
}

.produkt-text :is(h2, h3) {
  font-size: clamp(1.375rem, 1.9vw, 1.625rem);
  line-height: 1.2;
}

.produkt-text .untertitel {
  margin-top: 8px;
  color: var(--grau);
  font-size: 1rem;
}

.produkt-text > p:not(.untertitel, .produkt-marke) {
  margin-top: 16px;
}

/* p.statement, sonst gewinnt die Absatzregel oben (16 px). Unten addiert sich der Abstand der
   Produktdaten (20 px), weil .produkt-text ein Flex-Container ist: zusammen 28 bis 36 px */
.produkt-text > p.statement {
  margin-top: clamp(28px, 3vw, 36px);
  margin-bottom: clamp(8px, 1.2vw, 16px);
}

.produkt-karte--breit {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}

/* Startseite: unter der Broschüre der Hinweis auf den Leitfaden für Fahrschulen */
.publikation-hinweis {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: 28px;
  font-weight: 600;
}

.publikation-hinweis a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--signal);
  font-weight: 800;
}

.publikation-hinweis .icon {
  width: 20px;
  height: 20px;
}

/* Kleine Zeile über dem Titel, wenn die Karte ausserhalb der Publikationen steht (Startseite, Seniorenseite) */
.produkt-marke {
  margin-bottom: 10px;
  color: var(--grau);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.produkt-text > .produkt-marke + h2 {
  margin-top: 0;
}

.produkt-fuss .btn-reihe {
  margin-top: 0;
}

.produkt-karte--breit .produkt-bild {
  padding: clamp(40px, 5vw, 72px);
}

.produkt-karte--breit .produkt-bild .cover-heft {
  width: min(72%, 300px);
}

.produkt-karte--breit .produkt-text {
  padding: clamp(28px, 4vw, 56px);
}

.produkt-karte--breit h2 {
  font-size: clamp(1.75rem, 3vw, 2.375rem);
}

.produkt-karte--breit .untertitel {
  font-size: 1.25rem;
}

.produkt-daten {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 20px;
  margin: 20px 0 0;
}

.produkt-daten dt {
  color: var(--grau);
}

.produkt-daten dd {
  margin: 0;
  font-weight: 700;
}

.produkt-preis small {
  display: block;
  color: var(--grau);
  font-size: 0.9375rem;
  font-weight: 600;
}

.produkt-fuss {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-top: auto;
  padding-top: 28px;
}

.produkt-preis {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--signal);
}

@media (max-width: 1000px) {
  .produkt-karten {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .produkt-karte--breit {
    grid-template-columns: 1fr;
  }

  /* Anriss auf Startseite und Seniorenseite: untereinander nur Titel, Untertitel, Preis und
     Knöpfe, der ganze Text steht bei den Publikationen */
  .produkt-anriss .produkt-text > p:not(.untertitel, .produkt-marke) {
    display: none;
  }
}

@media (max-width: 640px) {
  .produkt-karten {
    grid-template-columns: 1fr;
  }
}

/* FAQ-Anriss */

.faq-anriss {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: clamp(32px, 6vw, 96px);
}

.fragen-links {
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--linie);
}

.fragen-links li {
  border-bottom: 1px solid var(--linie);
}

.fragen-links a {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  color: var(--tinte);
  font-weight: 700;
  text-decoration: none;
}

.fragen-links a:hover {
  color: var(--signal);
}

.fragen-links .icon {
  rotate: -90deg;
  color: var(--signal);
  margin-top: 3px;
}

@media (max-width: 860px) {
  .faq-anriss {
    grid-template-columns: 1fr;
  }
}

/* Unterseiten: Plakat-Hero */

.poster-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--flaeche);
  color: var(--flaeche-text);
}

/* Angebotsseiten: Kopf in der Bereichsfarbe wie die Karte auf der Startseite, mit schwarzer
   Schrift (Unternehmen: Bordeaux, weisse Schrift). Ringe halbtransparent weiss wie auf den
   Karten, die Unterzeile ohne Punkt. */
.poster-hero:is(.r-senioren, .r-handicap, .r-trauma, .r-unternehmen) {
  --flaeche: var(--bereich);
  --flaeche-text: var(--tinte);
  --flaeche-text-2: rgba(36, 20, 20, 0.9);
  --punkte: rgba(36, 20, 20, 0.09);
  --fokus: var(--tinte);
}

.poster-hero.r-unternehmen {
  --flaeche-text: var(--weiss);
  --flaeche-text-2: rgba(255, 255, 255, 0.86);
  --punkte: rgba(255, 255, 255, 0.07);
  --fokus: var(--weiss);
}

.poster-hero .lens {
  --ring: rgba(255, 255, 255, 0.4);
  --ring-aussen: rgba(255, 255, 255, 0.4);
}

.poster-hero .rubrik-thema {
  color: var(--flaeche-text);
}

.poster-hero .rubrik-thema::before {
  content: none;
}

.poster-hero .lens {
  width: min(64vw, 900px);
  right: max(-10vw, -150px);
  top: max(-11vw, -160px);
  z-index: -1;
}

/* Über mich: dunkler Kopf wie die Startseite, darum auch deren rote Ringe. Die Linse steht tiefer als
   auf den Angebotsseiten, damit Renés Kopf ganz im Bild ist. */
.poster-hero--marke .lens {
  --ring: var(--signal);
  --ring-aussen: var(--ring-2);
  width: min(52vw, 780px);
  top: clamp(16px, 2vw, 32px);
  right: max(-6vw, -90px);
}

.poster-hero-inhalt {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(560px, calc(100vh - var(--header-h)), 780px);
  padding-block: 120px 72px;
}

.poster-hero.r-unternehmen .plakat-titel {
  font-size: clamp(2.75rem, 5.2vw, 4.75rem);
}

@media (min-width: 861px) {
  .poster-hero-inhalt > * {
    max-width: min(100%, 47vw);
  }
}

.poster-hero .lead {
  margin-top: 24px;
  max-width: 34em;
  color: var(--flaeche-text-2);
}

@media (max-width: 860px) {
  .poster-hero .lens {
    width: 104vw;
    right: -30vw;
    top: -14vw;
  }

  .poster-hero--marke .lens {
    width: 84vw;
    right: -18vw;
    top: 4vw;
  }

  .poster-hero-inhalt {
    min-height: 0;
    padding-top: 88vw;
    padding-bottom: 56px;
  }
}

/* Unterseiten: Inhalt nach Plakatlogik */

.plakat-inhalt {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 112px);
}

.plakat-inhalt .lead + p {
  margin-top: 1.1em;
}

/* Zitatblock: oben und unten etwa doppelt so viel Luft wie zwischen zwei Absätzen (19 px) */
.plakat-inhalt p.statement {
  margin-block: clamp(32px, 3.4vw, 44px);
}

.statement {
  padding-left: 22px;
  border-left: 5px solid var(--bereich, var(--signal));
  font-size: clamp(1.25rem, 1.8vw, 1.4375rem);
  font-weight: 800;
  line-height: 1.35;
}

.geeignet h2 {
  font-size: clamp(1.5rem, 2.4vw, 1.875rem);
}

/* Auf den Angebotsseiten (Abschnitt mit Bereichsklasse r-…) als Karte im hellen Ton der Bereichsfarbe,
   Häkchen in einem dunklen Ton davon */
:is(.r-senioren, .r-handicap, .r-trauma, .r-unternehmen, .r-marke) .geeignet {
  align-self: start;
  padding: clamp(28px, 3.4vw, 44px);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bereich) 20%, var(--weiss));
}

:is(.r-senioren, .r-handicap, .r-trauma, .r-unternehmen, .r-marke) .geeignet .checkliste li {
  border-color: color-mix(in srgb, var(--bereich) 45%, var(--weiss));
}

:is(.r-senioren, .r-handicap, .r-trauma, .r-unternehmen, .r-marke) .geeignet .checkliste li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

:is(.r-senioren, .r-handicap, .r-trauma, .r-unternehmen, .r-marke) .geeignet .checkliste .icon {
  color: color-mix(in srgb, var(--bereich) 50%, var(--tinte));
}

/* Bordeaux ist dunkel, der helle Ton daraus braucht weniger Farbe, sonst wird er grau-rosa */
:is(.r-unternehmen, .r-marke) .geeignet {
  background: color-mix(in srgb, var(--bereich) 8%, var(--weiss));
}

:is(.r-unternehmen, .r-marke) .geeignet .checkliste li {
  border-color: color-mix(in srgb, var(--bereich) 20%, var(--weiss));
}

.checkliste {
  margin-top: 28px;
  padding: 0;
  list-style: none;
}

.checkliste li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 16px;
  padding-block: 16px;
  border-top: 1px solid var(--linie);
}

.checkliste li:last-child {
  border-bottom: 1px solid var(--linie);
}

.checkliste .icon {
  width: 32px;
  height: 32px;
  color: var(--signal);
  stroke-width: 1.8;
}

@media (max-width: 860px) {
  .plakat-inhalt {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Lange Wörter wie «Motorfahrzeugprüfstation» trennen nur an gesetzten Trennstellen (&shy;).
   Die automatische Trennung trennte unschön («Au-tofahren»). */
.checkliste span {
  min-width: 0;
  overflow-wrap: break-word;
  hyphens: manual;
}

.weitere {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  padding: 0;
}

/* Über mich, Publikationen, FAQ: alle vier Angebote, zwei mal zwei */
.weitere--alle {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Weitere Angebote: Hellgrau, wenn der Abschnitt davor weiss ist, damit sich die Abschnitte
   wie auf der Startseite abwechseln */
.section:not(.section--nebel) + .weitere-abschnitt {
  background: var(--nebel);
}

/* Weitere Angebote: Farbkacheln wie im Menü (Farben und Foto-Linse dort), etwas grösser */
.weitere a {
  --flaeche-k: var(--kachel);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  align-content: start;
  row-gap: 6px;
  height: 100%;
  min-height: 132px;
  padding: 22px 128px 24px 24px;
  border-radius: 20px;
  background: var(--flaeche-k);
  color: var(--kachel-text, var(--weiss));
  line-height: 1.3;
  text-decoration: none;
}

.weitere a:hover {
  --flaeche-k: color-mix(in srgb, var(--kachel) 86%, var(--weiss));
  color: var(--kachel-text, var(--weiss));
}

.weitere .weitere-marke {
  font-size: 0.9375rem;
  font-weight: 800;
  opacity: 0.92;
}

.weitere strong {
  font-size: 1.3125rem;
  font-weight: 800;
}

.weitere span {
  font-size: 1rem;
  font-weight: 500;
}

.weitere .dropdown-bild {
  top: -30px;
  right: -36px;
  width: 140px;
  height: 140px;
}

@media (max-width: 860px) {
  .weitere {
    grid-template-columns: 1fr;
  }
}

/* Schmale Handys: kleineres Foto, damit lange Wörter («Fahrzeuganpassung») in die Kachel passen */
@media (max-width: 400px) {
  .weitere a {
    padding-right: 100px;
  }

  .weitere .dropdown-bild {
    top: -24px;
    right: -30px;
    width: 116px;
    height: 116px;
  }
}

/* Unternehmen */

/* Zwei Stufen als Abfolge: Karten mit Pfeil dazwischen (am Handy nach unten), die Stufe als
   Marke in Bordeaux, die optionale zweite nur umrandet */
.stufen {
  --stufen-abstand: clamp(48px, 5vw, 72px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--stufen-abstand);
  list-style: none;
  padding: 0;
}

/* Unternehmen: Referenzen unter den beiden Angeboten */
.referenzen {
  margin-top: clamp(40px, 5vw, 56px);
}

/* Unternehmen: Referat am L-drive Mobility-Forum, Text links, Video rechts (wie «Einblick in meine Arbeit») */
.referat {
  margin-top: clamp(56px, 6vw, 72px);
  align-items: start;
}

.referat h3 {
  margin-bottom: 12px;
}

.referat-titel {
  margin-top: 12px;
  color: var(--grau);
  font-size: 0.9375rem;
}

/* Publikationen: drei Bestellschritte in derselben Form, auf weissem Grund als hellgraue Karten */
.stufen--drei {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.section:not(.section--nebel) .stufe {
  background: var(--nebel);
}

.stufe > p {
  font-size: 1.125rem;
  font-weight: 600;
}

.stufe {
  position: relative;
  padding: clamp(28px, 3.5vw, 44px);
  border-radius: var(--radius);
  background: var(--weiss);
}

.stufe + .stufe::before {
  content: "→";
  position: absolute;
  top: 50%;
  left: calc(var(--stufen-abstand) / -2);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  translate: -50% -50%;
  border-radius: 50%;
  background: var(--bordeaux);
  color: var(--weiss);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.stufe-nr {
  display: inline-block;
  margin-bottom: 18px;
  padding: 5px 14px;
  border: 2px solid var(--bordeaux);
  border-radius: var(--pill);
  background: var(--bordeaux);
  color: var(--weiss);
  font-size: 1rem;
  font-weight: 800;
}

.stufe-nr--optional {
  background: transparent;
  color: var(--bordeaux);
}

.stufe h3 {
  font-size: clamp(1.375rem, 2vw, 1.625rem);
}

.stufe .punkte {
  margin-top: 20px;
}

.stufe .ziel {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--linie);
  font-weight: 700;
}

.zwei-listen {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 6vw, 96px);
}

.zwei-listen h2 {
  font-size: clamp(1.5rem, 2.4vw, 1.875rem);
}

@media (max-width: 900px) {
  .stufen,
  .zwei-listen {
    grid-template-columns: minmax(0, 1fr);
  }

  .stufe + .stufe::before {
    top: calc(var(--stufen-abstand) / -2);
    left: 50%;
    rotate: 90deg;
  }

  /* Publikationen: die drei Bestellschritte als Reihe zum Wischen, gleich hoch, ohne Pfeil
     dazwischen (die Reihenfolge zeigen «Schritt 1–3» und die Punkte darunter aus main.js) */
  .stufen--drei {
    --stufen-abstand: 12px;
    display: flex;
    align-items: stretch;
    margin-inline: calc(-1 * var(--gutter));
    padding: 4px var(--gutter) 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }

  .stufen--drei::-webkit-scrollbar {
    display: none;
  }

  .stufen--drei > .stufe {
    flex: 0 0 min(80%, 320px);
    scroll-snap-align: start;
    padding: 22px;
  }

  .stufen--drei .stufe + .stufe::before {
    content: none;
  }

  .stufen--drei .stufe-nr {
    margin-bottom: 12px;
  }

  .stufen--drei .stufe > p {
    font-size: 1.0625rem;
  }
}

/* Über-mich-Seite: Haltung als Plakatband in Bordeaux, mit Ringen wie auf den Angebotskarten */

.zitat-band {
  --r1: clamp(10px, 1.25vw, 18px);
  --r2: clamp(5px, 0.7vw, 9px);
  --r3: clamp(3px, 0.35vw, 5px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(80px, 10vw, 144px);
  background: var(--bordeaux);
  color: var(--weiss);
  --fokus: var(--weiss);
}

.zitat-band::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(60vw, 820px);
  aspect-ratio: 1;
  right: max(-16vw, -240px);
  top: 50%;
  translate: 0 -50%;
  border: var(--r1) solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  box-shadow:
    0 0 0 var(--r2) var(--bordeaux),
    0 0 0 calc(var(--r2) + var(--r3)) rgba(255, 255, 255, 0.16);
}

.zitat-band figure {
  margin: 0;
}

.zitat-band blockquote {
  max-width: 16em;
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.008em;
}

.zitat-band figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
}

.zitat-band figcaption::before {
  content: "";
  width: 40px;
  height: 3px;
  background: currentColor;
}

.video-platz {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 16px, transparent 16px 32px),
    var(--platzhalter-bg);
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
}

.video-start {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  width: 100%;
  height: 100%;
  padding: 16px;
  border: 0;
  border-radius: inherit;
  background: none;
  color: var(--weiss);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

/* Standbild aus dem Video, lokal gespeichert, leicht abgedunkelt für die Schrift */
.video-start img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-start::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(31, 9, 9, 0.38);
}

.video-start:hover .play {
  background: var(--signal-dunkel);
}

.video-platz iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
}

.video-platz .play {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--signal);
  color: var(--weiss);
}

.video-platz .play .icon {
  width: 34px;
  height: 34px;
  translate: 3px 0;
}

@media (max-width: 860px) {
  .vita {
    grid-template-columns: 1fr;
  }

  .vita-zitat {
    position: static;
  }
}

/* Seitenkopf schlicht (FAQ, Publikationen, Rechtliches) */

.seitenkopf {
  position: relative;
  overflow: hidden;
  background: var(--flaeche);
  color: var(--flaeche-text);
  padding-block: clamp(64px, 9vw, 120px) clamp(48px, 6vw, 80px);
}

.seitenkopf::after {
  content: "";
  position: absolute;
  width: 520px;
  aspect-ratio: 1;
  right: -180px;
  top: -260px;
  border-radius: 50%;
  border: 16px solid var(--ring);
  box-shadow:
    0 0 0 8px var(--flaeche),
    0 0 0 12px var(--ring-2);
}

@media (max-width: 760px) {
  .seitenkopf::after {
    width: 260px;
    right: -150px;
    top: -170px;
    border-width: 10px;
  }
}

.seitenkopf h1 {
  position: relative;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.008em;
}

.seitenkopf .lead {
  position: relative;
  margin-top: 20px;
  max-width: 36em;
  color: var(--flaeche-text-2);
}

/* Fahrtipps: Video-Lektionen als Karten, auf der eigenen Seite und als Auswahl auf den Angebotsseiten */
.tipp-themen ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 clamp(36px, 5vw, 56px);
  padding: 0;
  list-style: none;
}

.tipp-themen a {
  display: block;
  padding: 8px 16px;
  border: 1px solid var(--linie);
  border-radius: var(--pill);
  color: var(--tinte);
  font-weight: 700;
  text-decoration: none;
}

.tipp-themen a:hover {
  border-color: var(--signal);
  color: var(--signal);
}

.tipp-raster {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px clamp(20px, 2.4vw, 32px);
  padding: 0;
  list-style: none;
}

.tipp-raster--zwei {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tipp-karte .video-platz {
  border-radius: 16px;
}

.tipp-karte .video-start::after {
  background: rgba(31, 9, 9, 0.08);
}

.tipp-karte .play {
  width: 60px;
  height: 60px;
  margin: 0;
}

.tipp-karte .play .icon {
  width: 24px;
  height: 24px;
  translate: 2px 0;
}

.tipp-nr {
  margin-top: 14px;
  color: var(--grau);
  font-size: 0.9375rem;
  font-weight: 700;
}

.tipp-karte h3 {
  margin-top: 2px;
  font-size: 1.25rem;
  line-height: 1.25;
}

.tipp-karte h3 + p {
  margin-top: 6px;
  color: var(--grau);
  font-size: 1rem;
  line-height: 1.45;
}

.tipp-aufruf h2 {
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.008em;
}

.tipp-aufruf p {
  max-width: 34em;
  margin-top: 20px;
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
}

@media (max-width: 1000px) {
  .tipp-raster {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .tipp-raster,
  .tipp-raster--zwei {
    grid-template-columns: 1fr;
  }
}

/* Fahrtipps: Video gross im Fenster über der Seite. Die Breite richtet sich auch nach der Fensterhöhe,
   damit Video und Leiste im Querformat zusammen Platz haben. */
html:has(.video-fenster[open]) {
  overflow: hidden;
}

.video-fenster {
  --fokus: var(--weiss);
  width: min(1120px, calc(100vw - 32px), calc((100vh - 170px) * 16 / 9));
  width: min(1120px, calc(100vw - 32px), calc((100dvh - 170px) * 16 / 9));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 20px;
  background: var(--espresso);
  color: var(--weiss);
}

.video-fenster::backdrop {
  background: rgba(22, 6, 6, 0.84);
}

.video-bild {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 20px 20px 0 0;
  background: #000;
}

/* Freigabe vor dem Laden von YouTube oder Vimeo (Zwei-Klick-Lösung): erscheint nach dem Klick auf Play
   im Videofeld über dem abgedunkelten Vorschaubild. Wird der Text höher als 16:9, wächst das Feld mit. */
.video-freigabe {
  grid-area: 1 / 1;
  align-self: stretch;
  justify-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px clamp(16px, 4vw, 40px);
  border-radius: inherit;
  background: linear-gradient(rgba(28, 12, 12, 0.9), rgba(28, 12, 12, 0.9)), var(--bild, none) center / cover;
  color: var(--weiss);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
}

.video-freigabe p {
  max-width: 34em;
}

.video-freigabe .btn {
  max-width: 100%;
  white-space: normal;
}

.video-freigabe a {
  color: inherit;
  text-decoration: underline;
}

.video-freigabe .btn .icon {
  width: 20px;
  height: 20px;
}

.video-immer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  text-align: left;
  font-size: 0.9375rem;
  cursor: pointer;
}

.video-immer input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--signal);
}

.video-bild:has(.video-freigabe) {
  display: grid;
  overflow: visible;
}

@media (max-width: 600px) {
  .video-freigabe {
    gap: 10px;
    font-size: 0.9375rem;
  }
}

.video-bild iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-lokal {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--weiss);
  font-weight: 800;
  text-align: center;
}

.video-lokal img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.video-lokal span {
  position: relative;
  padding: 12px;
}

.video-leiste {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 14px 18px 16px;
}

.video-titel {
  flex: 1 1 280px;
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.3;
}

.video-zaehler {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
  white-space: nowrap;
}

.video-wechsel {
  display: flex;
  gap: 8px;
}

.video-wechsel button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--pill);
  background: none;
  color: var(--weiss);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.video-wechsel button:hover:not(:disabled) {
  border-color: var(--weiss);
  background: var(--weiss);
  color: var(--tinte);
}

.video-wechsel button:disabled {
  opacity: 0.35;
  cursor: default;
}

.video-wechsel .icon {
  width: 20px;
  height: 20px;
}

.video-zurueck .icon {
  rotate: 180deg;
}

.video-zu {
  position: absolute;
  z-index: 1;
  top: -14px;
  right: -14px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--weiss);
  color: var(--tinte);
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

.video-zu .icon {
  width: 22px;
  height: 22px;
}

@media (max-width: 640px) {
  .video-zu {
    right: -8px;
  }

  .video-wechsel {
    flex: 1 1 100%;
  }

  .video-wechsel button {
    flex: 1;
    justify-content: center;
  }
}

/* Handy im Querformat: Leiste in einer Zeile, damit das Video möglichst gross bleibt */
@media (max-height: 500px) {
  .video-fenster {
    width: min(calc(100vw - 32px), calc((100vh - 72px) * 16 / 9));
    width: min(calc(100vw - 32px), calc((100dvh - 72px) * 16 / 9));
  }

  .video-leiste {
    flex-wrap: nowrap;
    padding: 8px 12px;
  }

  .video-titel {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    font-size: 1rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .video-zaehler {
    display: none;
  }

  .video-wechsel button {
    min-height: 40px;
    padding: 0 12px;
  }

  .video-zu {
    top: 6px;
    right: 6px;
  }
}

/* Plakat-Seitenkopf (Publikationen, FAQ): Titel in Plakatschrift, grosser Ring rechts wie die
   leere Linse, Punkteraster links wie auf den anderen Köpfen */
.seitenkopf--plakat {
  --r1: clamp(10px, 1.25vw, 18px);
  --r2: clamp(5px, 0.7vw, 9px);
  --r3: clamp(3px, 0.35vw, 5px);
  isolation: isolate;
  padding-block: clamp(96px, 11vw, 160px) clamp(64px, 7vw, 104px);
}

.seitenkopf--plakat::after {
  z-index: -1;
  width: min(58vw, 820px);
  right: max(-14vw, -200px);
  top: max(-32vw, -460px);
  border-width: var(--r1);
  box-shadow:
    0 0 0 var(--r2) var(--flaeche),
    0 0 0 calc(var(--r2) + var(--r3)) var(--ring-2);
}

.seitenkopf--plakat .plakat-titel {
  font-size: clamp(2.25rem, 7vw, 5.75rem);
}

.seitenkopf--plakat .lead {
  margin-top: 28px;
}

/* Publikationen: die beiden Titel direkt im Kopf */
.kopf-titel {
  position: relative;
  max-width: 44em;
  margin-top: 28px;
  padding: 0;
  list-style: none;
  font-size: clamp(1.125rem, 1.7vw, 1.3125rem);
  line-height: 1.4;
}

.kopf-titel li + li {
  margin-top: 8px;
}

.kopf-titel a {
  color: inherit;
}

@media (max-width: 760px) {
  .seitenkopf--plakat::after {
    width: 300px;
    right: -170px;
    top: -170px;
  }
}

/* FAQ */

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  gap: clamp(32px, 5vw, 80px);
}

/* Lange Links (Adressen als Linktext) dürfen in FAQ-Antworten umbrechen */
.faq-antwort a {
  overflow-wrap: anywhere;
}

.faq-sprung {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  align-self: start;
  padding: 0;
  list-style: none;
}

.faq-sprung a {
  display: block;
  padding: 10px 0;
  color: var(--tinte);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--linie);
}

.faq-sprung a:hover {
  color: var(--signal);
}

.faq-nav {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  align-self: start;
  padding: 22px 24px 12px;
  border-radius: 20px;
  background: var(--nebel);
}

.faq-nav-titel {
  margin: 0 0 4px;
  color: var(--grau);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.faq-nav .faq-sprung {
  position: static;
}

.faq-nav .faq-sprung li:last-child a {
  border-bottom: 0;
}

.faq-sprung a[aria-current] {
  color: var(--signal);
}

.faq-sprung a[aria-current]::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: currentColor;
  vertical-align: 0.15em;
}

.faq-gruppe + .faq-gruppe {
  margin-top: 64px;
}

.faq-gruppe > h2 {
  margin-bottom: 20px;
  font-size: clamp(1.625rem, 2.6vw, 2.125rem);
}

.faq-eintrag {
  border-top: 1px solid var(--linie);
}

.faq-gruppe .faq-eintrag:last-child {
  border-bottom: 1px solid var(--linie);
}

.faq-gruppe:has(.faq-mehr) > .faq-eintrag:last-of-type {
  border-bottom: 1px solid var(--linie);
}

.faq-mehr .faq-eintrag:first-child {
  border-top: 0;
}

.faq-mehr-knopf {
  margin-top: 24px;
}

.faq-eintrag summary {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 22px 0;
  font-size: 1.25rem;
  font-weight: 750;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

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

.faq-eintrag summary .icon {
  width: 28px;
  height: 28px;
  margin-top: 1px;
  color: var(--signal);
  transition: rotate 0.2s;
}

.faq-eintrag[open] summary .icon {
  rotate: 180deg;
}

.faq-eintrag summary:hover {
  color: var(--signal);
}

.faq-antwort {
  max-width: 70ch;
  padding-bottom: 28px;
}

.faq-antwort > * + * {
  margin-top: 0.9em;
}

.faq-antwort ul {
  padding-left: 1.2em;
}

.faq-antwort li + li {
  margin-top: 6px;
}

.faq-antwort h3 {
  font-size: 1.125rem;
  margin-top: 1.4em;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--linie);
  border-radius: 14px;
}

.table-wrap table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 1rem;
}

.table-wrap th,
.table-wrap td {
  padding: 10px 16px;
  text-align: left;
  border-bottom: 1px solid var(--linie);
}

.table-wrap th {
  background: var(--nebel);
  font-weight: 800;
}

.table-wrap tbody tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 640px) {
  .table-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
  }

  .table-wrap table {
    min-width: 0;
  }

  .table-wrap thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .table-wrap tr {
    display: block;
    margin-bottom: 10px;
    padding: 4px 16px;
    border: 1px solid var(--linie);
    border-radius: 14px;
  }

  .table-wrap td {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    padding: 8px 0;
  }

  .table-wrap td::before {
    content: attr(data-label);
    color: var(--grau);
    font-weight: 700;
  }

  /* Die erste Zelle ist der Titel der Zeile */
  .table-wrap td:first-child {
    display: block;
    font-weight: 800;
  }

  .table-wrap td:first-child::before {
    content: none;
  }

  .table-wrap tbody tr td:last-child {
    border-bottom: 0;
  }
}

.hinweis-box {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  column-gap: 18px;
  margin-top: 64px;
  padding: 28px 32px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--bordeaux) 6%, var(--weiss));
}

.hinweis-box .icon {
  grid-row: span 2;
  width: 32px;
  height: 32px;
  color: var(--signal);
}

.hinweis-box > :not(.icon) {
  grid-column: 2;
}

@media (max-width: 900px) {
  .faq-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq-nav {
    position: static;
    padding: 0;
    background: none;
  }

  .faq-sprung {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .faq-nav .faq-sprung li:last-child a {
    border-bottom: 1px solid var(--linie);
  }

  .faq-sprung a {
    padding: 8px 16px;
    border: 1px solid var(--linie);
    border-radius: var(--pill);
    font-size: 1rem;
  }
}

/* Rechtliches */

.recht {
  max-width: 68ch;
}

.recht h2 {
  margin-top: 48px;
  font-size: 1.625rem;
}

.recht h2:first-child {
  margin-top: 0;
}

.recht p,
.recht address {
  margin-top: 14px;
  font-style: normal;
}

/* Kontakt */

.kontakt {
  scroll-margin-top: -15px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--kontakt-bg);
  color: var(--weiss);
  padding-block: clamp(72px, 9vw, 128px);
}

.kontakt::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 760px;
  aspect-ratio: 1;
  left: -420px;
  bottom: -460px;
  border-radius: 50%;
  border: 18px solid var(--kontakt-ring);
  box-shadow:
    0 0 0 9px var(--kontakt-bg),
    0 0 0 14px var(--kontakt-ring-2);
  opacity: 0.9;
}

.kontakt-raster {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
}

.kontakt h2 {
  font-size: clamp(2.25rem, 4.4vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.008em;
}

.kontakt .lead {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.86);
}

.kontakt-wege {
  display: grid;
  justify-items: start;
  gap: 12px;
  margin-top: 36px;
  padding: 0;
  list-style: none;
}

.kontakt address {
  margin-top: 36px;
  font-style: normal;
  color: rgba(255, 255, 255, 0.78);
}

.formular {
  --fokus: var(--signal); /* Der Kontaktbereich setzt Weiss, auf dem weissen Formular wäre der Fokus unsichtbar (Ingrid, V5 Nr. 72) */
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius);
  background: var(--weiss);
  color: var(--tinte);
}

.formular h3 {
  margin-bottom: 24px;
  font-size: 1.5rem;
}

.feld-reihe {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}

/* Bricht eine Beschriftung um, rutschen Beschriftung und Feld der Nachbarspalte mit nach unten:
   die Felder einer Reihe bleiben so immer bündig */
.feld-reihe > .feld {
  justify-content: flex-end;
}

.feld {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.feld label,
.feld legend {
  font-weight: 700;
  font-size: 1.0625rem;
}

.feld .optional {
  color: var(--grau);
  font-weight: 500;
}

/* Nur Textfelder: Radio-Knöpfe und Häkchen haben eigene Regeln (sonst 56 px hoch, mit
   Rahmen und eckigem Fokusrahmen beim Antippen) */
.feld input:not([type="radio"], [type="checkbox"]),
.feld select,
.feld textarea {
  width: 100%;
  min-height: 56px;
  padding: 12px 16px;
  border: 2px solid #cfc4c4;
  border-radius: 14px;
  background: var(--weiss);
  color: var(--tinte);
  font: inherit;
  font-size: 1.125rem;
}

.feld textarea {
  min-height: 132px;
  resize: vertical;
}

.feld select {
  appearance: none;
  padding-right: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b63632' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 22px;
}

.feld input:not([type="radio"], [type="checkbox"]):focus,
.feld select:focus,
.feld textarea:focus {
  outline: 3px solid var(--signal);
  outline-offset: 1px;
  border-color: var(--signal);
}

fieldset.feld {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}

/* Die Legende ist kein Flex-Element des Fieldsets, darum der Abstand wie bei den Beschriftungen (gap 8px) hier */
fieldset.feld legend {
  margin-bottom: 8px;
  padding: 0;
}

.radios {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.radios label,
.check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  cursor: pointer;
}

.radios label {
  min-height: 52px;
  padding: 0 20px;
  border: 2px solid #cfc4c4;
  border-radius: 14px;
}

.radios label:has(input:checked) {
  border-color: var(--signal);
  background: #fbf1f1;
}

/* Tastatur: der Fokus zeigt sich an der ganzen Pille, nicht am kleinen Knopf */
.radios input:focus-visible {
  outline: none;
}

.radios label:has(input:focus-visible) {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
}

.radios input,
.check input {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--signal);
}

.check {
  align-items: flex-start;
  margin: 4px 0 24px;
  font-size: 1.0625rem;
  line-height: 1.45;
}

.check input {
  flex: none;
  margin-top: 2px;
}

.formular .btn {
  width: 100%;
}

.formular-status {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--nebel);
  font-size: 1rem;
}

.formular-status[hidden] {
  display: none;
}

/* Hinweis zum Datenschutz direkt über dem Knopf (statt Pflicht-Häkchen: Für die Antwort auf eine
   Anfrage braucht es keine Einwilligung, nur die Information, DSG und DSGVO Art. 6 Abs. 1 lit. b) */
.formular-hinweis {
  margin: 4px 0 20px;
  color: var(--grau);
  font-size: 1rem;
  line-height: 1.5;
}

.formular-hinweis a {
  color: inherit;
  text-decoration: underline;
}

/* Datenschutzseite: Knöpfe für Statistik und Video-Freigaben mit Rückmeldung darunter */
.datenschutz-knopf {
  margin-top: 16px;
}

.datenschutz-status {
  margin-top: 10px;
  color: var(--grau);
  font-size: 1rem;
}

/* Wörter, die nicht am Bindestrich getrennt werden sollen (z. B. «e-mail»), build.py */
.nobr {
  white-space: nowrap;
}

.formular-status--fehler {
  background: #fbe4e2;
  color: var(--tinte);
}

/* Falle für Spam-Programme: für Menschen unsichtbar, auch für Screenreader (aria-hidden) */
.feld-falle {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 960px) {
  .kontakt-raster {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .feld-reihe {
    grid-template-columns: 1fr;
  }

  .pill {
    font-size: 1.125rem;
    padding: 0 22px;
  }
}

/* Footer */

.site-footer {
  background: var(--footer-bg);
  color: rgba(255, 255, 255, 0.8);
  padding-block: 72px 40px;
  font-size: 1.0625rem;
}

.footer-raster {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.footer-marke .badge {
  display: grid;
  place-items: center;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  background: var(--weiss);
  box-shadow: 0 0 0 7px var(--signal);
}

.footer-marke .badge img {
  width: 96px;
}

.footer-marke p {
  margin-top: 28px;
  max-width: 22em;
}

.site-footer h2 {
  margin-bottom: 14px;
  color: var(--weiss);
  font-size: 1.125rem;
  letter-spacing: 0;
}

.site-footer ul {
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 8px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
}

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

.site-footer address {
  font-style: normal;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.9375rem;
}

.footer-meta p {
  display: flex;
  gap: 24px;
}

@media (max-width: 960px) {
  .footer-raster {
    grid-template-columns: 1fr 1fr;
  }

  .footer-marke {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .footer-raster {
    grid-template-columns: 1fr;
  }
}

/* Entwurfshinweise: gelbe Zettel und markierte Textvorschläge */

.notiz {
  display: none;
  position: relative;
  max-width: 560px;
  margin-block: 20px;
  padding: 14px 18px 16px;
  border-radius: 4px 16px 16px 16px;
  background: #fff1a6;
  color: #3b3000;
  font-size: 0.96875rem;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.55);
}

.notiz strong {
  display: block;
  margin-bottom: 2px;
  font-weight: 850;
}

.notiz a {
  color: inherit;
}

.hinweise-an .notiz {
  display: block;
}

.notiz--schwebend {
  position: absolute;
  z-index: 5;
  margin: 0;
}

.hinweise-an .neu {
  background-color: rgba(255, 214, 51, 0.3);
  box-shadow: 0 0 0 4px rgba(255, 214, 51, 0.3);
  border-radius: 2px;
}

.entwurf-leiste {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  max-width: calc(100vw - 32px);
  padding: 10px 10px 10px 18px;
  border-radius: 24px;
  background: #fff1a6;
  color: #3b3000;
  font-size: 0.9375rem;
  font-weight: 700;
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.5);
}

.entwurf-leiste .legende {
  display: none;
}

.entwurf-leiste a {
  color: inherit;
  font-weight: 850;
  white-space: nowrap;
}

.entwurf-leiste .varianten a {
  padding: 2px 6px;
}

.entwurf-leiste .varianten a[aria-current] {
  border-radius: 8px;
  background: #3b3000;
  color: #fff1a6;
  text-decoration: none;
}

.hinweise-an .entwurf-leiste .legende {
  display: inline;
}

.entwurf-leiste button {
  min-height: 40px;
  padding: 0 16px;
  border: 2px solid #3b3000;
  border-radius: var(--pill);
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .hinweise-an .entwurf-leiste .legende,
  .entwurf-leiste strong {
    display: none;
  }

  .entwurf-leiste {
    left: 8px;
    bottom: 8px;
    max-width: calc(100vw - 16px);
    padding: 8px 8px 8px 16px;
  }
}

/* 404: «Diese Seite steht im Stau». Links eine Stau-Anzeige wie über der Autobahn (gelbe LED-Schrift auf
   Schwarz, Blinklichter, Punktraster über der Schrift), rechts die Links als grüne Ausfahrt-Schilder.
   Die Anzeige ist für Vorleseprogramme ausgeblendet, die Meldung steht als Text daneben (.sr-only). */
.stau-raster {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}

.stau-tafel {
  --led: #ffb21a;
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  padding: clamp(36px, 5vw, 52px) clamp(20px, 4vw, 44px) clamp(28px, 4vw, 40px);
  background: #0c0b0b;
  border: 10px solid #34302f;
  border-radius: 18px;
  box-shadow: 0 18px 40px -18px rgba(31, 9, 9, 0.55);
  color: var(--led);
  container-type: inline-size;
}

/* Punktraster: deckt alles ausser den Punkten ab, so wirkt die Schrift wie aus LEDs */
.stau-tafel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: radial-gradient(circle, transparent 1.4px, #0c0b0b 1.9px) 0 0 / 4px 4px;
  pointer-events: none;
}

.stau-dreieck {
  flex: none;
  width: 17cqi;
  max-width: 96px;
  height: auto;
  filter: drop-shadow(0 0 6px rgba(255, 178, 26, 0.6));
}

.stau-text {
  display: grid;
  margin: 0;
  font-size: min(6.8cqi, 2.75rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.05em;
  white-space: nowrap;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(255, 178, 26, 0.65);
}

.stau-lampe {
  position: absolute;
  z-index: 1;
  top: 12px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--led);
  box-shadow: 0 0 12px 3px rgba(255, 178, 26, 0.7);
  animation: stau-blinken 1.2s steps(1) infinite;
}

.stau-lampe:first-child {
  left: 14px;
}

.stau-lampe:nth-child(2) {
  right: 14px;
  animation-delay: 0.6s;
}

@keyframes stau-blinken {
  50% { opacity: 0.15; box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  .stau-lampe {
    animation: none;
  }
}

.stau-meldung {
  margin-top: 24px;
  font-size: 1.25rem;
}

.stau-titel {
  margin-bottom: 20px;
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
}

.ausfahrten {
  display: grid;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Grün wie die Autobahn-Wegweiser, mit weisser Innenlinie */
.ausfahrten a {
  --schild: #0b7d45;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 20px;
  background: var(--schild);
  color: var(--weiss);
  font-size: 1.125rem;
  font-weight: 800;
  text-decoration: none;
  border-radius: 10px;
  box-shadow: inset 0 0 0 4px var(--schild), inset 0 0 0 6px var(--weiss);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.ausfahrten a:hover {
  --schild: #08683a;
  transform: translateX(4px);
}

.ausfahrten .icon {
  margin-left: auto;
  flex: none;
}

.ausfahrt-nr {
  flex: none;
  min-width: 1.9em;
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--weiss);
  color: #0b7d45;
  font-size: 0.9375rem;
  font-weight: 900;
  text-align: center;
}

@media (max-width: 860px) {
  .stau-raster {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 420px) {
  .stau-dreieck {
    display: none;
  }

  .stau-text {
    font-size: 9cqi;
  }
}
