/* KI-Graveur – Website
   Keine externen Schriften, keine CDNs, keine Tracker. */

:root {
  --bg: #0a0e13;
  --bg-soft: #0e141b;
  --panel: #121a23;
  --panel-2: #17212c;
  --border: #24303d;
  --border-soft: #1b2530;
  --text: #e9eff6;
  --muted: #93a4b5;
  --dim: #6b7c8e;
  --accent: #ff9d2e;
  --accent-2: #ffc46b;
  --accent-ink: #1a1208;
  --cyan: #4cc9f0;
  --green: #46d39a;
  --red: #ff6b6b;
  --purple: #b58cff;
  --shadow: 0 24px 70px rgba(0, 0, 0, .45);
  --shadow-sm: 0 10px 30px rgba(0, 0, 0, .28);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1200px;
  --header-h: 72px;
  --header-bg: rgba(10, 14, 19, .86);
  --mono: "Cascadia Code", "JetBrains Mono", "DejaVu Sans Mono", Consolas, monospace;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

[data-theme="light"] {
  --bg: #f5f7fb;
  --bg-soft: #eef2f7;
  --panel: #ffffff;
  --panel-2: #f8fafc;
  --border: #dbe3ec;
  --border-soft: #e8eef5;
  --text: #16202b;
  --muted: #5b6b7c;
  --dim: #7b8a99;
  --accent: #d97706;
  --accent-2: #f59e0b;
  --accent-ink: #ffffff;
  --cyan: #0284c7;
  --green: #059669;
  --red: #dc2626;
  --purple: #7c3aed;
  --shadow: 0 24px 60px rgba(15, 23, 42, .12);
  --shadow-sm: 0 10px 30px rgba(15, 23, 42, .08);
  --header-bg: rgba(245, 247, 251, .9);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: var(--accent-ink); }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.025em; }
code {
  font-family: var(--mono);
  font-size: .88em;
  background: rgba(127, 145, 164, .14);
  border: 1px solid var(--border-soft);
  padding: .08em .38em;
  border-radius: 5px;
  white-space: nowrap;
}

.container {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

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

.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

/* ---------- Kopfzeile ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border-soft);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}

.brand img { border-radius: 10px; }

.brand-text {
  display: flex;
  flex-direction: column;
  font-weight: 750;
  font-size: 19px;
  letter-spacing: -.03em;
  line-height: 1.1;
}
.brand-text small {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav a {
  padding: 8px 11px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 550;
  color: var(--muted);
  transition: color .18s, background .18s;
}
.nav a:hover { color: var(--text); background: rgba(127, 145, 164, .1); }
.nav a.is-active { color: var(--text); background: rgba(127, 145, 164, .13); }
.nav .nav-donate { color: var(--accent); }
.nav .nav-donate.is-active { background: rgba(242, 158, 76, .16); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin-left: auto;
}

.icon-button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 10px;
  cursor: pointer;
  color: var(--muted);
  transition: color .18s, border-color .18s, background .18s;
}
.icon-button:hover { color: var(--text); border-color: var(--dim); }
.icon-sun { display: block; }
.icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 10px;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  margin: 4px 0;
  transition: transform .2s, opacity .2s;
}

/* ---------- Schaltflächen ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 21px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s, background .18s, border-color .18s, color .18s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 18px; height: 18px; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: var(--accent-ink);
  box-shadow: 0 8px 24px rgba(255, 157, 46, .2);
}
.btn-primary:hover { box-shadow: 0 12px 30px rgba(255, 157, 46, .3); }

.btn-ghost {
  background: var(--panel);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--dim); background: var(--panel-2); }

.btn-small { padding: 9px 14px; font-size: 13.5px; border-radius: 9px; }

.text-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(255, 157, 46, .35);
  text-underline-offset: 3px;
}
.text-link:hover { text-decoration-color: currentColor; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-soft);
  background:
    radial-gradient(900px 520px at 82% 6%, rgba(255, 157, 46, .13), transparent 62%),
    radial-gradient(700px 420px at 4% 40%, rgba(76, 201, 240, .09), transparent 62%),
    linear-gradient(180deg, var(--bg), var(--bg-soft));
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(127, 145, 164, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 145, 164, .07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 54px;
  align-items: center;
  padding: 76px 0 64px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  padding: 6px 12px;
  border: 1px solid var(--border);
  background: rgba(127, 145, 164, .08);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 22px;
}
.dot, .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(70, 211, 154, .12);
  flex: 0 0 auto;
}

.hero h1 {
  font-size: clamp(46px, 6.4vw, 82px);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: .97;
}
.grad {
  background: linear-gradient(100deg, var(--accent-2), var(--accent) 55%, #ff7a00);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin-top: 24px;
  max-width: 57ch;
  font-size: 17.5px;
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 30px;
  font-size: 13px;
  color: var(--muted);
}
.platforms li { display: inline-flex; align-items: center; gap: 7px; }
.platforms .icon { width: 16px; height: 16px; color: var(--dim); }

.hero-visual { position: relative; min-width: 0; }

.shot-frame {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.shot-frame img { width: 100%; height: auto; }
.hero-shot { transform: perspective(1600px) rotateY(-2.5deg) rotateX(1deg); }
.hero-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
  pointer-events: none;
}

.float-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  font-size: 11.5px;
  color: var(--muted);
  animation: float 7s ease-in-out infinite;
}
.float-card strong { font-size: 15px; color: var(--text); letter-spacing: -.02em; }
.float-kicker {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}
.float-card-a { top: 8%; right: -18px; }
.float-card-b { bottom: 9%; left: -24px; animation-delay: -3.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ---------- Kennzahlen ---------- */

.stats {
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 28px 0;
}
.stats-grid div { display: flex; flex-direction: column; gap: 2px; }
.stats-grid strong {
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--accent);
}
.stats-grid span { font-size: 12.5px; color: var(--muted); }

/* ---------- Abschnitte ---------- */

.section { padding: 92px 0; }
.section-alt {
  background: var(--bg-soft);
  border-block: 1px solid var(--border-soft);
}

.section-head { max-width: 800px; margin-bottom: 44px; }
.eyebrow {
  font-size: 11.5px;
  font-weight: 750;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-head h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 780;
}
.section-lead {
  margin-top: 16px;
  max-width: 72ch;
  font-size: 16.5px;
  color: var(--muted);
}
.small { font-size: 13px; }
.muted { color: var(--muted); }

/* ---------- Karten ---------- */

.card {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .22s, border-color .22s, box-shadow .22s;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.feature { padding: 24px; }
.feature:hover, .download-card:hover, .doc:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  box-shadow: var(--shadow-sm);
}
.feature-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255, 157, 46, .1);
  border: 1px solid rgba(255, 157, 46, .18);
  color: var(--accent);
  margin-bottom: 18px;
}
.feature-icon .icon { width: 23px; height: 23px; }
.feature h3 { font-size: 17.5px; margin-bottom: 8px; }
.feature p { font-size: 14px; color: var(--muted); }

/* ---------- Galerie ---------- */

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.shot {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
}
.shot-wide { grid-column: 1 / -1; }
.shot-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  overflow: hidden;
}
.shot-open img {
  width: 100%;
  height: auto;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.shot-open:hover img { transform: scale(1.015); }
.shot figcaption {
  display: flex;
  align-items: baseline;
  gap: 8px 12px;
  flex-wrap: wrap;
  padding: 15px 18px;
  border-top: 1px solid var(--border-soft);
  font-size: 13px;
  color: var(--muted);
}
.shot figcaption strong { color: var(--text); font-size: 14px; }
.shot figcaption .tag { margin-left: auto; }

.tag {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(127, 145, 164, .08);
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: .04em;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- Ablauf ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: 22px;
  border-top: 2px solid var(--border);
}
.step::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 157, 46, .14);
}
.step-no {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .08em;
}
.step h3 { font-size: 20px; margin: 6px 0 8px; }
.step p { font-size: 14px; color: var(--muted); }

/* ---------- Dokumente ---------- */

.doc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.doc { overflow: hidden; }
.doc img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center top;
  border-bottom: 1px solid var(--border-soft);
}
.doc-body { padding: 18px 20px 22px; }
.doc-body .tag { margin-bottom: 8px; }
.doc-body h3 { font-size: 18px; margin-bottom: 6px; }
.doc-body p { font-size: 13.5px; color: var(--muted); }

/* ---------- Web ---------- */

.web-grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 56px;
  align-items: center;
}
.web-copy h2 { font-size: clamp(30px, 4vw, 44px); }
.check-list { display: grid; gap: 9px; margin-top: 22px; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--muted);
}
.check-list .icon { width: 18px; height: 18px; color: var(--green); margin-top: 2px; }
.check-list.compact { gap: 6px; margin-top: 12px; }
.check-list.compact li { font-size: 13px; }

.terminal-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #0a0f14;
  box-shadow: var(--shadow);
  color: #dbe7f2;
}
.terminal-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid #1c2732;
  background: #101821;
  font-size: 12px;
  color: #93a4b5;
}
.terminal-dots { display: flex; gap: 5px; }
.terminal-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff6b6b;
}
.terminal-dots i:nth-child(2) { background: #ffc46b; }
.terminal-dots i:nth-child(3) { background: #46d39a; }
.terminal-head .copy-button { margin-left: auto; }

.copy-button {
  padding: 4px 9px;
  border: 1px solid #2a3744;
  border-radius: 6px;
  background: #17212c;
  color: #b9c9d8;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.copy-button:hover { border-color: #465a6e; color: #fff; }
.copy-button.inline { margin-left: 6px; }

.terminal-card pre {
  margin: 0;
  padding: 20px 18px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.75;
  tab-size: 2;
}
.terminal-card code {
  background: none;
  border: 0;
  padding: 0;
  font-size: inherit;
  white-space: pre;
}
.c-comment { color: #61748a; }
.c-prompt { color: #46d39a; }
.c-accent { color: #ffb04d; font-weight: 700; }
.terminal-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-top: 1px solid #1c2732;
  font-size: 11.5px;
  color: #93a4b5;
}

/* ---------- Tabelle ---------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
}
.req-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 680px;
}
.req-table th {
  text-align: left;
  padding: 14px 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dim);
  background: var(--panel-2);
  border-bottom: 1px solid var(--border);
}
.req-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--muted);
  vertical-align: top;
}
.req-table td strong { color: var(--text); }
.req-table tr:last-child td { border-bottom: 0; }
.req-table tbody tr:hover td { background: rgba(127, 145, 164, .04); }

/* ---------- Download ---------- */

.download-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}
.download-head > div:first-child { max-width: 780px; }
.download-note {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.download-card { padding: 24px; display: flex; flex-direction: column; }
.download-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(76, 201, 240, .09);
  border: 1px solid rgba(76, 201, 240, .18);
  color: var(--cyan);
  margin-bottom: 14px;
}
.download-card h3 { font-size: 17px; }
.download-meta { margin-top: 4px; font-size: 11.5px; color: var(--dim); }
.filename {
  display: block;
  margin: 13px 0;
  padding: 8px 10px;
  border: 1px dashed var(--border);
  border-radius: 7px;
  background: rgba(127, 145, 164, .06);
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  overflow-wrap: anywhere;
  white-space: normal;
}
.download-card > p { font-size: 13px; color: var(--muted); }
.download-actions {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: auto;
  padding-top: 18px;
}
.download-actions .btn { width: 100%; }
.file-state {
  font-size: 11px;
  color: var(--dim);
  text-align: center;
}
.file-state.is-ready { color: var(--green); }
.file-state.is-missing { color: var(--red); }
.btn.is-disabled {
  opacity: .5;
  filter: grayscale(.4);
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none;
}

.download-foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
  font-size: 12.5px;
  color: var(--muted);
}
.download-foot p { max-width: 78ch; }
.download-foot .file-state { display: inline; text-align: left; }

/* ---------- Kontakt ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.contact-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.contact-card h3 { font-size: 18px; margin-bottom: 8px; }
.contact-card p { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.contact-card .btn { margin-top: auto; }

.contact-note {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 32px;
  margin-top: 22px;
  padding: 28px 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    radial-gradient(600px 240px at 100% 0%, rgba(255, 157, 46, .07), transparent 70%),
    var(--panel);
}
.contact-note h3 { font-size: 16px; margin-bottom: 8px; }
.contact-note p { font-size: 13.5px; color: var(--muted); }
.contact-note strong { color: var(--text); }
.contact-mail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 14px;
  color: var(--muted);
}
.contact-mail a {
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Kontaktformular ---------- */

.feedback-panel {
  margin-top: 22px;
  padding: 28px 30px 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    radial-gradient(620px 260px at 0% 0%, rgba(76, 201, 240, .07), transparent 70%),
    var(--panel);
  box-shadow: var(--shadow-sm);
}
.feedback-head h3 { font-size: 19px; margin-bottom: 6px; }
.feedback-head p { font-size: 13.5px; color: var(--muted); max-width: 76ch; }

.feedback-form {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px 18px;
  margin-top: 22px;
}
.field {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.field-third { grid-column: span 2; }
.field-wide { grid-column: 1 / -1; }
.field label {
  font-size: 13px;
  font-weight: 650;
  color: var(--text);
}
.field .optional { color: var(--muted); font-weight: 400; }
.required-mark { color: var(--accent); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  line-height: 1.45;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--dim); }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--dim); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 157, 46, .16);
}
.field-hint { font-size: 12.5px; line-height: 1.5; color: var(--muted); }

.check-field {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
}
.check-field input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: var(--accent);
}
.check-field label {
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--muted);
}
.check-field a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.feedback-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}
.feedback-status {
  font-size: 13.5px;
  color: var(--muted);
  min-height: 1.4em;
}
.feedback-status.is-success { color: var(--green); }
.feedback-status.is-error { color: var(--red); }
.feedback-fallback {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  background: var(--bg);
  font-size: 13.5px;
  color: var(--muted);
}
.feedback-fallback a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 700px) {
  .feedback-panel { padding: 22px; }
  .feedback-form { grid-template-columns: 1fr; }
  .field, .field-third { grid-column: 1 / -1; }
  .feedback-actions .btn { width: 100%; }
}

/* ---------- Spenden ---------- */

.donate-panel {
  display: grid;
  grid-template-columns: 1.18fr .82fr;
  gap: 42px;
  align-items: center;
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background:
    radial-gradient(700px 320px at 8% 0%, rgba(255, 157, 46, .12), transparent 65%),
    radial-gradient(500px 260px at 100% 100%, rgba(76, 201, 240, .08), transparent 70%),
    linear-gradient(160deg, var(--panel), var(--panel-2));
  box-shadow: var(--shadow-sm);
}
.donate-copy h2 { font-size: clamp(28px, 3.4vw, 40px); }
.donate-copy .section-lead { max-width: 60ch; }

.donate-card {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.paypal-mark {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 7px;
  background: #ffc439;
  color: #003087;
  font-size: 17px;
  font-weight: 850;
  font-style: italic;
  letter-spacing: -.04em;
  margin-bottom: 12px;
}
.donate-to { font-size: 13px; color: var(--muted); }
.donate-to strong { color: var(--text); }
.amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin: 18px 0 14px;
}
.amount {
  padding: 8px 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  transition: border-color .18s, background .18s, color .18s;
}
.amount:hover { border-color: var(--dim); color: var(--text); }
.amount.is-active {
  border-color: var(--accent);
  background: rgba(255, 157, 46, .12);
  color: var(--accent);
}
.btn-paypal {
  width: 100%;
  background: #ffc439;
  color: #111820;
  box-shadow: 0 8px 22px rgba(255, 196, 57, .18);
}
.btn-paypal:hover { background: #f5b52c; box-shadow: 0 12px 28px rgba(255, 196, 57, .26); }
.donate-note { margin-top: 12px; font-size: 10.5px; line-height: 1.5; color: var(--dim); }
.donate-card .text-link { margin-top: 10px; display: inline-block; }

/* ---------- Installation ---------- */

.accordion { display: grid; gap: 10px; }
.acc {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  overflow: hidden;
}
.acc summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::before {
  content: "+";
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--accent);
  font-size: 16px;
  line-height: 1;
  flex: 0 0 auto;
}
.acc[open] summary::before { content: "−"; }
.acc[open] summary { border-bottom: 1px solid var(--border-soft); }
.acc-body { padding: 18px 20px 22px; }
.acc-body p { font-size: 13.5px; color: var(--muted); margin-top: 12px; }
.acc-body pre {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--border-soft);
  border-radius: 9px;
  background: #0a0f14;
  color: #dbe7f2;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
}
.acc-body pre code { background: none; border: 0; padding: 0; font-size: inherit; white-space: pre; }

/* ---------- Fahrplan ---------- */

.roadmap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.roadmap-item {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 14px;
  padding: 15px 17px;
  border: 1px solid var(--border-soft);
  border-radius: 11px;
  background: var(--panel);
}
.roadmap-item.is-current {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  background: linear-gradient(90deg, rgba(255, 157, 46, .07), var(--panel) 60%);
}
.version {
  align-self: start;
  padding: 4px 7px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel-2);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-align: center;
}
.roadmap-item h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 14.5px;
  margin-bottom: 3px;
}
.roadmap-item p { font-size: 12.5px; color: var(--muted); }

/* ---------- FAQ ---------- */

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.faq {
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--panel);
}
.faq summary {
  font-size: 14.5px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-weight: 700;
}
.faq[open] summary::after { content: "−"; }
.faq p { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.faq a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Fußzeile ---------- */

.site-footer {
  border-top: 1px solid var(--border-soft);
  background: var(--bg);
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
}
.footer-brand p { margin-top: 14px; max-width: 40ch; font-size: 13px; color: var(--muted); }
.footer-version { font-family: var(--mono); font-size: 11px !important; color: var(--dim) !important; }
.site-footer h3 {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 12px;
}
.site-footer ul { display: grid; gap: 7px; }
.site-footer ul a { font-size: 13px; color: var(--muted); }
.site-footer ul a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--border-soft);
  font-size: 11.5px;
  color: var(--dim);
}

/* ---------- Lightbox ---------- */

.lightbox {
  max-width: min(1200px, 94vw);
  max-height: 92vh;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--shadow);
}
.lightbox::backdrop {
  background: rgba(2, 6, 10, .82);
  backdrop-filter: blur(6px);
}
.lightbox img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  margin-inline: auto;
}
.lightbox p {
  padding: 10px 8px 4px;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}
.lightbox-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--panel);
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.lightbox-close:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Einfache Textseiten (Impressum, Datenschutz, 404) ---------- */

.page-head {
  padding: 72px 0 26px;
  border-bottom: 1px solid var(--border);
}
.page-head .eyebrow { margin-bottom: 10px; }
.page-head h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4.4vw, 44px);
  letter-spacing: -.02em;
}
.page-head p { max-width: 720px; margin: 0; color: var(--muted); }

.prose {
  max-width: 820px;
  padding: 44px 0 24px;
}
.prose h2 {
  margin: 34px 0 12px;
  font-size: 21px;
  letter-spacing: -.01em;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 24px 0 8px; font-size: 16.5px; }
.prose p, .prose li { color: var(--muted); line-height: 1.68; }
.prose p { margin: 0 0 12px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--text); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose code {
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--panel);
  border: 1px solid var(--border);
  font-size: .92em;
  color: var(--text);
}
.prose .note {
  margin: 22px 0;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  background: var(--panel);
  color: var(--muted);
  font-size: 14px;
}
.prose .note strong { color: var(--text); }
.prose .back { margin-top: 30px; }

.page-404 {
  min-height: 52vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 90px 0;
}
.page-404 .code {
  font-size: clamp(64px, 12vw, 120px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-404 h1 { margin: 12px 0 10px; font-size: 26px; }
.page-404 p { max-width: 520px; margin: 0 auto 22px; color: var(--muted); }

/* ---------- Responsiv ---------- */

@media (max-width: 1120px) {
  .nav a { padding: 8px 8px; font-size: 13.5px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .doc-grid { grid-template-columns: repeat(2, 1fr); }
  .download-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 18px 24px; }
}

@media (max-width: 1040px) {
  :root { --header-h: 64px; }
  .container { width: min(var(--max), calc(100% - 36px)); }

  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 18px 16px;
    background: var(--panel);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 11px 12px; font-size: 15px; }
  .nav-toggle { display: block; }
  .header-actions .btn-small { display: none; }

  .hero-grid { grid-template-columns: 1fr; gap: 42px; padding: 54px 0 48px; }
  .hero-shot { transform: none; }
  .float-card-a { right: 8px; }
  .float-card-b { left: 8px; }
  .hero h1 { font-size: clamp(44px, 9vw, 68px); }

  .steps { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .web-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-note { grid-template-columns: 1fr; gap: 22px; }
  .donate-panel { grid-template-columns: 1fr; gap: 28px; padding: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .download-head { flex-direction: column; align-items: flex-start; }
  .download-note { white-space: normal; }
}

@media (max-width: 700px) {
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 30px; }
  .gallery { grid-template-columns: 1fr; }
  .shot-wide { grid-column: auto; }
  .download-grid, .doc-grid, .roadmap, .faq-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .platforms { gap: 7px 14px; }
  .float-card { display: none; }
  .download-foot { flex-direction: column; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .container { width: calc(100% - 28px); }
  .brand-text { font-size: 17px; }
  .brand-text small { font-size: 9px; }
  .brand img { width: 32px; height: 32px; }
  .hero h1 { font-size: 42px; }
  .lead { font-size: 16px; }
  .cta-row .btn { width: 100%; }
  .stats-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .amounts { grid-template-columns: repeat(2, 1fr); }
  .contact-note { padding: 22px; }
  .donate-panel { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
