/* Fahrschule Walgenbach Opladen – Leitmotiv: die Ausbildungskarte, präzise gedruckt */

/* Schriften lokal, keine Verbindung zu Google (DSGVO) */
@font-face { font-family: "Instrument Serif"; src: url(../fonts/instrument-serif-400.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(../fonts/instrument-serif-400i.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url(../fonts/inter-tight-var.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url(../fonts/dm-mono-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url(../fonts/dm-mono-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --paper: #f3f1ec;
  --white: #fdfcfa;
  --ink: #101217;
  --ink-2: #565a63;
  --rule: #d9d5cc;
  --blue: #27477d;      /* vorgedrucktes Formularblau */
  --navy: #0f1d35;
  --navy-2: #0a1528;
  --on-navy: #e8ecf4;
  --on-navy-2: rgba(232, 236, 244, .66);
  --navy-rule: rgba(232, 236, 244, .16);
  --red: #e0211c;       /* Hausfarbe Walgenbach – nur für Häkchen & Stempel */
  --red-ink: #c01914;
  --green: #1f8a4c;

  --f-serif: "Instrument Serif", "Times New Roman", serif;
  --f-sans: "Inter Tight", system-ui, sans-serif;
  --f-mono: "DM Mono", ui-monospace, monospace;

  --gutter: 20px;
  --ease: cubic-bezier(.3, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--f-sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--blue); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--f-serif); font-weight: 400; margin: 0; text-wrap: balance; letter-spacing: -.015em; }
h1 em, h2 em { color: var(--blue); }
p { margin: 0 0 1em; max-width: 60ch; }

[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--white); padding: 10px 14px; }
.skip:focus { top: 12px; }

.wrap { max-width: 1320px; margin: 0 auto; padding-inline: var(--gutter); }

.label {
  font: 500 .72rem/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-2); margin: 0;
}
.label--light { color: var(--on-navy-2); }

/* ---------- Kopfleiste ---------- */
.bar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(243, 241, 236, .88);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.bar__in { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.bar__logo img { width: 84px; }
.bar__menu {
  margin-left: auto; font: 500 .78rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase;
  background: none; border: 1px solid var(--ink); border-radius: 999px; padding: 10px 16px; color: var(--ink); cursor: pointer;
}
.nav {
  position: absolute; left: 0; right: 0; top: 100%;
  display: grid; padding: 8px var(--gutter) 18px;
  background: var(--paper); border-bottom: 1px solid var(--rule);
}
.nav:not(.is-open) { display: none; }
.nav a { padding: 14px 0; border-bottom: 1px solid var(--rule); text-decoration: none; font-size: 1.15rem; font-weight: 500; }
.bar__tel { display: none; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(40px, 7vw, 96px); }
.hero__grid { display: grid; gap: 56px; align-items: center; }
.hero__text .label { margin-bottom: 26px; }
.hero h1 { font-size: clamp(3.1rem, 7.2vw, 7rem); line-height: .94; margin-bottom: 30px; }
.hero h1 em { display: block; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--ink-2); max-width: 46ch; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.btn {
  display: inline-flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 24px;
  border-radius: 999px; text-decoration: none; font: 500 1rem/1 var(--f-sans);
  transition: background .2s, color .2s, box-shadow .2s;
}
.btn span { font-family: var(--f-mono); font-size: .92rem; opacity: .75; }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: var(--blue); color: var(--white); }
.btn--line { box-shadow: inset 0 0 0 1px var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--white); }

/* Die Karte als Objekt */
.kcard-stage {
  position: relative; padding: clamp(28px, 5vw, 56px) clamp(12px, 4vw, 48px);
  background-image: radial-gradient(rgba(39, 71, 125, .22) 1px, transparent 1.2px);
  background-size: 18px 18px;
  border-radius: 4px;
}
.kcard {
  position: relative; max-width: 480px; margin: 0 auto;
  background: var(--white); border-radius: 6px; padding: 30px 30px 34px;
  transform: rotate(2deg);
  box-shadow: 0 1px 1px rgba(16, 18, 23, .05), 0 6px 14px -6px rgba(16, 18, 23, .12), 0 36px 70px -28px rgba(15, 29, 53, .42);
}
.kcard__head {
  display: flex; justify-content: space-between;
  font: 500 .7rem/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--blue);
  padding-bottom: 12px; border-bottom: 1.5px solid var(--blue); box-shadow: 0 3px 0 -2px var(--blue);
}
.kcard__fields { display: grid; grid-template-columns: 1.6fr 1fr; gap: 0 18px; margin: 6px 0 10px; }
.kcard__fields div { display: grid; padding: 10px 0 8px; border-bottom: 1px solid var(--rule); }
.kl { font: 500 .62rem/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.kv { font: italic 400 1.75rem/1.1 var(--f-serif); color: var(--ink); }
.kcard__row { display: grid; grid-template-columns: 104px 1fr; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.ticks { display: flex; flex-wrap: wrap; gap: 5px; }
.ticks i, .cell {
  width: 20px; height: 20px; border: 1.25px solid var(--blue); position: relative; display: inline-block;
}
.ticks i::after, .cell::after {
  content: ""; position: absolute; inset: -4px -6px -1px -2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 24'%3E%3Cpath d='M3 13.5 L9.5 20 L23 3.5' fill='none' stroke='%23e0211c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  clip-path: inset(0 100% 0 0);
  transition: clip-path .22s var(--ease);
  transition-delay: var(--d, 0ms);
}
.kcard.is-run .ticks i::after { clip-path: inset(0 0 0 0); }
.kcard__stamp {
  position: absolute; right: 18px; bottom: 26px;
  font: 500 1.05rem/1 var(--f-mono); letter-spacing: .24em; text-transform: uppercase; color: var(--red);
  padding: 10px 12px 10px 16px; border: 2px solid var(--red); border-radius: 3px;
  box-shadow: inset 0 0 0 2px var(--white), inset 0 0 0 3px var(--red);
  background: rgba(253, 252, 250, .85);
  transform: rotate(-11deg) scale(1.4); opacity: 0;
  transition: transform .3s cubic-bezier(.2, .9, .3, 1.25), opacity .15s;
  transition-delay: var(--d, 0ms);
}
.kcard.is-run .kcard__stamp { transform: rotate(-11deg) scale(1); opacity: 1; }

@media (max-width: 480px) {
  .kcard { padding: 22px 20px 26px; }
  .kcard__row { grid-template-columns: 82px 1fr; }
  .ticks { gap: 4px; }
  .ticks i { width: 17px; height: 17px; }
  .kcard__stamp { right: 12px; bottom: 20px; font-size: .9rem; }
}

/* Infozeile */
.strip { display: grid; margin-top: clamp(56px, 8vw, 104px); margin-bottom: 0; }
/* Linie nur über dem Inhalt, nicht über dem Seitenrand */
.strip, .section--rule .wrap { background: linear-gradient(var(--ink), var(--ink)) top center / calc(100% - 2 * var(--gutter)) 1px no-repeat; }
.strip > div { padding: 16px 0 18px; border-bottom: 1px solid var(--rule); display: grid; gap: 6px; }
.strip dd { margin: 0; font-size: 1.05rem; font-weight: 500; }
.strip a { text-decoration: none; }

.status { display: flex; align-items: center; gap: 10px; margin: 0; }
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rule); flex: none; }
.status.is-open .status__dot { background: var(--green); box-shadow: 0 0 0 4px rgba(31, 138, 76, .15); }
.status.is-closed .status__dot { background: var(--red); box-shadow: 0 0 0 4px rgba(224, 33, 28, .14); }

/* ---------- Abschnitte ---------- */
.section { padding-block: clamp(88px, 11vw, 168px); }
.section--rule .wrap { padding-top: clamp(28px, 4vw, 48px); }
.section--rule { padding-top: clamp(40px, 5vw, 72px); }
.section__head { display: grid; gap: 18px; margin-bottom: clamp(40px, 6vw, 80px); }
.section__head h2 { font-size: clamp(2.8rem, 6.4vw, 5.6rem); line-height: .95; }
.section__intro { color: var(--ink-2); font-size: 1.1rem; margin: 0; max-width: 44ch; }

/* ---------- Checkliste ---------- */
.check { display: grid; gap: 32px; align-items: start; }
.check__list { border: 0; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.box {
  display: grid; grid-template-columns: 2.4rem 28px 1fr; align-items: center; gap: 16px;
  min-height: 72px; padding: 14px 0; border-bottom: 1px solid var(--rule);
  cursor: pointer; position: relative; transition: background .2s;
}
.box:hover { background: linear-gradient(90deg, transparent, rgba(39, 71, 125, .05), transparent); }
.box__no { font: 500 .78rem/1 var(--f-mono); color: var(--ink-2); }
.box input { position: absolute; left: calc(2.4rem + 16px); opacity: 0; width: 28px; height: 28px; margin: 0; cursor: pointer; }
.box__mark { width: 28px; height: 28px; border: 1.5px solid var(--blue); background: var(--white); position: relative; border-radius: 2px; }
.box__mark::after {
  content: ""; position: absolute; inset: -7px -10px -2px -4px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 24'%3E%3Cpath d='M3 13.5 L9.5 20 L23 3.5' fill='none' stroke='%23e0211c' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  clip-path: inset(0 100% 0 0); transition: clip-path .26s var(--ease);
}
.box input:checked + .box__mark::after { clip-path: inset(0 0 0 0); }
.box input:focus-visible + .box__mark { outline: 2px solid var(--red); outline-offset: 3px; }
.box__text { font-size: clamp(1.1rem, 1.8vw, 1.35rem); font-weight: 500; letter-spacing: -.01em; transition: color .2s; }
.box input:checked ~ .box__text { color: var(--ink-2); text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 1.5px; }

.next { background: var(--navy); color: var(--on-navy); padding: 30px; border-radius: 4px; }
.next__count { font: 400 clamp(4.4rem, 8vw, 6.4rem)/.9 var(--f-serif); margin: 18px 0 22px; letter-spacing: -.03em; }
.next__of { color: var(--on-navy-2); }
.next__title { font: italic 400 2rem/1.05 var(--f-serif); margin-bottom: 12px; }
.next__text { color: var(--on-navy-2); margin: 0; }
.next__cta {
  display: inline-flex; align-items: center; min-height: 50px; padding: 0 20px; margin-top: 22px;
  background: var(--red); color: #fff; border-radius: 999px; text-decoration: none; font-weight: 500;
}
.next__cta:hover { background: #c41a15; color: #fff; }

/* ---------- Ausbildung (dunkel) ---------- */
.section--dark { background: var(--navy); color: var(--on-navy); }
.section--dark h2 em { color: #9fb6e0; }
.section--dark .section__intro { color: var(--on-navy-2); }
.section--dark a:hover { color: #fff; }

.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--on-navy); }
.row { display: grid; gap: 14px 24px; padding: 36px 0 40px; border-bottom: 1px solid var(--navy-rule); }
.row__no { font: 500 .78rem/1 var(--f-mono); color: var(--on-navy-2); margin: 0; padding-top: 6px; }
.row__label { font: 500 .72rem/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--on-navy-2); margin-bottom: 12px; }
.row h3 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1; margin-bottom: 16px; }
.row__main p:not(.row__label) { color: var(--on-navy-2); }
.fleet { font-size: .98rem; margin: 18px 0 0; }
.fleet .row__label { display: block; margin-bottom: 4px; }

.row__boxes { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; align-content: start; }
.row .cell { width: 22px; height: 22px; border-color: rgba(232, 236, 244, .55); }
.row .cell--open { border-style: dashed; border-color: rgba(232, 236, 244, .3); }
.row .cell--open::after { display: none; }
.row .gap { width: 10px; }
.row__count { flex-basis: 100%; font: 500 .72rem/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--on-navy-2); margin-top: 10px; }
.row:not(.is-waiting) .cell::after { clip-path: inset(0 0 0 0); }

/* ---------- Klassen ---------- */
.table-wrap { overflow-x: auto; }
.classes { width: 100%; border-collapse: collapse; min-width: 560px; }
.classes th, .classes td { text-align: left; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--rule); vertical-align: baseline; }
.classes thead th { font: 500 .72rem/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); border-bottom: 1px solid var(--ink); }
.classes tbody th { font: 400 2rem/1 var(--f-serif); width: 4.2em; }
.classes td { font-size: 1.02rem; }
.classes td:nth-child(3) { font: 500 .95rem/1.4 var(--f-mono); color: var(--red-ink); white-space: nowrap; }
.classes td:nth-child(4) { color: var(--ink-2); }
.classes tbody tr { transition: background .2s; }
.classes tbody tr:hover { background: rgba(39, 71, 125, .05); }

/* ---------- Team ---------- */
.signs { list-style: none; margin: 0; padding: 0; display: grid; gap: 44px 48px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.sig { display: grid; gap: 8px; align-content: start; }
.sig__name {
  font: italic 400 clamp(1.9rem, 2.5vw, 2.3rem)/1 var(--f-serif); letter-spacing: -.01em; white-space: nowrap;
  padding: 0 0 14px; border-bottom: 1px solid var(--ink); margin-bottom: 4px;
}
.sig__tel { font: 400 1rem/1.4 var(--f-mono); text-decoration: none; justify-self: start; }
.sig__tel:hover { color: var(--blue); text-decoration: underline; }

/* ---------- Kontakt ---------- */
.contact { display: grid; gap: 48px; }
.contact h2 { font-size: clamp(2.8rem, 6.4vw, 5.6rem); line-height: .95; margin: 18px 0 30px; }
.address { font: 400 clamp(1.8rem, 3.4vw, 2.7rem)/1.08 var(--f-serif); font-style: normal; margin-bottom: 10px; }
.contact__hint { color: var(--ink-2); margin-bottom: 30px; }
.ways { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.ways li { display: grid; grid-template-columns: 7rem 1fr; gap: 12px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--rule); overflow-wrap: anywhere; }
.ways a { font-weight: 500; text-decoration: none; }
.ways a:hover { text-decoration: underline; }

.hours { background: var(--navy); color: var(--on-navy); padding: 30px; border-radius: 4px; align-self: start; }
.hours h3 { font-size: 2.4rem; margin: 12px 0 14px; }
.hours .status { color: var(--on-navy-2); margin-bottom: 18px; }
.hours table { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; font-weight: 400; padding: 11px 0; border-top: 1px solid var(--navy-rule); }
.hours td { text-align: right; font-family: var(--f-mono); font-size: .95rem; }
.hours tr.is-today th, .hours tr.is-today td { color: #fff; font-weight: 600; }
.hours tr.is-today th::after { content: "heute"; margin-left: 10px; font: 500 .62rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--navy); background: var(--on-navy); padding: 3px 6px; border-radius: 2px; vertical-align: 2px; }
.hours__note { color: var(--on-navy-2); margin: 14px 0 0; }

/* ---------- Footer ---------- */
.foot { background: var(--navy-2); color: var(--on-navy-2); padding: 56px 0; font-size: .95rem; }
.foot .label { color: var(--on-navy); margin-bottom: 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot__grid { display: grid; gap: 18px; }
.foot p { margin: 0; }
.foot a:hover { color: #fff; }

/* ---------- ab Tablet ---------- */
@media (min-width: 760px) {
  :root { --gutter: 40px; }
  .strip { grid-template-columns: repeat(3, 1fr); }
  .strip > div { padding-right: 24px; border-bottom: 0; }
  .strip > div + div { padding-left: 24px; border-left: 1px solid var(--rule); }
  .section__head { grid-template-columns: 1.3fr 1fr; align-items: end; column-gap: 48px; }
  .section__head .label { grid-column: 1 / -1; }
  .row { grid-template-columns: 56px minmax(0, 1fr); }
  .row__boxes { grid-column: 2; }
  .foot__grid { grid-template-columns: 1.4fr repeat(3, 1fr); }
}

@media (min-width: 1000px) {
  :root { --gutter: 56px; }
  .bar__menu { display: none; }
  .nav, .nav:not(.is-open) { position: static; display: flex; gap: 30px; margin-left: auto; padding: 0; background: none; border: 0; }
  .nav a { padding: 6px 0; border: 0; font-size: .95rem; position: relative; }
  .nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
  .nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
  .nav a:hover { color: var(--ink); }
  .bar__tel { display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border-radius: 999px; background: var(--ink); color: var(--white); text-decoration: none; font: 400 .9rem/1 var(--f-mono); margin-left: 12px; }
  .bar__tel:hover { background: var(--blue); color: var(--white); }
  .bar__logo img { width: 92px; }

  .hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; }
  .check { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 64px; }
  .next { position: sticky; top: 100px; }
  .row { grid-template-columns: 72px minmax(0, 1fr) 300px; column-gap: 48px; }
  .row__boxes { grid-column: 3; padding-top: 34px; }
  .contact { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 80px; align-items: end; }
}

@media (prefers-reduced-motion: reduce) {
  .ticks i::after, .cell::after, .box__mark::after, .kcard__stamp, .btn, .nav a::after { transition: none !important; }
}

/* =========================================================
   Unterseiten
   ========================================================= */

/* Seitenkopf */
.page-hero { padding-top: clamp(48px, 7vw, 112px); padding-bottom: clamp(56px, 7vw, 104px); }
.page-hero__grid { display: grid; gap: 40px; align-items: end; }
.page-hero .label { margin-bottom: 22px; }
.page-hero .label a { text-decoration: none; }
.page-hero .label a:hover { color: var(--blue); }
.page-hero h1 { font-size: clamp(3rem, 6.6vw, 6.4rem); line-height: .94; margin-bottom: 26px; }
.page-hero h1 em { display: block; }
.field-box { background: var(--white); border: 1px solid var(--rule); border-top: 2px solid var(--blue); padding: 22px 24px 24px; border-radius: 0 0 4px 4px; }
.field-box .kl { display: block; margin-bottom: 6px; }
.field-box__value { font: italic 400 clamp(1.8rem, 3vw, 2.4rem)/1.05 var(--f-serif); margin: 0; }
.field-box__sub { color: var(--ink-2); margin: 8px 0 0; font-size: .98rem; }
.field-box .btn { margin-top: 18px; min-height: 46px; }

.prose { max-width: 62ch; }
.prose p { color: var(--ink-2); }
.prose h3 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); margin: 34px 0 10px; }
.more { display: inline-flex; align-items: center; gap: 10px; margin-top: 30px; font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.more::after { content: "→"; transition: transform .2s var(--ease); }
.more:hover::after { transform: translateX(4px); }
.more + .more { margin-left: 28px; }
.section--dark .more { color: var(--on-navy); }

.tag { display: inline-block; font: 500 .66rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; padding: 6px 9px; border: 1px solid currentColor; border-radius: 999px; white-space: nowrap; color: var(--ink-2); }
.tag--red { color: var(--red-ink); }

/* Leistungsverzeichnis (Vorteile) */
.ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.ledger li { display: grid; gap: 10px 24px; padding: 30px 0 32px; border-bottom: 1px solid var(--rule); }
.ledger__no { font: 500 .78rem/1 var(--f-mono); color: var(--ink-2); padding-top: 10px; margin: 0; }
.ledger h3 { font-size: clamp(1.8rem, 2.8vw, 2.5rem); line-height: 1.02; }
.ledger__text p { color: var(--ink-2); margin: 0; }
.ledger__text p + p { margin-top: .8em; }
.ledger .tag { justify-self: start; align-self: start; margin-top: 8px; }

/* Hervorgehobener Block */
.feature { display: grid; gap: 28px; }
.feature__big { font: 400 clamp(3rem, 7vw, 6rem)/.92 var(--f-serif); margin: 0; }
.feature__big em { color: #9fb6e0; }
.feature p { color: var(--on-navy-2); }

/* Kurstermine */
.courses { width: 100%; border-collapse: collapse; }
.courses th, .courses td { text-align: left; padding: 20px 16px 20px 0; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.courses thead th { font: 500 .72rem/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); border-bottom: 1px solid var(--ink); padding-block: 12px; }
.course__date { font: 400 2rem/1 var(--f-serif); white-space: nowrap; }
.course__date small { display: block; font: 500 .72rem/1.6 var(--f-mono); letter-spacing: .1em; color: var(--ink-2); }
.course__name { font-weight: 500; }
.course__time { font: 400 .95rem/1.4 var(--f-mono); white-space: nowrap; }
.course__go { text-align: right; }
.course__go a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--ink); text-decoration: none; font-size: .92rem; font-weight: 500; white-space: nowrap; }
.course__go a:hover { background: var(--ink); color: var(--white); }
.courses tr.is-past { display: none; }
.courses-note { color: var(--ink-2); font-size: .95rem; margin-top: 18px; }

/* FAQ */
.faq { border-top: 1px solid var(--ink); max-width: 980px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 28px; gap: 20px; align-items: center;
  padding: 24px 0; font: 400 clamp(1.5rem, 2.4vw, 2rem)/1.15 var(--f-serif);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 28px; height: 28px; border: 1.25px solid var(--blue);
  background: linear-gradient(var(--blue), var(--blue)) center / 12px 1.5px no-repeat, linear-gradient(var(--blue), var(--blue)) center / 1.5px 12px no-repeat;
}
.faq details[open] summary::after {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 24'%3E%3Cpath d='M3 13.5 L9.5 20 L23 3.5' fill='none' stroke='%23e0211c' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat;
}
.faq summary:hover { color: var(--blue); }
.faq__body { padding: 0 0 28px; max-width: 64ch; color: var(--ink-2); }
.faq__body p:last-child { margin-bottom: 0; }

/* Schritte */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.steps li { counter-increment: step; border-top: 1px solid var(--ink); padding: 22px 0 34px; display: grid; gap: 10px; align-content: start; }
.steps li::before { content: counter(step, decimal-leading-zero); font: 500 .78rem/1 var(--f-mono); color: var(--ink-2); }
.steps h3 { font-size: clamp(1.8rem, 2.6vw, 2.3rem); line-height: 1.02; }
.steps p { color: var(--ink-2); margin: 0; }
.section--dark .steps li { border-color: var(--on-navy); }
.section--dark .steps li::before, .section--dark .steps p { color: var(--on-navy-2); }

/* Kostenaufstellung als Rechnung */
.invoice { background: var(--white); border-radius: 4px; padding: clamp(22px, 4vw, 44px); box-shadow: 0 1px 1px rgba(16, 18, 23, .05), 0 30px 60px -36px rgba(15, 29, 53, .35); }
.invoice__head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font: 500 .7rem/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--blue); padding-bottom: 14px; border-bottom: 1.5px solid var(--blue); box-shadow: 0 3px 0 -2px var(--blue); }
.invoice table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.invoice th, .invoice td { text-align: left; padding: 18px 12px 18px 0; border-bottom: 1px solid var(--rule); vertical-align: baseline; }
.invoice tbody th { font-weight: 500; }
.invoice tbody th small { display: block; font: 500 .7rem/1.6 var(--f-mono); letter-spacing: .1em; color: var(--blue); }
.invoice td { color: var(--ink-2); }
.invoice td:last-child { text-align: right; white-space: nowrap; }
.invoice tfoot td { border-bottom: 0; padding-top: 22px; color: var(--ink); }
.invoice .invoice__sum { font: italic 400 1.9rem/1 var(--f-serif); }

/* Klassen-Detail */
.age-field { display: inline-grid; gap: 6px; margin: 0 0 14px; }
.age-field input {
  width: 4ch; font: italic 400 3rem/1 var(--f-serif); color: var(--ink); background: transparent;
  border: 0; border-bottom: 1.5px solid var(--blue); padding: 0 0 4px; border-radius: 0;
}
.age-field input:focus-visible { outline: none; border-bottom-color: var(--red); }
.age-hint { color: var(--ink-2); margin: 0 0 48px; min-height: 1.6em; }
.class-group + .class-group { margin-top: clamp(56px, 8vw, 96px); }
.class-group > .label { margin-bottom: 16px; }
.class-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.class-item { display: grid; gap: 8px 28px; padding: 26px 0 28px; border-bottom: 1px solid var(--rule); transition: opacity .25s; }
.class-item__code { font: 400 clamp(2.6rem, 4vw, 3.4rem)/.9 var(--f-serif); margin: 0; }
.class-item h3 { font: 500 1.2rem/1.3 var(--f-sans); letter-spacing: -.01em; margin-bottom: 6px; }
.class-item p { color: var(--ink-2); margin: 0; }
.class-item dl { margin: 0; display: grid; gap: 4px; align-content: start; }
.class-item dt { font: 500 .66rem/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.class-item dd { margin: 0 0 8px; font: 400 .95rem/1.4 var(--f-mono); }
.class-item dd.min { color: var(--red-ink); }
.class-item.is-dim { opacity: .38; }
.class-item.is-ok .class-item__code { color: var(--blue); }

/* Fahrzeuge als Fahrzeugschein */
.vehicles { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.vehicle { background: var(--white); border: 1px solid var(--rule); border-top: 2px solid var(--blue); padding: 20px 22px 22px; display: grid; gap: 14px; align-content: start; }
.vehicle__name { font: italic 400 2rem/1 var(--f-serif); margin: 0; }
.vehicle dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.vehicle dl div { border-top: 1px solid var(--rule); padding: 8px 0 0; }
.vehicle dt { font: 500 .62rem/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.vehicle dd { margin: 2px 0 0; font-size: .95rem; }

/* Abschlussband auf jeder Unterseite */
.cta-band { background: var(--navy); color: var(--on-navy); padding-block: clamp(72px, 10vw, 136px); }
.cta-band__grid { display: grid; gap: 32px; align-items: end; }
.cta-band h2 { font-size: clamp(2.8rem, 6.4vw, 5.6rem); line-height: .95; }
.cta-band h2 em { color: #9fb6e0; }
.cta-band p { color: var(--on-navy-2); }
.cta-band .actions { margin-top: 0; }
.cta-band .btn--ink { background: var(--on-navy); color: var(--navy); }
.cta-band .btn--ink:hover { background: #fff; color: var(--navy); }
.cta-band .btn--line { box-shadow: inset 0 0 0 1px var(--on-navy); color: var(--on-navy); }
.cta-band .btn--line:hover { background: var(--on-navy); color: var(--navy); }

/* Rechtstexte */
.legal-note { border-left: 2px solid var(--red); padding: 4px 0 4px 18px; color: var(--ink-2); max-width: 60ch; }

@media (min-width: 760px) {
  .ledger li { grid-template-columns: 56px minmax(0, 1fr); }
  .ledger li > :not(.ledger__no) { grid-column: 2; }
  .steps { grid-template-columns: repeat(3, 1fr); column-gap: 32px; }
  .class-item { grid-template-columns: 120px minmax(0, 1fr) 220px; }
  .feature { grid-template-columns: 1fr 1fr; align-items: end; column-gap: 64px; }
}

@media (min-width: 1000px) {
  .page-hero__grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); column-gap: 72px; }
  .ledger li { grid-template-columns: 72px minmax(0, .9fr) minmax(0, 1.1fr) 150px; column-gap: 40px; }
  .ledger li > :not(.ledger__no) { grid-column: auto; }
  .ledger .tag { justify-self: end; }
  .cta-band__grid { grid-template-columns: 1.2fr .8fr; }
}

@media (max-width: 759px) {
  .courses thead { display: none; }
  .courses, .courses tbody { display: block; }
  .courses tr { padding: 18px 0 20px; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; }
  .courses tr.is-past { display: none; }
  .courses td { display: block; border: 0; padding: 0; }
  .course__date { grid-row: span 2; }
  .course__go { grid-column: 1 / -1; text-align: left; margin-top: 8px; }
  .invoice td:nth-child(2) { display: none; }
}
