/*
Theme Name: Wanddurchbrüche X-Moehlmann
Theme URI: https://landing.x-moehlmann.de
Author: X-Moehlmann GmbH
Author URI: https://x-moehlmann.de
Description: Conversion-optimierte Landingpage für Wanddurchbrüche.
Version: 2.0.0
License: Private
Text Domain: xm-wdb
*/

/* ============================================================
   LOCAL FONTS — Raleway (variable, wght 400–900)
============================================================ */
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('assets/fonts/raleway.woff2') format('woff2');
}

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 20px; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Raleway', sans-serif;
  background: #fff;
  color: #1a1a1a;
  overflow-x: hidden;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }

/* ============================================================
   BRAND VARIABLES — matches x-moehlmann.de
============================================================ */
:root {
  --red:          #C1272D;
  --red-dark:     #9E1F24;
  --red-glow:     rgba(193,39,45,.18);
  --black:        #111111;
  --charcoal:     #1C1C1C;
  --dark:         #242424;
  --mid:          #555555;
  --border:       #E0DBD4;
  --light:        #EBEBEB;
  --white:        #FFFFFF;
  --max:          1220px;
  --r:            2px;
  --shadow:       0 4px 28px rgba(0,0,0,.10);
  --shadow-lg:    0 16px 60px rgba(0,0,0,.18);
  --t:            all .26s ease;
}

/* ============================================================
   TYPOGRAPHY — Raleway, comfortable large sizes
============================================================ */
h1, h2, h3, h4, h5 {
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.01em;
}
h1  { font-size: clamp(52px, 7vw, 100px); }
h2  { font-size: clamp(40px, 4.5vw, 68px); }
h3  { font-size: clamp(26px, 2.5vw, 38px); }
h4  { font-size: clamp(20px, 1.8vw, 26px); }
/* Body copy: 18px base = 1rem, comfortable reading */
p   { font-size: 20px; color: #4a4a4a; line-height: 1.78; }

.eyebrow {
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-block;
  margin-bottom: 14px;
}

/* ============================================================
   LAYOUT
============================================================ */
.container  { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.section    { padding: 100px 0; }
.section--dark  { background: var(--black); color: #fff; }
.section--dark p { color: rgba(255,255,255,.66); }
.section--gray  { background: var(--light); }

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 28px;
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .06em;
  border-radius: var(--r);
  cursor: pointer; transition: var(--t);
  border: 2px solid transparent;
  white-space: nowrap; line-height: 1;
  text-transform: uppercase;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn--primary {
  background: var(--red); color: #fff; border-color: var(--red);
}
.btn--primary:hover {
  background: var(--red-dark); border-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(193,39,45,.35);
}
.btn--ghost {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.5);
}
.btn--ghost:hover {
  border-color: #fff; background: rgba(255,255,255,.1);
}
.btn--outline {
  background: transparent; color: var(--black); border-color: var(--black);
}
.btn--outline:hover { background: var(--black); color: #fff; }

.btn--xl { padding: 16px 36px; font-size: 14px; }
.btn--block { width: 100%; justify-content: center; }

/* ============================================================
   TOPBAR
============================================================ */
#topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1100;
  background: var(--red);
  transition: transform .3s ease;
}
#topbar.hide { transform: translateY(-100%); }

.topbar__inner {
  display: flex; align-items: center; justify-content: center;
  gap: 20px; padding: 9px 32px; flex-wrap: wrap;
}
.topbar__text { font-size: 13px; font-weight: 600; color: #fff; }
.topbar__phone {
  display: flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 800; color: #fff;
}
.topbar__phone svg { width: 14px; height: 14px; }
.topbar__cta {
  background: #fff; color: var(--red);
  padding: 5px 14px; border-radius: 2px;
  font-size: 11px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  transition: var(--t);
}
.topbar__cta:hover { background: var(--black); color: #fff; }

/* ============================================================
   HEADER / NAV
============================================================ */
#site-header {
  position: fixed; top: 42px; left: 0; right: 0; z-index: 1000;
  transition: background .28s, box-shadow .28s, top .28s;
}

/* Transparent state — over dark hero */
#site-header:not(.scrolled) .header__logo img {
  filter: brightness(0) invert(1);   /* black logo → white */
}
#site-header:not(.scrolled) .header__nav a {
  color: rgba(255,255,255,.88);
}
#site-header:not(.scrolled) .header__nav a:hover {
  color: #fff;
}
#site-header:not(.scrolled) #nav-toggle span {
  background: #fff;
}

/* Scrolled state — white bar */
#site-header.scrolled {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 24px rgba(0,0,0,.09);
}
#site-header.scrolled .header__logo img {
  filter: none;   /* normal black logo */
}
#site-header.scrolled .header__nav a {
  color: var(--black);
}
#site-header.scrolled .header__nav a:hover { color: var(--red); }
#site-header.scrolled #nav-toggle span { background: var(--black); }

#site-header.topbar-gone { top: 0; }

.header__inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px;
}
.header__logo img { height: 36px; width: auto; transition: filter .28s; }

.header__nav { display: flex; align-items: center; gap: 32px; }
.header__nav a {
  font-weight: 700; font-size: 13px;
  letter-spacing: .1em; text-transform: uppercase;
  transition: color .2s;
}
.header__cta { margin-left: 8px; }

#nav-toggle {
  display: none; flex-direction: column; gap: 6px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
#nav-toggle span { display: block; width: 26px; height: 2px; transition: var(--t); }

#mobile-menu {
  display: none; position: fixed; inset: 0;
  background: var(--black); z-index: 1200;
  flex-direction: column; align-items: center; justify-content: center; gap: 28px;
}
#mobile-menu.open { display: flex; }
#mobile-menu a {
  font-family: 'Raleway', sans-serif; font-weight: 900;
  font-size: 46px; color: #fff; letter-spacing: .02em;
  text-transform: uppercase;
}
#mobile-menu a:hover { color: var(--red); }
#mobile-menu .btn {
  font-size: 15px; padding: 14px 36px;
  letter-spacing: .08em; color: #fff;
}
#mobile-menu .btn:hover { color: #fff; }
#mobile-close { position: absolute; top: 26px; right: 32px; color: #fff; font-size: 36px; cursor: pointer; background: none; border: none; line-height: 1; }

/* ============================================================
   HERO — full viewport, real photo background
============================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding-top: 110px; padding-bottom: 60px;
  overflow: hidden;
  color: #fff;
}

/* Background photo layer */
.hero__photo {
  position: absolute; inset: 0;
  background-image: url('assets/img/leistung-tuer.jpg');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  animation: heroZoom 18s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1.0); }
  to   { transform: scale(1.06); }
}

/* Dark gradient overlay — readable text */
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 180px),
    linear-gradient(105deg, rgba(10,10,10,.88) 0%, rgba(10,10,10,.78) 50%, rgba(10,10,10,.45) 100%);
}

/* Red accent glow bottom-right */
.hero__glow {
  position: absolute; right: -80px; bottom: -80px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(193,39,45,.2) 0%, transparent 65%);
  pointer-events: none;
}

/* Content above all layers */
.hero__content {
  position: relative; z-index: 2;
  max-width: 780px;
}

/* Badge pills */
.hero__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(193,39,45,.18);
  border: 1px solid rgba(193,39,45,.4);
  color: rgba(255,255,255,.88);
  padding: 6px 14px; border-radius: 1px;
  font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
}
.badge svg { width: 11px; height: 11px; color: var(--red); flex-shrink: 0; }

/* Main title */
.hero__title {
  font-size: clamp(36px, 5vw, 72px);
  color: #fff;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,.4);
  line-height: 1.05;
}
.hero__title .accent { color: var(--red); }

/* Sub-headline */
.hero__sub {
  font-size: clamp(16px, 1.6vw, 20px);
  color: rgba(255,255,255,.7);
  font-weight: 500;
  max-width: 580px;
  margin-bottom: 18px;
  line-height: 1.65;
}

/* Check list */
.hero__checks { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 36px; }
.hero__check {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; color: rgba(255,255,255,.65); font-weight: 600;
}
.hero__check::before {
  content: '✓';
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; flex-shrink: 0;
  background: var(--red); border-radius: 50%;
  color: #fff; font-size: 10px; font-weight: 900;
}

/* CTA row */
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 48px; }

/* Stats bar */
.hero__stats {
  display: flex; flex-wrap: wrap; gap: 0;
  border-top: 1px solid rgba(255,255,255,.14);
  padding-top: 32px;
}
.hero__stat {
  padding-right: 28px; margin-right: 28px;
  border-right: 1px solid rgba(255,255,255,.12);
}
.hero__stat:last-child { border-right: none; }
.stat__num {
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 900; color: var(--red); line-height: 1;
  margin-bottom: 3px;
}
.stat__label {
  font-size: 10px; font-weight: 700;
  color: rgba(255,255,255,.45);
  text-transform: uppercase; letter-spacing: .1em;
}

/* Scroll hint */
.hero__scroll-hint {
  position: absolute; bottom: 24px; left: 50%;
  transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: rgba(255,255,255,.3); font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase;
  animation: bounce 2.5s ease-in-out infinite;
}
.hero__scroll-hint svg { width: 22px; height: 22px; }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   ZIELGRUPPEN STRIP
============================================================ */
.ziel__strip {
  background: var(--light);
  border-top: 4px solid var(--red);
  border-bottom: 1px solid var(--border);
}
.ziel__inner {
  max-width: var(--max); margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.ziel__card {
  padding: 44px 32px;
  border-right: 1px solid var(--border);
  transition: var(--t); cursor: default;
  display: flex; flex-direction: column; gap: 14px;
}
.ziel__card:last-child { border-right: none; }
.ziel__card:hover { background: #fff; transform: translateY(-4px); box-shadow: var(--shadow); }
.ziel__icon {
  width: 52px; height: 52px;
  background: var(--red-glow);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
}
.ziel__icon svg { width: 28px; height: 28px; color: var(--red); }
.ziel__card h3 { font-size: 28px; color: var(--black); }
.ziel__card p { font-size: 20px; color: #666; line-height: 1.7; margin: 0; }

/* ============================================================
   BEFORE / AFTER
============================================================ */
.ba__section { padding: 0 0 80px; background: #fff; }
.ba__header { padding: 100px 32px 60px; }
.ba__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}
.ba__item { position: relative; overflow: hidden; }
.ba__item img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  min-height: 280px;
}
.ba__label {
  position: absolute; bottom: 18px; left: 18px;
  background: var(--red); color: #fff;
  font-family: 'Raleway', sans-serif;
  font-weight: 800; font-size: 15px;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 7px 16px; border-radius: var(--r);
}

/* ============================================================
   COUNTER STRIP
============================================================ */
.counter__strip { background: var(--red); padding: 52px 0; }
.counter__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; text-align: center;
}
.counter__item { padding: 0 20px; }
.counter__item + .counter__item { border-left: 1px solid rgba(255,255,255,.2); }
.counter__num {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 900; color: #fff; line-height: 1;
}
.counter__lbl {
  font-size: 11px; font-weight: 700;
  color: rgba(255,255,255,.7);
  text-transform: uppercase; letter-spacing: .12em;
  margin-top: 6px;
}

/* ============================================================
   LEISTUNGEN
============================================================ */
.leist__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px; margin-top: 60px;
}
.leist__card {
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden; background: #fff;
  transition: var(--t);
}
.leist__card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  border-color: var(--red);
}
.leist__img { height: 220px; overflow: hidden; background: var(--light); }
.leist__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.leist__card:hover .leist__img img { transform: scale(1.07); }
.leist__body { padding: 32px; }
.leist__tag {
  display: inline-block;
  background: var(--red-glow); color: var(--red);
  font-size: 15px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 1px; margin-bottom: 14px;
}
.leist__body h3 { font-size: 34px; color: var(--black); margin-bottom: 12px; }
.leist__body p { font-size: 20px; color: #666; line-height: 1.75; margin: 0; }

/* ============================================================
   PROZESS (how it works)
============================================================ */
.prozess__steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; margin-top: 64px; position: relative;
}
.prozess__steps::before {
  content: ''; position: absolute;
  top: 30px; left: 12.5%; right: 12.5%;
  height: 2px; background: var(--border); z-index: 0;
}
.prozess__step { text-align: center; padding: 0 24px; position: relative; z-index: 1; }
.prozess__circle {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 28px;
  margin: 0 auto 24px; position: relative; z-index: 2;
  box-shadow: 0 6px 24px rgba(193,39,45,.38);
}
.prozess__step h4 { font-size: 22px; color: var(--black); margin-bottom: 10px; font-weight: 800; }
.prozess__step p { font-size: 20px; color: #777; line-height: 1.65; margin: 0; }

/* ============================================================
   USPs / WARUM WIR
============================================================ */
.usp__grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0; margin-top: 64px;
}
.usp__item {
  padding: 52px 48px;
  border-right: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.usp__item:nth-child(2n) { border-right: none; }
.usp__num {
  font-size: 6.5rem; font-weight: 900;
  color: rgba(193,39,45,.14); line-height: 1; margin-bottom: -22px;
}
.usp__item h3 { font-size: 38px; color: #fff; margin-bottom: 16px; }
.usp__item p { font-size: 20px; color: rgba(255,255,255,.65); line-height: 1.8; margin: 0; }
.usp__bar { width: 40px; height: 3px; background: var(--red); border-radius: 2px; margin-top: 22px; }

/* ============================================================
   TESTIMONIALS
============================================================ */
.testi__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 60px;
}
.testi__card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r); padding: 36px; transition: var(--t);
}
.testi__card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.testi__stars { color: #E8A000; font-size: 23px; margin-bottom: 18px; letter-spacing: 3px; }
.testi__text {
  font-size: 20px; color: #444; line-height: 1.8;
  font-style: italic; margin-bottom: 22px;
  position: relative;
}
.testi__text::before { content: '\201E'; color: var(--red); font-size: 3rem; font-style: normal; line-height: .5; display: block; margin-bottom: 12px; }
.testi__name { font-weight: 800; font-size: 20px; color: var(--black); margin-bottom: 3px; }
.testi__role { font-size: 17px; color: #888; }

/* ============================================================
   FAQ
============================================================ */
.faq__list {
  max-width: 860px; margin: 60px auto 0;
  display: flex; flex-direction: column; gap: 1px;
}
.faq__item { border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.faq__q {
  width: 100%; text-align: left; padding: 24px 32px;
  background: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 700; font-size: 21px; color: var(--black);
  transition: background .2s;
}
.faq__q:hover { background: rgba(193,39,45,.07); }
.faq__q.open { background: var(--black); color: #fff; }
.faq__q svg { width: 22px; height: 22px; flex-shrink: 0; color: #bbb; transition: transform .25s; }
.faq__q.open svg { transform: rotate(45deg); color: var(--red); }
.faq__a {
  display: none; padding: 22px 32px;
  background: var(--light);
  font-size: 20px; line-height: 1.8; color: #444;
}
.faq__a.open { display: block; }

/* ============================================================
   REFERENZEN GALLERY
============================================================ */
.ref__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px; margin-top: 56px;
}
.ref__item:first-child {
  grid-column: span 2;
}
.ref__item { position: relative; overflow: hidden; cursor: pointer; }
.ref__item img {
  width: 100%; height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover; display: block;
  transition: transform .38s ease;
}
.ref__item:hover img { transform: scale(1.06); }
.ref__overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0);
  display: flex; align-items: flex-end; padding: 22px;
  transition: background .3s;
}
.ref__item:hover .ref__overlay { background: rgba(0,0,0,.42); }
.ref__tag {
  background: var(--red); color: #fff;
  font-size: 14px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 7px 16px; border-radius: var(--r);
  opacity: 0; transform: translateY(8px); transition: all .3s;
}
.ref__item:hover .ref__tag { opacity: 1; transform: none; }

/* ============================================================
   KONTAKT
============================================================ */
.kontakt__wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 88px; align-items: start; margin-top: 64px; }
.kontakt__info h2 { color: #fff; margin-bottom: 18px; }
.kontakt__info > p { color: rgba(255,255,255,.62); margin-bottom: 44px; font-size: 22px; }
.kontakt__details { display: flex; flex-direction: column; gap: 28px; }
.kontakt__row { display: flex; align-items: flex-start; gap: 20px; }
.kontakt__ico {
  width: 52px; height: 52px; flex-shrink: 0;
  background: rgba(193,39,45,.2); border: 1px solid rgba(193,39,45,.32);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
}
.kontakt__ico svg { width: 24px; height: 24px; color: var(--red); }
.kontakt__txt strong {
  display: block; font-size: 15px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .13em;
  color: rgba(255,255,255,.38); margin-bottom: 4px;
}
.kontakt__txt a, .kontakt__txt span {
  font-size: 22px; font-weight: 700;
  color: rgba(255,255,255,.9); transition: color .2s;
}
.kontakt__txt a:hover { color: var(--red); }

.kontakt__formbox {
  background: #fff;
  padding: 56px 52px;
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
}
.kontakt__formbox h3 { font-size: 42px; color: var(--black); margin-bottom: 6px; }
.kontakt__formbox > p { font-size: 20px; color: #888; margin-bottom: 34px; }

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__group { margin-bottom: 20px; }
.form__group label {
  display: block; font-weight: 800; font-size: 15px;
  letter-spacing: .11em; text-transform: uppercase;
  color: var(--dark); margin-bottom: 8px;
}
.form__group input,
.form__group textarea,
.form__group select {
  width: 100%; padding: 15px 20px;
  border: 2px solid var(--border); border-radius: var(--r);
  background: var(--light); color: var(--black);
  font-size: 20px; transition: border-color .2s, background .2s;
}
.form__group input:focus,
.form__group textarea:focus,
.form__group select:focus { outline: none; border-color: var(--red); background: #fff; }
.form__group textarea { height: 130px; resize: vertical; }

.form__check { display: flex; align-items: flex-start; gap: 12px; margin: 8px 0 0; }
.form__check input[type=checkbox] { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; accent-color: var(--red); cursor: pointer; }
.form__check label { font-size: 17px; color: #888; line-height: 1.55; cursor: pointer; }
.form__check label a { color: var(--red); text-decoration: underline; }

.form__submit { margin-top: 24px; }

#form-success {
  display: none; margin-top: 18px; padding: 18px 22px;
  background: #d4edda; border: 1px solid #b8dabd;
  border-radius: var(--r); color: #155724;
  font-weight: 700; font-size: 18px;
}
#form-error {
  display: none; margin-top: 18px; padding: 18px 22px;
  background: #f8d7da; border: 1px solid #f1aeb5;
  border-radius: var(--r); color: #721c24;
  font-weight: 700; font-size: 18px;
}

/* ============================================================
   FLOATING BUTTONS
============================================================ */
#float-btns {
  position: fixed; bottom: 28px; right: 28px; z-index: 990;
  display: flex; flex-direction: column; gap: 12px; align-items: flex-end;
  transition: opacity .3s;
}
.float-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 2px;
  font-family: 'Raleway', sans-serif;
  font-weight: 800; font-size: 12px;
  letter-spacing: .06em; text-transform: uppercase;
  box-shadow: 0 6px 24px rgba(0,0,0,.22);
  transition: var(--t); cursor: pointer; border: none; color: #fff;
}
.float-btn--call { background: var(--charcoal); }
.float-btn--call:hover { background: var(--dark); transform: scale(1.04); }
.float-btn--cta  { background: var(--red); }
.float-btn--cta:hover  { background: var(--red-dark); transform: scale(1.04); }
.float-btn svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ============================================================
   MUSTERWOHNUNG
============================================================ */
.muster__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 48px;
}
.muster__item { overflow: hidden; }
.muster__item img {
  width: 100%; height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover; display: block;
  transition: transform .45s ease;
}
.muster__item:hover img { transform: scale(1.04); }

/* ============================================================
   FOOTER
============================================================ */
#site-footer { background: var(--charcoal); color: #fff; padding: 80px 0 40px; }
.footer__grid {
  display: grid; grid-template-columns: 2.2fr 1fr 1fr;
  gap: 72px; padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer__logo img { height: 38px; margin-bottom: 20px; filter: brightness(0) invert(1); }
.footer__desc { font-size: 17px; color: rgba(255,255,255,.38); line-height: 1.7; max-width: 280px; }

.footer__col h4 {
  font-family: 'Raleway', sans-serif; font-weight: 800;
  font-size: 14px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--red); margin-bottom: 20px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 12px; }
.footer__col ul li a { font-size: 17px; color: rgba(255,255,255,.45); transition: color .2s; }
.footer__col ul li a:hover { color: #fff; }

.footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 32px; flex-wrap: wrap; gap: 12px;
}
.footer__copy { font-size: 16px; color: rgba(255,255,255,.25); }
.footer__legal { display: flex; gap: 28px; }
.footer__legal a { font-size: 16px; color: rgba(255,255,255,.3); transition: color .2s; }
.footer__legal a:hover { color: rgba(255,255,255,.7); }

/* ============================================================
   LEGAL PAGES
============================================================ */
.legal-wrap { padding: 160px 0 100px; }
.legal-wrap h1 { font-size: clamp(36px, 4vw, 64px); margin-bottom: 8px; }
.legal-wrap .updated { font-size: 17px; color: #888; margin-bottom: 56px; }
.legal-wrap h2 { font-size: 24px; font-weight: 800; color: var(--black); margin: 40px 0 12px; }
.legal-wrap p, .legal-wrap li { font-size: 20px; color: #555; line-height: 1.82; margin-bottom: 12px; }
.legal-wrap ul { list-style: disc; padding-left: 24px; }
.legal-wrap a { color: var(--red); text-decoration: underline; }

/* ============================================================
   LIGHTBOX
============================================================ */
#lightbox {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.95);
  align-items: center; justify-content: center;
  padding: 20px;
  animation: lbFadeIn .22s ease;
}
#lightbox.open { display: flex; }
@keyframes lbFadeIn { from { opacity: 0; } to { opacity: 1; } }

#lightbox__img {
  max-width: 90vw; max-height: 88vh;
  object-fit: contain; display: block;
  border-radius: 2px;
  box-shadow: 0 24px 80px rgba(0,0,0,.7);
  animation: lbSlideIn .25s ease;
}
@keyframes lbSlideIn { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }

#lightbox__close {
  position: fixed; top: 20px; right: 28px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25);
  color: #fff; font-size: 28px; line-height: 1;
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s;
}
#lightbox__close:hover { background: var(--red); border-color: var(--red); }

#lightbox__prev, #lightbox__next {
  position: fixed; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2);
  color: #fff; font-size: 32px; line-height: 1;
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s;
}
#lightbox__prev { left: 20px; }
#lightbox__next { right: 20px; }
#lightbox__prev:hover, #lightbox__next:hover { background: var(--red); border-color: var(--red); }

#lightbox__counter {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.45); font-size: 17px; letter-spacing: .1em;
}

/* Mark gallery items as clickable */
.ref__item { cursor: zoom-in; }

/* ============================================================
   SCROLL ANIMATIONS
============================================================ */
.reveal   { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal-l { opacity: 0; transform: translateX(-30px); transition: opacity .7s ease, transform .7s ease; }
.reveal-l.in { opacity: 1; transform: none; }
.reveal-r { opacity: 0; transform: translateX(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal-r.in { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; } .d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; } .d4 { transition-delay: .4s; }
.d5 { transition-delay: .5s; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media(max-width: 1100px) {
  .leist__grid { grid-template-columns: repeat(2, 1fr); }
  .usp__grid { grid-template-columns: 1fr 1fr; }
  .prozess__steps { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .prozess__steps::before { display: none; }
  .counter__grid { grid-template-columns: repeat(2, 1fr); gap: 40px 0; }
}
@media(max-width: 960px) {
  .ziel__inner { grid-template-columns: repeat(2, 1fr); }
  .kontakt__wrap { grid-template-columns: 1fr; gap: 56px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
  .testi__grid { grid-template-columns: 1fr 1fr; }
  .ref__grid { grid-template-columns: repeat(3, 1fr); }
}
@media(max-width: 768px) {
  .section { padding: 56px 0; }
  .header__nav, .header__cta { display: none; }
  #nav-toggle { display: flex; }
  .ziel__inner { grid-template-columns: 1fr; padding: 0; }
  .ziel__card { border-right: none; border-bottom: 1px solid var(--border); }
  .ba__grid { grid-template-columns: 1fr; }
  .ba__header { padding: 56px 32px 40px; }
  .form__row { grid-template-columns: 1fr; }
  .usp__grid { grid-template-columns: 1fr; }
  .usp__item { border-right: none; }
  .ref__grid { grid-template-columns: 1fr 1fr; }
  .ref__item:first-child { grid-column: span 2; }
  .hero__stats { gap: 0; flex-direction: column; }
  .hero__stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,.12); padding: 0 0 20px; margin: 0 0 20px; padding-right: 0; margin-right: 0; }
  .hero__stat:last-child { border-bottom: none; }
  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { width: 100%; justify-content: center; }
  .counter__grid { grid-template-columns: repeat(2, 1fr); }
  .prozess__steps { grid-template-columns: 1fr; gap: 40px; }
  /* Topbar komplett ausblenden – Float-Buttons übernehmen CTAs */
  #topbar { display: none; }
  #site-header { top: 0; }
  /* Float-Buttons als volle Leiste am unteren Rand */
  #float-btns {
    flex-direction: row; gap: 8px;
    bottom: 0; right: 0; left: 0;
    padding: 10px 12px;
    background: rgba(18,18,18,.92);
    backdrop-filter: blur(6px);
    border-radius: 0;
  }
  .float-btn { flex: 1; justify-content: center; border-radius: 2px; padding: 10px 8px; font-size: 10px; }
  .float-btn svg { width: 12px; height: 12px; }
  /* Seiteninhalt nicht von der Leiste verdeckt */
  body { padding-bottom: 64px; }
}
@media(max-width: 560px) {
  .kontakt__formbox { padding: 32px 24px; }
  .footer__grid { grid-template-columns: 1fr; gap: 40px; }
  .testi__grid { grid-template-columns: 1fr; }
  .leist__grid { grid-template-columns: 1fr; }
  .ref__grid { grid-template-columns: 1fr; }
  .ref__item:first-child { grid-column: span 1; }
  .muster__grid { grid-template-columns: 1fr; }
}
