/* ==========================================================================
   Malerbetrieb Sterner – Designsystem
   Farben aus dem Logo: Violett-Marine, Signalgelb, Rot
   ========================================================================== */

/* Schriften lokal (kein Abruf bei Google) */
@font-face { font-family: "Instrument Serif"; src: url("../fonts/InstrumentSerif-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/InstrumentSerif-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/Manrope-400-800-normal.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }

:root {
  --paper: #f5f2ea;
  --paper-2: #ece7da;
  --card: #fbfaf6;
  --ink: #17153b;
  --ink-2: #3c3a5e;
  --muted: #6d6a83;
  --line: rgba(23, 21, 59, 0.12);
  --line-strong: rgba(23, 21, 59, 0.22);

  --navy: #2a1a74;
  --navy-deep: #1a1150;
  --yellow: #ffe600;
  --red: #d8261d;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --f-display: "Instrument Serif", "Times New Roman", Georgia, serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 20px;
  --radius-sm: 12px;
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 6px; }

[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 999px;
  transform: translateY(-160%); transition: transform 200ms var(--ease-out);
}
.skip-link:focus { transform: none; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 11vw, 150px) 0; position: relative; }
.section--tight { padding: clamp(56px, 8vw, 100px) 0; }
.section--paper2 { background: var(--paper-2); }
.section--dark { background: var(--navy-deep); color: #f3f1ff; }

/* ---------- Typography ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.display em, .h2 em, .h3 em { font-style: italic; }
.h1 { font-size: clamp(3.5rem, 8.4vw, 7.6rem); }
.h2 { font-family: var(--f-display); font-size: clamp(2.4rem, 5.4vw, 4.6rem); line-height: 1.02; letter-spacing: -0.015em; }
.h3 { font-family: var(--f-display); font-size: clamp(1.75rem, 2.8vw, 2.4rem); line-height: 1.08; }
.h4 { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.28rem); line-height: 1.6; color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--muted); }
.section--dark .lead, .section--dark .muted { color: rgba(243, 241, 255, 0.72); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 22px;
}
.section--dark .eyebrow { color: rgba(243, 241, 255, 0.78); }

/* Mini-Version der Logo-Streifen */
.tri { display: inline-flex; gap: 3px; transform: skewX(-14deg); flex: none; }
.tri i { width: 5px; height: 14px; display: block; }
.tri i:nth-child(1) { background: var(--navy); }
.tri i:nth-child(2) { background: var(--yellow); }
.tri i:nth-child(3) { background: var(--red); }
.section--dark .tri i:nth-child(1) { background: #6f5ce0; }

.section-head { display: grid; gap: 28px; margin-bottom: clamp(44px, 6vw, 80px); }
.section-head--split { grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1.15fr 0.85fr; gap: 64px; }
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--navy); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 8px 10px 8px 24px;
  border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 700; font-size: 15.5px; letter-spacing: -0.005em; line-height: 1.2;
  white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn__icon {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; flex: none;
  background: var(--yellow); color: var(--ink);
  overflow: hidden;
}
.btn__icon svg { width: 16px; height: 16px; transition: transform 260ms var(--ease-out); }
.btn > svg { width: 18px; height: 18px; flex: none; }
.btn--plain { padding: 8px 24px; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); padding: 8px 24px; }
.btn--yellow { --btn-bg: var(--yellow); --btn-fg: var(--ink); }
.btn--yellow .btn__icon { background: var(--ink); color: var(--yellow); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); }
.btn--sm { min-height: 44px; font-size: 14.5px; padding: 6px 6px 6px 18px; }
.btn--sm .btn__icon { width: 32px; height: 32px; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { --btn-bg: var(--navy-deep); }
  .btn:hover .btn__icon svg { transform: translateX(3px); }
  .btn--ghost:hover { --btn-bg: rgba(23, 21, 59, 0.05); --btn-fg: var(--ink); }
  .btn--yellow:hover { --btn-bg: #fff04d; }
  .btn--light:hover { --btn-bg: var(--yellow); }
}

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 15.5px;
  padding-bottom: 4px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat;
  transition: background-size 300ms var(--ease-out);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 260ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .link-arrow:hover svg { transform: translateX(4px); }
  .link-arrow:hover { background-size: 40% 1.5px; }
}

/* ---------- Topbar ---------- */
.topbar {
  display: none;
  font-size: 13.5px; color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 42px; gap: 24px; }
.topbar__list { display: flex; gap: 28px; align-items: center; }
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: 8px; }
.topbar svg { width: 15px; height: 15px; opacity: 0.7; }
@media (hover: hover) and (pointer: fine) { .topbar a:hover { color: var(--navy); } }
@media (min-width: 1024px) { .topbar { display: block; } }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 90;
  background: var(--paper); /* deckend, damit das Logo per multiply mit dem Papierton verschmilzt */
  transition: background-color 250ms ease, box-shadow 250ms ease, backdrop-filter 250ms ease;
}
.header.is-scrolled {
  background: rgba(245, 242, 234, 0.94);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.logo { display: block; flex: none; }
.logo img { height: 46px; width: auto; mix-blend-mode: multiply; }
@media (max-width: 480px) { .logo img { height: 38px; } }

.nav { display: none; }
.nav__list { display: flex; gap: 4px; }
.nav__link {
  position: relative; display: block;
  padding: 10px 14px; border-radius: 999px;
  font-size: 15px; font-weight: 600; color: var(--ink-2);
  transition: color 200ms ease, background-color 200ms ease;
}
.nav__link[aria-current="page"] { color: var(--ink); }
.nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 3px;
  background: var(--yellow); transform: skewX(-14deg);
}
@media (hover: hover) and (pointer: fine) { .nav__link:hover { color: var(--ink); background: rgba(23, 21, 59, 0.05); } }

.header__actions { display: flex; align-items: center; gap: 10px; }
.header__phone { display: none; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; padding: 8px 12px; border-radius: 999px; transition: background-color 200ms ease; }
.header__phone svg { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) { .header__phone:hover { background: rgba(23, 21, 59, 0.05); } }
.header__cta { display: none; }

.burger {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); color: #fff;
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.burger:active { transform: scale(0.94); }
.burger__lines { position: relative; width: 18px; height: 12px; }
.burger__lines i {
  position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform 300ms var(--ease-out), opacity 200ms ease;
}
.burger__lines i:nth-child(1) { top: 0; }
.burger__lines i:nth-child(2) { top: 5px; }
.burger__lines i:nth-child(3) { top: 10px; }
.menu-open .burger__lines i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-open .burger__lines i:nth-child(2) { opacity: 0; }
.menu-open .burger__lines i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (min-width: 640px) { .header__cta { display: inline-flex; } }
@media (min-width: 1100px) {
  .nav { display: block; }
  .burger { display: none; }
  .header__phone { display: inline-flex; }
}

/* ---------- Mobile-Menü ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 85;
  background: var(--paper);
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  display: flex; flex-direction: column; gap: 32px;
  overflow-y: auto;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 500ms var(--ease-drawer), visibility 0s linear 500ms;
}
.menu-open .mobile-menu { transform: none; visibility: visible; transition: transform 500ms var(--ease-drawer), visibility 0s; }
.menu-open { overflow: hidden; }
.menu-open .header { background: var(--paper); box-shadow: none; }
.mobile-menu__list a {
  display: flex; align-items: baseline; justify-content: space-between;
  font-family: var(--f-display); font-size: clamp(2.2rem, 9vw, 3.2rem); line-height: 1.15;
  padding: 6px 0; border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(16px);
  transition: opacity 300ms ease, transform 500ms var(--ease-out);
}
.mobile-menu__list a span { font-family: var(--f-body); font-size: 13px; color: var(--muted); font-weight: 600; }
.mobile-menu__list a[aria-current="page"] { font-style: italic; }
.menu-open .mobile-menu__list a { opacity: 1; transform: none; transition-delay: calc(120ms + var(--i, 0) * 45ms); }
.mobile-menu__foot { display: grid; gap: 14px; margin-top: auto; }
.mobile-menu__foot .btn { width: 100%; }
.mobile-menu__contact { display: grid; gap: 6px; font-size: 15px; color: var(--ink-2); }
@media (min-width: 1100px) { .mobile-menu { display: none; } }

/* ---------- Mobile-Kontaktleiste (immer präsent) ---------- */
.dock {
  position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 80;
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px;
  padding: 8px; border-radius: 999px;
  background: rgba(23, 21, 59, 0.92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 12px 32px -8px rgba(23, 21, 59, 0.45);
  transform: translateY(calc(100% + 24px));
  transition: transform 450ms var(--ease-drawer);
}
.dock.is-visible { transform: none; }
.dock a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; border-radius: 999px; font-weight: 700; font-size: 15px;
  transition: transform 160ms var(--ease-out);
}
.dock a:active { transform: scale(0.97); }
.dock svg { width: 18px; height: 18px; }
.dock__call { color: #fff; background: rgba(255, 255, 255, 0.1); }
.dock__ask { background: var(--yellow); color: var(--ink); }
.menu-open .dock { transform: translateY(calc(100% + 24px)); }
[data-page="kontakt"] .dock { grid-template-columns: 1fr 1fr; }
[data-page="kontakt"] .dock__ask { display: none; }
.dock .dock__mail { display: none; color: #fff; background: rgba(255, 255, 255, 0.1); }
[data-page="kontakt"] .dock .dock__mail { display: flex; }
@media (min-width: 1100px) { .dock { display: none; } }
@media (max-width: 1099px) { .footer { padding-bottom: 110px; } }

/* ---------- Reveal-Animationen ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 900ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="clip"] {
  opacity: 1; transform: none;
  clip-path: inset(0 0 100% 0 round var(--radius));
  transition: clip-path 1100ms var(--ease-in-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
[data-reveal="clip"] img { transform: scale(1.12); transition: transform 1600ms var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
[data-reveal="clip"].is-in { clip-path: inset(0 0 0 0 round var(--radius)); }
[data-reveal="clip"].is-in img { transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; clip-path: none; }

/* Zeilenweise Headline */
.split-line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split-line > span { display: block; transform: translateY(105%); transition: transform 1000ms var(--ease-out); transition-delay: calc(150ms + var(--i, 0) * 90ms); }
.is-loaded .split-line > span, .is-in .split-line > span { transform: none; }
.no-js .split-line > span { transform: none; }

.fade-up { opacity: 0; transform: translateY(14px); transition: opacity 700ms ease, transform 800ms var(--ease-out); transition-delay: calc(450ms + var(--i, 0) * 80ms); }
.is-loaded .fade-up { opacity: 1; transform: none; }
.no-js .fade-up { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(56px, 8vw, 110px); position: relative; }
.hero__grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1000px) { .hero__grid { grid-template-columns: 1.08fr 0.92fr; gap: 56px; } }
.hero__title { margin: 0 0 32px; }
.hero__lead { margin-bottom: 40px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 14px 32px; font-size: 14.5px; color: var(--ink-2); }
.hero__meta a, .hero__meta span { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.hero__meta svg { width: 18px; height: 18px; color: var(--navy); }
@media (max-width: 560px) { .hero__ctas .btn { width: 100%; } }

/* Gelber Pinselstrich unter einem Wort */
.brush { position: relative; display: inline-block; isolation: isolate; white-space: nowrap; }
.brush svg {
  position: absolute; left: -4%; width: 108%; bottom: 0.02em; height: 0.42em; z-index: -1; overflow: visible;
}
.brush path { fill: none; stroke: var(--yellow); stroke-width: 26; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 900ms var(--ease-out) 750ms; }
.is-loaded .brush path, .is-in .brush path { stroke-dashoffset: 0; }
.no-js .brush path { stroke-dashoffset: 0; }

.hero__media { position: relative; }
.paint-reveal {
  position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4 / 5; background: var(--paper-2);
}
.paint-reveal img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); transition: transform 1800ms var(--ease-out) 350ms; }
.paint-reveal__stripes { position: absolute; inset: -10% -30%; display: flex; transform: skewX(-12deg); pointer-events: none; }
.paint-reveal__stripes i { flex: 1; transition: transform 1000ms var(--ease-in-out); transition-delay: calc(200ms + var(--i) * 110ms); }
.paint-reveal__stripes i:nth-child(1) { background: var(--navy); }
.paint-reveal__stripes i:nth-child(2) { background: var(--yellow); }
.paint-reveal__stripes i:nth-child(3) { background: var(--red); }
.is-loaded .paint-reveal img { transform: none; }
.is-loaded .paint-reveal__stripes i { transform: translateY(-115%); }
.no-js .paint-reveal__stripes { display: none; }
.no-js .paint-reveal img { transform: none; }
@media (min-width: 1000px) { .hero .paint-reveal { aspect-ratio: 4 / 5; max-height: 720px; } }
@media (max-width: 999px) { .hero .paint-reveal { aspect-ratio: 5 / 4; } }

.hero__badge {
  position: absolute; left: -28px; bottom: 40px;
  background: var(--card); border-radius: 16px; padding: 18px 20px;
  box-shadow: 0 24px 48px -20px rgba(23, 21, 59, 0.35);
  display: flex; align-items: center; gap: 16px; max-width: 290px;
}
.hero__badge strong { display: block; font-family: var(--f-display); font-size: 2.4rem; line-height: 1; font-weight: 400; }
.hero__badge span { font-size: 13.5px; line-height: 1.4; color: var(--ink-2); }
@media (max-width: 999px) { .hero__badge { left: 16px; bottom: 16px; } }
@media (max-width: 420px) { .hero__badge { padding: 14px 16px; } .hero__badge strong { font-size: 2rem; } }

.seal {
  position: absolute; right: -24px; top: -24px; width: 124px; height: 124px;
  display: grid; place-items: center;
}
.seal svg { width: 100%; height: 100%; animation: spin 22s linear infinite; }
.seal text { font-size: 10.4px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; fill: var(--ink); }
.seal__core { position: absolute; width: 50px; height: 50px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; }
.seal__core svg { width: 22px; height: 22px; animation: none; color: var(--ink); }
.seal__bg { position: absolute; inset: 0; border-radius: 50%; background: var(--card); box-shadow: 0 16px 40px -18px rgba(23, 21, 59, 0.35); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 999px) { .seal { right: 12px; top: -40px; width: 104px; height: 104px; } }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; background: var(--paper); }
.marquee__track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee__group { display: flex; align-items: center; flex: none; }
.marquee__item { font-family: var(--f-display); font-size: clamp(1.8rem, 3.6vw, 3rem); line-height: 1; padding: 0 28px; white-space: nowrap; }
.marquee__item:nth-child(4n+2) { font-style: italic; }
@media (hover: hover) and (pointer: fine) { .marquee:hover .marquee__track { animation-play-state: paused; } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Kennzahlen ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.stat { background: var(--paper); padding: clamp(22px, 3vw, 40px); display: grid; gap: 10px; align-content: start; }
.stat__num { font-family: var(--f-display); font-size: clamp(2.8rem, 6vw, 4.8rem); line-height: 0.95; letter-spacing: -0.02em; display: flex; align-items: baseline; gap: 4px; }
.stat__num small { font-size: 0.5em; }
.stat__label { font-size: 15px; color: var(--ink-2); line-height: 1.45; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Leistungs-Index (Startseite) ---------- */
.svc-index { display: grid; gap: 48px; }
@media (min-width: 1000px) { .svc-index { grid-template-columns: 1fr 0.9fr; gap: 72px; align-items: start; } }
.svc-list { border-top: 1px solid var(--line-strong); }
.svc-row {
  display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 16px;
  padding: 22px 0; border-bottom: 1px solid var(--line-strong);
  position: relative;
}
.svc-row__num { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: 0.06em; }
.svc-row__title { font-family: var(--f-display); font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.05; transition: transform 400ms var(--ease-out), color 200ms ease; }
.svc-row__desc { display: block; font-family: var(--f-body); font-size: 14.5px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.svc-row__arrow {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line-strong);
  display: grid; place-items: center;
  transition: background-color 200ms ease, border-color 200ms ease, transform 300ms var(--ease-out);
}
.svc-row__arrow svg { width: 16px; height: 16px; }
.svc-row__bar { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--navy); transform: scaleX(0); transform-origin: left; transition: transform 500ms var(--ease-out); }
.svc-row.is-active .svc-row__bar { transform: scaleX(1); }
.svc-row.is-active .svc-row__arrow { background: var(--yellow); border-color: var(--yellow); }
@media (hover: hover) and (pointer: fine) {
  .svc-row:hover .svc-row__title { transform: translateX(8px); }
  .svc-row:hover .svc-row__arrow { transform: rotate(-45deg); }
}
.svc-row__thumb { display: none; }
@media (max-width: 999px) {
  .svc-row { grid-template-columns: 1fr auto; }
  .svc-row__num { display: none; }
  .svc-row__thumb { display: block; grid-column: 1 / -1; order: -1; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 16 / 9; }
  .svc-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
}

.svc-preview { position: sticky; top: calc(var(--header-h) + 32px); display: none; }
@media (min-width: 1000px) { .svc-preview { display: block; } }
.svc-preview__frame { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.svc-preview__frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06); filter: blur(6px);
  transition: opacity 450ms ease, transform 900ms var(--ease-out), filter 450ms ease;
}
.svc-preview__frame img.is-active { opacity: 1; transform: none; filter: blur(0); }
.svc-preview__caption { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; font-size: 14px; color: var(--muted); }
.svc-preview__caption strong { color: var(--ink); font-weight: 700; }

/* ---------- Split-Feature (Über uns Teaser) ---------- */
.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 88px; } .split--rev > :first-child { order: 2; } }
.media { border-radius: var(--radius); overflow: hidden; background: var(--paper-2); position: relative; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--tall { aspect-ratio: 4 / 5; }
.media--wide { aspect-ratio: 16 / 11; }
.media--square { aspect-ratio: 1; }
.media-stack { position: relative; padding-bottom: 18%; padding-right: 14%; }
.media-stack .media--small { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 1; border: 8px solid var(--paper); border-radius: calc(var(--radius) + 6px); }
.quote {
  font-family: var(--f-display); font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.2; font-style: italic;
  border-left: 3px solid var(--yellow); padding-left: 24px; margin: 36px 0;
}
.checklist { display: grid; gap: 14px; margin: 28px 0 36px; }
.checklist li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; line-height: 1.5; }
.checklist svg { width: 22px; height: 22px; color: var(--navy); margin-top: 1px; }
.section--dark .checklist svg { color: var(--yellow); }

/* ---------- Ablauf ---------- */
.steps { display: grid; gap: 20px; position: relative; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.step { position: relative; padding: 32px 28px 30px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 14px; align-content: start; }
.step__num { display: flex; align-items: center; justify-content: space-between; }
.step__num b { font-family: var(--f-display); font-weight: 400; font-size: 3.4rem; line-height: 1; }
.step__icon { width: 52px; height: 52px; border-radius: 50%; background: var(--paper-2); display: grid; place-items: center; color: var(--navy); }
.step__icon svg { width: 24px; height: 24px; }
.step p { font-size: 15.5px; color: var(--ink-2); margin: 0; line-height: 1.55; }
.step:nth-child(1) .step__icon { background: rgba(42, 26, 116, 0.1); }
.step:nth-child(2) .step__icon { background: rgba(255, 230, 0, 0.35); }
.step:nth-child(3) .step__icon { background: rgba(216, 38, 29, 0.12); color: var(--red); }
.step:nth-child(4) .step__icon { background: var(--navy); color: var(--yellow); }
.steps__line { display: none; }
@media (min-width: 900px) {
  .steps__line { display: block; position: absolute; top: -28px; left: 28px; right: 28px; height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
  .steps__line i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy) 0 33%, var(--yellow) 33% 66%, var(--red) 66%); transform: scaleX(0); transform-origin: left; transition: transform 1600ms var(--ease-in-out) 200ms; }
  .is-in .steps__line i, .steps__line.is-in i { transform: scaleX(1); }
}

/* ---------- Referenz-Teaser ---------- */
.ref-grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.ref-grid .media:nth-child(1) { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.ref-grid .media:nth-child(2), .ref-grid .media:nth-child(3) { aspect-ratio: 1; }
@media (min-width: 900px) {
  .ref-grid { grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 300px 300px; gap: 20px; }
  .ref-grid .media:nth-child(1) { grid-column: 1; grid-row: 1 / 3; aspect-ratio: auto; }
  .ref-grid .media:nth-child(2) { grid-column: 2 / 4; aspect-ratio: auto; }
  .ref-grid .media:nth-child(3), .ref-grid .media:nth-child(4) { aspect-ratio: auto; }
}
.ref-grid .media:nth-child(4) { display: none; }
@media (min-width: 900px) { .ref-grid .media:nth-child(4) { display: block; } }
.media__tag {
  position: absolute; left: 14px; bottom: 14px;
  background: rgba(251, 250, 246, 0.92); color: var(--ink);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 700;
}
a.media img { transition: transform 900ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { a.media:hover img { transform: scale(1.04); } }

/* ---------- Karriere-Band ---------- */
.career-band { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .career-band { grid-template-columns: 1.2fr 0.8fr; gap: 80px; } }
.career-band .h2 em { color: var(--yellow); }
.stripe-deco { position: absolute; right: -6%; top: 0; bottom: 0; width: 34%; display: flex; transform: skewX(-12deg); opacity: 0.95; pointer-events: none; }
.stripe-deco i { flex: 1; }
.stripe-deco i:nth-child(1) { background: #3a28a0; }
.stripe-deco i:nth-child(2) { background: var(--yellow); }
.stripe-deco i:nth-child(3) { background: var(--red); }
.section--dark { overflow: hidden; }
@media (max-width: 959px) { .stripe-deco { width: 40%; right: -18%; opacity: 0.18; } }
.career-card { position: relative; z-index: 1; background: var(--card); color: var(--ink); border-radius: var(--radius); padding: 32px; display: grid; gap: 14px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.5); }
.career-card .pill { justify-self: start; }

.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; background: rgba(42, 26, 116, 0.08); color: var(--navy); }
.pill--live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #1fa45a; box-shadow: 0 0 0 0 rgba(31, 164, 90, 0.5); animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(31, 164, 90, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 164, 90, 0); } }

/* ---------- Kontakt-Teaser ---------- */
.ask { background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--radius) + 8px); padding: clamp(28px, 5vw, 64px); display: grid; gap: 40px; }
@media (min-width: 1000px) { .ask { grid-template-columns: 1.1fr 0.9fr; gap: 72px; } }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 999px;
  background: var(--paper); border: 1.5px solid var(--line);
  font-weight: 600; font-size: 15px;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}
.chip svg { width: 18px; height: 18px; color: var(--navy); }
.chip:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .chip:hover { border-color: var(--navy); background: #fff; } }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip.is-active svg { color: var(--yellow); }

.contact-list { display: grid; gap: 12px; }
.contact-item {
  display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: center;
  padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--paper);
  transition: border-color 200ms ease, transform 160ms var(--ease-out), background-color 200ms ease;
}
a.contact-item:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { a.contact-item:hover { border-color: var(--line-strong); background: #fff; } }
.contact-item__icon { width: 48px; height: 48px; border-radius: 12px; background: var(--navy); color: var(--yellow); display: grid; place-items: center; }
.contact-item__icon svg { width: 20px; height: 20px; }
.contact-item small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.contact-item strong { font-weight: 700; font-size: 16px; overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #e9e7f6; padding-top: clamp(72px, 10vw, 130px); position: relative; overflow: hidden; }
.footer__cta { display: grid; gap: 32px; padding-bottom: clamp(56px, 8vw, 100px); border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
@media (min-width: 900px) { .footer__cta { grid-template-columns: 1fr auto; align-items: end; } }
.footer__cta .h2 { color: #fff; max-width: 14ch; }
.footer__cta .h2 em { color: var(--yellow); }
.footer__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.footer__grid { display: grid; gap: 40px; padding: 56px 0; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer__brand { grid-column: 1 / -1; display: grid; gap: 18px; align-content: start; }
@media (min-width: 900px) { .footer__brand { grid-column: auto; } }
.footer__logo { background: #fff; border-radius: 14px; padding: 12px 16px; justify-self: start; }
.footer__logo img { height: 44px; width: auto; }
.footer h4 { font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: rgba(233, 231, 246, 0.55); margin-bottom: 18px; }
.footer li + li { margin-top: 10px; }
.footer a { transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .footer a:hover { color: var(--yellow); } }
.footer p { color: rgba(233, 231, 246, 0.72); font-size: 15px; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; padding: 24px 0 32px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 14px; color: rgba(233, 231, 246, 0.6); }
.footer__bottom nav { display: flex; gap: 24px; }
.footer__stripe { height: 10px; display: flex; }
.footer__stripe i { flex: 1; }
.footer__stripe i:nth-child(1) { background: var(--navy); }
.footer__stripe i:nth-child(2) { background: var(--yellow); }
.footer__stripe i:nth-child(3) { background: var(--red); }

/* ---------- Unterseiten-Hero ---------- */
.page-hero { padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 88px); }
.page-hero__grid { display: grid; gap: 32px; align-items: end; }
@media (min-width: 960px) { .page-hero__grid { grid-template-columns: 1.3fr 0.7fr; gap: 64px; } }
.page-hero .display { font-size: clamp(3rem, 8vw, 6.8rem); }
.crumbs { display: flex; gap: 10px; font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.crumbs a { transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .crumbs a:hover { color: var(--ink); } }

/* ---------- Leistungen-Seite ---------- */
.svc-nav {
  position: sticky; top: var(--header-h); z-index: 40;
  background: rgba(245, 242, 234, 0.9);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-block: 1px solid var(--line);
}
.svc-nav__scroll { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 12px 0; -webkit-overflow-scrolling: touch; }
.svc-nav__scroll::-webkit-scrollbar { display: none; }
.svc-nav a {
  flex: none; padding: 9px 16px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--ink-2);
  transition: background-color 200ms ease, color 200ms ease;
}
.svc-nav a.is-active { background: var(--navy); color: #fff; }
@media (hover: hover) and (pointer: fine) { .svc-nav a:not(.is-active):hover { background: rgba(23, 21, 59, 0.06); color: var(--ink); } }

.svc-group { padding: clamp(64px, 9vw, 120px) 0 0; }
.svc-group__head { display: flex; align-items: baseline; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line-strong); margin-bottom: clamp(40px, 6vw, 72px); }
.svc-group__head span { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.svc-detail { display: grid; gap: 40px; align-items: start; padding-bottom: clamp(64px, 9vw, 110px); }
@media (min-width: 960px) { .svc-detail { grid-template-columns: 0.95fr 1.05fr; gap: 80px; } .svc-detail--rev .svc-detail__media { order: 2; } }
.svc-detail__media { position: relative; }
@media (min-width: 960px) { .svc-detail__media { position: sticky; top: calc(var(--header-h) + 90px); } }
.svc-detail__num { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.svc-detail h3 { margin-bottom: 22px; }
.svc-detail .lead { margin-bottom: 20px; }
.svc-detail__body { color: var(--ink-2); }
.svc-detail__box { margin: 32px 0; padding: 26px 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.svc-detail__box h4 { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.svc-detail__box .checklist { margin: 0; }

.floor-cards { display: grid; gap: 16px; grid-template-columns: 1fr; margin: calc(clamp(64px, 9vw, 110px) * -0.5) 0 clamp(64px, 9vw, 110px); }
@media (min-width: 640px) { .floor-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .floor-cards { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.floor-card { border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--line); display: grid; }
.floor-card__img { aspect-ratio: 16 / 10; overflow: hidden; }
.floor-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .floor-card:hover .floor-card__img img { transform: scale(1.05); } }
.floor-card__body { padding: 20px 22px 22px; }
.floor-card__body h4 { margin-bottom: 8px; }
.floor-card__body p { font-size: 15px; color: var(--ink-2); margin: 0; line-height: 1.55; }

/* ---------- Referenzen ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filters .chip { padding: 10px 16px; font-size: 14.5px; }
.filters .chip span { font-size: 12px; opacity: 0.6; font-weight: 700; }
.gallery { columns: 1; column-gap: 16px; }
@media (min-width: 640px) { .gallery { columns: 2; } }
@media (min-width: 1000px) { .gallery { columns: 3; column-gap: 20px; } }
.gallery__item {
  break-inside: avoid; margin-bottom: 16px; width: 100%; display: block; text-align: left;
  border-radius: var(--radius); overflow: hidden; position: relative; background: var(--paper-2);
  transition: opacity 300ms ease, transform 400ms var(--ease-out);
}
@media (min-width: 1000px) { .gallery__item { margin-bottom: 20px; } }
.gallery__item img { width: 100%; transition: transform 900ms var(--ease-out); }
.gallery__item.is-hidden { display: none; }
.gallery__item.is-entering { opacity: 0; transform: scale(0.97); }
.gallery__cap {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: rgba(251, 250, 246, 0.94); border-radius: 14px; padding: 12px 14px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 1; transform: none; transition: opacity 250ms ease, transform 350ms var(--ease-out);
}
.gallery__cap strong { display: block; font-size: 15px; line-height: 1.3; }
.gallery__cap small { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.gallery__cap svg { width: 18px; height: 18px; flex: none; }
@media (hover: hover) and (pointer: fine) {
  .gallery__cap { opacity: 0; transform: translateY(8px); }
  .gallery__item:hover .gallery__cap, .gallery__item:focus-visible .gallery__cap { opacity: 1; transform: none; }
  .gallery__item:hover img { transform: scale(1.04); }
}

.lightbox {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(14, 12, 38, 0.94);
  display: grid; grid-template-rows: auto 1fr auto; padding: 16px;
  opacity: 0; visibility: hidden;
  transition: opacity 250ms ease, visibility 0s linear 250ms;
}
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity 250ms ease, visibility 0s; }
.lightbox__top { display: flex; justify-content: space-between; align-items: center; color: #fff; padding: 4px 4px 12px; gap: 16px; }
.lightbox__count { font-size: 14px; opacity: 0.7; font-variant-numeric: tabular-nums; }
.lightbox__stage { display: grid; place-items: center; min-height: 0; position: relative; }
.lightbox__stage img {
  max-width: 100%; max-height: calc(100vh - 180px); max-height: calc(100dvh - 180px); border-radius: 14px; object-fit: contain;
  transform: scale(0.96); opacity: 0; transition: transform 350ms var(--ease-out), opacity 250ms ease;
}
.lightbox.is-open .lightbox__stage img.is-ready { transform: none; opacity: 1; }
.lightbox__cap { color: #fff; text-align: center; padding-top: 14px; }
.lightbox__cap strong { display: block; font-family: var(--f-display); font-size: 1.6rem; font-weight: 400; }
.lightbox__cap span { font-size: 14px; opacity: 0.65; }
.icon-btn {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.1); color: #fff; flex: none;
  transition: background-color 200ms ease, transform 160ms var(--ease-out);
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { background: rgba(255, 255, 255, 0.2); } }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 0; }
.lightbox__nav--next { right: 0; }
.lightbox__nav:active { transform: translateY(-50%) scale(0.94); }
@media (max-width: 640px) { .lightbox__nav { top: auto; bottom: -64px; transform: none; } .lightbox__nav:active { transform: scale(0.94); } .lightbox { padding-bottom: 80px; } }

/* ---------- Über uns ---------- */
.timeline { display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.timeline__row { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 28px 0; border-bottom: 1px solid var(--line-strong); }
@media (min-width: 600px) {
  .timeline__row { grid-template-columns: 150px 1fr; grid-template-areas: "year title" "year text"; gap: 6px 32px; align-items: baseline; }
  .timeline__year { grid-area: year; }
  .timeline__row h3 { grid-area: title; }
  .timeline__row p { grid-area: text; }
}
.timeline__year { font-family: var(--f-display); font-size: 2.8rem; line-height: 1; }
.timeline__row p { color: var(--ink-2); margin: 0; }
.values { display: grid; gap: 16px; }
@media (min-width: 700px) { .values { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .values { grid-template-columns: repeat(4, 1fr); } }
.value { padding: 30px 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); display: grid; gap: 14px; align-content: start; }
.value__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--navy); color: var(--yellow); }
.value__icon svg { width: 24px; height: 24px; }
.value p { margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }

.region { position: relative; border-radius: calc(var(--radius) + 8px); overflow: hidden; min-height: 460px; display: grid; align-items: end; color: #fff; }
.region > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.region::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23, 21, 59, 0) 20%, rgba(23, 21, 59, 0.85)); }
.region__body { position: relative; z-index: 1; padding: clamp(28px, 5vw, 64px); display: grid; gap: 18px; max-width: 760px; }
.region__body .h2 em { color: var(--yellow); }
.region__body p { color: rgba(255, 255, 255, 0.82); margin: 0; }

/* ---------- Formulare ---------- */
.form-shell { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1080px) { .form-shell { grid-template-columns: 1fr 380px; gap: 48px; } }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); padding: clamp(22px, 4vw, 48px); position: relative; }
.progress { display: grid; gap: 14px; margin-bottom: 36px; }
.progress__meta { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 600; color: var(--muted); }
.progress__meta b { color: var(--ink); }
.progress__bar { height: 6px; border-radius: 6px; background: var(--paper-2); overflow: hidden; }
.progress__bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--navy), var(--navy) 70%, #5a46d6); transform-origin: left; transform: scaleX(0.2); transition: transform 500ms var(--ease-out); border-radius: 6px; }
.progress__steps { display: none; gap: 6px; }
@media (min-width: 700px) { .progress__steps { display: grid; grid-template-columns: repeat(5, 1fr); } }
.progress__steps button { text-align: left; font-size: 13px; font-weight: 700; color: var(--muted); padding: 4px 0; transition: color 200ms ease; }
.progress__steps button.is-done { color: var(--navy); }
.progress__steps button.is-current { color: var(--ink); }
.progress__steps button:disabled { cursor: default; }

.fstep { display: none; }
.fstep.is-current { display: block; animation: stepIn 420ms var(--ease-out); }
.fstep.is-back { animation-name: stepInBack; }
@keyframes stepIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@keyframes stepInBack { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
.fstep__title { font-family: var(--f-display); font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1.05; margin-bottom: 8px; }
.fstep__hint { color: var(--muted); margin-bottom: 28px; font-size: 15.5px; }
.fgroup { margin-bottom: 28px; border: 0; padding: 0; min-width: 0; }
.fgroup > legend, .flabel { display: block; font-weight: 700; font-size: 15px; margin-bottom: 12px; padding: 0; }
.flabel small, legend small { font-weight: 500; color: var(--muted); }

.opt-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 232px), 1fr)); }
.opt-grid--sm { grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.opt__box {
  display: grid; grid-template-columns: 40px 1fr 20px; gap: 12px; align-items: center;
  min-height: 68px; padding: 12px 14px; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--paper);
  transition: border-color 200ms ease, background-color 200ms ease, transform 160ms var(--ease-out), box-shadow 200ms ease;
}
.opt__box--simple { grid-template-columns: 1fr 20px; min-height: 56px; }
.opt__icon { width: 40px; height: 40px; border-radius: 10px; background: #fff; display: grid; place-items: center; color: var(--navy); transition: background-color 200ms ease, color 200ms ease; }
.opt__icon svg { width: 22px; height: 22px; }
.opt__text { font-weight: 600; font-size: 15px; line-height: 1.3; }
.opt__text small { display: block; font-weight: 500; font-size: 13px; color: var(--muted); }
.opt__check { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-strong); display: grid; place-items: center; transition: background-color 200ms ease, border-color 200ms ease; }
.opt input[type="radio"] + .opt__box .opt__check { border-radius: 50%; }
.opt__check svg { width: 12px; height: 12px; color: #fff; opacity: 0; transform: scale(0.6); transition: opacity 150ms ease, transform 200ms var(--ease-out); }
.opt input:active + .opt__box { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .opt input:hover + .opt__box { border-color: var(--line-strong); background: #fff; } }
.opt input:checked + .opt__box { border-color: var(--navy); background: #fff; box-shadow: 0 0 0 3px rgba(42, 26, 116, 0.1); }
.opt input:checked + .opt__box .opt__icon { background: var(--navy); color: var(--yellow); }
.opt input:checked + .opt__box .opt__check { background: var(--navy); border-color: var(--navy); }
.opt input:checked + .opt__box .opt__check svg { opacity: 1; transform: none; }
.opt input:focus-visible + .opt__box { outline: 2px solid var(--navy); outline-offset: 2px; }

.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font-weight: 700; font-size: 14.5px; }
.input, .select, .textarea {
  width: 100%; min-height: 54px; padding: 14px 16px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--paper);
  font-size: 16px; transition: border-color 200ms ease, background-color 200ms ease, box-shadow 200ms ease;
  -webkit-appearance: none; appearance: none;
}
.textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2317153b' stroke-width='1.8'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--navy); background: #fff; box-shadow: 0 0 0 3px rgba(42, 26, 116, 0.12); }
.input::placeholder, .textarea::placeholder { color: #9b98ad; }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--red); }
.err { display: none; font-size: 13.5px; color: var(--red); font-weight: 600; }
.has-error > .err, .fgroup.has-error > .err { display: block; }
.fgroup.has-error .opt__box { border-color: rgba(216, 38, 29, 0.5); }
.frow { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .frow--2 { grid-template-columns: 1fr 1fr; } .frow--3 { grid-template-columns: 1fr 1fr 1fr; } }

.range-wrap { background: var(--paper); border: 1.5px solid var(--line); border-radius: 16px; padding: 22px 20px 18px; transition: opacity 200ms ease; }
.range-wrap.is-disabled { opacity: 0.45; pointer-events: none; }
.range-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.range-value { font-family: var(--f-display); font-size: 3rem; line-height: 1; font-variant-numeric: tabular-nums; }
.range-value small { font-family: var(--f-body); font-size: 15px; color: var(--muted); font-weight: 600; margin-left: 4px; }
.range-num { width: 110px; min-height: 44px; padding: 8px 12px; text-align: right; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; margin: 0; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--navy) var(--p, 20%), var(--paper-2) var(--p, 20%)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: var(--paper-2); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--navy); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--yellow); border: 3px solid var(--ink); margin-top: -10px; transition: transform 160ms var(--ease-out); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--yellow); border: 3px solid var(--ink); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }
.range-scale { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); font-weight: 600; margin-top: 6px; }
.toggle-line { display: flex; align-items: center; gap: 12px; margin-top: 14px; font-size: 15px; font-weight: 600; cursor: pointer; }
.toggle-line input { width: 20px; height: 20px; accent-color: var(--navy); }

.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); }
.stepper button { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; font-size: 20px; font-weight: 600; transition: background-color 200ms ease, transform 160ms var(--ease-out); }
.stepper button:active { transform: scale(0.9); }
@media (hover: hover) and (pointer: fine) { .stepper button:hover { background: rgba(23, 21, 59, 0.06); } }
.stepper output { min-width: 48px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 14.5px; color: var(--ink-2); line-height: 1.5; margin: 8px 0 4px; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--navy); }
.consent a { text-decoration: underline; text-underline-offset: 3px; }

.upload {
  display: grid; place-items: center; gap: 6px; text-align: center;
  padding: 24px; border-radius: 14px; border: 1.5px dashed var(--line-strong); background: var(--paper);
  cursor: pointer; transition: border-color 200ms ease, background-color 200ms ease;
  position: relative;
}
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload svg { width: 28px; height: 28px; color: var(--navy); }
.upload strong { font-size: 15px; }
.upload small { font-size: 13px; color: var(--muted); }
.upload.is-drag, .upload:focus-within { border-color: var(--navy); background: #fff; }
.file-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.file-list span { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(42, 26, 116, 0.08); color: var(--navy); }

.form-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.form-nav .btn--ghost { padding: 8px 20px; }
.form-nav [data-prev][hidden] { display: none; }
.form-nav .spacer { flex: 1; }
@media (max-width: 480px) { .form-nav .btn { flex: 1; } .form-nav .btn--ghost { flex: 0 0 auto; } }

.btn.is-loading { pointer-events: none; }
.btn.is-loading .btn__label { opacity: 0.6; }
.btn.is-loading .btn__icon svg { animation: spinFast 700ms linear infinite; }
@keyframes spinFast { to { transform: rotate(360deg); } }

.summary { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
.summary__card { background: var(--ink); color: #f1efff; border-radius: var(--radius); padding: 28px; }
.summary__card h3 { font-family: var(--f-display); font-size: 1.9rem; font-weight: 400; margin-bottom: 18px; }
.summary__list { display: grid; gap: 0; }
.summary__list div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); font-size: 14.5px; }
.summary__list dt { color: rgba(241, 239, 255, 0.55); font-weight: 600; }
.summary__list dd { margin: 0; font-weight: 600; transition: color 300ms ease; }
.summary__list dd.is-empty { color: rgba(241, 239, 255, 0.35); font-weight: 500; }
.summary__list dd.flash { color: var(--yellow); }
.summary__note { font-size: 13.5px; color: rgba(241, 239, 255, 0.6); margin: 18px 0 0; display: flex; gap: 10px; }
.summary__note svg { width: 18px; height: 18px; flex: none; color: var(--yellow); }

.success { display: none; text-align: center; padding: clamp(24px, 5vw, 56px) 8px; }
.success.is-visible { display: block; animation: stepIn 500ms var(--ease-out); }
.success__icon { width: 88px; height: 88px; margin: 0 auto 28px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; }
.success__icon svg { width: 40px; height: 40px; color: var(--ink); }
.success__icon path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 600ms var(--ease-out) 250ms; }
.success.is-visible .success__icon path { stroke-dashoffset: 0; }
.success h2 { margin-bottom: 16px; }
.success p { color: var(--ink-2); max-width: 46ch; margin: 0 auto 28px; }

.map-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.map-card__art { aspect-ratio: 16 / 10; position: relative; background: #e9e4d6; overflow: hidden; }
.map-card__art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-pin { position: absolute; left: 52%; top: 46%; transform: translate(-50%, -100%); display: grid; justify-items: center; }
.map-pin__dot { width: 44px; height: 44px; border-radius: 50% 50% 50% 0; background: var(--navy); transform: rotate(-45deg); display: grid; place-items: center; box-shadow: 0 10px 20px -6px rgba(23, 21, 59, 0.5); }
.map-pin__dot i { width: 14px; height: 14px; border-radius: 50%; background: var(--yellow); }
.map-pin__pulse { position: absolute; bottom: -8px; width: 18px; height: 6px; border-radius: 50%; background: rgba(23, 21, 59, 0.25); }
.map-card__body { padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.map-card__body strong { display: block; }
.map-card__body span { font-size: 14px; color: var(--muted); }

/* ---------- Rechtstexte ---------- */
.prose { max-width: 760px; }
.prose h2 { font-family: var(--f-display); font-size: 2rem; margin: 48px 0 14px; line-height: 1.1; }
.prose h3 { font-weight: 700; font-size: 1.1rem; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { list-style: disc; padding-left: 22px; margin-bottom: 1em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.note { padding: 18px 20px; border-radius: 14px; background: rgba(255, 230, 0, 0.25); border: 1px solid rgba(23, 21, 59, 0.08); font-size: 15px; color: var(--ink-2); margin: 24px 0; }

/* ---------- Seitenübergang ---------- */
.wipe { position: fixed; inset: 0; z-index: 300; pointer-events: none; display: flex; transform: skewX(-12deg) scaleX(1.3); visibility: hidden; }
.wipe i { flex: 1; transform: translateY(102%); }
.wipe i:nth-child(1) { background: var(--navy); }
.wipe i:nth-child(2) { background: var(--yellow); }
.wipe i:nth-child(3) { background: var(--red); }
.wipe.is-covering, .wipe.is-leaving { visibility: visible; }
.wipe.is-covering i { transform: none; transition: transform 380ms var(--ease-in-out); transition-delay: calc(var(--i) * 50ms); }
.wipe.is-start i { transform: none; transition: none; }
.wipe.is-leaving i { transform: translateY(-102%); transition: transform 520ms var(--ease-in-out); transition-delay: calc(var(--i) * 60ms); }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.stack-sm > * + * { margin-top: 12px; }
.center { text-align: center; }
.hide-mobile { display: none; }
@media (min-width: 900px) { .hide-mobile { display: initial; } }

/* ---------- Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  [data-reveal], [data-reveal="clip"], .fade-up { transform: none !important; clip-path: none !important; transition: opacity 400ms ease !important; }
  [data-reveal="clip"] img, .paint-reveal img { transform: none !important; }
  .split-line > span { transform: none !important; }
  .paint-reveal__stripes, .wipe { display: none !important; }
  .marquee__track { animation: none; }
  .seal svg { animation: none; }
  .svc-preview__frame img { transform: none; filter: none; }
}

/* ==========================================================================
   Ergänzungen nach dem Kickoff (11.11.2026)
   ========================================================================== */

/* Kennzeichnung der Stock-Platzhalter */
.paint-reveal, .region { position: relative; }
.stock-note {
  position: absolute; left: 14px; bottom: 14px; z-index: 4; pointer-events: none;
  padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  background: rgba(23, 21, 59, 0.6); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.region .stock-note { left: auto; right: 14px; top: 14px; bottom: auto; }

/* Vertrauen: Meister, Innung, Partner */
.trust { margin-top: 28px; }
.trust .pill svg { flex: none; }

/* Platzhalter, bis echte Projektfotos da sind */
.soon {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px 28px; align-items: center;
  padding: clamp(24px, 4vw, 44px); border-radius: calc(var(--radius) + 6px);
  border: 1.5px dashed var(--line-strong); background: var(--card);
}
.soon .tri { display: inline-flex; justify-self: start; transform: scale(1.6); transform-origin: left center; margin-right: 12px; }
.soon .h3 { margin: 0 0 8px; }
.soon p { margin: 0; color: var(--ink-2); max-width: 60ch; }
@media (max-width: 560px) { .soon { grid-template-columns: minmax(0, 1fr); } }
.soon > div { min-width: 0; }

/* FAQ */
.faq { display: grid; gap: 40px; }
@media (min-width: 960px) { .faq { grid-template-columns: 0.9fr 1.1fr; gap: 80px; align-items: start; } }
.faq .lead a { text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
.faq__list { border-top: 1px solid var(--line-strong); }
.faq__item { border-bottom: 1px solid var(--line-strong); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-weight: 700; font-size: 1.08rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line-strong); transition: background-color 200ms ease, border-color 200ms ease; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.8px; margin: -0.9px 0 0 -6px; background: currentColor; border-radius: 2px; transition: transform 300ms var(--ease-out); }
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon { background: var(--yellow); border-color: var(--yellow); }
.faq__item[open] .faq__icon::after { transform: rotate(0); }
.faq__item p { margin: 0 0 24px; max-width: 62ch; color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) { .faq__item summary:hover .faq__icon { border-color: var(--navy); } }

/* Schnellbewerbung */
.quick-apply__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.05; margin: 0 0 6px; }
.quick-apply__hint { margin: 0 0 22px; color: var(--muted); font-size: 15px; }
.quick-apply .btn { margin-top: 4px; }
.quick-apply .success { padding: 12px 0; }
.quick-apply .success__icon { width: 64px; height: 64px; margin-bottom: 18px; }
.quick-apply .success__icon svg { width: 30px; height: 30px; }
.career-card .quick-apply .frow--2 { grid-template-columns: 1fr; }
@media (min-width: 560px) { .career-card .quick-apply .frow--2 { grid-template-columns: 1fr 1fr; } }

/* Noch offene Angaben im Impressum sichtbar markieren */
.todo { background: rgba(255, 230, 0, 0.45); padding: 0 4px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) { .faq__icon::before, .faq__icon::after { transition: none; } }
.hero .stock-note { left: auto; right: 14px; }

/* ---------- Referenzen-Teaser Startseite ---------- */
.ref-teaser { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 900px) { .ref-teaser { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.ref-teaser__item { position: relative; display: block; overflow: hidden; border-radius: var(--radius-sm); aspect-ratio: 4 / 5; background: var(--paper-2); }
.ref-teaser__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.ref-teaser__item span { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; color: #fff; font-size: 14px; font-weight: 600; line-height: 1.3; background: linear-gradient(transparent, rgba(10, 20, 40, 0.72)); }
@media (hover: hover) and (pointer: fine) { .ref-teaser__item:hover img { transform: scale(1.04); } }
@media (max-width: 520px) { .ref-teaser__item span { font-size: 12.5px; padding: 22px 10px 9px; } }
.svc-preview.is-own .stock-note { opacity: 0; }

/* ---------- Netlify Forms: Honeypot + Fehlermeldung ---------- */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { flex-basis: 100%; width: 100%; margin: 14px 0 0; padding: 12px 16px; border-radius: var(--radius-sm); background: #fdecea; color: #8a1c13; font-size: 15px; line-height: 1.45; }
.form-error a { color: inherit; font-weight: 700; }
.form-nav { flex-wrap: wrap; }
