/* ==========================================================================
   AZ-Bildungswerk – styles.css
   Gestaltung: hell, freundlich, gut lesbar. Blau = Vertrauen, Gelb = Handlung.
   Schrift lokal gehostet (DSGVO): Plus Jakarta Sans (variabel, OFL).
   Keine externen Ressourcen, keine Cookies.
   ========================================================================== */

/* ---------- 0. Schrift ---------- */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/jakarta.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- 1. Tokens ---------- */
:root {
  /* Flächen */
  --bg: #FFFFFF;
  --bg-soft: #F4F7FD;
  --bg-blue: #EAF0FF;
  --navy: #0B1B3F;
  --navy-2: #13275A;

  /* Text */
  --heading: #0B1B3F;   /* 17:1 auf Weiß */
  --text: #2A3654;      /* 11.9:1 auf Weiß */
  --muted: #536079;     /* 6.4:1 auf Weiß, 5.9:1 auf --bg-soft */
  --on-dark: #FFFFFF;
  --on-dark-2: #C9D3EA;  /* 11:1 auf --navy */

  /* Marke */
  --blue: #2050E0;       /* weiße Schrift 6.4:1 */
  --blue-700: #1A3FB4;
  --blue-50: #EEF3FF;
  --yellow: #FFC83D;     /* Navy-Schrift 10.9:1 */
  --yellow-600: #F5B50F;
  --yellow-50: #FFF6DC;

  /* Kursfarben (Icon-Kacheln) */
  --sec: #2050E0;  --sec-bg: #E8EEFF;
  --mkt: #D4401F;  --mkt-bg: #FFEDE7;
  --ki: #6236E8;   --ki-bg: #F0EBFF;
  --green: #0F8A5A; --green-bg: #E3F6EC;

  /* Linien */
  --line: #E2E8F3;
  --line-2: #CFD8E8;
  --field-border: #8A95AC;   /* 3.2:1 auf Weiß (Formfeld-Rahmen) */

  /* Status */
  --ok: #0F7A50;  --ok-bg: #E5F6EE;
  --err: #C0261B; --err-bg: #FDECEA;

  /* Form */
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(11, 27, 63, .06), 0 2px 8px rgba(11, 27, 63, .05);
  --shadow: 0 2px 4px rgba(11, 27, 63, .04), 0 12px 32px -12px rgba(11, 27, 63, .18);
  --shadow-lg: 0 4px 8px rgba(11, 27, 63, .04), 0 32px 64px -24px rgba(11, 27, 63, .28);

  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --container: 1200px;
  --gutter: 20px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --focus: #1A3FB4;

  color-scheme: light;
}
@media (min-width: 900px) {
  :root { --gutter: 32px; --header-h: 80px; }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.125rem;      /* 18px */
  font-weight: 450;         /* etwas kräftiger als Regular – ruhigeres Schriftbild */
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--heading);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  overflow-wrap: break-word;
  hyphens: manual;
  text-wrap: balance;
}

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

a { color: var(--blue); text-underline-offset: .18em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--blue-700); }

strong, b { font-weight: 700; color: var(--heading); }
mark { background: none; color: inherit; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}
::selection { background: var(--yellow); color: var(--navy); }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.narrow { max-width: calc(820px + 2 * var(--gutter)); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.nowrap { white-space: nowrap; }

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 300;
  padding: 12px 20px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip:focus { top: 12px; color: #fff; }

/* Platzhalter, die der Betreiber ersetzen muss */
.ph,
mark.ph {
  background: #FFE9A3;
  color: #3A2E00;
  border: 1px dashed #B88A00;
  border-radius: 4px;
  padding: 0 .3em;
  font-weight: 600;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Icon-Kacheln */
.tile {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
}
.tile .i { width: 24px; height: 24px; }
.tile-lg { width: 60px; height: 60px; border-radius: 18px; }
.tile-lg .i { width: 30px; height: 30px; }
.tile-sec { background: var(--sec-bg); color: var(--sec); }
.tile-mkt { background: var(--mkt-bg); color: var(--mkt); }
.tile-ki { background: var(--ki-bg); color: var(--ki); }
.tile-green { background: var(--green-bg); color: var(--green); }
.tile-yellow { background: var(--yellow-50); color: #8A5A00; }

/* ---------- 3. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 50px;
  padding: 12px 26px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--navy);
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: 0 6px 18px -8px rgba(245, 181, 15, .8);
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.btn .i { transition: transform .2s var(--ease); }
.btn:hover {
  background: var(--yellow-600);
  color: var(--navy);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -10px rgba(245, 181, 15, .9);
}
.btn:hover .i { transform: translateX(3px); }
.btn:active { transform: translateY(0); }

.btn-blue {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(32, 80, 224, .7);
}
.btn-blue:hover { background: var(--blue-700); color: #fff; box-shadow: 0 12px 24px -12px rgba(32, 80, 224, .8); }

.btn-ghost {
  background: #fff;
  color: var(--heading);
  border-color: var(--line-2);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { background: #fff; color: var(--blue); border-color: var(--blue); box-shadow: var(--shadow-sm); }

.btn-small { min-height: 44px; padding: 10px 20px; font-size: .9375rem; }
.btn-large { min-height: 58px; padding: 14px 30px; font-size: 1.0625rem; }
.btn-block { width: 100%; }

.btn[disabled],
form[aria-busy="true"] button[type="submit"] {
  opacity: .65;
  cursor: progress;
  transform: none;
}

/* ---------- 4. Topbar & Header ---------- */
.topbar {
  background: var(--navy);
  color: var(--on-dark-2);
  font-size: .875rem;
  --focus: var(--yellow);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 40px;
}
.topbar p { display: flex; align-items: center; gap: 8px; margin: 0; }
.topbar p:first-child { color: #fff; font-weight: 700; }
.topbar .i { width: 18px; height: 18px; color: var(--yellow); }
.topbar-extra { display: none !important; }
.topbar-link {
  display: none;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 8px 0;
}
.topbar-link:hover { color: var(--yellow); }
.topbar-link .i { color: currentColor; }
@media (min-width: 640px) { .topbar-link { display: inline-flex; } }
@media (min-width: 900px) { .topbar-extra { display: flex !important; } }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
  backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--heading);
  text-decoration: none;
}
.logo:hover { color: var(--heading); }
.logo-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -.02em;
  box-shadow: 0 6px 14px -6px rgba(32, 80, 224, .7);
}
.logo-mark::after {
  content: "";
  position: absolute;
  top: -3px;
  right: -3px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--yellow);
  border: 2.5px solid #fff;
}
.logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.02em;
}

.nav-toggle {
  display: inline-grid;
  place-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1.5px solid var(--line-2);
  border-radius: 14px;
  background: #fff;
  color: var(--heading);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Navigation */
.nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  padding: 8px var(--gutter) 24px;
  /* Querformat / Zoom: Menü scrollt selbst (Seite ist bei offenem Menü gesperrt); 40px = Topbar */
  max-height: calc(100vh - var(--header-h) - 40px);
  max-height: calc(100dvh - var(--header-h) - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 40px -20px rgba(11, 27, 63, .3);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
}
.nav.open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s;
}
.nav a:not(.btn) {
  display: block;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--heading);
  font-size: 1.1875rem;
  font-weight: 700;
  text-decoration: none;
}
.nav a:not(.btn):hover { color: var(--blue); }
.nav .btn { margin-top: 20px; }

body.nav-open { overflow: hidden; }

@media (min-width: 1000px) {
  body.nav-open { overflow: visible; }
  .nav-toggle { display: none; }
  .nav {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    padding: 0;
    max-height: none;
    overflow: visible;
    background: none;
    border: 0;
    box-shadow: none;
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: none;
  }
  .nav a:not(.btn) {
    padding: 10px 14px;
    border: 0;
    border-radius: 10px;
    font-size: 1rem;
    color: var(--text);
  }
  .nav a:not(.btn):hover,
  .nav a[aria-current]:not(.btn) { background: var(--bg-soft); color: var(--blue); }
  .nav .btn { margin: 0 0 0 12px; }
}

/* ---------- 5. Bausteine ---------- */
.section { padding-block: clamp(72px, 9vw, 120px); }
.section-tight { padding-block: clamp(24px, 4vw, 48px); }
.section-soft { background: var(--bg-soft); }

.section-head {
  max-width: 760px;
  margin-bottom: clamp(40px, 5vw, 60px);
}
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2,
.about-text h2,
.faq-aside h2,
.signup-info h2 {
  font-size: clamp(2rem, 1.4rem + 2.2vw, 2.875rem);
  margin-bottom: 16px;
}
.section-head p:not(.eyebrow) { color: var(--text); font-size: 1.1875rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--blue-700);
  font-size: .875rem;
  font-weight: 800;
  letter-spacing: .02em;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255, 200, 61, .35);
}
.eyebrow-light { background: rgba(255, 255, 255, .12); color: #fff; }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(40px, 6vw, 88px);
  padding-bottom: clamp(40px, 5vw, 64px);
  background:
    radial-gradient(60% 70% at 85% 10%, rgba(32, 80, 224, .14) 0%, rgba(32, 80, 224, 0) 70%),
    radial-gradient(45% 55% at 10% 65%, rgba(255, 200, 61, .20) 0%, rgba(255, 200, 61, 0) 70%),
    linear-gradient(180deg, #F2F6FF 0%, var(--bg-soft) 100%);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  /* feines Punktraster */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(11, 27, 63, .09) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(70% 60% at 75% 30%, #000 0%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 75% 30%, #000 0%, transparent 75%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);   /* Spalte darf nicht auf Wortbreite der H1 wachsen */
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 8px 16px 8px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  color: var(--heading);
  font-size: .9375rem;
  font-weight: 700;
}
.badge .i { width: 22px; height: 22px; color: var(--green); }

.hero h1 {
  font-size: clamp(2.25rem, 1.3rem + 4vw, 4rem);
  line-height: 1.08;
  letter-spacing: -.03em;
  max-width: 16ch;
}
@media (max-width: 374px) {
  /* „Bildungsgutschein." passt so auch bei 320px in eine Zeile */
  .hero h1 { font-size: clamp(1.75rem, 9.6vw, 2.25rem); }
}
.hl {
  position: relative;
  color: var(--blue);
  white-space: nowrap;
  z-index: 0;
}
.hl::after {
  content: "";
  position: absolute;
  left: -.08em;
  right: -.08em;
  bottom: .06em;
  height: .32em;
  border-radius: .2em;
  background: var(--yellow);
  opacity: .75;
  z-index: -1;
}

.lead {
  max-width: 54ch;
  margin-top: 22px;
  font-size: clamp(1.125rem, 1.05rem + .35vw, 1.3125rem);
  line-height: 1.6;
  color: var(--text);
}
.lead strong { color: var(--heading); }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero-cta .btn { flex: 1 1 100%; }
@media (min-width: 520px) { .hero-cta .btn { flex: 0 0 auto; } }

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--heading);
}
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points .i {
  width: 22px;
  height: 22px;
  padding: 4px;
  border-radius: 50%;
  background: var(--green-bg);
  color: var(--green);
  stroke-width: 3;
}

/* Hero-Foto */
.hero-media {
  position: relative;
  margin: 4px 0 8px;
  padding-bottom: 22px;
  isolation: isolate;
}
.hero-media::before {
  /* farbige Fläche hinter dem Foto */
  content: "";
  position: absolute;
  inset: 22px -10px 0 26px;
  z-index: -1;
  border-radius: 36px;
  background: linear-gradient(135deg, var(--blue) 0%, #5B7CFF 60%, #9B7BFF 100%);
  transform: rotate(2.5deg);
}
.hero-media::after {
  /* gelbes Punktraster als Akzent */
  content: "";
  position: absolute;
  left: -18px;
  top: -16px;
  z-index: -1;
  width: 104px;
  height: 104px;
  background: radial-gradient(var(--yellow) 2.2px, transparent 2.6px) 0 0 / 13px 13px;
}
.hero-photo {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 28px;
  background: var(--bg-blue);
  box-shadow: var(--shadow-lg);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 16:9-Foto ist im 6:5-/4:3-Rahmen höhengebunden: nur x zählt.
     25 % zeigt die ganze Gruppe statt des unscharfen Vortragenden rechts. */
  object-position: 25% 50%;
}
.hv-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px 11px 11px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-lg);
  line-height: 1.25;
}
.hv-float > span:last-child { display: grid; }
.hv-float b { font-size: .9375rem; color: var(--heading); }
.hv-float small { font-size: .8125rem; color: var(--muted); }
.hv-float .tile { width: 42px; height: 42px; border-radius: 12px; }
.hv-float .tile .i { width: 22px; height: 22px; }
.hv-float-1 { left: -6px; bottom: 0; }
.hv-float-2 { right: -6px; top: 14px; }
.hv-float-3 { display: none; }
.hv-avatars { display: flex; }
.hv-avatars .tile {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2.5px solid #fff;
}
.hv-avatars .tile + .tile { margin-left: -10px; }
.hv-avatars .tile .i { width: 18px; height: 18px; }
@media (max-width: 479px) {
  .hv-float { padding: 8px 12px 8px 8px; gap: 10px; }
  .hv-float small { display: none; }
  .hv-float .tile { width: 34px; height: 34px; border-radius: 10px; }
  .hv-float .tile .i { width: 18px; height: 18px; }
}
/* Handy: Deko-Flächen bleiben im 20px-Seitenrand wie die Info-Karten (-6px) */
@media (max-width: 639px) {
  .hero-media::after { left: -6px; top: -10px; width: 78px; height: 78px; }
  .hero-media::before { inset: 18px -6px 0 18px; transform: rotate(1.5deg); }
}

@media (min-width: 1000px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
  .hero h1 { font-size: clamp(3rem, 4.6vw, 3.875rem); }
  .hero-media { margin: 0; padding: 0 0 30px; }
  .hero-photo { aspect-ratio: 6 / 5; border-radius: 32px; }
  .hv-float-1 { left: -40px; bottom: 70px; }
  .hv-float-2 { right: -26px; top: -12px; }
  .hv-float-3 { display: flex; right: 28px; bottom: 0; }
}
/* 1000–1279px: Karte 2 hält ~20px Abstand zum Bildschirmrand (statt 6px) */
@media (min-width: 1000px) and (max-width: 1279px) {
  .hv-float-2 { right: -12px; }
}

/* Kennzahlen */
.stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: clamp(48px, 6vw, 80px) 0 0;
  padding: 0;
  list-style: none;
  border-radius: var(--radius-lg);
  background: var(--line);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.stats > li,
.stats > div {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-content: start;
  padding: 22px 18px;
  background: #fff;
}
.stat-icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--blue);
}
.stat-icon .i { width: 22px; height: 22px; }
.stats .stat-value,
.stats dt {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
  color: var(--heading);
}
.stats .stat-label,
.stats dd {
  display: block;
  margin: 2px 0 0;
  font-size: .9375rem;
  line-height: 1.4;
  color: var(--muted);
  overflow-wrap: anywhere;
  -webkit-hyphens: auto;
  hyphens: auto;
}
.stats .stat-label a,
.stats dd a {
  display: inline;
  padding: 0 0 0 1px;
  color: var(--blue);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
}
@media (max-width: 519px) {
  .stats { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 1100px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stats > li,
  .stats > div { padding: 26px 24px; }
}

/* ---------- 7. Kurse ---------- */
#kurse { background: linear-gradient(180deg, var(--bg-soft) 0, var(--bg) 360px); }

.courses {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}
@media (min-width: 760px) { .courses { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (min-width: 1100px) { .courses { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.course {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  scroll-margin-top: calc(var(--header-h) + 20px);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.course::before {
  display: none;
  content: "";
  position: absolute;
  top: -1px;
  left: 28px;
  right: 28px;
  height: 4px;
  border-radius: 0 0 4px 4px;
  background: var(--accent, var(--blue));
}
.course-sec { --accent: var(--sec); }
.course-mkt { --accent: var(--mkt); }
.course-ki { --accent: var(--ki); }
.course:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
@media (max-width: 639px) {
  .course { padding: 24px 20px; }
  .course::before { left: 20px; right: 20px; }
}

/* Kursbilder */
.course { --pad: 28px; overflow: hidden; }
@media (max-width: 639px) { .course { --pad: 20px; } }
.course-media {
  position: relative;
  margin: calc(-1 * var(--pad)) calc(-1 * var(--pad)) 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-blue);
}
@media (max-width: 639px) { .course-media { margin-top: -24px; } }
.course-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.course-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 27, 63, 0) 55%, rgba(11, 27, 63, .35) 100%);
}
.course:hover .course-media img { transform: scale(1.04); }
.course-media .tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  background: rgba(255, 255, 255, .95);
  box-shadow: var(--shadow-sm);
}
.course-media + .course-top {
  position: relative;
  z-index: 1;
  margin-top: -33px;
  margin-bottom: 16px;
}
.course-media + .course-top .tile {
  width: 66px;
  height: 66px;
  border: 4px solid #fff;
  box-shadow: var(--shadow);
}

.course-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.tag {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--heading);
  font-size: .8125rem;
  font-weight: 800;
}
.course h3 { font-size: 1.5rem; line-height: 1.2; }
/* 3er-Raster: Titel immer 2 Zeilen hoch, damit Untertitel, Chips und Liste aller Karten auf einer Linie starten */
@media (min-width: 1100px) { .course h3 { min-height: 2.4em; } }
.course-sub { margin: 8px 0 0; color: var(--text); font-size: 1.0625rem; line-height: 1.5; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.chips li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--heading);
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.3;
}
.chips .i { width: 16px; height: 16px; color: var(--blue); }
.chips a { color: var(--blue); text-decoration: underline; text-decoration-thickness: 2px; padding: 0 2px; }

.checks {
  margin: 20px 0 8px;
  padding: 20px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.checks li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F8A5A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* „Für wen?" + Buttons sitzen gemeinsam am Kartenboden; Restraum fällt nach der Checkliste */
.course-for {
  margin: auto 0 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--bg-soft);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
}

.course-actions {
  margin-top: 0;
  padding-top: 22px;
}

.variants { display: grid; gap: 10px; }
.variant {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 12px;
  padding: 12px 22px 12px 26px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 20px -10px rgba(32, 80, 224, .7);
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.variant:hover { color: #fff; background: var(--blue-700); transform: translateY(-1px); }
.variant-dur { font-weight: 800; font-size: 1.0625rem; line-height: 1.25; }
.variant-desc { grid-row: 2; font-size: .875rem; color: rgba(255, 255, 255, .85); line-height: 1.3; }
.variant > .i { grid-row: 1 / span 2; grid-column: 2; width: 22px; height: 22px; transition: transform .2s var(--ease); }
.variant:hover > .i { transform: translateX(3px); }

/* ---------- 7b. Symmetrische Kurskarten ----------
   Alle Karten teilen sich ein Zeilenraster (Subgrid): Bild, Icon, Titel,
   Untertitel, Chips, Liste, „Für wen?“ und Buttons liegen in jeder Karte
   auf exakt derselben Höhe – egal wie lang die Texte sind. */
.variants { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.variant {
  min-height: 60px;
  padding: 9px 14px 9px 20px;
  column-gap: 8px;
  grid-template-columns: minmax(0, 1fr) 22px;   /* Pfeil immer gleich groß */
}
.variant > .i { max-width: none; }
.course-actions .btn-block { min-height: 60px; }
@media (max-width: 359px) {
  .variant { padding-left: 16px; padding-right: 10px; }
  .variant > .i { display: none; }
}

@media (min-width: 760px) {
  .courses { row-gap: 0; }
  .course {
    display: grid;
    grid-row: span 8;
    grid-template-rows: subgrid;
    row-gap: 0;
    align-content: start;
    margin-bottom: 24px;
  }
  .course h3 { min-height: 0; }
  .course-for { margin: 0; align-self: stretch; }
  .course-actions { align-self: end; }

  /* Tablet (2 Spalten): einzelne letzte Karte als Querformat über die volle Breite */
  .courses > .course:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    column-gap: 32px;
  }
  .courses > .course:last-child:nth-child(odd) > :not(.course-media) { grid-column: 2; }
  .courses > .course:last-child:nth-child(odd) > .course-media {
    grid-column: 1;
    grid-row: 1 / -1;
    margin: calc(-1 * var(--pad)) 0 calc(-1 * var(--pad)) calc(-1 * var(--pad));
    aspect-ratio: auto;
    min-height: 100%;
  }
  .courses > .course:last-child:nth-child(odd) > .course-media + .course-top { margin-top: 0; }
  .courses > .course:last-child:nth-child(odd) > .course-media + .course-top .tile { width: 56px; height: 56px; border-width: 0; box-shadow: none; }
}
@media (min-width: 1100px) {
  /* 3 Spalten: wieder normale Hochformat-Karten */
  .courses > .course:last-child:nth-child(odd) {
    grid-column: auto;
    grid-template-columns: minmax(0, 1fr);
    column-gap: 0;
  }
  .courses > .course:last-child:nth-child(odd) > :not(.course-media) { grid-column: auto; }
  .courses > .course:last-child:nth-child(odd) > .course-media {
    grid-column: auto;
    grid-row: auto;
    margin: calc(-1 * var(--pad)) calc(-1 * var(--pad)) 0;
    aspect-ratio: 16 / 10;
    min-height: 0;
  }
  .courses > .course:last-child:nth-child(odd) > .course-media + .course-top { margin-top: -33px; }
  .courses > .course:last-child:nth-child(odd) > .course-media + .course-top .tile { width: 66px; height: 66px; border-width: 4px; box-shadow: var(--shadow); }
}

.note {
  max-width: 820px;
  margin: 28px auto 0;
  text-align: center;
  font-size: 1rem;
  color: var(--muted);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.note:target { background: var(--yellow-50); color: var(--heading); padding: 10px 14px; border-radius: 10px; }

/* Mehrzeilige Absätze auf dem Handy linksbündig statt zentriert (besser lesbar) */
@media (max-width: 639px) {
  .section-head.center,
  .note { text-align: left; margin-inline: 0; }
}

/* Abstand um das Förderungs-Panel oben und unten gleich; Panel liegt auf der Bandgrenze */
#kurse { padding-bottom: clamp(48px, 6vw, 72px); }
#foerderung { background: linear-gradient(180deg, var(--bg) 50%, var(--bg-soft) 50%); }
#ueber-uns { padding-top: clamp(48px, 6vw, 72px); }

/* ---------- 8. Förderung (Panel) ---------- */
.panel {
  position: relative;
  padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 48px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(91, 124, 255, .45) 0%, rgba(91, 124, 255, 0) 60%),
    linear-gradient(135deg, var(--navy) 0%, #142E78 100%);
  color: var(--on-dark-2);
  overflow: hidden;
  isolation: isolate;
  --focus: var(--yellow);
}
.panel h2, .panel h3 { color: #fff; }
.panel .section-head p:not(.eyebrow) { color: var(--on-dark-2); }

.steps {
  position: relative;
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps li {
  position: relative;
  padding: 24px 20px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
}
.step-no {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 800;
  box-shadow: 0 0 0 6px rgba(255, 200, 61, .18);
}
.steps h3 { font-size: 1.1875rem; line-height: 1.3; letter-spacing: -.01em; margin-bottom: 8px; }
.steps p { font-size: 1rem; line-height: 1.6; color: var(--on-dark-2); }

@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .steps h3 { min-height: 2.6em; }   /* Absätze beginnen auf gleicher Höhe */
  .steps::before {
    /* gestrichelte Linie exakt von Kreis 1 bis Kreis 4 (Kreismitte: 20px Padding + 1px Rand + 24px) */
    content: "";
    position: absolute;
    top: 48px;
    left: 45px;
    right: calc((100% - 60px) / 4 - 45px);
    border-top: 2px dashed rgba(255, 255, 255, .25);
    z-index: -1;
  }
}

.panel .info-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 860px;
  margin: 36px auto 0;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: var(--yellow-50);
  color: #3D2F00;
  font-size: 1rem;
}
.panel .info-box .i { width: 24px; height: 24px; color: #8A5A00; margin-top: 2px; }
.panel .info-box p { min-width: 0; }

/* Handy: Panel randlos, Nummer neben der Überschrift, Text volle Breite */
@media (max-width: 639px) {
  .panel { border-radius: 0; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .steps li { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: center; padding: 20px; }
  .step-no { width: 44px; height: 44px; margin: 0; }
  .steps h3 { margin: 0; }
  .steps p { grid-column: 1 / -1; margin-top: 10px; }
  .panel .info-box { flex-direction: column; gap: 8px; padding: 18px; }
}
.panel .info-box b { color: #2A2000; }

/* ---------- 9. Über uns ---------- */
.about {
  display: grid;
  gap: 48px;
  align-items: center;
}
.about-photo {
  position: relative;
  margin: 0 0 18px;
  isolation: isolate;
}
.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  background: var(--bg-blue);
}
.about-photo::before {
  content: "";
  position: absolute;
  inset: -14px 26px 26px -14px;
  z-index: -1;
  border-radius: 34px;
  background: var(--yellow);
  opacity: .9;
}
@media (max-width: 639px) {
  .about-photo::before { inset: -10px 18px 18px -8px; }
}
.about-badge {
  position: absolute;
  right: 18px;
  bottom: -18px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  line-height: 1.25;
}
.about-badge > span:last-child { display: grid; }
.about-badge b { font-size: 1rem; }
.about-badge small { font-size: .875rem; color: var(--muted); }
/* Schmale Handys: kompaktes, symmetrisches Badge (wie .hv-float) */
@media (max-width: 479px) {
  .about-badge { left: 12px; right: 12px; bottom: -14px; padding: 8px 12px 8px 8px; }
  .about-badge .tile { width: 36px; height: 36px; border-radius: 11px; }
  .about-badge .tile .i { width: 20px; height: 20px; }
  .about-badge small { display: none; }
}
#ueber-uns .features { margin-top: clamp(48px, 6vw, 72px); }
@media (min-width: 1000px) {
  #ueber-uns .features { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* 1000–1199px: zweizeilige Titel → Absätze beginnen trotzdem auf gleicher Höhe */
@media (min-width: 1000px) and (max-width: 1199px) {
  #ueber-uns .features h3 { min-height: 2.4em; }
}
.about-lead {
  font-size: 1.3125rem;
  line-height: 1.5;
  font-weight: 600;
  color: var(--heading);
}
.about-text > p:not(.eyebrow):not(.about-lead) { color: var(--text); }
.about-text .btn { margin-top: 12px; }

.features {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.features li {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.features li:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.features .tile { margin-bottom: 16px; }
.features h3 { font-size: 1.1875rem; margin-bottom: 6px; }
.features p { font-size: 1rem; color: var(--text); line-height: 1.55; }

@media (min-width: 600px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) {
  .about { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; }
}

/* ---------- 10. FAQ ---------- */
.faq {
  display: grid;
  gap: 36px;
}
.faq-aside > p:not(.eyebrow) { color: var(--text); }
.help-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.help-card div { display: grid; line-height: 1.35; }
.help-card span:not(.tile) { color: var(--muted); font-size: .9375rem; }
.help-card .btn { grid-column: 1 / -1; margin-top: 4px; }

.faq-list { display: grid; gap: 12px; }
.faq details {
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.faq details[open] { border-color: var(--blue); box-shadow: var(--shadow); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 16px 20px 16px 22px;
  color: var(--heading);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i {
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--blue);
  transition: transform .25s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.faq summary:hover .i { background: var(--blue-50); }
.faq details[open] > summary .i { transform: rotate(180deg); background: var(--blue); color: #fff; }
.faq details p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.65;
}
@media (min-width: 1000px) {
  .faq { grid-template-columns: 4fr 8fr; gap: 64px; align-items: start; }
  .faq-aside { position: sticky; top: calc(var(--header-h) + 32px); }
}

/* ---------- 11. Anmeldung ---------- */
.section-signup {
  background:
    radial-gradient(50% 60% at 0% 0%, rgba(32, 80, 224, .10) 0%, rgba(32, 80, 224, 0) 70%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg-blue) 100%);
}
.signup {
  display: grid;
  gap: 40px;
}
.signup-info > p:not(.eyebrow) { color: var(--text); max-width: 46ch; }

.next {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.next li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .75);
  border: 1px solid var(--line);
  font-size: 1rem;
  line-height: 1.45;
  color: var(--text);
}
.next li > span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
}
.next b { display: block; margin-bottom: 2px; }

@media (min-width: 1000px) {
  .signup { grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
}
/* Mitlaufen nur, wenn die Spalte samt Foto (~910–950px) ganz in den Viewport passt –
   sonst blieben die Schritte 2–3 auf Laptops dauerhaft unter dem Bildschirmrand */
@media (min-width: 1000px) and (min-height: 1080px) {
  .signup-info { position: sticky; top: calc(var(--header-h) + 32px); }
}

.form {
  position: relative;
  padding: clamp(22px, 4vw, 44px);
  border-radius: var(--radius-xl);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.form-required { margin: 0 0 8px; }

.block {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.block + .block { margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--line); }
.block-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  padding: 0;
  color: var(--heading);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.3;
}
legend.block-title { float: left; width: 100%; }
legend.block-title + * { clear: both; }
legend.block-title + .field-error { margin: 0 0 12px; }
.legal a { overflow-wrap: anywhere; }
.block-no {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue-700);
  font-size: .9375rem;
  font-weight: 800;
}

.grid { display: grid; gap: 18px 18px; }
@media (min-width: 640px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .field.full { grid-column: 1 / -1; }
}

.field { min-width: 0; }
.field > label {
  display: block;
  margin-bottom: 8px;
  color: var(--heading);
  font-size: 1rem;
  font-weight: 700;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-height: 54px;
  padding: 13px 16px;
  border: 1.5px solid var(--field-border);
  border-radius: 12px;
  background: #fff;
  color: var(--heading);
  font: inherit;
  font-size: 1.0625rem;
  line-height: 1.4;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; }
.field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232050E0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 20px;
  cursor: pointer;
}
.field input::placeholder,
.field textarea::placeholder { color: #6B7690; opacity: 1; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: #5A6680; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid var(--focus);   /* sichtbar auch im Kontrastmodus */
  outline-offset: 1px;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(32, 80, 224, .2);
}

/* Auswahlkarten (Kurs) */
.choices { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }   /* Kurse: eine klare Liste */
@media (min-width: 640px) {
  .choice-wide { grid-column: 1 / -1; }
}
.choice {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 12px;
  padding: 15px 16px;
  border: 1.5px solid var(--field-border);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s var(--ease), background-color .15s var(--ease), box-shadow .15s var(--ease);
}
.choice:hover { border-color: var(--blue); background: #FAFCFF; }
.choice input {
  -webkit-appearance: none;
  appearance: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin: 0;
  border: 2px solid var(--field-border);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s var(--ease);
}
.choice input::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue);
  transform: scale(0);
  transition: transform .15s var(--ease);
}
.choice input:checked { border-color: var(--blue); }
.choice input:checked::before { transform: scale(1); }
.choice input:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.choice:has(input:checked) {
  border-color: var(--blue);
  background: var(--blue-50);
  box-shadow: 0 0 0 1px var(--blue);
}
.choice-body { display: grid; gap: 2px; padding-top: 1px; }
.choice-title { color: var(--heading); font-weight: 700; line-height: 1.35; font-size: 1rem; }
.choice-meta { color: var(--muted); font-size: .9375rem; line-height: 1.4; }

/* Einwilligung */
.field > label.consent,
.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  margin: 0;
  color: var(--text);
  font-size: .9375rem;
  font-weight: 450;
  line-height: 1.55;
  cursor: pointer;
}
.consent input {
  -webkit-appearance: none;
  appearance: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin: 0;
  border: 2px solid var(--field-border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}
.consent input::before {
  content: "";
  width: 12px;
  height: 7px;
  border-left: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: translateY(-2px) rotate(-45deg) scale(0);
  transition: transform .15s var(--ease);
}
.consent input:checked { background: var(--blue); border-color: var(--blue); }
.consent input:checked::before { transform: translateY(-2px) rotate(-45deg) scale(1); }
.consent input:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.consent a { font-weight: 700; }

.submit-row { margin-top: 4px; }
.submit-row .small {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}
.submit-row .small .i { width: 18px; height: 18px; color: var(--green); }

.small { font-size: .9375rem; color: var(--muted); }

/* Spamschutz */
.hp {
  position: absolute !important;
  left: -10000px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Fehler & Status */
.field-error {
  display: flex;
  gap: 8px;
  margin: 8px 0 0;
  color: var(--err);
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.4;
}
.field-error::before {
  content: "!";
  display: grid;
  place-items: center;
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--err);
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
}
.field.invalid input[type="text"],
.field.invalid input[type="email"],
.field.invalid input[type="tel"],
.field.invalid select,
.field.invalid textarea,
.field.invalid .choice,
.field.invalid .consent input { border-color: var(--err); }
.field.invalid input[type="text"],
.field.invalid input[type="email"],
.field.invalid input[type="tel"],
.field.invalid textarea { background: #FFFAFA; }

.form-status {
  margin: 0 0 22px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid;
  border-left-width: 5px;
  line-height: 1.5;
}
.form-status strong { display: block; margin-bottom: 2px; color: inherit; }
.form-status.ok { background: var(--ok-bg); border-color: var(--ok); color: #0B4A31; }
.form-status.error { background: var(--err-bg); border-color: var(--err); color: #7A140E; }
.form-status a { color: inherit; font-weight: 700; }
.form-status:focus { outline: 3px solid var(--focus); outline-offset: 3px; }

/* ---------- 12. Kontakt ---------- */
.contact-grid {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.contact-grid li {
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 4px;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.contact-grid .tile { margin-bottom: 12px; }
.contact-label {
  color: var(--muted);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.contact-value {
  color: var(--heading);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
a.contact-value { text-decoration: none; }
a.contact-value:hover { color: var(--blue); text-decoration: underline; }
@media (min-width: 600px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 600px) and (max-width: 899px) { .contact-grid li:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 900px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }

/* Handy (einspaltig): Icon neben dem Text statt darüber – kürzere Seite */
@media (max-width: 599px) {
  .features li,
  .contact-grid li { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; align-items: start; padding: 20px; }
  .features .tile,
  .contact-grid .tile { grid-row: span 2; margin: 0; }
}

/* ---------- 13. Footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--on-dark-2);
  font-size: 1rem;
  --focus: var(--yellow);
}
.footer-inner {
  display: grid;
  gap: 24px;
  padding-block: 44px;
}
.site-footer p { margin: 0; }
.site-footer .logo { color: #fff; margin-bottom: 10px; }
.site-footer .logo:hover { color: #fff; }
.logo-light .logo-mark { box-shadow: none; }
.logo-light .logo-mark::after { border-color: var(--navy); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.site-footer nav a {
  display: inline-block;
  padding: 10px 0;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.site-footer nav a:hover,
.site-footer nav a[aria-current="page"] { color: var(--yellow); }
.site-footer nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .3em; }
.copy { font-size: .9375rem; }
@media (min-width: 900px) {
  .footer-inner { grid-template-columns: 1fr auto auto; align-items: center; gap: 48px; }
}

/* ---------- 14. Rechtsseiten (Impressum / Datenschutz) ---------- */
.legal-page { background: var(--bg-soft); }
.legal-page main.section { padding-block: clamp(40px, 6vw, 80px); }
.legal {
  padding-block: clamp(28px, 5vw, 56px);
  padding-inline: clamp(20px, 5vw, 56px);
  border-radius: var(--radius-xl);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: var(--text);
}
.legal.container { max-width: 900px; }
/* ab Tablet: Seitenrand wie im Header; auf dem Handy volle Breite ohne Rundung (mehr Platz für Text) */
@media (min-width: 600px) {
  .legal.container { max-width: min(900px, calc(100% - 2 * var(--gutter))); }
}
@media (max-width: 599px) {
  /* lange Rechtsbegriffe (z. B. „Verbraucherstreitbeilegungsgesetz") trennen statt überlaufen */
  .legal { border-radius: 0; border-inline: 0; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
}
.legal h1 {
  font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem);
  margin-bottom: 28px;
}
.legal h2 {
  margin: 44px 0 14px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: clamp(1.3125rem, 1.15rem + .7vw, 1.625rem);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.legal h3 { margin: 28px 0 10px; font-size: 1.1875rem; }
.legal p, .legal li { max-width: 72ch; }
.legal ul, .legal ol { padding-left: 1.3em; margin: 0 0 1em; }
.legal li { margin-bottom: .4em; }
.legal li::marker { color: var(--blue); }
.legal a { font-weight: 700; }
.legal address { font-style: normal; margin: 0 0 1em; line-height: 1.7; }
.legal hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.legal table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 0 0 1.25em;
  font-size: 1rem;
}
.legal th, .legal td {
  padding: 10px 14px 10px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.legal th { color: var(--heading); }
.legal .info-box {
  margin: 0 0 32px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: #FFF4D6;
  border: 1px solid #F0D27A;
  border-left: 5px solid #C99400;
  color: #3A2E00;
}
.legal .info-box b { display: block; margin-bottom: 4px; color: #2A2000; }

.toc {
  margin: 0 0 32px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.toc p { margin-bottom: 10px; color: var(--heading); }
.toc ol { margin: 0; padding-left: 1.4em; }
.toc li { margin: 0 0 .35em; }
.toc a { font-weight: 600; text-decoration: none; }
.toc a:hover { text-decoration: underline; }
@media (min-width: 720px) {
  .toc ol { columns: 2; column-gap: 40px; }
  .toc li { break-inside: avoid; }
}

/* ---------- 15. Bewegung ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .hero-text > * { animation: rise .7s var(--ease) both; }
  .hero-text > :nth-child(2) { animation-delay: .06s; }
  .hero-text > :nth-child(3) { animation-delay: .12s; }
  .hero-text > :nth-child(4) { animation-delay: .18s; }
  .hero-text > :nth-child(5) { animation-delay: .24s; }
  .hero-media { animation: rise .9s var(--ease) .15s both; }
  /* einmalig (< 5 s), kein Dauer-Wippen neben der Überschrift (WCAG 2.2.2) */
  .hv-float-1 { animation: float 4s ease-in-out 1s 1; }
  .hv-float-2 { animation: float 4s ease-in-out .4s 1 reverse; }
  .hv-float-3 { animation: float 4s ease-in-out .8s 1; }

  .faq details[open] > p { animation: fade .25s var(--ease) both; }
  .form-status:not([hidden]) { animation: fade .3s var(--ease) both; }
  .field-error { animation: fade .2s var(--ease) both; }
}
@media (prefers-reduced-motion: reduce) {
  .btn:hover, .course:hover, .features li:hover, .variant:hover { transform: none; }
  .course:hover .course-media img, .btn:hover .i, .variant:hover > .i { transform: none; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes fade {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 16. Hoher Kontrast / Druck ---------- */
@media (forced-colors: active) {
  .choice input, .consent input { appearance: auto; -webkit-appearance: auto; }
  .choice input::before, .consent input::before { display: none; }
  .btn, .variant { border: 2px solid ButtonText; }
  .hl::after { display: none; }
  .nav-toggle span { background: ButtonText; }
}

@media print {
  .topbar, .site-header, .hero-media, .form, .nav-toggle, .help-card { display: none !important; }
  body { font-size: 11pt; color: #000; }
  .panel { background: #fff !important; color: #000 !important; }
  .panel * { color: #000 !important; }
  .section { padding-block: 16pt; }
  /* CTA: ohne Foto/Verlauf als weiße Karte mit schwarzer Schrift, nicht über Seiten getrennt */
  .cta-bg, .cta-card::before { display: none !important; }
  .cta-card { background: #fff !important; box-shadow: none !important; border: 1px solid #ccc; break-inside: avoid; }
  .cta-content, .cta-content * { color: #000 !important; }
}


/* ---------- 17. Fotos: Beratung ---------- */
.signup-photo { margin: 28px 0 0; }
.signup-photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  background: var(--bg-blue);
}
/* Einspaltig (Handy/Tablet): flacheres Bild, damit das Formular näher an den Einstieg rückt */
@media (max-width: 999px) {
  .signup-photo { margin-top: 24px; }
  .signup-photo img { aspect-ratio: 2 / 1; max-height: 300px; }
}

/* ---------- 18. Header-Schatten & Scroll-Reveal ---------- */
.site-header { transition: box-shadow .25s var(--ease), background-color .25s var(--ease); }
.site-header.scrolled { box-shadow: 0 8px 24px -16px rgba(11, 27, 63, .35); background: rgba(255, 255, 255, .98); }

/* Nur aktiv, wenn script.js läuft (Klasse reveal-ready) – ohne JS bleibt alles sichtbar */
@media (prefers-reduced-motion: no-preference) {
  .reveal-ready [data-reveal]:not(.is-visible) { opacity: 0; transform: translateY(26px); }
  .reveal-ready [data-reveal] { transition: opacity .7s var(--ease), transform .7s var(--ease); }
  /* Kurskarten: Einblenden über „translate“, damit ihr eigener Hover-Übergang
     (transform/Schatten/Rahmen .25s, ohne Verzögerung) nicht von .7s überschrieben wird */
  .reveal-ready .course[data-reveal]:not(.is-visible) { transform: none; translate: 0 26px; }
  .reveal-ready .course[data-reveal] {
    transition: opacity .7s var(--ease), translate .7s var(--ease),
      transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  }
  .reveal-ready .courses .course[data-reveal]:nth-child(2) { transition-delay: .08s, .08s, 0s, 0s, 0s; }
  .reveal-ready .courses .course[data-reveal]:nth-child(3) { transition-delay: .16s, .16s, 0s, 0s, 0s; }
}

/* ---------- 19. CTA-Banner ---------- */
.cta-band { padding-block: clamp(24px, 4vw, 56px) clamp(56px, 7vw, 96px); background: var(--bg-soft); }
.cta-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius-xl);
  padding: clamp(36px, 6vw, 80px) clamp(22px, 5vw, 72px);
  box-shadow: var(--shadow-lg);
  background: var(--navy);
}
.cta-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  object-position: 50% 35%;
}
.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(11, 27, 63, .94) 0%, rgba(11, 27, 63, .86) 45%, rgba(20, 46, 120, .55) 100%);
}
/* Breite Karten: Textspalte endet bei ca. 58–64 % → rechte Hälfte darf das Foto zeigen.
   Darunter (640–1099px) läuft der Text fast über die ganze Karte → dunklerer Verlauf (Block unten). */
@media (min-width: 1100px) {
  .cta-bg { object-position: 50% 30%; }
  .cta-card::before { background: linear-gradient(90deg, rgba(11, 27, 63, .95) 0%, rgba(11, 27, 63, .88) 50%, rgba(11, 27, 63, .4) 78%, rgba(11, 27, 63, .15) 100%); }
}
/* 640–1099px: Zeilenenden liegen über dem hellen Fototeil → rechtes Verlaufsende abdunkeln (Text ≥ 4,5:1) */
@media (min-width: 640px) and (max-width: 1099px) {
  .cta-card::before { background: linear-gradient(90deg, rgba(11, 27, 63, .94) 0%, rgba(11, 27, 63, .86) 45%, rgba(20, 46, 120, .78) 100%); }
}
.cta-content { max-width: 620px; color: var(--on-dark-2); --focus: var(--yellow); }
.cta-content h2 {
  color: #fff;
  font-size: clamp(1.875rem, 1.3rem + 2.2vw, 2.75rem);
  margin-bottom: 14px;
}
.cta-content > p:not(.eyebrow) { color: #E3E9F7; font-size: 1.125rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn-glass {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border-color: rgba(255, 255, 255, .45);
  box-shadow: none;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.btn-glass:hover { background: #fff; color: var(--navy); border-color: #fff; box-shadow: none; }
@media (max-width: 519px) { .cta-actions .btn { flex: 1 1 100%; } }
/* Mobil: Foto als Kopfstreifen, der in Navy ausläuft – Text steht auf vollem Navy */
@media (max-width: 639px) {
  .cta-card { padding: 200px 20px 28px; }
  .cta-bg { inset: 0 0 auto 0; height: 230px !important; object-position: 50% 35%; } /* !important: überschreibt height:100% !important oben */
  .cta-card::before { background: linear-gradient(180deg, rgba(11, 27, 63, 0) 0, rgba(11, 27, 63, .1) 110px, var(--navy) 226px); }
  .cta-actions .btn { padding-inline: 20px; }
}
/* Schmale Handys: „Kostenlos beraten lassen“ bleibt einzeilig (ab 360px) */
@media (max-width: 519px) {
  .cta-actions .btn { padding-inline: 18px; font-size: 1rem; }
}

/* ---------- 20. Footer (mehrspaltig) ---------- */
.site-footer .footer-inner {
  display: grid;
  gap: 32px;
  align-items: start; /* überschreibt das alte align-items:center (≥900px) aus Abschnitt 13 */
  padding-block: 56px 36px;
}
.footer-brand p { max-width: 34ch; margin-top: 4px; color: var(--on-dark-2); }
.site-footer .footer-col { display: grid; align-content: start; gap: 2px; }
.site-footer .footer-col a {
  display: inline-block;
  padding: 7px 0;
  color: #E3E9F7;
  font-weight: 600;
  text-decoration: none;
}
.site-footer .footer-col a:hover { color: var(--yellow); }
.site-footer .footer-col a[aria-current="page"] { color: var(--yellow); text-decoration: underline; text-underline-offset: .25em; }
.footer-title {
  margin: 0 0 8px !important;
  color: #fff;
  font-size: .8125rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.footer-bottom { padding-block: 0 28px; }
.footer-bottom .copy { padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); }
@media (min-width: 640px) {
  .site-footer .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  /* Linkspalten so breit wie ihr längster Link → „Social Marketing & E-Commerce“ bricht nicht am Bindestrich */
  .site-footer .footer-inner { grid-template-columns: 1.3fr auto auto auto; gap: 40px; }
}


/* ---------- 21. Anmeldeformular als Schritt-Assistent ---------- */
/* Ohne JavaScript: alle Schritte untereinander, nur „Absenden“ sichtbar.
   Mit JavaScript (.wizard-ready): ein Schritt nach dem anderen. */

.wizard-head { display: none; }
.wizard-ready .wizard-head { display: block; margin-bottom: 22px; }
.wizard-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.wizard-count {
  margin: 0;
  color: var(--heading);
  font-size: .9375rem;
  font-weight: 800;
}
.wizard-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 600;
}
.wizard-time .i { width: 16px; height: 16px; color: var(--blue); }
.wizard-progress {
  height: 8px;
  border-radius: 999px;
  background: var(--bg-blue);
  overflow: hidden;
}
.wizard-progress span {
  display: block;
  width: 25%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue) 0%, #5B7CFF 100%);
  transition: width .45s var(--ease);
}
.wizard-labels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.wizard-labels li {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 700;
}
.wizard-labels li span {
  display: grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-blue);
  color: var(--blue-700);
  font-size: .75rem;
  font-weight: 800;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.wizard-labels li.active { color: var(--heading); }
.wizard-labels li.active span { background: var(--blue); color: #fff; }
.wizard-labels li.done span {
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8.5'/%3E%3C/svg%3E") center / 13px no-repeat;
  color: transparent;
}
@media (max-width: 419px) {
  .wizard-labels li { font-size: .75rem; gap: 4px; }
  .wizard-labels li span { width: 20px; height: 20px; }
  /* aktives Label nimmt seine natürliche Breite – überdeckt keinen Kreis, ragt nicht über den Balken */
  .wizard-labels { display: flex; justify-content: space-between; }
  .wizard-labels li { flex: none; }
}

.wizard-ready .form-required { margin-bottom: 4px; }

/* Schritte */
.step { min-width: 0; }
.wizard:not(.wizard-ready) .step + .step {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.wizard-ready .step:not([hidden]) { animation: stepIn .35s var(--ease) both; }
@keyframes stepIn {
  from { opacity: 0; transform: translateX(14px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .wizard-ready .step:not([hidden]) { animation: none; }
  .wizard-progress span { transition: none; }
}

.step-group { margin: 0; padding: 0; border: 0; min-width: 0; }
.step-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 18px;
  padding: 0;
  color: var(--heading);
  font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.01em;
}
.step-group > legend { float: left; width: 100%; padding: 0; }   /* <legend><h3 class="step-title">: ohne UA-Einzug (2px), bündig mit Schritt 2/3 */
.step-group > legend + * { clear: both; }
.step-group > legend + .field-error { margin: 0 0 12px; }   /* Gruppenfehler direkt unter der Frage */
.step-title:focus { outline: none; }
.step-title:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
/* nur im Formular – „.step-no“ gibt es auch in „So funktioniert’s“ */
.step-title .step-no {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  margin: 0;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 6px 14px -8px rgba(32, 80, 224, .8);
}
.step-hint { margin: -6px 0 16px; color: var(--muted); font-size: 1rem; }
.field-error + .step-hint { margin-top: 0; }

.step-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin: -4px 0 18px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--text);
  font-size: .9375rem;
}
.step-summary b { color: var(--heading); }
.wizard:not(.wizard-ready) .step-summary { display: none; }
.link-btn {
  margin-left: auto;
  padding: 6px 4px;
  border: 0;
  background: none;
  color: var(--blue);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .2em;
  cursor: pointer;
}
.link-btn:hover { color: var(--blue-700); }

/* Navigation */
.step-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}
.step-nav .step-next,
.step-nav .step-submit { margin-left: auto; }
.wizard:not(.wizard-ready) [data-next],
.wizard:not(.wizard-ready) [data-prev] { display: none; }
.wizard:not(.wizard-ready) .step-nav:not(.step-nav-final) { display: none; }
.i-back { transform: rotate(180deg); }
.btn:hover .i-back { transform: rotate(180deg) translateX(3px); }
@media (max-width: 519px) {
  .step-nav { flex-direction: column-reverse; align-items: stretch; }
  .step-nav .btn { width: 100%; margin-left: 0; }
  .step-nav .btn-large { padding-inline: 16px; font-size: 1rem; }   /* „Unverbindlich anfragen“ einzeilig ab 320px */
}
.submit-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 14px 0 0;
  text-align: center;
}
.submit-note .i { width: 18px; height: 18px; color: var(--green); }

/* Kurskarten mit Icon */
.course-choices { gap: 12px; }
.choice-course {
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
}
.choice-course .tile { width: 44px; height: 44px; border-radius: 12px; }
.choice-course .tile .i { width: 22px; height: 22px; }
.choice-course:has(input:checked) { box-shadow: 0 0 0 1px var(--blue), 0 10px 24px -14px rgba(32, 80, 224, .6); }
.choice-course:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }

/* Schwebende Beschriftungen */
.float { position: relative; }
.field.float > label {
  position: absolute;
  top: 17px;
  left: 17px;
  right: 17px;
  z-index: 1;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
  pointer-events: none;
  transform-origin: left top;
  transition: transform .18s var(--ease), color .18s var(--ease);
}
.field.float input[type="text"],
.field.float input[type="email"],
.field.float input[type="tel"] {
  min-height: 60px;
  padding: 24px 16px 8px;
}
.field.float textarea { padding: 28px 16px 12px; }
.field.float input:focus + label,
.field.float input:not(:placeholder-shown) + label,
.field.float input:-webkit-autofill + label,
.field.float textarea:focus + label,
.field.float textarea:not(:placeholder-shown) + label {
  transform: translateY(-10px) scale(.78);
  color: var(--blue-700);
  font-weight: 700;
}
/* scale() ändert das Layout nicht: Box auf 1/.78 verbreitern, damit sie sichtbar wieder genau ins Feld passt */
.field.float input:focus + label,
.field.float input:not(:placeholder-shown) + label,
.field.float input:-webkit-autofill + label {
  right: auto;
  width: calc((100% - 34px) / .78);
}
@media (max-width: 359px) {
  .field.float > label { font-size: .9375rem; }   /* „Straße und Hausnummer *“ passt ohne Abschneiden */
}
.field.float.invalid > label { color: var(--err); }
.field.float input::placeholder,
.field.float textarea::placeholder { color: transparent; }

.grid-address .field-plz { grid-column: auto; }
@media (min-width: 640px) {
  .grid-address { grid-template-columns: 160px minmax(0, 1fr); }
}

.field-hint {
  display: flex;
  gap: 8px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .9375rem;
  line-height: 1.45;
}
.field-hint .i { width: 18px; height: 18px; margin-top: 2px; color: var(--blue); }

/* Deutschkenntnisse */
.levels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 640px) {
  .levels { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
/* Zweispaltiges Desktop-Layout: Formular schmal → 6 Kacheln wären zu eng für „Mittelstufe“ */
@media (min-width: 1000px) and (max-width: 1199px) {
  .levels { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 359px) {
  .levels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.level {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 2px;
  min-height: 78px;
  padding: 12px 6px;
  border: 1.5px solid var(--field-border);
  border-radius: 14px;
  background: #fff;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s var(--ease), background-color .15s var(--ease), color .15s var(--ease), transform .15s var(--ease);
}
.level input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.level-code { color: var(--heading); font-size: 1.375rem; font-weight: 800; line-height: 1.1; }
.level-code .i { width: 26px; height: 26px; color: var(--green); }
.level-text { color: var(--muted); font-size: .8125rem; font-weight: 600; line-height: 1.25; }
.level:hover { border-color: var(--blue); background: #FAFCFF; }
.level:has(input:checked) {
  border-color: var(--blue);
  background: var(--blue);
  box-shadow: 0 10px 22px -12px rgba(32, 80, 224, .8);
}
.level:has(input:checked) .level-code,
.level:has(input:checked) .level-text,
.level:has(input:checked) .level-code .i { color: #fff; }
.level:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.level-wide {
  grid-column: 1 / -1;
  grid-auto-flow: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 58px;
}
.level-wide .level-text { font-size: .9375rem; color: var(--heading); }
.field.invalid .level { border-color: var(--err); }
/* Kontrastmodus: Auswahl sonst unsichtbar (Hintergrund wird überschrieben, Radio ist transparent).
   Muss NACH den .level-Regeln stehen. Rahmen statt Outline, damit der Fokusring erhalten bleibt. */
@media (forced-colors: active) {
  .level:has(input:checked) { border: 3px solid Highlight; padding: 10.5px 4.5px; }
  .level:has(input:checked) .level-code,
  .level:has(input:checked) .level-text,
  .level:has(input:checked) .level-code .i {
    forced-color-adjust: none;
    color: HighlightText;
    background: Highlight;
  }
  .wizard-progress { border: 1px solid CanvasText; }
  .wizard-progress span { forced-color-adjust: none; background: Highlight; }
  .wizard-labels li.active { text-decoration: underline; text-underline-offset: .2em; }
}

/* Optionale Nachricht */
.optional-message { margin-top: 22px; }
.optional-message > summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1.5px dashed var(--line-2);
  border-radius: 999px;
  color: var(--blue-700);
  font-size: .9375rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.optional-message > summary::-webkit-details-marker { display: none; }
/* Zeichen nur optisch – „/ ""“ hält es aus dem vorgelesenen Namen (erste Zeile = Fallback für ältere Browser) */
.optional-message > summary::before { content: "+"; content: "+" / ""; font-size: 1.125rem; line-height: 1; }
.optional-message[open] > summary::before { content: "–"; content: "–" / ""; }
.optional-message > summary span { color: var(--muted); font-weight: 600; }
.optional-message > summary:hover { border-color: var(--blue); }
.optional-message .field { margin-top: 12px; }
@media (max-width: 374px) {
  .optional-message > summary span { display: none; }   /* „(optional)“ weg → Knopf bleibt einzeilig */
}

.consent-field { margin-top: 22px; }

@media print {
  .wizard .step[hidden] { display: block !important; }
  .wizard-head, .step-nav { display: none !important; }
}
@media (max-width: 419px) {
  .choice-course { grid-template-columns: auto minmax(0, 1fr); padding: 14px; }
  .choice-course .tile { display: none; }
}
@media (max-width: 419px) {
  .wizard-labels li:not(.active) { font-size: 0; gap: 0; }
}
.level { min-width: 0; }
.level-text { max-width: 100%; overflow-wrap: break-word; -webkit-hyphens: manual; hyphens: manual; }
.wizard:not(.wizard-ready) .step-auto-hint { display: none; }
.link-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 8px; }
