/* ── RESET & VARIABLES ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --white: #ffffff;
  --off-white: #f5f7f5;
  --ink: #1a1e1a;
  --ink-mid: #374037;
  --ink-light: #637063;
  --ink-faint: #9eaa9e;
  --accent: #2d6a2d;
  --accent-hover: #225222;
  --accent-light: #eaf2ea;
  --accent-muted: #d4e8d4;
  --border: #dde6dd;
  --border-light: #edf3ed;
  --font: system-ui, -apple-system, 'Segoe UI', sans-serif;
  --max-w: 1060px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── TOPBAR ── */
.topbar {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  padding: 9px 40px;
}
.topbar__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.topbar__status { font-size: 12px; letter-spacing: 0.04em; }
.topbar__links { display: flex; gap: 20px; }
.topbar__links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.15s;
}
.topbar__links a:hover { color: #fff; }

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 40px;
  gap: 32px;
}

.nav-logo {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  max-width: 210px;
  flex-shrink: 0;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.nav-logo span {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-light);
  letter-spacing: 0.03em;
  margin-top: 1px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0;
  align-items: center;
  flex: 1;
}
.nav-links a {
  font-size: 14px;
  font-weight: 450;
  color: var(--ink-mid);
  text-decoration: none;
  padding: 0 14px;
  height: 64px;
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.nav-cta {
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
  background: var(--accent);
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 4px;
  white-space: nowrap;
  transition: background 0.15s;
  flex-shrink: 0;
}
.nav-cta:hover { background: var(--accent-hover); }

/* hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.2s;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 8px 0 16px;
  z-index: 99;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 15px;
  font-weight: 450;
  color: var(--ink-mid);
  text-decoration: none;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border-light);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a.active { color: var(--accent); font-weight: 500; }

/* ── PAGE HEADER ── */
.page-header {
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
  padding: 52px 40px 40px;
}
.page-header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.page-header h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.02em;
}

/* ── MAIN ── */
main {
  flex: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 52px 40px 72px;
  width: 100%;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  padding: 11px 24px;
  border-radius: 4px;
  transition: background 0.15s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-secondary {
  display: inline-block;
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  padding: 11px 24px;
  border-radius: 4px;
  border: 1px solid var(--border);
  transition: background 0.15s, border-color 0.15s;
}
.btn-secondary:hover { background: var(--off-white); border-color: var(--accent-muted); }

.btn-ghost {
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}
.btn-ghost:hover { color: var(--accent-hover); text-decoration: underline; }

/* ── TYPOGRAPHY ── */
.lead {
  font-size: 17px;
  color: var(--ink-mid);
  line-height: 1.75;
  max-width: 620px;
  margin-bottom: 40px;
}
.section-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 20px;
}
h2.block-title {
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  line-height: 1.25;
}

/* ── CARD GRID ── */
.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}
.card-grid-3 { grid-template-columns: 1fr 1fr 1fr; }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 24px;
}
.card .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--accent-light);
  color: var(--accent);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.card p {
  font-size: 14px;
  color: var(--ink-light);
  line-height: 1.65;
  margin-bottom: 20px;
}
.card code {
  font-size: 12px;
  background: var(--off-white);
  padding: 3px 8px;
  border-radius: 4px;
  word-break: break-all;
  font-family: ui-monospace, monospace;
  color: var(--ink-mid);
  border: 1px solid var(--border);
}

/* ── INFO TABLE (Kontakt) ── */
.info-table { width: 100%; border-collapse: collapse; }
.info-table tr { border-bottom: 1px solid var(--border-light); }
.info-table tr:last-child { border-bottom: none; }
.info-table td { padding: 14px 0; font-size: 14px; vertical-align: top; }
.info-table td:first-child {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-faint);
  width: 110px;
  padding-top: 16px;
}
.info-table td a { color: var(--accent); text-decoration: none; }
.info-table td a:hover { text-decoration: underline; }
.info-table td code {
  font-size: 12px;
  background: var(--off-white);
  padding: 2px 6px;
  border-radius: 3px;
  word-break: break-all;
  font-family: ui-monospace, monospace;
  border: 1px solid var(--border);
}

/* ── LAYOUTS ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.two-col-wide { display: grid; grid-template-columns: 3fr 2fr; gap: 48px; align-items: start; }

/* ── NOTE BOXES ── */
.note-box {
  background: var(--accent-light);
  border: 1px solid var(--accent-muted);
  border-radius: 6px;
  padding: 20px 22px;
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.7;
}
.note-box strong { font-weight: 600; color: var(--ink); }
.note-box a { color: var(--accent); text-decoration: none; }
.note-box a:hover { text-decoration: underline; }

.warn-box {
  background: #fffbf0;
  border: 1px solid #f0d070;
  border-radius: 6px;
  padding: 16px 20px;
  font-size: 14px;
  color: #5a4a00;
  line-height: 1.65;
  margin-top: 24px;
}
.warn-box strong { font-weight: 600; }

/* ── NOTFALL BAR ── */
.notfall-bar {
  background: #1a1e1a;
  color: rgba(255,255,255,0.6);
  padding: 9px 40px;
  font-size: 12px;
  text-align: center;
  letter-spacing: 0.02em;
}
.notfall-bar strong { color: #fff; }

/* ── FOOTER ── */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.65);
  padding: 48px 40px 0;
  margin-top: auto;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand h3 {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255,255,255,0.55);
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li { font-size: 14px; color: rgba(255,255,255,0.65); }
.footer-col ul a { color: rgba(255,255,255,0.65); text-decoration: none; transition: color 0.15s; }
.footer-col ul a:hover { color: #fff; }
.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 18px 0;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

/* ── PRIVACY NOTICE ── */
.privacy-notice[hidden] { display: none; }
.privacy-notice {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
}
.privacy-notice__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.48);
}
.privacy-notice__dialog {
  position: relative;
  width: min(680px, 100%);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.22);
  padding: 24px;
}
.privacy-notice__dialog h2 {
  color: var(--ink);
  font-size: 20px;
  margin-bottom: 10px;
}
.privacy-notice__dialog p {
  color: var(--ink-light);
  font-size: 14px;
  line-height: 1.7;
}
.privacy-notice__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.privacy-notice__actions .btn-ghost { margin: 0; }

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .topbar { padding: 9px 20px; }
  nav { padding: 0 20px; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .page-header { padding: 36px 20px 28px; }
  main { padding: 36px 20px 56px; }
  .two-col, .two-col-wide { grid-template-columns: 1fr; gap: 32px; }
  .card-grid, .card-grid-3 { grid-template-columns: 1fr; gap: 12px; }
  footer { padding: 36px 20px 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .notfall-bar { padding: 9px 20px; }
}
@media (max-width: 480px) {
  .topbar__status { display: none; }
}
