/* nelyox Guide: dunkle Seite, ein Akzent (Amber), selbst gehostete Schriften. Design nach nelyox.de. */

@font-face { font-family: "Geist"; font-weight: 400; font-display: swap; src: url("fonts/geist-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 500; font-display: swap; src: url("fonts/geist-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 600; font-display: swap; src: url("fonts/geist-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 700; font-display: swap; src: url("fonts/geist-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-weight: 400; font-display: swap; src: url("fonts/geist-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-weight: 500; font-display: swap; src: url("fonts/geist-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --ground: #0c0a09;
  --surface: #14110f;
  --surface-2: #1a1714;
  --line: rgba(255, 244, 232, 0.10);
  --line-strong: rgba(255, 244, 232, 0.2);
  --text: #f4efe9;
  --muted: #b3a99e;
  --amber: #ff8a1f;
  --amber-soft: #ffb55e;
  --on-amber: #1a0f04;
  --ok: #8fd19e;
  --err: #ff9a8a;
  --radius-card: 24px;
  --radius-field: 14px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --pad: clamp(20px, 5vw, 32px);
  --nav-h: 68px;
  --mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  background: var(--ground);
  color: var(--text);
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--amber-soft); outline-offset: 3px; border-radius: 6px; }

.col { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 var(--pad); }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 var(--pad); }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--amber); color: var(--on-amber); padding: 10px 16px; border-radius: var(--radius-pill); font-weight: 600; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.grain { position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* Kopfzeile */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--nav-h);
  background: rgba(12, 10, 9, 0.78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.nav { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font-weight: 700; font-size: 1.35rem; letter-spacing: -0.04em; }
.brand span { color: var(--amber); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: var(--radius-pill); font-weight: 600; font-size: 1rem; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.25s, border-color 0.25s, box-shadow 0.35s var(--ease); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-primary { background: var(--amber); color: var(--on-amber); box-shadow: 0 10px 40px -12px rgba(255, 138, 31, 0.6); }
.btn-primary:hover { background: var(--amber-soft); box-shadow: 0 14px 50px -10px rgba(255, 138, 31, 0.75); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: rgba(255, 244, 232, 0.03); }
.btn-ghost:hover { border-color: rgba(255, 244, 232, 0.4); background: rgba(255, 244, 232, 0.08); }
.btn-sm { padding: 8px 16px; font-size: 0.9rem; }

/* Hero */
.hero { padding: calc(var(--nav-h) + clamp(56px, 10vw, 112px)) 0 clamp(48px, 8vw, 88px); }
.eyebrow { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber-soft); margin-bottom: 20px; }
h1 { font-weight: 700; font-size: clamp(2.1rem, 6.4vw, 3.6rem); line-height: 1.04; letter-spacing: -0.04em; text-wrap: balance; }
h1 em { font-style: normal; color: var(--amber); }
.lead { margin-top: 24px; color: var(--muted); font-size: clamp(1.08rem, 2.2vw, 1.22rem); max-width: 56ch; }
.actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }

/* Abschnitte */
.sec { padding: clamp(48px, 8vw, 88px) 0; border-top: 1px solid var(--line); }
h2 { font-weight: 700; font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.1; letter-spacing: -0.035em; text-wrap: balance; }
.sec p { margin-top: 16px; color: var(--muted); max-width: 60ch; }
.sec p.first { margin-top: 20px; }
.sec strong { color: var(--text); font-weight: 600; }
.note { font-size: 0.92rem; }

/* Vier Angaben */
.angaben { margin-top: 32px; display: grid; gap: 14px; counter-reset: a; }
.angaben li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 22px 22px 22px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); }
.num { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--amber); color: var(--amber-soft); display: inline-flex; align-items: center; justify-content: center; font-family: var(--mono); font-weight: 500; font-size: 0.95rem; flex: none; }
.angaben h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; padding-top: 4px; }
.angaben p { margin-top: 6px; font-size: 1rem; }

/* Kopier-Boxen */
.code { margin-top: 24px; border: 1px solid var(--line-strong); border-radius: var(--radius-field); background: var(--surface); overflow: hidden; }
.code-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.code-name { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.code pre { margin: 0; padding: 18px 18px 20px; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--mono); font-size: 0.9rem; line-height: 1.75; color: var(--text); tab-size: 2; }
.code .del { color: var(--err); }
.code .add { color: var(--ok); }
.legend { margin-top: 16px; display: grid; gap: 6px; font-size: 0.95rem; color: var(--muted); }
.legend li { display: flex; gap: 12px; align-items: baseline; }
.legend .num { width: 24px; height: 24px; font-size: 0.75rem; transform: translateY(2px); }

/* Ausfüll-Vorlage */
.builder { margin-top: 32px; display: grid; gap: 22px; border: 0; min-width: 0; padding: 0; }
.field { display: grid; gap: 6px; }
.field label { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }
.field .num { width: 28px; height: 28px; font-size: 0.8rem; }
.hint { font-size: 0.92rem; color: var(--muted); margin: 0; max-width: none; }
.field input, .field textarea { width: 100%; padding: 14px 16px; border-radius: var(--radius-field); background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--text); line-height: 1.5; }
.field textarea { min-height: 112px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #8a8279; }
.field input:focus, .field textarea:focus { border-color: var(--amber-soft); outline: none; box-shadow: 0 0 0 3px rgba(255, 138, 31, 0.22); }
.tools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.out-label { margin-top: 36px; font-weight: 600; font-size: 1.05rem; color: var(--text); }
.copy-ok { color: var(--ok); }

/* Hinweis-Kasten */
.callout { margin-top: 28px; display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius-field); background: rgba(255, 138, 31, 0.1); border: 1px solid rgba(255, 138, 31, 0.4); }
.callout b { color: var(--amber-soft); font-family: var(--mono); font-weight: 500; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; padding-top: 4px; }
.callout p { margin: 0; color: var(--text); max-width: none; }

/* Drei Wege */
.ways { margin-top: 24px; display: grid; gap: 12px; }
.ways li { padding: 18px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); color: var(--muted); }
.ways li strong { display: block; margin-bottom: 2px; font-size: 1.05rem; }

/* Abschluss */
.closing { padding: clamp(48px, 8vw, 80px) 0 clamp(64px, 10vw, 112px); border-top: 1px solid var(--line); }
.closing p { font-size: 1.15rem; color: var(--text); }
.closing a { border-bottom: 1px solid var(--amber); font-weight: 600; }

/* Footer */
.footer { position: relative; border-top: 1px solid var(--line); padding: 56px 0 0; overflow: hidden; }
.footer-grid { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; }
.footer-brand p { margin-top: 10px; color: var(--muted); max-width: 34ch; font-size: 0.98rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.footer-bottom { margin-top: 36px; padding-bottom: 20px; color: var(--muted); font-size: 0.92rem; }
.watermark { font-weight: 700; font-size: clamp(4rem, 20vw, 14rem); letter-spacing: -0.02em; line-height: 0.82; text-align: center; white-space: nowrap; user-select: none; pointer-events: none;
  color: rgba(255, 138, 31, 0.1); margin-top: 12px; margin-bottom: -0.1em; }

/* Rechtliche Seiten */
.legal { padding: calc(var(--nav-h) + 64px) 0 112px; }
.legal .narrow { max-width: 760px; margin: 0 auto; padding: 0 var(--pad); }
.legal h1 { font-size: clamp(1.7rem, 7.2vw, 3.2rem); margin-bottom: 36px; overflow-wrap: anywhere; }
.legal h2 { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.02em; margin: 36px 0 12px; }
.legal p, .legal li { color: var(--muted); margin-bottom: 12px; }
.legal ul { list-style: disc; padding-left: 22px; margin-bottom: 12px; }
.legal a { color: var(--text); border-bottom: 1px solid var(--amber); }

@media (max-width: 520px) {
  .angaben li { grid-template-columns: 1fr; gap: 10px; }
  .callout { flex-direction: column; gap: 6px; }
  .btn { width: 100%; }
  .btn-sm { width: auto; }
  .tools .btn { width: auto; flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--ground); }
}
