@font-face {
  font-family: "Onest";
  src: url("/fonts/onest.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --bg: #1F2A30;
  --deep: #172025;
  --line: #33424A;
  --text: #E9F0EF;
  --muted: #9AABAF;
  --teal: #4E9C94;
  --teal-hi: #7CC3BA;
  --pad: clamp(16px, 5vw, 64px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 "Onest", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--teal-hi); text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--teal-hi); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.05; letter-spacing: -0.025em; font-weight: 650; margin: 0; }
code { font: 0.9em ui-monospace, Consolas, monospace; color: var(--teal-hi); overflow-wrap: anywhere; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: var(--pad); top: 8px; z-index: 20; background: var(--text); color: var(--bg); padding: 8px 12px; }

/* Kopfzeile */
.nav {
  position: absolute; inset: 0 0 auto; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px var(--pad);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 1.35rem; letter-spacing: -0.02em; }
.mark { width: 34px; height: 34px; }
.mark path { fill: none; stroke: currentColor; stroke-width: 11; stroke-linecap: round; stroke-linejoin: round; }
.mark circle { fill: var(--teal); }
.nav nav { display: flex; align-items: center; gap: clamp(12px, 3vw, 28px); font-size: 0.95rem; }
.nav nav a { color: var(--muted); text-decoration: none; }
.nav nav a:hover, .nav nav a[aria-current] { color: var(--text); }
.langs { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.langs a { padding: 2px 9px; border-radius: 999px; font-size: 0.8rem; }
.langs a[aria-current] { background: var(--line); }

/* Hero: laufende Protokolle der Werkzeuge im Hintergrund */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 120px var(--pad) 28px;
  background: var(--deep);
}
.feed {
  position: absolute; inset: 0; z-index: -2;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  padding: 90px var(--pad) 0;
  font: 0.8rem/1.75 ui-monospace, Consolas, monospace;
  color: #7E979B;
  mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 70%, transparent);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(23, 32, 37, 0.9) 22%, rgba(23, 32, 37, 0.4) 58%, rgba(23, 32, 37, 0.1));
}
.col { display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; height: 100%; padding-bottom: 30vh; }
.col p { margin: 0; white-space: pre; overflow: hidden; text-overflow: ellipsis; animation: ein 0.5s ease-out; }
.col .ok { color: var(--teal); }
.col .kopf { color: var(--muted); }
@keyframes ein { from { opacity: 0; transform: translateY(6px); } }

.hero-in { max-width: 62rem; }
.hero h1 { font-size: clamp(3.2rem, 10vw, 8.5rem); letter-spacing: -0.045em; line-height: 0.92; }
.hero h1 i { font-style: normal; color: var(--teal); }
.lead { max-width: 36rem; margin: 28px 0 0; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #C9D5D4; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.btn {
  display: inline-block; padding: 12px 20px; border-radius: 999px;
  background: var(--teal); color: var(--deep); font-weight: 600; text-decoration: none;
  border: 1px solid var(--teal); transition: background 0.15s, color 0.15s;
}
.btn:hover { background: var(--teal-hi); border-color: var(--teal-hi); color: var(--deep); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--text); }

.facts {
  list-style: none; margin: clamp(48px, 9vh, 96px) 0 0; padding: 22px 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem;
}
.facts b { display: block; color: var(--text); font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.pause {
  position: absolute; right: var(--pad); top: 84px;
  background: rgba(23, 32, 37, 0.7); color: var(--muted); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 12px; font: inherit; font-size: 0.8rem; cursor: pointer;
}
.pause:hover { color: var(--text); }

/* Werkzeuge */
.tools, .ways, .kofi { padding: clamp(72px, 12vw, 140px) var(--pad) 0; }
.tools > h2, .ways > h2 { font-size: clamp(1rem, 1.4vw, 1.15rem); font-weight: 500; letter-spacing: 0; color: var(--muted); margin-bottom: 24px; }
.tool {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px 64px;
  padding: 48px 0 56px; border-top: 1px solid var(--line);
}
.badge { display: inline-block; margin: 0 0 14px; padding: 3px 12px; border-radius: 999px; background: rgba(78, 156, 148, 0.16); color: var(--teal-hi); border: 1px solid rgba(124, 195, 186, 0.45); font-size: 0.85rem; font-weight: 600; }
.tool h3 { font-size: clamp(2.8rem, 7vw, 5.5rem); letter-spacing: -0.045em; }
.tag { margin: 14px 0 0; font-size: 1.2rem; color: #C9D5D4; max-width: 26rem; }
.tool-body { max-width: 38rem; }
.tool-body > p:first-child { margin-top: 0; }
.tool ul { padding: 0; list-style: none; margin: 20px 0; }
.tool li { padding: 9px 0 9px 26px; border-bottom: 1px solid var(--line); position: relative; }
.tool li::before { content: ""; position: absolute; left: 4px; top: 1.05em; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.meta { color: var(--muted); font-size: 0.9rem; }

/* Grundsätze */
.ways dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin: 0; padding-top: 32px; border-top: 1px solid var(--line); }
.ways dt { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.015em; }
.ways dd { margin: 10px 0 0; color: #C9D5D4; max-width: 24rem; }

/* Ko-fi */
.kofi { padding-bottom: clamp(72px, 12vw, 140px); }
.kofi > * { max-width: 40rem; }
.kofi h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); letter-spacing: -0.035em; }
.kofi p { color: #C9D5D4; font-size: 1.1rem; }

/* Fußzeile */
.foot { border-top: 1px solid var(--line); background: var(--deep); padding: 40px var(--pad); color: var(--muted); font-size: 0.92rem; }
.foot-in { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px 32px; }
.foot-slogan { margin: 0; color: var(--text); font-weight: 600; font-size: 1.1rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot nav a { color: var(--muted); }
.foot nav a:hover { color: var(--text); }
.foot-copy { margin: 0; }

/* Rechtstexte */
.doc { max-width: 46rem; padding: 140px var(--pad) 96px; }
.doc h1 { font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -0.04em; }
.doc h2 { font-size: 1.35rem; margin: 2.2em 0 0.4em; letter-spacing: -0.015em; }
.doc .stand { color: var(--muted); }
.doc li { margin: 0.5em 0; }

/* Werkzeugnamen fahren beim Scrollen herein (nur wo der Browser es kann) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .tool h3 { animation: wisch linear both; animation-timeline: view(); animation-range: entry 0% entry 90%; }
    @keyframes wisch { from { clip-path: inset(0 100% 0 0); opacity: 0.2; } to { clip-path: inset(0 0 0 0); opacity: 1; } }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .col p { animation: none; }
}

@media (max-width: 860px) {
  .hero::before { background: rgba(23, 32, 37, 0.84); }
  .feed { grid-template-columns: 1fr; }
  .feed .col:not(:first-child) { display: none; }
  .tool, .ways dl { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .nav nav > a:first-child { display: none; }
  .pause { top: auto; bottom: 14px; }
  .hero { padding-bottom: 56px; }
}
