/* ============================================
   TWIN FLAMES BRAND OVERRIDES
   Brand Color: Red (#E63946 primary, #C9202F dark)
   ============================================ */

:root {
  --tf-red: #E63946;
  --tf-red-dark: #C9202F;
  --tf-red-light: #FF5868;
  --tf-cream: #FFF8F0;
}

/* Webflow-Badge KILL (failsafe) */
.w-webflow-badge,
a.w-webflow-badge,
[class*="webflow-badge"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* === PRIMARY BUTTON: ROT === */
.primary-button,
.primary-button-wrapper-two .primary-button {
  background-color: var(--tf-red) !important;
  border-color: var(--tf-red) !important;
  transition: background-color 0.2s ease, transform 0.2s ease !important;
}
.primary-button:hover {
  background-color: var(--tf-red-dark) !important;
  transform: translateY(-1px);
}
.primary-button-text,
.primary-button-hover-text {
  color: #fff !important;
}

/* === SECONDARY BUTTON: ROTER OUTLINE === */
.secondary-button {
  border: 2px solid var(--tf-red) !important;
}
.secondary-button:hover {
  background-color: var(--tf-red) !important;
}
.secondary-button-text,
.secondary-button-hover-text {
  color: var(--tf-red) !important;
}
.secondary-button:hover .secondary-button-text,
.secondary-button:hover .secondary-button-hover-text {
  color: #fff !important;
}

/* === PROJECTS-SECTION: Schrift weiß (war auf Bild-Overlay schwarz/dunkel) === */
.section.hero-project,
.section.hero-project * {
  color: #ffffff !important;
}
.section.hero-project .secondary-text,
.section.hero-project .hero-project-card-title,
.section.hero-project h1, .section.hero-project h2,
.section.hero-project h3, .section.hero-project h4 {
  color: #ffffff !important;
}
.section.hero-project .hero-project-card-title {
  font-weight: 600 !important;
}
/* Sub-Labels (Project Type, Location, etc.) etwas transparenter weiß */
.section.hero-project .hero-project-card-bottom-box .secondary-text:first-child {
  color: rgba(255,255,255,0.6) !important;
  font-size: 12px !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
}

/* === ABOUT-SECTION: Vertikalen Abstand reduzieren (war zu weit nach unten gerutscht) === */
.section.hero-about {
  padding-top: 60px !important;
  margin-top: 0 !important;
}

/* === HERO FULL-SCREEN (100vh) === */
.section.hero {
  min-height: 100vh !important;
  height: 100vh !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  position: relative !important;
}

/* Hero-Content vertikal mittig — der innere Container */
.section.hero > .auto-container,
.section.hero > .container,
.section.hero .hero-content-wrap,
.section.hero .hero-wrap {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  width: 100% !important;
  flex: 1 !important;
}

/* Auf sehr kleinen Screens: nicht zu eng */
@media (max-width: 767px) {
  .section.hero {
    min-height: 100svh !important;
    height: 100svh !important;
  }
}

/* Übergang zur nächsten Section */
.section.hero + section,
.section.hero + .section {
  padding-top: var(--_spacing---margin-padding--spacing-mega, 80px);
}

/* === MENU PILL: Active-Link rot, Schrift weiß === */
.nav-link.w--current,
.nav-menu.w--current,
a.nav-link.w--current,
a.nav-menu.w--current {
  background-color: var(--tf-red) !important;
  color: #ffffff !important;
  border-radius: 999px !important;
  transition: background-color 0.4s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

/* Smooth Pill-Movement: Nav-Links bekommen Transition für Hover/Active */
.nav-link, .nav-menu {
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

/* === LOGO CONSTRAINTS (TF-Logo hat 1710x553 viewBox — muss begrenzt werden) === */
.navbar-logo-image {
  height: 44px !important;
  width: auto !important;
  max-width: 180px !important;
  object-fit: contain !important;
}
.footer-logo {
  height: 56px !important;
  width: auto !important;
  max-width: 220px !important;
  object-fit: contain !important;
}

/* === PRODUCT-CARDS: Titel-Höhe vereinheitlichen (verhindert Layout-Bug bei mehrzeiligen Titeln) === */
.products-card-title {
  min-height: 2.4em !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}
.product-card-text {
  min-height: 3em !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

/* === SERVICE-CARDS: ALLE 6 EXAKT GLEICH GROSS ===
   Bilder werden gecropped (object-fit: cover), nicht gestretcht.
   Card-Höhe und Image-Höhe identisch über alle 6 Cards. */
.hero-service-single-card {
  width: 100% !important;
  max-width: 700px !important;
  min-height: 540px !important;
  display: flex !important;
  flex-direction: column !important;
}

.hero-service-image-box-wrap,
.hero-service-image-box {
  width: 100% !important;
  height: 380px !important;
  min-height: 380px !important;
  max-height: 380px !important;
  overflow: hidden !important;
  position: relative !important;
}

.hero-service-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
}

.hero-service-content-box {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  gap: 16px !important;
  min-height: 160px !important;
}

@media screen and (max-width: 767px) {
  .hero-service-single-card { min-height: auto !important; }
  .hero-service-image-box-wrap,
  .hero-service-image-box {
    height: 280px !important;
    min-height: 280px !important;
    max-height: 280px !important;
  }
}

/* === SERVICE-CARDS DUPLIKATE: gestaffelte Sticky-Positionen ===
   Original: .one (6vh), .two (10vh), .three (14vh)
   Duplikate von .two bekommen eigene sticky-Tops via Modifier-Klassen,
   damit jede Card individuell klebt + visuell die nächste verdeckt.
   .three muss weiter nach unten, damit es nach den Duplikaten kommt. */
.hero-service-single-card.card-pos-2 {
  position: sticky;
  top: 14vh;
}
.hero-service-single-card.card-pos-3 {
  position: sticky;
  top: 18vh;
}
.hero-service-single-card.card-pos-4 {
  position: sticky;
  top: 22vh;
}
.hero-service-single-card.three {
  top: 26vh !important;
}
@media screen and (max-width: 767px) {
  .hero-service-single-card.card-pos-2,
  .hero-service-single-card.card-pos-3,
  .hero-service-single-card.card-pos-4 {
    position: static;
  }
  .hero-service-single-card.three {
    top: auto !important;
  }
}

/* === HEADER BUTTONS === */
.tf-primary-btn,
.tf-outline-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.3px;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  line-height: 1;
}

/* Solid red — rechts (Call) */
.tf-primary-btn {
  background: var(--tf-red);
  color: #fff !important;
  border: 2px solid var(--tf-red);
}
.tf-primary-btn:hover {
  background: var(--tf-red-dark);
  border-color: var(--tf-red-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(230, 57, 70, 0.35);
}

/* Outline only — links (Estimate) */
.tf-outline-btn {
  background: transparent;
  color: var(--tf-red) !important;
  border: 2px solid var(--tf-red);
}
.tf-outline-btn:hover {
  background: var(--tf-red);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(230, 57, 70, 0.25);
}

/* === MENU ZENTRIERUNG === */
/* Webflow-Nav: navbar-content nutzt flex, wir zwingen das Menü mittig */
.navbar-content {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  position: relative;
}
.nave-menu,
nav.nave-menu.w-nav-menu {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
}
@media (max-width: 991px) {
  .nave-menu,
  nav.nave-menu.w-nav-menu {
    position: static !important;
    transform: none !important;
  }
}

/* Header-Right: zwei Buttons schön nebeneinander */
.navbar-right-content {
  display: flex !important;
  align-items: center !important;
  gap: 10px;
}
.navbar-right-content .nav-right-btn-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 10px;
  flex-direction: row !important;
}

/* === HERO TRUST BADGE === */
.tf-trust-bar {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 12px 20px;
  border-radius: 999px;
  margin-bottom: 24px;
  font-size: 13px;
  color: #fff;
  letter-spacing: 0.4px;
}
.tf-trust-bar .tf-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.tf-trust-bar .tf-trust-dot {
  width: 6px;
  height: 6px;
  background: var(--tf-red);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--tf-red);
}
.tf-trust-bar .tf-trust-divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.25);
}

@media (max-width: 700px) {
  .tf-trust-bar {
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px 14px;
    font-size: 11px;
    gap: 10px;
  }
  .tf-trust-bar .tf-trust-divider {
    display: none;
  }
}

/* === BRAND ACCENT auf Headlines + Anchors === */
.text-color-primary,
.primary-text-color,
.accent-text {
  color: var(--tf-red) !important;
}
a {
  color: inherit;
}
a.black-link:hover,
a:hover.black-link {
  color: var(--tf-red) !important;
}

/* === STICKY BOTTOM CTA-BAR: permanent sichtbar === */
#tf-sticky-cta {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9990;
  display: flex;
  gap: 8px;
  padding: 6px;
  background: rgba(20, 20, 24, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(230, 57, 70, 0.08);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
}
#tf-sticky-cta.tf-hidden {
  transform: translate(-50%, 120%);
  opacity: 0;
  pointer-events: none;
}
#tf-sticky-cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.2px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
  line-height: 1;
}
#tf-sticky-cta .tf-cta-primary {
  background: var(--tf-red);
  color: #ffffff !important;
  border: 1px solid var(--tf-red);
}
#tf-sticky-cta .tf-cta-primary:hover {
  background: var(--tf-red-dark);
  border-color: var(--tf-red-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(230, 57, 70, 0.4);
}
#tf-sticky-cta .tf-cta-secondary {
  background: transparent;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
#tf-sticky-cta .tf-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
}
#tf-sticky-cta .tf-cta-icon {
  font-size: 14px;
  line-height: 1;
}

@media (max-width: 540px) {
  #tf-sticky-cta {
    bottom: 12px;
    padding: 5px;
    width: calc(100% - 24px);
    justify-content: center;
  }
  #tf-sticky-cta a {
    padding: 11px 14px;
    font-size: 12.5px;
    flex: 1;
    justify-content: center;
  }
}

/* === EXIT POPUP: MARKET VALUE ADVISORY === */
#tf-mva-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 12, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#tf-mva-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

#tf-mva-modal {
  background: linear-gradient(180deg, #ffffff 0%, #fafafb 100%);
  color: #0a0a0c;
  border-radius: 28px;
  max-width: 720px;
  width: 100%;
  padding: 0;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(230, 57, 70, 0.08);
  position: relative;
  transform: translateY(40px) scale(0.95);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
  overflow: hidden;
}
#tf-mva-overlay.active #tf-mva-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

#tf-mva-modal::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--tf-red) 0%, var(--tf-red-light) 50%, var(--tf-red) 100%);
  z-index: 2;
}

#tf-mva-modal .tf-mva-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  min-height: 520px;
}

#tf-mva-modal .tf-mva-side {
  background: radial-gradient(ellipse at top left, #1a1a20 0%, #0a0a0c 100%);
  color: #fff;
  padding: 44px 36px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
#tf-mva-modal .tf-mva-side::before {
  content: "";
  position: absolute;
  top: -100px; right: -100px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, var(--tf-red) 0%, transparent 70%);
  opacity: 0.25;
  border-radius: 50%;
  pointer-events: none;
}

#tf-mva-modal .tf-mva-brand {
  position: relative;
  z-index: 1;
}
#tf-mva-modal .tf-mva-brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.85);
}
#tf-mva-modal .tf-mva-brand-mark .tf-mva-dot {
  width: 8px; height: 8px;
  background: var(--tf-red);
  border-radius: 50%;
  box-shadow: 0 0 14px var(--tf-red);
}

#tf-mva-modal .tf-mva-side h3 {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 16px;
  color: #fff;
  letter-spacing: -0.5px;
}
#tf-mva-modal .tf-mva-side p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 14px;
}
#tf-mva-modal .tf-mva-side p strong {
  color: #fff;
}

#tf-mva-modal .tf-mva-bullets {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  position: relative;
  z-index: 1;
}
#tf-mva-modal .tf-mva-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 8px;
  line-height: 1.5;
}
#tf-mva-modal .tf-mva-bullets li::before {
  content: "✓";
  flex-shrink: 0;
  width: 20px; height: 20px;
  background: rgba(230, 57, 70, 0.18);
  color: var(--tf-red);
  font-size: 11px;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

#tf-mva-modal .tf-mva-content {
  padding: 44px 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
#tf-mva-modal .tf-mva-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--tf-red);
  margin-bottom: 14px;
  padding: 6px 12px;
  background: rgba(230, 57, 70, 0.1);
  border-radius: 999px;
  align-self: flex-start;
}
#tf-mva-modal .tf-mva-content h4 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 12px;
  color: #0a0a0c;
  letter-spacing: -0.3px;
}
#tf-mva-modal .tf-mva-content p {
  font-size: 14.5px;
  line-height: 1.6;
  color: #4a4a52;
  margin: 0 0 12px;
}

#tf-mva-modal .tf-mva-cta-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}
#tf-mva-modal .tf-mva-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--tf-red);
  color: #fff !important;
  text-decoration: none;
  padding: 16px 24px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  border: 2px solid var(--tf-red);
}
#tf-mva-modal .tf-mva-cta:hover {
  background: var(--tf-red-dark);
  border-color: var(--tf-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(230, 57, 70, 0.4);
}
#tf-mva-modal .tf-mva-cta-secondary {
  background: transparent;
  color: var(--tf-red) !important;
  border: 2px solid rgba(230, 57, 70, 0.3);
}
#tf-mva-modal .tf-mva-cta-secondary:hover {
  background: rgba(230, 57, 70, 0.06);
  border-color: var(--tf-red);
  transform: translateY(-1px);
  box-shadow: none;
}

#tf-mva-modal .tf-mva-signature {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f3;
  font-size: 12px;
  color: #80808a;
  display: flex;
  align-items: center;
  gap: 8px;
}
#tf-mva-modal .tf-mva-signature strong {
  color: #1a1a20;
}

#tf-mva-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  color: #6b6b73;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10;
  backdrop-filter: blur(8px);
}
#tf-mva-close:hover {
  background: #1a1a20;
  color: #fff;
  transform: scale(1.05);
}

@media (max-width: 720px) {
  #tf-mva-modal { max-width: 100%; border-radius: 22px; }
  #tf-mva-modal .tf-mva-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  #tf-mva-modal .tf-mva-side {
    padding: 32px 26px 28px;
  }
  #tf-mva-modal .tf-mva-side h3 { font-size: 24px; }
  #tf-mva-modal .tf-mva-content {
    padding: 32px 26px 26px;
  }
  #tf-mva-modal .tf-mva-content h4 { font-size: 19px; }
}
