/* ============================================================
   SCHEIDELER – Corporate Website
   Global Stylesheet
   DIN Regular/Bold | Mobile-First | CSS Custom Properties
   ============================================================ */

/* ── Fonts ────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap');

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  /* Dachmarke */
  --color-gray:        #bebebe;   /* RGB 190/190/190 */
  --color-black:       #000000;

  /* Verfahrenstechnik */
  --color-red:         #ec1b2e;   /* RGB 236/27/46 */
  --color-red-dark:    #c4162a;

  /* Dienstleistungen */
  --color-blue:        #0066b2;   /* RGB 0/102/178 */
  --color-blue-dark:   #004f8a;

  /* Akzentfarben */
  --color-cyan:        #0094c8;   /* RGB 0/148/200 */
  --color-green:       #00ae4d;   /* RGB 0/174/77  */
  --color-orange:      #f4811f;   /* RGB 244/129/31 */

  /* Neutrals */
  --color-white:       #ffffff;
  --color-off-white:   #f5f6f7;
  --color-light-gray:  #e8e9ea;
  --color-mid-gray:    #6b7280;
  --color-dark-gray:   #1a1a1a;

  /* Typography */
  --font-family:       "DIN", "DIN Next", "DM Sans", Arial, sans-serif;
  --font-size-xs:      0.75rem;
  --font-size-sm:      0.875rem;
  --font-size-base:    1rem;
  --font-size-lg:      1.125rem;
  --font-size-xl:      1.25rem;
  --font-size-2xl:     1.5rem;
  --font-size-3xl:     1.875rem;
  --font-size-4xl:     2.25rem;
  --font-size-5xl:     3rem;
  --font-size-6xl:     3.75rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Layout */
  --container-max: 1280px;
  --container-padding: 1.25rem;

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.10), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:  0 4px 6px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg:  0 10px 25px rgba(0,0,0,.12), 0 4px 6px rgba(0,0,0,.08);
  --shadow-xl:  0 20px 50px rgba(0,0,0,.15);

  /* Border radius */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full: 9999px;
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  color: var(--color-dark-gray);
  background: var(--color-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
html { overflow-x: clip; }

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── Layout Utilities ──────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.section {
  padding-block: var(--space-20);
}

.section--sm {
  padding-block: var(--space-12);
}

.section--lg {
  padding-block: var(--space-32);
}

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.heading-xl {
  font-size: clamp(var(--font-size-4xl), 5vw, var(--font-size-6xl));
}

.heading-lg {
  font-size: clamp(var(--font-size-3xl), 4vw, var(--font-size-5xl));
}

.heading-md {
  font-size: clamp(var(--font-size-2xl), 3vw, var(--font-size-4xl));
}

.heading-sm {
  font-size: clamp(var(--font-size-xl), 2vw, var(--font-size-3xl));
}

.text-lead {
  font-size: var(--font-size-lg);
  line-height: 1.75;
}

.text-sm { font-size: var(--font-size-sm); }
.text-center { text-align: center; }
.text-white { color: var(--color-white); }
.text-red { color: var(--color-red); }
.text-blue { color: var(--color-blue); }
.text-gray { color: var(--color-mid-gray); }

/* ── Color Utilities ───────────────────────────────────────── */
.bg-white { background: var(--color-white); }
.bg-off-white { background: var(--color-off-white); }
.bg-dark { background: var(--color-dark-gray); color: var(--color-white); }
.bg-red { background: var(--color-red); color: var(--color-white); }
.bg-blue { background: var(--color-blue); color: var(--color-white); }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.75rem;
  font-size: var(--font-size-base);
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: all var(--transition-base);
  white-space: normal;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: var(--font-size-sm);
  max-width: 100%;
  overflow-wrap: anywhere;
}

.btn-primary-red {
  background: var(--color-red);
  color: var(--color-white);
  border-color: var(--color-red);
}
.btn-primary-red:hover {
  background: var(--color-red-dark);
  border-color: var(--color-red-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-primary-blue {
  background: var(--color-blue);
  color: var(--color-white);
  border-color: var(--color-blue);
}
.btn-primary-blue:hover {
  background: var(--color-blue-dark);
  border-color: var(--color-blue-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline-white {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}
.btn-outline-white:hover {
  background: var(--color-white);
  color: var(--color-dark-gray);
  transform: translateY(-1px);
}

.btn-outline-red {
  background: transparent;
  color: var(--color-red);
  border-color: var(--color-red);
}
.btn-outline-red:hover {
  background: var(--color-red);
  color: var(--color-white);
}

.btn-outline-blue {
  background: transparent;
  color: var(--color-blue);
  border-color: var(--color-blue);
}
.btn-outline-blue:hover {
  background: var(--color-blue);
  color: var(--color-white);
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: var(--font-size-base);
}

/* ── Header / Navigation ───────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow var(--transition-base);
}

.site-header.scrolled {
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-logo img {
  height: 44px;
  width: auto;
}

.main-nav {
  display: none;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-item {
  position: relative;
}

.site-header .main-nav .nav-link,
.site-header .main-nav .nav-list .nav-link {
  display: block;
  padding: var(--space-2) var(--space-4);
  font-size: 16px;
  line-height: 1.4;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-dark-gray);
  transition: color var(--transition-fast);
  border-radius: var(--radius-sm);
}

.site-header .main-nav .nav-link:hover,
.site-header .main-nav .nav-link.active {
  color: var(--color-red);
}

.site-header .main-nav .nav-link.nav-link--cta {
  background: var(--color-red);
  color: var(--color-white) !important;
  padding: 0.5rem 1.25rem;
}
.site-header .main-nav .nav-link.nav-link--cta:hover {
  background: var(--color-red-dark);
  color: var(--color-white) !important;
}

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 8px;
  min-width: 300px;
  background: var(--color-white);
  border: 1px solid var(--color-light-gray);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base), transform var(--transition-base);
  transition-delay: 220ms;
  pointer-events: none;
}

/* Invisible hover bridge so the dropdown doesn't close when crossing the gap */
.nav-item:has(.nav-dropdown)::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 16px;
  pointer-events: none;
}

.nav-item:hover::after,
.nav-item:focus-within::after {
  pointer-events: auto;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
  transition-delay: 0s;
}

.dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.dropdown-col {
  padding: var(--space-6);
}

.dropdown-col:first-child {
  border-right: 1px solid var(--color-light-gray);
}

.dropdown-label {
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

a.dropdown-label:hover {
  opacity: 0.7;
}

.dropdown-label--red { color: var(--color-red); }
.dropdown-label--blue { color: var(--color-blue); }

.dropdown-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dropdown-dot--red { background: var(--color-red); }
.dropdown-dot--blue { background: var(--color-blue); }

.dropdown-link {
  display: block;
  padding: var(--space-2) 0;
  font-size: var(--font-size-sm);
  color: var(--color-mid-gray);
  transition: color var(--transition-fast);
  border-bottom: 1px solid transparent;
}

.dropdown-link:hover {
  color: var(--color-dark-gray);
}

/* Mobile burger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-dark-gray);
  transition: all var(--transition-base);
  transform-origin: center;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-white);
  z-index: 999;
  overflow-y: auto;
  padding: var(--space-6) var(--container-padding);
}

.mobile-nav.open {
  display: block;
}

.mobile-nav-link {
  display: block;
  padding: var(--space-4) 0;
  font-size: var(--font-size-xl);
  font-weight: 700;
  border-bottom: 1px solid var(--color-light-gray);
}

.mobile-nav-sub {
  padding-left: var(--space-4);
  padding-top: var(--space-2);
}

.mobile-nav-sub-link {
  display: block;
  padding: var(--space-2) 0;
  color: var(--color-mid-gray);
  font-size: var(--font-size-base);
}

/* ── Hero Section ──────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 10vh;
  overflow: hidden;
  margin-top: 72px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  /* Hellste noch gut lesbare Variante: deutlich transparenter, Lesbarkeit über Text-Shadow */
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.32) 0%,
    rgba(0, 0, 0, 0.20) 45%,
    rgba(0, 0, 0, 0.05) 100%
  );
  z-index: 1;
}

/* Hero-Text ohne Kasten — Text-Shadow sorgt für Lesbarkeit auf dem Stausee-Bild */
.hero__panel {
  display: block;
  max-width: 780px;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 0;
  border: 0;
  box-shadow: none;
}
.hero__panel .hero__title,
.hero__panel .hero__subtitle,
.hero__panel .hero__eyebrow {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75), 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* Generischer Bild-Copyright — funktioniert in allen Bild-Wrappern (Hero, Lake, Page-Hero) */
.image-credit,
.hero__credit {
  position: absolute;
  bottom: 12px;
  right: 16px;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,.7);
  text-shadow: 0 1px 2px rgba(0,0,0,.5);
  z-index: 3;
  pointer-events: none;
}

/* Wrapper für Content-Fotos: fügt automatisch „© Scheideler" unten rechts ein.
   width:fit-content + margin:auto sorgt dafür, dass der Wrapper nur so breit wie
   das sichtbare Bild ist — bei object-fit:contain sitzt der Credit sonst am
   Container-Rand statt am Bild-Rand. */
.credit-wrap {
  position: relative;
  display: block;
  line-height: 0;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}
.credit-wrap::after {
  content: "© Scheideler";
  position: absolute;
  bottom: 12px;
  right: 16px;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,.75);
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
  z-index: 3;
  pointer-events: none;
  line-height: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-bottom: var(--space-20);
  padding-top: var(--space-20);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gray);
  margin-bottom: var(--space-4);
}

.hero__eyebrow-line {
  display: none; /* Kunde: alle Eyebrow-Striche entfernen */
}

.hero__title {
  color: var(--color-white);
  max-width: 750px;
  margin-bottom: var(--space-6);
}

.hero__title span.highlight-red {
  color: var(--color-red);
}
.hero__title span.highlight-blue {
  color: var(--color-cyan);
}

.hero__subtitle {
  color: rgba(255,255,255,.92);
  max-width: 580px;
  margin-bottom: var(--space-10);
  font-size: var(--font-size-lg);
  line-height: 1.7;
}

.hero__eyebrow {
  color: #ffffff;
}

/* .hero__eyebrow-line wurde oben bereits auf display:none gesetzt (Kunden-Wunsch) */

.hero__cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* Curve divider — top of hero (white arc dipping into the lake image) */
.hero__curve {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 3;
  line-height: 0;
  pointer-events: none;
}

.hero__curve--top {
  top: -1px;
  display: none; /* Kunde: Hintergrundbild ohne Bogenanschnitt oben, gerade */
}

.hero__curve svg {
  display: block;
  width: 100%;
  height: 80px;
}

/* ── Trust Bar ─────────────────────────────────────────────── */
.trust-bar {
  background: var(--color-dark-gray);
  color: var(--color-white);
  padding-block: var(--space-6);
}

.trust-bar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  justify-content: center;
  align-items: center;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--font-size-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.trust-item__icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  opacity: 0.8;
}

/* ── Section Headers ───────────────────────────────────────── */
.section-header {
  margin-bottom: var(--space-12);
}

.section-header--center {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: var(--space-12);
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-3);
}

/* Dekorative Sektionsnummer im Hintergrund (z. B. 01 / 02 / 03) */
.section-counter {
  display: none; /* auf Mobile ausblenden, damit nichts überläuft */
  position: absolute;
  top: var(--space-8);
  right: var(--space-6);
  font-size: 120px;
  font-weight: 800;
  line-height: 1;
  color: rgba(0, 0, 0, 0.04);
  letter-spacing: -0.05em;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
@media (min-width: 768px) {
  .section-counter { display: block; font-size: 200px; right: var(--space-12); }

  /* Produktbeispiel: Zwei-Spalten-Layout ab Tablet (Text links, Bild rechts – Kasten endet mit Bild) */
  .product-example-grid {
    grid-template-columns: minmax(380px, 560px) auto !important;
  }

  /* ─ Desktop/Tablet: bessere Zeilenumbrüche in Headlines + Leads ──
     text-wrap: balance verteilt Headline-Zeilen gleichmäßig
     text-wrap: pretty verhindert Witwenwörter in Fließtexten
     (Mobile bleibt unberührt — brechen dort ohnehin schmal und gut) */
  .hero__title,
  .hero__subtitle,
  .page-hero__title,
  .page-hero__lead,
  .section-title,
  .section-lead,
  .heading-xl,
  .heading-lg,
  .heading-md,
  .heading-sm,
  .company-card__title,
  .company-card__desc,
  .service-card__title,
  .service-card__desc,
  .kernleistungen-group__title,
  .text-lead,
  .inwert-title,
  .inwert-desc {
    text-wrap: balance;
  }
  /* Längere Fließtexte: pretty ist entspannter als balance und vermeidet Witwen */
  .hero__subtitle,
  .page-hero__lead,
  .section-lead,
  .text-lead,
  .company-card__desc,
  .service-card__desc,
  .inwert-desc {
    text-wrap: pretty;
  }
}
.section-counter--red { color: rgba(236, 27, 46, 0.06); }
.section-counter--blue { color: rgba(0, 102, 178, 0.06); }
.section-relative { position: relative; overflow: clip; }
.section-relative > .container { position: relative; z-index: 1; }

.section-eyebrow--red { color: var(--color-red); }
.section-eyebrow--blue { color: var(--color-blue); }
.section-eyebrow--gray { color: var(--color-mid-gray); }

.section-eyebrow::before {
  display: none; /* Kunde: alle Eyebrow-Striche entfernen */
}

.section-eyebrow--no-line::before {
  display: none;
}

.section-title {
  margin-bottom: var(--space-4);
}

.section-lead {
  color: var(--color-mid-gray);
  font-size: var(--font-size-lg);
  line-height: 1.7;
}

/* ── Company Cards (Home – Zwei Unternehmen) ───────────────── */
.company-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: stretch;
  padding-bottom: 80px;
}

.company-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.company-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.company-card__header {
  padding: var(--space-8);
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.company-card__dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}

.company-card__dot--red { background: var(--color-red); }
.company-card__dot--blue { background: var(--color-blue); }

.company-card__title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-2);
}

.company-card__subtitle {
  font-size: var(--font-size-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

.company-card__body {
  padding: var(--space-8) var(--space-8) var(--space-8);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.company-card__desc {
  color: rgba(255,255,255,.85);
  margin-bottom: var(--space-6);
  line-height: 1.7;
}

.company-card__services {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
  flex: 1;
}

.company-card__service-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--font-size-sm);
  opacity: 0.9;
}

.company-card__service-item::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.6);
  flex-shrink: 0;
}

.company-card--red .company-card__header { background: var(--color-red); color: var(--color-white); }
.company-card--red .company-card__body { background: var(--color-red); color: var(--color-white); }
.company-card--red .company-card__body { background: #b8111f; }

.company-card--blue .company-card__header { background: var(--color-blue); color: var(--color-white); }
.company-card--blue .company-card__body { background: var(--color-blue); color: var(--color-white); }
.company-card--blue .company-card__body { background: #004f8a; }

/* ── Core Services Grid ────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: stretch;
}

.service-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-light-gray);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-card__icon--red { background: rgba(236,27,46,.1); color: var(--color-red); }
.service-card__icon--blue { background: rgba(0,102,178,.1); color: var(--color-blue); }
.service-card__icon--cyan { background: rgba(0,148,200,.1); color: var(--color-cyan); }
.service-card__icon--green { background: rgba(0,174,77,.1); color: var(--color-green); }

.service-card__icon svg {
  width: 28px;
  height: 28px;
}

.service-card__tag {
  display: inline-block;
  align-self: flex-start; /* im Flex-Column-Container nicht auf volle Breite strecken */
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-full);
}

.service-card__tag--red {
  background: rgba(236,27,46,.1);
  color: var(--color-red);
}

.service-card__tag--blue {
  background: rgba(0,102,178,.1);
  color: var(--color-blue);
}

.service-card__title {
  font-size: var(--font-size-xl);
  min-height: 3rem;
  hyphens: auto;
  -webkit-hyphens: auto;
  text-wrap: pretty;
}

.service-card__desc {
  color: var(--color-mid-gray);
  font-size: var(--font-size-sm);
  line-height: 1.7;
  flex: 1;
  hyphens: auto;
  -webkit-hyphens: auto;
  text-wrap: pretty;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: gap var(--transition-fast);
  margin-top: auto;
}

.service-card__link--red { color: var(--color-red); }
.service-card__link--blue { color: var(--color-blue); }
.service-card__link:hover { gap: var(--space-3); }

/* ── About Preview (Home) ──────────────────────────────────── */
.about-preview {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
}

/* ── Über Scheideler – Startseite ──────────────────────────── */
.about-preview-flex {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}

.about-preview-flex__image {
  flex: 0 0 100%;
}

.about-preview-flex__image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  display: block;
}

.about-preview-flex__text {
  flex: 1;
}

.about-preview__image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
}

.about-preview__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-preview__badge {
  position: absolute;
  bottom: var(--space-6);
  left: var(--space-6);
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-6);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.about-preview__badge-number {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  color: var(--color-red);
  line-height: 1;
}

.about-preview__badge-text {
  font-size: var(--font-size-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-dark-gray);
}

.about-preview__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.stat-item {
  text-align: center;
}

.stat-item__number {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--color-dark-gray);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.stat-item__label {
  font-size: var(--font-size-sm);
  color: var(--color-mid-gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

/* ── Stausee Section (Lake Feature) ───────────────────────── */
.lake-feature {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
}

.lake-feature__bg {
  position: absolute;
  inset: 0;
}

.lake-feature__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.lake-feature__overlay {
  position: absolute;
  inset: 0;
  /* Hellste noch gut lesbare Variante — konsistent mit Hero + Page-Hero */
  background: linear-gradient(90deg, rgba(0,0,0,.32) 0%, rgba(0,0,0,.20) 45%, rgba(0,0,0,.05) 100%);
}
.lake-feature__content h2,
.lake-feature__content p,
.lake-feature__content .heading-sm,
.lake-feature__content .heading-md {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75), 0 1px 4px rgba(0, 0, 0, 0.6);
}

.lake-feature__content {
  position: relative;
  z-index: 1;
  color: var(--color-white);
  max-width: 600px;
  padding-block: var(--space-20);
}

/* ── Karriere Cards ────────────────────────────────────────── */
.job-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.job-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-light-gray);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: all var(--transition-base);
  height: 100%;
}

.job-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.job-card__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-green);
  background: rgba(0,174,77,.1);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  width: fit-content;
}

.job-card__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.job-card__title {
  font-size: var(--font-size-2xl);
  line-height: 1.25;
  min-height: 3.75em; /* reserves up to 3 lines so meta-row aligns across cards */
}

.job-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-4);
  min-height: 1.6em; /* one line baseline */
}

.job-card__meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--color-mid-gray);
}

.job-card__meta-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.job-card__desc {
  color: var(--color-mid-gray);
  line-height: 1.7;
  flex: 1; /* fills remaining vertical space so the CTA sits on a shared baseline */
  min-height: 5em; /* ~3 lines */
}

.job-card .btn {
  margin-top: auto;
  align-self: stretch;
  text-align: center;
}

/* ── Process Steps (Karriere) ──────────────────────────────── */
.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  position: relative;
}

.process-step {
  display: flex;
  gap: var(--space-6);
  align-items: flex-start;
}

.process-step__number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-red);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--font-size-lg);
  flex-shrink: 0;
}

.process-step__content {
  padding-top: var(--space-2);
  flex: 1;
}

.process-step__title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-2);
}

.process-step__desc {
  color: var(--color-mid-gray);
  line-height: 1.7;
}

/* ── Contact Section ───────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
}

.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.contact-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.contact-item__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-red);
}

.contact-item__icon svg {
  width: 22px;
  height: 22px;
}

.contact-item__label {
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-mid-gray);
  margin-bottom: var(--space-1);
}

.contact-item__value {
  font-size: var(--font-size-lg);
  font-weight: 700;
}

.contact-item__value a:hover {
  color: var(--color-red);
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-8); /* 32px vertikal zwischen Form-Zeilen — großer Luft-Abstand */
}

.contact-form .btn {
  margin-top: var(--space-2);
  align-self: flex-start;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7); /* 28px horizontal zwischen Vorname/Nachname bzw. Email/Telefon */
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px; /* Label sitzt sehr dicht am Input — eindeutige visuelle Zuordnung */
}

.form-label {
  font-size: var(--font-size-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-dark-gray);
  padding-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--color-light-gray);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-base);
  font-family: var(--font-family);
  color: var(--color-dark-gray);
  background: var(--color-white);
  transition: border-color var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-red);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

.form-checkbox-group {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  margin-top: var(--space-2);
}

.form-checkbox {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--color-red);
}

.form-checkbox-label {
  font-size: var(--font-size-sm);
  color: var(--color-mid-gray);
  line-height: 1.5;
}

/* ── Formular-Fehlerzustände (Bewerbung, Kontakt) ───────────── */
.form-input.is-invalid,
.form-select.is-invalid,
.form-textarea.is-invalid {
  border-color: var(--color-red);
  background: rgba(236, 27, 46, 0.03);
  box-shadow: 0 0 0 3px rgba(236, 27, 46, 0.1);
}
.form-input.is-invalid:focus,
.form-select.is-invalid:focus,
.form-textarea.is-invalid:focus {
  border-color: var(--color-red);
  box-shadow: 0 0 0 3px rgba(236, 27, 46, 0.18);
}
.form-checkbox.is-invalid {
  outline: 2px solid var(--color-red);
  outline-offset: 2px;
}
.form-checkbox.is-invalid + .form-checkbox-label {
  color: var(--color-red);
}
.form-error-msg {
  display: block;
  color: var(--color-red);
  font-size: var(--font-size-xs);
  font-weight: 600;
  margin-top: 6px;
  padding-left: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
  animation: form-shake 0.28s ease-in-out;
}
.form-error-msg::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'><circle cx='8' cy='8' r='7' stroke='%23ec1b2e' stroke-width='1.5'/><path d='M8 4v5' stroke='%23ec1b2e' stroke-width='1.5' stroke-linecap='round'/><circle cx='8' cy='11.5' r='.9' fill='%23ec1b2e'/></svg>");
  background-repeat: no-repeat;
  background-size: contain;
  flex-shrink: 0;
}
@keyframes form-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* ── Map Placeholder ───────────────────────────────────────── */
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 400px;
  background: var(--color-light-gray);
  position: relative;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ── Placeholder Boxes ─────────────────────────────────────── */
.placeholder-box {
  border: 2px dashed var(--color-light-gray);
  border-radius: var(--radius-lg);
  padding: var(--space-12);
  text-align: center;
  color: var(--color-mid-gray);
  background: var(--color-off-white);
}

.placeholder-box__icon {
  width: 64px;
  height: 64px;
  margin-inline: auto;
  margin-bottom: var(--space-4);
  opacity: 0.4;
}

.placeholder-box__label {
  font-size: var(--font-size-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-2);
}

/* ── INWERT Badge ──────────────────────────────────────────── */
.inwert-section {
  background: var(--color-off-white);
  border-top: 1px solid var(--color-light-gray);
  border-bottom: 1px solid var(--color-light-gray);
  padding-block: var(--space-12);
}

.inwert-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  text-align: center;
  padding: var(--space-8);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-light-gray);
  max-width: 600px;
  margin-inline: auto;
}

.inwert-label {
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-mid-gray);
}

.inwert-title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
}

.inwert-desc {
  color: var(--color-mid-gray);
  max-width: 440px;
}

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: var(--color-dark-gray);
  color: rgba(255,255,255,.75);
  padding-top: var(--space-20);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  padding-bottom: var(--space-16);
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}

.footer-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  object-position: left center;
  align-self: flex-start;
  filter: brightness(0) invert(1) opacity(0.85);
}

.footer-logo--stempel {
  height: 72px;
  filter: brightness(0) invert(1) opacity(0.95);
}

.footer-brand__desc {
  font-size: var(--font-size-sm);
  line-height: 1.7;
  max-width: 320px;
}

.footer-col-title {
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-link {
  font-size: var(--font-size-sm);
  transition: color var(--transition-fast);
}

.footer-link:hover { color: var(--color-white); }

.footer-company-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.footer-company-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.footer-address {
  font-size: var(--font-size-sm);
  line-height: 2;
}

.footer-address a:hover { color: var(--color-white); }

.footer-bottom {
  padding-block: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: center;
  text-align: center;
}

.footer-bottom__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}

.footer-bottom__legal a {
  font-size: var(--font-size-xs);
  transition: color var(--transition-fast);
}

.footer-bottom__legal a:hover { color: var(--color-white); }

.footer-bottom__copy {
  font-size: var(--font-size-xs);
}

/* ── Leistungen Page ───────────────────────────────────────── */
.leistungen-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: stretch;
}

.leistungen-col {
  padding: var(--space-16) var(--container-padding);
  display: flex;
  flex-direction: column;
}

.leistungen-col__cta {
  margin-top: auto;
  padding-top: var(--space-8);
}

.leistungen-col--red {
  background: var(--color-white);
  border-right: none;
  border-bottom: 4px solid var(--color-red);
}

.leistungen-col--blue {
  background: var(--color-off-white);
  border-bottom: 4px solid var(--color-blue);
}

.leistung-item {
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--color-light-gray);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.leistung-item:last-child {
  border-bottom: none;
}

.leistung-item__title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.leistung-item__title::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.leistung-item--red .leistung-item__title::before { background: var(--color-red); }
.leistung-item--blue .leistung-item__title::before { background: var(--color-blue); }

.leistung-item__desc {
  color: var(--color-mid-gray);
  line-height: 1.7;
  padding-left: calc(8px + var(--space-3));
}

/* ── Page Hero (inner pages) ───────────────────────────────── */
/* Hellste noch gut lesbare Variante — Lesbarkeit kommt vom Text-Shadow */
.page-hero {
  box-sizing: border-box;
  height: 560px;
  padding-top: calc(72px + 80px);
  padding-bottom: 0;
  display: flex;
  align-items: flex-start;
  background-color: var(--color-dark-gray);
  background-image:
    linear-gradient(
      90deg,
      rgba(0,0,0,.32) 0%,
      rgba(0,0,0,.20) 45%,
      rgba(0,0,0,.05) 100%
    ),
    url('../images/stausee.webp');
  background-size: cover;
  background-position: center 35%;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}
.page-hero > .container {
  width: 100%;
}
.page-hero .page-hero__title,
.page-hero .page-hero__lead,
.page-hero .page-hero__eyebrow {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75), 0 1px 4px rgba(0, 0, 0, 0.6);
}

.page-hero > .container {
  position: relative;
  z-index: 1;
}

.page-hero__eyebrow {
  color: #ffffff;
  font-size: var(--font-size-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.page-hero__eyebrow::before {
  display: none; /* Kunde: alle Eyebrow-Striche entfernen */
}

.page-hero__eyebrow--no-line::before {
  display: none;
}

.page-hero__title {
  max-width: 700px;
  margin-bottom: var(--space-4);
}

.page-hero__lead {
  max-width: 600px;
  color: rgba(255,255,255,.75);
  font-size: var(--font-size-lg);
  line-height: 1.7;
}

/* ── Über Uns page ─────────────────────────────────────────── */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-light-gray);
}

.timeline-item {
  display: flex;
  gap: var(--space-6);
  padding-bottom: var(--space-10);
  position: relative;
}

.timeline-item__dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-white);
  border: 3px solid var(--color-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--font-size-xs);
  color: var(--color-red);
  flex-shrink: 0;
  z-index: 1;
}

.timeline-item__content {
  padding-top: var(--space-2);
  flex: 1;
}

.timeline-item__year {
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-mid-gray);
  margin-bottom: var(--space-1);
}

.timeline-item__title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-2);
}

.timeline-item__desc {
  color: var(--color-mid-gray);
  line-height: 1.7;
}

/* ── Responsive – Tablet ───────────────────────────────────── */
@media (min-width: 640px) {
  :root { --container-padding: 2rem; }

  .company-grid { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; }
}

/* ── Responsive – Desktop ──────────────────────────────────── */
@media (min-width: 1024px) {
  :root { --container-padding: 2.5rem; }

  .main-nav { display: flex; align-items: center; }
  .nav-toggle { display: none; }

  .about-preview-flex {
    flex-direction: row;
    align-items: flex-start;
    gap: 48px;
  }

  .about-preview-flex__image {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .about-preview-flex__image img {
    height: 450px;
  }

  .services-grid { grid-template-columns: repeat(4, 1fr); }

  .about-preview {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: start;
  }

  /* Sticky image: bleibt während des Scrollens neben langem Text sichtbar */
  .about-preview .image-sticky {
    position: sticky;
    top: calc(72px + var(--space-6));
    align-self: start;
  }

  .contact-grid { grid-template-columns: 1fr 1.5fr; gap: var(--space-16); }

  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .leistungen-split {
    grid-template-columns: 1fr 1fr;
  }

  .leistungen-col--red {
    border-right: 2px solid var(--color-light-gray);
    border-bottom: none;
  }
  .leistungen-col--blue {
    border-bottom: none;
  }

  .job-cards { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: repeat(4, 1fr); }
}

/* ── Animations ────────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ── Utility ───────────────────────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

.sr-only { composes: visually-hidden; }

.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

.d-flex { display: flex; }
.gap-4 { gap: var(--space-4); }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }

/* ══════════════════════════════════════════════════════════════
   COOKIE CONSENT BANNER + MODAL
══════════════════════════════════════════════════════════════ */

.cookie-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 9999;
  background: var(--color-white);
  border-top: 3px solid var(--color-red);
  box-shadow: 0 -8px 32px rgba(0,0,0,.15);
  padding: var(--space-6) var(--space-4);
  animation: cookieSlideUp 0.35s ease-out;
}

@keyframes cookieSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.cookie-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

@media (min-width: 900px) {
  .cookie-banner__inner {
    flex-direction: row;
    align-items: center;
    gap: var(--space-8);
  }
}

.cookie-banner__text {
  flex: 1;
  font-size: var(--font-size-sm);
  line-height: 1.6;
  color: var(--color-dark-gray);
}

.cookie-banner__text a {
  color: var(--color-red);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  flex-shrink: 0;
}

.cookie-banner__actions .btn {
  font-size: var(--font-size-sm);
  padding: 0.6rem 1.1rem;
  white-space: nowrap;
}

/* ── Modal ─────────────────────────────────────────────────── */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.cookie-modal__panel {
  position: relative;
  z-index: 1;
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-10);
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}

.cookie-modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: 0;
  font-size: 28px;
  line-height: 1;
  color: var(--color-mid-gray);
  cursor: pointer;
  padding: 4px 10px;
}

.cookie-modal__close:hover { color: var(--color-red); }

.cookie-modal__title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.cookie-modal__lead {
  font-size: var(--font-size-sm);
  color: var(--color-mid-gray);
  line-height: 1.6;
  margin-bottom: var(--space-6);
}

.cookie-cat {
  border: 1px solid var(--color-light-gray);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-3);
}

.cookie-cat__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
}

.cookie-cat__hint {
  font-size: var(--font-size-xs);
  color: var(--color-mid-gray);
  line-height: 1.5;
}

/* Toggle-Switch */
.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle span {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--color-light-gray);
  border-radius: 24px;
  transition: background 0.2s;
}

.cookie-toggle span::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}

.cookie-toggle input:checked + span {
  background: var(--color-red);
}

.cookie-toggle input:checked + span::before {
  transform: translateX(20px);
}

.cookie-toggle input:disabled + span {
  background: var(--color-red);
  opacity: 0.5;
  cursor: not-allowed;
}

.cookie-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-6);
  justify-content: flex-end;
}

.cookie-modal__actions .btn {
  font-size: var(--font-size-sm);
  padding: 0.6rem 1.1rem;
}

body.cookie-modal-open {
  overflow: hidden;
}

/* ══════════════════════════════════════════════════════════════
   CONSENT GATE (externe Medien — Wistia, Maps usw.)
══════════════════════════════════════════════════════════════ */
.consent-gate {
  position: relative;
  background: var(--color-off-white);
  min-height: 280px;
}

.consent-gate__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-10) var(--space-6);
  color: var(--color-mid-gray);
  aspect-ratio: 16 / 9;
}

.consent-gate__placeholder svg {
  color: var(--color-red);
  opacity: 0.6;
  margin-bottom: var(--space-4);
}

.consent-gate__placeholder h3 {
  font-size: var(--font-size-xl);
  color: var(--color-dark-gray);
  margin-bottom: var(--space-3);
}

.consent-gate__placeholder p {
  font-size: var(--font-size-sm);
  line-height: 1.6;
  max-width: 460px;
  margin-bottom: var(--space-5);
}

.consent-gate__placeholder .btn {
  margin-bottom: var(--space-4);
}

.consent-gate__note {
  font-size: var(--font-size-xs) !important;
  color: var(--color-mid-gray);
  margin-bottom: 0 !important;
}

.consent-gate__note a {
  color: var(--color-red);
  text-decoration: underline;
}

/* ══════════════════════════════════════════════════════════════
   KERNLEISTUNGEN — 2 Gruppen (Dienstleistungen / Verfahrenstechnik)
   mit klarer visueller Trennung und eigener Überschrift
══════════════════════════════════════════════════════════════ */
.kernleistungen-groups {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-16);
}

@media (min-width: 1024px) {
  .kernleistungen-groups {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2); /* 8 px: Spalt zwischen den beiden Gruppen in der Mitte */
    /* Section darf aus dem normalen Container-Padding ausbrechen,
       damit die äußeren Ränder links/rechts klein sind */
    margin-inline: calc(-1 * var(--container-padding) + var(--space-3));
  }
}

.kernleistungen-group {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-3); /* horizontal weiter reduziert → mehr Platz für Cards */
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--color-light-gray);
}

.kernleistungen-group--blue { border-top-color: var(--color-blue); }
.kernleistungen-group--red  { border-top-color: var(--color-red); }

.kernleistungen-group__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-light-gray);
}

.kernleistungen-group__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}

.kernleistungen-group__dot--blue { background: var(--color-blue); }
.kernleistungen-group__dot--red  { background: var(--color-red); }

.kernleistungen-group__title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
}

.kernleistungen-group--blue .kernleistungen-group__title { color: var(--color-blue); }
.kernleistungen-group--red  .kernleistungen-group__title { color: var(--color-red); }

.kernleistungen-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2); /* 8 px: Spalt zwischen den beiden Cards innerhalb einer Gruppe */
}

@media (min-width: 600px) {
  .kernleistungen-cards {
    grid-template-columns: 1fr 1fr;
  }
}

.kernleistungen-cards .service-card {
  margin: 0;
  padding: var(--space-5, 1.25rem) var(--space-4); /* vertikal 20 px / horizontal 16 px */
  gap: var(--space-3);
}

/* Kernleistungen-Titel: eine Stufe kleiner als .service-card__title Default,
   damit lange Fachbegriffe wie „Filter für Invertebraten" / „CO₂-Spülverfahren"
   zuverlässig in zwei Zeilen passen – auf allen Monitorbreiten.
   Keine min-height — Beschreibung schließt direkt an den Titel an. */
.kernleistungen-cards .service-card__title {
  font-size: var(--font-size-lg);
  line-height: 1.25;
  min-height: 0;
}

/* Kernleistungen-Icons: Original-Piktogramme vom Kunden */
.kernleistungen-cards .service-card__icon {
  width: 68px;
  height: 68px;
  border-radius: 16px;
}
.kernleistungen-cards .service-card__icon svg,
.kernleistungen-cards .service-card__icon img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

/* ══════════════════════════════════════════════════════════════
   MOBILE FIXES — Overflow + Padding
══════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  /* Page-Hero: feste Mindesthöhe, aber darf wachsen, damit Chips/Long-Content nicht abgeschnitten werden */
  .page-hero {
    height: auto;
    min-height: 460px;
    padding-top: calc(72px + var(--space-6));
    padding-bottom: var(--space-10);
    overflow: visible;
  }
  .page-hero__title {
    font-size: var(--font-size-3xl);
  }

  /* Startseiten-Hero: Content nach oben – weniger Wolken-Fläche über dem Panel,
     Trust-Bar rückt dadurch ins erste Viewport */
  .hero {
    min-height: 0;
    height: auto;
    justify-content: flex-start;
    padding-top: var(--space-6);
    padding-bottom: var(--space-10);
  }

  /* CTAs nebeneinander auf Mobile – Buttons etwas kompakter, damit sie in eine Zeile passen */
  .hero__cta-group {
    flex-wrap: nowrap;
    gap: var(--space-3);
  }
  .hero__cta-group .btn {
    flex: 1 1 0;
    padding: 0.65rem 0.5rem;
    font-size: var(--font-size-xs);
    min-width: 0;
  }

  /* Buttons mit langen Texten brechen sauber um */
  .btn {
    width: auto;
    min-height: 44px;
    line-height: 1.25;
    padding: 0.7rem 1.1rem;
    font-size: var(--font-size-xs);
  }

  /* Hero-Panel kompakter auf Mobile */
  .hero__panel {
    padding: var(--space-6);
    max-width: 100%;
  }

  /* Trust-Bar nicht erzwingen, dass alle 4 Items in eine Zeile passen */
  .trust-bar__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Lake-Feature Text kompakter */
  .lake-feature__content {
    padding-block: var(--space-12);
  }
}
