/* no backspace – Stylesheet
   Mischung aus Entwurf 1 (ruhig, modern, Hell/Dunkel) und Entwurf 2 (Logo-Farben, Orbitron).
   Farben aus dem Logo: Navy #102A83, Grün #73B031.
   Keine externen Ressourcen (keine Google Fonts, kein CDN) – datenschutzfreundlich. */

@font-face {
  font-family: "Orbitron";
  src: url("../fonts/orbitron.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #102a83;
  --green: #73b031;

  --bg: #fbfbfd;
  --bg-alt: #f2f4f9;
  --surface: #ffffff;
  --text: #1a2140;
  --heading: var(--navy);
  --muted: #59607a;
  --line: #e0e4ee;
  --accent: #4a7d1a;          /* dunkleres Logo-Grün – lesbar auf Hell */
  --accent-ink: #ffffff;
  --accent-soft: #eef6e4;
  --tag-bg: #e8ecf8;
  --tag-ink: var(--navy);
  --swoosh: linear-gradient(90deg, var(--navy) 0%, var(--navy) 40%, var(--green) 100%);
  --textgrafik-filter: none;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --brand: "Orbitron", var(--font);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --radius: 10px;
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1226;
    --bg-alt: #121731;
    --surface: #171d3a;
    --text: #e4e8f5;
    --heading: #ffffff;
    --muted: #a3aac4;
    --line: #262d52;
    --accent: #8cc94a;
    --accent-ink: #0e1226;
    --accent-soft: #1d2a24;
    --tag-bg: #222a55;
    --tag-ink: #c9d2f5;
    --swoosh: linear-gradient(90deg, #3550c4 0%, #3550c4 40%, var(--green) 100%);
    /* Text-Grafiken (dunkelblau) im Dunkelmodus hell darstellen */
    --textgrafik-filter: brightness(0) invert(0.92);
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

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

h1, h2, h3 { font-family: var(--brand); color: var(--heading); line-height: 1.2; margin: 0 0 0.6em; }
h1 { font-size: clamp(1.75rem, 4.8vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 3.2vw, 1.9rem); font-weight: 600; }
h3 { font-size: 1.02rem; font-weight: 600; letter-spacing: 0.01em; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: -999px; top: 0.5rem;
  background: var(--accent); color: var(--accent-ink);
  padding: 0.5rem 1rem; border-radius: var(--radius); z-index: 100;
}
.skip-link:focus { left: 0.5rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(8px);
}
/* Verlaufsleiste Navy → Grün wie der „Swoosh“ im Logo */
.site-header::after { content: ""; display: block; height: 2px; background: var(--swoosh); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4.5rem;
}

.logo img { height: 48px; width: auto; }

.nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.75rem;
}
.nav a { color: var(--text); text-decoration: none; font-size: 0.97rem; }
.nav a:hover { color: var(--accent); }
.nav a.btn { color: var(--accent-ink); }

@media (max-width: 47.99rem) {
  .site-header { position: static; }
  .site-header .wrap { flex-wrap: wrap; padding-block: 0.75rem; }
  .logo img { height: 42px; }
  .nav { width: 100%; }
  .nav ul { gap: 0.25rem 1.1rem; }
  .nav a { font-size: 0.92rem; }
  .nav a.btn { padding: 0; background: none; border: 0; color: var(--accent); font-weight: 600; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.75rem 1.4rem; border-radius: var(--radius);
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; text-decoration: none; border: 2px solid var(--accent);
  transition: transform 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--accent); }
.nav .btn { padding: 0.45rem 1rem; }

/* ---------- Sections ---------- */

section { padding: clamp(3.5rem, 9vw, 6rem) 0; }
section.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.eyebrow {
  font-family: var(--mono); font-size: 0.85rem; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.75rem;
}
.lead { font-size: clamp(1.08rem, 2.1vw, 1.25rem); color: var(--muted); max-width: 40rem; }
.section-head { max-width: 44rem; margin-bottom: 2.5rem; }

/* Hero – angedeuteter Logo-Swoosh im Hintergrund, blinkender Cursor („no backspace“) */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding-top: clamp(4rem, 11vw, 7.5rem);
}
.hero::before, .hero::after {
  content: ""; position: absolute; z-index: -1;
  right: -12%; width: 70%; border-radius: 50%;
  transform: rotate(-14deg); opacity: 0.1;
}
.hero::before { top: 18%; height: 40px; background: linear-gradient(90deg, transparent, var(--navy) 50%, var(--green)); }
.hero::after  { top: 30%; height: 22px; background: linear-gradient(90deg, transparent, var(--navy) 40%, var(--green)); }
@media (prefers-color-scheme: dark) {
  .hero::before, .hero::after { opacity: 0.22; }
}
.hero h1 .accent { color: var(--green); }
.hero h1 .cursor {
  display: inline-block; width: 0.5em; height: 0.9em; margin-left: 0.12em;
  background: var(--green); vertical-align: -0.05em;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.hero .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero .facts {
  display: flex; flex-wrap: wrap; gap: 0.5rem 2rem;
  margin: 3rem 0 0; padding: 0; list-style: none;
  color: var(--muted); font-size: 0.95rem;
}
.hero .facts li::before { content: "✓ "; color: var(--green); font-weight: 700; }

/* Karten-Raster */
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem;
}
.card p { color: var(--muted); }
.card p:last-child { margin-bottom: 0; }
.card .icon {
  display: inline-grid; place-items: center;
  width: 2.5rem; height: 2.5rem; margin-bottom: 1rem;
  border-radius: 8px; background: var(--accent-soft); color: var(--accent);
  font-family: var(--mono); font-weight: 700;
}

/* Vorgehen: nummerierte Schritte */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 1rem; }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 3rem 1fr; gap: 1rem;
  padding: 1.25rem 0; border-top: 1px solid var(--line);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono); font-weight: 700; color: var(--accent); font-size: 1.1rem;
}
.steps h3 { margin-bottom: 0.3em; }
.steps p { color: var(--muted); margin: 0; }

/* Listen in Karten */
.checklist { list-style: none; margin: 0 0 1em; padding: 0; color: var(--muted); }
.checklist li { position: relative; padding-left: 1.3em; margin-bottom: 0.45em; }
.checklist li::before { content: "›"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.card .checklist:last-child { margin-bottom: 0; }

/* Referenzen */
.group-title {
  font-family: var(--mono); font-size: 0.85rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted);
  margin: 3rem 0 1.25rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--line);
}
.group-title:first-of-type { margin-top: 0; }
.ref .meta { font-family: var(--mono); font-size: 0.82rem; color: var(--muted); margin-bottom: 0.5rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.tags li {
  font-size: 0.78rem; padding: 0.15rem 0.6rem; border-radius: 999px;
  background: var(--tag-bg); color: var(--tag-ink);
}

/* Kontakt */
.contact {
  display: grid; gap: 2rem; align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
}

/* Kontaktdaten als Grafik (SVG-Pfade in Orbitron) – nicht maschinenlesbar */
.textgrafik { display: block; height: auto; max-width: 100%; filter: var(--textgrafik-filter); }

/* ---------- Rechtstexte ---------- */

.legal { max-width: 46rem; }
.legal h1 { font-size: clamp(1.6rem, 3.8vw, 2.2rem); }
.legal h2 { font-size: 1.1rem; margin-top: 2.2em; }
.legal h3 { margin-top: 1.6em; }
.legal .textgrafik { margin: 0.25rem 0 1em; }

.note {
  border-left: 4px solid #d99a00; background: color-mix(in srgb, #d99a00 12%, transparent);
  padding: 0.9rem 1.1rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5rem 0;
  font-size: 0.95rem;
}

/* ---------- Footer ---------- */

.site-footer { color: var(--muted); font-size: 0.92rem; padding-bottom: 2rem; }
.site-footer::before { content: ""; display: block; height: 2px; background: var(--swoosh); margin-bottom: 2rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
.site-footer p { margin: 0; }
.site-footer ul { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }

@media print {
  .site-header, .site-footer, .hero .actions, .hero::before, .hero::after { display: none; }
  body { background: #fff; color: #000; }
}
