:root {
  --primary: #1b405d;
  --accent: #1976d2;
  --accent-dark: #1565c0;
  --bg-alt: #f4f7fb;
  --bg-hero: #eef4fb;
  --text: #1a2a3a;
  --text-muted: #5a6a7a;
  --border: #d0dce8;
  --white: #ffffff;
  --max-w: 1100px;
  --radius: 8px;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  line-height: 1.65;
  background: var(--white);
}

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

img { max-width: 100%; display: block; }

/* ── Layout ─────────────────────────────────────── */

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

section { padding: 5.5rem 0; }
section.alt { background: var(--bg-alt); }

/* ── Nav ─────────────────────────────────────────── */

header {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.02em;
  text-decoration: none;
}

.nav-logo-img {
  height: 36px;
  width: 36px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,.8);
  font-size: .9rem;
  font-weight: 500;
  transition: color .2s;
}

.nav-links a:hover, .nav-links a.active { color: var(--white); text-decoration: none; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--white); margin: 5px 0; transition: .3s;
}

/* ── Hero ────────────────────────────────────────── */

.hero {
  position: relative;
  background: var(--bg-hero);
  color: var(--text);
  padding: 7rem 0 5.5rem;
  text-align: left;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/hintergrund.jpg');
  background-size: cover;
  background-position: center right;
  opacity: .18;
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero-label {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--primary);
  max-width: 700px;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-block;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  box-shadow: 0 4px 16px rgba(25,118,210,.25);
  text-decoration: none;
}

/* Outline-Button im Hero (heller Hintergrund) */
.hero .btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--border);
  margin-left: 1rem;
}

.hero .btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

/* Outline-Button allgemein (z.B. auf dunklem Hintergrund) */
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
  margin-left: 1rem;
}

.btn-outline:hover { border-color: var(--white); text-decoration: none; }

/* ── Section headings ────────────────────────────── */

.section-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .6rem;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 3rem;
}

/* ── Cards ───────────────────────────────────────── */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: box-shadow .2s, transform .2s;
}

.card:hover {
  box-shadow: 0 8px 28px rgba(10,37,64,.1);
  transform: translateY(-2px);
}

.card-icon {
  width: 44px; height: 44px;
  background: var(--bg-hero);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}

.card-icon svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: .6rem;
}

.card p { font-size: .95rem; color: var(--text-muted); }

/* ── List ────────────────────────────────────────── */

ul.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

ul.check-list li {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  font-size: .97rem;
}

ul.check-list li::before {
  content: "";
  flex-shrink: 0;
  margin-top: .35rem;
  width: 16px; height: 16px;
  background: var(--accent);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8l3.5 3.5L13 5' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
}

/* ── Two-col layout ──────────────────────────────── */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 720px) { .two-col { grid-template-columns: 1fr; gap: 2rem; } }

/* ── Partners ────────────────────────────────────── */

.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.partner-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  background: var(--white);
}

.partner-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: .4rem;
}

.partner-card p { font-size: .92rem; color: var(--text-muted); }

/* ── CTA band ────────────────────────────────────── */

.cta-band {
  background: var(--primary);
  color: var(--white);
  padding: 5rem 0;
  text-align: center;
}

.cta-band h2 { color: var(--white); margin-bottom: 1rem; }
.cta-band p { color: rgba(255,255,255,.75); margin-bottom: 2rem; }
.cta-band .btn-primary { box-shadow: 0 4px 20px rgba(0,0,0,.2); }

/* ── Contact form ────────────────────────────────── */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 560px;
}

.contact-form label { font-size: .9rem; font-weight: 600; color: var(--primary); margin-bottom: .25rem; display: block; }

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: .65rem .9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color .2s;
}

.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(25,118,210,.1); }

.contact-form textarea { resize: vertical; min-height: 130px; }

/* ── Page hero (inner pages) ─────────────────────── */

.page-hero {
  background: var(--bg-hero);
  color: var(--text);
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: .5rem;
}

.page-hero p { color: var(--text-muted); font-size: 1.05rem; max-width: 580px; }

/* ── Prose (Impressum / Datenschutz) ─────────────── */

.prose h2 { font-size: 1.3rem; margin: 2rem 0 .5rem; }
.prose h3 { font-size: 1.05rem; font-weight: 700; margin: 1.5rem 0 .4rem; color: var(--primary); }
.prose p, .prose li { font-size: .97rem; color: var(--text-muted); margin-bottom: .6rem; }
.prose ul { padding-left: 1.2rem; }
.prose a { color: var(--accent-dark); }

/* ── Kunde-Logos ─────────────────────────────────── */

.kunde-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2.5rem 3rem;
}

.kunde-logos img {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(45%);
  transition: filter .3s;
}

.kunde-logos img:hover {
  filter: grayscale(0%) opacity(90%);
}

/* ── Footer ──────────────────────────────────────── */

footer {
  background: var(--primary);
  color: rgba(255,255,255,.6);
  padding: 2.5rem 0;
  font-size: .88rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: rgba(255,255,255,.6); }
.footer-links a:hover { color: var(--white); text-decoration: none; }

/* ── Mobile ──────────────────────────────────────── */

@media (max-width: 640px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--primary); padding: 1rem 1.5rem 1.5rem; gap: 1rem; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .hero .btn-outline { display: none; }
  .footer-inner { flex-direction: column; text-align: center; }
}
