/* HyLogik – Ganzheitliche Hygiene-Systeme
   Farben laut Farbkodex (Logo - Farbkodex.docx) */

:root {
  --blue: #295c95;          /* Haupt-Blau / Logo-Quadrat */
  --teal: #095675;          /* Molekül-Verbindungslinien */
  --teal-hy: #235c64;       /* „Hy" */
  --mint: #85b6b0;          /* Molekül-Mint */
  --mint-soft: #e7f1ef;
  --red: #d00b04;           /* Roter Laser */
  --taupe: #9d898c;         /* Rahmenlinien */
  --light: #dfe0e9;         /* Helle Reflexe */
  --ink: #2f4665;           /* Claim-Farbe */
  --text: #3b464c;          /* „Logik" */
  --muted: #5f6b72;
  --bg: #ffffff;
  --bg-alt: #f4f6f9;
  --line: #e2e6ec;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(31, 52, 82, .06), 0 8px 24px rgba(31, 52, 82, .08);
  --shadow-lg: 0 2px 4px rgba(31, 52, 82, .06), 0 20px 48px rgba(31, 52, 82, .14);
  --container: 1160px;
  --header-h: 76px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--teal); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }

:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.4em; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 650; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--teal); color: #fff; }
.btn-ghost { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-ghost:hover { background: var(--blue); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--mint-soft); color: var(--ink); }
.btn-outline-light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 18px rgba(31,52,82,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand-icon { height: 48px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-word { height: 19px; width: auto; align-self: flex-start; }
/* Claim in Versalien, Farbe laut Farbkodex „Ganzheitliche Hygiene-Systeme" (#2F4665) */
.brand-claim { font-size: .7rem; font-weight: 700; color: var(--ink); margin-top: 6px; letter-spacing: .04em; text-transform: uppercase; }
@media (max-width: 420px) { .brand-claim { font-size: .62rem; letter-spacing: .02em; } }

.main-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; }
.main-nav a {
  display: block; padding: 8px 12px; border-radius: 999px;
  color: var(--text); text-decoration: none; font-weight: 550; font-size: .97rem;
}
.main-nav a:hover { color: var(--blue); background: var(--bg-alt); }
.main-nav a[aria-current="page"] { color: var(--blue); background: #e9f0f8; }
.main-nav .nav-cta { margin-left: 8px; }
.main-nav .nav-cta a { background: var(--blue); color: #fff; padding: 9px 18px; }
.main-nav .nav-cta a:hover { background: var(--teal); color: #fff; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  border-radius: var(--radius-sm); position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; left: 11px; width: 22px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .25s, opacity .2s; content: "";
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { left: 0; top: -7px; }
.nav-toggle span::after { left: 0; top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-open .main-nav { max-height: 80vh; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 12px 20px 20px; gap: 2px; }
  .main-nav a { padding: 12px 14px; border-radius: var(--radius-sm); font-size: 1.05rem; }
  .main-nav .nav-cta { margin: 8px 0 0; }

  .main-nav .nav-cta a { text-align: center; border-radius: 999px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 72px; background: linear-gradient(180deg, #fff 0%, var(--bg-alt) 100%); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("../img/molecules.svg") no-repeat right -160px top -120px / 560px auto;
  opacity: .35;
}
@media (max-width: 900px) { .hero::before { background-position: right -260px top -160px; opacity: .25; } }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--red); border-radius: 2px; }
.hero h1 { margin-bottom: .45em; }
.hero h1 .accent { color: var(--blue); }
.hero-lead { font-size: 1.18rem; color: var(--muted); max-width: 34em; }
.pillars-inline { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 30px; list-style: none; }
.pillars-inline li {
  font-size: .9rem; font-weight: 600; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-logo { position: relative; display: grid; place-items: center; padding: 24px 0; }
.hero-logo::before {
  content: ""; position: absolute; width: min(460px, 92%); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, #fff 55%, rgba(255,255,255,0) 72%);
}
.hero-logo img { position: relative; width: min(320px, 70%); height: auto; filter: drop-shadow(0 18px 30px rgba(31,52,82,.16)); }

@media (max-width: 900px) {
  .hero { padding: 32px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-logo { order: -1; padding: 0; }
  .hero-logo img { width: min(220px, 56%); }
}

/* ---------- Trust bar ---------- */
.trust { background: var(--ink); color: #fff; }
.trust ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; }
.trust li { display: flex; align-items: center; gap: 12px; padding: 22px 18px; font-weight: 600; font-size: .98rem; line-height: 1.3; min-width: 0; hyphens: auto; -webkit-hyphens: auto; }
.trust li + li { border-left: 1px solid rgba(255,255,255,.14); }
.trust svg { width: 26px; height: 26px; color: var(--mint); flex: none; }
@media (max-width: 860px) {
  .trust ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust li:nth-child(3) { border-left: 0; }
  .trust li:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.14); }
}
@media (max-width: 420px) {
  .trust li { padding: 16px 10px; font-size: .9rem; gap: 8px; }
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { font-size: 1.12rem; color: var(--muted); }
@media (max-width: 700px) { .section { padding: 68px 0; } .section-head { margin-bottom: 34px; } }

/* ---------- Leistungen ---------- */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow); display: flex; flex-direction: column;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.service::before {
  content: ""; position: absolute; left: 32px; top: 0; width: 48px; height: 3px; border-radius: 0 0 3px 3px;
  background: var(--accent, var(--blue));
}
.service-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.service-icon {
  width: 52px; height: 52px; border-radius: 14px; flex: none; display: grid; place-items: center;
  background: var(--accent-soft, #e6eef7); color: var(--accent, var(--blue));
}
.service-icon svg { width: 28px; height: 28px; }
.service-num { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: block; }
.service h3 { margin: 2px 0 0; font-size: 1.32rem; }
.service dl { margin: 0; display: grid; gap: 14px; flex: 1; }
.service dt { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); margin-bottom: 2px; }
.service dd { margin: 0; }
.partner-tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin-top: 4px; }
.partner-tags li { font-size: .85rem; font-weight: 600; background: var(--bg-alt); border-radius: 6px; padding: 4px 10px; color: var(--ink); }
.service--1 { --accent: var(--blue); --accent-soft: #e6eef7; }
.service--2 { --accent: var(--teal); --accent-soft: #e2eef3; }
.service--3 { --accent: var(--teal-hy); --accent-soft: var(--mint-soft); }
.service--4 { --accent: var(--red); --accent-soft: #fbe9e8; }
@media (max-width: 820px) { .services { grid-template-columns: 1fr; } .service { padding: 26px 22px; } .service::before { left: 22px; } }

/* ---------- Verfahren ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature + .feature { margin-top: 96px; }
.feature--reverse .feature-media { order: 2; }
.feature-media { position: relative; }
.feature-media img { border-radius: 20px; box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.feature-media .tag {
  position: absolute; top: 18px; left: 18px; background: rgba(255,255,255,.94); color: var(--ink);
  font-size: .82rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; box-shadow: var(--shadow);
}
.checklist { list-style: none; display: grid; gap: 12px; margin: 22px 0 0; }
.checklist li { position: relative; padding-left: 34px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--mint-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23095675' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.checklist strong { color: var(--ink); }
.case {
  margin-top: 28px; padding: 20px 22px; border-radius: var(--radius); background: #fff;
  border: 1px solid var(--line); border-left: 4px solid var(--mint);
}
.case-label { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); margin-bottom: 6px; }
.case-figures { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 10px 0 8px; }
.case-figures .fig { font-size: 1.5rem; font-weight: 800; color: var(--ink); line-height: 1.1; }
.case-figures .fig small { display: block; font-size: .78rem; font-weight: 600; color: var(--muted); }
.case-figures .arrow { color: var(--red); font-size: 1.4rem; }
.case p { margin: 0; font-size: .95rem; color: var(--muted); }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; gap: 32px; }
  .feature--reverse .feature-media { order: 0; }
  .feature + .feature { margin-top: 72px; }
  .feature-media img { aspect-ratio: 4 / 3; }
}

/* ---------- Warum ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why {
  background: #fff; border-radius: var(--radius); padding: 28px 24px; border: 1px solid var(--line);
}
.why-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--mint-soft); color: var(--teal); display: grid; place-items: center; margin-bottom: 18px; }
.why-icon svg { width: 26px; height: 26px; }
.why h3 { font-size: 1.1rem; }
.why p { margin: 0; color: var(--muted); font-size: .98rem; }
@media (max-width: 1000px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------- Branchen ---------- */
.sectors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; list-style: none; }
.sectors li {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: var(--radius-sm);
  background: #fff; border: 1px solid var(--line); font-weight: 600; color: var(--ink); line-height: 1.3;
}
.sectors svg { width: 24px; height: 24px; color: var(--blue); flex: none; }
@media (max-width: 960px) { .sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sectors { grid-template-columns: 1fr; gap: 10px; } .sectors li { padding: 14px; } }

/* ---------- Referenzen ---------- */
.ba-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ba-card { margin: 0; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.ba-card figcaption { padding: 16px 18px 18px; }
.ba-card figcaption strong { display: block; color: var(--ink); }
.ba-card figcaption span { font-size: .9rem; color: var(--muted); }

.ba {
  position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--light);
  --pos: 50%; touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba .ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px;
  background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 0 12px rgba(0,0,0,.25); pointer-events: none;
}
.ba-handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%);
  border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f4665' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center / 22px no-repeat;
  box-shadow: var(--shadow-lg);
}
.ba input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize;
  -webkit-appearance: none; appearance: none; background: transparent;
}
.ba input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 44px; height: 100vh; }
.ba input[type="range"]:focus-visible ~ .ba-handle::after { outline: 3px solid var(--mint); outline-offset: 2px; }
.ba-label {
  position: absolute; top: 14px; z-index: 1; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; background: rgba(47,70,101,.85); color: #fff; pointer-events: none;
}
.ba-label--before { left: 14px; }
.ba-label--after { right: 14px; background: rgba(9,86,117,.9); }

.gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 24px; }
.gallery-item {
  position: relative; display: block; padding: 0; border: 0; background: none; cursor: zoom-in;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-align: left; font: inherit;
}
.gallery-item img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 14px 12px; color: #fff; font-weight: 600; font-size: .92rem; line-height: 1.3;
  background: linear-gradient(180deg, transparent, rgba(20,33,52,.82));
}
@media (max-width: 1000px) {
  .ba-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .ba-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 12px; }
}

/* Lightbox */
.lightbox {
  border: 0; padding: 0; background: transparent; max-width: min(92vw, 1100px); max-height: 92vh; overflow: visible;
}
.lightbox::backdrop { background: rgba(14,24,38,.86); }
.lightbox img { max-width: min(92vw, 1100px); max-height: 82vh; width: auto; border-radius: 12px; margin: 0 auto; }
.lightbox p { color: #fff; text-align: center; margin: 12px 0 0; font-weight: 600; }
.lightbox-close {
  position: absolute; top: -14px; right: -14px; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: #fff; color: var(--ink); font-size: 1.6rem; line-height: 1; box-shadow: var(--shadow-lg);
}
@media (max-width: 640px) { .lightbox-close { top: -54px; right: 0; } }

/* ---------- Über uns ---------- */
.about { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: start; }
.quote {
  position: relative; margin: 0; padding: 64px 36px 32px; border-radius: 20px; background: #fff; box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.quote::before {
  content: "\201C"; position: absolute; top: 14px; left: 32px; font-size: 5rem; line-height: 1; color: var(--mint); font-family: Georgia, serif;
}
.quote p { font-size: 1.08rem; }
.quote .motto { font-weight: 700; color: var(--ink); font-size: 1.15rem; margin: 0; }
.person { background: var(--ink); color: #e9eef5; border-radius: 20px; padding: 32px; position: relative; overflow: hidden; }
.person::after {
  content: ""; position: absolute; right: -60px; bottom: -60px; width: 240px; height: 240px; opacity: .14;
  background: url("../img/molecules.svg") center / contain no-repeat; filter: brightness(3);
}
.person h3 { color: #fff; font-size: 1.4rem; margin-bottom: 2px; }
.person .role { color: var(--mint); font-weight: 600; margin-bottom: 20px; }
.person ul { list-style: none; display: grid; gap: 12px; position: relative; z-index: 1; }
.person li { display: flex; gap: 12px; }
.person li svg { width: 22px; height: 22px; color: var(--mint); flex: none; margin-top: 2px; }
.partners { margin-top: 28px; }
.partners h4 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.partners ul { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; list-style: none; }
.partners li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; line-height: 1.3; }
.partners li strong { display: block; color: var(--ink); font-size: .98rem; }
.partners li span { font-size: .85rem; color: var(--muted); }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; gap: 40px; } .quote { padding: 60px 24px 26px; } .quote::before { left: 22px; } }
@media (max-width: 420px) { .partners ul { grid-template-columns: 1fr; } }

/* ---------- Kontakt ---------- */
.contact { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--blue) 0%, var(--teal) 100%); color: #e9f1f8; }
.contact::before {
  content: ""; position: absolute; inset: 0; opacity: .12; pointer-events: none;
  background: url("../img/molecules.svg") no-repeat left -140px bottom -160px / 560px auto; filter: brightness(4);
}
.contact .container { position: relative; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.contact h2 { color: #fff; }
.contact .eyebrow { color: var(--mint); }
.contact .lead { font-size: 1.15rem; color: #d7e4f0; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.contact-cards { display: grid; gap: 12px; }
.contact-card {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--radius);
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: #fff; text-decoration: none;
  transition: background .2s;
}
a.contact-card:hover { background: rgba(255,255,255,.18); color: #fff; }
.contact-card .ic { width: 46px; height: 46px; border-radius: 12px; background: rgba(255,255,255,.14); display: grid; place-items: center; flex: none; }
.contact-card .ic svg { width: 22px; height: 22px; }
.contact-card small { display: block; color: #bcd2e4; font-size: .82rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.contact-card strong { font-size: 1.1rem; font-weight: 650; word-break: break-word; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Footer ---------- */
.site-footer { background: #1d2c40; color: #aebbcb; padding: 56px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand img { height: 56px; width: auto; background: #fff; border-radius: 10px; padding: 6px 10px; }
.footer-brand p { margin-top: 16px; max-width: 30em; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: #d7e1ec; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .88rem;
}
.footer-bottom .motto { color: var(--mint); font-weight: 600; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Rechtstexte ---------- */
.legal { padding: 64px 0 96px; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: .8em; }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal h3 { font-size: 1.05rem; margin-top: 1.4em; }
.legal address { font-style: normal; }
.legal ul { padding-left: 1.3em; margin-bottom: 1em; }
.legal li { margin-bottom: .3em; }
.legal .back { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; margin-bottom: 28px; text-decoration: none; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Unterseiten & neue Bausteine
   ========================================================= */

/* ---------- Seitenkopf der Unterseiten ---------- */
.page-hero { position: relative; overflow: hidden; padding: 64px 0 56px; background: linear-gradient(180deg, #fff 0%, var(--bg-alt) 100%); border-bottom: 1px solid var(--line); }
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .28;
  background: url("../img/molecules.svg") no-repeat right -140px top -160px / 520px auto;
}
.page-hero .container { position: relative; }
.page-hero h1 { max-width: 16em; }
.page-hero .lead { font-size: 1.18rem; color: var(--muted); max-width: 38em; margin: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--taupe); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue); }
@media (max-width: 700px) { .page-hero { padding: 40px 0 36px; } .page-hero::before { background-position: right -300px top -200px; } }

/* ---------- Nutzenleiste (aus der Instagram-Vorlage) ---------- */
.benefits { background: var(--ink); color: #fff; }
.benefits ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; }
.benefits li {
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  padding: 26px 14px; font-weight: 700; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; line-height: 1.3;
  min-width: 0; hyphens: auto; -webkit-hyphens: auto;
}
.benefits li + li { border-left: 1px solid rgba(255,255,255,.14); }
.benefits svg { width: 34px; height: 34px; color: var(--mint); }
@media (max-width: 760px) {
  .benefits ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefits li:nth-child(3) { border-left: 0; }
  .benefits li:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.14); }
  .benefits li { padding: 20px 10px; font-size: .8rem; }
}

/* ---------- Links in Karten ---------- */
.more { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 650; text-decoration: none; }
.more svg { width: 18px; height: 18px; transition: transform .2s; }
.more:hover svg { transform: translateX(3px); }
.service p.intro { font-size: 1.05rem; color: var(--ink); font-weight: 550; }
.service .checklist { margin: 16px 0 0; }
.section-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 40px; }

/* ---------- Einsatzbereiche ---------- */
.areas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.area {
  position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: var(--text);
  transition: transform .25s, box-shadow .25s;
}
a.area:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--text); }
.area img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.area-body { padding: 18px 20px 20px; }
.area h3 { font-size: 1.08rem; margin-bottom: .35em; }
.area p { margin: 0; font-size: .95rem; color: var(--muted); }
.area .area-tag {
  position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.94); color: var(--ink);
  font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px;
}
.areas--icons .area { padding: 24px 22px; }
.areas--icons .area-body { padding: 0; }
.area-icon { width: 48px; height: 48px; border-radius: 12px; background: #e6eef7; color: var(--blue); display: grid; place-items: center; margin-bottom: 16px; }
.area-icon svg { width: 26px; height: 26px; }
.areas + h3.group-title, .group-title { font-size: 1.25rem; margin: 56px 0 20px; }
.group-title:first-child { margin-top: 0; }
@media (max-width: 1040px) { .areas { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } .area-body { padding: 14px; } .area h3 { font-size: 1rem; } .area p { font-size: .9rem; } }
@media (max-width: 460px) { .areas { grid-template-columns: 1fr; } }

/* ---------- Ablauf ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 26px 22px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); counter-increment: step; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 800; margin-bottom: 14px;
}
.steps h3 { font-size: 1.05rem; margin-bottom: .3em; }
.steps p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Verfahren-Teaser ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.duo-card { position: relative; border-radius: 20px; overflow: hidden; min-height: 380px; display: flex; align-items: flex-end; color: #fff; text-decoration: none; box-shadow: var(--shadow-lg); }
.duo-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.duo-card:hover img { transform: scale(1.04); }
.duo-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,33,52,0) 15%, rgba(20,33,52,.6) 50%, rgba(20,33,52,.94) 100%); }
.duo-body { position: relative; z-index: 1; padding: 28px; }
.duo-body h3 { color: #fff; font-size: 1.45rem; }
.duo-body p { color: #dbe5ef; margin: 0; }
.duo-body .more { color: #fff; }
.duo-card:hover { color: #fff; }
.duo--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.duo--3 .duo-card { min-height: 420px; }
@media (max-width: 960px) { .duo--3 { grid-template-columns: 1fr; } .duo--3 .duo-card { min-height: 300px; } }
@media (max-width: 800px) { .duo { grid-template-columns: 1fr; } .duo-card { min-height: 300px; } }

/* ---------- Referenzen: Filter & Raster ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 36px; }
.filter {
  border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-weight: 600; font-size: .93rem;
  padding: 8px 16px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.filter:hover { border-color: var(--blue); }
.filter[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.filter span { opacity: .65; font-weight: 500; margin-left: 4px; }

.ref-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; grid-auto-flow: dense; }
/* !important, weil .ba-card sonst mit display:flex das hidden-Attribut überschreibt */
.ref-grid > [hidden] { display: none !important; }
.ref-grid .ba-card { display: flex; flex-direction: column; }
.ref-wide { grid-column: span 2; }
.ref-media { position: relative; aspect-ratio: 4 / 5; background: var(--light); }
.ref-media > img, .ref-media > .zoom > img { width: 100%; height: 100%; object-fit: cover; }
.ref-wide .ref-media { aspect-ratio: 8 / 5; }
.zoom { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; height: 100%; background: #fff; }
.pair .zoom { position: relative; overflow: hidden; }
.pair img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.pair .zoom:hover img, .ref-media > .zoom:hover img { transform: scale(1.03); }
.ref-media > .zoom { overflow: hidden; }
.ref-media > .zoom img { transition: transform .4s ease; }
@media (max-width: 1000px) { .ref-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .ref-grid { grid-template-columns: 1fr; }
  .ref-wide { grid-column: auto; }
  .ref-wide .ref-media { aspect-ratio: 4 / 3; }
}

/* ---------- Werte / Kontaktseite ---------- */
.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; }
.values li { display: flex; align-items: center; gap: 12px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); font-weight: 700; color: var(--ink); letter-spacing: .04em; text-transform: uppercase; font-size: .9rem; }
.values svg { width: 26px; height: 26px; color: var(--teal); flex: none; }
@media (max-width: 860px) { .values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.contact-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-split .contact-card { background: #fff; border-color: var(--line); color: var(--ink); box-shadow: var(--shadow); }
.contact-split a.contact-card:hover { background: var(--bg-alt); color: var(--ink); }
.contact-split .contact-card .ic { background: #e6eef7; color: var(--blue); }
.contact-split .contact-card small { color: var(--muted); }
.info-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.info-box h2 { font-size: 1.35rem; }
@media (max-width: 860px) { .contact-split { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Social-Links im Footer ---------- */
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.08); color: #fff; text-decoration: none; font-weight: 600; font-size: .9rem; }
.social a:hover { background: rgba(255,255,255,.16); text-decoration: none; }
.social svg { width: 20px; height: 20px; }

/* Bereits kombinierte Vorher/Nachher-Fotos vollständig zeigen statt beschneiden */
.ref-media .zoom[data-full*="vorher-nachher"] img { object-fit: contain; background: #fff; }
.values li { min-width: 0; }
@media (max-width: 480px) { .values li { padding: 14px 12px; gap: 8px; font-size: .78rem; letter-spacing: .02em; } .values svg { width: 22px; height: 22px; } }

/* Partner-Links */
a.partner-link { color: inherit; text-decoration: none; }
a.partner-link:hover { color: var(--blue); text-decoration: underline; }
.partners a.partner-link { display: block; height: 100%; }
.partners li:has(a.partner-link:hover) { border-color: var(--blue); }
.partner-tags a.partner-link:hover { text-decoration: none; }
.partner-tags li:has(a.partner-link:hover) { background: #e6eef7; }
.steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .steps--3 { grid-template-columns: 1fr; } }
ol.steps, ol.breadcrumb { margin-top: 0; padding: 0; }
ol.breadcrumb { margin-bottom: 18px; }
.note { margin: 16px 0 0; padding: 14px 18px; border-radius: var(--radius-sm); background: #fff; border-left: 4px solid var(--taupe); font-size: .95rem; color: var(--muted); }

/* Lesefortschritt direkt unter dem Header */
.scroll-progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--teal) 70%, var(--mint));
  transform: scaleX(0); transform-origin: 0 50%;
  pointer-events: none; opacity: .85;
}
