/* ==========================================================================
   Galoppal · Stylesheet
   Palette aus dem Moodboard „new Mood“ (MoodboardBlau.pdf).
   Regeln: keine Schatten, keine Verläufe, kein Blur, Ecken max. 2 px,
   keine Hover-Transitions. Fonts lokal (Fontshare: Boska, Ranade).
   ========================================================================== */

/* ---------- Fonts (lokal, DSGVO) ---------- */
@font-face {
  font-family: "Boska";
  src: url("../fonts/boska-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Boska";
  src: url("../fonts/boska-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Boska";
  src: url("../fonts/boska-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Boska";
  src: url("../fonts/boska-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Ranade";
  src: url("../fonts/ranade-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Ranade";
  src: url("../fonts/ranade-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Ranade";
  src: url("../fonts/ranade-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Moodboard */
  --navy: #172a3a;        /* Deep Space Blue */
  --cream: #f5e9cc;       /* Vanilla Cream */
  --sky: #84b7c2;         /* Sky Blue (light) */
  --teal: #508991;        /* Teal */
  --walnut: #552b11;      /* Dark Walnut */
  --rose: #b58b7d;        /* Dusty Rose */

  /* Abgeleitete Töne */
  --navy-2: #1f3547;      /* Platzhalterfläche auf Navy */
  --navy-3: #2b4357;      /* Linien auf Navy */
  --paper: #fbf6ea;      /* helle Fläche, abgeleitet aus Vanilla Cream */
  --cream-2: #f3ead3;     /* Platzhalter-/Hinweisfläche auf hellem Grund */
  --cream-3: #e2d4b2;     /* Linien auf hellem Grund */
  --navy-deep: #101f2c;   /* tiefere Navy-Stufe für den Footer */
  --teal-deep: #3f6e75;   /* Teal, abgedunkelt: 4.7:1 mit Cream (AA) */
  --rose-tint: #ecd3c4;   /* Markierung für [PLATZHALTER] */

  --font-display: "Boska", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Ranade", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  --container: 76rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 10vw, 8.5rem);
  --header-h: 4.25rem;
  --radius: 2px;

  /* z-index-Skala */
  --z-header: 10;
  --z-skip: 20;
}

/* Flächen-Themen: jeder Abschnitt ist Navy oder Cream mit genau einem Akzent */
.on-navy {
  --bg: var(--navy);
  --fg: var(--cream);
  --muted: rgb(245 233 204 / 0.78);
  --line: var(--navy-3);
  --skeleton: var(--navy-2);
  --accent: var(--sky);
  --focus: var(--sky);
  --btn-bg: var(--cream);
  --btn-fg: var(--navy);
  --btn-hover-bg: var(--sky);
  --btn-hover-fg: var(--navy);
  --frame: var(--cream);
  background-color: var(--bg);
  color: var(--fg);
}
.on-cream {
  --bg: var(--paper);
  --fg: var(--navy);
  --muted: rgb(23 42 58 / 0.8);
  --line: var(--cream-3);
  --skeleton: var(--cream-2);
  --accent: var(--teal-deep);
  --focus: var(--navy);
  --btn-bg: var(--teal-deep);
  --btn-fg: var(--cream);
  --btn-hover-bg: var(--navy);
  --btn-hover-fg: var(--cream);
  --frame: var(--navy);
  background-color: var(--bg);
  color: var(--fg);
}
.accent-walnut { --accent: var(--walnut); }
.accent-rose { --accent: var(--rose); }

/* ---------- Reset & Basis ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background-color: var(--paper);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote {
  margin: 0;
}
ul[role="list"], ol[role="list"] {
  list-style: none;
  padding: 0;
}
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
p, li, dd {
  text-wrap: pretty;
}
em {
  font-style: italic;
}
strong {
  font-weight: 500;
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid var(--focus, var(--navy));
  outline-offset: 3px;
}
::selection {
  background: var(--sky);
  color: var(--navy);
}
[id] {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: var(--section-y) calc(var(--section-y) + 1rem);
}

/* ---------- Typo-Bausteine ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.h2 {
  font-size: clamp(2.25rem, 4.6vw, 3.6rem);
  line-height: 1.06;
  max-width: 18ch;
}
.lead {
  font-size: clamp(1.125rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 54ch;
}
.num {
  font-family: var(--font-display);
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--accent);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0.85rem 1.5rem;
  border: 1px solid var(--btn-bg);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.btn:hover {
  background: var(--btn-hover-bg);
  border-color: var(--btn-hover-bg);
  color: var(--btn-hover-fg);
  text-decoration: none;
}
.btn--ghost {
  background: transparent;
  color: var(--fg);
  border-color: currentColor;
}
.btn--ghost:hover {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--bg);
}
.btn[disabled],
.btn[aria-disabled="true"] {
  cursor: progress;
}
.text-link {
  font-weight: 500;
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--accent);
}

/* ---------- Skip-Link ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: var(--z-skip);
  padding: 0.75rem 1rem;
  background: var(--cream);
  color: var(--navy);
  font-weight: 500;
  border: 1px solid var(--navy);
  border-radius: var(--radius);
}
.skip-link:focus {
  top: 1rem;
}

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  border-bottom: 1px solid var(--navy-3);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}
.wordmark {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--fg);
  padding-block: 0.4rem;
}
.wordmark:hover {
  text-decoration: none;
}
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  margin-right: -0.75rem;
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  color: var(--fg);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
}
.nav-toggle svg {
  width: 1.375rem;
  height: 1.375rem;
}
.nav-toggle .icon-close {
  display: none;
}
.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}
.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}
.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav__link {
  display: inline-block;
  padding-block: 0.5rem;
  color: var(--fg);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav__link:hover,
.site-nav__link[aria-current] {
  text-decoration: underline;
  text-decoration-color: var(--sky);
  text-decoration-thickness: 2px;
}
.site-nav__cta {
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
}

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex;
  }
  .js .site-nav {
    display: none;
  }
  .js .site-nav.is-open {
    display: block;
  }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    border-bottom: 1px solid var(--navy-3);
  }
  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.5rem;
  }
  .site-nav__list li + li {
    border-top: 1px solid var(--navy-3);
  }
  .site-nav__link {
    display: block;
    padding-block: 0.95rem;
    font-size: 1.0625rem;
  }
  .site-nav__list li:last-child {
    border-top: 0;
    padding-top: 1rem;
  }
  .site-nav__cta {
    width: 100%;
    min-height: 3.25rem;
    font-size: 1rem;
  }
}
/* Ohne JS bleibt die Navigation sichtbar und bricht um */
@media (max-width: 960px) {
  html:not(.js) .site-header__inner {
    flex-wrap: wrap;
  }
  html:not(.js) .nav-toggle {
    display: none;
  }
  html:not(.js) .site-nav {
    position: static;
    width: 100%;
    border: 0;
  }
}

/* ---------- Medien mit Skeleton ---------- */
.media {
  position: relative;
  background-color: var(--skeleton);
  overflow: hidden;
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.js .media:not(.is-loaded) img {
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .js .media:not(.is-loaded) {
    animation: skeleton-pulse 1.6s ease-in-out infinite;
  }
  .js .media img {
    transition: opacity 0.35s ease-out;
  }
}
@keyframes skeleton-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
.media.is-failed::after {
  content: "Bild konnte nicht geladen werden";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  font-size: 0.875rem;
  color: var(--muted);
  text-align: center;
}

/* Screenshot-Rahmen: flach, 1 px, eckig */
.shot {
  border: 1px solid var(--frame);
  background-color: var(--skeleton);
}

/* ---------- Hero: Foto als Hintergrund, Schrift groß davor ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  min-height: min(calc(100svh - var(--header-h)), 60rem);
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero__media img {
  object-position: 42% 22%;
  filter: saturate(0.7);
}
/* flache Navy-Fläche statt Verlauf; 72 % Deckkraft hält Cream-Text auch über hellen Bildstellen bei AA */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(23 42 58 / 0.72);
}
.hero__inner {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-block: clamp(3rem, 10vh, 6rem) clamp(2.5rem, 7vh, 4.5rem);
}
.hero__title {
  font-size: clamp(3rem, 8.2vw, 8rem);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.02em;
  padding-bottom: 0.1em;
}
.hero__title em {
  display: block;
  font-weight: 400;
  color: var(--sky);
}
.hero__bottom {
  display: grid;
  gap: 2rem;
  margin-top: clamp(2rem, 5vh, 3.5rem);
  padding-top: clamp(1.5rem, 3vh, 2rem);
  border-top: 1px solid rgb(245 233 204 / 0.35);
}
.hero__text {
  font-size: clamp(1.125rem, 1.6vw, 1.35rem);
  line-height: 1.55;
  color: var(--cream);
  max-width: 44ch;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}
@media (max-width: 420px) {
  .hero__actions .btn {
    width: 100%;
  }
}
@media (min-width: 900px) {
  .hero__bottom {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    column-gap: 3rem;
  }
}

/* ---------- App kurz erklärt: Screenshot-Streifen ---------- */
.app__head {
  display: grid;
  gap: 1.25rem;
}
.strip {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: 0 var(--gutter) 1.75rem;
  margin-inline: calc(var(--gutter) * -1);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: var(--navy) var(--cream-2);
}
.strip:focus-visible {
  outline-offset: -3px;
}
.strip__item {
  flex: 0 0 clamp(13.5rem, 62vw, 17.5rem);
  scroll-snap-align: start;
}
.strip__shot {
  aspect-ratio: 460 / 1001;
}
.strip__shot img {
  object-fit: contain;
  object-position: top;
}
.strip__item--crop .strip__shot img {
  object-fit: cover;
  object-position: top;
}
.strip__meta {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.875rem;
  margin-top: 1.5rem;
}
.strip__meta .num {
  font-size: 1.5rem;
  line-height: 1.15;
}
.strip__title {
  font-size: 1.5rem;
  line-height: 1.15;
}
.strip__text {
  grid-column: 2;
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 1rem;
}
.strip-hint {
  margin-top: 0.25rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* ---------- Rollen: Trainer:innen / Schüler:innen ---------- */
.roles__grid {
  display: grid;
  gap: clamp(3.5rem, 7vw, 6rem);
  margin-top: clamp(3rem, 6vw, 5rem);
}
.role__title {
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  line-height: 1.1;
}
.role__lead {
  margin-top: 1rem;
  color: var(--muted);
  max-width: 42ch;
}
.role__list {
  margin-top: 2rem;
  counter-reset: role;
  border-top: 1px solid var(--line);
}
.role__list li {
  counter-increment: role;
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 0.5rem;
  padding-block: 1rem;
}
.role__list li + li {
  border-top: 1px solid var(--line);
}
.role__list li::before {
  content: counter(role, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--accent);
  font-variant-numeric: lining-nums tabular-nums;
}
.request {
  margin-top: 2.5rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--sky);
  border-radius: var(--radius);
}
.request__title {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  line-height: 1.12;
  color: var(--sky);
}
.request__text {
  margin-top: 0.875rem;
  max-width: 46ch;
}
.extras {
  margin-top: clamp(4rem, 8vw, 6.5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1.75rem;
}
.extras__label {
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1.1;
}
.extras__list {
  display: grid;
  gap: 1.5rem;
}
.extras__list dt {
  font-weight: 500;
}
.extras__list dd {
  margin-top: 0.25rem;
  color: var(--muted);
  max-width: 52ch;
}
@media (min-width: 900px) {
  .roles__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(3rem, 7vw, 7rem);
  }
  .extras {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
    column-gap: clamp(3rem, 7vw, 7rem);
  }
  .extras__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 3rem;
    row-gap: 2rem;
  }
}

/* ---------- Warum Galoppal ---------- */
.why__band {
  aspect-ratio: 16 / 7;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.why__band img {
  object-position: 50% 42%;
}
.why__list {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  margin-top: clamp(3rem, 6vw, 5rem);
}
.why__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
}
.why__item .num {
  font-size: clamp(4rem, 9vw, 7.5rem);
  line-height: 0.82;
  font-weight: 400;
}
.why__title {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  line-height: 1.12;
}
.why__text {
  margin-top: 0.875rem;
  color: var(--muted);
  max-width: 50ch;
}
@media (max-width: 599px) {
  .why__band {
    aspect-ratio: 4 / 3;
  }
  .why__item {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 1rem;
  }
  .why__item .num {
    font-size: 3.5rem;
  }
}
@media (min-width: 900px) {
  .why__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(3rem, 6vw, 6rem);
  }
}

/* ---------- Demnächst ---------- */
.soon__grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
}
.soon__media {
  aspect-ratio: 4 / 5;
  max-width: 30rem;
}
.soon__media img {
  object-position: 55% 35%;
}
.soon__intro {
  margin-top: 1.25rem;
  color: var(--muted);
  max-width: 46ch;
}
.soon__list {
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
}
.soon__row {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 0.5rem 1rem;
  padding-block: 1.5rem;
}
.soon__row + .soon__row {
  border-top: 1px solid var(--line);
}
.soon__row .num {
  font-size: 1.5rem;
  line-height: 1.2;
}
.soon__title {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  line-height: 1.15;
}
.soon__text {
  grid-column: 2;
  color: var(--muted);
  max-width: 48ch;
}
@media (min-width: 900px) {
  .soon__grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: center;
  }
}

/* ---------- Über mich ---------- */
.about__grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
}
.about__media {
  aspect-ratio: 3 / 4;
  max-width: 26rem;
  border: 1px solid var(--navy);
}
.about__media img {
  object-position: 50% 22%;
}
.about__text {
  margin-top: 1.5rem;
  max-width: 52ch;
  display: grid;
  gap: 1rem;
}
.about__facts {
  margin-top: 2rem;
  display: grid;
  gap: 0.5rem;
  max-width: 46ch;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}
.about__facts li {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1rem;
}
.about__facts span:first-child {
  color: var(--muted);
}
@media (max-width: 479px) {
  .about__facts li {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .about__facts li + li {
    margin-top: 0.5rem;
  }
}
@media (min-width: 900px) {
  .about__grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
  }
}

/* ---------- Testen ---------- */
.test__grid {
  display: grid;
  gap: clamp(3.5rem, 7vw, 6rem);
  margin-top: clamp(3rem, 6vw, 4.5rem);
}
.test__title {
  font-size: clamp(1.75rem, 2.8vw, 2.25rem);
  line-height: 1.1;
}
.test__text {
  margin-top: 0.875rem;
  color: var(--muted);
  max-width: 44ch;
}
.test__steps {
  margin-top: 1.5rem;
  counter-reset: step;
  display: grid;
  gap: 0.75rem;
}
.test__steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.25rem 1fr;
}
.test__steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 1.125rem;
  line-height: 1.5;
}
.test__ios .btn {
  margin-top: 2rem;
}
.test__note {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--muted);
}
@media (min-width: 900px) {
  .test__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    column-gap: clamp(3rem, 7vw, 7rem);
  }
  .test__android {
    border-left: 1px solid var(--line);
    padding-left: clamp(3rem, 7vw, 7rem);
  }
}

/* ---------- Formular ---------- */
.form {
  margin-top: 2rem;
  display: grid;
  gap: 1.375rem;
}
.field {
  display: grid;
  gap: 0.5rem;
}
.field__label {
  font-weight: 500;
  font-size: 0.9375rem;
}
.field__optional {
  font-weight: 400;
  color: var(--muted);
}
.field__input {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--cream);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--navy);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
}
.field__input::placeholder {
  color: rgb(23 42 58 / 0.62);
}
textarea.field__input {
  min-height: 7.5rem;
  resize: vertical;
}
.field__input:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
}
.field__input[aria-invalid="true"] {
  border-color: var(--rose);
  outline: 2px solid var(--rose);
  outline-offset: 0;
}
.field__error {
  font-size: 0.9375rem;
  color: var(--cream);
  padding-left: 0.75rem;
  border-left: 2px solid var(--rose);
}
.field__error:empty {
  display: none;
}
.choice {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.choice legend {
  padding: 0;
  margin-bottom: 0.25rem;
}
.choice__options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}
.choice__option {
  position: relative;
}
.choice__option input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.choice__option span {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgb(245 233 204 / 0.55);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 500;
}
.choice__option input:checked + span {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--navy);
}
.choice__option input:hover + span {
  border-color: var(--cream);
}
.choice__option input:focus-visible + span {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
}
.form__consent {
  font-size: 0.9375rem;
  color: var(--muted);
  max-width: 52ch;
}
.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}
.form__fallback {
  font-size: 0.9375rem;
  color: var(--muted);
}
.hp-field {
  display: none;
}

/* Absendezustand: Button mit Lade-Balken (Skeleton-Prinzip, kein Spinner) */
.btn__bar {
  display: none;
  width: 2.5rem;
  height: 2px;
  background: currentColor;
  opacity: 0.45;
}
.form.is-sending .btn__bar {
  display: inline-block;
}
@media (prefers-reduced-motion: no-preference) {
  .form.is-sending .btn__bar {
    animation: skeleton-pulse 1s ease-in-out infinite;
  }
}
.form.is-sending .form__fields {
  opacity: 0.6;
}
.form__fields {
  display: grid;
  gap: 1.375rem;
}

.form-status {
  padding: 1.25rem 1.375rem;
  border: 1px solid var(--line);
  border-left-width: 3px;
  border-radius: var(--radius);
}
.form-status[hidden] {
  display: none;
}
.form-status--success {
  border-left-color: var(--sky);
}
.form-status--error {
  border-left-color: var(--rose);
}
.form-status__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.15;
}
.form-status__text {
  margin-top: 0.5rem;
  color: var(--muted);
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: clamp(3.5rem, 7vw, 5rem) 2.5rem;
  background-color: var(--navy-deep);
  border-top: 1px solid var(--navy-3);
}
.site-footer__grid {
  display: grid;
  gap: 2.5rem;
}
.site-footer .wordmark {
  font-size: 2.25rem;
  color: var(--fg);
}
.site-footer__about {
  margin-top: 1rem;
  max-width: 38ch;
  color: var(--muted);
}
.site-footer__made {
  margin-top: 1rem;
  font-size: 0.9375rem;
}
.site-footer__heading {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}
.site-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.375rem;
}
.site-footer__links a {
  display: inline-block;
  padding-block: 0.25rem;
}
.site-footer__bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--navy-3);
  font-size: 0.875rem;
  color: var(--muted);
}
@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 3rem;
  }
}

/* ---------- Unterseiten (Rechtliches, Support) ---------- */
.page-head {
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 3.5rem);
}
.page-head__title {
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  line-height: 1.05;
}
.page-head__meta {
  margin-top: 1rem;
  color: var(--muted);
}
.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
}
.prose {
  max-width: 70ch;
  padding-block: clamp(3rem, 6vw, 4.5rem) clamp(4rem, 8vw, 6rem);
}
.prose h2 {
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  line-height: 1.15;
  margin-top: 3rem;
  margin-bottom: 0.875rem;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose h3 {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 700;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0;
}
.prose p + p,
.prose p + ul,
.prose ul + p,
.prose p + dl,
.prose dl + p,
.prose table + p {
  margin-top: 0.875rem;
}
.prose ul {
  padding-left: 1.25rem;
  margin-top: 0.75rem;
}
.prose ul li + li {
  margin-top: 0.4rem;
}
.prose address {
  font-style: normal;
}
.prose .note {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--rose);
  background: var(--cream-2);
  font-size: 0.9375rem;
}
.notice {
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--navy);
  border-radius: var(--radius);
  margin-bottom: 2.5rem;
}
.notice strong {
  display: block;
  margin-bottom: 0.25rem;
}
.ph {
  background: var(--rose-tint);
  color: var(--walnut);
  font-weight: 500;
  padding: 0 0.2em;
  border-radius: var(--radius);
}
.table-wrap {
  overflow-x: auto;
  margin-top: 1rem;
  border: 1px solid var(--cream-3);
}
.prose table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: 0.75rem 0.875rem;
}
.prose thead th {
  background: var(--cream-2);
  font-weight: 500;
}
.prose tbody tr + tr td {
  border-top: 1px solid var(--cream-3);
}
.toc {
  margin-top: 1.5rem;
  padding-left: 1.25rem;
  columns: 2 16rem;
  column-gap: 2rem;
}
.toc li {
  break-inside: avoid;
  padding-block: 0.15rem;
}

/* FAQ als Liste, keine Akkordeons */
.faq {
  display: grid;
  border-top: 1px solid var(--cream-3);
}
.faq__item {
  display: grid;
  gap: 0.5rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--cream-3);
}
.faq__q {
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1.2;
  font-weight: 500;
}
.faq__a {
  color: var(--muted);
}
@media (min-width: 900px) {
  .faq__item {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 3rem;
  }
}
.support-contact {
  margin-top: 3.5rem;
}

/* 404 */
.notfound {
  min-height: calc(100dvh - var(--header-h));
  display: grid;
  align-content: center;
  padding-block: 4rem;
}
.notfound .h2 {
  margin-top: 1rem;
}
.notfound .btn {
  margin-top: 2rem;
}

/* ---------- Druck ---------- */
@media print {
  .site-header,
  .site-footer,
  .skip-link {
    display: none;
  }
}

/* Ergänzungen Unterseiten */
.prose--wide {
  max-width: var(--container);
}
.lead--spaced {
  margin-top: 1.25rem;
}

/* Eigenes Foto im Abschnitt „Über mich“ */
.about__photo {
  margin-top: 2.5rem;
  max-width: 36rem;
}
.about__photo .media {
  aspect-ratio: 3 / 2;
  border: 1px solid var(--navy);
}
.about__photo .media img {
  object-position: 50% 35%;
}
.about__photo figcaption {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* Desktop: alle fünf Screenshots nebeneinander, kein Scrollen */
@media (min-width: 1100px) {
  .strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.75rem;
    margin-inline: 0;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
  }
  .strip__meta {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0.25rem;
  }
  .strip__meta .num,
  .strip__title {
    font-size: 1.3rem;
  }
  .strip__text {
    grid-column: 1;
    font-size: 0.9375rem;
  }
  .strip-hint {
    display: none;
  }
}

/* ---------- Aufgabenseiten (Eltern-Einwilligung, E-Mail-Bestätigung) ---------- */
.task-page {
  padding-block: clamp(3rem, 8vw, 6rem) clamp(4rem, 10vw, 7rem);
}
.task {
  max-width: 36rem;
  margin-inline: auto;
  padding: clamp(1.75rem, 5vw, 3rem);
  border: 1px solid var(--navy);
  border-top: 4px solid var(--sky);
  border-radius: var(--radius);
}
.task:focus-within {
  border-color: var(--navy);
}
.task__label {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 1rem;
}
.task__label--done {
  color: var(--teal-deep);
}
.task__label--error {
  color: var(--walnut);
}
.task__title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.08;
}
.task__title:focus {
  outline: none;
}
.task__text {
  margin-top: 1rem;
  color: var(--muted);
}
.task__text strong {
  color: var(--navy);
}
.task__checks {
  margin: 1.75rem 0 0;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--line);
}
.check {
  display: grid;
  grid-template-columns: 1.375rem 1fr;
  gap: 0.875rem;
  align-items: start;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.5;
}
.check input {
  appearance: none;
  -webkit-appearance: none;
  width: 1.375rem;
  height: 1.375rem;
  margin: 0.05rem 0 0;
  border: 1.5px solid var(--navy);
  border-radius: var(--radius);
  background: var(--cream);
  display: grid;
  place-content: center;
  cursor: pointer;
}
.check input::before {
  content: "";
  width: 0.75rem;
  height: 0.75rem;
  background: var(--cream);
  clip-path: polygon(14% 44%, 0 59%, 40% 100%, 100% 22%, 86% 8%, 39% 70%);
  visibility: hidden;
}
.check input:checked {
  background: var(--navy);
}
.check input:checked::before {
  visibility: visible;
}
.check input:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}
.task__fine {
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  color: var(--muted);
}
.task__btn {
  width: 100%;
  margin-top: 1.75rem;
}
.task__btn[disabled]:not(.is-sending) {
  background: var(--cream-2);
  border-color: var(--cream-3);
  color: rgb(23 42 58 / 0.7);
  cursor: not-allowed;
}
.task__btn.is-sending .btn__bar {
  display: inline-block;
}
@media (prefers-reduced-motion: no-preference) {
  .task__btn.is-sending .btn__bar {
    animation: skeleton-pulse 1s ease-in-out infinite;
  }
}
.btn--danger {
  --btn-bg: var(--walnut);
  --btn-fg: var(--cream);
  --btn-hover-bg: var(--navy);
  --btn-hover-fg: var(--cream);
}
.task__error {
  margin-top: 1rem;
  padding-left: 0.75rem;
  border-left: 3px solid var(--walnut);
  color: var(--walnut);
  font-size: 0.9375rem;
}
.task__error:empty {
  display: none;
}
.task__note {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--teal-deep);
  background: var(--cream-2);
  font-size: 0.9375rem;
}
.task__help {
  margin-top: 1.5rem;
  font-size: 0.9375rem;
  color: var(--muted);
}
/* Skeleton, solange der Zustand geladen wird */
.task__skeleton {
  display: grid;
  gap: 0.875rem;
}
.task__skeleton span {
  display: block;
  height: 1rem;
  background: var(--cream-2);
}
.task__skeleton span:nth-child(1) { width: 35%; height: 0.8rem; }
.task__skeleton span:nth-child(2) { width: 70%; height: 2.4rem; margin-bottom: 0.5rem; }
.task__skeleton span:nth-child(3) { width: 100%; }
.task__skeleton span:nth-child(4) { width: 85%; }
.task__skeleton span:nth-child(5) { width: 100%; height: 3.25rem; margin-top: 1rem; }
@media (prefers-reduced-motion: no-preference) {
  .task__skeleton {
    animation: skeleton-pulse 1.6s ease-in-out infinite;
  }
}

/* Logo neben der Wortmarke */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
}
.wordmark__logo {
  width: 2rem;
  height: 2rem;
  flex: none;
}
.site-footer .wordmark__logo {
  width: 2.5rem;
  height: 2.5rem;
}

/* ---------- Newsletter (im Abschnitt „Demnächst“) ---------- */
.newsletter {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.newsletter__title {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  line-height: 1.15;
}
.newsletter__text {
  margin-top: 0.75rem;
  color: var(--muted);
  max-width: 48ch;
}
.newsletter__form {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.75rem;
}
.newsletter__row {
  display: grid;
  gap: 0.75rem;
}
.newsletter__consent {
  font-size: 0.9375rem;
  color: var(--muted);
  max-width: 52ch;
}
.newsletter__form.is-sending .btn__bar {
  display: inline-block;
}
@media (prefers-reduced-motion: no-preference) {
  .newsletter__form.is-sending .btn__bar {
    animation: skeleton-pulse 1s ease-in-out infinite;
  }
}
@media (min-width: 560px) {
  .newsletter__row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}
.newsletter__row[hidden] { display: none; }
