/* Puro — geteiltes Stylesheet für öffentliche Marketing-/Auth-/Rechtstext-Seiten.
   Bewusst NICHT für dashboard.html, editor.html, billing_success.html, emails/* verwendet. */

:root {
  --color-bg: oklch(22% 0.03 250);
  --color-surface: oklch(26% 0.035 250);
  --color-surface-2: oklch(29% 0.035 250);
  --color-text: oklch(94% 0.005 250);
  --color-text-muted: oklch(74% 0.02 250);
  --color-accent: oklch(78% 0.12 220);
  --color-accent-2: oklch(60% 0.1 220);
  --color-border: oklch(34% 0.03 250);
  --color-success: oklch(72% 0.13 155);
  --color-danger: oklch(68% 0.17 25);
  --color-tier-team: oklch(74% 0.1 165);
  --color-tier-kommune: oklch(76% 0.1 75);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --font-mono: 'Space Mono', monospace;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: #fff;
  margin: 0;
  line-height: 1.25;
}

a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.mono { font-family: var(--font-mono); }

/* ── Blueprint-Raster-Textur ──────────────────────────────────────── */
.blueprint-grid { position: relative; }

.blueprint-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(oklch(60% 0.08 220 / 0.5) 1px, transparent 1px),
    linear-gradient(90deg, oklch(60% 0.08 220 / 0.5) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.22;
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.blueprint-grid > * { position: relative; z-index: 1; }

/* ── Navigation ───────────────────────────────────────────────────── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 32px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
  flex-wrap: wrap;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  text-decoration: none;
}

.site-brand:hover { text-decoration: none; }
.site-brand svg { flex-shrink: 0; }

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.site-nav-links a {
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 500;
}

.site-nav-links a:hover { color: var(--color-accent); }

.site-nav-links a.nav-cta {
  color: var(--color-bg);
  background: var(--color-accent);
  padding: 9px 18px;
  border-radius: var(--radius);
  font-weight: 600;
}

.site-nav-links a.nav-cta:hover {
  text-decoration: none;
  background: var(--color-accent-2);
}

/* ── Footer ───────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: 32px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: auto;
}

.site-footer a { color: var(--color-text-muted); margin: 0 10px; }
.site-footer a:hover { color: var(--color-accent); }

.site-footer .copyright {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  opacity: 0.8;
}

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
}

.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--color-accent);
  color: var(--color-bg);
}
.btn-primary:hover { background: var(--color-accent-2); color: #fff; }

.btn-outline {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
}
.btn-outline:hover { border-color: var(--color-accent); color: var(--color-accent); }

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ── Cards (generische Basis, Seiten dürfen erweitern) ───────────── */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/* ── Responsive Grundregeln ──────────────────────────────────────── */
@media (max-width: 640px) {
  .site-header { padding: 14px 16px; }
  .site-nav-links { gap: 14px; }
}
