@font-face {
  font-family: "Roboto";
  src: url("../fonts/roboto-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto Slab";
  src: url("../fonts/roboto-slab-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #15254d;
  --blue: #1d3fd1;
  --blue-dark: #142fa3;
  --text: #1b1f27;
  --muted: #535a68;
  --bg: #ffffff;
  --bg-alt: #f3f4f7;
  --line: #dde0e7;
  --radius: 10px;
  --wrap: 1100px;
  --font: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-head: "Roboto Slab", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; color: var(--navy); margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(48px, 8vw, 88px) 0; }
.section--alt { background: var(--bg-alt); }
.eyebrow {
  display: block;
  font: 600 .85rem/1.3 var(--font);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .6em;
}
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100;
}
.skip:focus { left: 10px; top: 10px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px 24px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px;
}
.logo img { width: 210px; height: auto; }
.nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 8px 14px; border-radius: 6px;
  color: var(--navy); font-weight: 500; text-decoration: none;
}
.nav a:hover { background: var(--bg-alt); }
.nav a[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -2px 0 var(--blue); border-radius: 0; }
.nav .nav-cta { background: var(--blue); color: #fff; }
.nav .nav-cta:hover { background: var(--blue-dark); color: #fff; }
.nav .nav-cta[aria-current="page"] { color: #fff; box-shadow: none; border-radius: 6px; }

@media (max-width: 720px) {
  .site-header { position: static; }
  .site-header .wrap { justify-content: center; }
  .nav ul { justify-content: center; }
  .nav a { padding: 6px 10px; font-size: .95rem; }
}

/* Buttons */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 6px;
  background: var(--blue); color: #fff; font-weight: 600; text-decoration: none;
  border: 2px solid var(--blue);
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--blue); }
.btn--ghost:hover { background: var(--blue); color: #fff; }
.btn--light { background: #fff; border-color: #fff; color: var(--navy); }
.btn--light:hover { background: transparent; color: #fff; border-color: #fff; }

/* Hero (Startseite): randlos über die volle Breite. Wenn das Fenster flacher
   ist als 16:9, wird oben am Himmel beschnitten, nicht an Gebäude und Autos
   (Fokus je Foto per object-position). Auf schmalen Bildschirmen steht der
   Titel unter dem Foto. */
.hero { position: relative; background: var(--navy); color: #fff; }
.hero-slides { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.hero-slides picture, .hero-slides img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-slides img { object-fit: cover; object-position: 50% 75%; }
.hero-slides picture:nth-child(3) img { object-position: 50% 82%; }
/* Bild 1 bleibt stehen, 2 und 3 werden nacheinander darüber eingeblendet. */
.hero-slides picture:nth-child(2) { opacity: 0; animation: hero-2 18s infinite; }
.hero-slides picture:nth-child(3) { opacity: 0; animation: hero-3 18s infinite; }
@keyframes hero-2 { 0%, 28% { opacity: 0; } 33%, 61% { opacity: 1; } 66%, 100% { opacity: 0; } }
@keyframes hero-3 { 0%, 61% { opacity: 0; } 66%, 94% { opacity: 1; } 100% { opacity: 0; } }
.hero .wrap { text-align: center; padding-top: 24px; padding-bottom: 32px; }
.hero h1 { color: #fff; margin-bottom: .5em; font-size: 1.9rem; }

@media (min-width: 721px) {
  .hero-slides {
    aspect-ratio: auto;
    height: calc(100vh - 88px);
    height: clamp(420px, calc(100svh - 88px), 56.25vw);
  }
  .hero-slides::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(10, 18, 40, .6) 0%, rgba(10, 18, 40, .2) 22%, rgba(10, 18, 40, 0) 38%);
  }
  .hero .wrap {
    position: absolute; top: 0; left: 0; right: 0; z-index: 1;
    padding-top: clamp(20px, 3vw, 40px); padding-bottom: 0;
  }
  .hero h1 { font-size: clamp(1.8rem, 3.2vw, 2.9rem); margin-bottom: .35em; text-shadow: 0 0 14px rgba(0, 0, 0, .7); }
  .hero .btn { padding: 10px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slides picture { animation: none; }
  .hero-slides picture:not(:first-child) { display: none; }
  html { scroll-behavior: auto; }
}

/* Seitentitel (Unterseiten) */
.page-head { background: var(--navy); color: #fff; padding: clamp(40px, 7vw, 72px) 0; }
.page-head h1 { color: #fff; margin: 0; }
.page-head p { margin: .6em 0 0; color: #cfd6ea; font-size: 1.15rem; }

/* Startseite */
.intro { max-width: 760px; margin: 0 auto; text-align: center; }
.intro p { color: var(--muted); font-size: 1.125rem; }
.offer { max-width: 760px; margin: 0 auto; }
.offer h2 { text-align: center; }
.checklist { list-style: none; padding: 0; margin: 0 0 2em; display: grid; gap: 10px; }
.checklist li {
  position: relative; padding: 14px 18px 14px 52px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  font-weight: 500;
}
.checklist li::before {
  content: ""; position: absolute; left: 18px; top: 50%; width: 20px; height: 20px; margin-top: -10px;
  background: var(--blue);
  -webkit-mask: url("../icons/check.svg") center / contain no-repeat;
          mask: url("../icons/check.svg") center / contain no-repeat;
}
.center { text-align: center; }
.cta { background: var(--blue); color: #fff; text-align: center; }
.cta h2 { color: #fff; margin-bottom: 1em; }

/* Leistungen */
.feature-image { border-radius: var(--radius); margin: 0 auto clamp(32px, 6vw, 56px); max-width: 820px; width: 100%; }
.features { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px;
}
.h3 { font-size: 1.3rem; }
.card p:last-child { margin-bottom: 0; }
.split { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); align-items: center; }
.partner { background: var(--navy); border-radius: var(--radius); padding: clamp(28px, 5vw, 48px); display: flex; justify-content: center; }
.partner-logo { max-width: 400px; width: 100%; }
.narrow { max-width: 760px; }

/* Team */
.team { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.member {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.member-photo { aspect-ratio: 4 / 5; background: var(--bg-alt); }
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member-body { padding: 22px 24px 26px; }
.member h2, .member-slim h2 { font-size: 1.4rem; margin-bottom: .35em; }
.member .role, .member-slim .role { font-weight: 600; color: var(--blue); margin-bottom: .4em; }
.member p, .member-slim p { color: var(--muted); margin-bottom: 0; }
.member p + p, .member-slim p + p { margin-top: .5em; }
/* Teammitglieder ohne Foto: schlanke Textkarte mit Akzentlinie */
.team-more { display: grid; gap: 16px; margin-top: 24px; }
.team-more:empty { display: none; }
.member-slim {
  background: var(--bg-alt); border-left: 4px solid var(--blue); border-radius: var(--radius);
  padding: 20px 24px;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px;
}
.member-slim h2, .member-slim .role { margin: 0; }
@media (max-width: 720px) {
  .team, .team-more { max-width: 420px; margin-left: auto; margin-right: auto; }
  .team-more { margin-top: 24px; }
}

/* Kontakt */
.contact-layout { display: grid; gap: 24px; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
.contact-side { display: grid; gap: 24px; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list svg { flex: none; width: 22px; height: 22px; margin-top: 3px; fill: var(--blue); }
.contact-list a { color: var(--text); text-decoration: none; font-weight: 500; }
.contact-list a:hover { color: var(--blue); text-decoration: underline; }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.hours th { font-weight: 600; padding-right: 16px; }

/* Kontaktformular */
.contact-form { display: grid; gap: 18px; margin-top: 8px; }
.form-row { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; color: var(--navy); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: #fff;
  border: 1px solid #b9bfcc; border-radius: 6px; padding: 11px 13px;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.form-note { font-size: .9rem; color: var(--muted); margin: 0; }
.contact-form .btn { justify-self: start; cursor: pointer; font: inherit; font-weight: 600; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Rechtstexte */
.legal { max-width: 800px; }
.legal h2 { margin-top: 1.6em; }
.legal h3 { margin-top: 1.4em; font-size: 1.15rem; }
.legal h4 { margin: 1.2em 0 .4em; font-size: 1rem; color: var(--navy); }
.legal p, .legal li { overflow-wrap: anywhere; }
.legal address { font-style: normal; margin-bottom: 1em; }

/* Footer */
.site-footer { background: var(--navy); color: #cfd6ea; padding: 48px 0 28px; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 32px; }
.site-footer h2 { color: #fff; font-size: 1.05rem; margin-bottom: .7em; font-family: var(--font); letter-spacing: .06em; text-transform: uppercase; }
.site-footer address { font-style: normal; }
.site-footer p { margin: 0 0 .4em; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 20px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
}
.footer-bottom ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; }
