/* l-theory.ch, Marketing-CI Gelb. Keine Inline-Styles erlaubt (CSP style-src 'self'). */

@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/Barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/Barlow-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/Barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/Barlow-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-style: normal; font-display: swap; src: url("/fonts/BarlowCondensed-800.woff2") format("woff2"); }

:root {
  --gelb: #FFE24A;
  --tinte: #151515;
  --creme: #FFF9EF;
  --blau: #016DC4;
  --weiss: #FFFFFF;
  --linie: #D9D2C2;
  --gedaempft: #5C5648;
  --gruen: #1E7B34;
  --rot: #C0262D;
  --signal: #FF6A00; /* Signalorange (Leitkegel), nur als kleiner Akzent, nie als Fläche */
  --rand: clamp(20px, 4.5vw, 64px);
  --abstand: clamp(56px, 8vw, 104px);
  --schrift: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --schrift-plakat: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--gelb);
  color: var(--tinte);
  font-family: var(--schrift);
  font-size: 18px;
  line-height: 1.5;
}

.layout-legal, .layout-ratgeber { background: var(--weiss); }

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

a { color: inherit; text-underline-offset: 3px; }
a:hover { color: #0158A0; }

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

.sprunglink {
  position: absolute; left: 12px; top: -60px;
  padding: 10px 16px; background: var(--tinte); color: var(--gelb);
  border-radius: 8px; z-index: 30; text-decoration: none; font-weight: 700;
}
.sprunglink:focus { top: 12px; }

/* ---------- Typografie ---------- */

.riesig, .gross, .mittel, .preis-zahl, .preis-text {
  font-family: var(--schrift-plakat);
  font-weight: 800;
  margin: 0;
  text-wrap: balance;
}
.riesig { font-size: clamp(64px, 11vw, 160px); line-height: 0.84; letter-spacing: -0.02em; }
@media (min-width: 960px) {
  /* Höchstens so gross, dass der Titel in die linke Spalte passt (Breite etwa 6.15 em). */
  .quiz-titel { font-size: min(clamp(72px, min(9vw, 13.5vh), 150px), calc((100vw - 2 * var(--rand) - 48px) / 2 / 6.15)); }
}
.gross { font-size: clamp(48px, 7.2vw, 104px); line-height: 0.9; letter-spacing: -0.01em; }
.mittel { font-size: clamp(30px, 3.4vw, 44px); line-height: 1; }
.lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; margin: 0; max-width: 36em; }
.klein { font-size: 16px; margin: 0; }

/* ---------- Knöpfe ---------- */

.knopf {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 30px;
  background: var(--tinte); color: var(--gelb);
  border: 3px solid var(--tinte); border-radius: 999px;
  font: 700 19px/1 var(--schrift); text-decoration: none; cursor: pointer;
}
.knopf:hover { color: var(--weiss); }
.knopf-blau { background: var(--blau); border-color: var(--blau); color: var(--weiss); }
.knopf-blau:hover { background: #01569B; border-color: #01569B; color: var(--weiss); }
.knopf-rand { background: transparent; color: var(--tinte); }
.knopf-rand:hover { color: var(--blau); }
.knopf-klein { min-height: 46px; padding: 0 20px; font-size: 17px; }
.textlink { font-weight: 700; font-size: 19px; }
.knopfreihe { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }

/* ---------- Kopf und Fuss ---------- */

.kopf {
  display: flex; align-items: center; gap: 24px;
  padding: 14px var(--rand);
}
.marke {
  display: inline-flex; align-items: center; gap: 12px;
  font: 800 28px/1 var(--schrift-plakat); text-decoration: none; margin-right: auto;
}
.marke-text { display: flex; flex-direction: column; gap: 4px; }
.marke-zeile { font: 600 13px/1.1 var(--schrift); letter-spacing: 0.01em; }
.marke-zeile, .kopf .knopf { white-space: nowrap; }
/* Logo so hoch wie der Knopf "Gratis üben": 40 px bis 599, darüber 46 px. */
.marke img { width: 46px; height: 46px; filter: drop-shadow(0 2px 5px rgba(21, 21, 21, 0.4)); }
@media (max-width: 599px) { .marke img { width: 40px; height: 40px; } }
/* Schmale Handys: Name einzeilig, Unterzeile erst ab 400 px, damit nichts in den Knopf läuft. */
.marke-text { white-space: nowrap; }
@media (max-width: 480px) {
  .kopf { gap: 10px; }
  .marke { gap: 8px; font-size: 22px; }
  .marke-zeile { font-size: 10.5px; }
}
@media (max-width: 399px) {
  .marke-zeile { display: none; }
}
@media (max-width: 359px) {
  .kopf { gap: 8px; }
  .marke { gap: 6px; font-size: 19px; }
}
.unsichtbar {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
@media (max-width: 599px) { .nur-breit { display: none; } }
.kopf-nav { display: none; gap: 8px; font-weight: 600; }
.kopf-nav a {
  padding: 9px 16px; border: 2px solid var(--tinte); border-radius: 999px;
  text-decoration: none; font-size: 16px; line-height: 1; white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.kopf-nav a:hover { background: var(--tinte); color: var(--gelb); }
.kopf-nav a.nav-neu { background: var(--tinte); color: var(--gelb); }
.kopf-nav a.nav-neu:hover { background: var(--blau); border-color: var(--blau); color: var(--weiss); }
@media (min-width: 1200px) { .kopf-nav { display: flex; } }
/* Mit Navigation und Sprachwahl wird es bis 1439 px eng: Knöpfe schmaler, Unterzeile der Marke weg. */
@media (min-width: 1200px) and (max-width: 1439px) {
  .kopf { gap: 14px; }
  .kopf-nav { gap: 6px; }
  .kopf-nav a { padding: 9px 11px; }
  .kopf .marke-zeile { display: none; }
}
@media (prefers-reduced-motion: reduce) { .kopf-nav a { transition: none; } }

.fuss {
  background: var(--tinte); color: #E8E3D6;
  padding: 40px var(--rand) 28px;
  display: grid; gap: 28px; font-size: 16px;
}
.fuss a { color: #E8E3D6; }
.fuss a:hover { color: var(--gelb); }
.fuss-oben { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.fuss-marke { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 24px/1 var(--schrift-plakat); white-space: nowrap; }
.fuss-recht { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.fuss-social { display: flex; gap: 12px; }
.fuss-social a {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 2px solid rgba(232, 227, 214, 0.35); border-radius: 50%;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.fuss-social a:hover { border-color: var(--gelb); }
.fuss-social svg { width: 20px; height: 20px; }
@media (prefers-reduced-motion: reduce) { .fuss-social a { transition: none; } }
/* Ab 900 px (Wunsch Simon 01.11.2026): Logo und Social links, die Links rechts auf einer Zeile.
   Ist die Zeile zu kurz, rutschen die Links als Ganzes in eine eigene Zeile darunter.
   Abstand 16 px, damit der französische Fuss mit «Aide» auch bei 1280 px auf einer Zeile bleibt. */
@media (min-width: 900px) {
  .fuss-oben { justify-content: flex-start; gap: 20px 32px; }
  .fuss-recht { margin-left: auto; justify-content: flex-end; gap: 10px 16px; font-size: 15px; }
  .fuss-social { gap: 10px; }
  .fuss-social a { width: 40px; height: 40px; }
}

/* ---------- Hero mit Quiz ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "kopf" "titel" "bild" "quiz" "steuerung";
  gap: 20px;
  padding: 16px var(--rand) var(--abstand);
}
.quiz-kopf { grid-area: kopf; display: flex; align-items: center; gap: 14px; font-weight: 600; font-size: 16px; }
.quiz-kontext { display: inline-flex; align-items: center; gap: 10px; }
.quiz-aufruf {
  display: inline-block; padding: 5px 11px 6px; border-radius: 3px;
  background: var(--signal); color: var(--tinte); font-weight: 700; line-height: 1.2;
  transform: rotate(-2deg);
}
.quiz-titel { grid-area: titel; padding-bottom: 0.08em; }
/* Unterzeile in derselben H1: sagt Google und Screenreadern, worum es geht. */
.quiz-titel-gross, .quiz-titel-unter { display: block; }
.quiz-titel-unter { margin-top: 0.55em; font: 600 clamp(17px, 1.6vw, 22px)/1.25 var(--schrift); letter-spacing: 0; }
.hero-rechts { display: contents; }
.hero-mehr { display: none; }
@media (min-width: 960px) {
  .hero-mehr {
    grid-area: mehr; align-self: start; justify-self: start; margin-top: 22px;
    display: inline-flex; align-items: center; gap: 12px;
    font: 800 clamp(24px, 2vw, 30px)/1 var(--schrift-plakat);
    text-decoration: none; color: var(--tinte);
  }
  .hero-mehr-icon {
    display: inline-grid; place-items: center; flex: none;
    width: 1.5em; height: 1.5em; border-radius: 50%;
    background: var(--tinte); color: var(--gelb);
    transition: transform 0.2s ease;
  }
  .hero-mehr-text {
    padding-bottom: 6px; white-space: nowrap;
    background: linear-gradient(currentColor, currentColor) left bottom / 100% 3px no-repeat;
  }
  .hero-mehr > svg { width: 0.9em; height: 0.9em; transition: transform 0.2s ease; }
  .hero-mehr-l { display: inline-block; width: 0.8em; height: 0.8em; vertical-align: -0.04em; margin: 0 0.07em 0 0.02em; }
  .hero-mehr:hover .hero-mehr-icon { transform: rotate(-10deg); }
  .hero-mehr:hover > svg { transform: translateY(3px); }
  @media (prefers-reduced-motion: reduce) {
    .hero-mehr-icon, .hero-mehr > svg { transition: none; }
  }
}
.hero-bild { grid-area: bild; margin: 0; }
.quiz-aufloesung { grid-area: bild; }
.quiz-steuerung { grid-area: steuerung; }
.quiz-lauf, .quiz-ergebnis { grid-area: quiz; display: flex; flex-direction: column; gap: 18px; }

@media (min-width: 960px) {
  .hero {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "kopf rechts" "titel rechts" "quiz rechts" "steuerung rechts" "mehr rechts";
    grid-template-rows: auto auto auto auto 1fr;
    column-gap: 48px; row-gap: 16px;
    padding-top: 12px;
  }
  .hero-rechts { grid-area: rechts; display: flex; flex-direction: column; gap: 16px; align-self: start; min-width: 0; }
  .hero-bild img { max-height: max(240px, calc(100vh - 380px)); }
  .quiz-steuerung { align-self: start; }
  .quiz-ergebnis { grid-row: 3 / 5; }
}

.quiz-fortschritt { display: inline-flex; gap: 6px; }
.segment { width: 48px; height: 8px; border-radius: 4px; background: rgba(21, 21, 21, 0.2); }
.segment.ist-aktiv { background: var(--tinte); }

.hero-bild img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  border: 4px solid var(--tinte); border-radius: 22px;
}
.hero-bild { position: relative; }
/* Sticker oben links im Bild: sagt, dass man sofort loslegt. Klebt sich beim
   Laden auf und zieht sich beim ersten Antippen einer Antwort ab (quiz.js). */
.quiz-sticker {
  position: absolute; left: -8px; top: 8px; z-index: 2; pointer-events: none;
  padding: 9px 30px 11px 13px;
  font: 800 21px/0.95 var(--schrift-plakat); text-transform: uppercase; letter-spacing: 0.01em; color: var(--tinte);
  background: linear-gradient(315deg, transparent 15px, var(--signal) 15px);
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.28));
  transform: rotate(-4deg);
  animation: sticker-kleben 0.45s cubic-bezier(0.2, 1.6, 0.4, 1) 0.5s both, sticker-puls 2.4s ease-in-out 1.4s 3;
}
.quiz-sticker[hidden] { display: none; }
/* Umgeklappte Ecke */
.quiz-sticker::after {
  content: ""; position: absolute; right: 0; bottom: 0; width: 21px; height: 21px;
  background: linear-gradient(315deg, transparent 50%, #FFC499 50%);
  border-radius: 0 0 0 4px; box-shadow: -2px -2px 3px rgba(0, 0, 0, 0.15);
}
.quiz-sticker-unter { display: block; margin-top: 5px; font: 700 13px/1.2 var(--schrift); text-transform: none; letter-spacing: 0; }
.quiz-sticker .ort-links { display: none; }
@media (min-width: 960px) {
  .quiz-sticker .ort-unten { display: none; }
  .quiz-sticker .ort-links { display: inline; }
}
.quiz-sticker.ist-weg { animation: sticker-abziehen 0.5s ease-in forwards; }
@keyframes sticker-kleben {
  from { opacity: 0; transform: rotate(-4deg) scale(1.5); }
  to { opacity: 1; transform: rotate(-4deg) scale(1); }
}
@keyframes sticker-puls {
  0%, 100% { transform: rotate(-4deg) scale(1); }
  50% { transform: rotate(-4deg) scale(1.06); }
}
@keyframes sticker-abziehen {
  to { opacity: 0; transform: rotate(-29deg) translate(-40px, -50px) scale(0.8); }
}
@media (prefers-reduced-motion: reduce) {
  .quiz-sticker, .quiz-sticker.ist-weg { animation: none; }
}
.hero-bild figcaption {
  position: absolute; left: 14px; bottom: 14px;
  padding: 5px 10px; border-radius: 8px;
  background: var(--tinte); color: var(--weiss);
  font-weight: 600; font-size: 15px; line-height: 1.2;
}

.quiz-frage { margin: 0; font-size: clamp(21px, 1.9vw, 26px); line-height: 1.3; font-weight: 600; max-width: 30em; }

.quiz-antworten { display: flex; flex-direction: column; gap: 12px; max-width: 620px; }
.antwort {
  position: relative; display: flex; align-items: center; gap: 16px;
  min-height: 62px; padding: 14px 20px; width: 100%;
  text-align: left; font: 600 clamp(17px, 1.5vw, 20px)/1.25 var(--schrift);
  background: var(--creme); color: var(--tinte);
  border: 3px solid var(--tinte); border-radius: 14px; cursor: pointer;
}
.antwort:hover { background: var(--weiss); }
/* Ankreuzkästchen: zeigt, dass man mehrere Antworten antippen kann. Gewählt
   zeigt es ein neutrales Quadrat, erst nach dem Prüfen Haken oder Kreuz. Das
   Ergebnis braucht so keinen zusätzlichen Platz, keine Antwort ändert ihre Höhe. */
.antwort::before {
  content: ""; flex: none; width: 24px; height: 24px; box-sizing: border-box;
  border: 3px solid currentColor; border-radius: 6px; background: var(--weiss);
}
.antwort[aria-pressed="true"]::before {
  border-color: var(--weiss);
  background: var(--weiss) linear-gradient(var(--blau), var(--blau)) center / 10px 10px no-repeat;
}
.antwort.ist-richtig::before {
  background: var(--weiss) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7' fill='none' stroke='%231E7B34' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.antwort.ist-falsch::before {
  background: var(--weiss) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 7l10 10M17 7L7 17' fill='none' stroke='%23C0262D' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.antwort-text { flex: 1; }
/* Hochkontrast: Farbverläufe fallen weg, dort füllt die Systemfarbe das Kästchen. */
@media (forced-colors: active) {
  .antwort[aria-pressed="true"]:not(.ist-richtig):not(.ist-falsch)::before {
    forced-color-adjust: none; background: Highlight; border-color: CanvasText;
  }
}
.antwort[aria-pressed="true"] { background: var(--blau); border-color: var(--blau); color: var(--weiss); }
.antwort-marke { font-size: 15px; font-weight: 700; white-space: nowrap; }
.antwort.ist-richtig { background: var(--gruen); border-color: var(--gruen); color: var(--weiss); }
.antwort.ist-verpasst { background: var(--weiss); border-color: var(--gruen); color: var(--gruen); }
.antwort.ist-falsch { background: var(--rot); border-color: var(--rot); color: var(--weiss); }
/* Die Marke liegt ausserhalb des Flusses: Bei richtig und falsch trägt sie nur
   den Text für Vorleseprogramme, bei "auch richtig" sitzt sie als Etikett auf
   dem oberen Rand, mit etwas Abstand zur Antwort darüber. */
.antwort-marke { position: absolute; }
.antwort.ist-verpasst .antwort-marke {
  right: 14px; top: -10px; padding: 3px 8px; border-radius: 999px;
  background: var(--gruen); color: var(--weiss); font-size: 12px; line-height: 1;
}
.antwort.ist-aus { background: var(--creme); color: var(--gedaempft); border-color: var(--gedaempft); }
.antwort[aria-disabled="true"] { cursor: default; }

.quiz-aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.quiz-hinweis { font-weight: 500; font-size: 17px; }
@media (max-width: 959px) { .quiz-hinweis.ist-tipp { display: none; } }

.quiz-aufloesung {
  background: var(--weiss); color: var(--tinte); border: 3px solid var(--tinte);
  border-radius: 22px; padding: 18px 22px; max-width: 620px;
}
.quiz-erklaerung { font-size: 17px; line-height: 1.5; }
@media (min-width: 960px) {
  .quiz-aufloesung { max-width: none; }
}
@media (max-width: 959px) {
  .quiz-steuerung.ist-klebend { position: sticky; bottom: 12px; z-index: 2; }
}
.quiz-hinweis.ist-fehler { color: var(--rot); font-weight: 700; animation: wackeln 0.4s ease; }
@keyframes wackeln {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-3px); }
}
.quiz-hinweis { display: inline-block; }

/* Ergebnis: Medaille statt Fragebild, gleiche Fläche wie das Bild. */
.quiz-medaille {
  grid-area: bild; position: relative; display: block;
  aspect-ratio: 3 / 2; background: var(--creme);
  border: 4px solid var(--tinte); border-radius: 22px;
}
.quiz-medaille { overflow: hidden; min-height: 0; align-self: start; width: 100%; }
/* Absolut, damit die Grafik die Kartenhöhe nicht aufbläht: die Karte hat immer 3:2 wie das Bild. */
.quiz-medaille svg {
  position: absolute; top: 11%; bottom: 11%; left: 0; right: 0; margin: auto;
  height: 78%; width: auto; overflow: visible;
}
.quiz-medaille .medaille, .quiz-medaille .leitkegel { animation: medaille-rein 0.6s cubic-bezier(0.3, 1.5, 0.5, 1) both; }
.quiz-medaille.ist-kegel .medaille, .quiz-medaille:not(.ist-kegel) .leitkegel { display: none; }
.medaille-band { fill: var(--blau); stroke: var(--tinte); stroke-width: 6; stroke-linejoin: round; }
.medaille-band-r { fill: #0158A0; }
.medaille-scheibe { fill: var(--m-fuellung); stroke: var(--tinte); stroke-width: 6; }
.medaille-ring { fill: none; stroke: var(--m-rand); stroke-width: 5; }
.medaille-zahl { font: 800 46px/1 var(--schrift-plakat); fill: var(--tinte); }
.ist-gold { --m-fuellung: #F5C518; --m-rand: #B8860B; }
.ist-silber { --m-fuellung: #D5D9DE; --m-rand: #8E959C; }
.ist-bronze { --m-fuellung: #D98C4A; --m-rand: #8C5422; }
.leitkegel-koerper, .leitkegel-fuss { fill: var(--signal); stroke: var(--tinte); stroke-width: 6; stroke-linejoin: round; }
.leitkegel-streifen { fill: var(--weiss); }
.quiz-medaille-name {
  position: absolute; left: 14px; bottom: 14px; margin: 0;
  padding: 5px 10px; border-radius: 8px; background: var(--tinte); color: var(--weiss);
  font-weight: 600; font-size: 15px; line-height: 1.2;
}
@keyframes medaille-rein {
  from { transform: scale(0.6) rotate(-12deg); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@media (max-width: 959px) {
  .quiz-medaille { border-width: 3px; border-radius: 16px; }
  .quiz-medaille-name { left: 10px; bottom: 10px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .quiz-medaille .medaille, .quiz-medaille .leitkegel, .quiz-hinweis.ist-fehler { animation: none; }
}

.karte-wenden { display: none; }

/* Handy: Bild und Erklärung sind Vorder- und Rückseite derselben Karte. Nach
   dem Prüfen dreht sie sich um, die Erklärung steht dort, wo das Bild war, und
   nichts verschiebt sich. Die Rückseite ist so hoch wie das Bild
   (contain: size), längere Erklärungen scrollen in der Karte. */
@media (max-width: 959px) {
  .hero-bild, .quiz-aufloesung {
    backface-visibility: hidden; -webkit-backface-visibility: hidden;
    transition: transform 0.6s cubic-bezier(0.3, 0.7, 0.2, 1), opacity 0.3s ease;
  }
  .hero-bild { transform: perspective(1400px) rotateY(0deg); }
  .quiz-aufloesung {
    contain: size; align-self: stretch; position: relative;
    display: flex; flex-direction: column; padding: 0; overflow: hidden; max-width: none;
    border-radius: 16px; transform: perspective(1400px) rotateY(-180deg);
  }
  .hero.ist-umgedreht .hero-bild { transform: perspective(1400px) rotateY(180deg); }
  .hero.ist-umgedreht .quiz-aufloesung { transform: perspective(1400px) rotateY(0deg); }
  .quiz-aufloesung-text { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 16px 50px; overscroll-behavior: contain; }
  .quiz-aufloesung-text:focus-visible { outline-offset: -4px; }
  /* Unten blendet der Text unter dem Knopf aus, so sieht man, dass er weitergeht. */
  .quiz-aufloesung::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 54px; pointer-events: none;
    background: linear-gradient(rgba(255, 255, 255, 0), var(--weiss) 70%);
  }
  .quiz-aufloesung .karte-wenden { z-index: 1; }
  .quiz-urteil { font-size: 26px; }
  .quiz-erklaerung { font-size: 15.5px; line-height: 1.45; }
  .karte-wenden {
    display: inline-flex; align-items: center; position: absolute; right: 10px; bottom: 10px;
    min-height: 34px; padding: 0 14px; border: 2px solid var(--tinte); border-radius: 999px;
    background: var(--gelb); color: var(--tinte); font: 700 15px/1 var(--schrift); cursor: pointer;
  }
  .karte-wenden[hidden] { display: none !important; }
  /* "Erklärung" sitzt an derselben Stelle wie "Bild" auf der Rückseite (deren
     Rahmen ist 3 px, das Bild hat ihn am img), so wechselt man mit dem Daumen
     hin und her. Daneben bricht das Kapitel um (Klasse aus quiz.js, die
     Reserve in em wächst mit grösserer Schrift mit). */
  .hero-bild .karte-wenden { right: 13px; bottom: 13px; }
  .hero-bild.mit-knopf figcaption { max-width: calc(100% - 9.5em); }
  .quiz-aufloesung, .hero.ist-umgedreht .hero-bild { pointer-events: none; }
  .hero.ist-umgedreht .quiz-aufloesung { pointer-events: auto; }
}
@media (max-width: 959px) and (prefers-reduced-motion: reduce) {
  .hero-bild, .quiz-aufloesung { transform: none !important; transition: opacity 0.25s ease; }
  .quiz-aufloesung { opacity: 0; }
  .hero.ist-umgedreht .hero-bild { opacity: 0; }
  .hero.ist-umgedreht .quiz-aufloesung { opacity: 1; }
}

.quiz-aufloesung p { margin: 0; }
.quiz-aufloesung p + p { margin-top: 8px; }
.quiz-urteil { font: 800 30px/1 var(--schrift-plakat); }
.quiz-urteil.ist-gut { color: var(--gruen); }
.quiz-urteil.ist-schlecht { color: var(--rot); }

.quiz-ohne-js { margin: 0; font-weight: 600; }

/* Handy: Titel einzeilig, Bild flacher, Antworten kompakter, damit beim
   Laden Frage und alle Antworten möglichst ohne Scrollen sichtbar sind. */
@media (max-width: 959px) {
  .hero { gap: 10px; padding-top: 16px; }
  .quiz-titel { font-size: min(96px, calc((100vw - 2 * var(--rand)) / 6.2)); }
  /* Unterzeile ab 360 px Breite einzeilig (Textbreite etwa 20 Zeichenbreiten), darunter zweizeilig. */
  .quiz-titel-unter { font-size: clamp(15px, calc((100vw - 2 * var(--rand)) / 20.6), 17px); }
  .hero-bild img { border-width: 3px; border-radius: 16px; }
  .hero-bild figcaption { left: 10px; bottom: 10px; font-size: 14px; }
  .quiz-lauf { gap: 10px; }
  .quiz-frage { font-size: 19px; }
  .quiz-antworten { gap: 10px; }
  .antwort { min-height: 50px; padding: 9px 14px; font-size: 16px; border-radius: 12px; }
}
@media (max-width: 599px) {
  /* Alles im Kopf 40 px hoch, oben und unten je 10 px Luft. Der Menüknopf braucht
     die höhere Spezifität, weil seine Grundregel weiter unten steht. */
  .kopf { padding-top: 10px; padding-bottom: 10px; }
  .kopf .knopf-klein { min-height: 40px; padding: 0 16px; font-size: 16px; }
  .kopf .menue-knopf { width: 40px; height: 40px; }
  /* Hero kompakter, damit "Antwort prüfen" trotz Unterzeile im ersten Bildschirm bleibt. */
  .hero { gap: 7px; }
  .quiz-titel-unter { margin-top: 0.35em; }
  .hero-bild img, .quiz-medaille { aspect-ratio: 16 / 10; }
}
@media (max-width: 359px) {
  .kopf .knopf-klein { padding: 0 12px; font-size: 15px; }
}
/* Kurze Handys, etwa im Instagram-Browser (Auftrag Marketing 30.10.2026): Bild an die
   Bildschirmhöhe gekoppelt und zugeschnitten, Titel kleiner, Kopfzeile und Antworten
   enger. So stehen beim Laden alle drei Antworten und "Antwort prüfen" im Bild. Ab 741 px
   Höhe und am Desktop bleibt alles wie oben. Die Unterzeile bleibt für Vorleseprogramme
   in der H1. svh misst mit eingeblendeter Browserleiste, vh ist der Rückfall. */
@media (max-width: 959px) and (max-height: 740px) {
  .hero { gap: 6px; padding-top: 8px; }
  .quiz-kopf { gap: 10px; font-size: 14px; }
  .quiz-aufruf { padding: 3px 9px 4px; }
  .segment { width: 32px; height: 6px; }
  .quiz-titel { font-size: min(46px, calc((100vw - 2 * var(--rand)) / 6.2)); }
  .quiz-titel-unter {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  }
  .hero-bild img {
    aspect-ratio: auto;
    height: clamp(150px, calc(100vh - 450px), 220px);
    height: clamp(150px, calc(100svh - 450px), 220px);
  }
  /* Der Sticker deckt sonst zu viel vom niedrigeren Bild. scale statt transform, weil
     die Animationen transform setzen. */
  .quiz-sticker { scale: 0.85; transform-origin: top left; }
  /* Ausschnitt je Bild, damit die Verkehrssituation erkennbar bleibt. Die Kreuzung von
     oben braucht das ganze Bild (Tram oben, grüner Wagen und Signal unten), sie steht
     deshalb vollständig auf Asphaltgrau. Unbekannte Bilder bleiben mittig zugeschnitten. */
  #quiz-bild[data-frage="LT-0032"] { object-position: 50% 55%; }
  #quiz-bild[data-frage="LT-0257"] { object-position: 50% 45%; }
  #quiz-bild[data-frage="LT-0313"] { object-fit: contain; background: #9A9C9E; }
  /* Im niedrigen Bild läge die Kapitelzeile genau auf dem grünen Wagen. */
  #quiz-bild[data-frage="LT-0313"] + figcaption { display: none; }
  .quiz-lauf, .quiz-antworten { gap: 6px; }
  .antwort { min-height: 46px; padding: 6px 14px; }
  /* Die Rückseite ist so niedrig wie das Bild: Urteil kleiner, damit darunter noch
     Erklärung zu sehen ist. */
  .quiz-aufloesung-text { padding-top: 10px; }
  .quiz-urteil { font-size: 22px; }
}
@media (max-width: 959px) and (max-height: 600px) {
  .quiz-titel { font-size: min(40px, calc((100vw - 2 * var(--rand)) / 6.2)); }
  /* 130 px: So bleibt "Antwort prüfen" ganz im Bild, und der klebende Knopf deckt nach
     dem Prüfen die dritte Antwort nicht an. */
  .hero-bild img { height: 130px; }
  .antwort { font-size: 15px; }
  .quiz-urteil { font-size: 20px; }
}

[hidden] { display: none !important; }

/* ---------- Abschnitte ---------- */

.abschnitt {
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: 40px; padding: var(--abstand) var(--rand); align-items: center;
}
@media (min-width: 960px) {
  .abschnitt { grid-template-columns: 7fr 5fr; column-gap: 64px; }
}
.spalte-text { display: flex; flex-direction: column; gap: 24px; }
.abschnitt-creme { background: var(--creme); }
.abschnitt-blau { background: var(--blau); color: var(--weiss); }
.abschnitt-blau :focus-visible { outline-color: var(--gelb); }
.abschnitt-blau a { color: var(--weiss); }
.abschnitt-gelb { background: var(--gelb); align-items: end; }
.abschnitt-weiss { background: var(--weiss); border-top: 4px solid var(--tinte); align-items: start; }
.abschnitt-streifen {
  background: var(--weiss); border-top: 4px solid var(--tinte);
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  padding-top: 44px; padding-bottom: 48px; text-align: left;
}
.abschnitt-streifen p { margin: 0; }

.telefon {
  width: min(280px, 70vw); border: 10px solid var(--tinte); border-radius: 44px;
  background: var(--tinte);
}
/* align-items: flex-start, sonst streckt Flexbox das linke Handy auf die Höhe
   des versetzten rechten, und das Bild wird verzerrt. */
.telefone { display: flex; justify-content: center; align-items: flex-start; gap: 0; }
.telefon-links { transform: rotate(-4deg); margin-right: -6px; }
.telefon-rechts { transform: rotate(4deg); margin-top: 60px; }
.telefon-schraeg { transform: rotate(3deg); margin: 0 auto; }
/* Desktop: Handys so gross, dass jeder Abschnitt auf eine Bildschirmhöhe
   passt (Bildverhältnis 600:1298, abzüglich Abschnitt-Polster und Versatz). */
@media (min-width: 960px) {
  .telefone .telefon { width: min(280px, calc((100vh - 2 * var(--abstand) - 100px) * 0.45), 19vw); }
  .telefon-schraeg { width: min(280px, calc((100vh - 2 * var(--abstand) - 40px) * 0.45)); }
}
@media (min-width: 960px) and (max-height: 820px) {
  .abschnitt .kapitel li { padding-block: 8px; font-size: 18px; }
}
@media (max-width: 599px) {
  .telefon { width: 46vw; border-width: 6px; border-radius: 28px; }
  .telefon-links { margin-right: -4px; }
}

.liste-titel { font: 700 18px/1.3 var(--schrift); margin: 0 0 8px; }
.kapitel { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--tinte); counter-reset: kapitel; }
.kapitel li {
  counter-increment: kapitel; display: flex; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid var(--linie); font-weight: 600; font-size: 20px;
}
.kapitel li::before { content: counter(kapitel); min-width: 1.6em; font-family: var(--schrift-plakat); font-weight: 800; }

.preis h2 { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.preis-zahl { font-size: clamp(120px, 17vw, 220px); line-height: 0.82; letter-spacing: -0.03em; }
.preis-text { font-size: clamp(32px, 3.6vw, 52px); line-height: 1; }
.preis-rechts { display: flex; flex-direction: column; gap: 22px; }

/* Alle Kacheln gleich hoch (höchste Kachel bestimmt), Inhalt senkrecht mittig. */
.plattformen { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-rows: 1fr; gap: 14px; }
.plattformen li {
  display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; align-items: center; align-content: center;
  background: var(--weiss); border: 3px solid var(--tinte); border-radius: 18px; padding: 16px 20px;
}
.plattformen svg { grid-row: span 3; width: 40px; height: 40px; }
.plattform-name { font: 800 clamp(26px, 2.4vw, 32px)/1 var(--schrift-plakat); }
.plattform-status { font-weight: 600; color: var(--gedaempft); }
.plattformen .ist-da { background: var(--blau); border-color: var(--blau); color: var(--weiss); }
.plattformen .ist-da .plattform-status { color: var(--weiss); font-weight: 700; }
.plattform-link { color: var(--weiss); font-weight: 700; }
.plattform-link:hover { color: var(--gelb); }
.plattform-link:focus-visible { outline-color: var(--weiss); }
/* Offizielles Apple-Badge, unverändert. Apple: mindestens 40 px hoch, Freiraum ein Viertel der Höhe. */
.app-store-badge { justify-self: start; margin-top: 12px; line-height: 0; border-radius: 8px; }
.app-store-badge img { display: block; width: auto; height: 44px; }
.app-store-badge:focus-visible { outline: 3px solid var(--weiss); outline-offset: 3px; }
.plattformen-spalte { display: flex; flex-direction: column; gap: 14px; }

.faq { border-top: 3px solid var(--tinte); max-width: 760px; }
.faq details { border-bottom: 1px solid #D5D5D5; padding: 20px 0; }
.faq summary {
  cursor: pointer; list-style: none; font-weight: 700; font-size: clamp(20px, 1.8vw, 24px);
  display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--schrift-plakat); font-size: 30px; line-height: 0.8; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 12px 0 0; max-width: 40em; }

/* ---------- Laptop mit Handy (Abschnitt Prüfung) ---------- */

@media (min-width: 960px) {
  .abschnitt-geraete { grid-template-columns: 5fr 7fr; }
  .abschnitt-geraete .gross { font-size: min(clamp(44px, 7vw, 108px), 11.5vh); }
}
.geraete { position: relative; padding: 0 0 8% 0; }
.laptop { margin: 0; width: 92%; }
.laptop-schirm {
  background: var(--tinte); padding: 2.2% 2.2% 3.2%;
  border-radius: 18px 18px 6px 6px; box-shadow: 0 0 0 2px #3A3A3A inset;
}
.laptop-schirm img { display: block; width: 100%; height: auto; border-radius: 4px; }
.laptop-basis {
  height: 14px; margin: 0 -6%; border-radius: 0 0 16px 16px;
  background: linear-gradient(#D8D8D8, #9C9C9C); box-shadow: 0 6px 0 rgba(0, 0, 0, 0.18);
}
.geraete-telefon {
  position: absolute; right: 0; bottom: 0; width: 26%;
  border-width: 7px; border-radius: 26px; transform: rotate(4deg);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}
@media (max-width: 599px) {
  .geraete-telefon { width: 30%; border-width: 5px; border-radius: 18px; }
  .laptop-schirm { border-radius: 12px 12px 4px 4px; }
  .laptop-basis { height: 9px; }
}

/* ---------- Burger-Menü (unter 1100 px) ---------- */

.menue-knopf {
  order: 3; display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0;
  border: 2px solid var(--tinte); border-radius: 12px; background: transparent; color: var(--tinte); cursor: pointer;
}
.menue-knopf svg { width: 22px; height: 22px; }
.menue-knopf:hover { background: var(--tinte); color: var(--gelb); }
@media (min-width: 1200px) { .menue-knopf { display: none; } }
.menue {
  position: fixed; inset: 0 0 auto 0; margin: 0; width: auto; max-width: none;
  padding: 0; border: 0; border-bottom: 4px solid var(--tinte);
  background: var(--creme); color: var(--tinte);
}
.menue::backdrop { background: rgba(21, 21, 21, 0.35); }
.menue-kopf { background: var(--gelb); box-shadow: 0 1px 0 rgba(21, 21, 21, 0.15); }
.menue-links { display: flex; flex-direction: column; gap: 2px; padding: 18px var(--rand) 26px; }
.menue-links a { font: 800 34px/1.15 var(--schrift-plakat); text-decoration: none; padding: 6px 0; }
.menue-links a:hover { color: var(--blau); }
.menue-links a.nav-neu { align-self: flex-start; margin-top: 8px; padding: 6px 14px; border-radius: 10px; background: var(--tinte); color: var(--gelb); }

/* ---------- Sprachwahl: im Kopf ab 600 px ein Knopf mit aufklappender Liste, im Handymenü Globus und Kürzel ---------- */

.sprachwahl-auswahl { position: relative; flex: none; display: none; }
@media (min-width: 600px) { .sprachwahl-auswahl { display: block; } }
.sprachwahl-auswahl summary {
  list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  padding: 8px 10px 8px 11px; border: 2px solid var(--tinte); border-radius: 999px;
  font-weight: 700; font-size: 16px; line-height: 1; white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.sprachwahl-auswahl summary::-webkit-details-marker { display: none; }
.sprachwahl-auswahl summary svg { width: 18px; height: 18px; }
.sprachwahl-auswahl summary .pfeil { width: 16px; height: 16px; transition: transform 0.15s ease; }
.sprachwahl-auswahl[open] summary .pfeil { transform: rotate(180deg); }
.sprachwahl-auswahl summary:hover, .sprachwahl-auswahl[open] summary { background: var(--tinte); color: var(--gelb); }
.sprachwahl-liste {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 170px;
  display: grid; gap: 2px; padding: 6px;
  background: var(--creme); border: 2px solid var(--tinte); border-radius: 14px;
  box-shadow: 0 8px 22px rgba(21, 21, 21, 0.18);
}
.sprachwahl-liste a, .sprachwahl-liste span {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 12px; border-radius: 9px; font-weight: 700; text-decoration: none; color: var(--tinte);
}
.sprachwahl-liste a:hover { background: var(--tinte); color: var(--gelb); }
.sprachwahl-liste [aria-current] { background: var(--gelb); }
/* Häkchen nur fürs Auge, Vorleseprogramme kennen die Sprache über aria-current. */
.sprachwahl-liste [aria-current]::after { content: "✓"; content: "✓" / ""; }
@media (prefers-reduced-motion: reduce) {
  .sprachwahl-auswahl summary, .sprachwahl-auswahl summary .pfeil { transition: none; }
}


.sprachwahl { display: inline-flex; align-items: center; gap: 2px; flex: none; font-weight: 700; font-size: 15px; line-height: 1; }
.sprachwahl svg { width: 20px; height: 20px; margin-right: 4px; }
.sprachwahl a, .sprachwahl span { padding: 7px 8px; border-radius: 8px; text-decoration: none; }
.sprachwahl a { color: var(--tinte); }
.sprachwahl a:hover { background: var(--tinte); color: var(--gelb); }
.sprachwahl [aria-current] { background: var(--tinte); color: var(--gelb); }
.menue-sprache { padding: 18px var(--rand) 0; }
.menue-sprache:empty { display: none; }
.menue-sprache .sprachwahl { font-size: 18px; }
.menue-sprache .sprachwahl svg { width: 24px; height: 24px; }

/* ---------- Weiter-Pfeile (nur Desktop) ---------- */

.abschnitt, .vergleich { position: relative; }
.weiter { display: none; }
@media (min-width: 960px) {
  .weiter {
    position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
    display: grid; place-items: center; width: 48px; height: 48px;
    border: 3px solid currentColor; border-radius: 50%; color: inherit;
    transition: transform 0.2s ease, background 0.2s ease;
  }
  .weiter svg { width: 22px; height: 22px; }
  .weiter:hover { transform: translateX(-50%) translateY(4px); background: rgba(21, 21, 21, 0.08); }
}
@media (prefers-reduced-motion: reduce) { .weiter { transition: none; } }

/* ---------- Handy: Kopf mit "Gratis üben" läuft mit ---------- */

@media (max-width: 899px) {
  .layout-marketing .kopf {
    position: sticky; top: 0; z-index: 20;
    background: var(--gelb); box-shadow: 0 1px 0 rgba(21, 21, 21, 0.15);
  }
  .layout-marketing main section[id] { scroll-margin-top: 64px; }
}

/* ---------- Vergleich mit der Konkurrenz ---------- */

.vergleich {
  --gruen-ampel: #1E7B34; --rot-ampel: #C0262D; --gelb-ampel: #F2B705;
  container-type: inline-size;
  background: var(--creme);
  padding: var(--abstand) var(--rand);
}
.vergleich-kopf { display: grid; gap: 14px; max-width: 900px; margin-bottom: 28px; }
.vergleich-kopf h2, .vergleich-kopf p { margin: 0; }
.vergleich-legende { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 14px; padding: 0; list-style: none; font-weight: 600; font-size: 16px; }
.vergleich-legende li { display: inline-flex; align-items: center; gap: 8px; }
.vergleich-legende .ampel { width: 22px; height: 22px; }
.vergleich-legende .ampel svg { width: 13px; height: 13px; }
.vergleich-rahmen { max-width: 1100px; background: var(--weiss); border: 3px solid var(--tinte); border-radius: 22px; overflow: hidden; }
.vergleich-tabelle { width: 100%; border-collapse: collapse; table-layout: fixed; }
.vergleich-tabelle th, .vergleich-tabelle td { padding: 13px 10px; border-bottom: 1px solid #E6E0D2; vertical-align: middle; }
.vergleich-tabelle tbody tr:last-child > * { border-bottom: 0; }
.vergleich-tabelle thead th:first-child { width: 38%; }
.vergleich-tabelle thead th {
  font: 800 24px/1.05 var(--schrift-plakat); text-align: center;
  border-bottom: 3px solid var(--tinte); padding-block: 16px 14px;
}
.vergleich-tabelle thead th.wir { background: var(--blau); color: var(--weiss); border-bottom-color: var(--blau); }
.vergleich-logo { display: inline-block; width: 1.15em; height: 1.15em; margin-right: 0.3em; vertical-align: -0.22em; }
.vergleich-tabelle td { text-align: center; }
.vergleich-tabelle td.wir { background: #EAF3FC; }
.vergleich-tabelle th[scope="row"] { text-align: left; font-weight: 700; font-size: 17px; line-height: 1.25; }
.vergleich-merkmal { display: inline; }
.vergleich-emoji { font-size: 1.1em; margin-right: 0.15em; }

.ampel { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; vertical-align: middle; }
.ampel svg { width: 17px; height: 17px; }
.ampel-g { background: var(--gruen-ampel); color: var(--weiss); }
.ampel-r { background: var(--rot-ampel); color: var(--weiss); }
.ampel-y { background: var(--gelb-ampel); color: var(--tinte); }
.ampel-q { background: #E6E0D2; color: var(--tinte); font: 800 17px/1 var(--schrift-plakat); }

.vergleich-preis { font: 800 24px/1 var(--schrift-plakat); font-variant-numeric: tabular-nums; white-space: nowrap; }
.vergleich-chf { font-size: 0.62em; }
.vergleich-preis sup { font: 700 13px/1 var(--schrift); margin-left: 1px; }
.ton-g { color: var(--gruen-ampel); }
.ton-r { color: var(--rot-ampel); }
.ton-y { color: var(--gelb-ampel); }
.vergleich-fuss { margin: 14px 0 0; font-size: 14px; max-width: 70em; }
.vergleich-mehr { margin: 10px 0 0; font-weight: 700; }

.vergleich-info {
  /* vertical-align so gewählt, dass die Kreismitte auf der Mitte der Grossbuchstaben liegt
     (nachgemessen auf 0,5 px, Desktop und Handy). */
  display: inline-grid; place-items: center; width: 24px; height: 24px; margin-left: 4px;
  vertical-align: -1px; padding: 0; cursor: pointer;
  border: 2px solid var(--tinte); border-radius: 50%; background: var(--gelb);
  font: 800 15px/1 var(--schrift-plakat); color: var(--tinte);
}
.vergleich-info:hover { background: var(--tinte); color: var(--gelb); }
.vergleich-info svg { width: 70%; height: 70%; }
.vergleich-fenster {
  width: min(360px, calc(100vw - 32px)); margin: auto;
  padding: 18px 48px 18px 18px; border: 3px solid var(--tinte); border-radius: 18px;
  background: var(--weiss); color: var(--tinte); box-shadow: 0 10px 0 rgba(21, 21, 21, 0.2);
  font-size: 16px; line-height: 1.45;
}
.vergleich-fenster::backdrop { background: rgba(21, 21, 21, 0.25); }
.vergleich-fenster p { margin: 0; }
.vergleich-fenster p + p { margin-top: 6px; }
.vergleich-fenster-titel { font: 800 22px/1.1 var(--schrift-plakat); }
.vergleich-fenster a { display: inline-block; margin-top: 10px; font-weight: 700; color: var(--blau); }
.vergleich-zu {
  position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; padding: 0;
  display: grid; place-items: center; border: 0; border-radius: 50%;
  background: var(--creme); color: var(--tinte); cursor: pointer;
}
.vergleich-zu svg { width: 14px; height: 14px; }

.label-kurz { display: none; }
@container (max-width: 640px) {
  .label-lang {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .label-kurz { display: inline; }
  .vergleich-tabelle thead th:first-child { width: 48%; }
  .vergleich-tabelle th, .vergleich-tabelle td { padding: 11px 2px; }
  .vergleich-tabelle th[scope="row"] { font-size: 14.5px; padding-left: 10px; white-space: nowrap; }
  .vergleich-tabelle thead th { font-size: 15px; padding-block: 10px; vertical-align: bottom; }
  .vergleich-tabelle thead th:not(:first-child) span { writing-mode: vertical-rl; transform: rotate(180deg); display: inline-block; white-space: nowrap; }
  .vergleich-tabelle thead th:first-child { padding-left: 10px; }
  .vergleich-logo { display: block; width: 24px; height: 24px; margin: 0 auto 6px; }
  .ampel { width: 24px; height: 24px; }
  .ampel svg { width: 14px; height: 14px; }
  .vergleich-info { width: 20px; height: 20px; font-size: 13px; margin-left: 3px; vertical-align: 0; }
  .vergleich-preis { font-size: 15px; }
  .vergleich-chf { display: none; }
  .vergleich-betrag { position: relative; }
  .vergleich-preis sup { position: absolute; left: 100%; top: -2px; font-size: 10px; margin: 0; }
}
@container (max-width: 340px) {
  /* 320 px: "Streber-Modus" mit Emoji und Info-Knopf ragte sonst in die L-Theorie-Spalte */
  .vergleich-tabelle th[scope="row"] { font-size: 12.5px; padding-left: 6px; }
  .vergleich-preis { font-size: 13.5px; }
  .vergleich-info { width: 18px; height: 18px; font-size: 12px; margin-left: 2px; }
  .vergleich-emoji { margin-right: 0; font-size: 1em; }
}

/* ---------- Ratgeber-Seiten ---------- */

.layout-ratgeber .kopf { border-bottom: 3px solid var(--tinte); background: var(--gelb); }
.ratgeber {
  max-width: 880px; margin: 0 auto;
  padding: clamp(32px, 5vw, 64px) var(--rand) var(--abstand);
  display: grid; gap: clamp(40px, 6vw, 64px);
}
.ratgeber section, .ratgeber nav, .ratgeber aside { display: grid; gap: 16px; }
.ratgeber h2, .ratgeber h3, .ratgeber p { margin: 0; }
.ratgeber h3 { font: 700 21px/1.3 var(--schrift); margin-top: 12px; scroll-margin-top: 90px; }
.ratgeber h2[id] { scroll-margin-top: 90px; }
.rg-kopf { display: grid; gap: 16px; }
.rg-kopf h1 { margin: 0; }
.rg-marke {
  justify-self: start; padding: 5px 12px; border-radius: 6px;
  background: var(--tinte); color: var(--gelb); font: 800 18px/1.1 var(--schrift-plakat);
}
.rg-anmeldung {
  background: var(--weiss); border: 3px solid var(--tinte); border-radius: 18px;
  padding: clamp(18px, 3vw, 28px); gap: 14px;
}
.rg-anmeldung h2 { font: 800 clamp(26px, 3vw, 34px)/1.05 var(--schrift-plakat); }
.rg-anmeldung-liste { margin: 0; display: grid; gap: 10px; }
.rg-anmeldung-liste div { display: grid; gap: 2px; }
@media (min-width: 600px) {
  .rg-anmeldung-liste div { grid-template-columns: 9.5em minmax(0, 1fr); gap: 12px; }
}
.rg-anmeldung-liste dt { font-weight: 700; }
.rg-anmeldung-liste dd { margin: 0; }
.rg-amt { font-weight: 700; }
.rg-amt svg { width: 0.85em; height: 0.85em; margin-left: 0.2em; vertical-align: -0.05em; }
.rg-anmeldung .knopfreihe { margin-top: 4px; }
.rg-anmeldung-hinweis { font-size: 14.5px; color: var(--gedaempft); }
.rg-fakten { margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .rg-fakten { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rg-fakten div { background: var(--gelb); border: 3px solid var(--tinte); border-radius: 16px; padding: 14px 16px; }
.rg-fakten dt { font: 800 clamp(26px, 3vw, 34px)/1 var(--schrift-plakat); margin-bottom: 6px; hyphens: auto; overflow-wrap: break-word; }
/* 320 px: «Senza appuntamento» (Ticino) war breiter als die Kachel, die Seite scrollte seitlich. */
.rg-fakten div { min-width: 0; }
.rg-fakten dd { margin: 0; font-size: 15.5px; line-height: 1.35; }
.rg-wege-liste { display: grid; gap: 12px; }
@media (min-width: 760px) { .rg-wege-liste { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rg-wege-liste a {
  position: relative; display: grid; gap: 6px; padding: 16px 64px 16px 18px; text-decoration: none;
  background: var(--weiss); border: 3px solid var(--tinte); border-radius: 16px;
  transition: background 0.15s ease, color 0.15s ease;
}
.rg-wege-liste a strong { font: 800 22px/1.05 var(--schrift-plakat); }
.rg-pfeil {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gelb); border: 2px solid var(--tinte); color: var(--tinte);
}
.rg-pfeil svg { width: 18px; height: 18px; }
.rg-wege-liste a:hover .rg-pfeil { background: var(--weiss); }
.rg-tabelle { --gruen-ampel: #1E7B34; --rot-ampel: #C0262D; --gelb-ampel: #F2B705; }
.rg-zeile-lt th, .rg-zeile-lt td { background: #EAF3FC; }
.rg-status { display: flex; gap: 10px; align-items: flex-start; }
.rg-status .ampel { flex: none; width: 26px; height: 26px; }
.rg-status .ampel svg { width: 15px; height: 15px; }
.rg-wege-liste a span { font-size: 15px; color: var(--gedaempft); }
.rg-wege-liste a:hover { background: var(--blau); border-color: var(--blau); color: var(--weiss); }
.rg-wege-liste a:hover span { color: var(--weiss); }
.rg-schritte { list-style: none; margin: 0; padding: 0; counter-reset: schritt; display: grid; gap: 4px; }
.rg-schritte li {
  counter-increment: schritt; position: relative; display: grid; gap: 4px;
  padding: 0 0 18px 58px; border-left: 3px solid var(--tinte); margin-left: 19px;
}
.rg-schritte li:last-child { border-left-color: transparent; padding-bottom: 0; }
.rg-schritte li::before {
  content: counter(schritt); position: absolute; left: -22px; top: -4px;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blau); color: var(--weiss); font: 800 20px/1 var(--schrift-plakat);
}
.rg-schritte li strong { font-size: 18px; }
.rg-schritte li span { color: #2A2A2A; }
.rg-hinweis { background: var(--creme); border-left: 5px solid var(--blau); padding: 14px 16px; border-radius: 0 12px 12px 0; }
.rg-liste { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.rg-tabelle-rahmen { overflow-x: auto; background: var(--weiss); border: 3px solid var(--tinte); border-radius: 18px; }
.rg-tabelle { width: 100%; border-collapse: collapse; }
.rg-tabelle th, .rg-tabelle td { padding: 12px 14px; text-align: left; border-bottom: 1px solid #E6E0D2; vertical-align: top; }
.rg-tabelle tbody tr:last-child > * { border-bottom: 0; }
.rg-tabelle thead th { font: 800 20px/1.1 var(--schrift-plakat); border-bottom: 3px solid var(--tinte); }
.rg-tabelle thead th:last-child { background: var(--gelb); }
.rg-tabelle th[scope="row"] { font-weight: 700; white-space: nowrap; }
@media (max-width: 599px) {
  .rg-tabelle { font-size: 14.5px; table-layout: fixed; }
  .rg-tabelle th, .rg-tabelle td { padding: 10px 7px; overflow-wrap: anywhere; hyphens: auto; }
  .rg-tabelle th[scope="row"] { white-space: normal; width: 27%; overflow-wrap: anywhere; }
  .rg-tabelle thead th:first-child { width: 30%; }
  .rg-kosten thead th:first-child, .rg-kosten th[scope="row"] { width: auto; }
  .rg-kosten thead th:last-child { width: 22%; }
  .rg-tabelle thead th { font-size: 17px; }
  .rg-status { flex-direction: column; gap: 6px; }
}
.rg-anbieter thead th:last-child { background: none; }
.rg-anbieter th[scope="row"] { white-space: normal; }
.rg-plattform, .rg-modell { display: block; margin-top: 4px; font-size: 14px; font-weight: 400; color: var(--gedaempft); }
.rg-anbieter strong, .fremdpreis { white-space: nowrap; }
.rg-anbieter .fremdpreis { font-weight: 700; }
.rg-logo { display: inline-block; width: 1.15em; height: 1.15em; margin-right: 0.3em; vertical-align: -0.22em; }
.rg-tabelle thead th.rg-wir { background: var(--blau); color: var(--weiss); white-space: nowrap; }
.rg-zeile-lt .rg-name { white-space: nowrap; }
.rg-alternative { table-layout: fixed; }
.rg-alternative thead th:first-child { width: 25%; }
.rg-tabelle td.rg-wir { background: #EAF3FC; }
@media (max-width: 599px) {
  .rg-tabelle th.rg-wir .rg-logo, .rg-zeile-lt .rg-logo { display: block; margin: 0 0 4px; }
  .rg-alternative thead th { font-size: 15px; }
}
.rg-kantone { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rg-kantone a { display: inline-block; padding: 8px 16px; border: 2px solid var(--tinte); border-radius: 999px; font-weight: 600; text-decoration: none; }
.rg-kantone a:hover { background: var(--tinte); color: var(--gelb); }
.rg-cta { background: var(--gelb); border: 3px solid var(--tinte); border-radius: 22px; padding: clamp(20px, 4vw, 32px); justify-items: start; }
/* Seite «L-Theorie für iPhone»: Bildschirme im offiziellen Apple-Rahmen. Apple verlangt den Rahmen
   unverändert (nicht kippen, kein Schatten) und mindestens 200 px breit. Alle Bildschirme in einer Reihe
   (Wunsch Simon): auf dem Handy randlos und seitlich wischbar, das nächste Bild lugt hervor; am
   Computer nebeneinander und zentriert, seitlich scrollbar, wenn das Fenster zu schmal ist. */
.iphone-bilder { width: calc(100% + 2 * var(--rand)); margin-left: calc(-1 * var(--rand)); }
.iphone-reihe { list-style: none; margin: 0; padding: 4px var(--rand) 12px; scroll-padding-inline: var(--rand); display: grid; gap: 18px; grid-auto-flow: column; grid-auto-columns: min(68vw, 280px); justify-content: start; justify-content: safe center; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
.iphone-reihe li { scroll-snap-align: start; }
.iphone-reihe:focus-visible { outline: 3px solid var(--tinte); outline-offset: 4px; border-radius: 8px; }
.rg-kopf .app-store-badge:focus-visible { outline-color: var(--tinte); }
.iphone-reihe figure { margin: 0; display: grid; gap: 10px; }
.iphone-reihe img { display: block; width: 100%; height: auto; }
.iphone-reihe figcaption { font-size: 15px; line-height: 1.3; text-align: center; font-weight: 600; }
@media (pointer: coarse) { .iphone-reihe { scrollbar-width: none; } .iphone-reihe::-webkit-scrollbar { display: none; } }
/* Ab 881 px ist die Textspalte (max. 880 px) schmaler als das Fenster: Reihe aus der Spalte lösen. */
@media (min-width: 881px) {
  .iphone-bilder { --breite: min(1440px, calc(100vw - 2 * var(--rand))); width: var(--breite); margin-left: calc(50% - var(--breite) / 2); }
  .iphone-reihe { padding-inline: 0; scroll-padding-inline: 0; }
}
@media (min-width: 1100px) {
  /* Breite je Bild aus der Zahl der Bilder: passen alle hin, füllen sie die Reihe (höchstens 250 px),
     sonst bleiben sie 200 px (Apple-Minimum) und die Reihe scrollt. Ab 6 Bildern engere Lücke. */
  .iphone-reihe { --anzahl: 5; --luecke: 24px; grid-auto-columns: clamp(200px, calc((100% - (var(--anzahl) - 1) * var(--luecke)) / var(--anzahl)), 250px); gap: var(--luecke); padding-inline: 0; scroll-padding-inline: 0; scroll-snap-type: x proximity; }
  .iphone-reihe:has(> li:nth-child(6)) { --anzahl: 6; --luecke: 16px; }
  .iphone-reihe:has(> li:nth-child(7)) { --anzahl: 7; --luecke: 16px; }
}
.rg-quellen { font-size: 15px; }
.rg-quellen h2 { font: 700 20px/1.2 var(--schrift); }
.rg-quellen ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.neu2027-link { justify-self: start; }
@media (prefers-reduced-motion: reduce) { .rg-wege-liste a { transition: none; } }

/* ---------- Neuregelung 2027 ---------- */

.neu2027 {
  background: var(--gelb);
  padding: var(--abstand) var(--rand);
  display: grid; gap: 40px;
}
.neu2027-kopf { display: flex; flex-direction: column; gap: 20px; max-width: 900px; }
.neu2027-marke {
  align-self: flex-start; margin: 0; padding: 10px 20px;
  background: var(--tinte); color: var(--gelb); border-radius: 10px;
  font: 800 clamp(28px, 3.4vw, 44px)/1 var(--schrift-plakat);
}
.strasse {
  background: #2B2B2B; border-radius: 22px; padding: 28px clamp(16px, 3vw, 36px);
  display: flex; flex-direction: column; gap: 26px; color: var(--weiss);
}
.spur { display: grid; gap: 12px; }
.spur + .spur { border-top: 4px dashed rgba(255, 255, 255, 0.55); padding-top: 26px; }
.spur-titel { font: 800 22px/1 var(--schrift-plakat); color: var(--gelb); }
.wegweiser { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 6px; counter-reset: schritt; }
.wegweiser li {
  counter-increment: schritt;
  display: flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 34px 0 16px;
  background: var(--weiss); color: var(--tinte);
  font: 700 clamp(17px, 1.6vw, 21px)/1.1 var(--schrift);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%);
}
.wegweiser li::before { content: counter(schritt); font: 800 22px/1 var(--schrift-plakat); }
.spur-alt .wegweiser li { background: #8F8F8F; color: #1D1D1D; }
.spur-neu .wegweiser li.ist-neu { background: var(--blau); color: var(--weiss); }
@media (min-width: 960px) {
  .spur { grid-template-columns: 180px minmax(0, 1fr); align-items: center; }
}
.neu2027-fakten { margin: 0; display: grid; gap: 22px; }
@media (min-width: 720px) { .neu2027-fakten { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; } }
@media (min-width: 1200px) { .neu2027-fakten { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; } }
.neu2027-fakten div { border-top: 3px solid var(--tinte); padding-top: 14px; }
.neu2027-fakten .ist-lt { border-top-color: var(--blau); }
.neu2027-fakten .ist-lt dt { color: var(--blau); }
.neu2027-fakten dt { font: 800 clamp(28px, 2.6vw, 36px)/1 var(--schrift-plakat); margin-bottom: 8px; }
.neu2027-fakten dd { margin: 0; font-size: 18px; }
.neu2027-quelle { margin: 0; font-size: 15px; max-width: 60em; }

/* ---------- Kantone (Startseite, 404), ohne Wappen ---------- */

.kantone-titel { margin: 0 0 14px; font: 800 clamp(24px, 2.6vw, 32px)/1.05 var(--schrift-plakat); }
.kanton-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.kanton-chips a {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 18px 0 6px;
  background: var(--weiss); color: var(--tinte);
  border: 3px solid var(--tinte); border-radius: 999px;
  font: 700 18px/1 var(--schrift); text-decoration: none;
}
.kanton-kuerzel {
  display: inline-grid; place-items: center; min-width: 36px; height: 30px; padding: 0 6px;
  border-radius: 999px; background: var(--tinte); color: var(--gelb);
  font: 800 17px/1 var(--schrift-plakat); letter-spacing: 0.02em;
}
.kanton-chips a:hover { background: var(--tinte); color: var(--gelb); }
.kanton-chips a:hover .kanton-kuerzel { background: var(--gelb); color: var(--tinte); }
@media (max-width: 599px) {
  .kanton-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kanton-chips a { display: flex; }
}

/* ---------- Rechtstexte ---------- */

.rechtstext { max-width: 760px; margin: 0 auto; padding: 40px var(--rand) 80px; }
.rechtstext h1 { font: 800 clamp(44px, 6vw, 72px)/0.95 var(--schrift-plakat); margin: 0 0 16px; hyphens: auto; overflow-wrap: break-word; }
.rechtstext h2 { font: 800 34px/1.05 var(--schrift-plakat); margin: 48px 0 12px; scroll-margin-top: 80px; }
.rechtstext h3 { font: 700 21px/1.25 var(--schrift); margin: 30px 0 8px; }
.rechts-sprung { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.rechts-sprung a { padding: 6px 14px; border: 2px solid var(--tinte); border-radius: 999px; font-weight: 600; text-decoration: none; }
.rechts-sprung a:hover { background: var(--tinte); color: var(--gelb); }
.rechtstext p, .rechtstext li { font-size: 18px; line-height: 1.6; }
.rechtstext ul { padding-left: 1.2em; }
.rechtstext .meta { color: var(--gedaempft); font-size: 16px; }
.rechtstext .meta-abgesetzt { margin-top: 40px; }
.rechtstext table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 16px; }
.rechtstext th, .rechtstext td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--linie); }
.rechtstext th { background: var(--creme); font-weight: 600; }
.placeholder { background: #FFF3B0; padding: 0 4px; border-radius: 3px; }
.layout-legal .kopf { border-bottom: 3px solid var(--tinte); background: var(--gelb); }

/* ---------- 404 ---------- */

.fehler { max-width: 1000px; padding: var(--abstand) var(--rand); display: grid; gap: 28px; justify-items: start; }
.fehler-code { margin: 0; font: 800 clamp(80px, 14vw, 180px)/0.85 var(--schrift-plakat); color: var(--blau); }
.fehler-kantone { margin-top: 12px; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}

/* ---------- Cookie-Banner (einwilligung.js) ---------- */
/* Schmale Leiste unten, blockiert und verdunkelt nichts (Auftrag Marketing 21.10.2026).
   Nein und OK gleich gross und gleich gestaltet (EDÖB). «Mehr» klappt die Kategorien auf. */

.einwilligung {
  position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 25;
  max-width: 760px; margin: 0 auto; max-height: calc(100vh - 16px); overflow-y: auto;
  padding: 10px 10px 10px 14px; background: var(--weiss); color: var(--tinte);
  border: 1px solid rgba(21, 21, 21, 0.18); border-radius: 14px;
  box-shadow: 0 4px 16px rgba(21, 21, 21, 0.14);
  font-size: 15px; line-height: 1.35;
}
.einwilligung[hidden] { display: none; }
/* Startseite: im Fluss direkt unter dem Quiz statt fixiert (einwilligung.js). */
.einwilligung.ist-im-fluss {
  position: static; max-height: none; overflow: visible;
  margin: 16px max(16px, (100% - 760px) / 2); box-shadow: none;
}
/* Höhe der Leiste setzt einwilligung.js, auch wenn «Mehr» sie wachsen lässt. */
.mit-einwilligung .fuss { padding-bottom: calc(var(--einwilligung-hoehe, 96px) + 36px); }
.einwilligung-zeile { display: flex; align-items: center; gap: 10px; }
.einwilligung-text { flex: 1; margin: 0; }
.einwilligung-mehr {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; margin: -12px 0; padding: 0 2px;
  border: 0; background: none; color: var(--blau);
  font: 700 15px/1 var(--schrift); text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
/* Zwei gleich breite Spalten: Nein und OK bleiben gleich gross, auch bei Textzoom. */
.einwilligung-knoepfe { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; flex: none; }
.einwilligung-knoepfe[hidden] { display: none; }
.einwilligung-knopf { min-width: 64px; min-height: 44px; padding: 0 16px; border-width: 2px; font-size: 16px; }
.einwilligung-wahl { display: grid; gap: 10px; margin: 10px 0 0; padding-top: 10px; border-top: 1px solid rgba(21, 21, 21, 0.12); }
.einwilligung-wahl[hidden] { display: none; }
.einwilligung-hinweis { margin: 0; }
.einwilligung-hinweis a { font-weight: 700; }
.einwilligung-option { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; }
.einwilligung-option input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--blau); }
.einwilligung-wahl .einwilligung-knoepfe { justify-content: flex-end; }
.einwilligung-wahl .einwilligung-knopf { min-width: 140px; }
@media (max-width: 480px) {
  .einwilligung { padding: 8px 8px 8px 12px; font-size: 14px; }
  .einwilligung-mehr { font-size: 14px; }
  .einwilligung-zeile .einwilligung-knopf { min-width: 56px; padding: 0 14px; }
}

.fuss-einwilligung {
  padding: 0; border: 0; background: none; color: #E8E3D6;
  font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.fuss-einwilligung:hover { color: var(--gelb); }
.fuss-einwilligung[hidden] { display: none; }
