/* fox directories — Dachseite.
   Gestaltung wie das Playbook: kühles Blaugrau als Grund, Oxblood nur für
   Akzente, Archivo als Display, IBM Plex für Text und technische Angaben.
   Jede Verzeichnis-Karte trägt ihre eigene Primärfarbe (--rail) aus
   src/verticals/<id>.ts — die Farbe ist Information, keine Dekoration. */

:root {
  --bg: #F4F6F8;
  --surface: #FFFFFF;
  --surface-2: #EAEEF2;
  --ink: #1A222B;
  --ink-2: #4B5865;
  --ink-3: #7A8794;
  --line: #D5DCE3;
  --accent: #A8261E;
  --steel: #3F6484;
  --steel-soft: #E3ECF3;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12171D;
    --surface: #1A2128;
    --surface-2: #222B34;
    --ink: #E8ECF0;
    --ink-2: #B4BEC8;
    --ink-3: #7F8B97;
    --line: #2E3944;
    --accent: #E0574D;
    --steel: #8FB3D1;
    --steel-soft: #1F2E3B;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Sans", "Segoe UI", Roboto, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1060px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 40px); }

h1, h2, h3 {
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}
p { margin: 0; }
a { color: var(--steel); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--surface); color: var(--ink); padding: 10px 16px; z-index: 10;
}
.skip:focus { left: 8px; top: 8px; }
a:focus-visible { outline: 2px solid var(--steel); outline-offset: 3px; border-radius: 2px; }

/* ── Kopf ──────────────────────────────────────────────────────────────── */
.top { border-bottom: 1px solid var(--line); background: var(--surface); }
.top-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; padding-block: 14px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 14px; height: 14px; flex: none; border-radius: 2px;
  background: var(--accent);
  box-shadow: 5px 0 0 var(--steel);
}
.brand-name {
  font-family: "Archivo", sans-serif; font-weight: 800; font-size: 18px;
  letter-spacing: -0.03em; padding-right: 6px;
}
.brand-name span { font-weight: 600; color: var(--ink-3); }
.langs { display: flex; gap: 4px; flex-wrap: wrap; }
.lang {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12.5px; padding: 5px 9px; border-radius: 3px;
  text-decoration: none; color: var(--ink-2);
}
.lang:hover { background: var(--surface-2); }
.lang.is-current { background: var(--steel-soft); color: var(--steel); font-weight: 500; }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero { padding-block: clamp(48px, 9vw, 88px) clamp(36px, 6vw, 60px); }
.eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 18px;
}
h1 { font-size: clamp(36px, 6.2vw, 62px); font-weight: 800; line-height: 1.02; }
.lede { margin-top: 22px; max-width: 60ch; font-size: clamp(17px, 2vw, 19px); color: var(--ink-2); }

/* ── Bänder ────────────────────────────────────────────────────────────── */
.band { padding-block: clamp(40px, 6vw, 64px); border-top: 1px solid var(--line); }
.band.alt { background: var(--surface); }
.sec-head { display: grid; gap: 10px; margin-bottom: 28px; max-width: 56ch; }
.sec-head h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 700; }
.sec-head p { color: var(--ink-2); }

/* ── Verzeichnis-Karten ────────────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 14px; }
.card {
  display: flex; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: 4px;
  overflow: hidden; transition: border-color .15s, transform .15s;
}
.band.alt .card { background: var(--bg); }
.card:hover { border-color: var(--rail); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .card:hover { transform: none; } }
.card-rail { width: 4px; flex: none; background: var(--rail); }
.card-body { display: grid; gap: 8px; padding: 18px 20px; align-content: start; }
.card-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.card-head h3 { font-size: 18px; font-weight: 700; }
.tag {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--ink-3); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px;
}
.card-line { font-size: 15px; color: var(--ink-2); }
.card-host {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12.5px; color: var(--rail); word-break: break-all;
}

/* ── Für Anbieter ──────────────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: minmax(260px, 2fr) minmax(300px, 3fr); gap: clamp(24px, 5vw, 56px); align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.split .sec-head { margin-bottom: 0; }
.steps { display: grid; gap: 22px; }
.step { display: grid; grid-template-columns: 34px 1fr; gap: 16px; align-items: start; }
.step-n {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px; font-variant-numeric: tabular-nums;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--steel-soft); color: var(--steel); font-weight: 500;
}
.step h3 { font-size: 16px; font-weight: 700; margin-bottom: 3px; }
.step p { font-size: 15px; color: var(--ink-2); max-width: 54ch; }

/* ── Technik-Notizen ───────────────────────────────────────────────────── */
.notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(20px, 4vw, 36px); }
.note { display: grid; gap: 8px; border-top: 2px solid var(--accent); padding-top: 16px; }
.note h3 { font-size: 16px; font-weight: 700; }
.note p { font-size: 15px; color: var(--ink-2); }

/* ── Fuss ──────────────────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); background: var(--surface); padding-block: clamp(36px, 5vw, 52px) 24px; }
.foot-inner { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.foot-head { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.foot-lede { color: var(--ink-2); font-size: 15px; max-width: 48ch; margin-bottom: 10px; }
.mail { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 15px; color: var(--accent); }
.foot-links { display: grid; gap: 6px; align-content: start; font-size: 14px; }
.foot-links a { color: var(--ink-2); text-decoration: none; }
.foot-links a:hover { color: var(--steel); text-decoration: underline; }
.foot-note {
  margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink-3);
}
