/* Milo Training — Website. Farben und Maße aus DESIGN.md (dunkles Thema, ein Grün). */
:root {
  --gruenes-licht: #4ADE80;
  --gruenes-licht-text: #052E14;
  --gummimatte: #0B0D10;
  --matte-flaeche: #14181D;
  --matte-erhaben: #1C222A;
  --naht: #262E38;
  --naht-stark: #37424F;
  --kreide: #F2F5F8;
  --kreide-gedaempft: #98A5B4;
  --kreide-blass: #8593A3;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --font: system-ui, Roboto, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--gummimatte);
  color: var(--kreide);
  font: 400 17px/1.6 var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px 48px; }

a { color: var(--kreide); text-decoration-color: var(--kreide-blass); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--kreide); }

:focus-visible { outline: 2px solid var(--kreide); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  background: var(--matte-erhaben); color: var(--kreide);
  padding: 12px 16px; border-radius: var(--r-md); border: 1px solid var(--naht-stark);
}
.skip:focus { top: 16px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* Kopf und Fuß */
.site-header { width: 100%; max-width: 1040px; margin: 0 auto; padding: 16px; }
.brand {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 700; font-size: 18px; text-decoration: none;
}
.mark { width: 36px; height: 36px; color: var(--kreide); }

.site-footer {
  border-top: 1px solid var(--naht);
  background: var(--matte-flaeche);
  padding: 24px 16px 32px;
  color: var(--kreide-gedaempft);
  font-size: 15px;
}
.site-footer ul {
  list-style: none; margin: 0 auto; padding: 0; max-width: 1040px;
  display: flex; flex-wrap: wrap; gap: 4px 24px;
}
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer a[aria-current="page"] { text-decoration: none; font-weight: 600; }
.site-footer p { max-width: 1040px; margin: 8px auto 0; }

/* Startseite */
.hero { padding: 32px 0 40px; max-width: 760px; }
.status {
  display: inline-block; margin: 0 0 24px;
  padding: 6px 14px; border: 1px solid var(--naht-stark); border-radius: 999px;
  background: var(--matte-erhaben); color: var(--kreide);
  font-size: 13px; font-weight: 600; letter-spacing: 0.3px;
}
.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(28px, 4.6vw, 44px); line-height: 1.2; font-weight: 700;
  text-wrap: balance;
}
.lead { margin: 0; color: var(--kreide-gedaempft); font-size: 19px; max-width: 60ch; }

h2 { font-size: 24px; line-height: 1.3; margin: 0 0 16px; }
h3 { font-size: 18px; line-height: 1.3; margin: 0 0 8px; font-weight: 600; }

.points ul, .screens ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.points ul { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.points li {
  background: var(--matte-flaeche); border: 1px solid var(--naht);
  border-radius: var(--r-lg); padding: 16px;
}
.points p { margin: 0; color: var(--kreide-gedaempft); }

.screens { padding-top: 56px; }
.screens ul { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.screens figure { margin: 0; max-width: 300px; margin-inline: auto; }
.screens img {
  display: block; width: 100%; height: auto;
  border-radius: var(--r-lg); border: 1px solid var(--naht);
}
.screens figcaption { margin-top: 12px; color: var(--kreide-gedaempft); font-size: 15px; }

.support {
  margin-top: 56px; padding: 24px;
  background: var(--matte-flaeche); border: 1px solid var(--naht); border-radius: var(--r-lg);
  max-width: 760px;
}
.support p { margin: 0 0 16px; }
.support p:last-child { margin-bottom: 0; }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 24px; border: 0; border-radius: var(--r-md);
  background: var(--gruenes-licht); color: var(--gruenes-licht-text);
  font: 600 17px/1 var(--font); text-decoration: none; cursor: pointer;
}
.button:hover { opacity: 0.9; }
.button:active { opacity: 0.7; }

.hint { color: var(--kreide-gedaempft); font-size: 15px; }

/* Schmale Seiten und Formular */
.narrow { max-width: 640px; padding-top: 24px; }
.narrow h1 { font-size: 32px; line-height: 1.2; margin: 0 0 16px; }

.form { margin-top: 24px; display: grid; gap: 20px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.optional { font-weight: 400; color: var(--kreide-gedaempft); }
.field .hint { margin: 0; font-size: 14px; }
input, textarea {
  width: 100%; min-height: 48px; padding: 12px;
  background: var(--gummimatte); color: var(--kreide);
  border: 1px solid var(--kreide-blass); border-radius: var(--r-md);
  font: 400 17px/1.5 var(--font);
}
textarea { resize: vertical; }
input:focus-visible, textarea:focus-visible { outline-offset: 1px; border-color: var(--kreide); }
.form .button { justify-self: start; }
.form > .hint { margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Rechtstexte */
.legal { max-width: 720px; padding-top: 24px; overflow-wrap: anywhere; }
.legal h1 { font-size: 32px; line-height: 1.2; margin: 0 0 16px; }
.legal h2 { font-size: 22px; margin: 40px 0 12px; scroll-margin-top: 16px; }
.legal h3 { margin-top: 24px; }
.legal p, .legal li { color: var(--kreide); }
.legal ul { padding-left: 22px; }
.legal li + li { margin-top: 6px; }
.legal blockquote {
  margin: 16px 0; padding: 12px 16px;
  background: var(--matte-flaeche); border: 1px solid var(--naht); border-radius: var(--r-md);
}
.legal blockquote p { margin: 0 0 8px; }
.legal blockquote p:last-child { margin-bottom: 0; }
.legal code { font-size: 0.9em; background: var(--matte-erhaben); padding: 1px 6px; border-radius: 6px; }

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