/* ============================================================================
   Paffen Sicherheit – Landing Page Design System
   Shared styles for all Ads-LPs (Brandwache, Revierdienst,
   Sicherungsposten, Paffen Allgemein). All assets are self-hosted.
   ============================================================================ */

/* --- Fonts -------------------------------------------------------------- */
@font-face {
  font-family: "Bebas Neue";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/bebas-neue-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;
}
@font-face {
  font-family: "Bebas Neue";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/bebas-neue-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-variable.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-variable-italic.woff2") format("woff2");
}

/* --- Design Tokens ------------------------------------------------------ */
:root {
  /* Brand */
  --c-yellow: #fedf15;
  --c-yellow-hover: #ffd900;
  --c-navy: #101829;
  --c-navy-700: #1e2638;
  --c-navy-500: #2c3447;
  --c-red: #f40000;
  --c-red-hover: #d40000;

  /* Neutrals (warm-cool balanced) */
  --c-ink: #101829;
  --c-body: #475467;
  --c-muted: #98a2b3;
  --c-border: #eaecf0;
  --c-bg: #ffffff;
  --c-bg-soft: #f9fafb;
  --c-bg-warm: #fafaf7;

  /* Shadows – tinted, not pure black */
  --shadow-sm: 0 1px 2px rgba(16, 24, 64, 0.05);
  --shadow-md: 0 8px 24px -10px rgba(16, 24, 64, 0.18);
  --shadow-lg: 0 24px 50px -20px rgba(16, 24, 64, 0.28);

  /* Type */
  --ff-display: "Bebas Neue", "Inter", "Helvetica Neue", sans-serif;
  --ff-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --fs-display-xl: clamp(2rem, 3.5vw + 1rem, 4.35rem);
  --fs-display-lg: clamp(1.875rem, 3.2vw + 1rem, 3.75rem);
  --fs-display-md: clamp(1.625rem, 2vw + 1rem, 2.75rem);
  --fs-h3: clamp(1.25rem, 0.6vw + 1rem, 1.5rem);
  --fs-body-lg: 1.125rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;

  /* Spacing scale */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --sp-10: 128px;

  /* Radii */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-pill: 999px;

  /* Layout */
  --container: 1200px;
  --container-wide: 1320px;

  /* Z-index scale (no random 9999s) */
  --z-base: 1;
  --z-sticky: 50;
  --z-overlay: 100;

  /* Fixed header – wird per site.js aus gemessener Höhe gesetzt */
  --header-height: 71px;
}
@media (min-width: 720px) {
  :root {
    --header-height: 79px;
  }
}
@media (max-width: 719px) {
  :root {
    --header-height: 0px;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  overflow-x: hidden;
}

body {
  margin: 0;
  padding-top: var(--header-height);
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--c-body);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}
picture {
  display: contents;
}

a {
  color: var(--c-ink);
  text-decoration: none;
  transition: color 180ms ease, opacity 180ms ease;
}
a:hover { color: var(--c-navy-500); }
a:focus-visible {
  outline: 2px solid var(--c-yellow);
  outline-offset: 3px;
  border-radius: 2px;
}

button { font: inherit; cursor: pointer; }

::selection { background: var(--c-yellow); color: var(--c-ink); }

/* Skip link – a11y */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--c-navy);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--r-sm);
  z-index: var(--z-overlay);
}
.skip-link:focus { left: 16px; top: 16px; color: #fff; }

/* --- Typography --------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--ff-display);
  color: var(--c-ink);
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0.5px;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
p + p { margin-top: var(--sp-4); }

strong, b { color: var(--c-ink); font-weight: 600; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--ff-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-navy);
  padding: 6px 12px;
  background: var(--c-yellow);
  border-radius: var(--r-pill);
}

.text-lg { font-size: var(--fs-body-lg); }
.text-muted { color: var(--c-muted); }
.text-balance { text-wrap: balance; }

.num { font-variant-numeric: tabular-nums; }

/* Highlighted word: yellow under-stroke */
.hl {
  background-image: linear-gradient(transparent 62%, var(--c-yellow) 62%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  padding: 0 0.08em;
}
.section-dark .hl,
.cta-band .hl {
  color: #fff;
}

/* --- Layout helpers ----------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}
.container-wide {
  width: 100%;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}

section {
  padding-block: clamp(56px, 7vw, 112px);
}

.section-tight { padding-block: clamp(40px, 5vw, 80px); }

.section-dark {
  background: linear-gradient(180deg, var(--c-navy) 0%, var(--c-navy-700) 100%);
  color: #d8dde5;
  position: relative;
  overflow: hidden;
}
.section-dark::before {
  /* subtle radial spotlight + grain */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 80% 20%, rgba(254, 223, 21, 0.08) 0%, transparent 60%),
    radial-gradient(40% 40% at 10% 90%, rgba(254, 223, 21, 0.05) 0%, transparent 60%);
  pointer-events: none;
}
.section-dark h2,
.section-dark h3,
.section-dark h4 { color: #fff; }

.section-soft { background: var(--c-bg-soft); }

/* --- Header / Sticky Top Bar ------------------------------------------- */
/* Header inner uses the wider container so its right edge aligns with the Hero. */
.top-bar > .container {
  max-width: var(--container-wide);
}
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--c-border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
  transition: background 240ms ease, border-color 240ms ease,
    box-shadow 240ms ease;
}
@media (max-width: 719px) {
  .top-bar {
    position: relative;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  body {
    padding-top: 0;
  }
  .top-bar__cta-group {
    display: none;
  }
}
.top-bar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(254, 223, 21, 0.95) 18%, rgba(244, 0, 0, 0.22) 82%, transparent 100%);
  opacity: 0;
  transform: scaleX(0.72);
  pointer-events: none;
  transition: opacity 240ms ease, transform 240ms ease;
}
.top-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-block: 12px;
  min-width: 0;
  transition: padding 240ms ease;
}
.top-bar__logo { flex-shrink: 0; }
.top-bar__logo img {
  height: 40px;
  width: auto;
  transition: height 240ms ease;
}
@media (min-width: 720px) {
  .top-bar__inner { gap: var(--sp-5); padding-block: 13px; }
  .top-bar__logo img { height: 48px; }
}

@media (min-width: 720px) {
  .top-bar.is-stuck {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 251, 226, 0.92));
    border-bottom-color: rgba(234, 236, 240, 0.72);
    box-shadow: 0 18px 42px -32px rgba(16, 24, 41, 0.38);
  }
  .top-bar.is-stuck::after {
    opacity: 1;
    transform: scaleX(1);
  }
  .top-bar.is-stuck .top-bar__inner {
    padding-block: 9px;
  }
  .top-bar.is-stuck .top-bar__logo img {
    height: 44px;
  }
}

/* --- Phone CTA buttons -------------------------------------------------- */
.phone-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--c-red);
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--r-pill);
  box-shadow: 0 6px 20px -8px rgba(244, 0, 0, 0.5);
  transition: background 180ms ease, transform 180ms ease,
    box-shadow 220ms ease;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
@media (min-width: 720px) {
  .phone-cta {
    gap: 10px;
    padding: 12px 20px;
    font-size: 1rem;
  }
}
.phone-cta:hover {
  background: var(--c-red-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 26px -8px rgba(244, 0, 0, 0.55);
}
.phone-cta:active { transform: translateY(0); }
.phone-cta__icon {
  width: 18px;
  height: 18px;
  display: block;
}

.phone-cta--light {
  background: var(--c-yellow);
  color: var(--c-navy);
  box-shadow: 0 6px 20px -8px rgba(254, 223, 21, 0.6);
}
.phone-cta--light:hover {
  background: var(--c-yellow-hover);
  color: var(--c-navy);
  box-shadow: 0 10px 26px -8px rgba(254, 223, 21, 0.8);
}

.phone-cta--ghost-light {
  background: #fff;
  color: var(--c-navy);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
}
.phone-cta--ghost-light:hover {
  background: var(--c-bg-soft);
  color: var(--c-navy);
}

.top-bar__cta-group {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.top-bar__availability {
  display: none;
  font-size: var(--fs-small);
  color: var(--c-body);
  font-weight: 600;
  transition: color 240ms ease;
}
@media (min-width: 720px) {
  .top-bar__availability { display: inline; }
}
@media (min-width: 720px) {
  .top-bar.is-stuck .top-bar__availability {
    color: var(--c-navy-700);
  }
}

/* --- Hero --------------------------------------------------------------- */
.hero {
  padding-top: clamp(28px, 3vw, 56px);
  padding-bottom: clamp(64px, 6vw, 100px);
  background: linear-gradient(180deg, #fff 0%, var(--c-bg-soft) 100%);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
/* Soft, heavily blurred backdrop reusing the per-page hero image (--hero-bg-image).
   Provides a light color anmutung across the whole section without revealing detail. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--hero-bg-image, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(8px) saturate(1.2) brightness(1.0);
  opacity: 0.42;
  transform: scale(1.2);
  pointer-events: none;
}
/* Light wash on top to keep the section bright, not dark. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.25) 55%, transparent 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(245, 247, 250, 0.65) 100%);
  pointer-events: none;
}
.hero > .container {
  position: relative;
  z-index: 1;
  max-width: var(--container-wide);
}

/* Per-page Hero: `--lp-hero-bg` enthaelt url(); relative urls loesen beim var()-Einsatz gegen diese Datei (_shared/css/), daher ../lp/<thema>/ = Ordner _shared/lp/<thema>/. */
.hero--brandwache {
  --hero-bg-image: var(--lp-hero-bg, none);
}
.hero--revierdienst {
  --hero-bg-image: var(--lp-hero-bg, none);
}
.hero--sicherungsposten {
  --hero-bg-image: var(--lp-hero-bg, none);
}
.hero--allgemein {
  --hero-bg-image: var(--lp-hero-bg, none);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
}
.hero__copy .eyebrow + .hero__title {
  margin-top: clamp(12px, 1.6vw, 18px);
}
.hero__title {
  font-size: var(--fs-display-xl);
  font-family: var(--ff-display);
  color: var(--c-ink);
  max-width: min(100%, 25ch);
  letter-spacing: 0.5px;
  line-height: 1;
  text-wrap: balance;
  overflow-wrap: normal;
  hyphens: manual;
}
@media (max-width: 480px) {
  .hero__title { letter-spacing: 0; }
}
.hero__subtitle {
  margin-top: var(--sp-5);
  font-family: var(--ff-body);
  font-size: var(--fs-body-lg);
  font-weight: 500;
  color: var(--c-body);
  max-width: 56ch;
  line-height: 1.5;
  text-wrap: balance;
}
.hero__usps {
  list-style: none;
  padding: 0;
  margin: var(--sp-6) 0 var(--sp-6);
  display: grid;
  gap: 12px;
  max-width: 56ch;
}
.hero__usps li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 14px;
  align-items: start;
  font-weight: 600;
  color: var(--c-ink);
  line-height: 1.4;
}
.hero__usps li > span {
  display: block;
  padding-top: 4px;
}
.hero__usps li::before {
  content: "";
  width: 30px;
  height: 30px;
  background: url("../img/check-yellow.svg") center / contain no-repeat;
  margin-top: 0;
}
.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: var(--sp-5);
}
.hero__cta-row .availability {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--c-ink);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
}
.hero__cta-row .availability::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--c-red);
  box-shadow: 0 0 0 4px rgba(244, 0, 0, 0.12);
}

.hero__media {
  --hero-media-height: clamp(360px, 52vw, 620px);
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: var(--hero-media-height);
  padding: clamp(16px, 2vw, 28px) clamp(18px, 3vw, 40px) 0;
  overflow: visible;
}
.hero__media::before {
  content: "";
  position: absolute;
  inset: 16% 0 0;
  z-index: -1;
  border-radius: var(--r-lg);
  background:
    radial-gradient(70% 90% at 80% 18%, rgba(254, 223, 21, 0.08) 0%, transparent 58%),
    linear-gradient(180deg, rgba(16, 24, 41, 0.18) 0%, rgba(16, 24, 41, 0.3) 100%),
    var(--hero-stage-image, linear-gradient(180deg, var(--c-navy), var(--c-navy-700))) var(--hero-stage-position, center center) / cover;
  box-shadow: var(--shadow-lg);
}
.hero__media img {
  position: relative;
  z-index: 1;
  width: auto;
  max-width: 100%;
  max-height: var(--hero-media-height);
  object-fit: contain;
  filter: drop-shadow(0 22px 24px rgba(16, 24, 41, 0.2));
}
.hero__media--vehicle {
  --hero-media-height: clamp(330px, 38vw, 516px);
  align-items: flex-end;
  padding: clamp(16px, 2vw, 28px) clamp(18px, 3vw, 40px) 0;
}
.hero__media--vehicle::before {
  inset: 0;
}
.hero__media--brandwache {
  --hero-stage-image: var(--lp-hero-bg, none);
}
.hero__media--revierdienst {
  --hero-stage-image: var(--lp-hero-bg, none);
  justify-content: flex-end;
  align-items: flex-end;
  padding: clamp(16px, 2vw, 28px) 0 0 clamp(18px, 3vw, 40px);
  border-radius: var(--r-lg);
  overflow: hidden;
  isolation: isolate;
  contain: paint;
  /* Safari: overflow+border-radius clippt positionierte Kinder mit filter oft nicht (unten rechts). */
  clip-path: inset(0 round var(--r-lg));
  transform: translateZ(0);
}
.hero__media--revierdienst::before {
  border-radius: inherit;
}
.hero__media--revierdienst picture {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  width: 100%;
  min-height: var(--hero-media-height);
  border-radius: inherit;
  overflow: hidden;
  clip-path: inset(0 round var(--r-lg));
  filter: drop-shadow(0 22px 24px rgba(16, 24, 41, 0.2));
}
@media (min-width: 720px) {
  .hero__media--vehicle.hero__media--revierdienst picture {
    justify-content: flex-end;
    align-items: flex-end;
  }
}
.hero__media--sicherungsposten {
  --hero-stage-image: var(--lp-hero-bg, none);
}
.hero__media--allgemein {
  --hero-stage-image: var(--lp-hero-bg, none);
}
.hero__media--vehicle img {
  max-width: 100%;
  max-height: calc(var(--hero-media-height) - clamp(18px, 3vw, 34px));
  object-fit: contain;
  filter: drop-shadow(0 22px 24px rgba(16, 24, 41, 0.2));
}
.hero__media--vehicle.hero__media--revierdienst img {
  position: relative;
  max-width: 150%;
  object-position: right bottom;
  filter: none;
}
@media (min-width: 960px) {
  .hero__media--vehicle.hero__media--revierdienst img {
    right: -40%;
  }
}
@media (min-width: 720px) and (max-width: 959px) {
  .hero__media--vehicle.hero__media--revierdienst img {
    right: 0;
    max-width: 150%;
  }
}
@media (max-width: 719px) {
  .hero__media--vehicle.hero__media--revierdienst img {
    right: -25%;
    max-width: 120%;
  }
}
@media (min-width: 720px) {
  .hero__media--vehicle picture {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    min-height: var(--hero-media-height);
  }
  .hero__media--vehicle img {
    width: auto;
    height: auto;
  }
}

@media (min-width: 720px) and (max-width: 959px) {
  .hero__media {
    margin-inline: auto;
    width: 100%;
    max-width: 920px;
  }
}
@media (min-width: 720px) {
  .hero__media--portrait {
    --hero-media-height: clamp(430px, 58vw, 620px);
  }
}
@media (max-width: 719px) {
  .hero {
    padding-bottom: clamp(56px, 6vw, 80px);
  }
  .hero__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .hero__usps {
    order: 1;
  }
  .hero__cta-row {
    order: 3;
    width: 100%;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 12px;
  }
  .hero__cta-row .phone-cta {
    width: 100%;
    justify-content: center;
  }
  .hero__cta-row .availability {
    justify-content: center;
  }
  .hero__media {
    --hero-media-height: clamp(360px, 92vw, 430px);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 0;
    padding: 18px 18px 0;
  }
  .hero__media::before {
    top: 18px;
    right: 0;
    bottom: auto;
    left: 0;
    height: var(--hero-media-height);
  }
  .hero__media img {
    max-height: var(--hero-media-height);
  }
  .hero__media picture {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: var(--hero-media-height);
  }
  .hero__media--vehicle {
    --hero-media-height: clamp(300px, 78vw, 360px);
  }
  .hero__media--vehicle picture {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    min-height: var(--hero-media-height);
  }
  .hero__media--vehicle img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(var(--hero-media-height) - 14px);
  }
  .hero__media--revierdienst {
    align-items: flex-end;
    justify-content: flex-end;
    padding: 18px 0 0 18px;
  }
  .hero__media--revierdienst picture,
  .hero__media--vehicle.hero__media--revierdienst picture {
    justify-content: flex-end;
    align-items: flex-end;
  }
}

/* --- Section headings --------------------------------------------------- */
.section-head {
  display: grid;
  gap: var(--sp-3);
  margin-bottom: var(--sp-7);
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
}
.section-head h2 {
  font-size: var(--fs-display-lg);
  line-height: 1.05;
}
.section-head__lead {
  font-size: var(--fs-body-lg);
  color: var(--c-body);
  line-height: 1.5;
  text-wrap: balance;
}
.section-head--left {
  text-align: left;
  margin-inline: 0;
}

/* --- Trust strip (Referenzen) ------------------------------------------ */
.trust {
  padding-block: clamp(48px, 5vw, 80px);
  background: #fff;
  border-bottom: 1px solid var(--c-border);
}
.trust__logos {
  display: block;
  width: 100%;
  max-width: 1080px;
  margin: var(--sp-6) auto 0;
  height: auto;
}

/* --- Experte / Long form block ----------------------------------------- */
/* Uses the full parent container width (1200px) for parity with the other sections.
   The photo collage is a direct child of .expert (sibling of .expert__body) so it
   spans the full section width while the body keeps its readable text width. */
.expert {
  max-width: 100%;
  margin-inline: auto;
}
.expert__heading {
  font-size: var(--fs-display-lg);
}
.expert__body {
  max-width: 920px;
  margin-inline: auto;
}
.expert__intro {
  margin-top: var(--sp-5);
}
.expert__body p {
  max-width: 760px;
  font-size: var(--fs-body-lg);
  line-height: 1.7;
}
.expert__body p + p { margin-top: var(--sp-6); }
.expert__body .expert__list + p { margin-top: var(--sp-7); }
.expert__list {
  list-style: none;
  padding: 0;
  margin: var(--sp-6) 0 0;
  display: grid;
  gap: var(--sp-4) var(--sp-7);
}
@media (min-width: 760px) {
  .expert__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.expert__list li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 14px;
  align-items: center;
  color: var(--c-ink);
  font-weight: 600;
  line-height: 1.45;
}
.expert__list li::before {
  content: "";
  width: 30px;
  height: 30px;
  background: url("../img/check-yellow.svg") center / contain no-repeat;
  margin-top: 0;
}
.expert__cta {
  margin-top: var(--sp-6);
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
  align-items: center;
}
.expert__availability {
  font-size: var(--fs-small);
  color: var(--c-body);
  font-weight: 600;
}

.expert__media {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 180px;
  gap: var(--sp-4);
}
.expert__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
}
.expert__media .span-2 { grid-column: span 2; grid-row: span 1; }

/* Single-photo variant */
.expert__photo {
  position: relative;
  /* Direct child of .expert, so it spans the full section content width by default. */
  margin: var(--sp-7) auto 0;
  max-width: 1000px;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  background: transparent;
}
.expert__photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: none;
}
.expert__photo::after {
  content: none;
}
.expert__photo + .expert__body { margin-top: var(--sp-7); }

/* --- Service grid (Leistungen) ----------------------------------------- */
.services {
  background: var(--c-bg-soft);
}
.services__intro {
  color: var(--c-body);
  font-size: var(--fs-body-lg);
  text-wrap: balance;
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
}
@media (min-width: 720px) { .services__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .services__grid { grid-template-columns: repeat(5, 1fr); } }

.service-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  text-align: center;
  transition: border-color 220ms ease, transform 220ms ease,
    box-shadow 280ms ease;
}
.service-card:hover {
  border-color: var(--c-yellow);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.service-card img {
  width: 64px;
  height: 64px;
}
.service-card span {
  font-weight: 600;
  color: var(--c-ink);
  font-size: 0.95rem;
  line-height: 1.3;
  text-wrap: balance;
}

/* --- Dark CTA Band ------------------------------------------------------ */
.cta-band {
  background: linear-gradient(180deg, var(--c-navy) 0%, var(--c-navy-700) 100%);
  color: #fff;
  position: relative;
  overflow: visible;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 80% at 90% 10%, rgba(254, 223, 21, 0.1) 0%, transparent 60%),
    radial-gradient(40% 60% at 0% 100%, rgba(254, 223, 21, 0.06) 0%, transparent 60%);
  pointer-events: none;
}
.cta-band__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-7);
  align-items: end;
  position: relative;
  z-index: 1;
}
@media (min-width: 960px) {
  .cta-band__inner { grid-template-columns: 1.4fr 1fr; }
}
.cta-band__title {
  font-size: var(--fs-display-lg);
  color: #fff;
  letter-spacing: 0.5px;
}
.cta-band__lead {
  margin-top: var(--sp-4);
  font-size: var(--fs-body-lg);
  color: #d8dde5;
  text-wrap: balance;
  max-width: 52ch;
}
.cta-band__availability {
  color: #d8dde5;
  font-weight: 600;
  font-size: 0.9rem;
}
.cta-band__actions {
  margin-top: var(--sp-6);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4);
}
.cta-band__photo {
  order: -1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 190px;
  margin-top: -88px;
  margin-bottom: -40px;
  pointer-events: none;
  overflow: visible;
}
.cta-band__photo picture {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.cta-band__photo img {
  width: auto;
  max-width: 80%;
  max-height: 260px;
  margin-bottom: 0;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 22px 30px rgba(0, 0, 0, 0.28));
}
@media (max-width: 719px) {
  .cta-band {
    padding-block: clamp(56px, 10vw, 72px) 0;
    overflow: hidden;
  }
  .cta-band__inner {
    gap: var(--sp-6);
  }
  .cta-band__photo {
    order: initial;
    width: calc(100% + var(--sp-5) * 2);
    min-height: 0;
    margin: var(--sp-4) calc(var(--sp-5) * -1) 0;
    align-items: flex-end;
    background: none;
  }
  .cta-band__photo img {
    max-width: min(78%, 340px);
    max-height: clamp(300px, 82vw, 380px);
    margin-bottom: 0;
  }
  .cta-band__actions {
    justify-content: center;
    text-align: center;
  }
  .cta-band__actions .phone-cta {
    width: 100%;
    justify-content: center;
  }
  .cta-band__availability {
    width: 100%;
    text-align: center;
  }
}
@media (min-width: 720px) and (max-width: 959px) {
  .cta-band {
    padding-block: clamp(56px, 7vw, 72px) 0;
    overflow: hidden;
  }
  .cta-band__inner {
    min-height: clamp(360px, 48vw, 430px);
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
    gap: var(--sp-5);
    align-items: end;
  }
  .cta-band__inner > :first-child {
    align-self: center;
    padding-bottom: clamp(40px, 5vw, 64px);
  }
  .cta-band__photo {
    order: initial;
    align-self: end;
    min-height: 0;
    height: 100%;
    margin: 0;
    justify-content: center;
    align-items: flex-end;
  }
  .cta-band__photo img {
    max-width: 100%;
    max-height: clamp(390px, 52vw, 470px);
    object-position: bottom center;
  }
}
@media (min-width: 960px) {
  .cta-band {
    padding-block: clamp(56px, 5vw, 84px);
  }
  .cta-band__inner {
    min-height: 280px;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
    position: static;
  }
  .cta-band__inner > :first-child {
    position: relative;
    z-index: 1;
    max-width: 660px;
  }
  .cta-band__photo {
    order: initial;
    position: absolute;
    /* Bündig zum Container-Rand (max-width 1200px), nicht zum Viewport-Rand */
    right: max(var(--sp-5), calc((100vw - var(--container)) / 2));
    bottom: 0;
    width: min(44vw, clamp(360px, 32vw, 470px));
    height: clamp(420px, 11.5vw + 310px, 520px);
    justify-content: flex-end;
    min-height: 0;
    margin: 0;
  }
  .cta-band__photo img {
    width: auto;
    height: 100%;
    max-width: 100%;
    max-height: none;
    object-position: bottom center;
  }
}

/* --- Standorte (locations) --------------------------------------------- */
.locations__grid {
  display: grid;
  gap: clamp(36px, 5vw, 80px);
  grid-template-columns: 1fr;
  align-items: center;
  margin-top: var(--sp-6);
}
@media (min-width: 960px) {
  .locations__grid { grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr); }
}
.locations__map {
  position: relative;
  padding: var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 390px;
  isolation: isolate;
  overflow: visible;
}
.locations__map::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 50%, rgba(254, 223, 21, 0.18) 0 2px, transparent 3px),
    radial-gradient(circle at 50% 50%, transparent 0 33%, rgba(16, 24, 41, 0.08) 33.4% 33.8%, transparent 34.2%),
    radial-gradient(circle at 50% 50%, transparent 0 52%, rgba(254, 223, 21, 0.24) 52.4% 52.8%, transparent 53.2%),
    linear-gradient(126deg, transparent 0 31%, rgba(254, 223, 21, 0.28) 31.2% 31.8%, transparent 32% 67%, rgba(16, 24, 41, 0.12) 67.2% 67.8%, transparent 68%),
    linear-gradient(90deg, rgba(16, 24, 41, 0.055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(16, 24, 41, 0.055) 1px, transparent 1px),
    radial-gradient(ellipse at 52% 48%, rgba(254, 223, 21, 0.12), transparent 62%);
  background-size:
    auto,
    auto,
    auto,
    auto,
    34px 34px,
    34px 34px,
    auto;
  mask-image: radial-gradient(ellipse at 50% 50%, #000 0 66%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 0 66%, transparent 78%);
  opacity: 0.95;
}
.locations__map::after {
  content: "Einsatzgebiet NRW";
  position: absolute;
  right: clamp(12px, 5vw, 38px);
  bottom: clamp(12px, 2vw, 28px);
  padding: 8px 12px;
  border-left: 4px solid var(--c-yellow);
  background: rgba(255, 255, 255, 0.9);
  color: var(--c-navy);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 14px 32px -24px rgba(16, 24, 41, 0.55);
}
.locations__map img {
  width: 100%;
  max-width: 365px;
  height: auto;
  filter: drop-shadow(0 24px 30px rgba(16, 24, 41, 0.14));
}

.locations__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(14px, 2vw, 22px);
  grid-template-columns: 1fr;
  position: relative;
}
@media (min-width: 600px) {
  .locations__list { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .locations__list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .location-card { grid-column: span 3; }
  .location-card:nth-child(5) { grid-column: 2 / span 3; }
}
@media (max-width: 599px) {
  .locations__list::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 24px;
    bottom: 24px;
    width: 2px;
    background: linear-gradient(180deg, var(--c-yellow), rgba(254, 223, 21, 0));
  }
}

.location-card {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--sp-4);
  align-items: center;
  min-height: 108px;
  padding: 18px 20px;
  border: 1px solid rgba(234, 236, 240, 0.9);
  background: rgba(255, 255, 255, 0.78);
  border-radius: 18px;
  box-shadow: 0 16px 36px -28px rgba(16, 24, 41, 0.45);
  backdrop-filter: blur(8px);
  transition: border-color 220ms ease, transform 220ms ease, box-shadow 280ms ease;
}
.location-card:hover {
  border-color: var(--c-yellow);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.location-card img {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  filter: drop-shadow(0 8px 12px rgba(16, 24, 41, 0.12));
}
.location-card__addr {
  color: var(--c-body);
  line-height: 1.4;
}
.location-card__addr strong {
  display: block;
  color: var(--c-ink);
  font-weight: 600;
}
section[aria-labelledby="locations-heading"] + .cta-band {
  margin-top: clamp(32px, 5vw, 64px);
}

/* --- Footer ------------------------------------------------------------- */
.footer {
  background: #fff;
  border-top: 1px solid var(--c-border);
  padding-block: var(--sp-7);
}
.footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  color: var(--c-muted);
  font-size: var(--fs-small);
}
.footer__legal {
  display: flex;
  gap: var(--sp-5);
  flex-wrap: wrap;
}
.footer__legal a {
  color: var(--c-body);
  font-weight: 500;
}
.footer__legal a:hover { color: var(--c-ink); }

/* --- Cookie consent box ------------------------------------------------ */
.cookie-banner {
  position: fixed;
  z-index: calc(var(--z-overlay) + 10);
  left: 50%;
  right: auto;
  bottom: max(16px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  width: min(calc(100vw - 32px), 520px);
  transform: translateX(-50%);
  max-height: min(88vh, 420px);
  padding: var(--sp-5);
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow:
    0 4px 12px rgba(16, 24, 41, 0.08),
    0 16px 40px -8px rgba(16, 24, 41, 0.22),
    0 32px 64px -16px rgba(16, 24, 41, 0.28);
}
.cookie-banner__title {
  margin: 0 0 var(--sp-3);
  flex-shrink: 0;
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--c-ink);
}
.cookie-banner__scroll {
  position: relative;
  flex-shrink: 0;
  margin: 0 0 var(--sp-4);
}
.cookie-banner__scroll::before,
.cookie-banner__scroll::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5rem;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
}
.cookie-banner__scroll::before {
  top: 0;
  background: linear-gradient(to bottom, var(--c-bg) 15%, transparent);
}
.cookie-banner__scroll::after {
  bottom: 0;
  background: linear-gradient(to top, var(--c-bg) 15%, transparent);
  opacity: 1;
}
.cookie-banner__scroll.is-scrolled::before {
  opacity: 1;
}
.cookie-banner__scroll.is-at-bottom::after {
  opacity: 0;
}
.cookie-banner__body {
  max-height: 7rem;
  margin: 0 calc(-1 * var(--sp-1));
  padding: 0 var(--sp-1);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--c-border) transparent;
}
.cookie-banner__body::-webkit-scrollbar {
  width: 6px;
}
.cookie-banner__body::-webkit-scrollbar-thumb {
  background: var(--c-border);
  border-radius: var(--r-pill);
}
.cookie-banner__text {
  margin: 0 0 var(--sp-3);
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--c-body);
}
.cookie-banner__text:last-child {
  margin-bottom: 0;
}
.cookie-banner__text a {
  color: var(--c-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner__text a:hover {
  color: var(--c-navy-700);
}
.cookie-banner__footer {
  display: flex;
  flex-shrink: 0;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.cookie-banner__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2) var(--sp-3);
  margin: 0;
  padding: 0;
  font-size: 0.75rem;
  line-height: 1.35;
}
.cookie-banner__legal a {
  color: var(--c-muted);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner__legal a:hover {
  color: var(--c-ink);
}
.cookie-banner__actions {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: flex-end;
  margin-left: auto;
}
.cookie-banner__btn {
  font-family: var(--ff-body);
  font-size: var(--fs-small);
  font-weight: 700;
  line-height: 1.2;
  padding: 10px 18px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.cookie-banner__btn--primary {
  background: var(--c-yellow);
  color: var(--c-ink);
  border-color: var(--c-yellow);
}
.cookie-banner__btn--primary:hover {
  background: var(--c-yellow-hover);
  border-color: var(--c-yellow-hover);
}
.cookie-banner__btn--ghost {
  background: transparent;
  color: var(--c-body);
  border-color: var(--c-border);
}
.cookie-banner__btn--ghost:hover {
  background: var(--c-bg-soft);
  color: var(--c-ink);
}
@media (min-width: 720px) {
  .cookie-banner {
    left: auto;
    right: max(16px, env(safe-area-inset-right));
    width: min(calc(100vw - 48px), 640px);
    max-height: min(88vh, 460px);
    padding: var(--sp-6);
    transform: none;
  }
  .cookie-banner__body {
    max-height: 7rem;
  }
}

/* --- Sticky mobile call bar -------------------------------------------- */
.mobile-call-bar {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: var(--z-overlay);
  display: flex;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
}
.mobile-call-bar .phone-cta {
  width: 100%;
  justify-content: center;
  padding: 14px 20px;
  font-size: 1.05rem;
  box-shadow: 0 12px 30px -10px rgba(244, 0, 0, 0.55);
}
@media (min-width: 720px) {
  .mobile-call-bar { display: none; }
}
body.is-past-hero:not(.is-footer-visible) .mobile-call-bar {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
body.is-footer-visible .mobile-call-bar {
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  pointer-events: none;
}

/* --- Visually hidden ---------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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