/* Entwurf 3 – Vom Moped bis zum Bus. System: design/3.md (Chivo + Atkinson Hyperlegible, ratio 1.333, 6 colours). */
:root {
  --c-ground: #e6e9ed;
  --c-panel: #ffffff;
  --c-ink: #171c24;
  --c-red: #cf1219;
  --c-blue: #0a62a8;
  --c-butter: #fff0a3;

  --head: "Chivo", "Arial Narrow", system-ui, sans-serif;
  --body: "Chivo Digits", "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --fs--1: .8rem;
  --fs-0: 1.0625rem;
  --fs-1: 1.417rem;
  --fs-2: 1.889rem;
  --fs-3: 2.518rem;
  --fs-4: clamp(2.518rem, 5.6vw, 4.475rem);
  --fs-mark: clamp(1.889rem, 5.2vw, 4.475rem);
  --track-tight: -.02em;

  --sp-1: .25rem;
  --sp-2: .5rem;
  --sp-3: .75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --gutter: 1rem;
  --inset: .75rem;
  --pad: 1.5rem;

  --r-1: .5rem;
  --r-2: 1.5rem;
}
@media (min-width: 48rem) { :root { --inset: 1rem; --pad: 3rem; } }
@media (min-width: 72rem) { :root { --pad: 4rem; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body {
  margin: 0;
  padding: var(--inset);
  font-family: var(--body);
  font-size: var(--fs-0);
  line-height: 1.55;
  color: var(--c-ink);
  background: var(--c-ground);
}
::selection { background: var(--c-butter); color: var(--c-ink); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--c-blue); text-underline-offset: .2em; }
a:hover { color: var(--c-red); }
:focus-visible { outline: 3px solid var(--c-blue); outline-offset: 3px; border-radius: var(--r-1); }
h1, h2, h3 { margin: 0; font-family: var(--head); font-weight: 800; line-height: 1.15; letter-spacing: var(--track-tight); text-wrap: balance; }
h2 { font-size: var(--fs-3); line-height: 1.05; }
h3 { font-size: var(--fs-2); }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }

.skip { position: absolute; left: var(--sp-4); top: calc(var(--sp-9) * -1); padding: var(--sp-2) var(--sp-4); background: var(--c-ink); color: var(--c-panel); border-radius: var(--r-1); z-index: 10; }
.skip:focus { top: var(--sp-4); }
.skip:hover { color: var(--c-panel); }

.panel, .bar { width: min(90rem, 100%); margin-inline: auto; background: var(--c-panel); border-radius: var(--r-2); }
.panel { padding: var(--pad); margin-top: var(--inset); }

/* Nav bar */
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--sp-4); padding: var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-4); border-radius: var(--r-1); }
.brand { display: inline-flex; align-items: center; gap: var(--sp-2); margin-right: auto; color: var(--c-ink); text-decoration: none; font-family: var(--head); font-weight: 900; font-size: var(--fs-1); letter-spacing: var(--track-tight); }
.lplate { width: 1.75rem; height: 1.75rem; flex: none; }
.lp-bg { fill: var(--c-blue); }
.lp-l { fill: var(--c-panel); }
.bar > nav { order: 3; flex-basis: 100%; border-top: 2px solid var(--c-ground); margin-top: var(--sp-2); }
.nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 var(--sp-3); font-size: var(--fs--1); }
.nav a { display: inline-flex; align-items: center; min-height: 2.75rem; gap: var(--sp-2); color: var(--c-ink); text-decoration: none; font-weight: 700; }
.nav a::before { content: ""; width: .5rem; height: .5rem; background: var(--c-blue); }
.nav a:hover { color: var(--c-blue); }
@media (min-width: 52rem) { .bar > nav { order: 0; flex-basis: auto; border-top: 0; margin-top: 0; } .nav { gap: var(--sp-5); font-size: var(--fs-0); } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.75rem; padding: var(--sp-2) var(--sp-5);
  border-radius: var(--r-1); border: 2px solid transparent;
  font-weight: 700; text-decoration: none; line-height: 1.2;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-butter { background: var(--c-butter); color: var(--c-ink); }
.btn-butter:hover { background: var(--c-ink); color: var(--c-butter); }
.btn-red { background: var(--c-red); color: var(--c-panel); }
.btn-red:hover { background: var(--c-ink); color: var(--c-panel); }
.btn-line { border-color: var(--c-ink); color: var(--c-ink); }
.btn-line:hover { background: var(--c-ink); color: var(--c-panel); }
.btn-line-light { border-color: var(--c-panel); color: var(--c-panel); }
.btn-line-light:hover { background: var(--c-panel); color: var(--c-ink); }
.bar .btn { white-space: nowrap; padding-inline: var(--sp-4); }
.row-btns { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

/* Hero */
.hero { display: grid; gap: var(--sp-6); padding-bottom: 0; overflow: hidden; }
.hero-head { display: grid; gap: var(--sp-4); }
.hero h1 { font-size: var(--fs-4); font-weight: 900; line-height: 1; max-width: 12ch; }
.lede { font-size: var(--fs-1); line-height: 1.4; max-width: 36rem; }
@media (min-width: 60rem) {
  .hero-head { grid-template-columns: 7fr 5fr; align-items: end; gap: var(--gutter); }
}

.lineup { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.lineup li { display: grid; gap: var(--sp-2); }
.lineup img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-1); }
.lineup span { font-family: var(--head); font-weight: 800; font-size: var(--fs-0); }
@media (min-width: 60rem) { .lineup { grid-template-columns: repeat(6, 1fr); } .lineup span { font-size: var(--fs-1); } }

.hero-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--sp-4); margin-inline: calc(var(--pad) * -1); }
.notch {
  background: var(--c-ground);
  padding: var(--inset) var(--inset) 0 0;
  border-top-right-radius: var(--r-2);
}
.mark {
  background: var(--c-red);
  color: var(--c-panel);
  font-family: var(--head);
  font-weight: 900;
  font-size: var(--fs-mark);
  line-height: .95;
  letter-spacing: var(--track-tight);
  padding: var(--sp-4) var(--sp-5) var(--sp-5);
  border-radius: var(--r-2);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--sp-2); padding: 0 var(--pad) var(--pad); }
@media (max-width: 36rem) { .hero-cta { order: -1; padding-bottom: 0; } }

/* Panels' heads */
.panel-head { display: grid; gap: var(--sp-3); max-width: 44rem; margin-bottom: var(--sp-7); }
.panel-head p { font-size: var(--fs-1); line-height: 1.4; }

.jump { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-3); }
.jump a { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 2.75rem; padding: var(--sp-2) var(--sp-4); border-radius: var(--r-1); background: var(--c-ground); color: var(--c-ink); text-decoration: none; font-weight: 700; }
.jump a:hover { background: var(--c-ink); color: var(--c-panel); }
.jump b { font-family: var(--head); font-weight: 900; color: var(--c-red); }
.jump a:hover b { color: var(--c-butter); }

/* Class blocks with fleet tiles */
.klasse { scroll-margin-top: var(--sp-4); display: grid; gap: var(--sp-5) var(--gutter); padding-block: var(--sp-6); border-top: 2px solid var(--c-ground); }
.klasse h3 { display: flex; align-items: baseline; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.code { color: var(--c-red); font-weight: 900; }
.facts { display: grid; gap: var(--sp-2); }
.facts li { display: flex; gap: var(--sp-2); }
.facts li::before { content: ""; flex: none; width: .5rem; height: .5rem; margin-top: calc(var(--sp-2) * 1.2); background: var(--c-blue); }
.fleet { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4) var(--gutter); }
@media (min-width: 36rem) { .fleet { grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: var(--sp-5) var(--gutter); } }
.fleet li { display: grid; gap: var(--sp-1); align-content: start; max-width: 25rem; }
.fleet img { border-radius: var(--r-1); margin-bottom: var(--sp-2); }
.fleet b { font-weight: 700; line-height: 1.25; }
.fleet span { font-size: var(--fs--1); }
.more { max-width: 36rem; font-size: var(--fs-1); line-height: 1.4; }
@media (min-width: 60rem) {
  .klasse { grid-template-columns: 4fr 8fr; }
  .klasse-short { align-items: start; }
}

/* Course + price pair */
.pair { display: grid; gap: 0 var(--inset); width: min(90rem, 100%); margin-inline: auto; }
.pair .panel { width: 100%; display: grid; gap: var(--sp-4); align-content: start; }
.courses { display: grid; }
.courses li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-1) var(--sp-4); padding-block: var(--sp-3); border-bottom: 2px solid var(--c-ground); }
.courses b { font-family: var(--head); font-weight: 800; font-size: var(--fs-1); line-height: 1.2; letter-spacing: var(--track-tight); }
.courses b small { display: block; font-family: var(--body); font-size: var(--fs--1); font-weight: 400; letter-spacing: 0; }
.price { font-family: var(--head); font-weight: 800; font-size: var(--fs-1); }
@media (min-width: 60rem) { .pair { grid-template-columns: 7fr 5fr; } }

/* Familie */
.familie { display: grid; gap: var(--sp-7) var(--gutter); }
.familie-text { display: grid; gap: var(--sp-4); align-content: start; max-width: 36rem; }
.milestones { display: grid; gap: var(--sp-2); margin-top: var(--sp-3); }
.milestones li { display: flex; gap: var(--sp-4); align-items: baseline; padding-block: var(--sp-2); border-top: 2px solid var(--c-ground); }
.milestones b { font-family: var(--head); font-weight: 900; font-size: var(--fs-1); color: var(--c-red); min-width: 4ch; }
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5) var(--gutter); }
.team li { display: grid; gap: var(--sp-1); align-content: start; }
.team img { border-radius: var(--r-1); margin-bottom: var(--sp-2); }
.team b { font-weight: 700; line-height: 1.25; }
.team span { font-size: var(--fs--1); }
@media (min-width: 40rem) { .team { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 60rem) { .familie { grid-template-columns: 4fr 8fr; } .team { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 80rem) { .team { grid-template-columns: repeat(5, 1fr); } }

/* Contact (ink panel) */
.panel-ink { background: var(--c-ink); color: var(--c-panel); display: grid; gap: var(--sp-7) var(--gutter); }
.panel-ink h2 { margin-bottom: var(--sp-5); }
.panel-ink a { color: var(--c-butter); }
.panel-ink a.btn-butter { color: var(--c-ink); }
.panel-ink a.btn-butter:hover { color: var(--c-butter); background: var(--c-blue); }
.panel-ink a.btn-line-light { color: var(--c-panel); }
.panel-ink a.btn-line-light:hover { color: var(--c-ink); }
address { font-style: normal; font-family: var(--head); font-weight: 800; font-size: var(--fs-2); line-height: 1.15; letter-spacing: var(--track-tight); margin-bottom: var(--sp-6); }
.info > div { padding-block: var(--sp-3); border-top: 1px solid color-mix(in srgb, var(--c-panel) 30%, transparent); }
.info dt { font-weight: 700; color: var(--c-butter); }
@media (min-width: 60rem) { .panel-ink { grid-template-columns: 7fr 5fr; } }

/* Footer */
.foot { font-size: var(--fs--1); margin-bottom: 0; }
.impressum h2 { font-size: var(--fs-2); margin-bottom: var(--sp-1); }
.impressum > p { margin-bottom: var(--sp-5); }
.impressum dl { display: grid; gap: var(--sp-1) var(--sp-5); margin-bottom: var(--sp-6); }
.impressum dt { font-weight: 700; }
.impressum dd { margin-bottom: var(--sp-2); overflow-wrap: anywhere; }
@media (min-width: 40rem) { .impressum dl { grid-template-columns: max-content 1fr; } .impressum dd { margin: 0; } }
.demo { max-width: 70ch; }
