/* ==========================================================================
   DOMIART — Generalunternehmen Dortmund
   Design: Modern Editorial / Blue-White-Darkblue
   ========================================================================== */

:root {
  --navy: #0a1a33;
  --navy-2: #0e2342;
  --navy-3: #122c52;
  --blue: #1668c4;
  --azure: #2e9be6;
  --azure-soft: #e3f1fc;
  /* Aufgehellte Variante fuer Links im Fliesstext auf dunklem Grund -   */
  /* das normale --azure ist dort zu dunkel, um bequem lesbar zu sein.   */
  --azure-light: #7fc4f0;
  --ink: #0e1b2c;
  --grey: #55677e;
  --grey-light: #8ba0b8;
  --white: #ffffff;
  --off: #f3f7fc;
  --line: rgba(14, 27, 44, 0.1);
  --line-dark: rgba(255, 255, 255, 0.12);

  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --radius: 18px;
  --radius-lg: 28px;
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);

  --shadow-soft: 0 20px 60px -20px rgba(10, 26, 51, 0.25);
  --shadow-card: 0 10px 40px -12px rgba(10, 26, 51, 0.15);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset & Base ---------- */

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

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

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Links im Fliesstext muessen als Links lesbar sein - die Basisregel oben  */
/* nimmt ihnen jede Auszeichnung. Gilt fuer helle wie dunkle Abschnitte,    */
/* die Farbe kommt jeweils aus currentColor der Umgebung.                   */
.prose a,
.lead a {
  color: var(--azure);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.25s var(--ease-out);
}

.lead--light a {
  color: var(--azure-light);
}

.prose a:hover,
.lead a:hover {
  color: var(--blue);
}

.lead--light a:hover {
  color: var(--white);
}

ul {
  list-style: none;
}

button {
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
}

::selection {
  background: var(--azure);
  color: var(--white);
}

/* ---------- Typography ---------- */

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.display-xl {
  font-size: clamp(2.8rem, 7.2vw, 6rem);
}

.display-lg {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--azure);
}

.eyebrow--light {
  color: var(--azure);
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  color: var(--grey);
}

.lead--light {
  color: var(--grey-light);
}

/* ---------- Layout helpers ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(80px, 11vw, 150px);
  position: relative;
}

.section--dark {
  background: var(--navy);
  color: var(--white);
}

.section--off {
  background: var(--off);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(44px, 6vw, 80px);
}

.section-head h2 {
  margin: 18px 0 20px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 30px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 0.35s var(--ease-out), background 0.35s, color 0.35s,
    box-shadow 0.35s;
  touch-action: manipulation;
}

/* will-change nur bei Hover/Fokus, nicht dauerhaft: sonst haelt jeder     */
/* Button auf der Seite permanent eine eigene Compositor-Ebene vor, ohne  */
/* je zu animieren.                                                       */
.btn:hover,
.btn:focus-visible {
  will-change: transform;
}

.btn:focus-visible,
.nav-cta:focus-visible,
.config__option:focus-visible,
.faq-item summary:focus-visible,
.video-frame__btn:focus-visible,
.video-switch__opt:focus-visible,
.lightbox__close:focus-visible,
.lightbox__nav:focus-visible,
.nav-toggle:focus-visible {
  outline: 3px solid var(--azure);
  outline-offset: 3px;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
  transition: transform 0.35s var(--ease-out);
}

.btn:hover svg {
  transform: translateX(4px);
}

.btn--primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 14px 34px -12px rgba(22, 104, 196, 0.55);
}

.btn--primary:hover {
  background: var(--azure);
  transform: translateY(-2px);
}

.btn--ghost {
  border: 1px solid var(--line-dark);
  color: var(--white);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.btn--dark {
  background: var(--navy);
  color: var(--white);
}

.btn--dark:hover {
  background: var(--blue);
  transform: translateY(-2px);
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  /* Dezenter Sockel, damit das Logo auch vor dem Scrollen ueber hellen  */
  /* Hero-Fotos Kontrast hat. Der volle Blur-Hintergrund kommt erst      */
  /* beim Scrollen dazu (.is-scrolled::before).                          */
  background: linear-gradient(
    to bottom,
    rgba(10, 26, 51, 0.45),
    rgba(10, 26, 51, 0.16) 62%,
    rgba(10, 26, 51, 0)
  );
  transition: box-shadow 0.4s, transform 0.4s var(--ease-out);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(10, 26, 51, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 84px;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 40px -18px rgba(0, 0, 0, 0.5);
}

.site-header.is-scrolled::before {
  opacity: 1;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}

.brand__logo {
  height: clamp(52px, 6vw, 62px);
  width: auto;
  flex: none;
  /* Rim-Light in Markenblau — hebt das Logo vom dunklen Grund ab. */
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.45))
    drop-shadow(0 0 12px rgba(46, 155, 230, 0.38));
  transition: transform 0.5s var(--ease-out), filter 0.4s;
  animation: brand-drop 0.9s var(--ease-out) 0.1s backwards;
}

/* Nach dem Preloader hat das Logo seinen Auftritt schon gehabt — */
/* Header-Einblendung wird dann nicht noch einmal abgespielt.      */
.preloader-done .brand__logo {
  animation: none;
}

.brand:hover .brand__logo {
  transform: translateY(-3px);
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 14px rgba(46, 155, 230, 0.55));
}

/* ---------- Preloader ---------- */

/* Standard unsichtbar: ohne JS (und ohne .is-preloading) nie im Weg. */
.preloader {
  display: none;
}

.is-preloading .preloader {
  display: grid;
  place-items: center;
  position: fixed;
  inset: 0;
  z-index: 999;
  /* Der Grund kommt aus den beiden Vorhaengen, damit sie am Ende      */
  /* auseinanderfahren koennen und die Seite darunter freigeben.       */
  background: transparent;
}

.is-preloading {
  overflow: hidden;
}

/* Zwei Haelften, die den Bildschirm zusammen luecklos decken. Das eine */
/* Pixel Ueberlappung faengt Subpixel-Rundung ab.                       */
.preloader__curtain {
  position: absolute;
  left: 0;
  right: 0;
  height: calc(50% + 1px);
  background: var(--navy);
  will-change: transform;
}

.preloader__curtain--top {
  top: 0;
}

.preloader__curtain--bottom {
  bottom: 0;
}

/* Lichtkante: eine Haarlinie, die an der Vorhang-Kante mitfaehrt. */
.preloader__curtain::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 8%,
    rgba(127, 196, 240, 0.55) 30%,
    rgba(226, 242, 255, 0.9) 50%,
    rgba(127, 196, 240, 0.55) 70%,
    transparent 92%
  );
}

.preloader__curtain--top::after {
  bottom: -1px;
}

.preloader__curtain--bottom::after {
  top: -1px;
}

.preloader__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 0 var(--gutter);
}

.preloader__emblem {
  height: clamp(96px, 15vw, 160px);
  width: auto;
  opacity: 0;
  /* Startet unter der Fuge verborgen und waechst nach oben heraus. */
  clip-path: inset(100% 0 0 0);
  filter: drop-shadow(0 0 26px rgba(46, 155, 230, 0.45));
}

/* Die Fuge: zieht sich aus der Mitte auf und schneidet am Ende den    */
/* Vorhang auf. transform-origin center, damit sie beidseitig laeuft.  */
.preloader__seam {
  display: block;
  /* Breiter als Emblem und Wortmarke, sonst liest sie sich als Teil des */
  /* Logos - das Emblem hat unten selbst einen weissen Balken.           */
  width: min(560px, 78vw);
  margin: 4px 0 2px;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(46, 155, 230, 0) 0%,
    var(--azure) 22%,
    var(--azure) 78%,
    rgba(46, 155, 230, 0) 100%
  );
  transform: scaleX(0);
  box-shadow: 0 0 12px rgba(46, 155, 230, 0.55);
  will-change: transform;
}

.preloader__wortmarke {
  height: clamp(40px, 6.5vw, 60px);
  width: auto;
  opacity: 0;
  clip-path: inset(0 100% 0 0);
}

/* Streiflicht: statische Maske, nur Transform bewegt sich (GSAP). */
.preloader__sheen {
  position: absolute;
  top: -10%;
  bottom: -10%;
  left: 0;
  right: 0;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(
    103deg,
    transparent 43%,
    rgba(219, 238, 255, 0.1) 46.5%,
    rgba(255, 255, 255, 0.78) 49.5%,
    rgba(190, 224, 250, 0.22) 52%,
    transparent 57%
  );
  mix-blend-mode: screen;
  will-change: transform;
}

/* Atmosphaere: Vignette (Showroom-Spot) + Filmkorn. Das Korn bewegt    */
/* sich nur per Transform in Spruengen (~11 fps) — Kino-Textur, null    */
/* Layout. Beides verglimmt, sobald der Vorhang aufgeht (GSAP).        */
.preloader__vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    ellipse 130% 100% at 50% 42%,
    transparent 56%,
    rgba(3, 8, 18, 0.52) 100%
  );
}

.preloader__grain {
  position: absolute;
  inset: -60%;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: preloader-grain 0.9s steps(1) infinite;
  will-change: transform;
}

@keyframes preloader-grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-2%, -3%); }
  20% { transform: translate(3%, 2%); }
  30% { transform: translate(-3%, 1%); }
  40% { transform: translate(2%, -2%); }
  50% { transform: translate(-2%, 3%); }
  60% { transform: translate(3%, -1%); }
  70% { transform: translate(-1%, 2%); }
  80% { transform: translate(2%, 3%); }
  90% { transform: translate(-3%, -2%); }
}

@keyframes brand-drop {
  from { opacity: 0; transform: translateY(-14px); }
}

@media (max-width: 640px) {
  .brand__logo { height: 44px; }
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 36px);
}

.main-nav a {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.3s;
  padding-block: 6px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--azure);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}

.main-nav a:hover {
  color: var(--white);
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--white);
  color: var(--navy) !important;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.3s, transform 0.3s var(--ease-out);
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover {
  background: var(--azure);
  color: var(--white) !important;
  transform: translateY(-2px);
}

.nav-cta svg {
  width: 16px;
  height: 16px;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  /* Ohne das hier quetscht der Header-Flexbox den Button auf ~28px    */
  /* zusammen, sobald Logo + Abstand knapp wird (< ca. 395px Breite) — */
  /* er ist der einzige Button ohne flex:none und schrumpft als erster. */
  flex-shrink: 0;
  border-radius: 12px;
  border: 1px solid var(--line-dark);
  place-items: center;
  z-index: 110;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  position: relative;
  transition: background 0.3s;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--white);
  transition: transform 0.35s var(--ease-out), top 0.35s;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

body.nav-open .nav-toggle span {
  background: transparent;
}

body.nav-open .nav-toggle span::before {
  top: 0;
  transform: rotate(45deg);
}

body.nav-open .nav-toggle span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Mobile Nav */
@media (max-width: 900px) {
  .nav-toggle {
    display: grid;
  }

  .main-nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    background: var(--navy);
    transform: translateY(-100%);
    transition: transform 0.5s var(--ease-out);
    z-index: 105;
  }

  body.nav-open .main-nav {
    transform: translateY(0);
  }

  .main-nav a {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 6vw, 2.4rem);
    font-weight: 600;
    color: var(--white);
    padding-block: 10px;
  }

  .main-nav a::after {
    display: none;
  }

  .nav-cta {
    margin-top: 26px;
    font-size: 1rem;
    padding: 15px 30px;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
  padding-top: 120px;
  padding-bottom: 60px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Blueprint-Raster */
.hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 80% at 70% 30%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 70% 30%, black 30%, transparent 75%);
}

.hero__glow {
  position: absolute;
  width: 60vw;
  height: 60vw;
  max-width: 900px;
  max-height: 900px;
  right: -18vw;
  top: -20vw;
  background: radial-gradient(circle, rgba(46, 155, 230, 0.28) 0%, transparent 62%);
  filter: blur(10px);
}

.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.hero__content .eyebrow {
  margin-bottom: 26px;
}

.hero h1 {
  margin-bottom: 28px;
}

.hero h1 .accent {
  color: var(--azure);
}

.hero__sub {
  max-width: 520px;
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 54px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 56px);
  border-top: 1px solid var(--line-dark);
  padding-top: 28px;
}

.hero__meta-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.hero__meta-item span {
  font-size: 0.85rem;
  color: var(--grey-light);
}

/* Hero-Visual: gestapelte Bildkarten */
.hero__visual {
  position: relative;
  height: clamp(420px, 52vw, 620px);
}

.hero__card {
  position: absolute;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--line-dark);
}

.hero__card img,
.hero__card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__card--main {
  inset: 0 8% 10% 0;
}

.hero__card--float {
  width: 46%;
  aspect-ratio: 4 / 5;
  right: 0;
  bottom: 0;
  border: 6px solid var(--navy);
}

.hero__badge {
  position: absolute;
  top: 6%;
  right: 4%;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  color: var(--navy);
  border-radius: 999px;
  padding: 12px 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: var(--shadow-card);
}

.hero__badge svg {
  width: 18px;
  height: 18px;
  color: var(--blue);
}

@media (max-width: 1000px) {
  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    height: clamp(320px, 60vw, 480px);
  }
}

/* ---------- Keyword-Ticker ---------- */

.ticker {
  background: var(--blue);
  color: var(--white);
  overflow: hidden;
  padding-block: 18px;
  transform: rotate(-1.2deg) scale(1.02) skewX(var(--ticker-skew, 0deg));
  margin-block: -18px;
  position: relative;
  z-index: 5;
}

.ticker__track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: ticker-scroll 36s linear infinite;
}

.ticker__track span {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  padding-right: 26px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker__track span::after {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--azure);
  border-radius: 2px;
  transform: rotate(45deg);
}

@keyframes ticker-scroll {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Leistungen ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px 30px;
  overflow: hidden;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s, border-color 0.45s;
}

/* Gleicher Grund wie bei .btn: nicht permanent auf zehn Karten vorhalten. */
.service-card:hover,
.service-card:focus-within {
  will-change: transform;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--azure));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: transparent;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card h3 {
  font-size: 1.28rem;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--grey);
}

/* ==========================================================================
   Handschrift-Band
   Adrians eigene Idee, woertlich: das Bild von ihm beim Stemmen "transparent
   gelassen und dann halt ein bisschen Text dabei" - und beim Runterscrollen
   "einfach zwischendurch so gesehen in einem Moment". Das Foto liegt als
   ruhige Ebene unter dem Text, nicht als Deko daneben.
   ========================================================================== */
.signature-band {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  padding: clamp(72px, 12vw, 132px) 0;
}

.signature-band__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 38%;
  opacity: 0.34;
  filter: grayscale(0.3) contrast(1.06);
}

/* Verlauf von links: haelt die Textseite ruhig, laesst ihn rechts stehen. */
.signature-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    100deg,
    var(--navy) 0%,
    rgba(10, 26, 51, 0.9) 34%,
    rgba(10, 26, 51, 0.45) 70%,
    rgba(10, 26, 51, 0.2) 100%
  );
}

.signature-band > .container {
  position: relative;
  z-index: 2;
}

.signature-band__line {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.9rem, 5.2vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-top: 14px;
  max-width: 16ch;
  text-wrap: balance;
}

/* .accent ist sonst nur in Hero und Subhero definiert. */
.signature-band__line .accent {
  color: var(--azure);
}

@media (max-width: 700px) {
  /* Hochkant rueckt das Motiv aus dem Bild - dann lieber flaechig dunkel. */
  .signature-band__photo {
    object-position: 70% 40%;
    opacity: 0.26;
  }
}

/* Innenausbau ist bei DOMIART die Klammer ueber Trockenbau, Maler, Verputz, */
/* Bad, Boeden und Tapeten - nicht ein Gewerk neben ihnen. Die Karte traegt  */
/* deshalb die Markenfarbe und laeuft ueber die volle Rasterbreite.          */
/* Volle Rasterbreite: neben der Klammer stehen neun normale Karten, das */
/* teilt sich glatt in 3 / Klammer / 3 / 3.                              */
.service-card--umbrella {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--navy), #16345c);
  border-color: transparent;
}

.service-card--umbrella h3,
.service-card--umbrella p {
  color: var(--white);
}

.service-card--umbrella p {
  opacity: 0.86;
  max-width: 62ch;
}

.service-card--umbrella .service-card__icon {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.service-card--umbrella .service-card__tags li {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
}

.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.service-card__tags li {
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--blue);
  background: var(--azure-soft);
  padding: 5px 12px;
  border-radius: 999px;
}

@media (max-width: 1000px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Bei zwei Spalten ist die Klammer die ganze Reihe. */
  .service-card--umbrella {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card--umbrella {
    grid-column: auto;
  }
}

/* ---------- Vorher / Nachher ---------- */

.ba-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.ba-wrap + .ba-wrap {
  margin-top: clamp(48px, 7vw, 90px);
}

.ba-slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-soft);
  cursor: ew-resize;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.ba-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba-slider__after {
  clip-path: inset(0 0 0 var(--ba-pos, 50%));
}

.ba-slider__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--ba-pos, 50%);
  width: 3px;
  background: var(--white);
  transform: translateX(-50%);
  pointer-events: none;
}

.ba-slider__handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a1a33' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6-5 6 5 6M15 6l5 6-5 6'/%3E%3C/svg%3E");
  background-size: 24px;
  background-position: center;
  background-repeat: no-repeat;
}

.ba-slider__handle:focus-visible {
  outline: none;
}

.ba-slider__handle:focus-visible::after {
  outline: 3px solid var(--azure);
  outline-offset: 3px;
}

.ba-slider__label {
  position: absolute;
  top: 18px;
  padding: 7px 16px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(10, 26, 51, 0.72);
  color: var(--white);
  backdrop-filter: blur(6px);
}

.ba-slider__label--before {
  left: 18px;
}

.ba-slider__label--after {
  right: 18px;
  background: var(--blue);
}

.ba-copy h2 {
  margin: 18px 0 22px;
}

.ba-copy h3 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  margin: 18px 0 22px;
}

.ba-copy .lead {
  margin-bottom: 30px;
}

.ba-facts {
  display: grid;
  gap: 16px;
}

.ba-facts li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 0.98rem;
  color: var(--grey);
}

.ba-facts svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--blue);
  margin-top: 2px;
}

@media (max-width: 900px) {
  .ba-wrap {
    grid-template-columns: 1fr;
  }
}

/* ---------- Projekte / Galerie ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 14px;
}

/* Zwei-Bild-Variante auf den Leistungsseiten: das 4er-Raster wuerde die  */
/* Kacheln dort flach und verloren aussehen lassen.                       */
.gallery-grid--duo {
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: auto;
  gap: clamp(14px, 2vw, 24px);
}

/* Sechs-Bild-Variante auf der Renovierungsseite: erzaehlt den Ablauf einer */
/* Baustelle in zwei Reihen a drei Bildern.                                */
.gallery-grid--trio {
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  gap: clamp(14px, 2vw, 24px);
}

.gallery-grid--duo .gallery-item {
  aspect-ratio: 4 / 3;
}

/* Quadratisch, nicht 4:3: die Baustellenfotos sind fast alle hochkant       */
/* aufgenommen. Ein Querformat-Rahmen wuerde ihnen knapp die Haelfte der     */
/* Hoehe wegschneiden — und damit genau das Motiv (Decke, Wand, Durchbruch). */
.gallery-grid--trio .gallery-item {
  aspect-ratio: 1 / 1;
}

@media (max-width: 900px) {
  .gallery-grid--trio {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .gallery-grid--duo,
  .gallery-grid--trio {
    grid-template-columns: 1fr;
  }
}

.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
}

.gallery-item:focus-visible {
  outline: 3px solid var(--azure);
  outline-offset: 3px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Crop-Puffer für den Parallax (GSAP animiert translate auf transform,
     die Skalierung liegt als eigene CSS-Eigenschaft daneben) */
  scale: 1.12;
  will-change: transform;
  transition: scale 0.7s var(--ease-out);
}

.gallery-item:hover img {
  scale: 1.19;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 26, 51, 0.55), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item--wide {
  grid-column: span 2;
}

.gallery-item--tall {
  grid-row: span 2;
}

.gallery-item__cat {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s, transform 0.4s var(--ease-out);
}

.gallery-item:hover .gallery-item__cat {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: rgba(6, 14, 28, 0.92);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  border-radius: var(--radius);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
}

.lightbox__close {
  position: absolute;
  top: 26px;
  right: 30px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 0.3s, transform 0.3s;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  color: var(--white);
  display: grid;
  place-items: center;
  transition: background 0.3s;
}

.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.1);
}

.lightbox__nav--prev {
  left: 26px;
}

.lightbox__nav--next {
  right: 26px;
}

.lightbox__nav svg {
  width: 22px;
  height: 22px;
}

/* ---------- Über uns ---------- */

.about .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.about__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.about__media img {
  border-radius: var(--radius-lg);
  /* Crop-Puffer für den dezenten Parallax (±4%) */
  scale: 1.06;
  will-change: transform;
}

.about__quote {
  margin-top: 26px;
  padding: 26px 30px;
  border-left: 4px solid var(--azure);
  background: var(--off);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.45;
}

.about__quote footer {
  margin-top: 12px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--grey);
}

.about__copy h2 {
  margin: 18px 0 22px;
}

.about__copy .lead {
  margin-bottom: 22px;
}

.about__copy p {
  color: var(--grey);
  margin-bottom: 18px;
}

.about__list {
  display: grid;
  gap: 12px;
  margin: 28px 0 36px;
}

.about__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.about__list svg {
  width: 20px;
  height: 20px;
  color: var(--blue);
  flex: none;
}

@media (max-width: 900px) {
  .about .container {
    grid-template-columns: 1fr;
  }
}

/* ---------- Ablauf ---------- */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: step;
}

.step-card {
  position: relative;
  padding: 36px 28px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  transition: background 0.4s, transform 0.4s var(--ease-out);
}

.step-card:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-5px);
}

.step-card__num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--azure);
  margin-bottom: 22px;
}

.step-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.step-card p {
  font-size: 0.92rem;
  color: var(--grey-light);
}

@media (max-width: 1000px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Video-Einblick ---------- */

.video-feature .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.video-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 9 / 14;
  max-width: 420px;
  margin-inline: auto;
  background: var(--navy);
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-frame__bar {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: linear-gradient(to top, rgba(6, 14, 28, 0.85), transparent);
}

.video-frame__btn {
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  display: grid;
  place-items: center;
  transition: transform 0.3s var(--ease-out), background 0.3s;
}

.video-frame__btn:hover {
  transform: scale(1.08);
  background: var(--azure);
  color: var(--white);
}

.video-frame__btn svg {
  width: 20px;
  height: 20px;
}

.video-frame__hint {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
}

.video-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.video-switch__opt {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  transition: background 0.3s, color 0.3s;
}

.video-switch__opt:hover {
  color: var(--white);
}

.video-switch__opt.is-active {
  background: var(--white);
  color: var(--navy);
}

@media (max-width: 900px) {
  .video-feature .container {
    grid-template-columns: 1fr;
  }
}

/* ---------- Kontakt ---------- */

.contact {
  position: relative;
  overflow: hidden;
}

.contact__glow {
  position: absolute;
  width: 50vw;
  height: 50vw;
  left: -15vw;
  bottom: -25vw;
  background: radial-gradient(circle, rgba(22, 104, 196, 0.35) 0%, transparent 60%);
  pointer-events: none;
}

.contact .container {
  position: relative;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}

.contact h2 {
  margin: 18px 0 22px;
}

.contact__phone {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 26px 0 10px;
  transition: color 0.3s;
}

.contact__phone:hover {
  color: var(--azure);
}

.contact__note {
  color: var(--grey-light);
  margin-bottom: 40px;
}

.contact-cards {
  display: grid;
  gap: 14px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.35s, transform 0.35s var(--ease-out),
    border-color 0.35s;
}

.contact-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(46, 155, 230, 0.5);
  transform: translateX(6px);
}

.contact-card__icon {
  width: 50px;
  height: 50px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--azure));
}

.contact-card__icon svg {
  width: 22px;
  height: 22px;
  color: var(--white);
}

.contact-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.02rem;
}

.contact-card span {
  font-size: 0.88rem;
  color: var(--grey-light);
}

@media (max-width: 900px) {
  .contact__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  background: #060e1c;
  color: var(--grey-light);
  padding: 70px 0 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  padding-bottom: 46px;
  border-bottom: 1px solid var(--line-dark);
}

.footer-brand img {
  width: 240px;
  margin-bottom: 14px;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.45))
    drop-shadow(0 0 12px rgba(46, 155, 230, 0.3));
}

.footer-brand .footer-brand__tagline {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: var(--weight-medium);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--azure-light);
  white-space: nowrap;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.92rem;
  max-width: 340px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-col ul {
  display: grid;
  gap: 10px;
}

.footer-col a {
  font-size: 0.94rem;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--azure);
}

/* Touch-Geraete: Trefferflaechen auf Daumengroesse bringen. Gilt nur    */
/* fuer grobe Zeiger, damit das Layout mit Maus unveraendert bleibt.     */
/* Gemessen waren Fusszeilen-Links 17-18px und "Mehr dazu" 23px hoch.    */
@media (pointer: coarse) {
  .footer-col a,
  .footer-bottom a,
  .footer-social {
    display: inline-block;
    padding-block: 12px;
  }

  .footer-col ul {
    display: flex;
    flex-direction: column;
  }

  .service-card__link {
    padding-block: 11px;
    margin-top: 8px;
  }
}

.footer-keywords {
  padding-block: 26px;
  font-size: 0.8rem;
  line-height: 1.9;
  /* War Alpha 0.6 = 3.27:1 Kontrast, WCAG AA verlangt 4.5:1 bei dieser  */
  /* Groesse. 0.8 = 4.96:1, mit Puffer nach oben.                       */
  color: rgba(139, 160, 184, 0.8);
  border-bottom: 1px solid var(--line-dark);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding-top: 26px;
  font-size: 0.84rem;
}

.footer-bottom nav {
  display: flex;
  gap: 22px;
}

.footer-bottom a:hover {
  color: var(--azure);
}

@media (max-width: 1000px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Recht (Impressum/Datenschutz) ---------- */

.legal-hero {
  background: var(--navy);
  color: var(--white);
  padding: 170px 0 70px;
}

.legal-body {
  padding-block: 70px 100px;
  max-width: 820px;
}

.legal-body h2 {
  font-size: 1.4rem;
  margin: 44px 0 16px;
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body p,
.legal-body li {
  color: var(--grey);
  margin-bottom: 12px;
  font-size: 0.98rem;
}

.legal-body ul {
  list-style: disc;
  padding-left: 22px;
}

.legal-body a {
  color: var(--blue);
  text-decoration: underline;
}

@media (max-width: 480px) {
  .eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
  }

  .eyebrow::before {
    width: 24px;
  }
}

/* ---------- Reveal-Animationen ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(36px);
}

.no-js [data-reveal],
.no-anim [data-reveal] {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Do-Now-Paket: Vertrauen, Icons, Fugen, Konfigurator, FAQ, Sticky-CTA
   ========================================================================== */

/* ---------- Vertrauens-Band ---------- */

.trust-band {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding-block: 30px;
}

.trust-band__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.trust-band__grid li {
  display: flex;
  align-items: center;
  gap: 14px;
}

.trust-band__icon {
  width: 48px;
  height: 48px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--azure-soft);
  color: var(--blue);
}

.trust-band__icon svg {
  width: 22px;
  height: 22px;
}

.trust-band__grid strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.98rem;
  line-height: 1.25;
}

.trust-band__grid span:not(.trust-band__icon) {
  font-size: 0.84rem;
  color: var(--grey);
}

@media (max-width: 1000px) {
  .trust-band__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .trust-band__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ---------- Service-Icons (ersetzt 01-09) ---------- */

.service-card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: var(--azure-soft);
  color: var(--blue);
  margin-bottom: 22px;
  transition: background 0.4s, color 0.4s, transform 0.4s var(--ease-out);
}

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

.service-card:hover .service-card__icon {
  background: linear-gradient(135deg, var(--blue), var(--azure));
  color: var(--white);
  transform: rotate(-6deg) scale(1.06);
}

/* ---------- Fugen-Strip (Marken-Ornament) ---------- */

.fugen-strip {
  height: 22px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(22, 104, 196, 0.35) 0 1.5px,
      transparent 1.5px 56px
    ),
    linear-gradient(
      to bottom,
      transparent 46%,
      rgba(14, 27, 44, 0.14) 46%,
      rgba(14, 27, 44, 0.14) 54%,
      transparent 54%
    );
}

/* ---------- Projekt-Konfigurator ---------- */

.config {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 48px);
  box-shadow: var(--shadow-card);
  max-width: 900px;
}

.config__progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
}

.config__step-label {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--grey);
}

.config__step-label b {
  color: var(--blue);
}

.config__dots {
  display: flex;
  gap: 8px;
}

.config__dots span {
  width: 34px;
  height: 5px;
  border-radius: 99px;
  background: var(--line);
  transition: background 0.4s;
}

.config__dots span.is-active {
  background: linear-gradient(90deg, var(--blue), var(--azure));
}

.config__panel {
  display: none;
}

.config__panel.is-active {
  display: block;
  animation: config-fade 0.45s var(--ease-out);
}

@keyframes config-fade {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.config__panel h3 {
  font-size: 1.2rem;
  margin-bottom: 18px;
}

.config__panel .config__sub {
  margin-top: 30px;
}

.config__options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.config__option {
  padding: 13px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.94rem;
  color: var(--ink);
  background: var(--white);
  touch-action: manipulation;
  transition: border-color 0.3s, background 0.3s, color 0.3s,
    transform 0.3s var(--ease-out);
}

.config__option:hover {
  border-color: var(--azure);
  transform: translateY(-2px);
}

.config__option.is-selected {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  box-shadow: 0 10px 24px -10px rgba(22, 104, 196, 0.55);
}

.config__name {
  display: block;
  margin-top: 30px;
  max-width: 380px;
}

.config__name span {
  display: block;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--grey);
  margin-bottom: 8px;
}

.config__name input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  font: inherit;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.3s;
}

.config__name input:focus-visible {
  outline: 3px solid var(--azure);
  outline-offset: 2px;
  border-color: var(--blue);
}

.config__summary {
  margin-top: 28px;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--off);
  border-left: 4px solid var(--azure);
}

.config__summary-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}

.config__summary p {
  font-size: 0.96rem;
  color: var(--grey);
}

.config__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.config__back[disabled],
.config__next[disabled] {
  opacity: 0.35;
  pointer-events: none;
}

.config__alt {
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--grey);
}

.config__alt a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
}

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 820px;
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.faq-item[open] {
  border-color: rgba(22, 104, 196, 0.4);
  box-shadow: var(--shadow-card);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 26px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  cursor: pointer;
  list-style: none;
  transition: color 0.3s;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--blue);
}

.faq-item__icon {
  position: relative;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  background: var(--azure-soft);
  transition: background 0.3s, transform 0.4s var(--ease-out);
}

.faq-item__icon::before,
.faq-item__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  background: var(--blue);
  transform: translate(-50%, -50%);
  transition: transform 0.4s var(--ease-out), background 0.3s;
}

.faq-item__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] .faq-item__icon {
  background: var(--blue);
  transform: rotate(45deg);
}

.faq-item[open] .faq-item__icon::before,
.faq-item[open] .faq-item__icon::after {
  background: var(--white);
}

.faq-item__body {
  padding: 0 26px 24px;
}

.faq-item__body p {
  color: var(--grey);
  font-size: 0.96rem;
  max-width: 640px;
}

/* ---------- Sticky Mobile CTA ---------- */

.sticky-cta {
  display: none;
}

@media (max-width: 900px) {
  body {
    padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px));
  }

  .sticky-cta {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 95;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(6, 14, 28, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line-dark);
  }

  .sticky-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 10px;
    border-radius: 999px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
  }

  .sticky-cta__btn svg {
    width: 18px;
    height: 18px;
  }

  .sticky-cta__btn--call {
    background: var(--white);
    color: var(--navy);
  }

  .sticky-cta__btn--wa {
    background: var(--blue);
    color: var(--white);
  }
}

/* ==========================================================================
   Signature: Vom Plan zum Raum (gepinnte Scroll-Sequenz)
   CSS-Default = Endzustand (fertiger Raum) — ohne JS/reduced-motion
   sieht man sofort das Ergebnis. JS setzt die Anfangszustände neu.
   ========================================================================== */

.signature {
  position: relative;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}

.signature::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 40%, transparent 80%);
  pointer-events: none;
}

.signature__pin {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 0 50px;
}

.signature__head {
  text-align: center;
  margin-bottom: clamp(28px, 4vw, 46px);
}

.signature__head .eyebrow {
  justify-content: center;
}

.signature__head .eyebrow::before {
  display: none;
}

.signature__head h2 {
  margin-top: 16px;
}

.signature__stage {
  width: 100%;
  max-width: 1020px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.signature__frame {
  position: relative;
  aspect-ratio: 8 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-dark);
  box-shadow: 0 50px 120px -40px rgba(0, 0, 0, 0.7);
  background: var(--navy-2);
}

.signature__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Default (no-JS / reduced-motion): Endzustand zeigen */
.signature__photo--bau {
  opacity: 0;
}

.signature__photo--fertig {
  opacity: 1;
}

.signature__blueprint {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--azure);
  opacity: 0;
  filter: drop-shadow(0 0 12px rgba(46, 155, 230, 0.35));
}

.signature__captions {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  height: 96px;
  pointer-events: none;
}

.signature__captions p {
  position: absolute;
  left: 0;
  bottom: 0;
  max-width: 460px;
  padding: 16px 22px;
  border-radius: 16px;
  background: rgba(6, 14, 28, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line-dark);
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  opacity: 0;
}

.signature__captions p span {
  display: block;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--azure);
  margin-bottom: 6px;
}

/* Default: letzte Caption zeigen */
.signature__captions p[data-caption="3"] {
  opacity: 1;
}

.signature__cta-wrap {
  display: flex;
  justify-content: center;
  margin-top: clamp(26px, 3.5vw, 40px);
}

@media (max-width: 700px) {
  .signature__frame {
    aspect-ratio: 4 / 4.6;
  }

  .signature__captions {
    height: 132px;
  }

  .signature__captions p {
    font-size: 0.88rem;
    padding: 13px 16px;
  }
}

/* ==========================================================================
   Unterseiten (z. B. Badsanierung Dortmund)
   ========================================================================== */

/* ---------- Sub-Hero: dunkler Hero für Unterseiten ---------- */

.subhero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
  padding: 190px 0 90px;
}

.subhero .container {
  position: relative;
  max-width: 900px;
}

.subhero .eyebrow {
  margin-bottom: 26px;
}

.subhero h1 {
  margin-bottom: 28px;
}

.subhero h1 .accent {
  color: var(--azure);
}

.subhero__sub {
  max-width: 560px;
  margin-bottom: 40px;
}

.subhero .hero__actions {
  margin-bottom: 0;
}

@media (max-width: 700px) {
  .subhero {
    padding: 150px 0 70px;
  }
}

/* ---------- Prose: Fließtext auf Unterseiten ---------- */

.prose {
  max-width: 820px;
}

.prose p {
  color: var(--grey);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 20px;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* ---------- Service-Card: dezenter Link ---------- */

.service-card__link {
  display: inline-block;
  margin-top: 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue);
  transition: color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.service-card__link:hover {
  color: var(--azure);
  transform: translateX(3px);
}

/* ==========================================================================
   Bleeding Edge: Scroll-Progress-Bar + Cross-Document View Transitions
   ========================================================================== */

/* ---------- SplitText: Wörter bleiben ungeteilt ---------- */
/* Ohne nowrap ist das min-content der h1 nur noch EIN Zeichen breit —  */
/* die Hero-Grid-Spalte würde schrumpfen und das Wort mitten drin       */
/* umbrechen ("Modernisieru|ng"). nowrap haelt das Wort als Einheit.    */

.split-word {
  white-space: nowrap;
}

/* ---------- Scroll-Progress-Bar (3px, oberer Viewport-Rand) ---------- */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 150; /* ueber Header (100), unter Lightbox (200) */
  background: linear-gradient(90deg, var(--blue), var(--azure));
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

@keyframes scroll-progress-grow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

/* Nativ per Scroll-Driven Animation; sonst uebernimmt der JS-Fallback (Lenis) */
@supports (animation-timeline: scroll()) {
  .scroll-progress {
    animation: scroll-progress-grow linear both;
    animation-timeline: scroll(root);
  }
}

/* ---------- Cross-Document View Transitions ---------- */

@view-transition {
  navigation: auto;
}

@keyframes vt-out {
  to {
    opacity: 0;
    transform: translateY(-6px);
  }
}

@keyframes vt-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

::view-transition-old(root) {
  animation: vt-out 0.26s ease both;
}

::view-transition-new(root) {
  animation: vt-in 0.32s ease both;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress {
    animation: none;
  }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }
}

/* hidden-Attribut muss display-Regeln schlagen (z.B. .btn) */
[hidden] {
  display: none !important;
}
