/* Layout: schmale Kopfzeile mit Logo, Textspalte ~66ch, Leistungen als 3er-Raster,
   Ablauf als echte 4-Schritt-Sequenz. Keine externen Fonts (DSGVO), nur Systemschriften. */
:root {
  --bg: #f4f6f7;
  --surface: #ffffff;
  --ink: #1d2a33;
  --muted: #55636d;
  --line: #d8dee2;
  --accent: #e8743b;      /* Logo-Orange */
  --accent-ink: #b8501d;  /* Orange für Text auf hellem Grund */
  --font-display: "Avenir Next", "Segoe UI Variable Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131b21; --surface: #1b252c; --ink: #e6ebee; --muted: #9aa7b0;
    --line: #2c3a43; --accent: #f08a52; --accent-ink: #f5a172; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #131b21; --surface: #1b252c; --ink: #e6ebee; --muted: #9aa7b0;
  --line: #2c3a43; --accent: #f08a52; --accent-ink: #f5a172; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 1rem/1.6 var(--font-body);
}
img { max-width: 100%; height: auto; }
a { color: var(--accent-ink); text-underline-offset: 0.18em; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap {
  max-width: 68rem; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* Kopf */
.site-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-head .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem 2rem; padding-block: 0.9rem;
}
.brand { display: block; line-height: 0; }
.brand img { height: 52px; width: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; font-size: 0.95rem; }
.nav a { color: var(--ink); text-decoration: none; padding-block: 0.25rem; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--accent); }

/* Typografie */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem); font-weight: 700; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0; }
.eyebrow {
  font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent-ink);
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40rem; }
.stack { display: flex; flex-direction: column; gap: 1rem; }

section { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
section + section { border-top: 1px solid var(--line); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.hero > * { min-width: 0; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }
.btn {
  display: inline-block; padding: 0.7rem 1.2rem; border-radius: 4px; font-weight: 600;
  text-decoration: none; border: 2px solid var(--accent);
}
.btn-primary { background: var(--accent); color: #1d1208; }
.btn-ghost { color: var(--ink); }

/* Ausstattungsblatt – das typische Klassenzimmer */
.spec { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--accent); padding: 1.25rem 1.4rem; }
.spec h2 { font-size: 1rem; }
.spec p.note { font-size: 0.85rem; color: var(--muted); margin-top: 0.25rem; }
.spec dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.55rem 1rem; margin: 1rem 0 0; font-size: 0.93rem; }
.spec dt { font-family: var(--font-mono); font-size: 0.82rem; color: var(--accent-ink); padding-top: 0.12rem; font-variant-numeric: tabular-nums; }
.spec dd { margin: 0; }

/* Leistungen */
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: 2rem; }
.service { display: flex; flex-direction: column; gap: 0.6rem; }
.service .tag { font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.service ul { margin: 0.25rem 0 0; padding-left: 1.1rem; display: grid; gap: 0.3rem; }
.service ul li::marker { color: var(--accent); }

/* Ablauf */
.steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; counter-reset: s; }
.steps li { counter-increment: s; border-top: 2px solid var(--line); padding-top: 1rem; display: flex; flex-direction: column; gap: 0.4rem; }
.steps li::before { content: counter(s); font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--accent); line-height: 1; }
.steps p { color: var(--muted); font-size: 0.95rem; }

/* Kontakt */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.contact > * { min-width: 0; }
.card { background: var(--surface); border: 1px solid var(--line); padding: 1.4rem; }
address { font-style: normal; }
.kv { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 0.35rem 1rem; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }

/* Rechtstexte */
.legal { max-width: 46rem; }
.legal h1 { margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.2rem; margin-top: 2rem; margin-bottom: 0.5rem; }
.legal p, .legal ul { margin-bottom: 0.75rem; }
.legal ul { padding-left: 1.2rem; }

/* Fuß */
.site-foot { background: var(--surface); border-top: 1px solid var(--line); font-size: 0.88rem; color: var(--muted); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; padding-block: 1.5rem; }
.site-foot nav { display: flex; gap: 1.25rem; }
.site-foot a { color: var(--muted); }

@media (max-width: 860px) {
  .hero, .contact { grid-template-columns: minmax(0, 1fr); }
  .grid3 { grid-template-columns: minmax(0, 1fr); gap: 2.25rem; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .brand img { height: 44px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
html { scroll-behavior: smooth; }
.legal .stand { color: var(--muted); margin-top: 2rem; }
