/* ==========================================================================
   Maximilian Dauter – Webseite
   Design „Sportlich & dynamisch“: dunkler Grund, sparsamer Akzent, kräftige Versalien
   ========================================================================== */

/* ---------- Schriften (lokal eingebunden, SIL Open Font License) ---------- */
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-latin-800-normal.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design-Tokens ---------- */
:root {
  --bg: #111317;
  --bg-deep: #0b0c0f;
  --surface: #1b1e24;
  --surface-2: #23272f;
  --line: rgba(245, 245, 242, 0.12);
  --line-strong: rgba(245, 245, 242, 0.28);
  --text: #f5f5f2;
  --muted: #a3a8b0;
  /* Akzent nur für Buttons, „Stark“ im Claim und kleine Details */
  --accent: #f2b544;
  --accent-ink: #111317;
  --danger: #ff8a8a;

  --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-space: clamp(72px, 10vw, 136px);
  --skew: clamp(24px, 4vw, 64px);
  --header-h: 72px;
  --radius: 4px;

  color-scheme: dark;
}

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

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}

/* Erst nach der ersten Interaktion aktiv (main.js) – sonst bricht der Sprung
   zu einem Anker beim Laden (z. B. datenschutz.html#cal) ab */
@media (prefers-reduced-motion: no-preference) {
  html.smooth-scroll {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent);
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.95;
  text-transform: uppercase;
}

p {
  margin: 0 0 1em;
}

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

main:focus {
  outline: none;
}

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

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}

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

/* Platzhalter: markiert alles, was vor dem Livegang noch ersetzt werden muss */
.ph {
  padding: 0 4px;
  border-radius: 2px;
  outline: 1px dashed var(--line-strong);
  outline-offset: 1px;
  background: rgba(245, 245, 242, 0.05);
  color: var(--muted);
  font-style: italic;
}

/* ---------- Typo-Bausteine ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--accent);
}

.section__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

.section__lead {
  max-width: 60ch;
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.125rem;
}

.note {
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn--primary:hover {
  color: var(--accent-ink);
  transform: translateY(-2px);
}

.btn--ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--text);
  color: var(--text);
}

.btn:disabled {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

/* ---------- Header & Navigation ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

/* Hintergrund als Pseudo-Element: backdrop-filter direkt am Header würde
   die fixierte mobile Navigation auf die Header-Höhe begrenzen */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transition: background-color 0.25s ease;
}

.site-header.is-scrolled,
.site-header--solid,
body.nav-open .site-header {
  border-color: var(--line);
}

.site-header.is-scrolled::before,
.site-header--solid::before,
body.nav-open .site-header::before {
  background: rgba(17, 19, 23, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand__logo {
  width: auto;
  height: 30px;
}

.nav-toggle {
  display: inline-grid;
  place-content: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 49;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 24px var(--gutter) 40px;
  overflow-y: auto;
  background: var(--bg);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0.3s ease;
}

.nav.is-open {
  transform: none;
  visibility: visible;
}

.nav a:not(.btn) {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  text-transform: uppercase;
}

.nav .btn {
  margin-top: 24px;
}

@media (min-width: 1180px) {
  .nav-toggle {
    display: none;
  }

  .nav {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    padding: 0;
    overflow: visible;
    background: none;
    transform: none;
    visibility: visible;
    transition: none;
  }

  .nav a:not(.btn) {
    padding: 8px 0;
    border: 0;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.08em;
  }

  .nav .btn {
    min-height: 44px;
    margin: 0;
    padding: 0 18px;
    font-size: 1rem;
  }
}

/* Ohne JavaScript: Navigation einfach anzeigen */
html:not(.js) .nav-toggle {
  display: none;
}

html:not(.js) .site-header {
  position: static;
  height: auto;
  background: var(--bg);
}

html:not(.js) .site-header__inner {
  flex-wrap: wrap;
  padding-block: 16px;
}

html:not(.js) .nav {
  position: static;
  flex-flow: row wrap;
  gap: 8px 20px;
  padding: 0;
  background: none;
  transform: none;
  visibility: visible;
}

html:not(.js) .nav a:not(.btn) {
  border: 0;
  font-size: 1.125rem;
}

.back-link {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(32px, 6vw, 72px)) 0 clamp(56px, 8vw, 96px);
}

.hero__title {
  font-size: clamp(1.9rem, 8.6vw, 6rem);
  line-height: 0.92;
}

.hero__title .line {
  display: block;
}

.hl {
  color: var(--accent);
}

.hero__lead {
  max-width: 40ch;
  margin: 28px 0 32px;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__media {
  position: relative;
  margin: 48px var(--gutter) 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: radial-gradient(120% 90% at 70% 30%, #2a2f38 0%, var(--surface) 55%, var(--bg) 100%);
  clip-path: polygon(0 6%, 100% 0, 100% 94%, 0 100%);
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
  filter: grayscale(0.35) contrast(1.05);
}

@media (min-width: 1000px) {
  .hero {
    display: flex;
    align-items: center;
    min-height: min(100svh, 900px);
  }

  .hero__title {
    font-size: clamp(3.5rem, 6vw, 5.75rem);
  }

  .hero__title .line {
    white-space: nowrap;
  }

  .hero__media {
    position: absolute;
    inset: 0 0 0 auto;
    z-index: -1;
    width: 46%;
    margin: 0;
    aspect-ratio: auto;
    clip-path: polygon(24% 0, 100% 0, 100% 100%, 0 100%);
  }

  .hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    /* Oben abgedunkelt, damit die Navigation auf dem Foto lesbar bleibt */
    background:
      linear-gradient(180deg, rgba(17, 19, 23, 0.78) 0, rgba(17, 19, 23, 0) 22%),
      linear-gradient(90deg, var(--bg) 0%, rgba(17, 19, 23, 0.25) 40%, rgba(17, 19, 23, 0) 100%);
  }
}

/* ---------- Qualifikations-Leiste ---------- */
.band {
  border-block: 1px solid var(--line);
  background: var(--bg-deep);
}

.band__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 32px;
  margin-block: 0;
  padding: 20px 0;
  list-style: none;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.band__list li {
  display: inline-flex;
  align-items: center;
  gap: 32px;
}

/* Trenner nur, wenn alles in eine Zeile passt */
@media (min-width: 1000px) {
  .band__list li:not(:last-child)::after {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--accent);
    transform: rotate(45deg);
  }
}

/* ---------- Sektionen ---------- */
.section {
  padding-block: var(--section-space);
}

.section--alt {
  padding-block: calc(var(--section-space) + var(--skew));
  background: var(--surface);
  clip-path: polygon(0 var(--skew), 100% 0, 100% calc(100% - var(--skew)), 0 100%);
}

.section__head {
  max-width: 780px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

/* ---------- Karten ---------- */
.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 0.2s ease;
}

.card:hover {
  border-color: var(--line-strong);
}

.section--alt .card {
  background: var(--bg);
}

.card__title {
  font-size: clamp(1.875rem, 3vw, 2.25rem);
}

.card__sub {
  margin: -4px 0 0;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card p {
  margin: 0;
}

/* Was Interessenten wissen wollen – die Antwort steht direkt darunter */
.card__ask {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.card__text {
  color: var(--muted);
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.card__link .icon {
  color: var(--accent);
  transition: transform 0.2s ease;
}

.card__link:hover .icon {
  transform: translateX(4px);
}

.card .btn {
  align-self: flex-start;
  margin-top: auto;
}

/* Füllt die letzte Zelle im Raster und hilft bei der Auswahl */
.card--cta {
  border-color: var(--line-strong);
  background: none;
}

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

.checklist li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
}

.checklist .icon {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  color: var(--muted);
}

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

.place {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.95rem;
}

.place .icon {
  color: var(--muted);
}

.offers,
.org-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 800px) {
  .offers,
  .org-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Breite Karte über die ganze Zeile, Liste zweispaltig */
  .card--wide {
    grid-column: 1 / -1;
  }

  .card--wide .checklist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
  }
}

/* ---------- Kurse ---------- */
.courses {
  display: grid;
  gap: 12px;
}

.course {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--line);
  background: var(--bg);
  transition: border-color 0.2s ease;
}

.course:hover {
  border-color: var(--line-strong);
}

@media (min-width: 640px) {
  .course {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 32px;
  }
}

.course__title {
  margin: 0 0 6px;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1;
}

.course__desc {
  margin: 0;
  color: var(--muted);
}

.course .btn {
  justify-self: start;
}

/* ---------- Über mich ---------- */
.about {
  display: grid;
  gap: 40px;
  align-items: start;
}

@media (min-width: 900px) {
  .about {
    grid-template-columns: 5fr 7fr;
    gap: 64px;
  }
}

.prose {
  margin-top: 24px;
}

.prose p {
  color: var(--muted);
}

.stations {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.stations li {
  display: grid;
  gap: 2px 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

@media (min-width: 560px) {
  .stations li {
    grid-template-columns: 1fr auto;
    align-items: baseline;
  }
}

.stations strong {
  color: var(--text);
  font-weight: 600;
}

.stations__time {
  font-size: 0.875rem;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.badge {
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 16px;
  margin-top: clamp(56px, 8vw, 96px);
}

/* ---------- Bild-Rahmen ---------- */
.media {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--surface-2), var(--bg));
}

.media--portrait {
  aspect-ratio: 4 / 5;
}

.media--tile {
  aspect-ratio: 4 / 3;
}

/* Gleicher Bildlook wie im Hero, damit die Fotos zusammengehören */
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.35) contrast(1.05);
}

/* ---------- Ablauf ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 20px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 72px;
  border-top: 2px solid var(--line);
}

.step::before {
  content: "0" counter(step);
  counter-increment: step;
  position: absolute;
  top: 14px;
  left: 0;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
}

.step h3 {
  margin-bottom: 8px;
  font-size: 1.75rem;
}

.step p {
  color: var(--muted);
}

/* ---------- Preise ---------- */
.price-list {
  max-width: 860px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.price-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.price-list__name,
.price-list__amount {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

.price-list__name small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  text-transform: none;
}

.price-list__amount {
  flex: none;
  white-space: nowrap;
}

/* ---------- Kundenstimmen ---------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 20px;
}

.quote {
  margin: 0;
  padding: 28px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
}

.quote blockquote {
  margin: 0 0 16px;
  font-size: 1.125rem;
}

.quote figcaption {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 860px;
  border-top: 1px solid var(--line);
}

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

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-transform: uppercase;
  list-style: none;
  cursor: pointer;
}

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

.faq summary::after {
  content: "+";
  flex: none;
  color: var(--muted);
  font-size: 2rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq__answer {
  max-width: 70ch;
  padding-bottom: 20px;
  color: var(--muted);
}

/* ---------- Kontakt ---------- */
.contact {
  display: grid;
  gap: 24px;
}

@media (min-width: 1000px) {
  .contact {
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
  }
}

.panel {
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid var(--line);
  background: var(--bg);
}

.panel__title {
  margin-bottom: 20px;
  font-size: 1.75rem;
}

.panel__text {
  margin: -8px 0 0;
  color: var(--muted);
}

.cal-target:not(:empty) {
  width: 100%;
  min-height: 520px;
  margin-top: 16px;
}

.cal-missing {
  padding: 20px;
  border: 1px dashed var(--line-strong);
  color: var(--muted);
}

.consent {
  display: grid;
  justify-items: start;
  gap: 16px;
  margin-top: 16px;
  padding: 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}

.consent p {
  color: var(--muted);
  font-size: 0.95rem;
}

.cal-alt {
  margin: 16px 0 0;
  font-size: 0.95rem;
}

.form {
  display: grid;
  gap: 18px;
}

.form__row {
  display: grid;
  gap: 18px;
}

@media (min-width: 560px) {
  .form__row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.field {
  display: grid;
  align-content: start;
  gap: 6px;
}

.field label {
  font-size: 0.95rem;
  font-weight: 600;
}

.optional {
  color: var(--muted);
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(245, 245, 242, 0.22);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(245, 245, 242, 0.15);
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: var(--danger);
}

.field__hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.field__error {
  margin: 0;
  color: var(--danger);
  font-size: 0.875rem;
}

.field--check {
  grid-template-columns: 22px 1fr;
  column-gap: 12px;
  align-items: start;
}

.field--check input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: var(--accent);
}

.field--check label {
  color: var(--muted);
  font-weight: 400;
}

.field--check .field__error {
  grid-column: 2;
}

.form .btn {
  justify-self: start;
}

.form__status {
  min-height: 1.6em;
  margin: 0;
  font-weight: 600;
}

.form__status.is-success {
  color: var(--text);
}

.form__status.is-error {
  color: var(--danger);
}

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

.direct li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.direct .icon {
  color: var(--muted);
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
  color: var(--muted);
  font-size: 0.95rem;
}

.footer {
  display: grid;
  gap: 28px;
}

@media (min-width: 860px) {
  .footer {
    grid-template-columns: 1.4fr 1fr auto;
    align-items: end;
  }
}

.footer .brand {
  margin-bottom: 12px;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer__nav a {
  text-decoration: none;
}

.footer__copy {
  margin: 0;
}

/* ---------- Rechtliche Seiten & 404 ---------- */
.legal {
  max-width: 760px;
  padding: calc(var(--header-h) + 56px) 0 96px;
}

.legal h1 {
  margin-bottom: 32px;
  font-size: clamp(2.75rem, 7vw, 4.5rem);
}

.legal h2 {
  margin: 40px 0 12px;
  font-size: 1.75rem;
}

.legal h3 {
  margin: 28px 0 10px;
  font-size: 1.25rem;
}

.legal p,
.legal li {
  color: var(--muted);
}

/* Lange Links aus dem Generator dürfen umbrechen */
.legal a {
  overflow-wrap: anywhere;
}

.legal__notice {
  margin-bottom: 32px;
  padding: 12px 16px;
  border: 1px dashed var(--line-strong);
  color: var(--text) !important;
  font-weight: 600;
}

.notfound {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 20px;
  min-height: 100svh;
  padding: calc(var(--header-h) + 24px) var(--gutter) 48px;
  text-align: center;
}

.notfound__code {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: clamp(6rem, 22vw, 14rem);
  font-weight: 800;
  line-height: 0.85;
}

.notfound p:not(.notfound__code) {
  color: var(--muted);
}

/* ---------- Einblenden beim Scrollen ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js :is(.offers, .org-grid, .courses, .steps, .gallery) > .reveal:nth-child(2) {
  transition-delay: 0.08s;
}

.js :is(.offers, .org-grid, .courses, .steps, .gallery) > .reveal:nth-child(3) {
  transition-delay: 0.16s;
}

.js :is(.offers, .org-grid, .courses, .steps, .gallery) > .reveal:nth-child(4) {
  transition-delay: 0.24s;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
