/* Zündkreis – Website-Stylesheet */
:root {
  --bg: #0D0D0F;
  --surface: #16161A;
  --surface-2: #1E1E24;
  --line: #2A2A31;
  --text: #F2F2F2;
  --muted: #A0A0A8;
  --accent: #FF6A00;
  --accent-hover: #FF8533;
  --danger: #FF5C5C;
  --ok: #4CD97B;
  --radius: 14px;
  --gutter: 16px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }

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

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

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

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #000; padding: 8px 14px; z-index: 10; font-weight: 700;
}
.skip:focus { left: var(--gutter); top: 8px; color: #000; }

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

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(13, 13, 15, .92);
  position: sticky; top: 0; z-index: 5;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none;
  font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em;
}
.brand:hover { color: var(--text); }
.brand img { width: 36px; height: 36px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav a {
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: 8px 10px; border-radius: 8px;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--surface); }

/* Hero */
.hero { padding: 56px 0 40px; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -180px; top: -120px;
  width: 520px; height: 520px; border-radius: 50%;
  border: 36px solid var(--accent); opacity: .08;
  pointer-events: none;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent); font-weight: 800; text-transform: uppercase;
  letter-spacing: .14em; font-size: .8rem; margin: 0 0 16px;
}
.eyebrow::before { content: ""; width: 24px; height: 3px; background: var(--accent); border-radius: 2px; }
.hero h1 {
  font-size: clamp(2.2rem, 8vw, 4.6rem);
  line-height: 1.04; letter-spacing: -.035em; font-weight: 900;
  margin: 0 0 20px; max-width: 16ch;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { color: var(--muted); font-size: clamp(1.1rem, 2.6vw, 1.35rem); max-width: 46ch; margin: 0 0 28px; }

.badge-beta {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: 14px 18px; margin: 0;
}
.badge-beta .muted { color: var(--muted); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; box-shadow: 0 0 0 4px rgba(255, 106, 0, .2); }

.chips { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px;
  color: var(--muted); font-weight: 600; font-size: .92rem;
}

/* Features */
.section { padding: 40px 0; }
.section h2 {
  font-size: clamp(1.6rem, 4.5vw, 2.4rem); letter-spacing: -.025em; line-height: 1.15;
  margin: 0 0 24px; font-weight: 850;
}
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; position: relative; overflow: hidden;
}
.card::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 56px; background: var(--accent); }
.card h3 { margin: 14px 0 8px; font-size: 1.3rem; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); }
.card .icon { width: 40px; height: 40px; color: var(--accent); }

.cta-band {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; display: flex; flex-direction: column; gap: 16px;
}
.cta-band h2 { margin: 0; }
.cta-band p { margin: 0; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #0D0D0F; border: 0; border-radius: 10px;
  font: inherit; font-weight: 800; padding: 13px 22px; cursor: pointer; text-decoration: none;
  min-height: 48px;
}
.btn:hover { background: var(--accent-hover); color: #0D0D0F; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }

/* Prose / Rechtsseiten */
.page-head { padding: 44px 0 24px; max-width: 70ch; }
.page-head h1 {
  font-size: clamp(2rem, 6vw, 3.2rem); letter-spacing: -.03em; line-height: 1.08;
  margin: 0 0 10px; font-weight: 900;
}
.page-head p { color: var(--muted); margin: 0; }

.prose { max-width: 70ch; padding-bottom: 56px; }
.prose h2 {
  font-size: 1.45rem; letter-spacing: -.015em; line-height: 1.25;
  margin: 2.4em 0 .6em; padding-top: .4em; border-top: 1px solid var(--line);
  scroll-margin-top: 80px;
}
.prose h2:first-child { border-top: 0; margin-top: 1.2em; }
.prose h3 { font-size: 1.12rem; margin: 1.8em 0 .4em; scroll-margin-top: 80px; }
.prose p, .prose ul, .prose ol, .prose address { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .3em 0; }
.prose li::marker { color: var(--accent); }
.prose address { font-style: normal; }
.prose strong { color: #fff; }
.prose .note {
  background: var(--surface); border-left: 4px solid var(--accent);
  border-radius: 0 10px 10px 0; padding: 14px 18px; color: var(--text);
}
.prose a { word-break: break-word; }

.toc {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; margin: 24px 0 8px;
}
.toc h2 { margin: 0 0 10px !important; padding: 0 !important; border: 0 !important; font-size: 1.05rem !important; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.toc ol { margin: 0; padding-left: 1.4em; columns: 1; }
.toc li { margin: 0 0 .5em; break-inside: avoid; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--accent); text-decoration: underline; }

.rules { list-style: none; padding: 0; margin: 24px 0; counter-reset: rule; }
.rules > li {
  counter-increment: rule; position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 20px 18px 64px; margin: 0 0 12px;
}
.rules > li::before {
  content: counter(rule, decimal-leading-zero); position: absolute; left: 18px; top: 18px;
  font-weight: 900; color: var(--accent); font-size: 1.2rem; letter-spacing: -.02em;
}
.rules h2 { border: 0 !important; margin: 0 0 6px !important; padding: 0 !important; font-size: 1.2rem !important; }
.rules p { margin: 0; color: var(--muted); }

/* Formular */
.form { display: grid; gap: 18px; max-width: 640px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; }
.hint { color: var(--muted); font-size: .9rem; margin-top: 24px; }
.field .hint { color: var(--muted); font-size: .9rem; }
input[type="text"], input[type="email"], textarea {
  width: 100%; font: inherit; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; min-height: 48px;
}
textarea { min-height: 180px; resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 106, 0, .25); }
input:user-invalid, textarea:user-invalid { border-color: var(--danger); }
.check { display: flex; gap: 12px; align-items: flex-start; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.status { border-radius: 10px; padding: 14px 16px; font-weight: 600; }
.status:empty { display: none; }
.status.is-ok { background: rgba(76, 217, 123, .12); border: 1px solid rgba(76, 217, 123, .45); color: #B9F5CC; }
.status.is-error { background: rgba(255, 92, 92, .12); border: 1px solid rgba(255, 92, 92, .45); color: #FFC9C9; }
.req { color: var(--accent); }

/* 404 */
.notfound { padding: 72px 0; text-align: left; }
.notfound .big { font-size: clamp(5rem, 22vw, 10rem); font-weight: 900; line-height: 1; letter-spacing: -.05em; color: var(--accent); margin: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--muted); font-size: .95rem; margin-top: 24px; }
.site-footer .wrap { display: flex; flex-direction: column; gap: 16px; }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.site-footer p { margin: 0; }

@media (min-width: 640px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .cta-band { flex-direction: row; align-items: center; justify-content: space-between; padding: 32px; }
  .toc ol { columns: 2; column-gap: 32px; }
}
@media (min-width: 960px) {
  .hero { padding: 96px 0 64px; }
  .grid { grid-template-columns: repeat(4, 1fr); }
  .site-footer .wrap { flex-direction: row; justify-content: space-between; align-items: center; }
}
@media (max-width: 420px) {
  .nav a.nav-optional { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
