/* --- GRUNDLAGEN & VARIABLEN --- */
:root {
  --primary-blue: #00529b;
  --gradient-start: #2a79d3;
  --gradient-start2: #144680;
  --gradient-end: #0d2642;
  --dark-bg: #0b0f19;
  --light-text: #f8f9fa;
  --secondary-text: #adb5bd;
  --dark-text: #12161f;
  --background-color: #ffffff;
  --section-bg-light: #f8f9fa;
  --border-color: #e2e8f0;
}

/* --- ALLGEMEINE STILE --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Poppins", sans-serif;
  background-color: var(--background-color);
  color: var(--dark-text);
  line-height: 1.7;
  font-weight: 300;
  position: relative;
  overflow-x: hidden; /* Verhindert horizontales Scrollen durch Animationen */
}
body[data-no-scroll] {
  overflow: hidden;
}
.container {
  max-width: 1700px;
  margin: 0 auto;
  padding: 0 40px;
  box-sizing: border-box;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* --- BARRIEREFREIHEIT: FOKUS-STIL --- */
:focus-visible {
  outline: 3px solid var(--gradient-start);
  outline-offset: 4px;
  border-radius: 4px;
}
.btn:focus-visible,
.funnel-btn:focus-visible {
  outline-offset: 2px;
}

/* --- HEADER & NAVIGATION --- */
header {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  position: fixed;
  width: 100vw;
  top: 0;
  left: 0;
  padding-left: 20px;
  padding-right: 50px;
  box-sizing: border-box;
}
.logo-img {
  height: 80px;
  width: auto;
  object-fit: contain;
}
nav a {
  text-decoration: none;
  color: var(--dark-text);
  margin-left: 40px;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  padding: 5px 0;
  white-space: nowrap; 
}

.navbar.scrolled {
  background-color: white;
  transition: background-color 0.3s ease;
}

nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-blue);
  transition: width 0.3s ease;
}
nav a:hover::after,
nav a:focus::after {
  width: 100%;
}
nav a:hover,
nav a:focus {
  color: var(--primary-blue);
}
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}
#mobile-nav {
  display: none;
}

/* --- BUTTON --- */
.btn {
  padding: 14px 32px;
  background: linear-gradient(
    90deg,
    var(--gradient-start),
    var(--gradient-end)
  );
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: none;
  cursor: pointer;
  display: inline-block;
}
.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(0, 82, 155, 0.25);
}
.btn:disabled {
  background: #5a6d80;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* --- HERO SECTION --- */
.hero {
  padding: 180px 0 160p 0;
  position: relative;
  overflow: hidden;
  padding-top: 15vh;
}
.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -10%;
  width: 700p;
  height: 700px;
  background: radial-gradient(
    circle,
    rgba(42, 121, 211, 0.15),
    rgba(42, 121, 211, 0) 70%
  );
  filter: blur(80px);
  z-index: -1;
  animation: moveAurora 15s infinite alternate;
}
@keyframes moveAurora {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(200px, 100px);
  }
}
.first_container {
  min-height: 70vh;
  align-items: center;
  max-width: 1700px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 60px;
}
.Landing_Theme_Image {
  width: 45%;
  height: auto;
  aspect-ratio: 1/1;
  max-width: 600px;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 24px;
  overflow: hidden;
}
.Landing_Theme_Image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-content {
  max-width: 50%;
}
.hero h1 {
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 25px;
}
.hero h1 .highlight {
  background: -webkit-linear-gradient(
    45deg,
    var(--gradient-start),
    var(--gradient-end)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.highlight {
  background: -webkit-linear-gradient(
    45deg,
    var(--gradient-start),
    var(--gradient-end)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.25rem;
  max-width: 650px;
  margin-bottom: 40px;
  color: #333d4b;
}

/* --- SCROLL ANIMATIONS --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1),
    transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Add delay for staggered animations */
.bento-card:nth-child(2),
.success-story.reverse {
  transition-delay: 0.1s;
}
.bento-card:nth-child(3) {
  transition-delay: 0.2s;
}

/* --- ALLGEMEINE SEKTIONSSTILE --- */
.section {
  padding: 120px 0;
}
.section-bg-light {
  background-color: var(--section-bg-light);
  box-shadow: 0px 0px 3px 0px lightgray;
}
.section-title {
  text-align: center;
  margin-bottom: 80px;
}
.section-title.left-align {
  text-align: left;
  margin-bottom: 40px;
}
.section-title h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
}
.section-title h2.h2-long-word {
  font-size: 2.6rem;
}
.section-title p {
  font-size: 1.15rem;
  color: #495057;
  max-width: 700px;
  margin: 0 auto;
}
.section-title.left-align p {
  margin: 0;
}

/* --- ZWEISPALTIGES LAYOUT (Standard) --- */
.two-columns {
  display: flex;
  align-items: center;
  gap: 80px;
}
.two-columns.reverse {
  flex-direction: row-reverse;
}
.column-text,
.column-image {
  flex: 1;
}
.column-image img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 15px 35px rgba(0, 82, 155, 0.08);
}

/* --- BENTO GRID --- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.bento-card {
  text-decoration: none;
  background: var(--background-color);
  padding: 40px;
  border-radius: 24px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid var(--border-color);
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}
.bento-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-blue);
}
.bento-card svg {
  width: 40px;
  height: 40px;
  stroke-width: 1.5;
  color: var(--primary-blue);
  margin-bottom: 20px;
}
.bento-card h3 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--primary-blue);
}
.bento-card p {
  font-size: 1.05rem;
  color: #495057;
}

.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background: linear-gradient(
    135deg,
    var(--gradient-start),
    var(--gradient-end)
  );
  color: white;
  border-radius: 50%;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-icon svg {
  width: 32px;
  height: 32px;
  stroke-width: 2px;
  fill: white;
  padding: 0;
  margin: 0;
}

.success-story {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 60px;
  margin-bottom: 100px;
  height: 80vh;
}
.success-story:last-of-type {
  margin-bottom: 0;
}
.success-story.reverse {
  flex-direction: row-reverse;
}

/* --- NEU: FLIP-KARTE & STECKBRief --- */
.flip-card {
  background-color: transparent;
  flex-basis: 35%;
  max-width: 450px;
  min-width: 300px;
  aspect-ratio: 1 / 1;
  perspective: 1200px;
  height: 90%;
  max-height: 45em;

  /* Hinzugefügt: Positionierung für mobile Buttons */
  position: relative;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  border-radius: 24px;
  box-shadow: 0 15px 35px rgba(0, 82, 155, 0.1);
}

.flip-card-inner.is-flipped {
  transform: rotateY(180deg);
}
.flip-card-front {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 24px;
  overflow: hidden;
}
.flip-card-back {
  position: absolute; /* Hinzugefügt für Button-Positionierung */
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--gradient-start),
    var(--gradient-end)
  );
  color: var(--light-text);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  box-sizing: border-box;
}

/* Styling für die Vorderseite (das Bild) */
.flip-card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Styling für die Rückseite (der Steckbrief) */
.flip-card-back {
  background: linear-gradient(
    135deg,
    var(--gradient-start),
    var(--gradient-end)
  );
  color: var(--light-text);
  transform: rotateY(180deg); /* Startet um 180 Grad gedreht */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  box-sizing: border-box;
}

.steckbrief-header {
  text-align: center;
  margin-bottom: 10px;
}

.steckbrief-header svg {
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
}

.steckbrief-header h4 {
  font-size: clamp(1em, 3vh, 2.5em);
  font-weight: 600;
  margin: 0;
}

.steckbrief-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  text-align: left;
  margin-bottom: 15px;
}

.steckbrief-list li {
  font-size: clamp(0.75em, 2vh, 1.5em);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.steckbrief-list li:last-child {
  border-bottom: none;
}

.steckbrief-list li strong {
  font-weight: 600;
  margin-right: 8px;
}

/* --- Ende der neuen Stile --- */

/* Originale Stile für den Textinhalt bleiben weitgehend gleich */
.success-story-content {
  flex-basis: 65%;
}

.success-story-content blockquote {
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.4;
  border-left: 4px solid var(--primary-blue);
  padding-left: 30px;
  margin: 0 0 30px 0;
  font-style: italic;
}

.success-story-content cite {
  font-weight: 600;
  font-size: 1.1rem;
  font-style: normal;
  display: block;
}

.success-story-content .problem {
  color: #6c757d;
  margin-top: 10px;
}

/* WICHTIG: Alte Stile entfernen oder auskommentieren */
/* Bitte stellen Sie sicher, dass diese alten Selektoren aus Ihrer CSS-Datei entfernt oder auskommentiert werden,
   da sie nun durch die .flip-card-Stile ersetzt wurden:

.success-story-img { ... }
.success-story-img img { ... }
.success-story-img:hover img { ... }

*/

/* --- SEV FEATURE-LISTE --- */
.feature-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  font-size: 1.05rem;
}
.feature-icon {
  width: 24px;
  height: 24px;
  color: var(--primary-blue);
  flex-shrink: 0;
  margin-top: 3px;
}
/* --- FAQ SEKTION (mit Animation) --- */
.faq-container {
  max-width: 1200px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border-color);
}

/* Trigger */
.faq-question {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 0;
  text-align: left;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
}
.faq-question span {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--dark-text);
  transition: color 0.3s ease;
}
.faq-question:hover span {
  color: var(--primary-blue);
}

/* Icon-Rotation */
.faq-icon {
  width: 24px;
  height: 24px;
  color: var(--primary-blue);
  transition: transform 0.3s ease;
}
.faq-question.open .faq-icon {
  transform: rotate(45deg);
}

/* Panel */
.faq-answer {
  padding: 0 0 25px 0;
  color: #495057;
  font-size: 1.05rem;
  overflow: hidden;
  max-height: 0; /* Start: geschlossen */
  opacity: 0; /* für weiches Ein-/Ausblenden */
  transform: translateY(-4px); /* minimaler Slide */
  /* Smooth Height + Fade + Slide */
  transition: max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease,
    transform 0.3s ease;
}

/* Wenn offen (per aria-expanded am Button): nur visuelle States */
.faq-question[aria-expanded="true"] + .faq-answer {
  opacity: 1;
  transform: translateY(0);
}

.Herausforderung_Text {
  display: flex;
  flex-direction: row;
}

/* Respect user: reduced motion */
@media (prefers-reduced-motion: reduce) {
  .faq-answer,
  .faq-icon,
  .faq-question span {
    transition: none !important;
  }
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1200px) {
  .section {
    padding: 0;
  }
  .hero-content {
    max-width: 100%;
    text-align: center;
  }
  .first_container {
    flex-direction: column;
    text-align: center;
    margin-top: 15vh;
  }
  .Landing_Theme_Image {
    width: 80%;
    margin-top: 40px;
  }
  .hero h1 {
    font-size: 3.5rem;
  }
  .hero p {
    margin: 0 auto 40px auto;
  }
  .about-container {
    grid-template-columns: 1fr;
  }
  .about-image-wrapper,
  .about-content-wrapper {
    grid-column: 1;
  }
  .about-image-wrapper {
    margin-bottom: -100px;
    z-index: 1;
  }
  .about-content-wrapper {
    padding-top: 140px;
    z-index: 2;
    position: relative;
  }
  .two-columns,
  .two-columns.reverse {
    flex-direction: column;
    gap: 40px;
  }
  .bento-grid {
  }
  .success-story,
  .success-story.reverse {
    flex-direction: row;
    gap: 40px;
  }
  .success-story-img,
  .success-story-content {
    flex-basis: 100%;
    max-width: 80%;
    margin: 0 auto;
  }

  .success-story-content {
    max-width: 100%;
  }

  .bento-card {
    width: 28vw;
  }

  .bento-card p {
    min-height: 15vh;
    font-size: clamp(0.8em, 1.5vw, 1.2em);
  }

  .bento-card h3 {
    font-size: clamp(1em, 2vw, 2.2em);
  }

  .flip-card {
    height: 65vh;
  }

  .success-story {
    height: fit-content;
  }

  .success-story.reverse {
    flex-direction: row-reverse;
  }

  .steckbrief-list li {
    font-size: clamp(0.7em, 1vh, 1.2em);
  }

  .steckbrief-header h4 {
    font-size: clamp(0.7em, 1vh, 1.2em);
  }

  .steckbrief-header {
    margin-bottom: 7.5px;
  }
}
@media (max-width: 992px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .section-title h2,
  .section-title h2.h2-long-word {
    font-size: 2.4rem;
  }
  .contact-layout-grid {
    flex-direction: column;
    text-align: center;
  }
  .contact-intro-text .section-title {
    text-align: center;
  }
}
/* --- RESPONSIVE DESIGN (MOBILE) --- */
/* ------------------------------------------------------------
   RESPONSIVE DESIGN — MOBILE (<= 768 px)
   Vollständig überarbeitetes Stylesheet für ein modernes Look‑and‑Feel
   ------------------------------------------------------------ */
@media (max-width: 768px) {
  .Herausforderung_Text {
    display: flex;
    flex-direction: column;
  }

  .navbar {
    position: absolute;
  }

  body {
    overflow-x: hidden;
  }
  /* ---------- Layout Helper ---------- */
  .container {
    padding-inline: 16px;
  }

  .section {
    padding-bottom: 0 !important;
  }

  .logo-img {
    height: 70px;
  }

  /* ---------- Navigation ---------- */
  #desktop-nav {
    display: none;
  }
  .mobile-nav-toggle {
    display: block;
    z-index: 1001;
  }
  #mobile-nav {
    position: fixed;
    inset: 0;
    background: var(--background-color);
    display: grid;
    place-items: center;
    gap: 48px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
  }
  #mobile-nav[data-visible] {
    transform: translateX(0);
  }
  #mobile-nav nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }
  #mobile-nav nav a {
    font-size: clamp(1.5rem, 4vw, 2rem);
  }

  /* ---------- Hero ---------- */
  .hero {
    padding: 96px 0 64px;
    text-align: center;
  }
  .first_container {
    flex-direction: column;
    align-items: center;
    gap: 48px;
  }
  .hero h1 {
    font-size: clamp(2rem, 7vw, 3rem);
  }
  .hero p {
    font-size: 1.125rem;
    max-width: 90%;
    margin-inline: auto;
  }
  .Landing_Theme_Image {
    width: 100%;
    max-width: 420px;
  }

  /* ---------- Section Basics ---------- */
  .section {
    padding: 64px 0;
  }
  .section-title h2 {
    font-size: clamp(1.75rem, 6vw, 2.25rem);
    word-break: keep-all;
  }

  /* ---------- Bento Grid ---------- */
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-card {
    width: 100%;
  }

  #sev {
    padding-bottom: 50px;
  }

  .bento-card h3 {
    font-size: clamp(1.1rem, 2.75vh, 1.4rem);
  }

  #ziele .container {
    margin: 0;
    padding-left: 5vw;
    max-width: 100vw;
    width: 100vw;
    box-sizing: border-box;
  }

  /* ---------- Success Stories (Make‑over) ---------- */
  .success-story,
  .success-story.reverse {
    flex-direction: column;
    gap: 32px;
    padding: 32px 24px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
    background: var(--background-color);
    margin-bottom: 48px;
    height: auto;
  }
  .success-story-img {
    max-width: 100%;
  }
  .success-story-img img {
    width: 100%;
    border-radius: 16px;
  }
  .success-story content {
    min-width: 0;
  }
  .success-story-content blockquote {
    font-size: 1rem;
    margin-bottom: 20px;
    width: 100%;
  }
  .success-story-content cite {
    font-size: 1rem;
  }

  .flip-card {
    pointer-events: none;
  }

  /* ---------- SEV Section (Mobile optimiert) ---------- */
  #sev .two-columns.reverse {
    flex-direction: column;
    gap: 40px;
  }
  #sev .column-image {
    order: -1; /* Bild zuerst */
  }
  #sev .column-image img {
    border-radius: 20px;
  }
  #sev .column-text .section-title h2 {
    font-size: clamp(1.6rem, 5vw, 2rem);
  }
  #sev .feature-list li {
    font-size: 1rem;
    line-height: 1.4;
  }

  .container {
    max-width: 90vw;
  }

  .success-story-content blockquote {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
    margin-bottom: 30px;
    width: 100%;
  }

  .column-text {
    width: 100%;
  }

  h2 {
    font-size: clamp(1em, 3vh, 4em);
    padding-bottom: 3vh;
  }

  .btn {
    margin-bottom: 2.5vh;
    font-size: clamp(0.7em, 1.25vh, 2em);
  }
}

/* --- NEU: MOBILER FLIP-BUTTON & DESKTOP PAGINATION --- */
.flip-btn-mobile {
  display: none; /* Auf Desktop standardmäßig ausblenden */
  position: absolute;
  z-index: 10;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  border: none;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn-show-data {
  /* Positioniert relativ zur .flip-card */
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  background-color: rgba(255, 255, 255, 0.95);
  color: var(--primary-blue);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  width: 80%;
}
.btn-show-data:hover {
  background-color: white;
  transform: translateX(-50%) scale(1.05);
}

.btn-hide-data {
  /* Positioniert relativ zur .flip-card-back */
  position: absolute; /* Sicherstellen, dass es absolut ist */
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  line-height: 40px;
  padding: 0;
  text-align: center;
}
.btn-hide-data:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

/* Desktop-Punkte: Unter der Karte zentriert */
.story-pagination {
  text-align: center;
  padding-top: 20px; /* Abstand zur Karte */
}
.story-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  background-color: #ccc;
  border-radius: 50%;
  margin: 0 8px;
  transition: all 0.3s ease;
  cursor: pointer;
}
.story-dot:hover {
  background-color: #aaa;
}
.story-dot.active {
  background-color: var(--primary-blue);
  transform: scale(1.2);
}

/* ... (andere Stile) ... */

/* --- RESPONSIVE DESIGN (MOBILE) --- */
/* ... (andere Media Queries) ... */
@media (max-width: 768px) {
  /* ... (andere mobile Stile) ... */

  /* ---------- Success Stories (Make‑over) ---------- */
  .success-story,
  .success-story.reverse {
    /* ... (bleibt gleich) ... */
    align-items: center; /* <-- DIESE ZEILE HINZUFÜGEN */
  }

  /* --- NEU: MOBILER FLIP-CARD STEUERUNG --- */
  .flip-card {
    pointer-events: auto;
    width: 100%; /* Volle Breite des Containers */
    max-width: 450px; /* Maximale Größe wie Desktop */
    height: auto; /* Höhe automatisch anpassen */
    aspect-ratio: auto; /* <-- DIESE ZEILE ZURÜCKSETZEN */
    min-height: 75vh !important;
  }

  .flip-card-inner{
    height: 75vh;
  }

  .flip-btn-mobile {
    display: inline-block; /* Buttons auf Mobilgeräten anzeigen */
  }

  /* WICHTIG: Hover-Effekt auf Mobilgeräten gibt es nicht, Klick steuert */

  /* Desktop-Punkte auf Mobilgeräten ausblenden */
  .story-pagination {
    display: none;
  }
}

/*
  Wohlstandsmeister Timeline Component
  - Extrahiert und mit 'wm-timeline-' Präfix versehen, 
    um CSS-Konflikte zu vermeiden.
*/

/* Basis-Stil für die Hauptkomponente */
.wm-timeline-component {
  /* Lokale CSS-Variablen, um :root-Abhängigkeit zu entfernen */
  --wm-grad-start: #2a79d3;
  --wm-grad-end: #0d2642;
  --wm-slate-50: #f8fafc;
  --wm-slate-200: #e2e8f0;
  --wm-slate-600: #475569;
  --wm-slate-900: #0f172a;
  --wm-white: #ffffff;

  /* Entspricht .section */
  padding-top: 4rem;
  padding-bottom: 4rem;

  /* Entspricht .section-light */
  background-color: var(--wm-slate-50);

  /* Für Schriftart-Konsistenz (aus body) */
  font-family: "Poppins", sans-serif; /* Stellen Sie sicher, dass diese Schriftart in Ihrem Projekt geladen wird */
  line-height: 1.7;
  font-weight: 300;
  box-sizing: border-box; /* Sicherstellen, dass Padding korrekt berechnet wird */
}

/* Stellt sicher, dass alle untergeordneten Elemente box-sizing erben */
.wm-timeline-component *,
.wm-timeline-component *::before,
.wm-timeline-component *::after {
  box-sizing: border-box;
}

/* Entspricht .container */
.wm-timeline-container-inner {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  overflow-x: hidden;
}

/* Entspricht .section-title */
.wm-timeline-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--wm-slate-900);
  text-align: center;
  margin-bottom: 1rem;
}

/* Entspricht .section-subtitle */
.wm-timeline-subtitle {
  font-size: 1.125rem;
  color: var(--wm-slate-600);
  max-width: 42rem;
  margin: 0 auto 3rem auto;
  text-align: center;
}

/* Entspricht .Number_Roadmap (falls Du es doch brauchst) */
.wm-timeline-gradient-text {
  background: -webkit-linear-gradient(
    45deg,
    var(--wm-grad-start),
    var(--wm-grad-end)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 500;
  font-size: clamp(1em, 1.25vw, 2em);
}

/* Entspricht .Farbverlauf */
.wm-timeline-gradient-bg {
  background: -webkit-linear-gradient(
    45deg,
    var(--wm-grad-start),
    var(--wm-grad-end)
  );
}

/* --- Timeline-Listen-Stile --- */

/* Entspricht .timeline-container */
.wm-timeline-list {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Die vertikale Linie */
.wm-timeline-list::before {
  content: "";
  position: absolute;
  top: 11%;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 75%;
  background-color: var(--wm-slate-200);
  background: -webkit-linear-gradient(
    0deg,
    var(--wm-grad-start),
    var(--wm-grad-end)
  );
  border-radius: 2px;
}

/* Entspricht .timeline-item */
.wm-timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
}

.wm-timeline-item:nth-child(odd) {
  align-self: flex-start;
  padding-left: 0;
}
.wm-timeline-item:nth-child(even) {
  align-self: flex-end;
  padding-right: 0;
}

/* Entspricht .timeline-content */
.wm-timeline-content {
  background-color: var(--wm-white);
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--wm-slate-200);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -2px rgba(0, 0, 0, 0.1);
  position: relative;
}

.wm-timeline-item:nth-child(odd) .wm-timeline-content {
  text-align: right;
}
.wm-timeline-item:nth-child(even) .wm-timeline-content {
  text-align: left;
}

/* Entspricht .timeline-icon */
.wm-timeline-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 9999px;
  background-color: var(--wm-white);
  border: 3px solid var(--wm-slate-200);
}

.wm-timeline-item:nth-child(odd) .wm-timeline-icon {
  right: -25px;
}
.wm-timeline-item:nth-child(even) .wm-timeline-icon {
  left: -25px;
}

/* Pfeile für die Content-Boxen */
.wm-timeline-content::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

.wm-timeline-item:nth-child(odd) .wm-timeline-content::after {
  right: -10px;
  border-left: 10px solid var(--wm-white);
}
.wm-timeline-item:nth-child(even) .wm-timeline-content::after {
  left: -10px;
  border-right: 10px solid var(--wm-white);
}

/* Stile für den Inhalt der Boxen (falls benötigt) */
.wm-timeline-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--wm-slate-900);
}
.wm-timeline-content p {
  color: var(--wm-slate-600);
}

/* --- Responsive Stile --- */
@media (max-width: 767px) {
  .wm-timeline-list::before {
    left: 25px;
    transform: translateX(0);
    /* Im Original-CSS wird sie hier ausgeblendet */
    display: none !important;
  }

  .wm-timeline-item {
    width: 100%;
    padding-left: 0; /* Zurückgesetzt für Mobile */
    padding-right: 0; /* Zurückgesetzt für Mobile */
    padding: 0; /* Original-Override */
    margin-bottom: 2vh;
  }

  .wm-timeline-item:nth-child(odd),
  .wm-timeline-item:nth-child(even) {
    align-self: auto;
  }

  .wm-timeline-item:nth-child(odd) .wm-timeline-content,
  .wm-timeline-item:nth-child(even) .wm-timeline-content {
    text-align: left;
  }

  .wm-timeline-icon {
    /* Im Original-CSS wird sie hier ausgeblendet */
    display: none !important;
  }

  .wm-timeline-content::after {
    /* Im Original-CSS wird sie hier ausgeblendet */
    display: none !important;
  }

  .wm-timeline-title {
    line-height: 98%;
  }
}

/* styles.css, Zeile 467 */
.steckbrief-header h4 {
  /* Alt: font-size: clamp(1em, 3vh, 2.5em); */
  font-size: clamp(1.1rem, 1.5vw, 1.4rem); /* <-- z.B. mit vw (Breite) */
  /* Oder einfach ein fester Wert: font-size: 1.4rem; */
}

/* styles.css, Zeile 478 */
.steckbrief-list li {
  /* Alt: font-size: clamp(0.75em, 2vh, 1.5em); */
  font-size: clamp(0.9rem, 1.1vw, 1rem); /* <-- z.B. mit vw (Breite) */
  /* Oder einfach ein fester Wert: font-size: 1rem; */
}


@media (max-width: 1200px) {
    nav a {
      margin-left: 20px; 
      font-size: 0.9rem; 
      white-space: nowrap;
  }
}