/* CSS START */
.femstem-landing {
font-family: "Avenir", "Avenir Next", -apple-system, BlinkMacSystemFont, sans-serif;
font-weight: 400;
line-height: 1.6;
overflow-x: hidden;
background: #f2eee9;
padding: 12px 0;
/* Disable scroll-snap to allow free upward scrolling */
scroll-snap-type: none;
scroll-padding-top: 0;
scroll-behavior: smooth;
}

.femstem-landing * {
box-sizing: border-box;
}

.femstem-landing .femstem-section {
padding: 64px 0;
/* Each section fills entire viewport (Apple-style fullscreen) */
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
margin: 0 12px 12px;
/* Each section snaps to top of viewport (Apple-style stacking) */
}

.femstem-landing .femstem-section:last-child {
  margin-bottom: 0;
}

.femstem-landing .femstem-container {
max-width: 1080px;
margin: 0 auto;
padding: 0 24px 0 1.5cm;
/* Ensure text doesn't overflow section; content stays within bounds */
width: 100%;
max-height: none;
overflow-y: visible;
display: flex;
flex-direction: column;
justify-content: center;
text-align: left;
}

/* Section 2 split layout: text + image */
.femstem-landing .femstem-split {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.femstem-landing .femstem-image {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 112.5%;
}

.femstem-landing .femstem-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.femstem-landing .femstem-dark {
background: #7a001f;
color: #ffffff;
border-radius: 28px;
overflow: hidden;
}

/* Final section background image */
.femstem-landing .final-section {
  position: relative;
  background-color: transparent;
  background-image: none;
}

.femstem-landing .final-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("./MenSC.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: rotate(180deg);
  border-radius: inherit;
  z-index: 0;
}

.femstem-landing .final-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  border-radius: inherit;
  z-index: 1;
}

.femstem-landing .final-section .femstem-container {
  position: relative;
  z-index: 2;
}

.femstem-landing .femstem-light {
background: #ffffff;
color: #000000;
border-radius: 28px;
overflow: hidden;
}

.femstem-landing h1,
.femstem-landing h2,
.femstem-landing h3 {
font-weight: 600;
letter-spacing: -0.02em;
margin: 0 0 0.75rem;
}

/* Hero layout: ensure logo and title never overlap and remain in normal flow */
.hero-header {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  /* fixed baseline gap between logo and title; no negative margins */
  margin-bottom: 0.5cm;
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero-logo .logo-image {
  display: block;
  width: 150%;
  max-width: none;
  height: auto;
}

.hero-title {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title h1 {
  margin: 0; /* h1 stays in normal flow, no absolute positioning */
  padding-top: 0; /* spacing is controlled by .hero-logo margin-bottom */
}

/* Increase gap on small viewports if necessary to avoid overlap */
@media (max-width: 480px) {
  .hero-logo {
    margin-bottom: 1.0cm;
  }
  .hero-logo .logo-image {
    width: 150%;
    max-width: none;
  }
}

@media (min-width: 1024px) {
  .hero-logo .logo-image {
    width: 150%;
    max-width: none;
  }
}

.femstem-landing h1 {
font-size: 2.145rem;
}

.femstem-landing #hero h1 {
  width: 100%;
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(1.365rem, 1.853vw, 2.145rem);
  text-align: center;
}

@media (max-width: 768px) {
  .femstem-landing #hero h1 {
    width: 100%;
    max-width: 100%;
    font-size: clamp(1.17rem, 4.095vw, 1.56rem);
  }

  .femstem-landing #hero .femstem-container {
    text-align: center;
    align-items: center;
    padding-left: 24px;
    padding-right: 24px;
  }

  .femstem-landing .femstem-split {
    gap: 1.5rem;
  }

  .femstem-landing .femstem-image img {
    height: auto;
    object-fit: contain;
  }

  .femstem-landing .femstem-image {
    width: 100%;
  }
}

.femstem-landing h2 {
font-size: 2.4rem;
}

.femstem-landing h3 {
font-size: 1.875rem;
}

.femstem-landing p {
font-size: 1rem;
margin: 0 0 1rem;
max-width: 72ch;
}

/* Enlarge all non-hero section text by 50% */
.femstem-landing .femstem-section:not(#hero) p,
.femstem-landing .femstem-section:not(#hero) li,
.femstem-landing .femstem-section:not(#hero) .femstem-lead {
  font-size: 150%;
}

/* Enlarge all non-hero headings by 50% */
.femstem-landing .femstem-section:not(#hero) h2,
.femstem-landing .femstem-section:not(#hero) h3 {
  font-size: 225%;
}

.femstem-landing p:last-child {
margin-bottom: 0;
}

.femstem-landing .femstem-lead {
font-size: 1.125rem;
text-align: center;
margin-top: 0.6rem;
}

/* Spenderin hero: match spacing and size between H1 and lead */
.page-spenderin .hero-title h1 {
  margin-bottom: 0.4rem;
}

.page-spenderin .hero-title .femstem-lead {
  margin-top: 0;
  font-size: clamp(1.365rem, 1.853vw, 2.145rem);
}

.page-spenderin #hero h1 {
  font-size: clamp(1.365rem, 1.853vw, 2.145rem);
}

@media (max-width: 768px) {
  .page-spenderin #hero h1,
  .page-spenderin .hero-title .femstem-lead {
    font-size: clamp(1.17rem, 4.095vw, 1.56rem);
  }
}

.femstem-landing .femstem-steps {
margin: 16px 0 0;
padding-left: 0;
list-style-position: inside;
}

.femstem-landing .femstem-steps li {
margin: 0 0 0.75rem;
}

.femstem-landing .femstem-steps li:last-child {
margin-bottom: 0;
}

.femstem-landing .femstem-steps li::marker {
font-weight: 600;
}

/* Spenderin Ablauf: larger list markers, smaller explanations */
.page-spenderin #ablauf .femstem-steps {
  font-size: 100%;
}

.page-spenderin #ablauf .femstem-steps li p {
  font-size: 100%;
}

.femstem-landing .facts-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.femstem-landing .fact-item strong {
  display: block;
  margin-bottom: 0.1rem;
  font-size: 150%;
}

.femstem-landing .fact-item p {
  margin: 0;
}

.femstem-landing .section-3-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 1.5rem auto 0;
  border-radius: 16px;
}

.femstem-landing .section-4-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 1.5rem auto 0;
  border-radius: 28px;
}

.femstem-landing .section-facts-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 1.5rem auto 0;
  border-radius: 28px;
}

.femstem-landing a {
color: inherit;
}

.femstem-landing .femstem-btn {
display: inline-block;
margin-top: 1rem;
padding: 0.8rem 1.6rem;
border-radius: 999px;
text-decoration: none;
font-weight: 600;
color: #000000;
border: 2px solid transparent;
transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.femstem-landing .femstem-dark .femstem-btn {
background: #ffffff;
color: #000000;
border-color: #ffffff;
}

.femstem-landing .femstem-light .femstem-btn {
background: #7a001f;
color: #000000;
border-color: #7a001f;
}

.femstem-landing .femstem-btn:hover {
transform: translateY(-1px);
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.femstem-landing a[href="#partner"],
.femstem-landing a[href="./spenderin.html"],
.femstem-landing .femstem-btn[href="#partner"],
.femstem-landing .femstem-btn[href="./spenderin.html"] {
  color: #000000;
}

.femstem-landing a:focus-visible,
.femstem-landing button:focus-visible {
outline: 3px solid #f4c95d;
outline-offset: 3px;
}

.femstem-landing .femstem-cta-grid {
display: flex;
flex-direction: column;
gap: 1.5rem;
margin-top: 1.5rem;
}

.femstem-landing .femstem-cta-card {
padding: 24px;
border-radius: 16px;
border: 1px solid currentColor;
background: transparent;
}

/* Match final section heading style to CTA card headings */
.femstem-landing #cta .cta-heading,
.femstem-landing #cta .femstem-cta-card h3 {
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.femstem-landing .femstem-dark .femstem-cta-card {
background: rgba(255, 255, 255, 0.06);
border-color: rgba(255, 255, 255, 0.3);
}

.femstem-landing .femstem-cta-card p {
max-width: none;
}

@media (min-width: 768px) {
.femstem-landing .femstem-section {
padding: 80px 0;
margin: 0 12px 12px;
}

.femstem-landing #cta .cta-heading,
.femstem-landing #cta .femstem-cta-card h3 {
  font-size: 2.025rem;
}

.femstem-landing h1 {
font-size: 2.535rem;
}

.femstem-landing h2 {
font-size: 2.85rem;
}

.femstem-landing h3 {
font-size: 2.025rem;
}

.femstem-landing p {
font-size: 1.05rem;
}

.femstem-landing .femstem-lead {
font-size: 1.2rem;
}
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero-logo .logo-image {
    width: 150%;
    max-width: none;
  }
}

@media (min-width: 1024px) {
.femstem-landing .femstem-section {
padding: 96px 0;
margin: 0 12px 12px;
}

.femstem-landing .femstem-container {
padding: 0 56px;
}

.femstem-landing h1 {
font-size: 2.925rem;
}

.femstem-landing h2 {
font-size: 3.15rem;
}

.femstem-landing .femstem-cta-grid {
flex-direction: row;
gap: 2rem;
}

.femstem-landing .femstem-cta-card {
padding: 32px;
flex: 1;
}
}

@media (min-width: 1024px) {
  .femstem-landing #cta .cta-heading,
  .femstem-landing #cta .femstem-cta-card h3 {
    font-size: 2.025rem;
  }
}

@media (max-width: 480px) {
  .femstem-landing .femstem-section {
    margin: 0 8px 8px;
  }

  .femstem-landing .femstem-dark {
    border-radius: 20px;
  }

  .femstem-landing .femstem-light {
    border-radius: 20px;
  }
}
.femstem-landing .femstem-logo {
  margin-bottom: 0.5cm;
}

/* Ensure h1 doesn't overlap the logo */
.femstem-landing h1 {
  margin-top: 0.2cm;
}

.femstem-landing .femstem-logo img {
  display: block;
  height: auto;
  width: 60%;
  max-width: 280px;
}

/* ===== SCROLL ANIMATIONS (CSS-only Reveal, Apple-like) ===== */
.femstem-landing .femstem-section {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 800ms ease-out, transform 800ms ease-out;
  will-change: opacity, transform;
}

/* Visible state via class (if applied) */
.femstem-landing .femstem-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Keep hero visible */
.femstem-landing #hero {
  opacity: 1;
  transform: translateY(0);
  transition: none;
}

@keyframes femstem-reveal {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* CSS-only scroll reveal using view timelines when supported */
@supports (animation-timeline: view()) {
  .femstem-landing .femstem-section {
    animation: femstem-reveal 800ms ease-out both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }

  .femstem-landing #hero {
    animation: none;
  }
}

/* Fallback: no scroll-linked animation support */
@supports not (animation-timeline: view()) {
  .femstem-landing .femstem-section {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Reduce motion for users who prefer it - instant appearance */
@media (prefers-reduced-motion: reduce) {
  .femstem-landing .femstem-section {
    opacity: 1;
    transform: translateY(0);
    transition: none;
    animation: none;
  }
}

/* Responsive animation adjustments */
@media (max-width: 768px) {
  .femstem-landing .femstem-section {
    transform: translateY(28px);
    transition: opacity 700ms ease-out, transform 700ms ease-out;
  }
}

/* Ensure each section maintains equal height across all breakpoints */
@media (min-height: 100vh) {
  .femstem-landing .femstem-section {
    min-height: 100vh;
  }
}
/* CSS END */
