/* FELSFO Design System v2.0 — see docs/brand-guidelines.md */

:root {
  /* Brand colors */
  --ffo-primary: #6CAA80;
  --ffo-primary-light-12: #EDF5F0;
  --ffo-primary-light-20: #E2EEE6;
  --ffo-primary-border-48: #B3D4BE;
  --ffo-primary-border-64: #9FC4AE;
  --ffo-dark: #181f33;
  --ffo-white: #FFFFFF;
  --ffo-neutral-100: #F5F6F6;
  --ffo-neutral-200: #D2D5DA;
  --ffo-neutral-300: #ADB1BA;
  --ffo-neutral-400: #888D9A;

  /* Typography */
  --ffo-font-primary: 'Figtree', sans-serif;
  --ffo-font-secondary: 'Raleway', sans-serif;

  /* Shadows */
  --ffo-shadow-card: 0 2px 8px rgba(0, 0, 0, 0.08);
  --ffo-shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);

  /* Border radii */
  --ffo-radius-sm: 10px;
  --ffo-radius-md: 16px;
  --ffo-radius-lg: 20px;
  --ffo-radius-xl: 24px;

  /* Container widths */
  --ffo-container: 1180px;
  --ffo-container-wide: 1280px;
  --ffo-container-full: 1470px;

  /* Section spacing */
  --ffo-section-py: 100px;
  --ffo-section-py-lg: 120px;
}

/* ================================================================
   GLOBAL BASE RESETS
   Ported from HubSpot template_main.min.css and
   template_theme-overrides.min.css. These replace the template CSS
   so header/footer (outside .ffo-main) render correctly.
   ================================================================ */

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

body {
  margin: 0;
  color: var(--ffo-dark);
  font-family: var(--ffo-font-primary);
  font-weight: 400;
  font-style: normal;
  line-height: 1.4;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--ffo-dark);
  font-family: var(--ffo-font-primary);
  text-decoration: none;
  cursor: pointer;
}
a:hover { color: #000; }

p {
  margin: 0;
  font-family: var(--ffo-font-primary);
}

h1, h2, h3, h4, h5, h6,
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
  margin: 0;
  padding: 0;
  color: var(--ffo-dark);
  font-family: var(--ffo-font-primary);
  font-weight: 600;
}
h1 { font-size: 56px; }
h2 { font-size: 48px; }
h3 { font-size: 40px; }
h4 { font-size: 32px; }
h5 { font-size: 28px; }
h6 { font-size: 24px; }

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* ================================================================
   UTILITY CLASSES
   Ported from template_theme-overrides.min.css.
   Used by the shared header/footer HTML markup.
   ================================================================ */

/* Display */
.d_flex { display: flex; }
.d_block { display: block !important; }
.d_none { display: none !important; }
.align_center { align-items: center; }
.align_start { align-items: flex-start; }
.space_between { justify-content: space-between; }
.flex_center { justify-content: center; }
.flex_wrap { flex-wrap: wrap; }
.w100 { width: 100%; }

/* Body overflow lock (toggled by mega menu JS) */
body.overflow_hidden { overflow: hidden; }

/* Containers */
.wrapper,
.wrapper_lg {
  display: block;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
  width: 100%;
}
.wrapper { max-width: 1558px; }
.wrapper_lg { max-width: 1470px; }

/* Padding */
.p40-0 { padding: 40px 0; }
.pt10 { padding-top: 10px; }
.pt15 { padding-top: 15px; }
.pt30 { padding-top: 30px; }
.pt40 { padding-top: 40px; }
.pb5 { padding-bottom: 5px; }
.pb10 { padding-bottom: 10px; }
.pb15 { padding-bottom: 15px; }
.pb20 { padding-bottom: 20px; }

/* Typography utilities */
.bold, .bold a, .bold p, .bold h1, .bold h2, .bold h3, .bold h4, .bold h5, .bold h6 { font-weight: 700; }
.semibold, .semibold a, .semibold p, .semibold h1, .semibold h2, .semibold h3, .semibold h4, .semibold h5, .semibold h6 { font-weight: 600; }
.medium, .medium a, .medium p, .medium h1, .medium h2, .medium h3, .medium h4, .medium h5, .medium h6 { font-weight: 500; }
.black_color, .black_color a, .black_color p { color: #000; }
.white_color, .white_color a, .white_color p { color: #fff; }
.lh1 { line-height: 1; }
.lh12 { line-height: 1.2; }
.lh13 { line-height: 1.3; }
.font14, .font14 p { font-size: 14px; }
.p_font, .p_font a, .p_font p { font-family: var(--ffo-font-primary); }
.subheaders_one, .subheaders_one p {
  color: var(--ffo-dark);
  font-family: var(--ffo-font-secondary);
  font-size: 24px;
  font-weight: 500;
}

/* ----------------------------------------------------------------
   Reset & Base (.ffo-main scoped — for redesigned page content)
   ---------------------------------------------------------------- */
.ffo-main *,
.ffo-main *::before,
.ffo-main *::after {
  box-sizing: border-box;
}

.ffo-main {
  font-family: var(--ffo-font-primary);
  color: var(--ffo-dark);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.ffo-main img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ----------------------------------------------------------------
   Containers
   ---------------------------------------------------------------- */
.ffo-container {
  width: 100%;
  max-width: var(--ffo-container);
  margin-inline: auto;
  padding-inline: 24px;
}

.ffo-container--wide {
  max-width: var(--ffo-container-wide);
}

.ffo-container--full {
  max-width: var(--ffo-container-full);
}

/* ----------------------------------------------------------------
   Section spacing
   ---------------------------------------------------------------- */
.ffo-section {
  padding-block: var(--ffo-section-py);
}

.ffo-section--lg {
  padding-block: var(--ffo-section-py-lg);
}

.ffo-section--neutral {
  background-color: var(--ffo-neutral-100);
}

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

.ffo-section--primary-light {
  background-color: var(--ffo-primary-light-12);
}

/* ----------------------------------------------------------------
   Typography scale
   ---------------------------------------------------------------- */
.ffo-main h1,
.ffo-main h2,
.ffo-main h3,
.ffo-main h4,
.ffo-main h5,
.ffo-main h6 {
  font-family: var(--ffo-font-primary);
  font-weight: 700;
  color: var(--ffo-dark);
  line-height: 1.15;
  margin: 0;
}

.ffo-main h1 { font-size: clamp(40px, 5vw, 64px); }
.ffo-main h2 { font-size: clamp(28px, 3.5vw, 42px); }
.ffo-main h3 { font-size: clamp(24px, 2.5vw, 32px); }
.ffo-main h4 { font-size: clamp(20px, 2vw, 24px); }

.ffo-section--dark h1,
.ffo-section--dark h2,
.ffo-section--dark h3,
.ffo-section--dark h4 {
  color: var(--ffo-white);
}
.ffo-section--dark .ffo-text-secondary {
  color: var(--ffo-neutral-200);
}
.ffo-section--dark .ffo-text-secondary a {
  color: var(--ffo-white);
  text-decoration: underline;
}

.ffo-text-large {
  font-size: clamp(18px, 1.5vw, 24px);
  line-height: 1.4;
}

.ffo-text-body {
  font-size: 16px;
  line-height: 1.6;
}

.ffo-text-secondary {
  color: var(--ffo-neutral-400);
}

.ffo-text-center {
  text-align: center;
}

.ffo-section-title {
  margin-bottom: 48px;
}

.ffo-section-title--center {
  text-align: center;
}

/* ----------------------------------------------------------------
   Buttons
   ---------------------------------------------------------------- */
.ffo-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ffo-font-primary);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  border-radius: var(--ffo-radius-lg);
  padding: 14px 28px;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 2px solid transparent;
  white-space: nowrap;
}

.ffo-btn--primary {
  background-color: var(--ffo-primary);
  color: var(--ffo-white);
  border-color: var(--ffo-primary);
}

.ffo-btn--primary:hover {
  background-color: #5e9a72;
  border-color: #5e9a72;
}

.ffo-btn--secondary {
  background-color: var(--ffo-neutral-100);
  color: var(--ffo-dark);
  border-color: var(--ffo-neutral-200);
}

.ffo-btn--secondary:hover {
  background-color: var(--ffo-neutral-200);
}

.ffo-btn--link {
  background: none;
  padding: 0;
  color: var(--ffo-dark);
  font-weight: 700;
  position: relative;
  border-radius: 0;
}

.ffo-btn--link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--ffo-dark);
  transition: width 0.3s ease;
}

.ffo-btn--link:hover::after {
  width: 100%;
}

.ffo-btn--lg {
  padding: 16px 32px;
  font-size: 17px;
}

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

.ffo-btn--white:hover {
  background-color: var(--ffo-neutral-100);
  border-color: var(--ffo-neutral-100);
  color: var(--ffo-dark);
}

.ffo-btn--outline {
  background-color: transparent;
  color: var(--ffo-white);
  border-color: rgba(255, 255, 255, 0.3);
}

.ffo-btn--outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--ffo-white);
}

/* Arrow icon for link buttons */
.ffo-btn__arrow {
  display: inline-block;
  width: 8px;
  height: 14px;
  flex-shrink: 0;
}

/* ----------------------------------------------------------------
   Grid helpers
   ---------------------------------------------------------------- */
.ffo-grid {
  display: grid;
  gap: 32px;
}

.ffo-grid--2 { grid-template-columns: repeat(2, 1fr); }
.ffo-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ffo-grid--4 { grid-template-columns: repeat(4, 1fr); }
.ffo-grid--5 { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 991px) {
  .ffo-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .ffo-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .ffo-grid--5 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .ffo-grid--2,
  .ffo-grid--3,
  .ffo-grid--4,
  .ffo-grid--5 {
    grid-template-columns: 1fr;
  }
}

/* Two-column layout */
.ffo-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.ffo-split--40-60 {
  grid-template-columns: 2fr 3fr;
}

.ffo-split--reverse {
  direction: rtl;
}

.ffo-split--reverse > * {
  direction: ltr;
}

@media (max-width: 991px) {
  .ffo-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .ffo-split--reverse {
    direction: ltr;
  }
}

/* ----------------------------------------------------------------
   Card component
   ---------------------------------------------------------------- */
.ffo-card {
  display: flex;
  flex-direction: column;
  background: var(--ffo-white);
  border-radius: var(--ffo-radius-md);
  box-shadow: var(--ffo-shadow-card);
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.ffo-card:hover {
  box-shadow: var(--ffo-shadow-hover);
  transform: translateY(-4px);
}

.ffo-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.ffo-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 28px;
}

.ffo-card__text {
  color: var(--ffo-neutral-400);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
  margin-bottom: 20px;
}

.ffo-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-weight: 700;
  color: var(--ffo-dark);
  text-decoration: none;
  font-size: 16px;
  transition: color 0.2s ease;
}

.ffo-card__link:hover {
  color: var(--ffo-primary);
}

/* ----------------------------------------------------------------
   Icon box
   ---------------------------------------------------------------- */
.ffo-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: var(--ffo-radius-sm);
  background: var(--ffo-primary-light-12);
  flex-shrink: 0;
}

.ffo-icon-box img {
  width: 36px;
  height: 36px;
}

.ffo-icon-box--lg {
  width: 90px;
  height: 90px;
  padding: 20px;
}

.ffo-icon-box--lg img {
  width: 100%;
  height: 100%;
}

/* ----------------------------------------------------------------
   Hero section
   ---------------------------------------------------------------- */
.ffo-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: var(--ffo-white);
  padding-block: 100px;
}

.ffo-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(24, 31, 51, 0.4);
}

.ffo-hero__content {
  position: relative;
  z-index: 1;
}

.ffo-hero h1 {
  color: var(--ffo-white);
  max-width: 800px;
}

/* ----------------------------------------------------------------
   Stat box
   ---------------------------------------------------------------- */
.ffo-stat-box {
  background: var(--ffo-dark);
  color: var(--ffo-white);
  border-radius: var(--ffo-radius-md);
  padding: 40px 32px;
  text-align: center;
}

.ffo-stat-box__value {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 12px;
}

.ffo-stat-box__label {
  font-size: 20px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.3;
}

/* ----------------------------------------------------------------
   Feature row (product boxes)
   ---------------------------------------------------------------- */
.ffo-feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.ffo-feature-row--reverse {
  direction: rtl;
}

.ffo-feature-row--reverse > * {
  direction: ltr;
}

@media (max-width: 991px) {
  .ffo-feature-row {
    grid-template-columns: 1fr;
  }
  .ffo-feature-row--reverse {
    direction: ltr;
  }
}

.ffo-product-card {
  background: var(--ffo-white);
  border-radius: var(--ffo-radius-md);
  padding: 32px;
  text-align: center;
  box-shadow: var(--ffo-shadow-card);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.ffo-product-card:hover {
  box-shadow: var(--ffo-shadow-hover);
  transform: translateY(-4px);
}

.ffo-product-card__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.ffo-product-card__desc {
  font-size: 15px;
  font-weight: 500;
  color: var(--ffo-neutral-400);
  margin-bottom: 20px;
}

.ffo-product-card__image {
  margin-top: 24px;
}

/* ----------------------------------------------------------------
   Benefit item (icon + text grid)
   ---------------------------------------------------------------- */
.ffo-benefit {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.ffo-benefit__content h6 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.ffo-benefit__content p {
  font-size: clamp(16px, 1.2vw, 20px);
  color: var(--ffo-neutral-400);
  line-height: 1.4;
  margin: 0;
}

/* ----------------------------------------------------------------
   Checklist
   ---------------------------------------------------------------- */
.ffo-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ffo-checklist li {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ffo-checklist__icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background: var(--ffo-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ffo-checklist__icon img {
  width: 24px;
  height: 24px;
}

.ffo-checklist__text {
  font-size: 18px;
  font-weight: 500;
  color: var(--ffo-neutral-400);
}

/* ----------------------------------------------------------------
   Testimonial
   ---------------------------------------------------------------- */
.ffo-testimonial {
  background: var(--ffo-neutral-100);
  border-radius: var(--ffo-radius-xl);
  padding: 48px;
}

.ffo-testimonial__quote {
  font-size: 18px;
  line-height: 1.5;
  font-weight: 500;
  margin-bottom: 32px;
}

.ffo-testimonial__author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ffo-testimonial__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.ffo-testimonial__name {
  font-size: 18px;
  font-weight: 500;
}

.ffo-testimonial__role {
  font-size: 16px;
  font-weight: 500;
  color: var(--ffo-neutral-400);
}

.ffo-testimonial--card {
  background: var(--ffo-white);
  border: 1px solid var(--ffo-neutral-200);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
}

.ffo-testimonial__quote-mark {
  font-size: 64px;
  line-height: 0.5;
  font-weight: 700;
  color: var(--ffo-primary);
  margin-bottom: 4px;
}

.ffo-testimonial--card .ffo-testimonial__quote {
  font-size: 18px;
  font-style: italic;
  margin-bottom: 24px;
  flex-grow: 1;
}

.ffo-testimonial__headline {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--ffo-dark);
}

/* ----------------------------------------------------------------
   Video embed
   ---------------------------------------------------------------- */
.ffo-video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  border-radius: var(--ffo-radius-lg);
  overflow: hidden;
  cursor: pointer;
}

.ffo-video-wrapper img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ffo-video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.ffo-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(108, 170, 128, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: background 0.3s ease;
}

.ffo-video-wrapper:hover .ffo-play-btn {
  background: rgba(108, 170, 128, 0.7);
}

/* ----------------------------------------------------------------
   FAQ accordion (details/summary)
   ---------------------------------------------------------------- */
.ffo-faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ffo-faq details {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--ffo-radius-sm);
  overflow: hidden;
}

.ffo-faq summary {
  padding: 20px 24px;
  font-family: var(--ffo-font-primary);
  font-weight: 600;
  font-size: 18px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--ffo-white);
  transition: background 0.2s ease;
}

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

.ffo-faq summary::after {
  content: '+';
  font-size: 24px;
  font-weight: 400;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--ffo-primary);
}

.ffo-faq details[open] summary::after {
  content: '\2212';
}

.ffo-faq summary:hover {
  background: rgba(255, 255, 255, 0.05);
}

.ffo-faq .ffo-faq__answer {
  padding: 0 24px 20px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

/* ----------------------------------------------------------------
   Trust logos
   ---------------------------------------------------------------- */
.ffo-trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.ffo-trust-logos img {
  height: 32px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.ffo-trust-logos img:hover {
  opacity: 1;
}

/* ----------------------------------------------------------------
   Category card
   ---------------------------------------------------------------- */
.ffo-category-card {
  background: var(--ffo-white);
  border-radius: var(--ffo-radius-md);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--ffo-shadow-card);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.ffo-category-card:hover {
  box-shadow: var(--ffo-shadow-hover);
  transform: translateY(-4px);
}

.ffo-category-card__icon {
  width: 72px;
  height: 72px;
  border-radius: var(--ffo-radius-sm);
  background: var(--ffo-primary-light-12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.ffo-category-card__icon img {
  width: 36px;
  height: 36px;
}

.ffo-category-card h4 {
  margin-bottom: 16px;
}

.ffo-category-card p {
  color: var(--ffo-neutral-400);
  margin-bottom: 24px;
  flex-grow: 1;
}

/* ----------------------------------------------------------------
   Responsive section spacing
   ---------------------------------------------------------------- */
@media (max-width: 991px) {
  :root {
    --ffo-section-py: 72px;
    --ffo-section-py-lg: 88px;
  }
}

@media (max-width: 767px) {
  :root {
    --ffo-section-py: 56px;
    --ffo-section-py-lg: 64px;
  }

  .ffo-container {
    padding-inline: 16px;
  }
}

/* ----------------------------------------------------------------
   Spacing utilities
   ---------------------------------------------------------------- */
.ffo-mt-24 { margin-top: 24px; }
.ffo-mt-32 { margin-top: 32px; }
.ffo-mt-36 { margin-top: 36px; }
.ffo-mt-40 { margin-top: 40px; }
.ffo-mt-48 { margin-top: 48px; }
.ffo-mb-16 { margin-bottom: 16px; }
.ffo-mt-80 { margin-top: 80px; }

.ffo-pt-0 { padding-top: 0; }
.ffo-mx-auto { margin-inline: auto; }
.ffo-narrow { max-width: 900px; margin-inline: auto; }

/* ----------------------------------------------------------------
   Layout utilities
   ---------------------------------------------------------------- */
.ffo-flex-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.ffo-container--wide-padded {
  max-width: var(--ffo-container-wide);
  margin-inline: auto;
  padding-inline: 24px;
}

@media (max-width: 767px) {
  .ffo-container--wide-padded {
    padding-inline: 16px;
  }
}

/* ================================================================
   HEADER BAR
   Fresh design — positions header, logo, nav items, and CTA.
   ================================================================ */

.header {
  background-color: var(--ffo-white);
}

header.header {
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 999;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

header.header.sticky {
  position: fixed;
  box-shadow: 0 1px 12px rgba(24, 31, 51, 0.08);
}

/* Header inner layout — three-column: logo | nav | login+CTA */
.headerinnersection {
  gap: 40px;
}

/* Logo */
.headerleftcolumn {
  max-width: 112px;
  width: 100%;
  flex-shrink: 0;
}

.headerleftcolumn a {
  display: block;
}

.headerleftcolumn a img {
  width: 100%;
  height: auto;
  display: block;
}

/* Right column — fills remaining space */
.headerrightcolumn {
  flex: 1;
  min-width: 0;
}

/* Parent flex row: nav left, login+CTA right (three-column feel) */
.headerrightcolumnParent {
  justify-content: space-between;
  gap: 32px;
}

/* ----------------------------------------------------------------
   Navigation items
   ---------------------------------------------------------------- */
.megaMenuHeader a {
  text-decoration: none;
}

.lheadermenucolumn ul {
  align-items: center;
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2px;
}

.lheadermenucolumn ul li {
  position: relative;
}

.lheadermenucolumn ul li a {
  font-family: var(--ffo-font-primary);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ffo-dark);
  padding: 10px 20px;
  display: block;
  transition: color 0.2s ease;
}

.lheadermenucolumn ul li a:hover {
  color: var(--ffo-primary);
}

.megaMenuHeader .lheadermenucolumn ul li.hs-menu-depth-1 {
  cursor: pointer;
}

.megaMenuHeader .lheadermenucolumn ul li.hs-menu-depth-1.active > a {
  color: var(--ffo-primary);
}

/* Desktop dropdown chevrons */
@media (min-width: 1301px) {
  .lheadermenucolumn ul li.hs-item-has-children > a {
    padding-right: 30px;
  }

  .lheadermenucolumn ul li.hs-item-has-children > a::after {
    content: "";
    position: absolute;
    right: 10px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 2px solid var(--ffo-dark);
    border-bottom: 2px solid var(--ffo-dark);
    transform: translateY(-70%) rotate(45deg);
    transition: all 0.3s ease;
  }

  .lheadermenucolumn ul li.hs-item-has-children:hover > a::after,
  .lheadermenucolumn ul li.hs-item-has-children.active > a::after {
    border-color: var(--ffo-primary);
    transform: translateY(-30%) rotate(-135deg);
  }
}

/* ----------------------------------------------------------------
   Right column: Login + CTA
   ---------------------------------------------------------------- */
.rheadermenucolumn ul {
  align-items: center;
  display: flex;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.rheadermenucolumn ul li a {
  font-family: var(--ffo-font-primary);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

/* Login text link */
li.loginbtn a {
  color: var(--ffo-dark);
  transition: color 0.2s ease;
}

li.loginbtn a:hover {
  color: var(--ffo-primary);
}

/* CTA "Kostenloses Infogespräch" — always visible on desktop */
.header .Accountbtn {
  position: relative;
}

.header .Accountbtn a {
  background-color: var(--ffo-primary);
  border: 2px solid var(--ffo-primary);
  border-radius: var(--ffo-radius-lg);
  color: var(--ffo-white);
  display: inline-block;
  font-family: var(--ffo-font-primary);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  padding: 14px 28px;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.header .Accountbtn a:hover {
  background-color: #5e9a72;
  border-color: #5e9a72;
  color: var(--ffo-white);
}

/* Remove old template pseudo-elements on CTA */
.header .Accountbtn::after,
.header .Accountbtn a::before,
.header .Accountbtn a::after {
  display: none !important;
}

/* Cloned .rheadermenucolumn (JS inserts after .headerrightcolumninner on mobile) — hidden on desktop */
.header .headerrightcolumn > .rheadermenucolumn {
  display: none;
}

/* ================================================================
   MEGA MENU — FULL-WIDTH DROPDOWN
   Positioned relative to header.header (nearest positioned ancestor).
   ================================================================ */

/* Remove position: relative so children position against header */
.mega_menu_outer {
  position: static;
}

/* Hidden by default */
.megaMenuHeader .mega_menu_container {
  background-color: var(--ffo-white);
  border-top: 1px solid var(--ffo-neutral-200);
  box-shadow: 0 12px 40px rgba(24, 31, 51, 0.12);
  left: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  top: 100%;
  transform: translateY(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  visibility: hidden;
  width: 100%;
  z-index: 100;
}

/* Visible when JS toggles .show_mega_menu */
.megaMenuHeader .mega_menu_container.show_mega_menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

/* The .show_mega_menu_outer class toggled by JS — no longer needed for layout */
.mega_menu_outer.show_mega_menu_outer::after {
  display: none;
}

/* ----------------------------------------------------------------
   Mega menu inner: left brand panel + right nav grid
   Content centered with max-width matching .wrapper_lg so left
   panel icon aligns with the FELSFO logo above.
   ---------------------------------------------------------------- */

.mega_menu_parent {
  max-width: var(--ffo-container-full);
  margin-inline: auto;
  padding-inline: 15px;
  min-height: 260px;
  position: relative;
}

/* LEFT PANEL — Primary green brand sidebar (solid #6CAA80 per brand guidelines).
   padding-left: 0 aligns icon/text with FELSFO logo above. */
.megaMenuHeader .mega_menu_left {
  background-color: var(--ffo-primary) !important;
  flex: 0 0 300px !important;
  width: 300px !important;
  max-width: 340px !important;
  min-width: 260px;
  padding: 40px 32px 40px 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}

/* Extend green background to the left edge of the viewport */
.megaMenuHeader .mega_menu_left::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 100%;
  width: 50vw;
  background-color: var(--ffo-primary);
}

.megaMenuHeader .left_image {
  width: 56px;
  height: 56px;
  max-width: 56px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.megaMenuHeader .left_image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.megaMenuHeader .left_title h5 {
  color: var(--ffo-white);
  font-family: var(--ffo-font-primary);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.megaMenuHeader .left_text p {
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--ffo-font-primary);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  margin: 0;
}

/* RIGHT PANEL — Navigation grid */
.megaMenuHeader .mega_menu_right_parent {
  flex: 1 1 auto !important;
  width: auto !important;
  max-height: calc(100vh - 120px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 32px 40px;
}

.megaMenuHeader .mega_menu_right_parent::-webkit-scrollbar {
  width: 4px;
}

.megaMenuHeader .mega_menu_right_parent::-webkit-scrollbar-track {
  background: transparent;
}

.megaMenuHeader .mega_menu_right_parent::-webkit-scrollbar-thumb {
  background-color: var(--ffo-primary);
  border-radius: 4px;
}

/* Grid of navigation categories */
.megaMenuHeader .mega_menu_right {
  gap: 32px 48px;
}

/* ----------------------------------------------------------------
   Category items: icon + title + links
   ---------------------------------------------------------------- */

/* Each category block — icon on left, text on right (two-column grid) */
.megaMenuHeader .mega_menu_child {
  gap: 14px;
  width: calc(50% - 24px);
}

/* Icon container */
.megaMenuHeader .child_icon {
  background-color: var(--ffo-neutral-100) !important;
  border-radius: 10px;
  flex-shrink: 0;
  height: 48px;
  max-width: 48px;
  min-width: 48px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.megaMenuHeader .mega_menu_child:hover .child_icon {
  background-color: var(--ffo-primary-light-12) !important;
}

.megaMenuHeader .child_icon img {
  width: 100%;
  height: 100% !important;
  object-fit: contain;
}

/* Category heading — bold, primary green */
.megaMenuHeader .child_title_parent {
  gap: 8px;
  padding-bottom: 0;
}

.megaMenuHeader .child_title p {
  color: var(--ffo-primary);
  font-family: var(--ffo-font-primary);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

/* Links below the heading */
.megaMenuHeader .child_list_parent {
  margin-top: 6px;
}

.megaMenuHeader .child_list:not(:first-child) {
  padding-top: 5px;
}

.megaMenuHeader .child_list a {
  color: var(--ffo-dark);
  font-family: var(--ffo-font-primary);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  transition: color 0.15s ease;
}

.megaMenuHeader .child_list a:hover {
  color: var(--ffo-primary);
}

/* NEU tag */
.megaMenuHeader .new_tag {
  background-color: var(--ffo-dark);
  border-radius: 6px;
  padding: 3px 7px;
}

.megaMenuHeader .new_tag p {
  color: var(--ffo-white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  margin: 0;
  text-transform: uppercase;
}

/* ----------------------------------------------------------------
   Hamburger menu icon (hidden on desktop, shown at <=1300px)
   ---------------------------------------------------------------- */
a.expandMenu,
span.childExpand {
  display: none;
}

a.expandMenu {
  cursor: pointer;
  height: 36px;
  margin: 0 0 0 auto;
  padding: 3px;
  position: relative;
  right: 5px;
  width: 36px;
}

a.expandMenu i {
  display: block;
  position: relative;
  background: var(--ffo-dark);
  height: 2px;
  left: 0;
  margin: 6px 0;
  opacity: 1;
  transition: all 0.3s ease;
  width: 100%;
}

a.expandMenu i:first-child {
  margin: 0 0 0 auto;
  right: 0;
  width: 20px;
}

a.expandMenu i:nth-child(2) {
  margin: 6px 0 0 auto;
  width: 25px;
}

a.expandMenu.active i:first-child {
  position: relative;
  top: 8px;
  transform: rotate(135deg);
  width: 100%;
}

a.expandMenu.active i:nth-child(2) {
  left: -46px;
  opacity: 0;
  position: relative;
}

a.expandMenu.active i:last-child {
  position: relative;
  top: -8px;
  transform: rotate(-135deg);
}

.header.megaMenuHeader a.expandMenu {
  height: 36px;
  right: 0;
  width: 28px;
}

/* Fade animations (applied in mobile menu context) */
@keyframes fadeIn { 0% { opacity: 0; } 100% { opacity: 1; } }
@keyframes fadeOut { 0% { opacity: 1; } 100% { opacity: 0; } }

/* ================================================================
   FOOTER STRUCTURE
   Ported from module_Footer_Module_-_v2.min.css.
   Provides layout, social icons, newsletter, accordion behavior.
   ================================================================ */

footer.footer { padding: 126px 0; }

.footer-two-col-parent {
  border-bottom: 1px solid var(--ffo-neutral-200);
  padding-bottom: 66px;
}

.footer-two-col {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.footer-left-col { max-width: 244px; width: 100%; }
.footer-logo-content { max-width: 242px; width: 100%; }
.footer-logo-content img { height: 100%; object-fit: cover; width: 100%; }
.footer-logo-content svg { display: block; height: 100%; width: 100%; }
.footer-logo-content a { display: block; }

.footer-right-col {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1180px;
  width: 100%;
}
.footer-right-col .footer-right-col-wrap { width: fit-content; }
.footer-right-col-wrap .footer-right-col-menu-content:not(:first-child) { margin-top: 30px; }

.footer-right-col-title { padding-bottom: 20px; }
.footer-right-col-title p { font-size: 20px; }

.footer-right-col-menu ul { list-style-type: none; margin: 0; padding: 0; }
.footer-right-col-menu ul li a {
  color: var(--ffo-neutral-400);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  position: relative;
}
.footer-right-col-menu ul li a::before {
  background-color: rgba(108, 170, 128, 0.64);
  bottom: -5px;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  transition: all 0.4s ease;
  width: 0;
}
.footer-right-col-menu ul li a:hover::before { width: 100%; }
.footer-right-col-menu ul li + * { padding-top: 10px; }

/* Social media */
.footer-social-media-content { padding-top: 30px; }
.footer-social-media-content-title h6 {
  color: var(--ffo-dark);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}
.footer-social-media { display: flex; gap: 10px; padding-top: 25px; }
.footer-social-media-item {
  border-radius: 50%;
  height: 34px;
  max-width: 34px;
  overflow: hidden;
  width: 100%;
}
.footer-social-media-item a {
  align-items: center;
  background-color: var(--ffo-dark);
  display: flex;
  height: 100%;
  justify-content: center;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  width: 100%;
}
.footer-social-media-item a svg {
  display: block;
  height: 16px;
  width: 16px;
  fill: #fff;
  position: relative;
  transition: 0.5s;
  z-index: 3;
}
.footer-social-media-item a svg path { fill: #fff; }
.footer-social-media-item a::before {
  content: "";
  height: 100%;
  left: 0;
  position: absolute;
  top: 100%;
  transition: 0.5s;
  width: 100%;
  z-index: 2;
}
.footer-social-media-item a:hover::before { top: 0; }
.footer-social-media-item a:hover svg { fill: #fff; stroke: #fff; transform: rotateY(1turn); }

/* Social platform hover colors */
.footer-social-media-item:first-child a::before { background: #c4302b; }
.footer-social-media-item:nth-child(2) a::before { background: #1db954; }
.footer-social-media-item:nth-child(3) a::before { background: #00acee; }
.footer-social-media-item:nth-child(4) a::before { background: #0a66c2; }
.footer-social-media-item:nth-child(5) a::before {
  background: radial-gradient(circle farthest-corner at 35% 90%, #fec564, transparent 50%),
              radial-gradient(circle farthest-corner at 0 140%, #fec564, transparent 50%),
              radial-gradient(ellipse farthest-corner at 0 -25%, #5258cf, transparent 50%),
              radial-gradient(ellipse farthest-corner at 20% -50%, #5258cf, transparent 50%),
              radial-gradient(ellipse farthest-corner at 100% 0, #893dc2, transparent 50%),
              radial-gradient(ellipse farthest-corner at 60% -20%, #893dc2, transparent 50%),
              radial-gradient(ellipse farthest-corner at 100% 100%, #d9317a, transparent),
              linear-gradient(#6559ca, #bc318f 30%, #e33f5f 50%, #f77638 70%, #fec66d);
}

/* Trustpilot */
.footer-trust-pilot-content { padding-top: 35px; }
.footer-trust-pilot-content a { display: block; }
.footer-trust-pilot-content a img { height: 100%; width: 100%; }
.footer-trust-pilot-content a svg { display: block; height: 100%; width: 100%; }

/* Newsletter bottom section */
.footer-newsletter-content-parent { padding-top: 57px; }
.footer-newsletter-two-col {
  align-items: flex-start;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}
.footer-newsletter-left-col {
  align-items: center;
  display: flex;
  gap: 52px;
  height: auto;
  justify-content: space-between;
}
.footer-newsletter-logo { max-width: 64px; width: 100%; }
.footer-newsletter-logo a { display: block; }
.footer-newsletter-logo img,
.footer-newsletter-logo svg { display: block; height: 100%; object-fit: cover; width: 100%; }
.footer-newsletter-copyright { padding-top: 4px; }
.footer-newsletter-copyright p { font-size: 14px; }
.footer-newsletter-linking { display: flex; gap: 20px; }
.footer-newsletter-linking > div { line-height: 1; position: relative; }
.footer-newsletter-linking > div:not(:last-child)::before {
  background-color: var(--ffo-neutral-300);
  content: "";
  height: 60%;
  position: absolute;
  right: -11px;
  top: calc(50% + 1px);
  transform: translateY(-50%);
  width: 1px;
}
.footer-newsletter-link-item a { font-size: 14px; line-height: 1.4; }
.footer-newsletter-btm-content { padding-top: 52px; }
.footer-newsletter-btm-content p {
  color: var(--ffo-neutral-400);
  font-family: var(--ffo-font-primary);
  font-feature-settings: "case" on;
  font-size: 14px;
  line-height: 22px;
}

/* Newsletter form (HubSpot form embed) */
.footer-v2 .NewsletterTopFormArea form {
  display: flex;
  flex-wrap: wrap;
  position: relative;
}
.footer-v2 .NewsletterTopFormArea form label { padding: 0; }
.footer-v2 .hs_email.hs-email.hs-fieldtype-text.field.hs-form-field {
  padding-right: 10px;
  position: relative;
  max-width: calc(100% - 173px);
  padding-bottom: 30px;
  width: 100%;
}
.footer-v2 .NewsletterTopFormArea form .hs_email .input input {
  margin: 0;
  max-width: unset;
  font-weight: 500;
}
.footer-v2 .NewsletterTopFormArea form .hs_submit {
  margin-top: 0 !important;
  position: unset;
}
.footer-v2 .NewsletterTopFormArea form .hs-fieldtype-booleancheckbox {
  order: 3;
  width: 100%;
}
.footer-v2 .NewsletterTopFormArea form .hs-fieldtype-booleancheckbox .input ul li label span { font-weight: 500; }
.footer-v2 .NewsletterTopFormArea .hs_error_rollup { display: none; }
.footer-v2 .hs_email.hs-email.hs-fieldtype-text.field.hs-form-field ul.no-list.hs-error-msgs.inputs-list { position: absolute; }
.footer-v2 .NewsletterTopFormArea form .hs-error-msgs label { color: red; margin-top: 10px; }
.NewsletterTopFormArea .submitted-message { color: var(--ffo-neutral-400) !important; }

/* ================================================================
   RESPONSIVE: 1600px
   ================================================================ */
@media (max-width: 1600px) {
  .wrapper, .wrapper_lg { max-width: 1470px; }
}

/* ================================================================
   RESPONSIVE: 1440px
   ================================================================ */
@media (max-width: 1440px) {
  .wrapper_lg { padding: 0 35px; }
  .wrapper { max-width: 1280px; }

  /* Mega menu — tighter spacing at 1440px */
  .megaMenuHeader .mega_menu_right_parent { padding: 28px 32px; }
  .megaMenuHeader .mega_menu_right { gap: 24px 36px; }
  .megaMenuHeader .mega_menu_left { flex: 0 0 260px !important; width: 260px !important; padding: 32px 24px 32px 0; }
  .megaMenuHeader .child_icon { height: 44px; max-width: 44px; min-width: 44px; padding: 8px; }
  .megaMenuHeader .mega_menu_child { gap: 12px; width: calc(50% - 18px); }
  .megaMenuHeader .mega_menu_left::before { background-color: var(--ffo-primary); }

  /* Footer */
  .footer-left-col { max-width: 200px; }
  .footer-social-media-item { height: 26px; max-width: 26px; }
  .footer-social-media-item a svg { height: 13px; width: 13px; }
  .footer-newsletter-left-col { align-items: flex-start; flex-direction: column; flex-wrap: wrap; gap: 20px; }
}

/* ================================================================
   RESPONSIVE: 1366px
   ================================================================ */
@media (max-width: 1366px) {
  .lheadermenucolumn ul li a { font-size: 16px; }
  .footer-right-col { max-width: 900px; }
}

/* ================================================================
   RESPONSIVE: 1300px — MOBILE MENU TRANSITION
   ================================================================ */
@media (max-width: 1300px) {
  /* Header restructure */
  header.megaMenuHeader { padding: 24px 0; }
  .header .headerinnersection { gap: 20px; }
  .header .headerrightcolumn {
    display: flex;
    flex-direction: row-reverse;
    max-width: max-content;
    flex: 0 0 auto;
  }
  .header .headerrightcolumn > .rheadermenucolumn {
    padding: 0;
    align-items: center;
    display: flex;
  }
  .header .headerrightcolumn > .rheadermenucolumn ul { flex-direction: row; }
  .header .headerrightcolumn > .rheadermenucolumn .loginbtn { display: none; }
  .header a.expandMenu { display: block; margin: 0 0 0 30px; }
  .header a.expandMenu i:first-child { margin: 6px 0 0 auto !important; }
  a.expandMenu i { margin: 5px 0 0 auto !important; width: 25px !important; }

  /* Mobile inner menu (hidden by default, opens on hamburger click) */
  .headerrightcolumninner {
    background: #fff;
    display: none;
    gap: 15px;
    left: 0;
    position: absolute;
    top: 100%;
    width: 100%;
  }
  .headerrightcolumninner,
  .lheadermenucolumn ul { align-items: flex-start; flex-direction: column; }
  .megaMenuHeader .headerrightcolumnParent {
    animation: fadeOut 0.7s;
    background-color: #fff;
    display: flex !important;
    flex-direction: column;
    height: calc(100% - 84px);
    overflow-y: scroll;
    position: fixed;
    width: 100%;
  }
  .megaMenuHeader .headerrightcolumnParent.animation { animation: fadeIn 0.7s; }
  .megaMenuHeader .headerrightcolumninner { height: 100vh; }
  .megaMenuHeader .wrapper_lg { padding: 0 30px 0 35px; }

  /* Left menu column */
  .lheadermenucolumn { padding: 0; }
  .megaMenuHeader .lheadermenucolumn {
    height: calc(100vh - 186px);
    overflow-y: scroll;
    width: 100%;
  }
  .megaMenuHeader .lheadermenucolumn::-webkit-scrollbar,
  .megaMenuHeader .lheadermenucolumn::-webkit-scrollbar-track,
  .megaMenuHeader .lheadermenucolumn::-webkit-scrollbar-thumb { display: none; }
  .megaMenuHeader .lheadermenucolumn ul { position: relative; }
  .megaMenuHeader .lheadermenucolumn ul::before {
    background: rgba(24, 31, 51, 0.1);
    content: "";
    height: 0.1px;
    left: 0;
    position: absolute;
    bottom: 0;
    width: 100%;
  }
  .megaMenuHeader .lheadermenucolumn ul li.hs-menu-depth-1 {
    background-color: var(--ffo-neutral-100);
    padding: 21px 30px;
    position: relative;
    width: 100%;
  }
  .megaMenuHeader .lheadermenucolumn ul li.hs-menu-depth-1::before {
    background: rgba(24, 31, 51, 0.1);
    content: "";
    height: 0.1px;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
  }
  /* Mobile chevron */
  .megaMenuHeader .lheadermenucolumn ul li.hs-menu-depth-1::after {
    border-right: 2px solid var(--ffo-dark);
    border-bottom: 2px solid var(--ffo-dark);
    content: "";
    height: 8px;
    width: 8px;
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-70%) rotate(45deg);
    transition: all 0.3s ease-in-out;
  }
  .megaMenuHeader .lheadermenucolumn ul li.hs-menu-depth-1.active > a,
  .megaMenuHeader .lheadermenucolumn ul li.hs-menu-depth-1:hover::after {
    color: var(--ffo-primary);
  }
  .megaMenuHeader .lheadermenucolumn ul li.hs-menu-depth-1.active::after {
    border-color: var(--ffo-primary);
    transform: translateY(-30%) rotate(-135deg);
  }
  .megaMenuHeader .lheadermenucolumn ul li a,
  .megaMenuHeader .lheadermenucolumn ul li:not(:first-child) a { padding: 0; }
  .lheadermenucolumn ul li a { font-size: 20px; }

  /* Mega menu container — visible as accordion on mobile (JS moves them after their li) */
  .megaMenuHeader .mega_menu_container {
    border: none;
    border-top: none;
    box-shadow: none;
    max-width: 100%;
    opacity: 1;
    pointer-events: auto;
    position: static;
    transform: none;
    visibility: visible;
  }
  .megaMenuHeader .mega_menu_left { display: none; }
  .megaMenuHeader .mega_menu_right_parent {
    height: auto;
    max-height: calc(100vh - 324px);
    padding: 30px;
    position: relative;
  }
  .megaMenuHeader .mega_menu_right_parent::after {
    background-color: rgba(24, 31, 51, 0.1);
    content: "";
    height: 1px;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
  }
  .megaMenuHeader .mega_menu_right { gap: 30px 20px; }
  .megaMenuHeader .mega_menu_child { width: calc(50% - 10px); }
  .megaMenuHeader .child_list a,
  .megaMenuHeader .child_title p { font-size: 18px; }
  .megaMenuHeader .child_list { font-size: 18px; line-height: 1; }
  .megaMenuHeader .child_list:not(:first-child) { padding-top: 18px; }
  .megaMenuHeader .child_icon { height: 48px; max-width: 48px; min-width: 48px; padding: 10px; }

  /* Right menu column (mobile) */
  .megaMenuHeader .rheadermenucolumn { padding: 24px 30px; position: relative; width: 100%; }
  .megaMenuHeader .rheadermenucolumn ul { flex-direction: column-reverse; }
  .rheadermenucolumn ul { align-items: flex-start; flex-direction: column; gap: 15px; }
  .rheadermenucolumn { max-width: 100%; padding: 0 35px 20px; }
  .rheadermenucolumn ul li { width: 100%; }
  .rheadermenucolumn ul li:first-child a {
    background-color: var(--ffo-primary);
    border-radius: 4px;
    box-sizing: border-box !important;
    font-size: 20px;
    line-height: 1.2;
    padding: 15px 16px;
    text-align: center;
    width: 100%;
  }
  li.loginbtn span { display: inline-block; width: 100%; }

  /* CTA in mobile menu */
  .header .Accountbtn::after { display: none; }
  .header .Accountbtn a { font-size: 14px; min-width: unset; padding: 7px 10px; }
  .megaMenuHeader .headerrightcolumnParent .Accountbtn { display: block !important; }
  .megaMenuHeader .headerrightcolumnParent .Accountbtn a {
    display: flex;
    font-size: 20px !important;
    justify-content: center;
    line-height: 1.2;
    padding: 13.5px 20px;
  }
  .megaMenuHeader .headerrightcolumnParent .Accountbtn span { width: 100%; }
  .megaMenuHeader .headerrightcolumn .Accountbtn.d_none { display: none !important; }

  /* Containers at mobile */
  .wrapper { max-width: 90%; }
}

/* ================================================================
   RESPONSIVE: 1230px
   ================================================================ */
@media (max-width: 1230px) {
  .footer-right-col .footer-right-col-wrap { width: calc(25% - 60px); }
  .footer-left-col { max-width: 170px; }
  .wrapper { max-width: 100%; }
}

/* ================================================================
   RESPONSIVE: 1080px
   ================================================================ */
@media (max-width: 1080px) {
  .footer-two-col { align-items: center; flex-direction: column; gap: 50px; }
  .footer-right-col { max-width: 100%; }
  footer.footer { padding: 80px 0; }
  .footer-left-col { max-width: 250px; }
  .footer-trust-pilot-content { padding-top: 30px; }
  .footer-social-media-content { padding-top: 30px; }
  .footer-newsletter-two-col { align-items: center; flex-direction: column; gap: 40px; }
  .footer-social-media-item { height: 34px; max-width: 34px; }
  .footer-social-media-item a svg { height: 16px; width: 16px; }
  .footer-right-col .footer-right-col-wrap { width: calc(25% - 60px); }
}

/* ================================================================
   RESPONSIVE: 991px — FOOTER MOBILE ACCORDION
   ================================================================ */
@media (max-width: 991px) {
  footer.footer { padding: 37px 0; }
  .footer-two-col { align-items: flex-start; flex-direction: column; gap: 32px; }
  .footer-right-col .footer-right-col-wrap { width: 100%; }
  .footer-right-col-menu { display: none; }
  .footer-right-col-wrap .footer-right-col-menu-content:not(:first-child) { margin-top: 0; }
  .footer-right-col-title { padding-bottom: 0; }
  .footer-right-col-menu-content {
    border-bottom: 1px solid var(--ffo-neutral-200);
    padding: 0;
    position: relative;
  }
  .footer-right-col-title {
    cursor: pointer;
    padding: 14px 0;
    position: relative;
  }
  .footer-right-col-title::before {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0.5 0.48 9 5.71'%3E%3Cpath fill='%23191B1F' fill-rule='evenodd' d='M5.357 6.045a.5.5 0 0 1-.707 0l-4-4a.5.5 0 0 1 0-.707L1.357.63a.5.5 0 0 1 .707 0l2.94 2.939L7.944.63a.5.5 0 0 1 .706 0l.707.708a.5.5 0 0 1 0 .707z' clip-rule='evenodd' style='fill:%23191b1f;fill:color(display-p3 .099 .1063 .121);fill-opacity:1'/%3E%3C/svg%3E");
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: contain;
    content: "";
    height: 15px;
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.4s ease;
    width: 15px;
  }
  .active-wrap .footer-right-col-title::before {
    top: calc(50% - 7px);
    transform: rotate(180deg);
  }
  .footer-wrap-last-child .footer-right-col-menu-content:last-child { border-bottom: none; }
  .footer-two-col-parent { border-bottom: none; padding-bottom: 24px; }
  .footer-newsletter-content-parent { padding-top: 0; }
  .footer-newsletter-left-col { align-items: flex-start; flex-direction: column; gap: 14px; }
  .footer-logo-content { max-width: 141px; }
  .footer-left-col { max-width: 146px; }
  .footer-social-media-item { height: 20px; max-width: 20px; }
  .footer-social-media-item a svg { height: 16px; width: 9px; }
  .footer-social-media-content-title h6 { font-size: 12px; }
  .footer-social-media, .footer-social-media-content { padding-top: 10px; }

  /* Newsletter form responsive */
  .footer-v2 .hs_email.hs-email.hs-fieldtype-text.field.hs-form-field {
    max-width: 100%;
    padding-bottom: 0;
    padding-right: 0;
  }
  .footer-v2 .NewsletterTopFormArea form .hs_submit {
    display: block;
    max-width: 100% !important;
    padding-top: 9px;
    width: 100% !important;
  }
  .footer-v2 .NewsletterTopFormArea form .hs-fieldtype-booleancheckbox { order: unset; }
}

/* ================================================================
   RESPONSIVE: 767px
   ================================================================ */
@media (max-width: 767px) {
  .megaMenuHeader .mega_menu_child { gap: 10px; width: 100%; }
  .megaMenuHeader .child_icon { height: 44px; max-width: 44px; min-width: 44px; padding: 9px; }
  .megaMenuHeader .child_title p { font-size: 13px; }
  .megaMenuHeader .child_list a { font-size: 15px; }
  .footer-newsletter-btm-content p { font-size: 10px; line-height: 13px; }
  .footer-right-col-title p { font-size: 14px; }
  .footer-newsletter-link-item a { font-size: 10px; }
}

/* ================================================================
   RESPONSIVE: 480px
   ================================================================ */
@media (max-width: 480px) {
  .debug .headerleftcolumn a { width: 72px; }
  .debug a.expandMenu { margin: 0 0 0 15px; }
  .debug .wrapper_lg { padding: 0 30px; }
  .debug .Accountbtn a {
    display: inline-block;
    font-size: 12px;
    line-height: 1;
    min-width: unset;
    padding: 7px 10px;
  }
  .debug .Accountbtn span { display: inline-block; }
  a.expandMenu i { margin: 3px 0 0 auto !important; width: 19px !important; }
  .debug a.expandMenu i:first-child { margin: 6px 0 0 auto !important; }
  .debug a.expandMenu.active i:last-child { top: -4px; }
  .megaMenuHeader .lheadermenucolumn ul li a { font-size: 20px !important; }
  .footer-right-col .footer-right-col-wrap { width: 100%; }
}

/* ================================================================
   RESPONSIVE: 375px
   ================================================================ */
@media (max-width: 375px) {
  .header .wrapper_lg { padding: 0 15px; }
  .header .headerinnersection { gap: 20px; justify-content: flex-start; }
  .megaMenuHeader.header .headerinnersection { gap: 10px; }
  .megaMenuHeader.debug .headerleftcolumn a { width: 60px; }
  .megaMenuHeader.debug a.expandMenu { margin: 0; }
  .header.megaMenuHeader .headerinnersection { justify-content: space-between; }
}

/* ----------------------------------------------------------------
   Legacy icon containers (header/footer compatibility)
   ---------------------------------------------------------------- */

/* Mega menu icons: neutral bg on light sections, dark-tint on dark */
.child_icon {
  background-color: var(--ffo-neutral-100) !important;
  border-radius: 4px !important;
}
[data-theme="dark"] .child_icon {
  background-color: rgba(24, 31, 51, 0.5) !important;
}

/* List bullet icons: white bg so green stroke is visible */
span.listimg {
  background: var(--ffo-white) !important;
}

/* Category card icons */
.Categorycolboxlogo {
  background: var(--ffo-neutral-100) !important;
}

/* ----------------------------------------------------------------
   Footer overrides
   ---------------------------------------------------------------- */
.footer-right-col-title p {
  color: var(--ffo-dark);
}

.footer-right-col-menu {
  color: var(--ffo-neutral-400);
}

.footer-social-media-item a {
  background-color: var(--ffo-dark);
}

.footer-newsletter-copyright p,
.footer-newsletter-link-item a {
  color: var(--ffo-neutral-300);
}

/* Footer spacing overrides */
.footer-right-col-wrap .footer-right-col-menu-content:not(:first-child) { margin-top: 24px; }
.footer-right-col-wrap ul li + * { padding-top: 2px; }
.footer-right-col-title { padding-bottom: 8px; }
.footer-right-col-title p {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Footer link hover — color-only, no underline animation */
.footer-right-col-menu ul li a:before { display: none; }
.footer-right-col-menu ul li a {
  transition: color 0.15s ease;
}
.footer-right-col-menu ul li a:hover {
  color: var(--ffo-primary);
}

/* ----------------------------------------------------------------
   Footer newsletter form overrides
   ---------------------------------------------------------------- */
.NewsletterTopFormArea form label span { color: rgba(255, 255, 255, 100%) !important; }
.NewsletterTopFormArea form .hs_email .input input { border: 1px solid rgba(173, 177, 186, 100%) !important; color: rgba(24, 31, 51, 100%) !important; }
.NewsletterTopFormArea form .hs_email .input input:focus-visible { border-color: rgba(173, 177, 186, 100%) !important; outline-color: rgba(173, 177, 186, 100%) !important; }
.NewsletterTopFormArea form .input ::-webkit-input-placeholder { color: rgba(136, 141, 154, 100%) !important; }
.NewsletterTopFormArea form .input ::-moz-placeholder { color: rgba(136, 141, 154, 100%) !important; }
.NewsletterTopFormArea form .input :-ms-input-placeholder { color: rgba(136, 141, 154, 100%) !important; }
.NewsletterTopFormArea form .input ::placeholder { color: rgba(136, 141, 154, 100%) !important; }
.NewsletterTopFormArea form .hs-fieldtype-booleancheckbox .input ul li label span:before { background-color: rgba(255, 255, 255, 100%); border: 1px solid rgba(173, 177, 187, 100%) !important; }
.NewsletterTopFormArea .hs-form-booleancheckbox input:checked+span:before { background-color: rgba(255, 255, 255, 100%); border-color: #6CAA80; }
.NewsletterTopFormArea .hs-form-booleancheckbox input:checked+span:after { border-color: rgba(0, 0, 0, 100%); }
.NewsletterTopFormArea form .hs-button,
.NewsletterTopFormArea form input[type=submit] { color: rgba(255, 255, 255, 100%) !important; background-color: rgba(24, 31, 51, 100%); border-color: rgba(24, 31, 51, 100%) !important; }
.NewsletterTopFormArea form .hs-button:hover,
.NewsletterTopFormArea form input[type=submit]:hover { color: rgba(255, 255, 255, 100%) !important; background-color: rgba(0, 0, 0, 100%); border-color: rgba(0, 0, 0, 100%) !important; }
.NewsletterTopFormArea form .hs-fieldtype-booleancheckbox .input ul li label span { color: rgba(136, 141, 154, 100%) !important; }
.NewsletterTopFormArea form .hs_ich_stimme_der_speicherung_und_verarbeitung_meiner_personlichen_daten_durch_ride_capital_zu_ .input ul li a { color: rgba(108, 170, 128, 64%); }
.NewsletterTopFormArea form .hs-fieldtype-booleancheckbox .input ul li label span a { color: rgba(108, 170, 128, 64%); }
.NewsletterTopFormArea form .hs_submit .actions:after,
.NewsletterTopFormArea.custom_color form .hs_submit .actions:after { content: ''; background: linear-gradient(180deg, #181f33 35.94%, rgba(108, 170, 128, 12%) 99.97%, rgba(108, 170, 128, 12%) 99.98%, #F5F6F6 99.99%); }
.NewsletterTopFormArea form .hs_submit .actions:before,
.NewsletterTopFormArea.custom_color form .hs_submit .actions:before { background: #000; border: 1px solid #000; }
