/* ==========================================================================
   PILZ Gebäudereinigung — Designsystem
   Farben aus dem Logo: Blau #004080 · Orange #F07000 · Schwarz
   ========================================================================== */

:root {
  /* Marke */
  --blue: #004080;
  --blue-dark: #00305f;
  --blue-deep: #071e33;
  --blue-night: #0a2c4d;
  --blue-tint: #e9f1f9;
  --blue-tint-2: #d6e5f3;
  --orange: #f07000;
  --orange-dark: #d96400;
  --orange-tint: #fdefe2;

  /* Neutral */
  --ink: #13202b;
  --slate: #4b5d6e;
  --slate-light: #7b8a99;
  --line: #dfe7ee;
  --bg-soft: #f4f8fb;
  --white: #fff;

  /* Typografie */
  --font-head: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --container: 1200px;
  --header-h: 92px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(7, 30, 51, .07), 0 4px 14px rgba(7, 30, 51, .05);
  --shadow-md: 0 2px 6px rgba(7, 30, 51, .08), 0 14px 34px rgba(7, 30, 51, .10);
}

/* ---------- Reset & Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); letter-spacing: -.015em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
ul { padding-left: 1.2em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2rem); }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--blue-deep); color: #cfdeeb; }
.section--dark h2, .section--dark h3 { color: var(--white); }

.kicker {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: .9rem;
}
.lead { font-size: clamp(1.1rem, 1.8vw, 1.28rem); color: var(--slate); max-width: 46em; }
.section-head { max-width: 800px; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .lead { margin-left: auto; margin-right: auto; }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  padding: .9em 1.6em;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  text-decoration: none !important;
}
.btn svg { flex: none; }
.btn--primary { background: var(--orange); color: var(--white); box-shadow: 0 6px 18px rgba(240, 112, 0, .32); }
.btn--primary:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(240, 112, 0, .38); }
.btn--ghost { border-color: var(--blue-tint-2); color: var(--blue); background: var(--white); }
.btn--ghost:hover { border-color: var(--blue); transform: translateY(-2px); }
.btn--ghost-dark { border-color: rgba(255,255,255,.35); color: var(--white); background: transparent; }
.btn--ghost-dark:hover { border-color: var(--white); background: rgba(255,255,255,.08); transform: translateY(-2px); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 2rem; min-height: var(--header-h); }
.header__logo { flex: none; }
.header__logo img { height: 62px; width: auto; }
.nav { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.nav > a, .nav .nav__item > a {
  font-family: var(--font-head);
  font-weight: 600; font-size: 1rem;
  color: var(--ink);
  padding: .65em 1.05em;
  border-radius: 8px;
  white-space: nowrap;
}
.nav > a:hover, .nav .nav__item > a:hover { background: var(--blue-tint); color: var(--blue); text-decoration: none; }
.nav > a[aria-current="page"], .nav .nav__item > a[aria-current="page"] { color: var(--blue); }
.nav__cta { display: none; }

.nav__item { position: relative; }
.nav__item > a .caret { display: inline-block; margin-left: .3em; transition: transform .2s; font-size: .7em; vertical-align: middle; }
.dropdown {
  /* top: 100% ohne Lücke — sonst reißt die Hover-Kette zwischen Link und Menü ab */
  position: absolute; top: 100%; left: 0;
  min-width: 290px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: .55rem;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  width: 560px;
}
.nav__item:hover .dropdown, .nav__item:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__item:hover > a .caret { transform: rotate(180deg); }
.dropdown a {
  display: block; padding: .7em .9em;
  font-family: var(--font-head); font-weight: 600; font-size: .93rem;
  color: var(--ink); border-radius: 8px; white-space: normal;
}
.dropdown a:hover { background: var(--blue-tint); color: var(--blue); text-decoration: none; }
.dropdown a span { display: block; font-family: var(--font-body); font-weight: 400; font-size: .8rem; color: var(--slate-light); }
.dropdown a:hover span { color: var(--blue); }

.header__cta { display: flex; align-items: center; gap: .9rem; }
.header__phone { font-family: var(--font-head); font-weight: 700; color: var(--ink); white-space: nowrap; display: flex; align-items: center; gap: .45em; }
.header__phone:hover { color: var(--blue); text-decoration: none; }
.header__cta .btn { padding: .7em 1.3em; font-size: .93rem; }

.burger { display: none; margin-left: auto; background: none; border: 0; padding: .5rem; cursor: pointer; }
.burger span { display: block; width: 26px; height: 3px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(0, 64, 128, .55), transparent 62%),
    radial-gradient(900px 450px at -8% 108%, rgba(240, 112, 0, .16), transparent 55%),
    linear-gradient(160deg, var(--blue-deep) 0%, var(--blue-night) 58%, #0d3a66 100%);
  color: #d9e6f2;
  overflow: hidden;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(115deg, transparent 42%, #000 95%);
  pointer-events: none;
}
.hero__sketch {
  position: absolute;
  right: clamp(-140px, -3vw, 40px);
  bottom: 105px; /* endet oberhalb der Proof-Leiste */
  width: min(44vw, 620px);
  height: auto;
  color: #fff;
  opacity: .08;
  pointer-events: none;
  z-index: 0;
}
.hero__sketch-window { color: var(--orange); opacity: .9; }
@media (max-width: 900px) {
  .hero__sketch { width: 78vw; right: -24vw; bottom: -4%; opacity: .05; }
}
.hero__inner { position: relative; z-index: 1; padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(3rem, 7vw, 5.5rem); max-width: 820px; }
.hero h1 { color: var(--white); margin-bottom: .45em; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero .lead { color: #b9cddf; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 1.1rem; }
.hero__note { font-size: .9rem; color: #8fa9c0; }
.hero__note a { color: #cfe0ef; font-weight: 600; }

.proofbar { border-top: 1px solid rgba(255,255,255,.14); position: relative; z-index: 1; }
.proofbar__inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1rem; padding: 1.4rem 0;
}
.proof { display: flex; align-items: center; gap: .8rem; }
.proof strong { font-family: var(--font-head); font-size: 1.35rem; color: var(--white); display: block; line-height: 1.1; }
.proof span { font-size: .85rem; color: #9db4c9; }
.proof svg { flex: none; color: var(--orange); }

/* ---------- Karten / Leistungen ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem 1.6rem;
  position: relative;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  display: flex; flex-direction: column;
}
a.card { color: inherit; text-decoration: none !important; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--blue-tint-2); }
.card__icon {
  width: 52px; height: 52px; border-radius: 13px;
  background: var(--blue-tint); color: var(--blue);
  display: grid; place-items: center;
  margin-bottom: 1.1rem;
  transition: background .22s, color .22s;
}
.card:hover .card__icon { background: var(--blue); color: var(--white); }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--slate); font-size: .95rem; flex: 1; }
.card__more { margin-top: 1rem; font-family: var(--font-head); font-weight: 700; font-size: .92rem; color: var(--blue); display: inline-flex; align-items: center; gap: .4em; }
.card__more::after { content: "→"; transition: transform .2s; }
.card:hover .card__more::after { transform: translateX(4px); }
.card--flag { border-top: 3px solid var(--orange); }

/* ---------- USP / Warum Pilz ---------- */
.usp { display: flex; gap: 1.1rem; align-items: flex-start; }
.usp__icon {
  flex: none; width: 46px; height: 46px; border-radius: 12px;
  background: rgba(240, 112, 0, .14); color: var(--orange);
  display: grid; place-items: center;
}
.section--dark .usp h3 { font-size: 1.1rem; margin-bottom: .3em; }
.section--dark .usp p { color: #9db4c9; font-size: .95rem; margin: 0; }

/* ---------- Ablauf ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.step { counter-increment: step; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.4rem; position: relative; }
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-head); font-weight: 800; font-size: 2.2rem;
  color: var(--blue-tint-2);
  display: block; line-height: 1; margin-bottom: .7rem;
}
.step h3 { font-size: 1.06rem; margin-bottom: .3em; }
.step p { font-size: .92rem; color: var(--slate); margin: 0; }

/* ---------- Testimonial / Referenzen ---------- */
.quote {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 3rem);
  box-shadow: var(--shadow-sm);
  max-width: 860px; margin: 0 auto;
  position: relative;
}
.quote::before {
  content: "“";
  font-family: var(--font-head);
  font-size: 6rem; line-height: 1;
  color: var(--orange);
  position: absolute; top: -0.05em; left: .18em;
  opacity: .9;
}
.quote blockquote { margin: 0 0 1.4rem; font-size: clamp(1.15rem, 2vw, 1.4rem); font-family: var(--font-head); font-weight: 500; line-height: 1.45; color: var(--ink); padding-top: 1.2rem; }
.quote__who { display: flex; align-items: center; gap: 1rem; }
.quote__avatar { width: 54px; height: 54px; border-radius: 50%; background: var(--blue-tint); color: var(--blue); display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; }
.quote__who strong { display: block; font-family: var(--font-head); }
.quote__who span { font-size: .9rem; color: var(--slate); }
.quote__service { margin-left: auto; background: var(--blue-tint); color: var(--blue); font-family: var(--font-head); font-weight: 700; font-size: .82rem; padding: .45em 1em; border-radius: 999px; white-space: nowrap; }

.logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2.6rem; }
.logos .ph { aspect-ratio: 5 / 2; }

/* Endlos-Logo-Karussell mit Fade an den Rändern */
.logos-marquee {
  overflow: hidden;
  margin-top: 2.6rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.logos-track { display: flex; width: max-content; animation: logos-scroll 30s linear infinite; }
.logos-marquee:hover .logos-track { animation-play-state: paused; }
.logos-set { display: flex; gap: 1rem; padding-right: 1rem; }
.logos-set .logo-tile { width: 250px; flex: none; }
@keyframes logos-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .logos-track { animation: none; }
  .logos-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}
@media (max-width: 760px) {
  .logos-set .logo-tile { width: 190px; }
}

.logo-tile {
  aspect-ratio: 5 / 2;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; gap: .55rem;
  padding: 1.1rem 1.4rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.logo-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.logo-tile img {
  max-height: 46px; max-width: 100%; width: auto; object-fit: contain;
  filter: grayscale(1); opacity: .72;
  transition: filter .25s ease, opacity .25s ease;
}
.logo-tile:hover img { filter: none; opacity: 1; }
.logo-tile--wag img { max-height: 34px; }
.logo-tile--wag span { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; color: var(--ink); opacity: .72; transition: opacity .25s ease; }
.logo-tile--wag:hover span { opacity: 1; }
.quote__badge {
  margin-left: auto;
  background: var(--orange-tint); color: var(--orange-dark);
  font-family: var(--font-head); font-weight: 700; font-size: .78rem;
  padding: .4em .9em; border-radius: 999px; white-space: nowrap;
}

/* ---------- Platzhalter ---------- */
.ph {
  border: 1.5px dashed #b6c6d4;
  border-radius: var(--radius);
  background: repeating-linear-gradient(-45deg, #f2f6fa 0 14px, #eaf1f7 14px 28px);
  display: grid; place-items: center;
  color: var(--slate-light);
  font-size: .82rem; font-weight: 600;
  text-align: center;
  padding: .8rem;
  min-height: 70px;
}
.ph--tall { aspect-ratio: 4 / 3; }
.ph--wide { aspect-ratio: 16 / 7; }

/* ---------- Media / Split-Layouts ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.figcap { font-size: .82rem; color: var(--slate-light); margin-top: .6rem; }

.checks { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .65rem; }
.checks li { position: relative; padding-left: 2.1em; }
.checks li::before {
  content: "✓";
  position: absolute; left: 0; top: .28em;
  font-weight: 800; font-size: .8em;
  color: var(--white); background: var(--blue);
  width: 1.6em; height: 1.6em; border-radius: 50%;
  display: grid; place-items: center;
}

/* Nummerierte Prozessliste (z. B. Ablauf Fassadenreinigung) */
.process { list-style: none; counter-reset: proc; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 1.15rem; }
.process li { counter-increment: proc; position: relative; padding-left: 60px; min-height: 44px; }
.process li::before {
  content: counter(proc, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--blue-tint); color: var(--blue);
  font-family: var(--font-head); font-weight: 800; font-size: 1.05rem;
  display: grid; place-items: center;
}
.process strong { font-family: var(--font-head); display: block; margin-bottom: .1em; }
.process p { margin: 0; color: var(--slate); font-size: .97rem; }

/* ---------- Region ---------- */
.region-tags { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.region-tags span {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 999px; padding: .45em 1.1em;
  font-family: var(--font-head); font-weight: 600; font-size: .9rem;
}
.region-tags span.is-hq { background: var(--blue); border-color: var(--blue); color: var(--white); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); margin-bottom: .8rem; overflow: hidden; }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.1rem 1.4rem;
  font-family: var(--font-head); font-weight: 700; font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--blue); transition: transform .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] summary { color: var(--blue); }
.faq .faq__body { padding: 0 1.4rem 1.2rem; color: var(--slate); font-size: .97rem; }

/* ---------- CTA-Band ---------- */
.cta-band {
  background:
    radial-gradient(700px 320px at 90% 120%, rgba(240,112,0,.28), transparent 60%),
    linear-gradient(140deg, var(--blue-dark), var(--blue) 70%, #0059b0);
  border-radius: var(--radius-lg);
  color: var(--white);
  padding: clamp(2.2rem, 5vw, 3.8rem);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center;
}
.cta-band h2 { color: var(--white); margin-bottom: .3em; }
.cta-band p { color: #c8dcef; margin: 0; }
.cta-band__actions { display: flex; flex-direction: column; gap: .8rem; align-items: flex-start; justify-self: end; }
.cta-band__actions .btn--ghost-dark { border-color: rgba(255,255,255,.4); }

/* ---------- Kontakt-Layout ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }

/* ---------- Formular ---------- */
.form { display: grid; gap: 1rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { font-family: var(--font-head); font-weight: 600; font-size: .9rem; display: block; margin-bottom: .35rem; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 10px;
  padding: .75em 1em; background: var(--white);
  transition: border-color .15s, box-shadow .15s;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,64,128,.12);
}
.form__note { font-size: .82rem; color: var(--slate-light); }
.consent { display: flex; gap: .7em; align-items: flex-start; font-weight: 400; font-size: .88rem; color: var(--slate); cursor: pointer; }
.consent input { width: auto; margin: .25em 0 0; flex: none; accent-color: var(--blue); }

/* ---------- Breadcrumb & Unterseiten-Hero ---------- */
.page-hero { background: linear-gradient(160deg, var(--blue-deep), var(--blue-night) 70%, #0d3a66); color: #c3d6e7; padding: clamp(3rem, 6vw, 4.5rem) 0; }
.page-hero h1 { color: var(--white); max-width: 18em; }
.page-hero .lead { color: #b9cddf; }
.breadcrumb { font-size: .85rem; margin-bottom: 1.2rem; color: #8fa9c0; }
.breadcrumb a { color: #b9cddf; }
.breadcrumb span::before { content: "›"; margin: 0 .5em; color: #5f7d99; }

/* ---------- Prose (Unterseiten-Fließtext) ---------- */
.prose { max-width: 720px; }
.prose h2 { margin-top: 1.8em; font-size: 1.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { color: var(--slate); }

.aside-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; position: sticky; top: 100px; }
.aside-card h3 { font-size: 1.05rem; }
.aside-card .btn { width: 100%; justify-content: center; margin-top: .4rem; }
.aside-card hr { border: 0; border-top: 1px solid var(--line); margin: 1.2rem 0; }
.aside-card .contactline { display: flex; gap: .6em; align-items: center; font-size: .95rem; margin-bottom: .5rem; }
.aside-card .contactline svg { color: var(--blue); flex: none; }
.layout-sidebar { display: grid; grid-template-columns: 1fr 360px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }

/* ---------- Footer ---------- */
.footer { background: var(--blue-deep); color: #9db4c9; font-size: .95rem; }
.footer a { color: #cfe0ef; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem; }
.footer h4 { color: var(--white); font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer__brand img { width: 120px; background: var(--white); padding: 10px 12px; border-radius: 10px; margin-bottom: 1.1rem; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 1.3rem 0; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .85rem; color: #7b93aa; }
.footer__bottom a { color: #9db4c9; }

/* ---------- Mobile Call-Bar ---------- */
.callbar { display: none; }

/* ---------- Scroll-Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .proofbar__inner { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .layout-sidebar { grid-template-columns: 1fr; }
  .aside-card { position: static; }
  .header__phone span { display: none; }
}

@media (max-width: 900px) {
  :root { --header-h: 74px; }
  /* backdrop-filter würde für das fixe Menü einen Containing Block erzeugen */
  .header { backdrop-filter: none; background: var(--white); }
  .header__logo img { height: 46px; }

  .nav {
    display: none;
    position: fixed; inset: var(--header-h) 0 0 0;
    background: var(--white);
    flex-direction: column; align-items: stretch;
    padding: .5rem 1.4rem 2.5rem; gap: 0;
    overflow-y: auto;
    z-index: 55;
    border-top: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav > a, .nav .nav__item > a {
    padding: 1.05em .15em;
    font-size: 1.08rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    white-space: normal;
  }
  .nav > a:hover, .nav .nav__item > a:hover { background: none; }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; width: auto; min-width: 0;
    grid-template-columns: 1fr; gap: 0;
    padding: .15rem 0 .7rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .dropdown a { padding: .55em .15em .55em 1.4em; font-size: .98rem; color: var(--slate); position: relative; }
  .dropdown a::before { content: ""; position: absolute; left: .35em; top: 1.05em; width: .45em; height: 2px; background: var(--orange); border-radius: 2px; }
  .dropdown a:hover { background: none; color: var(--blue); }
  .dropdown a span { display: none; }
  .nav__item > a .caret { display: none; }
  .nav__cta { display: grid; gap: .8rem; margin-top: 1.6rem; }
  .nav__cta .btn { justify-content: center; }
  .burger { display: block; }
  .header__cta { display: none; }
}

@media (max-width: 760px) {
  /* Proof-Leiste: eine Zeile pro Fakt — Wert und Beschreibung fließen zusammen */
  .proofbar__inner { grid-template-columns: 1fr; gap: .6rem; padding: 1.2rem 0; }
  .proof { display: block; }
  .proof svg { display: none; }
  .proof strong { display: inline; font-size: 1.02rem; }
  .proof span { display: inline; font-size: .85rem; }
  .proof span::before { content: "·"; color: var(--orange); font-weight: 700; margin: 0 .45em 0 .5em; }

  /* Buttons in Hero und CTA-Band: volle Breite statt Überlauf */
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; white-space: normal; text-align: center; }
  .cta-band__actions { width: 100%; }
  .cta-band__actions .btn { width: 100%; justify-content: center; white-space: normal; text-align: center; }

  .grid--3, .grid--2, .grid--4, .steps { grid-template-columns: 1fr; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; }
  .cta-band__actions { justify-self: start; }
  .form .row { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .quote__service { display: none; }

  .callbar {
    display: flex;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
    background: var(--white);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(7,30,51,.1);
    padding: .65rem .9rem calc(.65rem + env(safe-area-inset-bottom));
    gap: .7rem;
  }
  .callbar .btn { flex: 1; justify-content: center; padding: .8em 1em; font-size: .95rem; }
  body { padding-bottom: 74px; }
}

/* ==========================================================================
   FINISHER-LAYER — Experience-Pass
   Leitidee: „Die Linie des Meisters" — gezeichnete Linien, Fensterquadrat,
   oranger Schlusspunkt. Überschreibt gezielt Basisregeln weiter oben.
   ========================================================================== */

/* ---------- Typografie: Display-Momente & Signatur ---------- */
h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); font-weight: 800; letter-spacing: -.028em; }
h2 { font-size: clamp(1.75rem, 3.3vw, 2.7rem); letter-spacing: -.02em; }
.dot-o { color: var(--orange); }
::selection { background: var(--orange); color: #fff; }

/* Kicker mit Fensterquadrat-Marker */
.kicker { display: inline-flex; align-items: center; gap: .6em; }
.kicker::before {
  content: "";
  width: .72em; height: .72em; flex: none;
  border: 1.5px solid currentColor; border-radius: 2px;
  background:
    linear-gradient(currentColor, currentColor) center/1.5px 100% no-repeat,
    linear-gradient(currentColor, currentColor) center/100% 1.5px no-repeat;
}

/* ---------- Buttons: ruhige Signatur statt Hüpfen ---------- */
.btn--primary:hover { transform: none; box-shadow: 0 8px 22px rgba(240, 112, 0, .35); }
.btn--ghost:hover, .btn--ghost-dark:hover { transform: none; }
.btn--primary::after {
  content: "→";
  display: inline-block;
  opacity: 0; margin-left: -.9em;
  transform: translateX(-6px);
  transition: opacity .22s ease, transform .22s ease, margin-left .22s ease;
}
.btn--primary:hover::after { opacity: 1; transform: none; margin-left: .1em; }
.btn:active { transform: translateY(1px); }
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(240, 112, 0, .55);
  outline-offset: 2px;
}

/* ---------- Karten: der „saubere Wisch" ---------- */
.card { overflow: hidden; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: var(--line); }
.card:not(.card--flag)::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--orange);
  transform: scaleX(0); transform-origin: left;
  transition: transform .38s cubic-bezier(.6, 0, .2, 1);
}
.card:hover::before { transform: scaleX(1); }

/* ---------- Startseite: Bento + kompakte Leistungszeilen ---------- */
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.card--feature { padding: 2.2rem 2.1rem 2rem; }
.card--feature h3 { font-size: 1.4rem; }
.card--feature p { font-size: 1rem; }
.service-rows { list-style: none; margin: 1.6rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.service-rows a {
  display: flex; align-items: baseline; gap: 1.1rem;
  padding: 1.05rem .4rem;
  border-bottom: 1px solid var(--line);
  color: inherit; text-decoration: none !important;
  transition: background .18s ease, padding-left .25s ease;
}
.service-rows .n { font-family: var(--font-head); font-weight: 700; white-space: nowrap; }
.service-rows .t { flex: 1; color: var(--slate); font-size: .92rem; }
.service-rows .arr { color: var(--orange); font-family: var(--font-head); transition: transform .22s ease; }
.service-rows a:hover { background: var(--blue-tint); padding-left: .9rem; }
.service-rows a:hover .n { color: var(--blue); }
.service-rows a:hover .arr { transform: translateX(6px); }

/* ---------- Warum PILZ: asymmetrisches Sticky-Layout ---------- */
.split-sticky { display: grid; grid-template-columns: minmax(280px, 1fr) 1.5fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.split-sticky__head { position: sticky; top: 120px; }
.split-sticky__head p { color: #9db4c9; }
.split-sticky__items .usp { padding: 1.7rem 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.split-sticky__items .usp:first-child { padding-top: .4rem; border-top: 0; }

/* ---------- Ablauf: Präzisionslinie ---------- */
.steps-line { height: 2px; background: rgba(0, 64, 128, .12); margin-bottom: 1.6rem; position: relative; overflow: hidden; }
.steps-line::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--orange), var(--blue));
  transform: scaleX(0); transform-origin: left;
}
.steps-line.is-done::after { transform: scaleX(1); transition: transform 1.5s cubic-bezier(.6, 0, .2, 1); }

/* ---------- Editorial-Zitat (Startseite) ---------- */
.pull-quote { margin: 0 auto; max-width: 900px; text-align: center; position: relative; padding-top: 3.2rem; }
.pull-quote::before {
  content: "\201C";
  position: absolute; top: -.12em; left: 50%; transform: translateX(-50%);
  font-family: var(--font-head); font-weight: 800;
  font-size: 7rem; line-height: 1; color: var(--orange);
}
.pull-quote blockquote {
  margin: 0 0 1.8rem;
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  line-height: 1.4; letter-spacing: -.01em;
  text-wrap: balance;
}
.pull-quote figcaption { display: flex; align-items: center; justify-content: center; gap: 1rem; text-align: left; }
.pull-quote .quote__service { margin-left: .4rem; }
.pull-quote figcaption strong { display: block; font-family: var(--font-head); }
.pull-quote figcaption span:not(.quote__service) { font-size: .9rem; color: var(--slate); }

/* ---------- Bildbehandlung: ein Look für alle Fotos ---------- */
.img-brand { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.img-brand img { border-radius: 0; box-shadow: none; width: 100%; filter: saturate(.85); }
.img-brand::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(155deg, rgba(0, 64, 128, .22), rgba(7, 30, 51, 0) 55%, rgba(240, 112, 0, .07));
  mix-blend-mode: multiply;
  pointer-events: none;
}
/* Fensterquadrat aus dem Logo — Sprossenkreuz läuft bis zum Rand, damit es
   als Fenster lesbar ist und nicht wie ein Zoom-Button wirkt */
.img-badge {
  position: absolute; right: 16px; bottom: 16px; z-index: 1;
  width: 30px; height: 30px; border-radius: 4px;
  background: var(--orange);
  border: 2px solid rgba(255, 255, 255, .95);
  box-shadow: 0 6px 16px rgba(7, 30, 51, .3);
  pointer-events: none;
}
.img-badge::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.95), rgba(255,255,255,.95)) center/2px 100% no-repeat,
    linear-gradient(rgba(255,255,255,.95), rgba(255,255,255,.95)) center/100% 2px no-repeat;
}
.split__media img { box-shadow: none; }

/* Einsatzgebiet-Foto überlappt die Section-Grenze */
@media (min-width: 1081px) {
  .split__media--raise { margin-top: -7rem; }
}

/* ---------- Hero: Skizze zeichnet sich selbst ---------- */
.hero__sketch [pathLength] {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: sketch-draw 1s cubic-bezier(.5, 0, .3, 1) forwards;
}
.hero__sketch path:nth-of-type(1) { animation-delay: .15s; }
.hero__sketch path:nth-of-type(2) { animation-delay: .5s; animation-duration: .5s; }
.hero__sketch path:nth-of-type(3) { animation-delay: .7s; animation-duration: .6s; }
.hero__sketch path:nth-of-type(4) { animation-delay: .95s; animation-duration: .6s; }
.hero__sketch g rect, .hero__sketch g path { animation-delay: 1.25s; animation-duration: .6s; }
@keyframes sketch-draw { to { stroke-dashoffset: 0; } }

/* Mittlere Breiten: Header kompakter, damit nichts überläuft */
@media (min-width: 901px) and (max-width: 1140px) {
  .header__inner { gap: 1rem; }
  .nav { gap: .05rem; }
  .nav > a, .nav .nav__item > a { padding: .6em .6em; font-size: .93rem; }
  .header__cta { gap: .6rem; }
  .header__cta .btn { font-size: .85rem; padding: .7em 1em; }
  .header__logo img { height: 52px; }
}

/* ---------- Header: Zustand beim Scrollen (nur Desktop) ---------- */
@media (min-width: 901px) {
  .header__inner { transition: min-height .28s ease; }
  .header.is-scrolled .header__inner { min-height: 72px; }
  .header.is-scrolled { box-shadow: 0 6px 24px rgba(7, 30, 51, .08); }
}
/* Aktiver Menüpunkt: orange Unterstreichung (siehe Best-of-Layer), kein Punkt */

/* ---------- Footer: Markenklammer ---------- */
.footer { position: relative; overflow: hidden; }
.footer__sketch {
  position: absolute; right: -50px; bottom: -36px;
  width: 360px; height: auto;
  color: #fff; opacity: .05;
  pointer-events: none;
}
.footer .container { position: relative; }

/* ---------- FAQ & Formular-Feinschliff ---------- */
.faq summary::after { transition: transform .25s cubic-bezier(.5, 0, .3, 1); }
details[open] .faq__body { animation: faq-in .3s ease; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-5px); } }
.form input:user-invalid, .form select:user-invalid, .form textarea:user-invalid {
  border-color: #d64545;
  box-shadow: 0 0 0 3px rgba(214, 69, 69, .1);
}

/* ---------- Responsive & Bewegungsreduktion ---------- */
@media (max-width: 1080px) {
  .split-sticky { grid-template-columns: 1fr; }
  .split-sticky__head { position: static; }
}
@media (max-width: 760px) {
  .bento { grid-template-columns: 1fr; }
  .service-rows .t { display: none; }
  .pull-quote { text-align: left; padding-top: 2.6rem; }
  .pull-quote::before { left: 0; transform: none; font-size: 5rem; }
  .pull-quote figcaption { justify-content: flex-start; flex-wrap: wrap; }
  .footer__sketch { width: 240px; opacity: .04; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__sketch [pathLength] { animation: none; stroke-dashoffset: 0; }
  .steps-line.is-done::after { transition: none; }
  .logos-track { animation: none; }
  .header__inner { transition: none; }
}

/* ==========================================================================
   BEST-OF-LAYER — Übernahmen aus dem Codex-Entwurf, kuratiert
   ========================================================================== */

/* Skip-Link (Accessibility) */
.skip-link {
  position: fixed; left: 1rem; top: 1rem; z-index: 1000;
  transform: translateY(-160%);
  background: var(--blue-deep); color: var(--white);
  padding: .7rem 1.1rem; border-radius: 8px;
  font-family: var(--font-head); font-weight: 700;
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

/* Button: flache, präzise Kante statt Glow */
.btn--primary { box-shadow: 0 2px 0 rgba(6, 28, 45, .18); }
.btn--primary:hover { transform: none; box-shadow: 0 6px 16px rgba(6, 28, 45, .18); }

/* Navigation: kein gezeichneter Marker — Hover mit Farbfläche (Basisregel),
   aktiver Punkt nur farblich. Der Marken-Moment lebt im Dropdown. */

/* Unterseiten-Hero & CTA-Band tragen das Hausmotiv */
.page-hero { position: relative; overflow: hidden; }
.page-hero::after {
  content: "";
  position: absolute; right: -4vw; bottom: -22%;
  width: min(44vw, 620px); aspect-ratio: 10 / 7;
  background: url('/assets/img/house-outline.svg') center / contain no-repeat;
  opacity: .07; pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.cta-band { position: relative; overflow: hidden; }
.cta-band::after {
  content: "";
  position: absolute; right: -75px; bottom: -95px;
  width: 330px; aspect-ratio: 10 / 7;
  background: url('/assets/img/house-outline.svg') center / contain no-repeat;
  opacity: .08; pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }

/* Proof-Leiste: feine Trennlinien zwischen den Fakten */
@media (min-width: 761px) {
  .proof { position: relative; }
  .proof:not(:last-child)::after {
    content: "";
    position: absolute; right: -.6rem; top: 8%;
    height: 84%; width: 1px;
    background: rgba(255, 255, 255, .13);
  }
}

/* Team-Kacheln: Initialen-Porträts statt Baustellen-Platzhalter */
.team-card__portrait {
  aspect-ratio: 4 / 3; margin-bottom: 1.1rem;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--blue-tint), #d5e4ef);
  border-radius: 10px; position: relative; overflow: hidden;
}
.team-card__portrait::before {
  content: "";
  position: absolute; width: 58%; aspect-ratio: 1;
  border: 1px solid rgba(0, 64, 128, .18);
  transform: rotate(45deg);
}
.team-card__portrait span {
  font: 800 clamp(2rem, 4vw, 3rem)/1 var(--font-head);
  color: var(--blue); letter-spacing: -.06em; position: relative;
}
.team-card__portrait .figcap-tag {
  position: absolute; right: 10px; bottom: 8px;
  font: 600 .68rem/1 var(--font-body); color: var(--slate-light); letter-spacing: .04em;
}

/* Einsatzgebiet: dunkles Marken-Panel statt Karten-Platzhalter */
.region-visual {
  display: grid; align-items: end;
  min-height: 400px;
  padding: clamp(2rem, 5vw, 4rem);
  color: #c8d9e7;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-night));
  border-radius: var(--radius-lg);
  position: relative; overflow: hidden;
}
.region-visual::before {
  content: "";
  position: absolute; right: -7%; bottom: -24%;
  width: min(58vw, 700px); aspect-ratio: 10 / 7;
  background: url('/assets/img/house-outline.svg') center / contain no-repeat;
  opacity: .075;
}
.region-visual__intro { position: relative; z-index: 1; max-width: 640px; }
.region-visual h2 { color: var(--white); }
.region-visual .region-tags span { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.2); color: #dbe7f1; }
.region-visual .region-tags span.is-hq { background: var(--orange); border-color: var(--orange); color: var(--white); }

/* Sidebar: Serviceversprechen */
.aside-promise { margin-top: 1.2rem; padding-left: 1rem; border-left: 2px solid var(--orange); }
.aside-promise span {
  display: block; margin-bottom: .3rem;
  color: var(--blue);
  font-family: var(--font-head); font-size: .74rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
}
.aside-promise p { margin: 0; color: var(--slate); font-size: .87rem; line-height: 1.55; }

/* Leistungs-Übersicht: variierte Kartengrößen statt Einheitsraster */
.services-showcase { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.3rem; }
.services-showcase .card { grid-column: span 4; }
.services-showcase .card:nth-child(-n+2),
.services-showcase .card:nth-last-child(-n+2) { grid-column: span 6; padding: 2.1rem 2rem; }
.services-showcase .card:nth-child(-n+2) h3 { font-size: 1.45rem; }
@media (max-width: 1080px) {
  .services-showcase .card,
  .services-showcase .card:nth-child(-n+2),
  .services-showcase .card:nth-last-child(-n+2) { grid-column: span 6; }
}
@media (max-width: 760px) {
  .services-showcase .card,
  .services-showcase .card:nth-child(-n+2),
  .services-showcase .card:nth-last-child(-n+2) { grid-column: span 12; }
}

/* Footer: orange Markenkante */
.footer { border-top: 4px solid var(--orange); }

/* Dropdown: oranger Balken gleitet beim Hovern links in den Eintrag —
   beim Durchfahren der Liste wandert er sichtbar mit */
@media (min-width: 901px) {
  .dropdown a {
    position: relative;
    transition: background .18s ease, color .18s ease, padding-left .22s cubic-bezier(.22, 1, .36, 1);
  }
  .dropdown a::before {
    content: "";
    position: absolute; left: .4rem; top: .8em; bottom: .8em;
    width: 3px; border-radius: 2px;
    background: var(--orange);
    transform: scaleY(0);
    transition: transform .22s cubic-bezier(.22, 1, .36, 1);
  }
  .dropdown a:hover { padding-left: 1.55em; }
  .dropdown a:hover::before { transform: scaleY(1); }
}

/* Mobile Nav: Burger wird zum X, Body-Scroll-Lock per Klasse */
body.nav-open { overflow: hidden; }
@media (max-width: 900px) {
  .burger span { transition: transform .25s cubic-bezier(.22, 1, .36, 1), opacity .2s ease; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ---------- Zitat-Slider (Startseite): mehr Raum, sanfter Wechsel ---------- */
.quote-slider { max-width: 940px; margin: 0 auto; padding-top: clamp(.6rem, 2vw, 1.6rem); }
.quote-slider__track { display: grid; }
.quote-slider .pull-quote {
  grid-area: 1 / 1;
  opacity: 0; visibility: hidden;
  transition: opacity .55s ease, visibility .55s;
}
.quote-slider .pull-quote.is-active { opacity: 1; visibility: visible; }

/* Mehr Luft, deutlicheres Zitatbild */
.pull-quote { padding-top: 4.4rem; }
.pull-quote::before { font-size: 8rem; color: var(--orange); opacity: .95; }
.pull-quote blockquote {
  margin-bottom: 2.2rem;
  font-size: clamp(1.4rem, 2.9vw, 2.1rem);
  line-height: 1.42;
  max-width: 26em; margin-left: auto; margin-right: auto;
}

/* Punkte als kleine Linien — klickbar, aktive wächst orange */
.quote-slider__dots { display: flex; justify-content: center; gap: .3rem; margin-top: 2rem; }
/* Große Trefferfläche (44×28px), sichtbar nur die kleine Linie */
.quote-slider__dots button {
  width: 44px; height: 28px; padding: 0;
  border: 0; background: transparent;
  display: grid; place-items: center;
  cursor: pointer;
}
.quote-slider__dots button::before {
  content: "";
  width: 26px; height: 4px; border-radius: 2px;
  background: var(--blue-tint-2);
  transition: background .25s ease, width .25s ease;
}
.quote-slider__dots button:hover::before { background: var(--slate-light); }
.quote-slider__dots button.is-active::before { width: 40px; background: var(--orange); }

@media (max-width: 760px) {
  .pull-quote { padding-top: 3.2rem; }
  .pull-quote::before { font-size: 5.5rem; }
  .pull-quote blockquote { font-size: clamp(1.25rem, 5.6vw, 1.5rem); }
}
