/* aerocademy – Website im Designsystem (CLAUDE.md 4): ICAO-Karte + Cockpit-Instrument.
   Tokens und Schriften: assets/tokens.css, assets/fonts.css (lokal, keine Drittanbieter). */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); color: var(--fg); background: var(--bg); line-height: 1.6; font-size: 17px; }
img, svg { max-width: 100%; display: block; }
a { color: var(--course); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: .01em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0; }

.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--fg); color: var(--bg); padding: 8px 14px; border-radius: 7px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--magenta); outline-offset: 3px; }

.eyebrow, .quote-label { font: 600 .8rem var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--magenta); }

/* Kopfzeile */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); font: 500 1.45rem var(--display); letter-spacing: .01em; }
.brand strong { font-weight: 700; }
.nav nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.nav nav a { color: var(--muted); text-decoration: none; font: 600 .9rem var(--display); letter-spacing: .08em; text-transform: uppercase; }
.nav nav a:hover { color: var(--fg); }

/* Buttons: sagen, was passiert */
.btn { display: inline-block; font: 600 1rem var(--display); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; padding: 11px 20px; border-radius: 7px; background: var(--magenta); color: #fff; border: 1px solid var(--magenta); }
.btn:hover { filter: brightness(1.08); }
.btn-small { padding: 7px 14px; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--fg); filter: none; }

/* Hero */
.hero { padding: 64px 0 72px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; }
.hero-text { display: flex; flex-direction: column; gap: 18px; }
.hero h1 { max-width: 14em; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.facts { list-style: none; display: flex; padding: 0; margin: 14px 0 0; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); width: fit-content; max-width: 100%; }
.facts li { display: flex; flex-direction: column; padding: 10px 18px; border-left: 1px solid var(--line); }
.facts li:first-child { border-left: 0; }
.facts strong { font: 500 1.35rem var(--mono); font-variant-numeric: tabular-nums; }
.facts span { font: 600 .72rem var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.hero-svg { width: 100%; height: auto; }
.hero-svg .paper { fill: var(--paper); stroke: var(--line); }
.hero-svg .grid-line { stroke: var(--paper-grid); stroke-width: 1; }
.hero-svg .track { stroke: var(--course); stroke-width: 2.5; fill: none; }
.hero-svg .trail-dash { stroke: var(--fg); stroke-width: 2.2; fill: none; stroke-dasharray: 5 5; opacity: .75; }
.hero-svg .trail-mag { stroke: var(--magenta); stroke-width: 2.6; fill: none; stroke-linecap: round; }
.hero-svg .trail-solid { stroke: var(--fg); stroke-width: 2.4; fill: none; opacity: .8; stroke-linecap: round; }
.hero-svg .ndb circle { fill: var(--magenta); }
.hero-svg .ndb .dots circle { fill: none; stroke: var(--magenta); stroke-width: 2.4; stroke-dasharray: .1 4.6; stroke-linecap: round; }
.hero-svg .plane { fill: var(--fg); }
.hero-svg .wind path { stroke: var(--wind); stroke-width: 2.5; fill: none; }
.hero-svg .wind .fill { fill: var(--wind); stroke: none; }
.hero-svg .wind text { fill: var(--wind); }
.hero-svg .label { font: 700 14px var(--display); letter-spacing: .04em; }
.hero-svg .mono { font: 500 12px var(--mono); }
.hero-svg .mag { fill: var(--magenta); }
.hero-svg .course { fill: var(--course); }
.hero-svg .muted { fill: var(--muted); font-size: 12px; }
.hero-svg .scale { stroke: var(--muted); stroke-width: 2; }

/* Abschnitte */
.section { padding: 80px 0; }
.section-alt { background: var(--panel); border-block: 1px solid var(--line); }
.section .wrap, .section .narrow { display: flex; flex-direction: column; gap: 14px; }
.section-lead { color: var(--muted); max-width: 44em; font-size: 1.06rem; }

.subjects { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); overflow: hidden; }
.subjects li { padding: 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.subjects li:nth-child(3n) { border-right: 0; }
.subjects li:nth-last-child(-n+3) { border-bottom: 0; }
.subjects p { color: var(--muted); font-size: .95rem; }
.num { font: 500 .9rem var(--mono); color: var(--magenta); font-variant-numeric: tabular-nums; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 2px solid var(--fg); }
.steps li::before { content: "0" counter(step); font: 500 .95rem var(--mono); color: var(--magenta); }
.steps p { color: var(--muted); font-size: .96rem; }

.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px; align-items: center; }
.split > div { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.checks { list-style: none; padding: 0; margin: 4px 0 10px; display: flex; flex-direction: column; gap: 10px; }
.checks li { padding-left: 16px; border-left: 3px solid var(--magenta); }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 26px; }
.quote { display: flex; flex-direction: column; gap: 12px; border-left: 3px solid var(--magenta); }
.quote blockquote { margin: 0; font: 700 1.6rem/1.2 var(--display); }
.quote p:last-child { color: var(--muted); font-size: .96rem; }

details { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }
summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 600; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font: 500 1.3rem var(--mono); color: var(--magenta); }
details[open] summary::after { content: "−"; }
details p { padding: 0 18px 16px; color: var(--muted); }

.cta { padding: 72px 0; }
.cta-box { border: 1px solid var(--line); border-radius: 12px; padding: 48px 28px; text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center;
  background-color: var(--paper);
  background-image: linear-gradient(var(--paper-grid) 1px, transparent 1px), linear-gradient(90deg, var(--paper-grid) 1px, transparent 1px);
  background-size: 24px 24px; }
.cta-box p { color: var(--muted); }

/* Fußzeile */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 24px; font-size: .95rem; color: var(--muted); }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-grid > div { display: flex; flex-direction: column; gap: 8px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.site-footer a { color: var(--fg); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.brand-light { color: var(--fg); }
.copy { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 18px; font-size: .85rem; }

/* Rechtstexte */
.legal { padding: 56px 0 80px; }
.legal .narrow { display: flex; flex-direction: column; gap: 12px; }
.legal h1 { font-size: 2.4rem; }
.legal h2 { font-size: 1.35rem; margin-top: 18px; }
.todo { background: var(--magenta-soft); border: 1px solid var(--magenta); border-radius: 10px; padding: 14px 18px; }

@media (max-width: 960px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero-art { max-width: 520px; }
  .subjects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .subjects li:nth-child(n) { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .subjects li:nth-child(2n) { border-right: 0; }
  .subjects li:last-child { border-bottom: 0; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .nav nav { display: none; }
  .nav .btn-small { margin-left: auto; }
  .hero { padding: 40px 0 56px; }
  .section { padding: 56px 0; }
  .subjects, .steps { grid-template-columns: 1fr; }
  .subjects li:nth-child(n) { border-right: 0; }
  .facts li { padding: 8px 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
