:root {
  --bg: #ffffff;
  --bg-alt: #f4f6f8;
  --text: #1c2430;
  --muted: #5a6573;
  --accent: #0f5c8c;
  --accent-dark: #0a4469;
  --border: #e1e6eb;
  --radius: 12px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Barrierefreiheit */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--accent-dark);
  color: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.hero a:focus-visible { outline-color: #ffffff; }

#main, section[id] { scroll-margin-top: 100px; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
  flex-wrap: wrap;
}
.logo {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.2px;
}
.logo-text span { color: var(--accent); margin-left: 0.25em; }
.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 8px;
  font-size: 0.95rem;
  line-height: 1.2;
}
.logo-text { display: flex; color: var(--text); margin: 0; }
.logo-mark {
  width: 40px;
  height: 40px;
  margin-bottom: 5px;
  flex-shrink: 0;
}
.nav { display: flex; gap: 20px; flex-wrap: wrap; }
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}
.nav a:hover { color: var(--accent); }
.nav a.lang {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0 8px;
  font-weight: 600;
  color: var(--accent);
}

/* Hero */
.hero {
  padding: 96px 0 80px;
  background: linear-gradient(160deg, #0a4469 0%, #0f5c8c 55%, #1b7bb3 100%);
  color: #fff;
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.15;
  margin: 0 0 20px;
  max-width: 760px;
}
.hero p {
  font-size: 1.15rem;
  max-width: 680px;
  margin: 0 0 32px;
  color: rgba(255, 255, 255, 0.9);
}
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  background: #fff;
  color: var(--accent-dark);
}
.btn:hover { background: #e8f1f7; color: var(--accent-dark); }
.btn-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.6);
  margin-left: 10px;
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

/* Sections */
section { padding: 80px 0; }
section.alt { background: var(--bg-alt); }
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 12px;
}
.section-lead {
  color: var(--muted);
  max-width: 680px;
  margin: 0 0 40px;
}

/* Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.card h3 { margin: 0 0 10px; font-size: 1.2rem; }
.card p { margin: 0 0 12px; color: var(--muted); }
.card ul { margin: 0; padding-left: 20px; color: var(--muted); }
.card li { margin-bottom: 4px; }
.icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #e3eef6;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.icon svg { width: 24px; height: 24px; }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px 24px 24px;
  border-top: 3px solid var(--accent);
  background: var(--bg);
  border-radius: 0 0 var(--radius) var(--radius);
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}
.step h3 { margin: 0 0 8px; font-size: 1.1rem; }
.step p { margin: 0; color: var(--muted); }

/* About */
.about {
  display: grid;
  grid-template-columns: 220px 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}
.facts {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 28px;
}
.facts h3 { margin-top: 0; }
.facts ul { margin: 0; padding-left: 20px; }
.facts li { margin-bottom: 6px; }

.portrait {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(16, 40, 64, 0.12);
}

/* Contact */
.contact-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.contact-box .btn {
  background: var(--accent);
  color: #fff;
  margin-top: 12px;
}
.contact-box .btn:hover { background: var(--accent-dark); }

/* Legal pages */
.legal { padding: 64px 0 80px; }
.legal h1 { margin-top: 0; }
.legal h2 { margin-top: 36px; font-size: 1.3rem; }
.legal .container { max-width: 800px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer a { color: var(--muted); margin-left: 16px; }
.site-footer a:first-child { margin-left: 0; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero { padding: 64px 0 56px; }
  section { padding: 56px 0; }
  .about { grid-template-columns: 1fr; gap: 28px; }
  .portrait { max-width: 220px; }
  .btn-secondary { margin-left: 0; margin-top: 10px; }
  .nav { gap: 14px; }
  .contact-box { padding: 28px 20px; }
}

/* Kontakt-Buttons */
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}
.contact-actions .btn { margin-top: 0; }
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-outline:hover { background: #e8f1f7; color: var(--accent-dark); }
.contact-box .btn-outline { background: transparent; color: var(--accent); }
.contact-box .btn-outline:hover { background: #e8f1f7; color: var(--accent-dark); }

/* "Mehr erfahren"-Link in Karten */
.card { display: flex; flex-direction: column; padding: 26px 24px; }
.card h3 { font-size: 1.15rem; }
.card li { hyphens: auto; -webkit-hyphens: auto; }
.card .more {
  margin-top: auto;
  padding-top: 16px;
  font-weight: 600;
  text-decoration: none;
}
.card .more:hover { text-decoration: underline; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Leistungs-Unterseiten */
.page-hero {
  padding: 56px 0 48px;
  background: linear-gradient(160deg, #0a4469 0%, #0f5c8c 55%, #1b7bb3 100%);
  color: #fff;
}
.page-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.2;
  margin: 12px 0 16px;
}
.page-hero p {
  max-width: 760px;
  margin: 0;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.92);
}
.breadcrumb { font-size: 0.9rem; color: rgba(255, 255, 255, 0.8); }
.breadcrumb a { color: #fff; }
.page-hero a:focus-visible { outline-color: #fff; }
.page-body { padding: 56px 0 72px; }
.content { max-width: 820px; }
.content h2 { font-size: 1.4rem; margin: 40px 0 14px; }
.content h2:first-child { margin-top: 0; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.45em;
  width: 12px;
  height: 7px;
  border-left: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}
.cta-box {
  margin-top: 48px;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  text-align: center;
}
.cta-box h2 { margin-top: 0; }
.cta-box .btn { background: var(--accent); color: #fff; }
.cta-box .btn:hover { background: var(--accent-dark); color: #fff; }
.cta-box .btn-outline { background: transparent; color: var(--accent); }
.cta-box .btn-outline:hover { background: #e8f1f7; color: var(--accent-dark); }
.related { margin-top: 40px; }
.related ul { padding-left: 20px; }
.related li { margin-bottom: 6px; }
