/* ============================================================
   SMH Audit GmbH – Stylesheet
   Brand: Blau #252852 · Grün #8DBF42 · Schrift: Poppins
   ============================================================ */

/* ---------- Schrift: Poppins (lokal / self-hosted) ----------
   Die .woff2-Dateien liegen in assets/fonts/ (siehe README dort).
   Benötigte Schnitte: 400, 500, 600, 700 (normal). */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/poppins-400.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/poppins-500.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/poppins-600.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/poppins-700.woff2") format("woff2");
}

/* ---------- Custom Properties ---------- */
:root {
  /* Farben */
  --c-blue: #252852;
  --c-blue-700: #1b1d3d;
  --c-green: #8dbf42;      /* Markengrün: dekorativ + auf dunklem Blau (Kontrast dort ok) */
  --c-green-600: #7aa838;  /* nur für dekorative Elemente (Icons), nicht für Text auf Weiß */
  --c-green-700: #527a1a;  /* Aktionsgrün: Text auf Weiß & Button-Hintergrund, WCAG AA ≥ 4,5:1 */
  --c-green-800: #466818;  /* Hover-Variante des Aktionsgrüns */
  --c-ink: #2b2d42;
  --c-text: #4a4d63;
  --c-muted: #6c7088;
  --c-line: #e7e9f0;
  --c-bg: #ffffff;
  --c-bg-alt: #f5f7fb;
  --c-white: #ffffff;

  /* Typografie */
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --fs-h1: clamp(2.25rem, 1.4rem + 3.6vw, 3.5rem);
  --fs-h2: clamp(1.75rem, 1.2rem + 2.1vw, 2.5rem);
  --fs-h3: 1.25rem;
  --fs-lead: clamp(1.05rem, 0.98rem + 0.4vw, 1.25rem);
  --fs-body: 1.0625rem;

  /* Layout */
  --container: 1140px;
  --gap: clamp(1.25rem, 0.8rem + 1.5vw, 2rem);
  --section-y: clamp(3.5rem, 2rem + 6vw, 7rem);
  --radius: 14px;
  --radius-sm: 10px;

  /* Effekte */
  --shadow: 0 10px 30px rgba(37, 40, 82, 0.08);
  --shadow-lg: 0 18px 50px rgba(37, 40, 82, 0.14);
  --ring: 0 0 0 3px rgba(141, 191, 66, 0.45);
  --ease: 0.25s ease;
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

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

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

a { color: var(--c-green-700); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--c-blue); }

h1, h2, h3 { color: var(--c-blue); line-height: 1.2; font-weight: 700; margin: 0 0 .5em; }

p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; }

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- Helpers ---------- */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.section { padding-block: var(--section-y); }
.section--alt { background: var(--c-bg-alt); }

.skip-link {
  position: absolute;
  left: 1rem; top: -3rem;
  background: var(--c-blue);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: 0 0 8px 8px;
  z-index: 1000;
  transition: top var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-green-700);
  margin: 0 0 .75rem;
}
.eyebrow--light { color: var(--c-green); }

.section__head { max-width: 720px; margin: 0 auto clamp(2rem, 4vw, 3.25rem); text-align: center; }
.section__title {
  font-size: var(--fs-h2);
  margin: 0 0 .6rem;
  position: relative;
  /* Bewusst viel Abstand zur grünen Linie: sie ist ein TRENNER zwischen
     Überschrift und Inhalt – zu nah am Text wirkt sie wie eine
     (zufällige) Unterstreichung des mittleren Wortes. */
  padding-bottom: 1.4rem;
}
.section__title::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 40px; height: 3px;
  border-radius: 3px;
  background: var(--c-green);
}
.section__subtitle { color: var(--c-muted); font-size: var(--fs-lead); margin: 0; }

.h3 { font-size: var(--fs-h3); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--c-green-700);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease), color var(--ease), border-color var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--sm { padding: .6rem 1.1rem; font-size: .9rem; }

.btn--primary { background: var(--c-green-700); color: #fff; }
.btn--primary:hover { background: var(--c-green-800); color: #fff; }

.btn--outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .6);
}
.btn--outline-light:hover { background: #fff; color: var(--c-blue); border-color: #fff; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-weight: 600;
  margin-top: auto;
}
.link-arrow::after { content: "→"; transition: transform var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-line);
  transition: box-shadow var(--ease), padding var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(37, 40, 82, .08); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}
.site-header__logo img { width: auto; height: 38px; }

.primary-nav__list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}
.primary-nav a:not(.btn) {
  color: var(--c-blue);
  font-weight: 500;
  position: relative;
  padding: .25rem 0;
}
.primary-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--c-green);
  transition: width var(--ease);
}
.primary-nav a:not(.btn):hover::after { width: 100%; }

/* Nav toggle (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav-toggle__bar {
  display: block;
  width: 26px; height: 2px;
  background: var(--c-blue);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, rgba(27, 29, 61, .92) 0%, rgba(37, 40, 82, .82) 45%, rgba(37, 40, 82, .55) 100%);
}
.hero__inner {
  padding-block: clamp(4.5rem, 3rem + 10vw, 8.5rem);
  max-width: 760px;
}
.hero__title { color: #fff; font-size: var(--fs-h1); margin: 0 0 1rem; }
.hero__lead { font-size: var(--fs-lead); color: rgba(255, 255, 255, .9); max-width: 60ch; margin: 0 0 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.5rem; }

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  list-style: none;
  margin: 0 0 2.5rem;
}
.hero__badges li {
  font-size: .85rem;
  font-weight: 600;
  padding: .4rem .85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .25);
  backdrop-filter: blur(4px);
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin: 0;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, .2);
}
.hero__stat dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255, 255, 255, .7); }
.hero__stat dd { margin: .15rem 0 0; font-size: 1.6rem; font-weight: 700; color: var(--c-green); }

.hero__scroll {
  position: absolute;
  left: 50%; bottom: 1.5rem;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(255, 255, 255, .6);
  border-radius: 14px;
}
.hero__scroll::after {
  content: "";
  position: absolute;
  left: 50%; top: 8px;
  width: 4px; height: 8px;
  background: #fff;
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0%, 100% { opacity: 0; transform: translate(-50%, 0); }
  50% { opacity: 1; transform: translate(-50%, 10px); }
}

/* ---------- Cards (shared) ---------- */
.card {
  display: flex;
  flex-direction: column;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  box-shadow: var(--shadow);
  position: relative;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 4px;
  background: var(--c-green);
  border-radius: var(--radius) var(--radius) 0 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(141, 191, 66, .12);
  color: var(--c-green-600);
  margin-bottom: 1.25rem;
}
.card__icon svg { width: 28px; height: 28px; }
.card__title { margin-bottom: .5rem; }

/* ---------- Teaser ---------- */
.teaser__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--gap);
}
.teaser__card p { color: var(--c-muted); }

/* ---------- Über uns / Prose ---------- */
.prose { max-width: 780px; }
.prose--center { margin-inline: auto; text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.prose p { color: var(--c-text); }

.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--gap);
  list-style: none;
}
.value__title { margin-bottom: .5rem; }
.value p { color: var(--c-muted); font-size: 1rem; margin: 0; }

/* ---------- Zertifizierungen ---------- */
.certs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: var(--gap);
}
.cert__tag {
  align-self: flex-start;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .03em;
  color: var(--c-blue);
  background: rgba(37, 40, 82, .07);
  padding: .35rem .8rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.cert__title { font-size: 1.15rem; margin-bottom: .6rem; }
.cert p { color: var(--c-muted); font-size: .98rem; margin: 0; }

/* ---------- CTA Band ---------- */
.cta-band {
  background: linear-gradient(115deg, var(--c-blue) 0%, var(--c-blue-700) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(141, 191, 66, .18);
}
.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-block: clamp(2.75rem, 5vw, 4rem);
  position: relative;
  z-index: 1;
}
.cta-band__title { color: #fff; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); margin: 0; max-width: 22ch; }
.cta-band__contacts { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; }
.cta-band__contact {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: #fff;
  font-weight: 600;
}
.cta-band__contact:hover { color: var(--c-green); }
.cta-band__icon {
  display: inline-flex;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
}
.cta-band__icon svg { width: 20px; height: 20px; }

/* ---------- Auditablauf / Timeline ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--gap);
  list-style: none;
  counter-reset: step;
}
.timeline__step {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 1rem + 1vw, 2rem);
  box-shadow: var(--shadow);
  position: relative;
  transition: transform var(--ease), box-shadow var(--ease);
}
.timeline__step:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.timeline__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--c-green-700);
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 1.1rem;
  box-shadow: 0 8px 18px rgba(141, 191, 66, .35);
}
.timeline__title { font-size: 1.15rem; margin-bottom: .75rem; }
.timeline__list { list-style: none; display: grid; gap: .6rem; }
.timeline__list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--c-muted);
  font-size: .98rem;
}
.timeline__list li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-green);
}

.ablauf-figure {
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.ablauf-figure img { width: 100%; height: clamp(260px, 40vw, 420px); object-fit: cover; }
.ablauf-figure__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  background: linear-gradient(180deg, rgba(27, 29, 61, 0) 0%, rgba(27, 29, 61, .8) 22%, rgba(27, 29, 61, .97) 100%);
  color: #fff;
  font-size: 1rem;
}
.ablauf-figure__caption strong { display: block; color: var(--c-green); font-size: 1.2rem; margin-bottom: .35rem; }
/* Mobil: Caption unter dem Bild statt darüber (Lesbarkeit, Bild bleibt frei) */
@media (max-width: 600px) {
  .ablauf-figure__caption {
    position: static;
    background: var(--c-blue-700);
  }
}

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--gap);
  list-style: none;
}
.contact-grid > li { display: flex; }
.contact-card { align-items: flex-start; text-decoration: none; cursor: pointer; width: 100%; }
.contact-card__label { font-size: 1.1rem; margin-bottom: .35rem; }
.contact-card__value, .contact-card address {
  font-style: normal;
  color: var(--c-text);
  font-weight: 500;
  line-height: 1.6;
}
.contact-card:hover .contact-card__value { color: var(--c-green-700); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-blue-700);
  color: rgba(255, 255, 255, .8);
  padding-block: 2.5rem;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.site-footer__brand { display: flex; align-items: center; gap: .65rem; color: #fff; font-weight: 600; }
.site-footer__brand img { width: 36px; height: 36px; }
.site-footer__copy { margin: 0; font-size: .95rem; }
.site-footer__nav { display: flex; gap: 1.5rem; }
.site-footer__nav a { color: rgba(255, 255, 255, .8); }
.site-footer__nav a:hover { color: var(--c-green); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 880px) {
  .nav-toggle { display: flex; }

  .primary-nav {
    position: fixed;
    inset: 72px 0 auto 0;
    background: #fff;
    border-bottom: 1px solid var(--c-line);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--ease);
  }
  .primary-nav.is-open { max-height: 80vh; }
  .primary-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem 1.25rem 1.25rem;
  }
  .primary-nav__list li { border-bottom: 1px solid var(--c-line); }
  .primary-nav a:not(.btn) { display: block; padding: .9rem 0; }
  .primary-nav__cta { border-bottom: none; padding-top: 1rem; }
  .primary-nav__cta .btn { width: 100%; justify-content: center; }

  .cta-band__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__stats { gap: 1.25rem; }
  .hero__stat dd { font-size: 1.35rem; }
}

/* ---------- Section-Titel linksbündig (z. B. „Für wen") ---------- */
.section__title--left { padding-bottom: 1.4rem; }
.section__title--left::after { left: 0; transform: none; }

/* ---------- Leistungen ---------- */
.leistungen__note {
  max-width: 760px;
  margin: clamp(2rem, 4vw, 3rem) auto 0;
  padding: 1rem 1.25rem;
  background: rgba(37, 40, 82, .04);
  border: 1px solid var(--c-line);
  border-left: 4px solid var(--c-green);
  border-radius: var(--radius-sm);
  color: var(--c-text);
  font-size: .98rem;
}

/* ---------- Für wen / Zielgruppe ---------- */
.audience {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.audience__intro p { color: var(--c-text); }
.audience__intro .eyebrow { margin-bottom: .75rem; }
.audience__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  list-style: none;
}
.audience__list li {
  position: relative;
  padding: .85rem 1rem .85rem 2.4rem;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  font-weight: 500;
  color: var(--c-ink);
  font-size: .98rem;
}
.audience__list li::before {
  content: "";
  position: absolute;
  /* auf die Mitte der ERSTEN Zeile: padding-top .85rem + halbe Zeilenhöhe (.98rem × 1.65 / 2) */
  left: 1rem; top: calc(.85rem + .81rem);
  transform: translateY(-50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-green);
}
@media (max-width: 760px) {
  .audience { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .audience__list { grid-template-columns: 1fr; }
}

/* ---------- Team ---------- */
.team-statement {
  max-width: 820px;
  margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--c-ink);
}
.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap);
  list-style: none;
}
.team-member { align-items: center; text-align: center; }
.team-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px; height: 120px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-blue) 0%, var(--c-blue-700) 100%);
  overflow: hidden;
}
/* Teamfotos sind Hochformat-Porträts: Ausschnitt auf das Gesicht im oberen
   Bilddrittel ausrichten (mittiger Zuschnitt würde den Kopf anschneiden) */
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; border-radius: 50%; }
.team-photo__initials {
  color: var(--c-green);
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.team-member__name { margin: 0 0 .25rem; font-size: 1.2rem; }
.team-member__role {
  margin: 0 0 1rem;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--c-green-700);
}
.team-member__bio { margin: 0; color: var(--c-muted); font-size: .98rem; }

/* ---------- FAQ ---------- */
.faq {
  max-width: 820px;
  margin-inline: auto;
  display: grid;
  gap: .9rem;
}
.faq__item {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.faq__item[open] { box-shadow: var(--shadow-lg); border-color: transparent; }
.faq__q {
  display: flex;
  /* flex-start statt center: das Plus bleibt bei mehrzeiligen Fragen auf Höhe der ersten Zeile
     (Icon 28px ≈ Zeilenhöhe 1.05rem × 1.65, daher kein zusätzlicher Ausgleich nötig) */
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  font-weight: 600;
  color: var(--c-blue);
  cursor: pointer;
  list-style: none;
  font-size: 1.05rem;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "+";
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(141, 191, 66, .14);
  color: var(--c-green-700);
  font-size: 1.4rem;
  line-height: 1;
  transition: transform var(--ease), background var(--ease);
}
.faq__item[open] .faq__q::after { transform: rotate(45deg); background: var(--c-green-700); color: #fff; }
.faq__a { padding: 0 1.4rem 1.3rem; }
.faq__a p { margin: 0; color: var(--c-text); }
.faq__a a { font-weight: 600; }

/* ============================================================
   BLOG
   ============================================================ */

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---- Blog-Hero ---- */
.blog-hero {
  background: linear-gradient(115deg, var(--c-blue) 0%, var(--c-blue-700) 100%);
  color: #fff;
  padding-block: clamp(3rem, 2rem + 6vw, 5.5rem);
  position: relative;
  overflow: hidden;
}
.blog-hero::after {
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(141, 191, 66, .18);
}
.blog-hero .eyebrow { color: var(--c-green); }
.blog-hero__title { color: #fff; font-size: var(--fs-h1); margin: 0 0 .75rem; max-width: 18ch; }
.blog-hero__lead { color: rgba(255, 255, 255, .9); font-size: var(--fs-lead); max-width: 60ch; margin: 0; position: relative; }

/* ---- Kategorie-Filter ---- */
.blog-filter {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}
.blog-filter__btn {
  font-family: inherit;
  font-size: .9rem;
  font-weight: 500;
  color: var(--c-blue);
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: 999px;
  padding: .5rem 1.1rem;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.blog-filter__btn:hover { border-color: var(--c-green); color: var(--c-green-700); }
.blog-filter__btn.is-active {
  background: var(--c-blue);
  border-color: var(--c-blue);
  color: #fff;
}

/* ---- Kachel-Grid ---- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--gap);
}
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--ease), box-shadow var(--ease);
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.blog-card__media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--c-bg-alt);
}
.blog-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--ease);
}
.blog-card:hover .blog-card__media img { transform: scale(1.04); }

/* Platzhalterfläche, wenn kein Bild gesetzt ist (image: null) */
.blog-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
  background: linear-gradient(125deg, var(--c-blue) 0%, var(--c-blue-700) 60%, #2f3370 100%);
  position: relative;
}
.blog-ph::before {
  content: "";
  position: absolute;
  right: -30px; top: -30px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(141, 191, 66, .25);
}
.blog-ph__label {
  position: relative;
  color: #fff;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .03em;
  padding: .4rem 1rem;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 999px;
}

.blog-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem;
}
.blog-card__cat {
  align-self: flex-start;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--c-green-700);
  background: rgba(141, 191, 66, .12);
  padding: .3rem .7rem;
  border-radius: 999px;
  margin-bottom: .9rem;
}
.blog-card__title { font-size: 1.2rem; line-height: 1.3; margin: 0 0 .6rem; }
.blog-card__title a { color: var(--c-blue); }
.blog-card__title a:hover { color: var(--c-green-700); }
.blog-card__excerpt { color: var(--c-muted); font-size: .98rem; margin: 0 0 1.25rem; }
.blog-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--c-line);
}
.blog-card__meta time { color: var(--c-muted); font-size: .85rem; }

.blog-empty {
  text-align: center;
  color: var(--c-muted);
  padding: 3rem 1rem;
}

/* ============================================================
   BLOG – Detailseite
   ============================================================ */
.post { padding-block: clamp(2.5rem, 2rem + 4vw, 4rem); }
.post__loading, .post__notfound { text-align: center; color: var(--c-muted); padding-block: 3rem; }
.post__notfound h1 { color: var(--c-blue); }

.post__head { max-width: 760px; }
.link-arrow--back::after { content: none; }
.link-arrow--back::before { content: "←"; margin-right: .35rem; transition: transform var(--ease); }
.link-arrow--back:hover::before { transform: translateX(-4px); }
.post__back { margin-bottom: 1.5rem; }

.post__title {
  font-size: var(--fs-h2);
  margin: .8rem 0 .6rem;
}
.post__meta { color: var(--c-muted); font-size: .95rem; margin: 0; }

.post__hero {
  max-width: 980px;
  margin: clamp(1.75rem, 4vw, 2.75rem) auto 0;
  width: min(100% - 2.5rem, 980px);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.post__hero img { width: 100%; height: auto; display: block; }

/* Inhalts-Typografie */
.post__content {
  max-width: 760px;
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
  font-size: 1.075rem;
}
.post__content h2 {
  font-size: 1.5rem;
  margin: 2rem 0 .75rem;
}
.post__content p { margin: 0 0 1.15rem; color: var(--c-text); }
.post__content ul, .post__content ol { margin: 0 0 1.15rem; padding-left: 1.3rem; }
.post__content li { margin-bottom: .5rem; color: var(--c-text); }
.post__content a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.post__content img { border-radius: var(--radius-sm); margin: 1.5rem 0; }

/* CTA am Ende des Beitrags */
.post__cta {
  max-width: 760px;
  margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
  text-align: center;
  background: var(--c-bg-alt);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 2.75rem);
}
.post__cta-title { font-size: 1.4rem; margin: 0 0 .5rem; }
.post__cta p { color: var(--c-muted); margin: 0 0 1.5rem; }

/* Hinweis-Kasten auf Rechtsseiten (Impressum/Datenschutz) */
.legal-note {
  background: #fff8e6;
  border: 1px solid #f0d98a;
  border-left: 4px solid #e0b020;
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-size: .95rem;
  color: #6b5410;
  margin-bottom: 2rem;
}
.legal-note a { color: inherit; }

/* ============================================================
   PARTNER – Endlos-Logo-Leiste (Marquee, reines CSS)
   ============================================================ */
.partners__note { max-width: 760px; margin-inline: auto; }

.marquee {
  margin-top: clamp(2rem, 4vw, 3rem);
  overflow: hidden;
  /* Sanftes Aus-/Einblenden an den Rändern */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 40s linear infinite;
}
/* Pause beim Hovern (angenehmer zum Anschauen) */
.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee__group {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

/* Endlos-Schleife: zwei identische Gruppen, Verschiebung um exakt eine Gruppe */
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.partner-logo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Abstand inkl. nachlaufendem Rand → nahtlose 50%-Schleife */
  margin-right: clamp(2rem, 5vw, 4.5rem);
  height: 64px;
}
.partner-logo img {
  max-height: 56px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

/* Text-Fallback (dezenter grauer Kasten), solange das echte Logo fehlt */
.partner-logo__fallback { display: none; }
.partner-logo.is-missing img { display: none; }
.partner-logo.is-missing .partner-logo__fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  height: 56px;
  padding: 0 1.5rem;
  background: #eef0f5;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  color: var(--c-muted);
  font-weight: 500;
  font-size: .95rem;
}

@media (max-width: 600px) {
  .partner-logo { height: 52px; margin-right: clamp(1.5rem, 8vw, 2.75rem); }
  .partner-logo img { max-height: 44px; max-width: 140px; }
  .partner-logo.is-missing .partner-logo__fallback { height: 44px; padding: 0 1rem; font-size: .85rem; }
}

/* Barrierefreiheit: bei reduzierter Bewegung statisch zeigen */
@media (prefers-reduced-motion: reduce) {
  .marquee {
    -webkit-mask-image: none;
            mask-image: none;
  }
  .marquee__track {
    animation: none;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 0;
  }
  .marquee__group[aria-hidden="true"] { display: none; }
  .marquee__group { flex-wrap: wrap; justify-content: center; }
  .partner-logo { margin: 0 clamp(1rem, 3vw, 2rem); }
}

/* ============================================================
   REDESIGN (Mockup-Stufe: Hero + Leistungen)
   ============================================================ */

/* ---- Hero: diagonaler Verlauf – links satt (Lesbarkeit), rechts mehr Foto.
   Zweite Ebene dunkelt das untere Drittel ab (Stats + Trust-Zeile liegen dort). ---- */
.hero::before {
  background:
    linear-gradient(0deg, rgba(27, 29, 61, .8) 0%, rgba(27, 29, 61, .5) 25%, transparent 48%),
    linear-gradient(105deg,
      rgba(27, 29, 61, .94) 0%,
      rgba(31, 33, 68, .88) 38%,
      rgba(37, 40, 82, .74) 62%,
      rgba(37, 40, 82, .34) 100%);
}

/* Geometrischer Marken-Akzent: feine konzentrische Ringe, oben rechts */
.hero::after {
  content: "";
  position: absolute;
  top: -160px; right: -160px;
  width: 640px; height: 640px;
  z-index: -1;
  border-radius: 50%;
  background: repeating-radial-gradient(circle at center,
    rgba(255, 255, 255, .07) 0 1.5px, transparent 1.5px 64px);
  -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 70%);
          mask-image: radial-gradient(circle, #000 0%, transparent 70%);
  pointer-events: none;
}

/* Norm-Badges: kompakte Chips mit Häkchen – dunkler Chip sichert Lesbarkeit über hellem Foto */
.hero__badges li {
  display: inline-flex;
  align-items: center;
  background: rgba(27, 29, 61, .72);
  border-color: rgba(255, 255, 255, .3);
}
.hero__badges li::before {
  content: "✓";
  content: "✓" / "";
  color: var(--c-green);
  font-weight: 700;
  margin-right: .4rem;
}

/* Stats: größere Zahlen, feine Trennlinien */
.hero__stats { gap: 0; }
.hero__stat {
  padding-inline: clamp(1.25rem, 3vw, 2.5rem);
  border-left: 1px solid rgba(255, 255, 255, .18);
}
.hero__stat:first-child { padding-left: 0; border-left: none; }
.hero__stat dd { font-size: 1.85rem; }

/* Trust-Zeile unter den Stats */
.hero__trust {
  margin: 1.5rem 0 0;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
}

@media (max-width: 640px) {
  .hero__stats { gap: 1.25rem; }
  .hero__stat { padding-inline: 0; border-left: none; }
  /* Mobil: Textspalte füllt die Breite → Overlay gleichmäßig satt halten */
  .hero::before {
    background: linear-gradient(160deg,
      rgba(27, 29, 61, .93) 0%,
      rgba(37, 40, 82, .86) 55%,
      rgba(37, 40, 82, .74) 100%);
  }
  .hero::after { top: -120px; right: -150px; width: 420px; height: 420px; }
}

/* ---- Leistungen: ruhigere Karten, Icon-Chips mit Verlauf ---- */
.teaser__card { box-shadow: 0 4px 16px rgba(37, 40, 82, .06); }
.teaser__card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(37, 40, 82, .12); }
.teaser__card .card__icon {
  background: linear-gradient(135deg, rgba(141, 191, 66, .2), rgba(141, 191, 66, .05));
  border: 1px solid rgba(141, 191, 66, .3);
  border-radius: 12px;
}

/* ============================================================
   AUFTRAGGEBER-LEISTE (nur Namen als Text, KEINE Logos –
   siehe Hinweis im HTML: Freigabe vor Veröffentlichung)
   ============================================================ */
.partners__intro {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.partner-name {
  display: flex;
  align-items: center;
  white-space: nowrap;
  height: 52px;
  padding: 0 1.6rem;
  margin-right: clamp(1.25rem, 3vw, 2.5rem);
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: 999px;
  box-shadow: var(--shadow);
  color: var(--c-blue);
  font-weight: 600;
}
@media (max-width: 600px) {
  .partner-name { height: 44px; padding: 0 1.2rem; font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .partner-name { margin: .25rem clamp(.6rem, 2vw, 1.25rem); }
}

/* ============================================================
   SYMMETRIE-FEINSCHLIFF
   Grids mit fester Spaltenzahl, damit keine „hängenden“ Karten
   entstehen (z. B. 3+1 statt 2+2 bei mittleren Breiten).
   ============================================================ */

/* 4 Leistungs-Karten: 4 → 2×2 → 1 */
.teaser__grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .teaser__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .teaser__grid { grid-template-columns: 1fr; } }

/* 4 Werte-Karten: 4 → 2×2 → 1 */
.values { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .values { grid-template-columns: 1fr; } }

/* 4 Ablauf-Schritte: 4 → 2×2 → 1 */
.timeline { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .timeline { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .timeline { grid-template-columns: 1fr; } }

/* 7 Normen-Karten: letzte Karte mittig statt links „hängend“ */
.certs { grid-template-columns: repeat(3, 1fr); }
@media (min-width: 981px) {
  .certs .cert:nth-child(7):last-child { grid-column: 2; }
}
@media (max-width: 980px) {
  .certs { grid-template-columns: repeat(2, 1fr); }
  .certs .cert:nth-child(7):last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - var(--gap) / 2);
  }
}
@media (max-width: 640px) {
  .certs { grid-template-columns: 1fr; }
  .certs .cert:nth-child(7):last-child { grid-column: auto; justify-self: stretch; width: auto; }
}

/* 3 Team- & 3 Kontakt-Karten: 3 nebeneinander → sauber gestapelt */
.team { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 880px) { .team { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }
.contact-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; } }

/* Grüne Akzentlinie konsequent auf ALLEN Seitentiteln:
   zentrierte Titel → Linie mittig (siehe .section__title),
   linksbündige Titel (Für wen, Blog, Rechtsseiten) → Linie links */
.blog-hero__title,
.post__title {
  position: relative;
  padding-bottom: 1.4rem;
}
.blog-hero__title::after,
.post__title::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 40px; height: 3px;
  border-radius: 3px;
  background: var(--c-green);
}

/* Kurze Info-Karten (Werte, Kontakt) zentrieren – wie die Team-Karten.
   Textlastige Karten (Leistungen, Normen, Ablauf) bleiben bewusst linksbündig. */
.value { align-items: center; text-align: center; }
.contact-card { align-items: center; text-align: center; }

/* Unabhängigkeit: Intro-Zeile optisch zur Namensleiste gruppieren */
#unabhaengigkeit .prose--center { margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.partners__intro { margin-bottom: 0; }

/* ============================================================
   HERO – ZENTRIERTE VARIANTE
   Titel „Externe Audits. Unabhängig. Auf den Punkt.“ mittig;
   Lead, Buttons, Badges, Stats und Trust-Zeile ziehen mit.
   ============================================================ */
.hero__inner { text-align: center; }
.hero__title-seg { white-space: nowrap; }
.hero__lead { margin-inline: auto; }
.hero__actions { justify-content: center; }
.hero__badges { justify-content: center; }
.hero__stats { justify-content: center; }
/* Erster Stat bekommt wieder gleiches Innen-Padding wie die anderen –
   der linksbündige Sonderfall (padding-left: 0) wäre zentriert unsymmetrisch */
.hero__stat:first-child { padding-inline: clamp(1.25rem, 3vw, 2.5rem); }
@media (max-width: 640px) {
  .hero__stat:first-child { padding-inline: 0; }
}
/* Overlay symmetrisch statt links-lastig: Text steht jetzt mittig,
   daher gleichmäßige Abdunklung über die volle Breite (Kontrast) */
.hero::before {
  background:
    linear-gradient(0deg, rgba(27, 29, 61, .8) 0%, rgba(27, 29, 61, .5) 25%, transparent 48%),
    linear-gradient(180deg, rgba(27, 29, 61, .9) 0%, rgba(31, 33, 68, .82) 55%, rgba(37, 40, 82, .78) 100%);
}

/* „Wichtig“-Box als Info-Panel: Icon links, feiner blauer Rahmen */
.leistungen__note {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  background: var(--c-white);
  border: 1px solid rgba(37, 40, 82, .16);
  border-left: 4px solid var(--c-blue);
  padding: 1.15rem 1.4rem;
}
.leistungen__note-icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  color: var(--c-blue);
  /* auf Höhe der ersten Textzeile (Zeilenhöhe .98rem × 1.65 ≈ 26px, Icon 22px) */
  margin-top: 2px;
}
