/* _base.css – Reset, Grundgeruest und Komponenten des Plattform-Themes
   (Sofort-Webseite). Alle Farben und Schriften laufen ueber CSS-Variablen:
   - css/palettes/<name>.css setzt die Farb-Variablen (--c-*)
   - css/fonts/<name>.css setzt die Schrift-Variablen (--f-*)
   - css/layouts/<name>.css veraendert die Grundstruktur (body.layout-*)
   So lassen sich Layout, Farbe und Schrift frei kombinieren. */

:root {
  /* Farben – werden von der Palette ueberschrieben (Defaults = "schiefer"). */
  --c-bg: #ffffff;
  --c-surface: #ffffff;
  --c-surface-2: #f1f5f9;
  --c-text: #334155;
  --c-heading: #0f172a;
  --c-muted: #64748b;
  --c-primary: #2563eb;
  --c-primary-strong: #1d4ed8;
  --c-on-primary: #ffffff;
  --c-accent: #0ea5e9;
  --c-border: #e2e8f0;
  --c-contrast-bg: #0f172a;
  --c-on-contrast: #e2e8f0;
  --c-contrast-heading: #ffffff;

  /* Schrift – wird vom Font-Set ueberschrieben. */
  --f-heading: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --f-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Struktur – einzelne Layouts justieren diese Werte nach. */
  --maxw: 70rem;
  --radius: 0.75rem;
  --radius-sm: 0.5rem;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .12);
  --section-y: 4.5rem;
  --hero-y: 5rem;
  --h1: 3rem;
  --h2: 2rem;
  --lead: 1.25rem;
  --letter-heading: -0.01em;
  --weight-heading: 700;
  --nav-weight: 500;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

h1, h2, h3, h4 {
  font-family: var(--f-heading);
  color: var(--c-heading);
  line-height: 1.12;
  letter-spacing: var(--letter-heading);
  font-weight: var(--weight-heading);
}
h1 { font-size: var(--h1); margin: 0 0 1rem; }
h2 { font-size: var(--h2); margin: 0 0 0.85rem; }
h3 { font-size: 1.3rem; margin: 0 0 0.5rem; }
p { margin: 0 0 1rem; }
img { max-width: 100%; height: auto; display: block; }

/* ── Kopfbereich ─────────────────────────────────────────────────────────── */
.site-header {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  position: relative;
  z-index: 5;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.15rem 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  font-family: var(--f-heading);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: var(--c-heading);
  margin-right: auto;
}
.brand:hover { text-decoration: none; }
.brand-logo { max-height: 2.75rem; width: auto; }

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: var(--c-text);
  font-weight: var(--nav-weight);
  font-size: 0.975rem;
}
.site-nav a:hover { color: var(--c-primary); text-decoration: none; }
.site-nav li.active a { color: var(--c-primary); }

.nav-cta {
  display: inline-block;
  background: var(--c-primary);
  color: var(--c-on-primary);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--c-primary-strong); text-decoration: none; }

/* ── Inhalt ──────────────────────────────────────────────────────────────── */
.site-main { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.site-main h1:first-child, .site-main h2:first-child { margin-top: 0; }
.site-main > .container > *:last-child { margin-bottom: 0; }

/* Hilfsklasse fuer randlose (full-bleed) Baender innerhalb des Containers. */
.bleed {
  margin-inline: calc(50% - 50vw);
  padding-inline: calc(50vw - 50%);
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero { padding: var(--hero-y) 0 calc(var(--hero-y) - 1rem); }
.hero-eyebrow {
  display: inline-block;
  font-family: var(--f-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: 1rem;
}
.hero h1 { font-size: var(--h1); max-width: 18ch; }
.hero .lead {
  font-size: var(--lead);
  color: var(--c-muted);
  max-width: 46ch;
  margin-bottom: 1.75rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }

.btn {
  display: inline-block;
  background: var(--c-primary);
  color: var(--c-on-primary);
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-family: var(--f-heading);
  border: 1px solid transparent;
}
.btn:hover { background: var(--c-primary-strong); text-decoration: none; }
.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--c-heading);
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-family: var(--f-heading);
  border: 1px solid var(--c-border);
}
.btn-ghost:hover { border-color: var(--c-primary); color: var(--c-primary); text-decoration: none; }

/* ── Abschnitte ──────────────────────────────────────────────────────────── */
.section { padding: var(--section-y) 0; }
.section-head { max-width: 42rem; margin: 0 0 2.5rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  font-family: var(--f-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: 0.75rem;
}
.section-sub { color: var(--c-muted); font-size: 1.1rem; margin: 0; }

/* ── Karten ──────────────────────────────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.card h3 { margin-top: 0; color: var(--c-heading); }
.card p { color: var(--c-muted); margin-bottom: 0; }
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-sm);
  background: var(--c-surface-2);
  color: var(--c-primary);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 1.1rem;
}

/* ── Feature (Text + Medienflaeche) ──────────────────────────────────────── */
.feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin: 2rem 0;
}
.feature-body h2 { margin-top: 0; }
.feature-list { list-style: none; margin: 1.25rem 0 0; padding: 0; }
.feature-list li {
  position: relative;
  padding-left: 1.85rem;
  margin-bottom: 0.7rem;
  color: var(--c-text);
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--c-primary);
}
.feature-media {
  min-height: 18rem;
  border-radius: var(--radius);
  background:
    radial-gradient(120% 120% at 20% 10%, color-mix(in srgb, var(--c-primary) 26%, transparent), transparent 60%),
    radial-gradient(120% 120% at 90% 90%, color-mix(in srgb, var(--c-accent) 30%, transparent), transparent 55%),
    var(--c-surface-2);
  border: 1px solid var(--c-border);
}

/* ── Kennzahlen ──────────────────────────────────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0;
}
.stat { text-align: center; }
.stat-num {
  font-family: var(--f-heading);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--c-primary);
  line-height: 1;
}
.stat-label { color: var(--c-muted); font-size: 0.95rem; margin-top: 0.4rem; }

/* ── CTA-Band ────────────────────────────────────────────────────────────── */
.cta-band {
  background: var(--c-contrast-bg);
  color: var(--c-on-contrast);
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
  margin: 2.5rem 0;
}
.cta-band h2 { color: var(--c-contrast-heading); }
.cta-band p { color: var(--c-on-contrast); max-width: 40ch; margin-inline: auto; opacity: 0.9; }
.cta-band .btn { margin-top: 1.25rem; }

/* ── Fusszeile ───────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--c-surface-2);
  border-top: 1px solid var(--c-border);
  margin-top: var(--section-y);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  padding: 2.5rem 1.5rem;
  color: var(--c-muted);
}
.footer-brand {
  font-family: var(--f-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--c-heading);
  margin-right: auto;
}
.footer-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}
.footer-nav a { color: var(--c-muted); }
.footer-nav a:hover { color: var(--c-primary); text-decoration: none; }
.copyright { width: 100%; margin: 0; font-size: 0.875rem; color: var(--c-muted); }

/* ── Responsive Grundlage ────────────────────────────────────────────────── */
@media (max-width: 860px) {
  :root { --h1: 2.25rem; --h2: 1.6rem; --hero-y: 3rem; --section-y: 3rem; }
  .feature { grid-template-columns: 1fr; gap: 1.75rem; }
  .feature-media { min-height: 12rem; }
  .cta-band { padding: 2rem; }
}
@media (max-width: 640px) {
  .header-inner { flex-wrap: wrap; }
  .site-nav ul { flex-wrap: wrap; gap: 1rem; }
  .nav-cta { display: none; }
}
