/* ==========================================================================
   MEMTECH GmbH – Stylesheet
   --------------------------------------------------------------------------
   Aufbau:
   01  Schriften (lokal gehostet, keine Google-Server)
   02  Design-Tokens (Farben, Abstände, Typografie)
   03  Basis / Reset
   04  Layout-Helfer
   05  Buttons & Links
   06  Header & Navigation
   07  Hero (Startseite) & Seitenköpfe
   08  Sektionen & Inhaltsbausteine
   09  Prozess-Leitung ("Alles aus einem Haus")
   10  Karten, Infoboxen, Zahlen
   11  Referenzen & Lightbox
   12  FAQ
   13  Formulare
   14  Footer
   15  Sticky-Kontakt (Desktop & Mobil)
   16  Cookie-Consent
   17  Animationen
   18  Rechtstexte
   ========================================================================== */

/* 01  SCHRIFTEN ------------------------------------------------------------ */
@font-face { font-family: "Barlow"; src: url("../fonts/Barlow-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/Barlow-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/Barlow-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("../fonts/BarlowSemiCondensed-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("../fonts/BarlowSemiCondensed-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* 02  DESIGN-TOKENS -------------------------------------------------------- */
:root {
  /* Farbwelt – hier zentral änderbar */
  --ink: #0B2340;          /* Dunkelblau: Vertrauen / Technik */
  --ink-2: #102E52;        /* Dunkelblau, etwas heller (Flächen im Dunkelbereich) */
  --blue: #1E63B0;         /* Mittelblau: Wasser / Technologie */
  --cyan: #49C1E8;         /* Cyan aus dem Memtech-Logo: Akzent – ausschließlich für CTA-Buttons & Wasserfluss */
  --cyan-text: #087A90;    /* Cyan-Ton für Text auf Weiß (ausreichender Kontrast) */
  --white: #FFFFFF;
  --mist: #EEF3F7;         /* Hellgrau: technische Hintergrundbereiche */
  --line: #D6E0E8;
  --text: #15263A;
  --muted: #4E6278;
  --on-dark: #DCE7F1;
  --on-dark-muted: #9DB3C9;

  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Barlow Semi Condensed", "Barlow", system-ui, "Segoe UI", Arial, sans-serif;

  --radius-s: 4px;
  --radius-m: 8px;
  --shadow: 0 1px 2px rgba(11, 35, 64, .06), 0 8px 24px -12px rgba(11, 35, 64, .18);

  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1240px;
  --space-section: clamp(64px, 9vw, 128px);
  --header-h: 76px;
}

/* 03  BASIS ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.08; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 4.4rem); text-wrap: balance; }
h2 { text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 1.8vw, 1.55rem); font-weight: 600; line-height: 1.2; }
h4 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
a { color: var(--blue); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 2px; }
strong { font-weight: 600; }
.lead { font-size: clamp(1.15rem, 1.5vw, 1.35rem); line-height: 1.5; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip-link:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Platzhalter-Kennzeichnung für fehlende Kundendaten */
.todo { background: #FFF4CC; color: #6B4E00; padding: 0 .3em; border-radius: 2px; font-weight: 500; }

/* 04  LAYOUT --------------------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space-section); }
.section--mist { background: var(--mist); }
.section--dark { background: var(--ink); color: var(--on-dark); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark .lead, .section--dark .muted { color: var(--on-dark-muted); }
.section--dark a:not(.btn) { color: #9FE3EE; }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head p:last-child { margin-bottom: 0; }

.grid { display: grid; gap: clamp(20px, 2.4vw, 32px); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

.split { display: grid; gap: clamp(32px, 5vw, 80px); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-text { grid-template-columns: 1.15fr .85fr; }
  .split--reverse > :first-child { order: 2; }
}

/* Blueprint-Raster für technische Flächen */
.blueprint {
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(140, 190, 230, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 190, 230, .07) 1px, transparent 1px),
    linear-gradient(rgba(140, 190, 230, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 190, 230, .035) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
}

/* 05  BUTTONS -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.4em;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1.2;
  border-radius: var(--radius-s); border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--cyan); color: var(--ink); }
.btn--primary:hover { background: #7DD3EF; color: var(--ink); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--light { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn--light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .4em; }
.link-arrow svg { width: 18px; height: 18px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(3px); }

/* 06  HEADER --------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff; /* bewusst ohne backdrop-filter: sonst bricht die mobile Navigation (position: fixed) */
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(11,35,64,.35); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
html, body { overflow-x: clip; }
.site-header .container { max-width: 1480px; }
.logo { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.logo img { height: 30px; width: auto; }
.main-nav > ul > li, .nav-toggle-sub { flex-shrink: 0; }
.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.main-nav a, .nav-toggle-sub {
  display: flex; align-items: center; gap: 4px;
  padding: 10px 8px; font-size: .95rem; font-weight: 500; color: var(--text);
  text-decoration: none; background: none; border: 0; font-family: inherit; cursor: pointer; border-radius: var(--radius-s);
}
.main-nav a:hover, .nav-toggle-sub:hover, .main-nav a[aria-current="page"] { color: var(--blue); }
.main-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--cyan); border-radius: 0; }
.has-sub { position: relative; }
.has-sub > .nav-parent { display: flex; align-items: center; }
.has-sub > .nav-parent > a { padding-right: 2px; }
.nav-toggle-sub { padding: 10px 6px 10px 2px; }
.nav-toggle-sub svg { width: 14px; height: 14px; transition: transform .2s; }
.submenu {
  position: absolute; top: 100%; left: 0; min-width: 270px;
  list-style: none; margin: 0; padding: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.submenu a { padding: 9px 12px; font-size: .95rem; }
.submenu a:hover { background: var(--mist); }
.has-sub:hover > .submenu, .has-sub:focus-within > .submenu, .has-sub.is-open > .submenu { opacity: 1; visibility: visible; transform: none; }
.has-sub.is-open .nav-toggle-sub svg { transform: rotate(180deg); }
.header-cta { flex-shrink: 0; }
.burger { display: none; margin-left: auto; width: 48px; height: 48px; border: 0; background: none; cursor: pointer; padding: 12px; }
.burger span { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .25s, opacity .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1500px) and (min-width: 1361px) {
  .main-nav a, .nav-toggle-sub { font-size: .9rem; padding-inline: 5px; }
  .header-cta { padding-inline: 1em; }
}
@media (max-width: 1360px) {
  .burger { display: block; }
  .header-cta { display: none; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: #fff; overflow-y: auto;
    padding: 12px var(--gutter) 120px; transform: translateX(100%); transition: transform .3s ease; visibility: hidden;
  }
  .main-nav.is-open { transform: none; visibility: visible; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav > ul > li { border-bottom: 1px solid var(--line); }
  .main-nav a, .nav-toggle-sub { font-size: 1.15rem; padding: 14px 4px; min-height: 52px; }
  .main-nav a[aria-current="page"] { box-shadow: none; color: var(--blue); }
  .has-sub > .nav-parent { justify-content: space-between; }
  .nav-toggle-sub { padding: 14px; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 12px 12px; display: none; min-width: 0; }
  .has-sub.is-open > .submenu { display: block; }
  .submenu a { font-size: 1.02rem; min-height: 46px; }
  .mobile-nav-cta { display: block !important; margin-top: 24px; }
}
.mobile-nav-cta { display: none; }
body.nav-open { overflow: hidden; }

/* 07  HERO ----------------------------------------------------------------- */
.hero { position: relative; color: var(--on-dark); overflow: hidden; }
.hero-inner { display: grid; gap: 40px; align-items: center; padding-block: clamp(56px, 8vw, 112px) clamp(48px, 6vw, 80px); }
@media (min-width: 1000px) { .hero-inner { grid-template-columns: 1.05fr .95fr; } }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 3.9vw, 3.6rem); text-wrap: balance; }
.hero .lead { color: var(--on-dark); }
.hero-schematic { width: 100%; max-width: 600px; justify-self: center; }
.hero-schematic svg { width: 100%; height: auto; overflow: visible; }

/* Zielgruppen-Schnellwahl unter dem Hero */
.audience-switch { position: relative; border-top: 1px solid rgba(157,179,201,.2); }
.audience-switch ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .audience-switch ul { grid-template-columns: repeat(4, 1fr); } }
.audience-switch a {
  display: flex; flex-direction: column; gap: 2px; padding: 22px 20px; min-height: 92px;
  color: #fff; text-decoration: none; border-right: 1px solid rgba(157,179,201,.2);
  transition: background-color .2s;
}
.audience-switch li:last-child a { border-right: 0; }
@media (max-width: 759px) {
  .audience-switch .container { padding-inline: 0; }
  .audience-switch li:nth-child(2n) a { border-right: 0; }
  .audience-switch li:nth-child(-n+2) a { border-bottom: 1px solid rgba(157,179,201,.2); }
}
.audience-switch a:hover { background: rgba(44,195,218,.1); color: #fff; }
.audience-switch strong { font-family: var(--font-head); font-size: 1.35rem; font-weight: 600; }
.audience-switch span { font-size: .95rem; color: var(--on-dark-muted); }

/* Seitenkopf Unterseiten */
.page-hero { padding-block: clamp(48px, 7vw, 96px) clamp(40px, 5vw, 72px); background-color: var(--mist); }
.page-hero.blueprint { background-color: var(--ink); }
.page-hero--dark { color: var(--on-dark); }
.page-hero--dark h1 { color: #fff; }
.page-hero--dark .lead { color: var(--on-dark); }
.page-hero h1 { max-width: 20ch; }
.breadcrumb { font-size: .9rem; margin-bottom: 20px; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.breadcrumb a { color: inherit; }
.page-hero--dark .breadcrumb { color: var(--on-dark-muted); }

/* 08  SEKTIONEN & BAUSTEINE ------------------------------------------------ */
/* Zwei Kompetenzbereiche */
.duo { display: grid; }
@media (min-width: 960px) { .duo { grid-template-columns: 1fr 1fr; } }
.duo-panel { padding: clamp(48px, 6vw, 96px) var(--gutter); display: flex; flex-direction: column; }
.duo-panel > * { max-width: 560px; }
@media (min-width: 960px) {
  .duo-panel:first-child { padding-left: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); }
  .duo-panel:last-child { padding-right: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); }
}
.duo-panel--light { background: var(--mist); }
.duo-panel--dark { color: var(--on-dark); }
.duo-panel--dark h2 { color: #fff; }
.duo-panel .kicker { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--cyan-text); margin-bottom: 6px; }
.duo-panel--dark .kicker { color: var(--cyan); }
.duo-panel h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.duo-panel .claim { font-size: 1.25rem; font-weight: 500; color: var(--ink); line-height: 1.4; }
.duo-panel--dark .claim { color: #fff; }
.duo-panel .btn-row { margin-top: auto; padding-top: 28px; }
.duo-figure { margin: 28px 0 0; border-radius: var(--radius-m); overflow: hidden; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 20px 0 0; }
.tag-list li { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .95rem; background: #fff; }
.duo-panel--dark .tag-list li, .section--dark .tag-list li { background: transparent; border-color: rgba(157,179,201,.35); color: var(--on-dark); }
.flow-line { font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; color: #fff; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.flow-line span + span::before { content: ""; display: inline-block; width: 18px; height: 2px; background: var(--cyan); vertical-align: middle; margin-right: 10px; }

.statement { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1.2; color: var(--ink); max-width: 30ch; margin: 0; }

/* Zielgruppen-Karten */
.audience-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m);
  overflow: hidden; text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s;
}
.audience-card:hover { border-color: var(--blue); box-shadow: var(--shadow); color: inherit; }
.audience-card figure { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: var(--mist); }
.audience-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.audience-card:hover img { transform: scale(1.04); }
.audience-card .body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.audience-card p { color: var(--muted); }
.audience-card .link-arrow { margin-top: auto; color: var(--blue); }

/* Bilder / Platzhalter */
.media { margin: 0; border-radius: var(--radius-m); overflow: hidden; background: var(--mist); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--43 { aspect-ratio: 4 / 3; }
.media--32 { aspect-ratio: 3 / 2; }
.media figcaption { font-size: .9rem; color: var(--muted); padding: 10px 2px 0; background: #fff; }

/* Checkliste */
.checklist { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 32px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--mist) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%231E63B0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.section--dark .checklist li::before, .page-hero--dark .checklist li::before { background-color: rgba(44,195,218,.15); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%2349C1E8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.checklist--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); column-gap: 32px; }

/* Inhaltsprinzip Problem → Lösung → ... : Kapitel-Navigation */
.chapter-nav { position: sticky; top: var(--header-h); z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.chapter-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.chapter-nav ul::-webkit-scrollbar { display: none; }
.chapter-nav a { display: block; padding: 14px 12px; white-space: nowrap; color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; border-bottom: 2px solid transparent; }
.chapter-nav a:hover, .chapter-nav a.is-active { color: var(--ink); border-bottom-color: var(--cyan); }

/* Zwei Zugänge (Privat / Fachbetrieb) */
.access { border-radius: var(--radius-m); padding: clamp(28px, 3.5vw, 44px); }
.access--private { background: #fff; border: 1px solid var(--line); }
.access--pro { background: var(--ink); color: var(--on-dark); }
.access--pro h3 { color: #fff; }
.access--pro .checklist li::before { background-color: rgba(44,195,218,.15); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%2349C1E8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.access .who { font-size: .95rem; color: var(--muted); margin-bottom: 14px; }
.access--pro .who { color: var(--on-dark-muted); }
.quote-line { font-family: var(--font-head); font-size: 1.35rem; font-weight: 600; color: #fff; border-left: 3px solid var(--cyan); padding-left: 16px; margin: 20px 0; line-height: 1.3; }

/* Sonderanlagen-Karten (dunkel) */
.tech-card { border: 1px solid rgba(157,179,201,.22); border-radius: var(--radius-m); padding: 28px; background: rgba(16,46,82,.55); display: flex; flex-direction: column; transition: border-color .2s, background-color .2s; }
.tech-card:hover { border-color: rgba(44,195,218,.6); background: rgba(16,46,82,.9); }
.tech-card .icon { width: 44px; height: 44px; color: var(--cyan); margin-bottom: 18px; }
.tech-card h3 { color: #fff; }
.tech-card p { color: var(--on-dark-muted); margin-bottom: 0; }
.tech-card ul { color: var(--on-dark-muted); margin: 10px 0 0; padding-left: 1.1em; }

.feature { display: flex; flex-direction: column; }
.feature .icon { width: 40px; height: 40px; color: var(--blue); margin-bottom: 14px; }
.feature p { color: var(--muted); margin: 0; }

/* Automatisierung: Signalkette */
.signal-chain { display: grid; gap: 0; list-style: none; padding: 0; margin: 0; counter-reset: none; }
@media (min-width: 820px) { .signal-chain { grid-template-columns: repeat(4, 1fr); } }
.signal-chain li { position: relative; padding: 26px 22px; border: 1px solid rgba(157,179,201,.25); background: rgba(16,46,82,.5); }
.signal-chain li + li { border-top: 0; }
@media (min-width: 820px) { .signal-chain li + li { border-top: 1px solid rgba(157,179,201,.25); border-left: 0; } }
.signal-chain h3 { font-size: 1.3rem; color: #fff; margin-bottom: 6px; }
.signal-chain p { color: var(--on-dark-muted); font-size: .97rem; margin: 0; }
.signal-chain svg { width: 36px; height: 36px; color: var(--cyan); margin-bottom: 14px; }
.signal-chain li:last-child { background: rgba(44,195,218,.12); border-color: rgba(44,195,218,.45); }

/* 09  PROZESS-LEITUNG ------------------------------------------------------ */
/* Die Schritte sind durch eine "Rohrleitung" verbunden, in der Wasser fließt. */
.pipeline { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.pipeline li { position: relative; padding: 0 0 30px 64px; }
.pipeline li:last-child { padding-bottom: 0; }
.pipeline .node {
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; border: 2px solid var(--blue);
  font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 1rem; z-index: 2;
}
.pipeline h3 { font-size: 1.25rem; margin: 8px 0 4px; }
.pipeline p { color: var(--muted); margin: 0; font-size: .98rem; }
.pipeline::before, .pipeline::after { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 4px; border-radius: 2px; }
.pipeline::before { background: var(--line); }
.pipeline::after {
  background: repeating-linear-gradient(180deg, var(--cyan) 0 14px, transparent 14px 26px);
  background-size: 100% 26px; animation: flow-y 1.1s linear infinite; opacity: .9;
  clip-path: inset(0 0 calc(100% - var(--fill, 100%)) 0);
  transition: clip-path 1.6s ease;
}
.section--dark .pipeline .node { background: var(--ink); border-color: var(--cyan); color: #fff; }
.section--dark .pipeline::before { background: rgba(157,179,201,.25); }
.section--dark .pipeline p { color: var(--on-dark-muted); }
@media (min-width: 1000px) {
  .pipeline--h { grid-template-columns: repeat(var(--steps, 8), minmax(0, 1fr)); gap: 16px; }
  .pipeline--h li { padding: 64px 0 0 0; }
  .pipeline--h .node { left: 0; }
  .pipeline--h::before, .pipeline--h::after { left: 22px; right: 22px; top: 20px; bottom: auto; width: auto; height: 4px; }
  .pipeline--h::after {
    background: repeating-linear-gradient(90deg, var(--cyan) 0 14px, transparent 14px 26px);
    background-size: 26px 100%; animation-name: flow-x;
    clip-path: inset(0 calc(100% - var(--fill, 100%)) 0 0);
  }
}
@keyframes flow-y { to { background-position: 0 26px; } }
@keyframes flow-x { to { background-position: 26px 0; } }
.pipeline[data-reveal] { --fill: 0%; }
.pipeline[data-reveal].is-visible { --fill: 100%; }

/* 10  KARTEN, INFOBOXEN, ZAHLEN -------------------------------------------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); padding: clamp(22px, 2.6vw, 32px); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }

.infobox { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; background: #fff; margin: 0; }
.infobox div { padding: 18px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: -1px -1px 0 0; }
.infobox dt { font-size: .88rem; color: var(--muted); margin-bottom: 2px; }
.infobox dd { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; color: var(--ink); line-height: 1.25; }
.section--dark .infobox, .page-hero--dark .infobox { background: transparent; border-color: rgba(157,179,201,.25); }
.section--dark .infobox div, .page-hero--dark .infobox div { border-color: rgba(157,179,201,.25); }
.section--dark .infobox dt, .page-hero--dark .infobox dt { color: var(--on-dark-muted); }
.section--dark .infobox dd, .page-hero--dark .infobox dd { color: #fff; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0; border-top: 1px solid var(--line); }
.stat { padding: 28px 24px 8px 0; }
.stat-value { font-family: var(--font-head); font-weight: 700; font-size: clamp(2.6rem, 5vw, 3.8rem); line-height: 1; color: var(--ink); display: block; }
.stat-label { display: block; margin-top: 10px; color: var(--muted); max-width: 26ch; }

.trust-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; list-style: none; padding: 0; margin: 0; }
.trust-list li { background: #fff; padding: 20px 22px; display: flex; gap: 14px; align-items: flex-start; font-weight: 500; }
.trust-list svg { flex-shrink: 0; width: 26px; height: 26px; color: var(--blue); }

.cert { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) { .cert { grid-template-columns: 280px 1fr; } }
.cert-doc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s); box-shadow: var(--shadow); padding: 10px; display: block; text-decoration: none; transform: rotate(-1.5deg); transition: transform .3s; }
.cert-doc:hover { transform: rotate(0); }
.cert-doc img { aspect-ratio: 210 / 297; width: 100%; object-fit: cover; }

/* Bewertungen */
.review { background: #fff; border: 1px dashed #B9C7D4; border-radius: var(--radius-m); padding: 26px; display: flex; flex-direction: column; }
.review .stars { color: #C9D4DE; letter-spacing: 2px; font-size: 1.15rem; margin-bottom: 12px; }
.review blockquote { margin: 0 0 16px; font-size: 1.05rem; color: var(--muted); font-style: normal; }
.review footer { margin-top: auto; font-size: .92rem; color: var(--muted); }
.review .ph-note { font-size: .82rem; background: #FFF4CC; color: #6B4E00; padding: 2px 8px; border-radius: 2px; align-self: flex-start; margin-bottom: 14px; }

/* CTA-Band */
.cta-band { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.4fr auto; } }
.cta-band h2 { margin-bottom: .3em; }
.cta-band p { margin: 0; }
.contact-inline { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 18px; font-weight: 500; }
.contact-inline a { color: inherit; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.contact-inline svg { width: 20px; height: 20px; color: var(--cyan); }

/* Timeline (Geschichte) */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 32px 28px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--blue); }
.timeline .when { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: var(--ink); display: block; }

/* 11  REFERENZEN ----------------------------------------------------------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter-bar button {
  min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font: inherit; font-weight: 500; color: var(--text); cursor: pointer; transition: all .2s;
}
.filter-bar button:hover { border-color: var(--blue); }
.filter-bar button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.ref-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.ref-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; display: flex; flex-direction: column; }
.ref-card[hidden] { display: none; }
.ref-card button.zoom { all: unset; cursor: zoom-in; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--mist); }
.ref-card button.zoom:focus-visible { outline: 3px solid var(--cyan); outline-offset: -3px; }
.ref-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.ref-card:hover img { transform: scale(1.06); }
.ref-card .body { padding: 20px 22px 24px; }
.ref-card .cat { font-size: .88rem; color: var(--cyan-text); font-weight: 600; margin-bottom: 4px; }
.ref-card dl { margin: 12px 0 0; font-size: .95rem; }
.ref-card dt { font-weight: 600; color: var(--ink); }
.ref-card dd { margin: 0 0 8px; color: var(--muted); }
.ref-empty { padding: 40px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius-m); }

.lightbox { position: fixed; inset: 0; z-index: 400; background: rgba(6, 20, 38, .92); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 84vh; width: auto; max-width: 100%; border-radius: var(--radius-s); }
.lightbox figcaption { color: #fff; text-align: center; margin-top: 12px; }
.lightbox-close { position: absolute; top: 14px; right: 14px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 28px; cursor: pointer; }

/* 12  FAQ ------------------------------------------------------------------ */
.faq { border-top: 1px solid var(--line); max-width: 880px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative; font-family: var(--font-head); font-weight: 600; font-size: 1.25rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; margin-top: -10px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -3px; }
.faq .answer { padding: 0 0 22px; color: var(--muted); max-width: 72ch; }
.faq .answer p:last-child { margin-bottom: 0; }

/* 13  FORMULARE ------------------------------------------------------------ */
.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }
.field label, .field .label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; color: var(--text);
  background: #fff; border: 1px solid #B9C7D4; border-radius: var(--radius-s); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30,99,176,.18); }
.field input[type="file"] { font: inherit; padding: 12px; border: 1px dashed #B9C7D4; border-radius: var(--radius-s); width: 100%; background: var(--mist); }
.field .hint { font-size: .88rem; color: var(--muted); margin-top: 6px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .97rem; }
.check input { width: 22px; height: 22px; margin-top: 2px; flex-shrink: 0; accent-color: var(--blue); }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 14px 16px; border-radius: var(--radius-s); font-weight: 500; display: none; }
.form-status.is-ok { display: block; background: #E3F6EC; color: #11593A; }
.form-status.is-error { display: block; background: #FDECEC; color: #8A1C1C; }
.form-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); padding: clamp(22px, 3.5vw, 44px); }
.contact-card { background: var(--ink); color: var(--on-dark); border-radius: var(--radius-m); padding: clamp(24px, 3vw, 36px); }
.contact-card h2, .contact-card h3 { color: #fff; }
.contact-card a { color: #fff; }
.contact-card dl { margin: 0; display: grid; gap: 14px; }
.contact-card dt { font-size: .88rem; color: var(--on-dark-muted); }
.contact-card dd { margin: 0; font-weight: 500; }

.map-consent { margin-top: 24px; border-radius: var(--radius-m); overflow: hidden; background: var(--mist); border: 1px solid var(--line); aspect-ratio: 16 / 10; display: grid; place-items: center; text-align: center; padding: 24px; }
.map-consent p { font-size: .93rem; color: var(--muted); max-width: 46ch; margin: 0 auto 14px; }
.map-consent iframe { width: 100%; height: 100%; border: 0; }
.map-consent.is-loaded { padding: 0; }

/* 14  FOOTER --------------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding-top: clamp(56px, 7vw, 88px); font-size: .97rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1fr; padding-bottom: 48px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-brand img { height: 34px; width: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 38ch; }
.site-footer h2 { font-family: var(--font-head); font-size: 1.15rem; color: #fff; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer address { font-style: normal; margin-top: 18px; line-height: 1.7; }
.footer-bottom { border-top: 1px solid rgba(157,179,201,.18); padding-block: 22px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .9rem; }
.linklike { all: unset; cursor: pointer; color: var(--on-dark); }
.linklike:hover { color: #fff; text-decoration: underline; }
.linklike:focus-visible { outline: 3px solid var(--cyan); }

/* 15  STICKY-KONTAKT ------------------------------------------------------- */
.float-cta { position: fixed; right: 24px; bottom: 24px; z-index: 90; box-shadow: 0 10px 28px -10px rgba(11,35,64,.55); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s, transform .3s; }
.float-cta.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .float-cta { display: none; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr 1.4fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 18px -12px rgba(11,35,64,.4);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px; font-size: .85rem; font-weight: 600; color: var(--ink); text-decoration: none; }
  .mobile-bar a svg { width: 22px; height: 22px; color: var(--blue); }
  .mobile-bar a.primary { background: var(--cyan); }
  .mobile-bar a.primary svg { color: var(--ink); }
  body { padding-bottom: 60px; }
}

/* 16  COOKIE-CONSENT ------------------------------------------------------- */
.cc-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 500; max-width: 560px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); box-shadow: 0 18px 50px -18px rgba(11,35,64,.5);
  padding: 24px; display: none;
}
.cc-banner.is-open { display: block; }
@media (max-width: 760px) { .cc-banner { bottom: 72px; left: 10px; right: 10px; padding: 20px; } }
.cc-banner h2 { font-size: 1.35rem; margin-bottom: 8px; }
.cc-banner p { font-size: .95rem; color: var(--muted); }
.cc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.cc-actions .btn { min-height: 46px; padding-inline: 1em; }
.cc-actions .cc-settings { grid-column: 1 / -1; }
.cc-btn-equal { background: var(--ink); color: #fff; }
.cc-btn-equal:hover { background: var(--blue); color: #fff; }
.cc-modal { position: fixed; inset: 0; z-index: 600; background: rgba(6,20,38,.6); display: none; align-items: center; justify-content: center; padding: 16px; }
.cc-modal.is-open { display: flex; }
.cc-dialog { background: #fff; border-radius: var(--radius-m); max-width: 620px; width: 100%; max-height: 90vh; overflow-y: auto; padding: clamp(22px, 3vw, 34px); }
.cc-dialog h2 { font-size: 1.6rem; }
.cc-cat { border-top: 1px solid var(--line); padding: 16px 0; }
.cc-cat-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.cc-cat h3 { font-size: 1.15rem; margin: 0; }
.cc-cat p { font-size: .93rem; color: var(--muted); margin: 6px 0 0; }
.cc-cat .services { font-size: .88rem; color: var(--muted); margin-top: 6px; }
.switch { position: relative; width: 52px; height: 30px; flex-shrink: 0; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 2; }
.switch span { position: absolute; inset: 0; background: #B9C7D4; border-radius: 999px; transition: background .2s; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; background: #fff; border-radius: 50%; transition: transform .2s; }
.switch input:checked + span { background: var(--blue); }
.switch input:checked + span::after { transform: translateX(22px); }
.switch input:disabled + span { opacity: .55; }
.switch input:focus-visible + span { outline: 3px solid var(--cyan); outline-offset: 2px; }

/* 17  ANIMATIONEN ---------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }
.pipeline[data-reveal] { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* Wasserfluss in den Schema-Grafiken */
.flow { stroke-dasharray: 10 14; animation: dash 1.4s linear infinite; }
.flow--slow { animation-duration: 2.4s; }
@keyframes dash { to { stroke-dashoffset: -24; } }
.draw { stroke-dasharray: var(--len, 1200); stroke-dashoffset: var(--len, 1200); animation: draw 2.2s ease forwards; animation-delay: var(--d, 0s); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.blink { animation: blink 2.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
.fill-level { animation: level 6s ease-in-out infinite; transform-box: fill-box; transform-origin: bottom; }
@keyframes level { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.82); } }
.parallax { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .draw { stroke-dashoffset: 0; }
}

/* 18  RECHTSTEXTE ---------------------------------------------------------- */
.prose { max-width: 780px; }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-top: 1.8em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.4em; }
.prose .notice { background: var(--mist); border-left: 3px solid var(--blue); padding: 16px 18px; font-size: .95rem; }

/* Icons in Karten */
.card > .icon { width: 36px; height: 36px; color: var(--blue); margin-bottom: 14px; }
