/* =====================================================================
   REX Facility Services – Custom Overrides
   Brand-Farben:
     --color-1: #27438a  (Dunkelblau)
     --color-2: #2d8f8b  (Türkis – Primärfarbe Buttons)
     --color-3: #d7f2f0  (helles Türkis)
     Text auf Türkis: #040126 (dunkles Navy)
   ===================================================================== */

/* ---------- REX BUTTONS 3.0 — Gradient + Shimmer + Magnetic Lift ---------- */
.button-2.c-15 {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 1rem 2.2rem !important;
  min-height: 52px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #27438a 0%, #2d8f8b 55%, #27438a 100%) !important;
  background-size: 220% 100% !important;
  background-position: 0% 0 !important;
  color: #ffffff !important;
  border: none !important;
  font-weight: 700 !important;
  font-size: 0.92rem !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  text-align: center !important;
  cursor: pointer !important;
  overflow: hidden !important;
  isolation: isolate;
  transition: background-position 0.7s cubic-bezier(.16,1,.3,1),
              transform 0.35s cubic-bezier(.16,1,.3,1),
              box-shadow 0.4s ease,
              color 0.3s ease !important;
  box-shadow: 0 12px 28px -10px rgba(39, 67, 138, 0.55),
              0 4px 10px -2px rgba(45, 143, 139, 0.28),
              inset 0 1px 0 rgba(255, 255, 255, 0.18);
  -webkit-tap-highlight-color: transparent;
}

/* === Shimmer-Sweep Highlight === */
.button-2.c-15::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
    transparent 0%,
    transparent 30%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 70%,
    transparent 100%);
  transform: translateX(-110%);
  transition: transform 0.85s cubic-bezier(.16,1,.3,1);
  pointer-events: none;
  z-index: 1;
}

/* === Subtle inner glow ring === */
.button-2.c-15::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  pointer-events: none;
  z-index: 1;
}

.button-2.c-15:hover {
  background-position: 100% 0 !important;
  transform: translateY(-3px) scale(1.015);
  box-shadow: 0 20px 44px -12px rgba(39, 67, 138, 0.7),
              0 10px 22px -6px rgba(45, 143, 139, 0.45),
              inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.button-2.c-15:hover::before {
  transform: translateX(110%);
}

.button-2.c-15:active {
  transform: translateY(-1px) scale(0.99);
  transition-duration: 0.1s !important;
}

.button-2.c-15:focus-visible {
  outline: 3px solid rgba(247, 201, 72, 0.7);
  outline-offset: 3px;
}

/* === Text + Arrow === */
.button-2.c-15 .btn-txt-container {
  position: relative !important;
  height: auto !important;
  overflow: visible !important;
  color: inherit !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px;
  z-index: 2;
}

.button-2.c-15 .btn-txt-container::after {
  content: '';
  display: inline-block;
  width: 18px;
  height: 12px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 16' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><line x1='2' y1='8' x2='20' y2='8'/><polyline points='14 2 20 8 14 14'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 16' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><line x1='2' y1='8' x2='20' y2='8'/><polyline points='14 2 20 8 14 14'/></svg>") no-repeat center / contain;
  transition: transform 0.4s cubic-bezier(.16,1,.3,1);
}

.button-2.c-15:hover .btn-txt-container::after {
  transform: translateX(5px);
}

/* Inline SVG-Icon in Button (z.B. Phone-Icon in "Jetzt anrufen") */
.button-2.c-15 .btn-icon {
  flex-shrink: 0;
  margin-right: 2px;
}

/* Outline-Variante: kein Pfeil */
.button-2.c-15[style*="transparent"] .btn-txt-container::after {
  display: none;
}

.button-2.c-15 .btn-txt {
  position: relative !important;
  color: inherit !important;
  transform: none !important;
  z-index: 2;
  line-height: 1.2 !important;
  white-space: nowrap;
}

.button-2.c-15 .btn-txt-container .btn-txt + .btn-txt {
  display: none !important;
}

.button-2.c-15 .btn-bg,
.button-2.c-15 .btn-bg.c-13,
.button-2.c-15 .btn-bg.c-13.color2 {
  display: none !important;
}

/* ---------- OUTLINE-Variante (z. B. "📞 Jetzt anrufen" Telefon-CTA mit inline transparent) ---------- */
.button-2.c-15[style*="transparent"] {
  background: transparent !important;
  background-image: none !important;
  color: var(--rex-blue, #27438a) !important;
  box-shadow: inset 0 0 0 2px var(--rex-blue, #27438a),
              0 4px 12px -6px rgba(39, 67, 138, 0.25);
}

.button-2.c-15[style*="transparent"]:hover {
  background: linear-gradient(135deg, #27438a 0%, #2d8f8b 100%) !important;
  background-image: linear-gradient(135deg, #27438a 0%, #2d8f8b 100%) !important;
  color: #ffffff !important;
  box-shadow: inset 0 0 0 2px transparent,
              0 18px 38px -10px rgba(39, 67, 138, 0.6),
              0 8px 18px -4px rgba(45, 143, 139, 0.4);
}

/* ---------- WEISSE Variante (z. B. im Footer / auf dunklem BG) ---------- */
.button-2.c-15.white {
  background: #ffffff !important;
  background-image: linear-gradient(135deg, #ffffff 0%, #ffffff 50%, #d7f2f0 100%) !important;
  background-size: 220% 100% !important;
  color: var(--rex-blue, #27438a) !important;
  box-shadow: 0 14px 32px -10px rgba(0, 0, 0, 0.35),
              inset 0 0 0 1px rgba(39, 67, 138, 0.08);
}

.button-2.c-15.white::before {
  background: linear-gradient(120deg,
    transparent 0%, transparent 30%,
    rgba(45, 143, 139, 0.4) 50%,
    transparent 70%, transparent 100%);
}

.button-2.c-15.white:hover {
  background-image: linear-gradient(135deg, var(--rex-blue, #27438a) 0%, var(--rex-teal, #2d8f8b) 100%) !important;
  background-position: 100% 0 !important;
  color: #ffffff !important;
}

/* ---------- .button-main / .button-main.white-button (Submit-Button) ---------- */
.button-main,
.button-main.white-button,
input.button-main,
input.button-main.white-button,
button.button-main {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.95em 2.2em !important;
  min-height: 50px !important;
  border-radius: 50rem !important;
  background-color: var(--color-2, #2d8f8b) !important;
  color: #040126 !important;
  border: 2px solid var(--color-2, #2d8f8b) !important;
  font-weight: 600 !important;
  letter-spacing: 0.4px !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  transition: background-color 0.3s ease,
              color 0.3s ease,
              border-color 0.3s ease,
              transform 0.25s ease,
              box-shadow 0.3s ease !important;
  -webkit-appearance: none;
}

.button-main:hover,
.button-main.white-button:hover,
input.button-main:hover,
input.button-main.white-button:hover,
button.button-main:hover {
  background-color: var(--color-1, #27438a) !important;
  border-color: var(--color-1, #27438a) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -10px rgba(39, 67, 138, 0.45);
}

.button-main:active,
.button-main.white-button:active {
  transform: translateY(0);
}

/* ---------- .button / .button.secondary (Style Guide / sonstige) ---------- */
a.button,
a.button.secondary,
.button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.85em 1.8em !important;
  border-radius: 50rem !important;
  background-color: var(--color-2, #2d8f8b) !important;
  color: #040126 !important;
  border: 2px solid var(--color-2, #2d8f8b) !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: background-color 0.3s ease, color 0.3s ease,
              border-color 0.3s ease, transform 0.25s ease,
              box-shadow 0.3s ease !important;
}

a.button:hover,
.button:hover {
  background-color: var(--color-1, #27438a) !important;
  border-color: var(--color-1, #27438a) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -10px rgba(39, 67, 138, 0.45);
}

a.button.secondary,
.button.secondary {
  background-color: transparent !important;
  color: var(--color-2, #2d8f8b) !important;
}

a.button.secondary:hover,
.button.secondary:hover {
  background-color: var(--color-2, #2d8f8b) !important;
  color: #040126 !important;
}

/* ---------- .button-red (umbenennen wir farblich auf Brand-Türkis) ---------- */
.button-red {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: var(--color-2, #2d8f8b) !important;
  color: #040126 !important;
  border-radius: 50rem !important;
  padding: 0.85em 1.8em !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  border: 2px solid var(--color-2, #2d8f8b) !important;
  transition: background-color 0.3s ease, color 0.3s ease,
              border-color 0.3s ease, transform 0.25s ease,
              box-shadow 0.3s ease !important;
}

.button-red:hover {
  background-color: var(--color-1, #27438a) !important;
  border-color: var(--color-1, #27438a) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -10px rgba(39, 67, 138, 0.45);
}

/* ---------- Kontaktformular & Formspree ---------- */
.uui-contact03_form .uui-form_input-2 {
  width: 100%;
  box-sizing: border-box;
}

.uui-form-button-wrapper {
  display: flex;
  justify-content: flex-start;
}

/* Honeypot Feld unsichtbar (Formspree Spamschutz) */
.formspree-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ---------- Responsive Anpassungen ---------- */
@media (max-width: 991px) {
  .button-2.c-15,
  .button-main,
  .button-main.white-button {
    padding: 0.9em 1.6em !important;
    font-size: 0.9rem !important;
  }
}

@media (max-width: 767px) {
  .button-2.c-15 .btn-txt {
    white-space: normal;
  }

  .button-2.c-15,
  .button-main,
  .button-main.white-button {
    width: auto;
    max-width: 100%;
  }

  /* Form Felder unter 768px stapeln */
  .div-block-26 {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
  }
}

@media (max-width: 479px) {
  .button-2.c-15,
  .button-main,
  .button-main.white-button,
  .button,
  .button-red {
    width: 100%;
    padding: 0.95em 1.2em !important;
    font-size: 0.88rem !important;
  }

  .uui-form-button-wrapper {
    justify-content: stretch;
  }

  .uui-form-button-wrapper .button-main {
    width: 100%;
  }
}

/* Bildlich gesehen: Texte in Buttons nicht zerschneiden */
.button-2.c-15 .btn-txt-container,
.button-main {
  word-break: keep-all;
}

/* ============================================================
   REX 2.0 - MODERN PEPP UPDATE
   Modernes, energiegeladenes Styling
   ============================================================ */

:root {
  --rex-blue: #27438a;
  --rex-teal: #2d8f8b;
  --rex-teal-light: #d7f2f0;
  --rex-navy: #040126;
  --rex-accent: #f7c948;
  --rex-gradient: linear-gradient(135deg, #27438a 0%, #2d8f8b 100%);
  --rex-gradient-light: linear-gradient(135deg, #d7f2f0 0%, #f0fbfa 100%);
}

/* Smooth Scroll */
html { scroll-behavior: smooth; }

/* === Hero Image - moderner Look mit Schatten === */
.landing-hero {
  background: var(--rex-gradient-light);
  position: relative;
  overflow: hidden;
}

.landing-hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(45, 143, 139, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.landing-hero img {
  border-radius: 24px;
  box-shadow: 0 30px 60px -15px rgba(39, 67, 138, 0.35),
              0 0 0 1px rgba(255,255,255,0.5);
  transition: transform 0.6s cubic-bezier(.16,1,.3,1);
}

.landing-hero img:hover {
  transform: scale(1.02) translateY(-5px);
}

.heading {
  background: var(--rex-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
}

.heading .text-span {
  background: linear-gradient(135deg, #2d8f8b, #4fc4be);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  position: relative;
}

/* === Section Headers - modern === */
h2.centered, h2.color-1 {
  font-weight: 800 !important;
  letter-spacing: -0.01em;
}

/* === Service Cards — dezenter, der Maus folgender Hover === */
.service-grid-wrapper {
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(39, 67, 138, 0.06);
  isolation: isolate;
  /* Karten gleicher Spalte gleich hoch + Button am unteren Rand fixieren */
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* CTA-Button ans untere Ende der Karte pinnen, egal wie viele Bullet-Punkte */
.service-grid-wrapper > .button-2 {
  margin-top: auto;
  align-self: flex-start;
}

/* Übergeordnete Webflow-Zellen so streckbar machen, dass Karten die Höhe der höchsten Karte annehmen */
.landing-service-wrapper [class*="quick-stack"] > .w-layout-cell {
  display: flex;
  align-items: stretch;
}
.landing-service-wrapper [class*="quick-stack"] > .w-layout-cell > .service-grid-wrapper {
  width: 100%;
}

.service-grid-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(220px circle at var(--mx, -200px) var(--my, -200px),
              rgba(45, 143, 139, 0.07) 0%,
              rgba(39, 67, 138, 0.035) 35%,
              transparent 65%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 0;
}

.service-grid-wrapper > * { position: relative; z-index: 1; }

.service-grid-wrapper:hover {
  border-color: rgba(45, 143, 139, 0.18);
  box-shadow: 0 16px 38px -16px rgba(39, 67, 138, 0.18);
}

.service-grid-wrapper:hover::before { opacity: 1; }

.service-grid-wrapper img {
  transition: transform 0.5s cubic-bezier(.16,1,.3,1);
}

.service-grid-wrapper:hover img {
  transform: scale(1.04);
}

/* === Process Steps — Ghost Number Background === */
.process .quick-stack-5,
.process [class*="quick-stack"] {
  counter-reset: process-step;
}

.process .process-grid-wrapper {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #fbfeff 100%);
  border-radius: 24px;
  padding: 44px 28px 36px;
  min-height: 220px;
  box-shadow: 0 6px 24px rgba(39, 67, 138, 0.08),
              inset 0 0 0 1px rgba(39, 67, 138, 0.05);
  transition: box-shadow 0.4s ease;
  overflow: hidden;
  counter-increment: process-step;
  isolation: isolate;
}

/* Webflow-Burst-Bild ausblenden — wir nutzen die Counter-Nummer */
.process .process-grid-wrapper > img.image,
.process .process-grid-wrapper > img {
  display: none !important;
}

/* GIANT GHOST NUMBER hinter dem Inhalt */
.process .process-grid-wrapper::before {
  content: counter(process-step);
  position: absolute;
  top: -28px;
  right: -8px;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: clamp(8rem, 14vw, 12rem);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.06em;
  background: linear-gradient(135deg, #27438a 0%, #2d8f8b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.45s ease;
}

/* Maus-folgender Gradient (sehr dezent) */
.process .process-grid-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(220px circle at var(--mx, -200px) var(--my, -200px),
              rgba(45, 143, 139, 0.08) 0%,
              rgba(39, 67, 138, 0.04) 35%,
              transparent 65%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

/* Inhalt über Glow & Ghost-Number */
.process .process-grid-wrapper > h3,
.process .process-grid-wrapper > p,
.process .process-grid-wrapper > .p-xs-end {
  position: relative;
  z-index: 2;
}

.process .process-grid-wrapper > h3 {
  font-size: clamp(1.25rem, 2.1vw, 1.5rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.process .process-grid-wrapper > p {
  color: rgba(4, 1, 38, 0.7);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Hover: kein Lift, kein Strich — nur Glow + dezent stärkere Number */
.process .process-grid-wrapper:hover {
  box-shadow: 0 14px 36px -14px rgba(39, 67, 138, 0.18),
              inset 0 0 0 1px rgba(45, 143, 139, 0.14);
}

.process .process-grid-wrapper:hover::before { opacity: 0.18; }
.process .process-grid-wrapper:hover::after  { opacity: 1; }

/* === Stat Cards (Rex in Zahlen) === */
.stat-number {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  background: var(--rex-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 8px;
  display: inline-block;
}

.stat-card {
  background: white;
  border-radius: 24px;
  padding: 40px 28px;
  text-align: center;
  box-shadow: 0 10px 40px -10px rgba(39, 67, 138, 0.12);
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
  border: 1px solid rgba(39, 67, 138, 0.06);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(220px circle at var(--mx, -200px) var(--my, -200px),
              rgba(45, 143, 139, 0.08) 0%,
              rgba(39, 67, 138, 0.04) 35%,
              transparent 65%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

.stat-card > * { position: relative; z-index: 1; }

.stat-card:hover {
  border-color: rgba(45, 143, 139, 0.2);
  box-shadow: 0 18px 44px -16px rgba(39, 67, 138, 0.22);
}

.stat-card:hover::before { opacity: 1; }

.stat-card h3 {
  color: var(--rex-navy);
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0;
}

.stat-card .stat-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}

/* === Image rounded modern === */
.landing-why img,
.landing-service img.team-photo,
.team-mitglied-wrapper img {
  border-radius: 20px;
  box-shadow: 0 20px 40px -15px rgba(39, 67, 138, 0.3);
  transition: transform 0.4s ease;
}

.landing-why img:hover {
  transform: scale(1.02);
}

/* === Team Member Card === */
.team-mitglied-wrapper {
  position: relative;
  display: inline-block;
  padding: 6px;
  border-radius: 50%;
  background: var(--rex-gradient);
  transition: transform 0.35s ease;
}

.team-mitglied-wrapper:hover {
  transform: translateY(-6px) rotate(2deg);
}

.team-mitglied-wrapper img {
  border-radius: 50%;
  border: 4px solid white;
  display: block;
}

/* === Google-Reviews-Strip vor dem Testimonial-Carousel === */
.rex-google-reviews {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 22px 12px 16px;
  margin: 16px auto 0;
  background: #ffffff;
  border: 1px solid rgba(39, 67, 138, 0.1);
  border-radius: 999px;
  box-shadow: 0 10px 26px -12px rgba(39, 67, 138, 0.25);
  text-decoration: none;
  color: var(--rex-navy, #040126);
  transition: transform .25s cubic-bezier(.16,1,.3,1),
              box-shadow .25s ease, border-color .25s ease;
}

.rex-google-reviews:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -14px rgba(39, 67, 138, 0.35);
  border-color: rgba(45, 143, 139, 0.3);
}

.rex-google-logo {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rex-google-meta { line-height: 1.15; }

.rex-google-line1 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--rex-navy);
}

.rex-google-stars {
  display: inline-flex;
  gap: 1px;
  color: #f7c948;
}

.rex-google-stars svg { width: 14px; height: 14px; }

.rex-google-line2 {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(4, 1, 38, 0.62);
  letter-spacing: 0.01em;
  margin-top: 3px;
}

.rex-google-arrow {
  color: var(--rex-teal, #2d8f8b);
  transition: transform .3s cubic-bezier(.16,1,.3,1);
  flex-shrink: 0;
}

.rex-google-reviews:hover .rex-google-arrow {
  transform: translateX(4px);
}

.about-slider {
  text-align: center;
}

.about-slider .about-slider-wrapper > h2.centered {
  margin-top: 6px;
}

/* === Ansprechpersonen — Untertitel zentriert, normal-gewichtet === */
.team .copy-medium.stelle,
.team-mitglied-wrapper + * + .copy-medium.stelle,
.team .stelle,
.team .stelle strong {
  text-align: center !important;
  font-weight: 400 !important;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: none !important;
  color: rgba(4, 1, 38, 0.7);
  line-height: 1.45;
  max-width: 260px;
  margin: 0 auto;
}

/* === Before/After Comparison Slider (drag) === */
.ba-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 28px;
  margin-top: 2em;
}

.ba-slider {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ba-stage {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 22px;
  overflow: hidden;
  background: #0a1428;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  box-shadow: 0 22px 55px -18px rgba(39, 67, 138, 0.45),
              0 0 0 1px rgba(39, 67, 138, 0.06);
  isolation: isolate;
}

.ba-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

.ba-after {
  z-index: 2;
  -webkit-clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
  clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
}

.ba-label {
  position: absolute;
  top: 16px;
  z-index: 3;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  pointer-events: none;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: rgba(4, 1, 38, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.ba-label-before { left: 16px; }
.ba-label-after  {
  right: 16px;
  background: linear-gradient(135deg, rgba(45, 143, 139, 0.85), rgba(39, 67, 138, 0.85));
}

.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos, 50%);
  width: 3px;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.5) 0%,
    #ffffff 20%,
    #ffffff 80%,
    rgba(255, 255, 255, 0.5) 100%);
  transform: translateX(-50%);
  z-index: 3;
  pointer-events: none;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.5),
              0 0 0 1px rgba(0, 0, 0, 0.05);
}

.ba-handle {
  position: absolute;
  top: 50%;
  left: var(--pos, 50%);
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  padding: 0;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: linear-gradient(135deg, #27438a 0%, #2d8f8b 100%);
  color: #ffffff;
  cursor: ew-resize;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4),
              0 0 0 1px rgba(0, 0, 0, 0.1);
  transition: transform 0.25s cubic-bezier(.16,1,.3,1),
              box-shadow 0.25s ease;
  animation: baPulse 2s ease-in-out 0.5s 3;
  -webkit-tap-highlight-color: transparent;
}

.ba-handle:hover,
.ba-stage:active .ba-handle,
.ba-handle.is-dragging {
  transform: translate(-50%, -50%) scale(1.12);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5),
              0 0 0 6px rgba(255, 255, 255, 0.22);
  animation: none;
}

.ba-handle:focus-visible {
  outline: 3px solid var(--rex-accent);
  outline-offset: 4px;
  animation: none;
}

.ba-handle-icon {
  display: inline-flex;
  align-items: center;
  gap: 0;
  pointer-events: none;
}

.ba-handle-icon svg + svg { margin-left: -4px; }

@keyframes baPulse {
  0%, 100% { box-shadow: 0 10px 28px rgba(0,0,0,0.4), 0 0 0 0 rgba(255,255,255,0.6); }
  50%      { box-shadow: 0 10px 28px rgba(0,0,0,0.4), 0 0 0 14px rgba(255,255,255,0); }
}

.ba-caption {
  font-weight: 600;
  color: var(--rex-navy);
  font-size: 0.95rem;
  padding: 0 4px;
}

.ba-hint {
  text-align: center;
  color: rgba(4, 1, 38, 0.55);
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 1.5em;
  letter-spacing: 0.02em;
}

@media (max-width: 767px) {
  .ba-gallery { grid-template-columns: 1fr; }
  .ba-handle { width: 48px; height: 48px; }
  .ba-label { font-size: 0.68rem; padding: 5px 11px; }
}

/* === Hero Image-Section: image showcase === */
.rex-image-hero {
  border-radius: 28px;
  overflow: hidden;
  max-height: 520px;
  position: relative;
  box-shadow: 0 30px 70px -20px rgba(39, 67, 138, 0.4);
}

.rex-image-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rex-image-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 50%, rgba(39, 67, 138, 0.15) 100%);
  pointer-events: none;
}

/* === REX FAQ 3.0 — Native <details> Accordion === */
.rex-faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 880px;
  margin: 0 auto;
}

.rex-faq {
  position: relative;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(39, 67, 138, 0.08);
  box-shadow: 0 4px 18px -8px rgba(39, 67, 138, 0.1);
  transition: box-shadow 0.35s ease,
              border-color 0.35s ease,
              background-color 0.35s ease;
  overflow: hidden;
  isolation: isolate;
}

/* Linker Akzent-Balken (gradient) — sichtbar wenn offen */
.rex-faq::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: var(--rex-gradient);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.4s cubic-bezier(.16,1,.3,1);
  z-index: 1;
}

.rex-faq[open]::before {
  transform: scaleY(1);
}

.rex-faq:hover {
  border-color: rgba(45, 143, 139, 0.25);
  box-shadow: 0 10px 28px -10px rgba(39, 67, 138, 0.2);
}

.rex-faq[open] {
  background: linear-gradient(180deg, #ffffff 0%, #f6fbfb 100%);
  border-color: rgba(45, 143, 139, 0.3);
  box-shadow: 0 14px 36px -14px rgba(45, 143, 139, 0.28);
}

/* === Question (Summary) === */
.rex-faq-q {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 28px;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.rex-faq-q::-webkit-details-marker { display: none; }
.rex-faq-q::marker { display: none; content: ''; }

.rex-faq-q:focus-visible {
  outline: 3px solid rgba(45, 143, 139, 0.45);
  outline-offset: -3px;
  border-radius: 18px;
}

.rex-faq-text {
  flex: 1;
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  font-weight: 700;
  color: var(--rex-navy);
  letter-spacing: -0.005em;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.rex-faq:hover .rex-faq-text { color: var(--rex-blue); }
.rex-faq[open] .rex-faq-text { color: var(--rex-blue); }

/* === Plus / Minus Icon === */
.rex-faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(45, 143, 139, 0.1), rgba(39, 67, 138, 0.05));
  transition: background 0.35s ease, transform 0.4s cubic-bezier(.16,1,.3,1);
}

.rex-faq-icon::before,
.rex-faq-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 14px;
  height: 2px;
  background: var(--rex-blue);
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(.65,.05,.36,1),
              background-color 0.35s ease;
}

.rex-faq-icon::after {
  transform: rotate(90deg);
}

.rex-faq[open] .rex-faq-icon {
  background: var(--rex-gradient);
  transform: rotate(180deg);
}

.rex-faq[open] .rex-faq-icon::before,
.rex-faq[open] .rex-faq-icon::after {
  background: #ffffff;
}

.rex-faq[open] .rex-faq-icon::after {
  transform: rotate(0deg);
}

/* === Answer — Smooth Expand mit grid-template-rows === */
.rex-faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s cubic-bezier(.16,1,.3,1);
}

.rex-faq[open] .rex-faq-a {
  grid-template-rows: 1fr;
}

.rex-faq-a-inner {
  overflow: hidden;
  min-height: 0;
}

.rex-faq-a-inner > p {
  margin: 0;
  padding: 0 28px 26px;
  color: rgba(4, 1, 38, 0.78);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .rex-faq,
  .rex-faq::before,
  .rex-faq-icon,
  .rex-faq-icon::before,
  .rex-faq-icon::after,
  .rex-faq-a {
    transition: none !important;
  }
}

@media (max-width: 600px) {
  .rex-faq-q { padding: 18px 20px; gap: 14px; }
  .rex-faq-a-inner > p { padding: 0 20px 22px; }
  .rex-faq-icon { width: 32px; height: 32px; }
}

/* Alte Webflow FAQ-Klassen neutralisieren (falls noch im Markup) */
.faq-wrap { display: none; }

/* === Animations on Scroll === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-soft {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.fade-up { animation: fadeUp 0.8s cubic-bezier(.16,1,.3,1) both; }

/* === Energetic Accent Badge === */
.energy-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(45, 143, 139, 0.12);
  color: var(--rex-teal);
  padding: 8px 16px;
  border-radius: 50rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 16px;
}

.energy-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rex-teal);
  animation: pulse-soft 2s ease-in-out infinite;
}

/* === Section Spacer Improvements === */
.landing-why {
  background: var(--rex-gradient-light);
}

/* === Offerten-Formular === */
.offerten-form-wrapper {
  background: white;
  border-radius: 24px;
  padding: 36px 32px;
  box-shadow: 0 20px 60px -20px rgba(39, 67, 138, 0.25);
  border: 1px solid rgba(45, 143, 139, 0.15);
}

.form-heading-with-icon {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.form-heading-with-icon h2,
.form-heading-with-icon h3 {
  margin: 0;
}

/* Mobile responsive */
@media (max-width: 767px) {
  .stat-card { padding: 28px 20px; }
  .work-gallery { grid-template-columns: 1fr; }
  .rex-image-hero { max-height: 320px; }
}

/* === Schöner Schwung für Service-Hero (Über-Uns etc.) === */
.hero-picture,
.service-hero {
  background: var(--rex-gradient-light);
  position: relative;
  overflow: hidden;
}

.hero-picture::after,
.service-hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(45, 143, 139, 0.18) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

h1.heading-2 {
  background: var(--rex-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-weight: 800 !important;
}

/* === CTA Sektion Pop === */
.cta {
  background: var(--rex-gradient);
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  margin: 40px 16px;
}

.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 65%);
  pointer-events: none;
}

.cta h2,
.cta .color-1 {
  color: white !important;
  -webkit-text-fill-color: white !important;
  background: none !important;
}

.cta p,
.cta .centered {
  color: rgba(255,255,255,0.92);
}

/* CTA Buttons - heller auf dunklem Hintergrund */
.cta .button-2.c-15 {
  background-color: white !important;
  border-color: white !important;
  color: var(--rex-navy) !important;
}

.cta .button-2.c-15:hover {
  background-color: transparent !important;
  color: white !important;
  border-color: white !important;
}

.cta .button-2.c-15::before {
  background-color: var(--rex-navy);
}

/* === Image Comparison Hover Card === */
.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--rex-gradient);
  color: white;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 auto 16px;
  box-shadow: 0 10px 25px -8px rgba(45, 143, 139, 0.45);
}

/* === Statistikkarten Container === */
.stats-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 2em;
}

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

/* ============================================================
   REX 3.0 — SPEKTAKULÄRE NAVIGATION
   Sticky Glass-Bar + animierter Burger + Fullscreen Mobile-Menü
   ============================================================ */

/* === Sticky Glass Navbar === */
.navbar {
  position: sticky !important;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.78) !important;
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(39, 67, 138, 0.08);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rex-teal) 50%, transparent);
  opacity: 0.4;
  pointer-events: none;
}

.nav-wrapper {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}

/* === Logo === */
.w-nav-brand {
  position: relative;
  display: flex;
  align-items: center;
  z-index: 1100;
  float: none !important;
}

.w-nav-brand .image-41 {
  width: 48px;
  height: auto;
  border-radius: 12px;
  transition: transform 0.4s cubic-bezier(.16,1,.3,1);
}

.w-nav-brand:hover .image-41 {
  transform: rotate(-6deg) scale(1.06);
}

/* === Desktop-Menü === */
.w-nav-menu {
  display: flex !important;
  align-items: center;
  gap: 4px;
  float: none !important;
}

/* === Nav Links — Pill mit Underline-Dot === */
.nav-link {
  position: relative;
  padding: 10px 18px !important;
  margin: 0 !important;
  font-weight: 600;
  font-size: 0.94rem;
  letter-spacing: -0.01em;
  color: var(--rex-navy) !important;
  border-radius: 999px;
  text-decoration: none;
  transition: color 0.25s ease, background-color 0.3s ease, transform 0.25s ease;
  isolation: isolate;
}

.nav-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(215, 242, 240, 0.7) 0%, rgba(215, 242, 240, 0.3) 100%);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(.16,1,.3,1);
  z-index: -1;
  border-radius: 999px;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  background: var(--rex-gradient);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.35s cubic-bezier(.16,1,.3,1);
}

.nav-link:hover {
  color: var(--rex-blue) !important;
}

.nav-link:hover::before {
  opacity: 1;
  transform: scale(1);
}

.nav-link:hover::after {
  width: 22px;
}

/* === Aktiver Tab === */
.nav-link.w--current {
  color: var(--rex-teal) !important;
  background: linear-gradient(135deg, rgba(45, 143, 139, 0.12) 0%, rgba(39, 67, 138, 0.08) 100%);
}

/* === CTA-Pille in der Navigation (Offerte anfragen) === */
.nav-link.nav-link-cta {
  margin-left: 8px !important;
  padding: 10px 22px !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #27438a 0%, #2d8f8b 100%) !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 20px -6px rgba(45, 143, 139, 0.5),
              inset 0 1px 0 rgba(255, 255, 255, 0.18);
  isolation: isolate;
}

.nav-link.nav-link-cta::before {
  display: none;
}

.nav-link.nav-link-cta::after {
  bottom: auto;
  top: 50%;
  left: auto;
  right: 12px;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.15);
  animation: rexNavCtaPulse 2.2s ease-in-out infinite;
  opacity: 0;
}

@keyframes rexNavCtaPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.15); }
  50%      { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
}

.nav-link.nav-link-cta:hover {
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -6px rgba(45, 143, 139, 0.65),
              inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.nav-link.nav-link-cta.w--current {
  color: #ffffff !important;
  background: linear-gradient(135deg, #27438a 0%, #2d8f8b 100%) !important;
}

.nav-link.nav-link-cta.w--current::after {
  opacity: 1;
}

/* Im Mobile-Fullscreen-Overlay: CTA bekommt Glas-Akzent */
.w-nav-overlay .nav-link.nav-link-cta {
  background: rgba(255, 255, 255, 0.18) !important;
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25),
              0 14px 36px -10px rgba(0, 0, 0, 0.4);
  margin-top: 6px !important;
  margin-left: 0 !important;
}

.w-nav-overlay .nav-link.nav-link-cta::after {
  display: none;
}

.nav-link.w--current::before {
  opacity: 0;
}

.nav-link.w--current::after {
  width: 28px;
  height: 3px;
  bottom: 1px;
  box-shadow: 0 2px 8px rgba(45, 143, 139, 0.45);
}

/* === Burger-Button (Gradient-Pill) === */
.w-nav-button {
  position: relative;
  width: 48px;
  height: 48px;
  padding: 0 !important;
  border-radius: 14px;
  background: var(--rex-gradient);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1100;
  box-shadow: 0 6px 18px -4px rgba(45, 143, 139, 0.45);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-radius 0.4s ease;
  float: none !important;
}

.w-nav-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px -4px rgba(45, 143, 139, 0.6);
}

.w-nav-button.w--open {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
  border-radius: 50%;
}

.rex-burger {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 22px;
  height: 18px;
}

.rex-burger > span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.4s cubic-bezier(.65,.05,.36,1),
              opacity 0.25s ease,
              width 0.3s ease;
}

.rex-burger > span:nth-child(1) { width: 22px; }
.rex-burger > span:nth-child(2) { width: 14px; align-self: flex-end; }
.rex-burger > span:nth-child(3) { width: 18px; }

.w-nav-button:hover .rex-burger > span:nth-child(2) { width: 22px; }
.w-nav-button:hover .rex-burger > span:nth-child(3) { width: 22px; }

/* Burger → X */
.w-nav-button.w--open .rex-burger > span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  width: 22px;
}
.w-nav-button.w--open .rex-burger > span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}
.w-nav-button.w--open .rex-burger > span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  width: 22px;
}

/* === Mobile Breakpoint — Burger sichtbar, Menü weg === */
@media (max-width: 991px) {
  .w-nav-button { display: flex !important; }
  .navbar > .nav-wrapper > .w-nav-menu { display: none !important; }
  .nav-wrapper { padding-top: 10px; padding-bottom: 10px; }
}

/* ============================================================
   SPEKTAKULÄRES MOBILE FULLSCREEN-MENÜ
   ============================================================ */

.w-nav-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  overflow: hidden !important;
  background: linear-gradient(140deg, #27438a 0%, #1f3470 38%, #2d8f8b 100%);
}

/* Dekorative gradient-Blobs */
.w-nav-overlay::before {
  content: '';
  position: absolute;
  top: -160px;
  right: -180px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(215, 242, 240, 0.28) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: rexBlobFloat 12s ease-in-out infinite alternate;
}

.w-nav-overlay::after {
  content: '';
  position: absolute;
  bottom: -160px;
  left: -160px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(247, 201, 72, 0.22) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: rexBlobFloat 14s ease-in-out infinite alternate-reverse;
}

@keyframes rexBlobFloat {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, -20px) scale(1.08); }
}

/* Menü im Overlay: zentriert, vertikal gestapelt */
.w-nav-overlay [data-nav-menu-open] {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  background: transparent !important;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding: 110px 24px 140px;
  overflow-y: auto;
}

/* "Tagline" oben */
.w-nav-overlay [data-nav-menu-open]::before {
  content: 'Reinigung mit Leidenschaft';
  position: absolute;
  top: 96px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  animation: rexNavReveal 0.6s cubic-bezier(.16,1,.3,1) forwards;
}

/* Telefon-CTA unten als dekorative Pille */
.w-nav-overlay [data-nav-menu-open]::after {
  content: '+41 76 521 62 54';
  position: absolute;
  bottom: 56px;
  left: 50%;
  transform: translate(-50%, 28px);
  padding: 14px 28px;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  white-space: nowrap;
  opacity: 0;
  animation: rexNavRevealCenter 0.6s cubic-bezier(.16,1,.3,1) 0.5s forwards;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.4);
}

/* Mobile-Links — gross, mutig, animiert */
.w-nav-overlay .nav-link {
  position: relative;
  width: auto;
  color: #fff !important;
  font-size: clamp(1.7rem, 6vw, 2.4rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em !important;
  padding: 10px 26px !important;
  background: transparent !important;
  border-radius: 999px !important;
  text-align: center;
  text-decoration: none;
  opacity: 0;
  transform: translateY(28px);
  animation: rexNavReveal 0.55s cubic-bezier(.16,1,.3,1) forwards;
}

.w-nav-overlay .nav-link::before,
.w-nav-overlay .nav-link::after { display: none !important; }

.w-nav-overlay .nav-link:nth-child(1) { animation-delay: 0.10s; }
.w-nav-overlay .nav-link:nth-child(2) { animation-delay: 0.16s; }
.w-nav-overlay .nav-link:nth-child(3) { animation-delay: 0.22s; }
.w-nav-overlay .nav-link:nth-child(4) { animation-delay: 0.28s; }
.w-nav-overlay .nav-link:nth-child(5) { animation-delay: 0.34s; }

.w-nav-overlay .nav-link:hover,
.w-nav-overlay .nav-link:active {
  color: var(--rex-accent) !important;
  transform: translateY(-3px) !important;
}

/* Aktiver Mobile-Link: Glas-Pille + pulsierender Akzent */
.w-nav-overlay .nav-link.w--current {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.14) !important;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28),
              0 24px 50px -20px rgba(0, 0, 0, 0.5);
}

.w-nav-overlay .nav-link.w--current::before {
  display: inline-block !important;
  content: '';
  width: 10px;
  height: 10px;
  margin-right: 14px;
  border-radius: 50%;
  background: var(--rex-accent);
  vertical-align: middle;
  opacity: 1 !important;
  transform: none !important;
  inset: auto !important;
  position: relative !important;
  box-shadow: 0 0 0 5px rgba(247, 201, 72, 0.25);
  animation: rexPulse 1.6s ease-in-out infinite;
}

@keyframes rexNavReveal {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes rexNavRevealCenter {
  from { opacity: 0; transform: translate(-50%, 28px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes rexPulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(247, 201, 72, 0.25); }
  50%      { box-shadow: 0 0 0 12px rgba(247, 201, 72, 0.05); }
}

/* Body-Scroll lock + helleres Logo, wenn Menü offen ist */
body:has(.w-nav-button.w--open) {
  overflow: hidden;
}

body:has(.w-nav-button.w--open) .w-nav-brand .image-41 {
  filter: brightness(0) invert(1);
  background: rgba(255, 255, 255, 0.12);
  padding: 4px;
  border-radius: 10px;
}

/* Reduce Motion — Animationen abschalten */
@media (prefers-reduced-motion: reduce) {
  .nav-link,
  .nav-link::before,
  .nav-link::after,
  .w-nav-button,
  .rex-burger > span,
  .w-nav-brand .image-41 {
    transition: none !important;
  }
  .w-nav-overlay::before,
  .w-nav-overlay::after,
  .w-nav-overlay .nav-link,
  .w-nav-overlay [data-nav-menu-open]::before,
  .w-nav-overlay [data-nav-menu-open]::after,
  .w-nav-overlay .nav-link.w--current::before {
    animation: none !important;
    opacity: 1;
    transform: none !important;
  }
}

/* ============================================================
   REX 4.0 — SUB-PAGE HEROES MIT FOTO + OVERLAY
   ============================================================ */
.rex-subhero {
  position: relative;
  background-color: var(--rex-blue);
  overflow: hidden;
  min-height: 380px;
  display: flex;
  align-items: center;
  isolation: isolate;
  background-image: var(--hero-img, none);
  background-size: cover;
  background-position: center;
}

.rex-subhero::after { display: none !important; } /* alten Blob neutralisieren */

.rex-subhero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at 20% 100%, rgba(45, 143, 139, 0.55) 0%, transparent 55%),
    linear-gradient(135deg,
      rgba(39, 67, 138, 0.82) 0%,
      rgba(39, 67, 138, 0.66) 50%,
      rgba(4, 1, 38, 0.78) 100%);
  pointer-events: none;
}

.rex-subhero .hero-picture-wrapper { width: 100%; }

/* Heading: weiss + clean */
.rex-subhero h1.heading-2,
.rex-subhero h1 {
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
  letter-spacing: -0.015em;
}

.rex-subhero p {
  color: rgba(255, 255, 255, 0.92) !important;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

.rex-subhero .energy-badge {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.rex-subhero .energy-badge::before {
  background: var(--rex-accent) !important;
}

/* === Hero-Bild pro Seite (via data-hero) === */
.rex-subhero[data-hero="offerte"]          { --hero-img: url('../images/rex/firmenwagen.jpg'); background-position: center 35%; }
.rex-subhero[data-hero="uber-uns"]         { --hero-img: url('../images/rex/hero-team-van.jpg'); background-position: center 40%; }
.rex-subhero[data-hero="dienstleistungen"] { --hero-img: url('../images/rex/ermal-fensterreinigung-1.jpg'); background-position: center 30%; }
.rex-subhero[data-hero="service-gebiet"]   { --hero-img: url('../images/rex/firmenwagen-winter.jpg'); background-position: center 45%; }
.rex-subhero[data-hero="jobs"]             { --hero-img: url('../images/rex/work-2.jpg'); background-position: center 40%; }
.rex-subhero[data-hero="kontakt"]          { --hero-img: url('../images/rex/firmenwagen.jpg'); background-position: center 60%; }

@media (max-width: 767px) {
  .rex-subhero { min-height: 320px; }
}

/* ============================================================
   REX FOTO-UPLOAD (Drag & Drop)
   ============================================================ */
.rex-upload {
  position: relative;
  margin-bottom: 16px;
}

.rex-upload-input {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.rex-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 36px 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, rgba(215, 242, 240, 0.4) 100%);
  border: 2px dashed rgba(45, 143, 139, 0.4);
  border-radius: 18px;
  cursor: pointer;
  color: var(--rex-blue);
  transition: background 0.3s ease,
              border-color 0.3s ease,
              transform 0.25s cubic-bezier(.16,1,.3,1);
}

.rex-upload-label:hover,
.rex-upload-label.is-drag {
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--rex-teal);
  transform: scale(1.005);
}

.rex-upload-input:focus-visible + .rex-upload-label {
  outline: 3px solid rgba(45, 143, 139, 0.45);
  outline-offset: 4px;
}

.rex-upload-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--rex-gradient);
  color: white;
  margin-bottom: 6px;
  box-shadow: 0 10px 28px -8px rgba(45, 143, 139, 0.5);
}

.rex-upload-text {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--rex-blue);
}

.rex-upload-hint {
  font-size: 0.85rem;
  color: rgba(4, 1, 38, 0.55);
}

.rex-upload-err {
  margin: 12px 0 0;
  padding: 10px 14px;
  background: rgba(217, 65, 65, 0.08);
  border: 1px solid rgba(217, 65, 65, 0.3);
  color: #a83333;
  border-radius: 10px;
  font-size: 0.88rem;
}

.rex-upload-list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rex-upload-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid rgba(39, 67, 138, 0.1);
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--rex-navy);
  box-shadow: 0 2px 8px rgba(39, 67, 138, 0.05);
}

.rex-upload-item svg { color: var(--rex-teal); flex-shrink: 0; }

.rex-upload-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.rex-upload-size {
  color: rgba(4, 1, 38, 0.55);
  font-size: 0.82rem;
  white-space: nowrap;
}

.rex-upload-rm {
  border: none;
  background: rgba(217, 65, 65, 0.1);
  color: #a83333;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.rex-upload-rm:hover {
  background: #a83333;
  color: #ffffff;
  transform: scale(1.08);
}

.rex-upload-item--err {
  border-color: rgba(217, 65, 65, 0.35);
  background: rgba(217, 65, 65, 0.04);
}

.rex-upload-item--err .rex-upload-size {
  color: #a83333;
  font-weight: 700;
}

/* ============================================================
   REX HERO STAGE (Landing Page) — Photo Reveal + Trust Badges
   ============================================================ */
.rex-hero-stage {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 30px 40px 40px;
  isolation: isolate;
}

.rex-hero-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 32px 64px -20px rgba(39, 67, 138, 0.4),
              0 0 0 1px rgba(39, 67, 138, 0.06);
  isolation: isolate;
}

.rex-hero-photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* "Verschmutzte" Variante: blur, entsättigt, abgedunkelt */
.rex-hero-photo-img--dirty {
  z-index: 1;
  filter: blur(10px) grayscale(0.55) brightness(0.78) contrast(0.9);
  transform: scale(1.06);
}

/* Geputzte Variante: scharf, voll farbig — wird per clip-path enthüllt */
.rex-hero-photo-img--clean {
  z-index: 2;
  clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  animation: rexHeroReveal 9s cubic-bezier(.65,.05,.36,1) infinite;
}

@keyframes rexHeroReveal {
  0%   { clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); }
  55%  { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
  100% { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
}

/* Sweep-Linie (Lichtkante) wandert mit Reveal */
.rex-hero-photo-sweep {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 5px;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.95) 35%,
    rgba(255, 255, 255, 0.95) 65%,
    rgba(255, 255, 255, 0) 100%);
  filter: blur(0.4px);
  box-shadow: 0 0 28px 10px rgba(255, 255, 255, 0.55),
              0 0 60px 20px rgba(45, 143, 139, 0.35);
  z-index: 3;
  pointer-events: none;
  animation: rexHeroSweepLine 9s cubic-bezier(.65,.05,.36,1) infinite;
}

@keyframes rexHeroSweepLine {
  0%   { left: 0;    opacity: 0; }
  4%   { opacity: 1; }
  55%  { left: calc(100% - 5px); opacity: 1; }
  60%  { opacity: 0; }
  100% { left: calc(100% - 5px); opacity: 0; }
}

/* Sanfte Gradient-Abdunkelung unten für bessere Foto-Tiefe */
.rex-hero-photo-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    transparent 55%,
    rgba(4, 1, 38, 0.18) 100%);
  z-index: 4;
  pointer-events: none;
}

/* === Schwebende Trust-Badges === */
.rex-hero-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(39, 67, 138, 0.08);
  border-radius: 16px;
  box-shadow: 0 18px 40px -12px rgba(39, 67, 138, 0.35),
              0 4px 12px -2px rgba(0, 0, 0, 0.06);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  z-index: 5;
  animation: rexBadgeFloat 6s ease-in-out infinite;
  animation-delay: var(--d, 0s);
  white-space: nowrap;
}

.rex-hero-badge--rating {
  top: 28px;
  left: -10px;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.rex-hero-badge--guarantee {
  bottom: 70px;
  right: -12px;
}

.rex-hero-badge--time {
  bottom: -8px;
  left: 30px;
}

.rex-hero-badge-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #f7c948;
}

.rex-hero-badge-stars svg {
  width: 16px;
  height: 16px;
}

.rex-hero-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #27438a 0%, #2d8f8b 100%);
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 6px 14px -4px rgba(45, 143, 139, 0.55);
}

.rex-hero-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.rex-hero-badge-text strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--rex-navy);
  letter-spacing: -0.01em;
}

.rex-hero-badge-text span {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(4, 1, 38, 0.6);
  letter-spacing: 0.01em;
  margin-top: 1px;
}

.rex-hero-badge--rating .rex-hero-badge-text {
  flex-direction: row;
  align-items: baseline;
  gap: 6px;
}

@keyframes rexBadgeFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .rex-hero-photo-img--clean,
  .rex-hero-photo-sweep,
  .rex-hero-badge {
    animation: none !important;
  }
  .rex-hero-photo-img--clean {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  .rex-hero-photo-sweep { opacity: 0; }
}

@media (max-width: 991px) {
  .rex-hero-stage { padding: 20px 24px 32px; max-width: 460px; }
  .rex-hero-badge { padding: 10px 14px; font-size: 0.9rem; }
  .rex-hero-badge-icon { width: 36px; height: 36px; }
  .rex-hero-badge-text strong { font-size: 0.95rem; }
  .rex-hero-badge-text span { font-size: 0.7rem; }
  .rex-hero-badge--rating { top: 14px; left: 0; }
  .rex-hero-badge--guarantee { bottom: 50px; right: 0; }
  .rex-hero-badge--time { bottom: 0; left: 16px; }
}

/* ============================================================
   REX SOCIAL PROOF SECTION (Landing Page)
   ============================================================ */
.rex-social-proof {
  padding: 60px 0 80px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfc 100%);
  position: relative;
}

.rex-social-proof::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(45, 143, 139, 0.25), transparent);
  transform: translateX(-50%);
}

/* === Header === */
.rex-proof-header {
  text-align: center;
  margin-bottom: 48px;
}

.rex-proof-eyebrow {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(4, 1, 38, 0.55);
  margin-bottom: 14px;
}

.rex-proof-rating-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: linear-gradient(135deg, rgba(247, 201, 72, 0.12), rgba(247, 201, 72, 0.04));
  border: 1px solid rgba(247, 201, 72, 0.35);
  border-radius: 999px;
}

.rex-proof-stars {
  display: inline-flex;
  gap: 2px;
  color: #f7c948;
}

.rex-proof-stars svg {
  width: 18px;
  height: 18px;
}

.rex-proof-rating-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--rex-navy);
}

.rex-proof-rating-text strong {
  font-weight: 800;
  font-size: 1.05rem;
  margin-right: 4px;
}

/* === Big Stats Grid === */
.rex-proof-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.rex-proof-stat {
  position: relative;
  text-align: center;
  padding: 30px 18px;
  background: #ffffff;
  border: 1px solid rgba(39, 67, 138, 0.08);
  border-radius: 20px;
  box-shadow: 0 8px 24px -12px rgba(39, 67, 138, 0.15);
  transition: transform 0.4s cubic-bezier(.16,1,.3,1),
              box-shadow 0.4s ease,
              border-color 0.4s ease;
  overflow: hidden;
  isolation: isolate;
}

.rex-proof-stat::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--rex-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(.16,1,.3,1);
}

.rex-proof-stat:hover {
  border-color: rgba(45, 143, 139, 0.25);
  box-shadow: 0 18px 40px -16px rgba(39, 67, 138, 0.22);
}

.rex-proof-stat:hover::before {
  transform: scaleX(1);
}

.rex-proof-num {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  background: var(--rex-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

.rex-proof-lbl {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--rex-navy);
  letter-spacing: 0.01em;
}

/* === Mini Testimonials === */
.rex-proof-quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.rex-proof-quote {
  margin: 0;
  padding: 28px 24px;
  background: #ffffff;
  border: 1px solid rgba(39, 67, 138, 0.08);
  border-radius: 20px;
  box-shadow: 0 8px 24px -12px rgba(39, 67, 138, 0.12);
  position: relative;
  transition: transform 0.4s cubic-bezier(.16,1,.3,1),
              box-shadow 0.4s ease;
}

.rex-proof-quote:hover {
  box-shadow: 0 18px 40px -16px rgba(39, 67, 138, 0.2);
}

.rex-proof-quote::before {
  content: '"';
  position: absolute;
  top: -8px;
  right: 20px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 5rem;
  line-height: 1;
  color: rgba(45, 143, 139, 0.14);
  font-weight: 700;
  pointer-events: none;
}

.rex-proof-quote-stars {
  display: inline-flex;
  gap: 2px;
  color: #f7c948;
  margin-bottom: 14px;
}

.rex-proof-quote-stars svg {
  width: 16px;
  height: 16px;
}

.rex-proof-quote blockquote {
  margin: 0 0 16px;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--rex-navy);
  quotes: none;
}

.rex-proof-quote figcaption {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  border-top: 1px solid rgba(39, 67, 138, 0.08);
  padding-top: 12px;
}

.rex-proof-quote figcaption strong {
  font-weight: 700;
  color: var(--rex-blue);
  font-size: 0.92rem;
}

.rex-proof-quote figcaption span {
  color: rgba(4, 1, 38, 0.6);
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 2px;
}

/* === Trust Pills === */
.rex-proof-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
}

.rex-proof-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #ffffff;
  border: 1px solid rgba(39, 67, 138, 0.12);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--rex-navy);
  letter-spacing: 0.01em;
  transition: border-color 0.3s ease,
              background-color 0.3s ease,
              transform 0.3s ease;
}

.rex-proof-pill svg {
  color: var(--rex-teal);
  flex-shrink: 0;
}

.rex-proof-pill:hover {
  border-color: var(--rex-teal);
  background: rgba(215, 242, 240, 0.5);
}

/* === Responsive === */
@media (max-width: 991px) {
  .rex-proof-stats { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .rex-proof-quotes { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 600px) {
  .rex-social-proof { padding: 44px 0 60px; }
  .rex-proof-stat { padding: 24px 14px; }
  .rex-proof-num { font-size: 2.2rem; }
  .rex-proof-eyebrow { font-size: 0.7rem; }
  .rex-proof-rating-line { font-size: 0.85rem; padding: 8px 14px; }
}

/* ============================================================
   REX CTA v2 — Foto-Hintergrund + Social Proofs
   ============================================================ */
.rex-cta-v2 {
  position: relative;
  margin: 64px 16px;
  border-radius: 32px;
  overflow: hidden;
  background-color: #1f3470;
  background-image: var(--cta-img, none);
  background-size: cover;
  background-position: center;
  isolation: isolate;
  min-height: 540px;
  display: flex;
  align-items: center;
  padding: 80px 0;
  box-shadow: 0 30px 60px -20px rgba(39, 67, 138, 0.35);
}

.rex-cta-v2[data-cta-bg="van"]    { --cta-img: url('../images/rex/hero-team-van.jpg'); }
.rex-cta-v2[data-cta-bg="winter"] { --cta-img: url('../images/rex/firmenwagen-winter.jpg'); }
.rex-cta-v2[data-cta-bg="work"]   { --cta-img: url('../images/rex/work-2.jpg'); }
.rex-cta-v2[data-cta-bg="ermal"]  { --cta-img: url('../images/rex/ermal-fensterreinigung-1.jpg'); }

.rex-cta-v2-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at 20% 100%, rgba(45, 143, 139, 0.55) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 0%, rgba(247, 201, 72, 0.18) 0%, transparent 50%),
    linear-gradient(135deg,
      rgba(4, 1, 38, 0.72) 0%,
      rgba(39, 67, 138, 0.78) 50%,
      rgba(4, 1, 38, 0.6) 100%);
  pointer-events: none;
}

.rex-cta-v2-inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  color: #ffffff;
}

.rex-cta-v2-inner .energy-badge {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  margin-bottom: 18px;
}

.rex-cta-v2-inner .energy-badge::before {
  background: var(--rex-accent) !important;
}

.rex-cta-v2-inner h2 {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 16px;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: none !important;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.rex-cta-v2-inner p {
  font-size: 1.1rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92) !important;
  max-width: 640px;
  margin: 0 auto 32px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}

/* === Buttons === */
.rex-cta-v2-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 44px;
}

/* Outline-Variante im CTA (auf dunklem BG) — weisser Border */
.rex-cta-v2 .button-2.c-15[style*="transparent"] {
  background: transparent !important;
  background-image: none !important;
  color: #ffffff !important;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.7),
              0 4px 12px -6px rgba(0, 0, 0, 0.3);
}

.rex-cta-v2 .button-2.c-15[style*="transparent"]:hover {
  background: #ffffff !important;
  background-image: none !important;
  color: var(--rex-blue) !important;
  box-shadow: inset 0 0 0 2px #ffffff,
              0 18px 38px -10px rgba(0, 0, 0, 0.5);
}

/* === Social Proofs Strip === */
.rex-cta-v2-proofs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.rex-cta-v2-proof {
  text-align: center;
  color: #ffffff;
  min-width: 140px;
}

.rex-cta-v2-proof-stars {
  display: inline-flex;
  gap: 2px;
  color: #f7c948;
  margin-bottom: 4px;
}

.rex-cta-v2-proof-stars svg {
  width: 16px;
  height: 16px;
}

.rex-cta-v2-proof-val {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.1;
}

.rex-cta-v2-proof-lbl {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 4px;
  font-weight: 600;
}

@media (max-width: 767px) {
  .rex-cta-v2 { margin: 36px 12px; padding: 52px 0; min-height: 0; border-radius: 24px; }
  .rex-cta-v2-actions { flex-direction: column; align-items: stretch; }
  .rex-cta-v2-proofs { gap: 18px 24px; }
  .rex-cta-v2-proof { min-width: 0; }
  .rex-cta-v2-proof-val { font-size: 1.3rem; }
}

/* Alte .cta-Section bleibt vorerst für andere Stellen funktional, aber nicht mehr verwendet */

/* ============================================================
   REX SCROLL-REVEAL ANIMATIONEN (sitewide)
   .rex-reveal           → einzelnes Element fade-up
   .rex-reveal-stagger   → Container, dessen Kinder gestaffelt erscheinen
   .rex-reveal-item      → wird automatisch auf direkte Kinder gesetzt
   .is-visible           → JS-Trigger: animiert das Element ein
   ============================================================ */

.rex-reveal,
.rex-reveal-item {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(.16,1,.3,1),
              transform 0.8s cubic-bezier(.16,1,.3,1);
  will-change: opacity, transform;
}

.rex-reveal.is-visible,
.rex-reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition-delay: var(--rex-stagger, 0s);
}

/* Reveal-Varianten */
.rex-reveal-left {
  transform: translate3d(-32px, 0, 0);
}
.rex-reveal-left.is-visible {
  transform: translate3d(0, 0, 0);
}

.rex-reveal-right {
  transform: translate3d(32px, 0, 0);
}
.rex-reveal-right.is-visible {
  transform: translate3d(0, 0, 0);
}

.rex-reveal-scale {
  transform: scale(0.94);
}
.rex-reveal-scale.is-visible {
  transform: scale(1);
}

/* Sofort sichtbare Elemente NICHT animieren (Hero-Inhalt above the fold) */
.landing-hero .rex-reveal,
.landing-hero .rex-reveal-item,
.rex-subhero .rex-reveal,
.rex-subhero .rex-reveal-item {
  opacity: 1;
  transform: none;
  transition: none;
}

/* Animationen-tauglich auch für Webflow-Layouts */
.rex-reveal-stagger {
  /* der Container selbst muss nicht animieren — nur die Kinder */
  opacity: 1 !important;
  transform: none !important;
}

/* Reduce Motion */
@media (prefers-reduced-motion: reduce) {
  .rex-reveal,
  .rex-reveal-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

