/* ==========================================================================
   SFL Component System — sundaysforlife.org
   Mobile-first · BEM · sfl-* prefix
   ========================================================================== */

/* ── Global Base Styles ───────────────────────────────────────────────── */

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

*:focus:not(:focus-visible) {
  outline: none;
}

*::selection {
  color: var(--sfl-color-white);
  background-color: var(--sfl-color-primary);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: var(--sfl-font-base);
  font-size: var(--sfl-text-base);
  font-weight: var(--sfl-weight-regular);
  line-height: var(--sfl-leading-normal);
  color: var(--sfl-color-black);
  background-color: var(--sfl-color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--sfl-font-header);
  color: var(--sfl-color-primary);
  text-transform: uppercase;
  font-weight: var(--sfl-weight-semibold);
  line-height: var(--sfl-leading-tight);
  margin-top: 0;
  margin-bottom: var(--sfl-space-4);
}

h1 { font-size: var(--sfl-text-3xl); }
h2 { font-size: var(--sfl-text-2xl); }
h3 { font-size: var(--sfl-text-xl); }
h4 { font-size: var(--sfl-text-lg); }
h5 { font-size: var(--sfl-text-base); }
h6 { font-size: var(--sfl-text-sm); }

a {
  color: var(--sfl-color-primary);
  text-decoration: none;
  transition: color var(--sfl-duration-fast) var(--sfl-ease-default);
}

a:hover {
  color: var(--sfl-color-primary-dark);
}

p, li {
  font-size: var(--sfl-text-base);
  line-height: var(--sfl-leading-normal);
}

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

.site-content ul,
.site-content ol {
  margin-left: var(--sfl-space-5);
}

.site-content ul li {
  list-style-type: disc;
}

.site-content ol li {
  list-style-type: decimal;
}

.site-content ul li::marker,
.site-content ol li::marker {
  color: var(--sfl-color-primary);
}

/* ── Animations ───────────────────────────────────────────────────────── */

@keyframes sfl-fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes sfl-fade-left {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes sfl-fade-right {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes sfl-scale-up {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes sfl-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

@keyframes sfl-scroll-hint {
  0%   { opacity: 1; transform: translateY(0); }
  50%  { opacity: 0.5; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

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

/* Scroll-triggered animation system */
[data-animate] {
  opacity: 0;
}

[data-animate].sfl-animated {
  animation-duration: 0.7s;
  animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  animation-fill-mode: both;
}

[data-animate="fade-up"].sfl-animated    { animation-name: sfl-fade-up; }
[data-animate="fade-left"].sfl-animated  { animation-name: sfl-fade-left; }
[data-animate="fade-right"].sfl-animated { animation-name: sfl-fade-right; }
[data-animate="scale-up"].sfl-animated   { animation-name: sfl-scale-up; }

@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* ── Hero Base ────────────────────────────────────────────────────────── */

.sfl-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  overflow: visible;
  box-sizing: border-box;
}

/* Prevent any gap between hero and next section */
.sfl-hero + * {
  margin-top: 0 !important;
}

.sfl-hero__content {
  position: relative;
  z-index: var(--sfl-z-above);
  text-align: center;
  padding: var(--sfl-space-6);
  max-width: 800px;
  width: 100%;
}

.sfl-hero__eyebrow {
  font-family: var(--sfl-font-mono);
  font-size: var(--sfl-text-xs);
  letter-spacing: 0.5em;
  text-transform: uppercase;
  margin-bottom: var(--sfl-space-6);
  opacity: 0.6;
}

.sfl-hero__headline {
  font-family: var(--sfl-font-header);
  font-weight: var(--sfl-weight-semibold);
  font-size: var(--sfl-text-5xl);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: var(--sfl-space-6);
}

.sfl-hero__subline {
  font-family: var(--sfl-font-base);
  font-size: var(--sfl-text-xl);
  line-height: var(--sfl-leading-snug);
  margin-bottom: var(--sfl-space-10);
  opacity: 0.8;
  max-width: 600px;
}

/* Detail text for secondary info */
.sfl-text-detail {
  font-size: var(--sfl-text-xs);
  line-height: var(--sfl-leading-normal);
  color: var(--sfl-color-grey-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.sfl-hero__counter {
  font-family: var(--sfl-font-header);
  font-weight: var(--sfl-weight-semibold);
  font-size: var(--sfl-text-4xl);
  line-height: 1;
  margin-bottom: var(--sfl-space-2);
}

.sfl-hero__counter-label {
  font-size: var(--sfl-text-sm);
  opacity: 0.7;
  margin-bottom: var(--sfl-space-6);
}

.sfl-hero__actions {
  display: flex;
  flex-direction: column;
  gap: var(--sfl-space-3);
  align-items: flex-start;
}

.sfl-hero__scroll {
  position: absolute;
  bottom: var(--sfl-space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--sfl-z-above);
  animation: sfl-scroll-hint 2s ease-in-out infinite;
  opacity: 0.6;
  cursor: pointer;
  background: none;
  border: none;
  padding: var(--sfl-space-2);
}

.sfl-hero__scroll svg {
  width: 24px;
  height: 24px;
}

@media (min-width: 576px) {
  .sfl-hero__actions {
    flex-direction: row;
    justify-content: flex-start;
  }

  .sfl-hero__headline {
    font-size: var(--sfl-text-4xl);
  }
}

/* ── Hero: Typography Variant ─────────────────────────────────────────── */

.sfl-hero--typo {
  background-color: var(--sfl-color-dark);
  color: var(--sfl-color-white);
  background-image: none;
}

/* Background watermark text - HUGE */
.sfl-hero--typo .sfl-hero__bg-text {
  position: absolute;
  right: -0.05em;
  bottom: -0.1em;
  font-family: var(--sfl-font-header);
  font-weight: 800;
  font-size: clamp(10rem, 30vw, 40rem);
  line-height: 0.7;
  color: rgba(255, 64, 180, 0.05);
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  z-index: var(--sfl-z-base);
  letter-spacing: -0.05em;
}

.sfl-hero--typo .sfl-hero__accent-line {
  display: none; /* Removed for cleaner look */
}

.sfl-hero--typo .sfl-hero__content {
  text-align: left;
  padding: var(--sfl-space-8) var(--sfl-space-6);
  max-width: 100%;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sfl-hero--typo .sfl-hero__live-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sfl-space-3);
  font-family: var(--sfl-font-mono);
  font-size: var(--sfl-text-xs);
  font-weight: var(--sfl-weight-regular);
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--sfl-color-primary);
  margin-bottom: var(--sfl-space-8);
}

.sfl-hero--typo .sfl-hero__live-dot {
  width: 8px;
  height: 8px;
  background: var(--sfl-color-primary);
  border-radius: var(--sfl-radius-full);
  box-shadow: 0 0 12px var(--sfl-color-primary);
  animation: sfl-pulse 1.5s ease-in-out infinite;
}

.sfl-hero--typo .sfl-hero__counter {
  font-family: var(--sfl-font-header);
  font-size: var(--sfl-text-hero);
  font-weight: 600;
  line-height: 0.85;
  color: var(--sfl-color-white);
  margin-bottom: var(--sfl-space-4);
  letter-spacing: -0.04em;
  animation: sfl-fade-up 1s var(--sfl-ease-out) 0.2s both;
}

.sfl-hero--typo .sfl-hero__counter-label--large {
  text-transform: uppercase;
  font-size: var(--sfl-text-2xl);
  line-height: 1.0;
  font-family: var(--sfl-font-header);
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--sfl-color-white);
  opacity: 0.9;
  margin-bottom: var(--sfl-space-12);
  animation: sfl-fade-up 1s var(--sfl-ease-out) 0.3s both;
}

.sfl-hero--typo .sfl-hero__stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sfl-space-8);
  margin-bottom: var(--sfl-space-16);
  animation: sfl-fade-up 1s var(--sfl-ease-out) 0.4s both;
  max-width: 900px;
}

.sfl-hero--typo .sfl-hero__stat-box {
  background: transparent;
  border-left: 1px solid rgba(255, 64, 180, 0.3);
  padding: 0 0 0 var(--sfl-space-6);
  border-radius: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.sfl-hero--typo .sfl-hero__stat-box:hover {
  transform: none;
  border-left-color: var(--sfl-color-primary);
  background: transparent;
}

.sfl-hero--typo .sfl-hero__stat-value {
  font-family: var(--sfl-font-header);
  font-weight: 600;
  font-size: var(--sfl-text-2xl);
  color: var(--sfl-color-white);
  margin-bottom: var(--sfl-space-1);
}

.sfl-hero--typo .sfl-hero__stat-label {
  font-size: var(--sfl-text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
}

.sfl-hero--typo .sfl-hero__actions {
  gap: var(--sfl-space-4);
  animation: sfl-fade-up 1s var(--sfl-ease-out) 0.5s both;
}

.sfl-hero--typo .sfl-btn--inverse {
  background: var(--sfl-color-primary);
  color: var(--sfl-color-white);
  border-color: var(--sfl-color-primary);
}

.sfl-hero--typo .sfl-btn--inverse:hover {
  background: var(--sfl-color-white);
  color: var(--sfl-color-primary);
  border-color: var(--sfl-color-white);
}

.sfl-hero--typo .sfl-hero__accent-bar {
  display: none;
}

.sfl-hero--typo .sfl-hero__scroll svg {
  stroke: var(--sfl-color-white);
}

@media (min-width: 576px) {
  .sfl-hero--typo .sfl-hero__content {
    max-width: 72%;
  }

  .sfl-hero--typo .sfl-hero__bg-text {
    font-size: 8vh;
  }
}

@media (min-width: 768px) {
  .sfl-hero--typo .sfl-hero__content {
    padding: var(--sfl-space-16) var(--sfl-space-12);
    max-width: 80%;
  }

  .sfl-hero--typo .sfl-hero__stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .sfl-hero--typo .sfl-hero__content {
    padding: var(--sfl-space-16) var(--sfl-space-12);
    max-width: 60%;
  }

  .sfl-hero--typo .sfl-hero__bg-text {
    font-size: 9vh;
  }

  .sfl-hero--typo .sfl-hero__accent-line {
    left: var(--sfl-space-12);
  }
}

/* ── Section ──────────────────────────────────────────────────────────── */

.sfl-section {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: var(--sfl-space-16) var(--sfl-space-6);
}

@media (min-width: 768px) {
  .sfl-section {
    padding: var(--sfl-space-20) var(--sfl-space-8);
  }
}

@media (min-width: 1200px) {
  .sfl-section {
    padding: var(--sfl-space-24) var(--sfl-space-10);
  }
}

.sfl-section__inner {
  max-width: var(--sfl-container-xl);
  margin: 0 auto;
}

.sfl-section__header {
  text-align: center;
  margin-bottom: var(--sfl-space-12);
}

@media (min-width: 768px) {
  .sfl-section__header {
    margin-bottom: var(--sfl-space-16);
  }
}

.sfl-section__title {
  font-family: var(--sfl-font-header);
  font-weight: var(--sfl-weight-semibold);
  font-size: var(--sfl-text-4xl);
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--sfl-color-black);
  margin-bottom: var(--sfl-space-6);
  text-transform: none;
}

.sfl-section__title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--sfl-color-primary);
  margin: var(--sfl-space-6) auto 0;
}

.sfl-section__subtitle {
  font-size: var(--sfl-text-base);
  color: var(--sfl-color-grey-500);
  max-width: 520px;
  margin: 0 auto;
  line-height: var(--sfl-leading-normal);
  opacity: 0.7;
}

/* Color variants */
.sfl-section--white   { background-color: var(--sfl-color-white); }
.sfl-section--light   { background-color: var(--sfl-color-primary-subtle); }
.sfl-section--dark    { background-color: var(--sfl-color-dark); color: var(--sfl-color-white); }
.sfl-section--gradient {
  background: linear-gradient(135deg, var(--sfl-color-primary) 0%, var(--sfl-color-primary-dark) 100%);
  color: var(--sfl-color-white);
}

/* Dark section overrides */
.sfl-section--dark .sfl-section__title {
  color: var(--sfl-color-white);
}

.sfl-section--dark .sfl-section__subtitle {
  color: rgba(255, 255, 255, 0.6);
}

/* Gradient section overrides */
.sfl-section--gradient .sfl-section__title {
  color: var(--sfl-color-white);
}

.sfl-section--gradient .sfl-section__title::after {
  background: rgba(255, 255, 255, 0.4);
}

.sfl-section--gradient .sfl-section__subtitle {
  color: rgba(255, 255, 255, 0.75);
}

/* ── Grid ─────────────────────────────────────────────────────────────── */

.sfl-grid {
  display: grid;
  gap: var(--sfl-space-6);
  grid-template-columns: 1fr;
}

@media (min-width: 576px) {
  .sfl-grid--2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .sfl-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 992px) {
  .sfl-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ── Pillar Cards ─────────────────────────────────────────────────────── */
/* Editorial left-aligned with oversized watermark numbers */

.sfl-pillar {
  position: relative;
  overflow: hidden;
  text-align: left;
  padding: var(--sfl-space-10) var(--sfl-space-8);
  background: var(--sfl-color-white);
  border-left: 6px solid var(--sfl-color-primary);
  border-radius: 0;
  box-shadow: none;
  border-top: 1px solid var(--sfl-color-grey-100);
  border-right: 1px solid var(--sfl-color-grey-100);
  border-bottom: 1px solid var(--sfl-color-grey-100);
  transition: transform var(--sfl-duration-normal) var(--sfl-ease-default),
              background var(--sfl-duration-normal) var(--sfl-ease-default);
}

.sfl-pillar:hover {
  transform: translateX(4px);
  background: var(--sfl-color-primary-bg);
}

.sfl-pillar__number {
  position: absolute;
  top: var(--sfl-space-2);
  right: var(--sfl-space-3);
  font-family: var(--sfl-font-header);
  font-size: var(--sfl-text-5xl);
  font-weight: 800;
  line-height: 1;
  color: rgba(0, 0, 0, 0.04);
  pointer-events: none;
  user-select: none;
}

.sfl-pillar__icon {
  width: 72px;
  height: 72px;
  margin: 0 0 var(--sfl-space-4);
}

.sfl-pillar__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sfl-pillar__title {
  font-family: var(--sfl-font-header);
  font-weight: var(--sfl-weight-semibold);
  font-size: var(--sfl-text-xl);
  margin-bottom: var(--sfl-space-3);
  color: var(--sfl-color-black);
}

.sfl-pillar__desc {
  font-size: var(--sfl-text-base);
  color: var(--sfl-color-grey-500);
  line-height: var(--sfl-leading-relaxed);
  margin-bottom: var(--sfl-space-5);
}

.sfl-pillar__link {
  display: inline-flex;
  align-items: center;
  gap: var(--sfl-space-1);
  color: var(--sfl-color-primary);
  font-weight: var(--sfl-weight-semibold);
  font-size: var(--sfl-text-sm);
  text-decoration: none;
  transition: gap var(--sfl-duration-fast) var(--sfl-ease-default);
}

.sfl-pillar__link:hover {
  gap: var(--sfl-space-2);
}

/* Dark-bg pillar variant */
.sfl-section--dark .sfl-pillar {
  background: rgba(255, 255, 255, 0.04);
  border-left-color: var(--sfl-color-primary);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.sfl-section--dark .sfl-pillar:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.sfl-section--dark .sfl-pillar__number {
  color: rgba(255, 255, 255, 0.05);
}

.sfl-section--dark .sfl-pillar__title {
  color: var(--sfl-color-white);
}

.sfl-section--dark .sfl-pillar__desc {
  color: rgba(255, 255, 255, 0.6);
}

.sfl-section--dark .sfl-pillar__link {
  color: var(--sfl-color-primary-light);
}

/* ── Timeline ─────────────────────────────────────────────────────────── */
/* Dramatic vertical line with oversized glowing dates */

.sfl-timeline {
  position: relative;
  max-width: 720px;
}

.sfl-timeline__line {
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(
    180deg,
    var(--sfl-color-primary) 0%,
    var(--sfl-color-primary-dark) 100%
  );
  border-radius: var(--sfl-radius-full);
}

/* On dark bg, give the line a glow */
.sfl-section--dark .sfl-timeline__line {
  box-shadow: 0 0 20px rgba(255, 64, 180, 0.2);
}

.sfl-timeline__item {
  position: relative;
  padding-left: var(--sfl-space-10);
  padding-bottom: var(--sfl-space-10);
}

.sfl-timeline__item:last-child {
  padding-bottom: 0;
}

@media (min-width: 768px) {
  .sfl-timeline__item {
    padding-left: var(--sfl-space-16);
    padding-bottom: var(--sfl-space-12);
  }
}

.sfl-timeline__marker {
  position: absolute;
  left: 0;
  top: 8px;
  width: 18px;
  height: 18px;
  background: var(--sfl-color-primary);
  border-radius: var(--sfl-radius-full);
  border: 3px solid var(--sfl-color-white);
  box-shadow: 0 0 0 3px var(--sfl-color-primary-bg);
}

.sfl-section--dark .sfl-timeline__marker {
  border-color: var(--sfl-color-dark);
  box-shadow: 0 0 0 3px rgba(255, 64, 180, 0.2);
}

/* Date — the visual anchor. MASSIVE on dark bg. */
.sfl-timeline__date {
  font-family: var(--sfl-font-header);
  font-weight: 800;
  font-size: var(--sfl-text-2xl);
  line-height: 1;
  color: var(--sfl-color-primary);
  margin-bottom: var(--sfl-space-2);
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .sfl-timeline__date {
    font-size: var(--sfl-text-4xl);
  }
}

.sfl-section--dark .sfl-timeline__date {
  text-shadow: 0 0 40px rgba(255, 64, 180, 0.3);
}

.sfl-timeline__heading {
  font-family: var(--sfl-font-header);
  font-weight: var(--sfl-weight-semibold);
  font-size: var(--sfl-text-xl);
  margin-bottom: var(--sfl-space-2);
  color: var(--sfl-color-black);
}

.sfl-section--dark .sfl-timeline__heading {
  color: var(--sfl-color-white);
}

.sfl-timeline__text {
  font-size: var(--sfl-text-base);
  line-height: var(--sfl-leading-relaxed);
  color: var(--sfl-color-grey-500);
  max-width: 520px;
}

.sfl-section--dark .sfl-timeline__text {
  color: rgba(255, 255, 255, 0.6);
}

/* Final item — Woche 12, the legal cutoff. Special emphasis. */
.sfl-timeline__item--final .sfl-timeline__marker {
  width: 22px;
  height: 22px;
  left: -2px;
  box-shadow:
    0 0 0 3px var(--sfl-color-primary-bg),
    0 0 0 8px rgba(255, 64, 180, 0.12);
}

.sfl-section--dark .sfl-timeline__item--final .sfl-timeline__marker {
  box-shadow:
    0 0 0 3px var(--sfl-color-dark),
    0 0 0 8px rgba(255, 64, 180, 0.25),
    0 0 20px rgba(255, 64, 180, 0.15);
}

.sfl-timeline__item--final .sfl-timeline__content {
  background: var(--sfl-color-primary-bg);
  padding: var(--sfl-space-5) var(--sfl-space-6);
  border-radius: var(--sfl-radius-md);
  border-left: 3px solid var(--sfl-color-primary);
}

.sfl-section--dark .sfl-timeline__item--final .sfl-timeline__content {
  background: rgba(255, 64, 180, 0.08);
  border-left-color: var(--sfl-color-primary);
}


/* ── Horizontal Timeline (Prenatal Development) ───────────────────────── */
/* Mobile-first: vertical layout. At 768px+ switches to horizontal.       */

.sfl-htimeline {
  position: relative;
  width: 100%;
  overflow: visible;
}

/* ── Danger banner ─────────────────────────────────────────────────────── */

.sfl-htimeline__danger-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sfl-space-2);
  background: rgba(231, 76, 60, 0.08);
  border: 1px solid rgba(231, 76, 60, 0.2);
  border-radius: var(--sfl-radius-md);
  padding: var(--sfl-space-2) var(--sfl-space-4);
  margin-bottom: var(--sfl-space-6);
  font-family: var(--sfl-font-base);
  font-size: var(--sfl-text-sm);
  font-weight: var(--sfl-weight-medium);
  color: var(--sfl-color-danger);
  text-align: center;
}

.sfl-htimeline__danger-icon {
  flex-shrink: 0;
  stroke: var(--sfl-color-danger);
}

/* ── Track (contains line + stages) ────────────────────────────────────── */

.sfl-htimeline__track {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sfl-space-8);
  padding-left: 36px;                     /* room for the vertical line + markers */
}

/* ── Connecting line (mobile: vertical) ────────────────────────────────── */

.sfl-htimeline__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 14px;                              /* center on the markers */
  width: 3px;
  background: repeating-linear-gradient(
    to bottom,
    var(--sfl-color-primary) 0,
    var(--sfl-color-primary) 6px,
    transparent 6px,
    transparent 12px
  );
  border-radius: var(--sfl-radius-full);
  z-index: 0;
}

/* ── Danger zone overlay on line (mobile: vertical, spans ~first 6 stages) */

.sfl-htimeline__danger-zone {
  display: none;                           /* handled via stage modifiers instead */
}

/* ── Stage ─────────────────────────────────────────────────────────────── */

.sfl-htimeline__stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  z-index: 1;
}

/* ── Marker dot (mobile: on the vertical line, left side) ──────────────── */

.sfl-htimeline__marker {
  position: absolute;
  left: -36px;                             /* align with the line's center */
  top: 36px;                               /* vertically center on the image */
  width: 14px;
  height: 14px;
  margin-left: 8px;                        /* fine-tune: 14px/2 = 7, line at 14px → offset */
  background: var(--sfl-color-primary);
  border: 3px solid var(--sfl-color-white);
  border-radius: var(--sfl-radius-full);
  box-shadow: 0 0 0 3px var(--sfl-color-primary-bg);
  z-index: 2;
  transition: transform var(--sfl-duration-normal) var(--sfl-ease-default),
              box-shadow var(--sfl-duration-normal) var(--sfl-ease-default);
}

.sfl-htimeline__stage--danger .sfl-htimeline__marker {
  background: var(--sfl-color-danger);
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.12);
}

/* ── Image ─────────────────────────────────────────────────────────────── */

.sfl-htimeline__image {
  width: 80px;
  height: 80px;
  border-radius: var(--sfl-radius-full);
  overflow: hidden;
  background: var(--sfl-color-grey-100);
  border: 3px solid var(--sfl-color-white);
  box-shadow: var(--sfl-shadow-sm);
  flex-shrink: 0;
  margin-bottom: var(--sfl-space-3);
}

.sfl-htimeline__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Label (week number) ───────────────────────────────────────────────── */

.sfl-htimeline__label {
  font-family: var(--sfl-font-header);
  font-weight: var(--sfl-weight-semibold);
  font-size: var(--sfl-text-sm);
  color: var(--sfl-color-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--sfl-space-1);
}

.sfl-htimeline__stage--danger .sfl-htimeline__label {
  color: var(--sfl-color-danger);
}

/* ── Description ───────────────────────────────────────────────────────── */

.sfl-htimeline__desc {
  font-family: var(--sfl-font-base);
  font-size: var(--sfl-text-sm);
  line-height: var(--sfl-leading-normal);
  color: var(--sfl-color-grey-500);
  max-width: 220px;
}

/* ── Badge (Beratungsregelung) ─────────────────────────────────────────── */

.sfl-htimeline__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sfl-space-1);
  margin-top: var(--sfl-space-2);
  padding: var(--sfl-space-1) var(--sfl-space-3);
  background: rgba(231, 76, 60, 0.08);
  border: 1px solid rgba(231, 76, 60, 0.2);
  border-radius: var(--sfl-radius-full);
  font-family: var(--sfl-font-base);
  font-size: var(--sfl-text-xs);
  font-weight: var(--sfl-weight-semibold);
  color: var(--sfl-color-danger);
}

.sfl-htimeline__badge-icon {
  flex-shrink: 0;
  stroke: var(--sfl-color-danger);
}

/* ── Cutoff note ───────────────────────────────────────────────────────── */

.sfl-htimeline__cutoff-note {
  margin-top: var(--sfl-space-2);
  font-family: var(--sfl-font-base);
  font-size: var(--sfl-text-xs);
  line-height: var(--sfl-leading-normal);
  color: var(--sfl-color-grey-400);
  font-style: italic;
  max-width: 220px;
}

/* ── Final stage emphasis ──────────────────────────────────────────────── */

.sfl-htimeline__stage--final .sfl-htimeline__marker {
  width: 18px;
  height: 18px;
  margin-left: 6px;
  box-shadow:
    0 0 0 3px rgba(231, 76, 60, 0.15),
    0 0 0 7px rgba(231, 76, 60, 0.06);
}

/* ==========================================================================
   Horizontal Timeline — Desktop (768px+)
   ========================================================================== */

@media (min-width: 768px) {
  .sfl-htimeline__track {
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
    padding-left: 0;
    padding-top: 0;
    justify-content: space-between;
  }

  /* ── Connecting line (desktop: horizontal, dotted) ───────────────────── */

  .sfl-htimeline__line {
    top: 48px;                             /* center on the 96px images */
    left: 0;
    right: 0;
    bottom: auto;
    width: auto;
    height: 3px;
    background: repeating-linear-gradient(
      to right,
      var(--sfl-color-primary) 0,
      var(--sfl-color-primary) 6px,
      transparent 6px,
      transparent 12px
    );
  }

  /* ── Stage (desktop) ─────────────────────────────────────────────────── */

  .sfl-htimeline__stage {
    flex: 1 1 0;
    align-items: center;
    text-align: center;
  }

  /* ── Marker dot (desktop: on the horizontal line) ────────────────────── */

  .sfl-htimeline__marker {
    position: relative;
    left: auto;
    top: auto;
    margin: 0 auto var(--sfl-space-3);
    /* The marker sits between image and label in the flow */
  }

  /* ── Image (desktop: larger) ─────────────────────────────────────────── */

  .sfl-htimeline__image {
    width: 96px;
    height: 96px;
    margin-bottom: 0;
  }

  /* ── Desc (desktop: centered) ────────────────────────────────────────── */

  .sfl-htimeline__desc {
    max-width: none;
  }

  .sfl-htimeline__cutoff-note {
    max-width: none;
  }

  /* Final stage marker — larger glow */
  .sfl-htimeline__stage--final .sfl-htimeline__marker {
    margin-left: auto;
    margin-right: auto;
  }
}

/* ── Large desktop refinement ──────────────────────────────────────────── */

@media (min-width: 1024px) {
  .sfl-htimeline__image {
    width: 110px;
    height: 110px;
  }

  .sfl-htimeline__line {
    top: 55px;                             /* re-center for 110px images */
  }

  .sfl-htimeline__desc {
    font-size: var(--sfl-text-base);
  }
}

/* ── Help Section ─────────────────────────────────────────────────────── */
/* Emotional, typography-driven. Dark title, pink accents only. */

.sfl-help {
  text-align: center;
  position: relative;
}

.sfl-help__deco {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(5rem, 12vw, 12rem);
  line-height: 0.5;
  color: var(--sfl-color-primary);
  opacity: 0.08;
  user-select: none;
  pointer-events: none;
  margin-bottom: var(--sfl-space-2);
}

.sfl-help__title {
  font-family: var(--sfl-font-header);
  font-weight: var(--sfl-weight-semibold);
  font-size: var(--sfl-text-4xl);
  line-height: var(--sfl-leading-tight);
  color: var(--sfl-color-black);
  margin-bottom: var(--sfl-space-4);
}

.sfl-help__text {
  font-size: var(--sfl-text-lg);
  color: var(--sfl-color-grey-500);
  max-width: 560px;
  margin: 0 auto var(--sfl-space-8);
  line-height: var(--sfl-leading-relaxed);
}

.sfl-help__hotline {
  display: block;
  font-family: var(--sfl-font-header);
  font-weight: var(--sfl-weight-semibold);
  font-size: var(--sfl-text-3xl);
  color: var(--sfl-color-primary);
  text-decoration: none;
  margin-bottom: var(--sfl-space-2);
  letter-spacing: 0.04em;
  transition: transform var(--sfl-duration-fast) var(--sfl-ease-default);
}

.sfl-help__hotline:hover {
  transform: scale(1.03);
}

.sfl-help__hotline-label {
  font-size: var(--sfl-text-sm);
  color: var(--sfl-color-grey-400);
  margin-bottom: var(--sfl-space-8);
}

.sfl-help__links {
  display: flex;
  flex-direction: column;
  gap: var(--sfl-space-3);
  align-items: center;
}

@media (min-width: 576px) {
  .sfl-help__links {
    flex-direction: row;
    justify-content: center;
  }
}

/* ── CTA Banner ───────────────────────────────────────────────────────── */

.sfl-cta {
  text-align: center;
  padding: var(--sfl-space-8) 0;
}

.sfl-cta__title {
  font-family: var(--sfl-font-header);
  font-weight: var(--sfl-weight-semibold);
  font-size: var(--sfl-text-4xl);
  line-height: var(--sfl-leading-tight);
  color: var(--sfl-color-white);
  margin-bottom: var(--sfl-space-4);
}

.sfl-cta__desc {
  font-size: var(--sfl-text-lg);
  color: var(--sfl-color-white);
  opacity: 0.85;
  margin-bottom: var(--sfl-space-8);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: var(--sfl-leading-relaxed);
}

.sfl-cta__actions {
  display: flex;
  flex-direction: column;
  gap: var(--sfl-space-3);
  align-items: center;
}

@media (min-width: 576px) {
  .sfl-cta__actions {
    flex-direction: row;
    justify-content: center;
  }
}

/* ── Buttons ──────────────────────────────────────────────────────────── */

.sfl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sfl-space-3);
  font-family: var(--sfl-font-header);
  font-weight: var(--sfl-weight-semibold);
  font-size: var(--sfl-text-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1;
  padding: var(--sfl-space-4) var(--sfl-space-8);
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  min-height: 48px;
  transition: all var(--sfl-duration-normal) var(--sfl-ease-default);
  white-space: nowrap;
}

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

.sfl-btn--primary:hover {
  background: var(--sfl-color-primary-dark);
  border-color: var(--sfl-color-primary-dark);
  box-shadow: var(--sfl-shadow-glow);
}

.sfl-btn--secondary {
  background: transparent;
  color: var(--sfl-color-primary);
  border-color: var(--sfl-color-primary);
}

.sfl-btn--secondary:hover {
  background: var(--sfl-color-primary);
  color: var(--sfl-color-white);
}

.sfl-btn--ghost {
  background: transparent;
  color: var(--sfl-color-grey-600);
  border-color: transparent;
}

.sfl-btn--ghost:hover {
  color: var(--sfl-color-primary);
  background: var(--sfl-color-primary-bg);
}

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

.sfl-btn--inverse:hover {
  background: transparent;
  color: var(--sfl-color-white);
  border-color: var(--sfl-color-white);
}

.sfl-btn--sm {
  font-size: var(--sfl-text-sm);
  padding: var(--sfl-space-2) var(--sfl-space-4);
  min-height: 36px;
}

.sfl-btn--lg {
  font-size: var(--sfl-text-lg);
  padding: var(--sfl-space-4) var(--sfl-space-8);
  min-height: 52px;
}

/* ── Stat Card ────────────────────────────────────────────────────────── */

.sfl-stat {
  text-align: center;
  padding: var(--sfl-space-8) var(--sfl-space-6);
  background: var(--sfl-color-white);
  border-radius: var(--sfl-radius-lg);
  box-shadow: var(--sfl-shadow-md);
  transition: transform var(--sfl-duration-normal) var(--sfl-ease-default),
              box-shadow var(--sfl-duration-normal) var(--sfl-ease-default);
}

.sfl-stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--sfl-shadow-lg);
}

.sfl-stat__value {
  font-family: var(--sfl-font-header);
  font-weight: var(--sfl-weight-semibold);
  font-size: var(--sfl-text-4xl);
  line-height: 1;
  color: var(--sfl-color-primary);
  margin-bottom: var(--sfl-space-2);
}

.sfl-stat__label {
  font-size: var(--sfl-text-base);
  color: var(--sfl-color-grey-500);
  line-height: var(--sfl-leading-normal);
}

/* ── Feature Card ─────────────────────────────────────────────────────── */

.sfl-feature {
  text-align: center;
  padding: var(--sfl-space-8) var(--sfl-space-6);
  border-radius: var(--sfl-radius-lg);
  background: var(--sfl-color-white);
  box-shadow: var(--sfl-shadow-sm);
  transition: transform var(--sfl-duration-normal) var(--sfl-ease-default),
              box-shadow var(--sfl-duration-normal) var(--sfl-ease-default);
}

.sfl-feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--sfl-shadow-md);
}

.sfl-feature__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--sfl-space-4);
}

.sfl-feature__icon img,
.sfl-feature__icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sfl-feature__title {
  font-family: var(--sfl-font-header);
  font-weight: var(--sfl-weight-medium);
  font-size: var(--sfl-text-xl);
  margin-bottom: var(--sfl-space-3);
}

.sfl-feature__desc {
  font-size: var(--sfl-text-base);
  color: var(--sfl-color-grey-500);
  line-height: var(--sfl-leading-relaxed);
}

/* ── Split Section ────────────────────────────────────────────────────── */

.sfl-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sfl-space-8);
  align-items: center;
}

.sfl-split__media img {
  width: 100%;
  height: auto;
  border-radius: var(--sfl-radius-lg);
}

.sfl-split__body h2,
.sfl-split__body h3 {
  font-family: var(--sfl-font-header);
  font-weight: var(--sfl-weight-semibold);
  margin-bottom: var(--sfl-space-4);
}

.sfl-split__body p {
  font-size: var(--sfl-text-base);
  line-height: var(--sfl-leading-relaxed);
  color: var(--sfl-color-grey-600);
  margin-bottom: var(--sfl-space-4);
}

@media (min-width: 768px) {
  .sfl-split {
    grid-template-columns: 1fr 1fr;
  }

  .sfl-split--reverse .sfl-split__media {
    order: 2;
  }

  .sfl-split--reverse .sfl-split__body {
    order: 1;
  }
}

/* ── Quote ────────────────────────────────────────────────────────────── */

.sfl-quote {
  position: relative;
  padding: var(--sfl-space-8);
  background: var(--sfl-color-white);
  border-radius: var(--sfl-radius-lg);
  box-shadow: var(--sfl-shadow-sm);
  border-left: 4px solid var(--sfl-color-primary);
}

.sfl-quote::before {
  content: '\201C';
  font-family: Georgia, serif;
  font-size: 4rem;
  line-height: 1;
  color: var(--sfl-color-primary);
  opacity: 0.3;
  position: absolute;
  top: var(--sfl-space-4);
  left: var(--sfl-space-4);
}

.sfl-quote__text {
  font-size: var(--sfl-text-lg);
  line-height: var(--sfl-leading-relaxed);
  font-style: italic;
  margin-bottom: var(--sfl-space-4);
  padding-top: var(--sfl-space-6);
}

.sfl-quote__author {
  font-weight: var(--sfl-weight-semibold);
  font-size: var(--sfl-text-sm);
  color: var(--sfl-color-grey-500);
}

/* ── Notice ───────────────────────────────────────────────────────────── */

.sfl-notice {
  padding: var(--sfl-space-4) var(--sfl-space-5);
  border-radius: var(--sfl-radius-md);
  border-left: 4px solid var(--sfl-color-primary);
  background: var(--sfl-color-primary-bg);
  font-size: var(--sfl-text-base);
  line-height: var(--sfl-leading-normal);
}

.sfl-notice__title {
  font-weight: var(--sfl-weight-semibold);
  margin-bottom: var(--sfl-space-1);
}

/* ── Badge ────────────────────────────────────────────────────────────── */

.sfl-badge {
  display: inline-flex;
  align-items: center;
  padding: var(--sfl-space-1) var(--sfl-space-3);
  border-radius: var(--sfl-radius-full);
  font-size: var(--sfl-text-xs);
  font-weight: var(--sfl-weight-semibold);
  line-height: 1;
  white-space: nowrap;
  background: var(--sfl-color-primary-subtle);
  color: var(--sfl-color-primary);
}

/* ── Newsletter ───────────────────────────────────────────────────────── */

.sfl-newsletter {
  max-width: 500px;
  margin: 0 auto;
}

.sfl-newsletter__form {
  display: flex;
  flex-direction: column;
  gap: var(--sfl-space-3);
}

.sfl-newsletter__input {
  font-family: var(--sfl-font-base);
  font-size: var(--sfl-text-base);
  padding: var(--sfl-space-3) var(--sfl-space-4);
  border: 2px solid var(--sfl-color-grey-200);
  border-radius: var(--sfl-radius-full);
  background: var(--sfl-color-white);
  transition: border-color var(--sfl-duration-fast) var(--sfl-ease-default);
  min-height: 44px;
}

.sfl-newsletter__input:focus {
  outline: none;
  border-color: var(--sfl-color-primary);
}

.sfl-newsletter__input::placeholder {
  color: var(--sfl-color-grey-400);
}

@media (min-width: 576px) {
  .sfl-newsletter__form {
    flex-direction: row;
  }

  .sfl-newsletter__input {
    flex: 1;
  }
}

/* Newsletter on dark bg */
.sfl-section--dark .sfl-newsletter__input {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--sfl-color-white);
}

.sfl-section--dark .sfl-newsletter__input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.sfl-section--dark .sfl-newsletter__input:focus {
  border-color: var(--sfl-color-primary);
  background: rgba(255, 255, 255, 0.1);
}

/* ── Footnotes ────────────────────────────────────────────────────────── */

/* Footnotes — reference-only, as small and unobtrusive as possible */
.sfl-section:has(.sfl-footnotes) {
  padding-top: var(--sfl-space-3);
  padding-bottom: var(--sfl-space-3);
}

.sfl-footnotes {
  border-top: 1px solid var(--sfl-color-grey-100);
  padding-top: var(--sfl-space-2);
}

.sfl-footnotes__title {
  font-family: var(--sfl-font-header);
  font-weight: var(--sfl-weight-medium);
  font-size: var(--sfl-text-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--sfl-color-grey-300);
  margin-bottom: 4px;
}

.sfl-footnotes__list {
  list-style: none;
  counter-reset: footnote;
  padding: 0;
  margin: 0;
}

.sfl-footnotes__item {
  counter-increment: footnote;
  font-size: var(--sfl-text-sm);
  line-height: 1.3;
  color: var(--sfl-color-grey-300);
  padding-left: 12px;
  position: relative;
  margin-bottom: 0;
}

.sfl-footnotes__item::before {
  content: counter(footnote);
  position: absolute;
  left: 0;
  font-weight: var(--sfl-weight-semibold);
  font-size: var(--sfl-text-sm);
  color: var(--sfl-color-grey-300);
}

.sfl-footnotes__item a {
  color: var(--sfl-color-grey-400);
  text-decoration: none;
}

.sfl-footnotes__item a:hover {
  color: var(--sfl-color-grey-500);
}

.sfl-footnotes__note {
  display: inline;
  font-style: italic;
  font-size: inherit;
  color: var(--sfl-color-grey-300);
}

/* Superscript footnote markers */
.sfl-fn {
  font-size: 0.6em;
  vertical-align: super;
  line-height: 0;
  color: var(--sfl-color-primary);
  text-decoration: none;
  font-weight: var(--sfl-weight-semibold);
  cursor: pointer;
}

.sfl-fn:hover {
  text-decoration: underline;
}

/* Legacy superscript footnote links (<a><sup>) */
sup a,
a[href="#source"] sup {
  font-size: 0.6em;
  line-height: 0;
  text-decoration: none;
  color: var(--sfl-color-primary);
  font-weight: var(--sfl-weight-semibold);
}

sup a:hover,
a[href="#source"] sup:hover {
  text-decoration: underline;
}

/* Legacy source block at page bottom */
#source {
  font-size: var(--sfl-text-sm) !important;
  line-height: 1.4 !important;
}

/* ── Social Sidebar Override ──────────────────────────────────────────── */

#social-media-menu {
  display: none !important;
}

/* ── Persistent Live Counter ──────────────────────────────────────────── */

.sfl-live-counter {
  position: fixed;
  bottom: var(--sfl-space-6);
  left: var(--sfl-space-6);
  background: var(--sfl-color-dark);
  color: var(--sfl-color-white);
  padding: var(--sfl-space-3) var(--sfl-space-4);
  border-radius: var(--sfl-radius-md);
  font-family: var(--sfl-font-base);
  z-index: var(--sfl-z-sticky);
  box-shadow: var(--sfl-shadow-lg);
  min-width: 160px;
  opacity: 0;
  transform: translateY(10px);
  animation: sfl-live-counter-in 0.8s var(--sfl-ease-out) 2s both;
}

@keyframes sfl-live-counter-in {
  to { opacity: 1; transform: translateY(0); }
}

.sfl-live-counter__value {
  font-family: var(--sfl-font-header);
  font-weight: var(--sfl-weight-semibold);
  font-size: var(--sfl-text-2xl);
  line-height: 1;
  color: var(--sfl-color-primary);
  display: block;
  margin-bottom: var(--sfl-space-1);
  transition: transform 0.15s var(--sfl-ease-spring);
}

.sfl-live-counter__value.sfl-tick {
  transform: scale(1.04);
}

.sfl-live-counter__label {
  font-size: var(--sfl-text-xs);
  color: rgba(255, 255, 255, 0.55);
  line-height: var(--sfl-leading-snug);
  display: block;
}

.sfl-live-counter__dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--sfl-color-primary);
  border-radius: var(--sfl-radius-full);
  margin-right: var(--sfl-space-1);
  animation: sfl-pulse 2.5s ease-in-out infinite;
  vertical-align: middle;
}

@media (max-width: 575px) {
  .sfl-live-counter {
    bottom: var(--sfl-space-3);
    left: var(--sfl-space-3);
    padding: var(--sfl-space-2) var(--sfl-space-3);
    min-width: auto;
  }

  .sfl-live-counter__value {
    font-size: var(--sfl-text-xl);
  }
}

/* ── Footer ───────────────────────────────────────────────────────────── */

.sfl-footer {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background: var(--sfl-color-dark);
  color: var(--sfl-color-white);
  padding: 0;
  font-size: var(--sfl-text-sm);
}

.sfl-footer__accent {
  height: 4px;
  background: linear-gradient(90deg, var(--sfl-color-primary), var(--sfl-color-primary-dark));
}

.sfl-footer__inner {
  max-width: var(--sfl-container-xl);
  margin: 0 auto;
  padding: var(--sfl-space-12) var(--sfl-space-6) var(--sfl-space-8);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sfl-space-10);
}

@media (min-width: 768px) {
  .sfl-footer__inner {
    grid-template-columns: 1fr 2fr;
    padding: var(--sfl-space-16) var(--sfl-space-8) var(--sfl-space-10);
  }
}

.sfl-footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--sfl-space-4);
}

.sfl-footer__logo {
  height: 32px;
  width: auto;
  object-fit: contain;
  object-position: left;
  opacity: 0.9;
}

.sfl-footer__address {
  font-style: normal;
  font-size: var(--sfl-text-sm);
  line-height: var(--sfl-leading-relaxed);
  color: rgba(255, 255, 255, 0.4);
}

.sfl-footer__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sfl-space-8);
}

@media (min-width: 576px) {
  .sfl-footer__nav {
    grid-template-columns: repeat(3, 1fr);
  }
}

.sfl-footer__heading {
  font-family: var(--sfl-font-header);
  font-weight: var(--sfl-weight-semibold);
  font-size: var(--sfl-text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: var(--sfl-space-3);
}

.sfl-footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sfl-space-2);
}

.sfl-footer__list li a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: var(--sfl-text-sm);
  transition: color var(--sfl-duration-fast) var(--sfl-ease-default);
}

.sfl-footer__list li a:hover {
  color: var(--sfl-color-primary);
}

.sfl-footer__bottom {
  max-width: var(--sfl-container-xl);
  margin: 0 auto;
  padding: var(--sfl-space-4) var(--sfl-space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sfl-footer__bottom p {
  font-size: var(--sfl-text-xs);
  color: rgba(255, 255, 255, 0.25);
  margin: 0;
}

/* Hide legacy site-footer */
.site-footer {
  display: none !important;
}


/* ── Navigation ───────────────────────────────────────────────────────── */

.sfl-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--sfl-color-white);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.07);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.sfl-nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.15) 60%,
    transparent 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: -1;
}

.sfl-nav.initial {
  background: transparent;
  box-shadow: none;
}

.sfl-nav.initial::before {
  opacity: 1;
}

/* Nav bar layout */
.sfl-nav__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--sfl-container-xl);
  margin: 0 auto;
  padding: 0 var(--sfl-space-4);
  height: 64px;
  transition: height 0.3s ease;
}

@media (min-width: 1024px) {
  .sfl-nav__bar {
    height: 80px;
    padding: 0 var(--sfl-space-6);
  }
}

/* Logo */
.sfl-nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  z-index: 10;
}

.sfl-nav__logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.sfl-nav__logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  transition: opacity 0.35s ease;
}

/* Show/hide logos based on state */
.sfl-nav__logo-img--white,
.sfl-nav__logo-img--color {
  position: absolute;
}

.sfl-nav__logo-img.active {
  position: relative;
}

.sfl-nav.initial .sfl-nav__logo-img--white {
  opacity: 1;
}
.sfl-nav.initial .sfl-nav__logo-img--color {
  opacity: 0;
}

/* Scrolled (non-initial) state */
.sfl-nav:not(.initial) .sfl-nav__logo-img--white {
  opacity: 0;
}
.sfl-nav:not(.initial) .sfl-nav__logo-img--color {
  opacity: 1;
}

@media (min-width: 1024px) {
  .sfl-nav__logo-img {
    height: 42px;
  }
}

/* Burger button */
.sfl-nav__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
  -webkit-tap-highlight-color: transparent;
}

.sfl-nav__burger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--sfl-color-dark);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* White burger on transparent nav */
.sfl-nav.initial .sfl-nav__burger-line {
  background: var(--sfl-color-white);
}

/* Open state X */
.sfl-nav__burger.is-open .sfl-nav__burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.sfl-nav__burger.is-open .sfl-nav__burger-line:nth-child(2) {
  opacity: 0;
}
.sfl-nav__burger.is-open .sfl-nav__burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hide burger on desktop */
@media (min-width: 1024px) {
  .sfl-nav__burger {
    display: none;
  }
}

/* Desktop menu container */
.sfl-nav__desktop {
  display: none;
}

@media (min-width: 1024px) {
  .sfl-nav__desktop {
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: auto;
  }
}

/* Navigation list */
.sfl-nav__list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

/* Nav items */
.sfl-nav__item {
  position: relative;
}

/* Nav links */
.sfl-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--sfl-color-black);
  font-family: var(--sfl-font-header);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 8px 10px;
  white-space: nowrap;
  transition: color 0.15s ease;
  position: relative;
}

@media (min-width: 1200px) {
  .sfl-nav__link {
    font-size: 14px;
    padding: 10px 14px;
  }
}

@media (min-width: 1400px) {
  .sfl-nav__link {
    font-size: 15px;
    padding: 12px 18px;
  }
}

/* Chevron icon */
.sfl-nav__chevron {
  width: 10px;
  height: 10px;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

/* Hover state: pink accent */
.sfl-nav__item:hover > .sfl-nav__link,
.sfl-nav__item--active > .sfl-nav__link {
  color: var(--sfl-color-primary);
}

.sfl-nav__item:hover > .sfl-nav__link .sfl-nav__chevron {
  transform: rotate(180deg);
}

/* Active underline indicator */
.sfl-nav__item--active > .sfl-nav__link::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 16px;
  right: 16px;
  height: 3px;
  background: var(--sfl-color-primary);
  border-radius: 2px;
}

/* White text on transparent nav (top-level links only) */
.sfl-nav.initial > .sfl-nav__bar .sfl-nav__list > .sfl-nav__item > .sfl-nav__link {
  color: var(--sfl-color-white);
}

.sfl-nav.initial > .sfl-nav__bar .sfl-nav__list > .sfl-nav__item:hover > .sfl-nav__link,
.sfl-nav.initial > .sfl-nav__bar .sfl-nav__list > .sfl-nav__item--active > .sfl-nav__link {
  color: var(--sfl-color-primary-light);
}

/* White chevrons in initial state (top-level only) */
.sfl-nav.initial > .sfl-nav__bar .sfl-nav__list > .sfl-nav__item > .sfl-nav__link .sfl-nav__chevron {
  stroke: var(--sfl-color-white);
}

.sfl-nav.initial > .sfl-nav__bar .sfl-nav__list > .sfl-nav__item:hover > .sfl-nav__link .sfl-nav__chevron {
  stroke: var(--sfl-color-primary-light);
}

/* ── Desktop Dropdown ─────────────────────────────────────────────────── */

.sfl-nav__dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: var(--sfl-color-white);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  pointer-events: none;
  z-index: 100;
}

/* Hover-triggered dropdown — only on hover-capable devices */
@media (hover: hover) and (pointer: fine) {
  .sfl-nav__item--has-children:hover > .sfl-nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
  }
}

/* For touch devices at desktop width: tap toggles via JS class */
.sfl-nav__item--has-children.sfl-nav__item--open > .sfl-nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* Submenu list */
.sfl-nav__sublist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sfl-nav__sublist .sfl-nav__item {
  position: relative;
}

.sfl-nav__sublist .sfl-nav__link {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.01em;
  color: var(--sfl-color-grey-600);
  transition: color 0.15s ease, background-color 0.15s ease;
  border-radius: 0;
}

.sfl-nav__sublist .sfl-nav__link:hover {
  color: var(--sfl-color-primary);
  background-color: var(--sfl-color-primary-bg);
}

.sfl-nav__sublist .sfl-nav__item--active > .sfl-nav__link {
  color: var(--sfl-color-primary);
}

.sfl-nav__sublist .sfl-nav__item--active > .sfl-nav__link::after {
  display: none;
}

/* Nested dropdown (level 3+) */
.sfl-nav__sublist .sfl-nav__dropdown {
  top: 0;
  left: 100%;
  transform: translateX(8px) translateY(0);
}

.sfl-nav__sublist .sfl-nav__item--has-children:hover > .sfl-nav__dropdown {
  transform: translateX(0) translateY(0);
}

.sfl-nav__sublist .sfl-nav__chevron {
  transform: rotate(-90deg);
  margin-left: auto;
}

.sfl-nav__sublist .sfl-nav__item--has-children:hover > .sfl-nav__link .sfl-nav__chevron {
  transform: rotate(-90deg);
}

/* ── Mobile Menu ──────────────────────────────────────────────────────── */

.sfl-nav__mobile {
  position: fixed;
  inset: 0;
  background: var(--sfl-color-white);
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 80px var(--sfl-space-6) var(--sfl-space-8);
}

.sfl-nav__mobile.is-open {
  transform: translateX(0);
}

.sfl-nav__mobile-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sfl-nav__mobile-item {
  border-bottom: 1px solid var(--sfl-color-grey-100, #f0f0f0);
}

.sfl-nav__mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  font-family: var(--sfl-font-header);
  font-weight: 600;
  font-size: 18px;
  color: var(--sfl-color-dark);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.sfl-nav__mobile-link:hover,
.sfl-nav__mobile-link:focus {
  color: var(--sfl-color-primary);
}

.sfl-nav__mobile-chevron {
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.sfl-nav__mobile-item--open > .sfl-nav__mobile-link .sfl-nav__mobile-chevron {
  transform: rotate(180deg);
}

/* Mobile submenus */
.sfl-nav__mobile-sub {
  list-style: none;
  margin: 0;
  padding: 0 0 8px 16px;
  display: none;
}

.sfl-nav__mobile-item--open > .sfl-nav__mobile-sub {
  display: block;
}

.sfl-nav__mobile-sub .sfl-nav__mobile-link {
  font-size: 15px;
  font-weight: 500;
  text-transform: none;
  padding: 10px 0;
  color: var(--sfl-color-grey-600);
}

.sfl-nav__mobile-sub .sfl-nav__mobile-link:hover {
  color: var(--sfl-color-primary);
}

/* Mobile CTA */
.sfl-nav__mobile-cta {
  margin-top: var(--sfl-space-6);
  padding-top: var(--sfl-space-4);
  border-top: 1px solid var(--sfl-color-grey-100, #f0f0f0);
}

/* ── Nav CTA Button ───────────────────────────────────────────────────── */

.sfl-nav__cta {
  display: none;
}

@media (min-width: 1024px) {
  .sfl-nav__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-family: var(--sfl-font-header);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--sfl-color-white);
    background: var(--sfl-color-primary);
    border-radius: 2px;
    border: 1px solid var(--sfl-color-primary);
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: var(--sfl-space-2);
  }

  .sfl-nav__cta:hover {
    background: var(--sfl-color-primary-dark, #e6009e);
    border-color: var(--sfl-color-primary-dark, #e6009e);
  }

  .sfl-nav.initial .sfl-nav__cta {
    background: transparent;
    border-color: var(--sfl-color-white);
    color: var(--sfl-color-white);
  }

  .sfl-nav.initial .sfl-nav__cta:hover {
    background: var(--sfl-color-white);
    color: var(--sfl-color-primary);
    border-color: var(--sfl-color-white);
  }

  .sfl-nav__cta--help {
    background: transparent;
    color: var(--sfl-color-primary);
    border-color: var(--sfl-color-primary);
  }
}

/* Note: main.css (old production CSS) is no longer loaded.
   These overrides are kept as safety nets in case old CSS leaks in. */
header nav.sfl-nav .navbar-wrap,
header nav.sfl-nav .menu-wrap {
  display: none !important;
}
/* ── Utilities ────────────────────────────────────────────────────────── */

.sfl-text-center { text-align: center; }
.sfl-text-left   { text-align: left; }
.sfl-text-right  { text-align: right; }
.sfl-mx-auto     { margin-left: auto; margin-right: auto; }

.sfl-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Reveal animation fallback - make elements visible by default */
.reveal {
  opacity: 1 !important;
  transform: none !important;
}

/* Reveal animation fallback - make elements visible by default */
.reveal {
  opacity: 1 !important;
  transform: none !important;
}
