/* Fahrschule B. Henkel – Leitmotiv: der Führerschein */

/* Schriften lokal, keine Verbindung zu Google (DSGVO) */
@font-face { font-family: "Archivo"; src: url(../fonts/archivo.woff2) format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Bitter"; src: url(../fonts/bitter-italic.woff2) format("woff2"); font-weight: 700 900; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(../fonts/plexmono-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(../fonts/plexmono-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(../fonts/plexmono-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --paper: #f5eff2;
  --paper-2: #ece3ea;
  --ink: #1d1b2c;
  --ink-soft: #545064;
  --line: #cfc3cf;
  --red: #c8232b;
  --red-ink: #a91c23;
  --green: #2f8a3f;
  --eu: #233f94;
  --card-a: #f4dde6;
  --card-b: #e2dcf0;
  --card-c: #f3e7da;

  --f-display: "Bitter", Georgia, serif;
  --f-body: "Archivo", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
  --radius-card: clamp(14px, 2.2vw, 22px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--red-ink); }
:focus-visible { outline: 3px solid var(--eu); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 6px;
}
.skip:focus { top: 12px; }

.eyebrow {
  font: 500 .78rem/1.3 var(--f-mono);
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-soft);
}
.num { color: var(--red-ink); margin-right: .35em; }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 12px var(--gutter);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.top.is-scrolled { border-bottom-color: var(--line); }
.top__logo img { width: clamp(150px, 16vw, 200px); height: auto; }
.top__nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); }
.top__nav ol { display: flex; gap: clamp(14px, 2vw, 28px); list-style: none; margin: 0; padding: 0; }
.top__nav ol a { font: 500 .95rem var(--f-body); text-decoration: none; }
.top__nav ol a span { font: 500 .75rem var(--f-mono); color: var(--red-ink); }
.top__call {
  font: 600 .9rem var(--f-mono); text-decoration: none;
  padding: 9px 14px; border: 1.5px solid var(--ink); border-radius: 999px;
}
.top__call:hover { background: var(--ink); color: var(--paper); }
.top__menu { display: none; }

@media (max-width: 860px) {
  .top__menu {
    display: block; font: 600 .85rem var(--f-mono); text-transform: uppercase; letter-spacing: .06em;
    background: none; border: 1.5px solid var(--ink); border-radius: 999px; padding: 8px 14px; color: var(--ink);
  }
  .top__nav {
    position: absolute; inset: 100% 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .top__nav.is-open { display: flex; }
  .top__nav ol { flex-direction: column; gap: 0; }
  .top__nav ol a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .top__call { margin-top: 16px; text-align: center; padding: 14px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 12px 22px; border-radius: 999px;
  font: 600 1rem var(--f-body); text-decoration: none; text-align: center;
  border: 2px solid transparent;
  transition: transform .15s, background-color .2s, color .2s;
}
.btn:active { transform: translateY(1px); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-ink); color: #fff; }
.btn--line { border-color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--red-ink); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(32px, 6vw, 80px) var(--gutter) clamp(56px, 8vw, 110px);
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 80px); align-items: start;
}
.hero__text { position: sticky; top: 120px; }
.hero h1 {
  font: 900 italic clamp(2.9rem, 7vw, 5.8rem)/.92 var(--f-display);
  letter-spacing: -.02em;
  margin: 18px 0 28px;
}
.hero h1 em { color: var(--red); font-style: italic; }
.hero__lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 34em; }
.hero__hint { margin-top: 18px; color: var(--ink-soft); }
.hero__hint strong { color: var(--ink); font-weight: 600; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- Die Karte ---------- */
.license {
  --pad: clamp(14px, 3vw, 26px);
  position: relative; overflow: hidden;
  aspect-ratio: 85.6 / 54;
  border-radius: var(--radius-card);
  padding: var(--pad);
  background:
    radial-gradient(120% 90% at 0% 0%, var(--card-a), transparent 60%),
    radial-gradient(120% 90% at 100% 100%, var(--card-c), transparent 55%),
    var(--card-b);
  box-shadow:
    0 1px 0 rgba(255,255,255,.7) inset,
    0 2px 4px rgba(29,27,44,.08),
    0 24px 60px -20px rgba(29,27,44,.35);
  transform: rotate(-2.2deg);
  display: grid; grid-template-rows: auto 1fr auto;
  font-family: var(--f-mono);
  color: var(--ink);
  container-type: inline-size;
}
.license__guilloche {
  position: absolute; inset: 0; width: 100%; height: 100%;
  stroke: #a98fbd; stroke-width: .8; fill: none; opacity: .5;
  pointer-events: none;
}
.license::after { /* Lichtkante, läuft beim "Drucken" einmal drüber */
  content: ""; position: absolute; inset: -40% -60%;
  background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.55) 50%, transparent 58%);
  transform: translateX(-70%);
  pointer-events: none;
}
.license.is-printing::after { animation: sheen .9s ease-out; }
@keyframes sheen { to { transform: translateX(70%); } }

.license > * { position: relative; }
.license__head { display: flex; align-items: flex-start; gap: 12px; padding-right: 64px; }
.license__title {
  font: 900 italic clamp(1.15rem, 6.2cqi, 2.2rem)/1 var(--f-display);
  text-transform: uppercase; letter-spacing: .01em;
  color: var(--red);
}
.license__sub { font-size: clamp(.55rem, 1.9cqi, .75rem); color: var(--ink-soft); margin-top: .5em; align-self: end; }
.license__head { flex-direction: column; gap: 0; }
.license__lev {
  position: absolute; top: 0; right: 0;
  width: clamp(40px, 11cqi, 62px); aspect-ratio: 1 / 1.1;
  background: var(--eu); color: #f4d64b; border-radius: 6px;
  display: grid; place-items: center;
  font: 600 clamp(.7rem, 3cqi, 1rem) var(--f-mono); letter-spacing: .04em;
}
.license__body {
  display: grid; grid-template-columns: 24% 1fr auto; gap: clamp(10px, 3cqi, 22px);
  align-items: start; margin-top: clamp(8px, 3cqi, 20px);
}
.license__photo {
  aspect-ratio: 3 / 4; border-radius: 4px;
  background: rgba(255,255,255,.45);
  border: 1px dashed #a897b4;
  display: grid; place-items: center; align-content: center; gap: 4px;
  text-align: center; font-size: clamp(.45rem, 1.6cqi, .62rem); color: var(--ink-soft); line-height: 1.25;
}
.license__photo svg { width: 55%; fill: #c2b2cc; }
.license__fields { margin: 0; display: grid; gap: clamp(2px, .9cqi, 6px); font-size: clamp(.58rem, 2.25cqi, .86rem); line-height: 1.3; }
.f { display: grid; grid-template-columns: 2.6em 1fr; }
.f dt { color: var(--ink-soft); }
.f dd { margin: 0; font-weight: 500; }
.f__label { display: block; font-size: .78em; font-weight: 400; color: var(--ink-soft); }
.f--name dd { font: 800 italic clamp(.9rem, 4.4cqi, 1.6rem)/1.1 var(--f-display); text-transform: uppercase; overflow-wrap: anywhere; }
.f--goal .f__goal { color: var(--red-ink); font-weight: 600; display: inline-block; }
.f--goal .f__goal.is-new { animation: stampIn .5s cubic-bezier(.2,1.4,.4,1); }
@keyframes stampIn { from { transform: scale(1.5) rotate(-4deg); opacity: 0; } }

.license__class { text-align: center; font-size: clamp(.58rem, 2.25cqi, .86rem); }
.license__class .f__label { color: var(--ink-soft); }
.license__class strong {
  display: block; font: 900 italic clamp(1.4rem, 9cqi, 3.4rem)/1 var(--f-display); color: var(--ink);
}
.license__sign {
  display: flex; gap: 8px; align-items: baseline;
  font-size: clamp(.55rem, 2cqi, .78rem); color: var(--ink-soft);
  border-top: 1px solid rgba(29,27,44,.25); padding-top: 4px; margin-left: calc(24% + clamp(10px, 3cqi, 22px));
  width: 50%;
}
.license__sign [data-out="sign"] { font: 700 italic clamp(.8rem, 3.2cqi, 1.2rem) var(--f-display); color: #2c3a8a; text-transform: none; }
.license__stamp {
  position: absolute; right: 6%; bottom: 7%;
  font: 600 clamp(.7rem, 3.6cqi, 1.3rem) var(--f-mono); letter-spacing: .3em; text-transform: uppercase;
  color: var(--red); border: 2px solid var(--red); border-radius: 6px; padding: .2em .4em .2em .7em;
  transform: rotate(-12deg); opacity: .7;
  mix-blend-mode: multiply;
}

/* ---------- Konfigurator ---------- */
.config {
  margin-top: clamp(28px, 4vw, 44px);
  display: grid; gap: 22px;
  padding-left: clamp(0px, 2vw, 18px);
}
.config__row { border: 0; margin: 0; padding: 0; min-width: 0; }
.config label[for], .config legend {
  display: block; font: 500 .78rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 10px; padding: 0;
}
.config input[type="text"] {
  width: 100%; max-width: 420px;
  font: 800 italic 1.6rem var(--f-display); color: var(--ink);
  background: transparent; border: 0; border-bottom: 2px solid var(--ink);
  padding: 4px 0 8px; border-radius: 0;
}
.config input[type="text"]::placeholder { color: #a39cab; }
.config input[type="text"]:focus { outline: none; border-bottom-color: var(--red); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span {
  display: inline-block; min-width: 52px; text-align: center;
  padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 8px;
  font: 600 .95rem var(--f-mono); background: rgba(255,255,255,.5);
  transition: background-color .15s, border-color .15s, color .15s;
}
.chips label:hover span { border-color: var(--ink); }
.chips input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chips input:focus-visible + span { outline: 3px solid var(--eu); outline-offset: 2px; }
.config__note { font-size: .88rem; color: var(--ink-soft); max-width: 46em; }
.config .btn { justify-self: start; }

/* ---------- Belege ---------- */
.proof { border-block: 1px solid var(--ink); }
.proof dl {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.proof dl > div { padding: clamp(18px, 3vw, 32px) clamp(10px, 2vw, 24px); border-left: 1px solid var(--line); }
.proof dl > div:first-child { border-left: 0; padding-left: 0; }
.proof dt { font: 500 .74rem var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.proof dd { margin: 6px 0 0; font: 900 italic clamp(2rem, 4.5vw, 3.6rem)/1 var(--f-display); }
.proof small { font: 500 .32em var(--f-mono); font-style: normal; letter-spacing: .04em; margin-left: .3em; color: var(--ink-soft); }
@media (max-width: 760px) {
  .proof dl { grid-template-columns: 1fr 1fr; }
  .proof dl > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .proof dl > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Sections ---------- */
.classes, .steps, .team, .voices, .faq {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(72px, 10vw, 140px) var(--gutter) 0;
}
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 {
  font: 900 italic clamp(2.2rem, 5.2vw, 4.2rem)/.98 var(--f-display);
  letter-spacing: -.015em; margin: 14px 0 18px;
}
.section-head p:not(.eyebrow) { color: var(--ink-soft); max-width: 40em; }

/* ---------- Rückseite / Klassen ---------- */
.back {
  border-radius: var(--radius-card);
  background:
    repeating-linear-gradient(0deg, transparent 0 7px, rgba(185,163,200,.18) 7px 8px),
    var(--card-b);
  padding: clamp(10px, 2vw, 22px) clamp(14px, 3vw, 36px) clamp(18px, 3vw, 30px);
  box-shadow: 0 24px 60px -30px rgba(29,27,44,.35);
}
.back__list { list-style: none; margin: 0; padding: 0; }
.back__row {
  display: grid; grid-template-columns: 70px 90px 1fr 60px auto;
  gap: clamp(12px, 2vw, 28px); align-items: center;
  padding: 16px 0; border-bottom: 1px solid rgba(29,27,44,.18);
}
.back__row--head {
  font: 500 .72rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft);
  padding: 10px 0;
}
.pict { width: 64px; height: 32px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pict .pict__thin { stroke: var(--red); }
.back__row h3 { font: 900 italic clamp(1.6rem, 3vw, 2.3rem)/1 var(--f-display); }
.back__row p { font-size: .98rem; }
.back__age { font: 600 1.15rem var(--f-mono); }
.back__pick {
  font: 600 .82rem var(--f-mono); color: var(--ink); cursor: pointer;
  background: transparent; border: 1.5px solid var(--ink); border-radius: 999px; padding: 9px 14px; white-space: nowrap;
}
.back__pick:hover { background: var(--ink); color: var(--paper); }
.back__row.is-active { background: linear-gradient(90deg, rgba(200,35,43,.08), transparent 70%); }
.back__row.is-active .back__pick { background: var(--red); border-color: var(--red); color: #fff; }
.back__extra { margin-top: 20px; font-size: .98rem; }
.back__extra a { font-weight: 600; white-space: nowrap; }

@media (max-width: 760px) {
  .back__row--head { display: none; }
  .back__row {
    grid-template-columns: auto 1fr auto; grid-template-areas: "pict h3 age" "p p p" "pick pick pick";
    gap: 10px 14px; padding: 20px 0;
  }
  .back__row .pict { grid-area: pict; }
  .back__row h3 { grid-area: h3; }
  .back__row p:not(.back__age) { grid-area: p; }
  .back__age { grid-area: age; font-size: .9rem; }
  .back__age::before { content: "ab "; color: var(--ink-soft); }
  .back__pick { grid-area: pick; justify-self: start; }
}

/* ---------- Stempel / Ablauf ---------- */
/* Stempelkarte: ein Karton, sieben Felder */
.stamps {
  list-style: none; margin: 0;
  padding: clamp(22px, 3vw, 40px);
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  background: #fbf7f0;
  border-radius: var(--radius-card);
  box-shadow: 0 24px 60px -30px rgba(29,27,44,.35);
  position: relative;
}
.stamps::before { /* Lochung wie bei einer Stempelkarte */
  content: ""; position: absolute; left: 50%; top: 14px; width: 26px; height: 8px; margin-left: -13px;
  border-radius: 6px; background: var(--paper);
  box-shadow: inset 0 1px 2px rgba(29,27,44,.25);
}
.stamps li {
  display: grid; justify-items: start; align-content: start; gap: 8px;
  padding: 18px clamp(10px, 1.4vw, 20px) 8px;
  border-left: 1px dashed var(--line);
}
.stamps li:first-child { border-left: 0; padding-left: 0; }
.stamps li > * { min-width: 0; max-width: 100%; }
.stamps h3 { font: 800 italic clamp(1rem, 1.3vw, 1.2rem)/1.2 var(--f-display); margin-top: 8px; hyphens: auto; overflow-wrap: break-word; }
.stamps p { color: var(--ink-soft); font-size: .9rem; line-height: 1.5; hyphens: auto; }
.stamp {
  width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center;
  font: 900 italic 1.6rem var(--f-display);
  color: var(--line); border: 2px dashed var(--line);
  transition: color .3s, border-color .3s, transform .4s cubic-bezier(.2,1.5,.4,1);
}
.stamps li.is-stamped .stamp {
  color: var(--red); border: 3px double var(--red);
  transform: rotate(-10deg);
}
.stamps li.stamps__last.is-stamped .stamp { color: #fff; background: var(--green); border-color: var(--green); }
@media (max-width: 1100px) {
  .stamps { grid-template-columns: 1fr 1fr; column-gap: clamp(20px, 4vw, 48px); }
  .stamps li, .stamps li:first-child {
    grid-template-columns: auto 1fr; column-gap: 18px; justify-items: stretch;
    border-left: 0; border-top: 1px dashed var(--line); padding: 20px 0;
  }
  .stamps li:nth-child(-n+2) { border-top: 0; }
  .stamp { grid-row: span 2; width: 60px; height: 60px; font-size: 1.4rem; }
  .stamps h3 { margin-top: 0; align-self: end; }
}
@media (max-width: 640px) {
  .stamps { grid-template-columns: 1fr; }
  .stamps li:nth-child(2) { border-top: 1px dashed var(--line); }
}

/* ---------- Team ---------- */
.ids { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(20px, 3vw, 40px); }
.id {
  display: grid; gap: clamp(16px, 2.5vw, 24px);
  padding: clamp(14px, 2vw, 22px);
  border-radius: var(--radius-card);
  background:
    radial-gradient(120% 90% at 100% 0%, var(--card-a), transparent 60%),
    var(--card-b);
  box-shadow: 0 18px 50px -28px rgba(29,27,44,.4);
}
.id:nth-child(2) { transform: rotate(1.2deg); }
.id:nth-child(1) { transform: rotate(-.8deg); }
.id img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; filter: saturate(.85) contrast(1.02); }
.id__field, .id__classes { font: 500 .8rem var(--f-mono); color: var(--ink-soft); }
.id__field span, .id__classes span { color: var(--red-ink); }
.id h3 { font: 900 italic clamp(1.5rem, 2.6vw, 2rem)/1.05 var(--f-display); margin: 6px 0 10px; }
.id p:not(.id__field):not(.id__classes) { font-size: .98rem; }
.id__classes { margin-top: 12px; }

/* ---------- Stimmen ---------- */
.voices__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.voices__list li { padding: clamp(22px, 3vw, 36px) clamp(0px, 3vw, 36px) clamp(22px, 3vw, 36px) 0; border-bottom: 1px solid var(--line); }
.voices__list li:nth-child(even) { padding-left: clamp(16px, 3vw, 36px); border-left: 1px solid var(--line); }
.voices blockquote { margin: 0; font: 700 italic clamp(1.2rem, 2.1vw, 1.65rem)/1.3 var(--f-display); }
.voices__src { margin-top: 16px; font: 400 .8rem var(--f-mono); color: var(--ink-soft); }
@media (max-width: 760px) {
  .voices__list { grid-template-columns: 1fr; }
  .voices__list li:nth-child(even) { padding-left: 0; border-left: 0; }
}

/* ---------- FAQ ---------- */
.faq__list { border-top: 1px solid var(--ink); max-width: 900px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; gap: 20px; align-items: baseline;
  padding: 20px 0; font: 600 clamp(1.05rem, 1.6vw, 1.25rem) var(--f-body);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 500 1.4rem var(--f-mono); color: var(--red); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; max-width: 46em; color: var(--ink-soft); }

/* ---------- Kontakt ---------- */
.contact {
  max-width: var(--max); margin: clamp(80px, 11vw, 150px) auto 0;
  padding: clamp(36px, 6vw, 72px) var(--gutter);
  background: var(--ink); color: var(--paper);
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: end;
}
.contact h2 { font: 900 italic clamp(2.6rem, 6.5vw, 5.4rem)/.92 var(--f-display); letter-spacing: -.02em; }
.contact h2 em { color: #ff6f72; }
.contact__data { margin: 0; display: grid; gap: 0; }
.contact__data > div { display: grid; grid-template-columns: 7.5em 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(245,239,242,.18); }
.contact__data dt { font: 500 .76rem/1.9 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: #b9b3c6; }
.contact__data dd { margin: 0; font-size: 1.08rem; overflow-wrap: anywhere; }
.contact__data a { text-decoration-color: rgba(245,239,242,.4); }
.contact__data a:hover { color: #ff9a9c; }
.contact :focus-visible { outline-color: #f4d64b; }

.foot {
  max-width: var(--max); margin: 0 auto;
  background: var(--ink); color: #b9b3c6;
  padding: 18px var(--gutter) 28px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font: 400 .82rem var(--f-mono);
  border-top: 1px solid rgba(245,239,242,.18);
}
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a { color: var(--paper); text-decoration: none; }
.foot a:hover { color: #ff9a9c; text-decoration: underline; }
.foot :focus-visible { outline-color: #f4d64b; }

.foot--solo { margin-top: clamp(80px, 10vw, 140px); border-radius: var(--radius-card) var(--radius-card) 0 0; padding-top: 28px; border-top: 0; }

/* ---------- Unterseiten ---------- */
.top__nav a[aria-current="page"] { color: var(--red-ink); text-decoration: underline; text-decoration-thickness: 2px; }
.page-hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(40px, 7vw, 96px) var(--gutter) clamp(32px, 5vw, 56px);
}
.page-hero h1 {
  font: 900 italic clamp(2.8rem, 7.5vw, 6rem)/.92 var(--f-display);
  letter-spacing: -.02em; margin: 16px 0 24px; max-width: 12em;
}
.page-hero h1 em { color: var(--red); }
.page-hero__lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 36em; }

.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.jump a {
  font: 600 .95rem var(--f-mono); text-decoration: none;
  padding: 8px 12px; min-width: 48px; text-align: center;
  border: 1.5px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.5);
}
.jump a:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }

.checklist { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.checklist__card {
  max-width: 640px; padding: clamp(22px, 3vw, 34px);
  background: #fbf7f0; border-radius: var(--radius-card);
  box-shadow: 0 24px 60px -30px rgba(29,27,44,.35);
  transform: rotate(-.6deg);
}
.checklist h2 { font: 800 italic clamp(1.4rem, 2.4vw, 1.8rem)/1.15 var(--f-display); margin-bottom: 8px; }
.checklist__card > p { color: var(--ink-soft); font-size: .95rem; }
.checklist ul { list-style: none; margin: 18px 0 0; padding: 0; }
.checklist li { border-top: 1px dashed var(--line); }
.checklist label { display: flex; gap: 14px; align-items: center; padding: 12px 0; cursor: pointer; }
.checklist input {
  appearance: none; flex: none; width: 26px; height: 26px; margin: 0;
  border: 2px solid var(--ink); border-radius: 50%; display: grid; place-items: center; cursor: pointer;
}
.checklist input::after { content: ""; width: 12px; height: 7px; border: solid #fff; border-width: 0 0 3px 3px; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.checklist input:checked { background: var(--green); border-color: var(--green); }
.checklist input:checked::after { opacity: 1; }
.checklist input:checked + span { text-decoration: line-through; text-decoration-color: var(--green); color: var(--ink-soft); }
.checklist__done { margin-top: 14px; font-weight: 600; color: var(--green); }

.reqs { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 8vw, 110px) var(--gutter) 0; }
.reqs__group { font: 900 italic clamp(1.8rem, 4vw, 3rem)/1 var(--f-display); margin-bottom: clamp(16px, 2.5vw, 28px); }
.req {
  display: grid; grid-template-columns: minmax(150px, 1fr) 3fr; gap: 8px clamp(20px, 4vw, 56px);
  padding: clamp(20px, 2.6vw, 30px) 0; border-top: 1px solid var(--ink);
  scroll-margin-top: 96px;
}
.req:target { background: linear-gradient(90deg, rgba(200,35,43,.08), transparent 60%); }
.req h3 { font: 900 italic clamp(2.2rem, 4.5vw, 3.6rem)/1 var(--f-display); }
.req header p { font: 500 .8rem var(--f-mono); color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; margin-top: 8px; }
.req dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px 28px; align-content: start; }
.req dt { font: 500 .72rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.req dd { margin: 2px 0 0; font-weight: 500; }
.req__note, .req__text { grid-column: 2; }
.req__note { font-size: .95rem; color: var(--ink-soft); border-left: 3px solid var(--red); padding-left: 14px; margin-top: 8px; max-width: 46em; }
.req__text p + p { margin-top: 12px; }
.req__text { max-width: 44em; }
@media (max-width: 640px) {
  .req { grid-template-columns: 1fr; }
  .req__note, .req__text { grid-column: 1; }
  .req dl { grid-template-columns: 1fr 1fr; }
}

.page-cta {
  max-width: var(--max); margin: clamp(64px, 8vw, 110px) auto 0; padding: 0 var(--gutter);
}
.page-cta > p { font: 800 italic clamp(1.6rem, 3vw, 2.4rem)/1.1 var(--f-display); }
.page-cta .hero__cta { margin-top: 20px; }

/* Theoriekalender */
.cal {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start;
}
.embed {
  min-height: 560px; border-radius: var(--radius-card); overflow: hidden;
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(100% / 7 - 1px), rgba(29,27,44,.08) calc(100% / 7 - 1px) calc(100% / 7)),
    repeating-linear-gradient(0deg, transparent 0 79px, rgba(29,27,44,.08) 79px 80px),
    #fbf7f0;
  box-shadow: 0 24px 60px -30px rgba(29,27,44,.35);
  display: grid; place-items: center;
}
.embed.is-loaded { display: block; background: #fff; min-height: 560px; }
.embed iframe { width: 100%; border: 0; }
.embed__gate { max-width: 420px; padding: 28px; margin: 24px; background: var(--paper); border-radius: 14px; text-align: center; display: grid; gap: 14px; justify-items: center; box-shadow: 0 12px 30px -16px rgba(29,27,44,.35); }
.embed__title { font: 900 italic 1.8rem var(--f-display); }
.embed__gate p:not(.embed__title) { font-size: .92rem; color: var(--ink-soft); }
.embed__alt a { font-weight: 600; color: var(--ink); }
.cal__info h2 { font: 800 italic 1.6rem var(--f-display); margin-bottom: 12px; }
.cal__info dl { margin: 0 0 18px; }
.cal__info dl > div { padding: 12px 0; border-top: 1px solid var(--line); }
.cal__info dt { font: 500 .72rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.cal__info dd { margin: 2px 0 0; }
@media (max-width: 900px) { .cal { grid-template-columns: 1fr; } .embed { min-height: 420px; } }

/* Rechtliches */
.legal { max-width: 760px; margin: 0 auto; padding: clamp(40px, 7vw, 96px) var(--gutter) 0; }
.legal h1 { font: 900 italic clamp(2.6rem, 6vw, 4.4rem)/1 var(--f-display); margin-bottom: 32px; hyphens: manual; }
.legal h2 { font: 700 1.15rem var(--f-body); margin: 36px 0 10px; }
.legal p { margin-bottom: 12px; color: var(--ink); }
.legal__todo { background: #fff4c9; border-left: 3px solid #d9a400; padding: 10px 14px; font-size: .95rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero__text { position: static; }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .license { transform: rotate(-1.4deg); }
  .hero__cta .btn, .config .btn { width: 100%; }
  .contact__data > div { grid-template-columns: 1fr; gap: 2px; }
  .id:nth-child(n) { transform: none; }
}

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