/* ——— Nordwerk Ops.
   Aufbau, Maße und Proportionen stammen 1:1 aus der Fassung des Auftraggebers.
   Geändert wurde das Farbschema: warmes Graphit statt Marineblau, Bernstein als
   einzige Signalfarbe statt Cyan + Grün.
   Keine fremden Requests: keine Webfonts, kein CDN, kein Tracker. ——— */

:root {
  --bg: #111113;
  --surface: #191a1d;
  --surface-2: #222327;
  --text: #f2f0ec;
  --muted: #9d9a94;
  --muted-2: #7d7a75;
  --accent: #e9a23c;
  --accent-soft: #f3bd72;
  --accent-dim: #b4833c;
  --accent-ink: #191104;
  --border: rgba(255, 255, 255, 0.09);
  --border-2: rgba(255, 255, 255, 0.15);
  --wrap: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 60;
  background: var(--accent); color: var(--accent-ink);
  padding: 12px 18px; border-radius: 0 0 10px 0; font-weight: 600;
}
.skip:focus { left: 0; }

.container { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 760px; }

/* ---------- Kopf ---------- */
header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(17, 17, 19, 0.86);
  border-bottom: 1px solid var(--border);
}

.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }

.brand { font-weight: 700; font-size: 1.15rem; letter-spacing: 0.4px; display: flex; align-items: center; gap: 10px; }
.brand-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); flex: none; }

.nav-links { display: flex; align-items: center; gap: 28px; color: var(--muted); font-size: 0.95rem; }
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--text); font-weight: 600; }

.burger {
  display: none; background: none; border: 1px solid var(--border-2);
  color: var(--text); border-radius: 10px; padding: 9px 11px; cursor: pointer;
}
.burger span { display: block; width: 19px; height: 2px; background: currentColor; border-radius: 2px; }
.burger span + span { margin-top: 5px; }

/* ---------- Knöpfe ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 0.95rem;
  transition: transform 0.15s ease, opacity 0.15s ease; cursor: pointer;
  border: none; text-align: center;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn:hover { transform: translateY(-1px); opacity: 0.95; }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

/* ---------- Hero ---------- */
.hero { padding: 92px 0 72px; background: radial-gradient(circle at 80% 15%, rgba(233, 162, 60, 0.13), transparent 45%); }
.hero.compact { padding: 66px 0 10px; }

.badge {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  background: rgba(233, 162, 60, 0.12); color: var(--accent);
  font-size: 0.82rem; font-weight: 600; margin-bottom: 20px;
}

h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); line-height: 1.12; letter-spacing: -0.02em; max-width: 820px; margin-bottom: 20px; }
.hero p { color: var(--muted); font-size: 1.12rem; max-width: 680px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 52px; }
.hero.compact p { margin-bottom: 0; }

/* ---------- Kennzahlen ---------- */
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.metric-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.metric-value { font-size: 1.6rem; font-weight: 700; color: var(--text); }
.metric-label { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }

/* ---------- Abschnitte ---------- */
section { padding: 76px 0; }
section.tight { padding: 48px 0; }
.band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.band-head { font-size: 1.25rem; margin-bottom: 26px; }

.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); line-height: 1.2; margin-bottom: 12px; }
.section-head p { color: var(--muted); }

/* ---------- Karten ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 22px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 26px; }
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 16px; }
.card p:last-child { margin-bottom: 0; }
.card ul { list-style: none; color: var(--text); font-size: 0.9rem; display: grid; gap: 8px; }
.card ul li::before { content: "→ "; color: var(--accent-dim); font-weight: 700; }

/* ---------- Ablauf ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px; }
.step-num { font-size: 0.85rem; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.93rem; }

/* ---------- Abschlussbox ---------- */
.cta-box {
  background: linear-gradient(135deg, rgba(233, 162, 60, 0.15), rgba(180, 131, 60, 0.07));
  border: 1px solid var(--border-2); border-radius: 20px; padding: 44px 32px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.cta-box h2 { font-size: 1.8rem; margin-bottom: 8px; }
.cta-box p { color: var(--muted); max-width: 560px; }

/* ---------- Fließtext ---------- */
.prose { font-size: 1.02rem; }
.prose h2 { font-size: 1.5rem; line-height: 1.25; margin: 2.1em 0 0.6em; letter-spacing: -0.01em; }
.prose h3 { font-size: 1.12rem; margin: 1.7em 0 0.5em; }
.prose p { color: #ddd9d2; margin-bottom: 1.1em; }
.prose ul, .prose ol { margin: 0 0 1.2em 1.25em; color: #ddd9d2; display: grid; gap: 0.5em; }
.prose li::marker { color: var(--accent-dim); }
.prose strong { color: var(--text); }
.prose a { color: var(--accent-soft); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose > :first-child { margin-top: 0; }

.lede { color: var(--muted); font-size: 1.12rem; margin-bottom: 8px; }
.rule { border: 0; border-top: 1px solid var(--border); margin: 34px 0; }

blockquote {
  border-left: 3px solid var(--accent-dim); padding: 4px 0 4px 20px;
  margin: 1.5em 0; color: var(--muted); font-style: normal;
}

.note {
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0; padding: 18px 20px; margin: 1.6em 0;
}
.note p { margin-bottom: 0.6em; }
.note p:last-child { margin-bottom: 0; }
.note strong { color: var(--accent-soft); }

/* ---------- Tabellen ---------- */
.table-wrap { overflow-x: auto; margin: 1.6em 0; border: 1px solid var(--border); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 0.93rem; min-width: 480px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { background: var(--surface-2); color: var(--text); font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
td { color: #ddd9d2; }
td strong, th strong { color: var(--text); }

/* ---------- Fragen und Antworten ---------- */
.faq { display: grid; gap: 10px; }
details.qa { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0 20px; }
details.qa summary {
  cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; flex: none; }
details.qa[open] summary::after { content: "–"; }
details.qa .qa-body { padding: 0 0 18px; color: var(--muted); font-size: 0.96rem; }
details.qa .qa-body p + p { margin-top: 0.8em; }

/* ---------- Beiträge ---------- */
.crumbs { font-size: 0.86rem; color: var(--muted-2); margin-bottom: 22px; }
.crumbs a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.crumbs a:hover { color: var(--text); }

.post { padding: 56px 0 72px; }
.post h1 { font-size: clamp(1.85rem, 3.6vw, 2.6rem); margin-bottom: 14px; }
.post-kicker-big { color: var(--accent); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 14px; }
.post-meta-big { color: var(--muted-2); font-size: 0.88rem; margin-bottom: 20px; }

.post-end { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 26px; }
.post-end h2 { font-size: 1.2rem; margin-bottom: 10px; }
.post-end p { color: var(--muted); margin-bottom: 16px; }
.post-end p:last-child { margin-bottom: 0; }

.post-list { list-style: none; display: grid; gap: 14px; }
.post-list-compact { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.post-item a {
  display: grid; gap: 7px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 22px 24px; height: 100%;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.post-item a:hover { border-color: var(--border-2); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .post-item a:hover { transform: none; } }
.post-kicker { color: var(--accent); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.post-title { font-size: 1.14rem; font-weight: 700; line-height: 1.3; }
.post-sum { color: var(--muted); font-size: 0.94rem; }
.post-meta { color: var(--muted-2); font-size: 0.82rem; }

/* ---------- Formular ---------- */
.form { display: grid; gap: 16px; max-width: 580px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.9rem; font-weight: 600; }
.field input, .field textarea, .field select {
  font: inherit; font-size: 0.97rem; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-2);
  border-radius: 10px; padding: 12px 14px; width: 100%;
}
.field textarea { min-height: 128px; resize: vertical; }
.field .hint { font-size: 0.82rem; color: var(--muted-2); }
.hp { position: absolute; left: -9999px; }
.form-note { color: var(--muted); font-size: 0.9rem; }

/* ---------- Fuß ---------- */
footer { border-top: 1px solid var(--border); padding: 32px 0; color: var(--muted); font-size: 0.88rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.footer-inner a { text-decoration: underline; text-underline-offset: 3px; }
.footer-inner a:hover { color: var(--text); }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 26px; margin-bottom: 26px; }
.footer-cols h2 { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 11px; }
.footer-cols ul { list-style: none; display: grid; gap: 7px; }
.footer-cols a { text-decoration: none; }
.footer-cols a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Umbruch ---------- */
@media (max-width: 860px) {
  .burger { display: block; }
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; display: none;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #0d0d0f; border-bottom: 1px solid var(--border);
    padding: 10px 24px 22px; max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; border-top: 1px solid var(--border); font-size: 1rem; }
  .nav-links .btn { margin-top: 16px; border-top: 0; }
  .hero { padding: 64px 0 56px; }
  section { padding: 56px 0; }
  .cta-box { padding: 32px 24px; }
  .cta-box .btn { width: 100%; }
}

@media print {
  header, .burger, .cta-box, .post-end, .band { display: none !important; }
  body { background: #fff; color: #000; }
  .prose p, .prose ul, .prose ol, td { color: #000; }
  a { text-decoration: underline; }
}
