@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ========================================
   CUSTOM PROPERTIES
   ======================================== */
:root {
  --primary:         #3f4d96;
  --primary-dark:    #2d3870;
  --primary-light:   #5a6ab5;
  --primary-lighter: #eef0f8;
  --accent:          #e8832a;
  --accent-dark:     #c96c1a;
  --dark:            #1a1e3d;
  --text:            #2d3056;
  --text-muted:      #6b7280;
  --white:           #ffffff;
  --bg:              #f4f5fb;
  --border:          #dde1ef;

  --radius:    8px;
  --radius-lg: 16px;
  --shadow:    0 2px 16px rgba(63, 77, 150, 0.10);
  --shadow-lg: 0 8px 40px rgba(63, 77, 150, 0.18);

  --nav-h:    64px;
  --container: 1140px;
  --font: 'Montserrat', system-ui, -apple-system, sans-serif;
}

/* ========================================
   RESET & BASE
   ======================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 480px) {
  .container { padding: 0 24px; }
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  font-family: var(--font);
}
.btn--lg { padding: 16px 32px; font-size: 16px; }
.btn--full { width: 100%; }

.btn--primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn--primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  box-shadow: 0 4px 16px rgba(63,77,150,0.3);
}

.btn--accent {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn--accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  box-shadow: 0 4px 16px rgba(232,131,42,0.4);
}

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}
.btn--outline-white:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}

/* ========================================
   SECTION HEADER
   ======================================== */
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 56px;
}
.section-header h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
  line-height: 1.2;
}
.section-header p {
  color: var(--text-muted);
  font-size: 17px;
}

/* ========================================
   NAV
   ======================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s;
}
.nav--scrolled {
  box-shadow: var(--shadow);
  border-bottom-color: transparent;
}

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__logo-img {
  height: 32px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__links a:not(.btn) {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  transition: color 0.2s;
}
.nav__links a:not(.btn):hover { color: var(--primary); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========================================
   HERO
   ======================================== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  /* TODO: echtes Foto ersetzen wenn vorhanden */
  background: url('../images/hero-bg.jpg') center/cover no-repeat;
  background-image: image-set(
    url('../images/hero-bg.webp') type('image/webp'),
    url('../images/hero-bg.jpg')  type('image/jpeg')
  );
}
.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(26, 30, 61, 0.93) 0%,
    rgba(45, 56, 112, 0.88) 45%,
    rgba(63, 77, 150, 0.72) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 80px;
  max-width: 740px;
}

.hero__badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}

.hero__headline {
  font-size: clamp(44px, 7vw, 76px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.07;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero__sub {
  font-size: clamp(16px, 2vw, 18px);
  color: rgba(255, 255, 255, 0.80);
  max-width: 580px;
  margin-bottom: 40px;
  line-height: 1.75;
}

.hero__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero__usps {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 36px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.hero__usp {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 600;
}
.hero__usp-icon {
  color: var(--accent);
  font-weight: 800;
  font-size: 15px;
}

/* ========================================
   TRUST STRIP
   ======================================== */
.trust-strip {
  background: var(--dark);
}
.trust-strip__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 20px;
  gap: 8px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.trust-item:last-child { border-right: none; }
.trust-item__icon {
  width: 44px;
  height: 44px;
  background: rgba(63, 77, 150, 0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 4px;
}
.trust-item__icon svg { width: 20px; height: 20px; }
.trust-item strong {
  font-size: 16px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
}
.trust-item span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.4;
}

/* ========================================
   LEISTUNGEN
   ======================================== */
.leistungen {
  padding: 96px 0;
  background: var(--bg);
}

.leistungen__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.leistung-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.leistung-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.leistung-card__icon {
  width: 56px;
  height: 56px;
  background: var(--primary-lighter);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
}
.leistung-card__icon svg {
  width: 26px;
  height: 26px;
}

.leistung-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}
.leistung-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ========================================
   KONTAKT
   ======================================== */
.kontakt {
  padding: 96px 0;
  position: relative;
  isolation: isolate;
}
/* TODO: echtes Foto ersetzen wenn vorhanden */
.kontakt::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url('../images/kontakt-bg.jpg') center/cover no-repeat;
  background-image: image-set(
    url('../images/kontakt-bg.webp') type('image/webp'),
    url('../images/kontakt-bg.jpg')  type('image/jpeg')
  );
}
.kontakt::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.92);
}

.kontakt__inner {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 80px;
  align-items: start;
}

.kontakt__info .section-label { margin-bottom: 12px; }

.kontakt__info h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 16px;
}
.kontakt__info > p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 32px;
}

.kontakt__details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}
.kontakt__details li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}
.kontakt__details svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--primary);
}

.kontakt__badge {
  background: var(--primary-lighter);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}
.kontakt__badge strong {
  display: block;
  color: var(--dark);
  font-size: 15px;
  margin-bottom: 2px;
}

/* FORM */
.kontakt__form {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
  appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #adb5c7; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(63, 77, 150, 0.12);
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}
.form-group textarea { resize: vertical; }

.form-group--check {
  flex-direction: row;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 24px;
}
/* Checkbox: input verstecken, Styling über .checkbox-box */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.5;
  user-select: none;
}
.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.checkbox-box {
  display: block;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 2px solid var(--border);
  border-radius: 4px;
  background: var(--white);
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
  position: relative;
}
.checkbox-label:hover .checkbox-box {
  border-color: var(--primary-light);
}
.checkbox-label input:checked ~ .checkbox-box {
  background: var(--primary);
  border-color: var(--primary);
}
.checkbox-label input:checked ~ .checkbox-box::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: 2px solid var(--white);
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}
.checkbox-label input:focus-visible ~ .checkbox-box {
  box-shadow: 0 0 0 3px rgba(63, 77, 150, 0.2);
}
.checkbox-label a {
  color: var(--primary);
  text-decoration: underline;
}

.form-hint {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 12px;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.70);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  padding-top: 64px;
  padding-bottom: 48px;
}

.footer__logo {
  height: 42px;
  width: auto;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}
.footer__brand p {
  font-size: 14px;
  line-height: 1.75;
  max-width: 240px;
}

.footer__links,
.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__links strong,
.footer__contact strong {
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.footer__links a,
.footer__contact a,
.footer__contact span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.60);
  transition: color 0.2s;
}
.footer__links a:hover,
.footer__contact a:hover { color: var(--white); }

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}
.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.40);
}
.footer__legal {
  display: flex;
  gap: 20px;
}
.footer__legal a {
  color: rgba(255, 255, 255, 0.40);
  transition: color 0.2s;
}
.footer__legal a:hover { color: var(--white); }

/* ========================================
   BEWERTUNGEN
   ======================================== */
.bewertungen {
  padding: 96px 0;
  background: var(--bg);
}

.bewertungen__gesamt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}
.bewertungen__score {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
}
.bewertungen__quelle {
  font-size: 14px;
  color: var(--text-muted);
}

.sterne { display: flex; gap: 3px; }
.sterne svg { fill: #f59e0b; }
.sterne--lg svg { width: 22px; height: 22px; }
.sterne--sm svg { width: 14px; height: 14px; }

.bewertungen__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.review-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow 0.2s;
}
.review-card:hover { box-shadow: var(--shadow-lg); }

.review-card__header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.review-card__avatar {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.review-card__avatar--b { background: #0d9488; }
.review-card__avatar--c { background: #7c3aed; }
.review-card__avatar--s { background: #059669; }
.review-card__avatar--j { background: var(--accent); }
.review-card__avatar--i { background: #dc2626; }

.review-card__header > div:nth-child(2) {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.review-card__header strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
}
.review-card__header span {
  font-size: 12px;
  color: var(--text-muted);
}
.review-card__header .sterne { margin-left: auto; }

.review-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
  flex: 1;
}

.bewertungen__cta {
  display: flex;
  justify-content: center;
}
.btn--outline-dark {
  background: transparent;
  color: var(--dark);
  border: 2px solid var(--border);
  font-size: 14px;
}
.btn--outline-dark:hover {
  border-color: var(--primary);
  color: var(--primary);
}

@media (max-width: 900px) {
  .bewertungen__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .bewertungen { padding: 56px 0; }
  .bewertungen__grid { grid-template-columns: 1fr; }
}

/* ========================================
   RESPONSIVE — TABLET
   ======================================== */
@media (max-width: 900px) {
  .leistungen__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .kontakt__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
}

/* ========================================
   RESPONSIVE — MOBILE
   ======================================== */
@media (max-width: 640px) {
  .nav__links {
    display: none;
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    font-size: 18px;
  }
  .nav__links.is-open { display: flex; }
  .nav__burger { display: flex; }

  .hero__content { padding-top: calc(var(--nav-h) + 40px); padding-bottom: 56px; }
  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { width: 100%; }

  .trust-strip__inner { grid-template-columns: repeat(2, 1fr); }
  .trust-item { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .trust-item:nth-child(odd) { border-right: 1px solid rgba(255, 255, 255, 0.08); }
  .trust-item:nth-child(even) { border-right: none; }
  .trust-item:nth-last-child(-n+2) { border-bottom: none; }

  .leistungen { padding: 56px 0; }
  .leistungen__grid { grid-template-columns: 1fr; }
  .leistung-card { padding: 24px 20px; }

  .kontakt { padding: 56px 0; }
  .form-row { grid-template-columns: 1fr; }
  .kontakt__form { padding: 24px 16px; }

  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom-inner { flex-direction: column; gap: 12px; text-align: center; }
}

/* ========================================
   COOKIE BANNER
   ======================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--dark);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 24px;
  transform: translateY(100%);
  transition: transform 0.35s ease;
}
.cookie-banner.is-visible {
  transform: translateY(0);
}
.cookie-banner__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-banner p {
  flex: 1;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin: 0;
  min-width: 200px;
}
.cookie-banner a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
}
.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-btn {
  padding: 9px 20px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}
.cookie-btn--accept {
  background: var(--primary);
  color: var(--white);
}
.cookie-btn--accept:hover { background: var(--primary-dark); }
.cookie-btn--close {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}
.cookie-btn--close:hover { background: rgba(255, 255, 255, 0.18); }

@media (max-width: 640px) {
  .cookie-banner__inner { flex-direction: column; align-items: flex-start; }
  .cookie-banner__actions { width: 100%; }
  .cookie-btn { flex: 1; text-align: center; }
}
