:root {
  /* Animation-Variablen */
  --type-dur: 0.8s; /* Dauer des Tipp-Effekts */
  --type-gap: 0s; /* Outline startet 0.2s vor dem Text */
  --chars: 22; /* Zeichenanzahl: "Café Website erstellen" */
  --stroke-size: 5px; /* Stärke der weißen Outline hinter der H1 */
  --color-primary: #0b2a46; /* Marineblau */
  --color-accent: #e94a1b; /* Tiefes Orange */
  --color-bg: #eaeae9; /* Warm-Light */
  --color-text: #2e2e2e; /* Dunkelgrau */
  --color-white: #ffffff; /* Weiß */
  --color-accent-light: #e94b1be6; /* Helles Orange */
  --color-orange-inside: #ff6538;
  --color-light-text: #5b5b5b;

  /* Typografie */
  --font-heading: "Poppins", sans-serif;
  --font-body: "Inter", sans-serif;

  /* Buttons */
  --radius: 8px;
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  --c-selected-bg: #336796;
  --c-selected-fg: #eaeae9;

  --c-muted-bg: rgba(11, 42, 70, 0.3); /* 30% */
  --c-muted-fg: rgba(11, 42, 70, 0.5); /* 50% */
  --c-shadow: 0 18px 35px rgba(0, 0, 0, 0.18);

  /* Desktop-Maße */
  --detail-w: 600px;
  --item-w: 600px;
  --item-h: 60px;

  /* Mobile-Maße */
  --detail-w-m: 500px;
  --detail-h-m: 160px;
  --item-w-m: 350px;
  --item-h-m: 58px;

  --radius-xl: 28px;
  --radius-md: 20px;
  --gap: clamp(16px, 2vw, 28px);

  --nav-prev-bg: #0b2a46; /* Desktop: linke (graue) Kugel */
  --nav-next-bg: #0b2a46; /* Desktop: rechte (navy) Kugel */
  --nav-icon: #f6a693; /* Pfeil-Farbe (Peach) */
  --nav-shadow: 0 25px 45px rgba(0, 0, 0, 0.16);

  --dot-active: #4a4a4a;
  --dot-muted: rgba(74, 74, 74, 0.5);
}

h1 {
  font-size: clamp(2rem, 1.1179rem + 3.619vw, 4.375rem);
}

h2 {
  font-size: clamp(1.5rem, 0.8398rem + 2.8169vw, 3.375rem);
  color: var(--color-primary);
  letter-spacing: 6px;
}

h3 {
  font-size: clamp(1.25rem, 0.9714rem + 1.1429vw, 2rem);
  letter-spacing: 6px;
  color: var(--color-primary);
}

p {
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--color-primary);
}

p > strong {
  font-weight: 600;
}

.underLindeText {
  font-size: clamp(1.125rem, 0.9857rem + 0.5714vw, 1.5rem);
  font-weight: bold;
}

.containerTitleBlack {
  font-family: var(--font-body);
  font-size: clamp(1.125rem, 1.0786rem + 0.1905vw, 1.25rem);
  font-weight: 600;
}

.alignLeft {
  text-align: left;
}

.alignCenter {
  text-align: center;
}

.alignRight {
  text-align: right;
}

.col10W {
  width: calc((100% / 12) * 10);
}

/* ===== Layout-Grundgerüst ===== */
#ContainerMarginSetup {
  margin: 0 140px;
}
#ContainerCenterWidthSetup {
  margin: 0 auto;
  max-width: 1160px;
}
#Hero {
  margin-top: 120px;
}
#OverflowHidden {
  overflow-x: hidden; /* Verhindert horizontales Scrollen bei Animationen */
}
.heroContainer {
  position: relative;
}
.upperHero {
  position: relative;
}
.upperLeft {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ===== H1 (animiert) ===== */
.heroH1 {
  font-family: "Poppins", sans-serif;
  font-weight: bold;
  line-height: clamp(3.4375rem, 2.2768rem + 4.7619vw, 6.5625rem);
  color: #e94a1b;
  letter-spacing: clamp(0.75rem, 0.6107rem + 0.5714vw, 1.125rem);
  margin-bottom: 14px;
  position: relative; /* nötig für ::before */
  z-index: 1;
}

/* Outline/Background: tippt 0.2s vor dem Text ein */
.heroH1::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: transparent;
  -webkit-text-stroke: var(--stroke-size) #fff;
  text-stroke: var(--stroke-size) #fff;
  z-index: -1;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.04));
  pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) left / 0% 100% no-repeat;
  mask: linear-gradient(#000 0 0) left / 0% 100% no-repeat;
  animation: typeReveal var(--type-dur) steps(var(--chars)) forwards,
    rotateDown20 1s ease-out forwards;
  animation-delay: 0s;
  left: 2px;
  top: 2px;
}

/* Text tippt – beginnt 0.2s später als die Outline */
.heroH1-text {
  perspective: 1000px;
  display: inline-block;
  white-space: wrap;
  -webkit-mask: linear-gradient(#000 0 0) left/0% 100% no-repeat;
  mask: linear-gradient(#000 0 0) left/0% 100% no-repeat;
  animation: typeReveal var(--type-dur) steps(var(--chars)) forwards,
    rotateDown20 1s ease-out forwards;
  animation-delay: var(--type-gap);
}

/* ===== H2 (Unterzeile) ===== */
.heroH1-cursive {
  position: relative;
  perspective: 1000px;
  font-family: "inter", sans-serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.375rem, 0.7714rem + 2.4762vw, 3rem);
  line-height: clamp(2.625rem, 1.9286rem + 2.8571vw, 4.5rem);
  letter-spacing: clamp(0.1875rem, 0.0482rem + 0.5714vw, 0.5625rem);
  z-index: 1;
  max-width: 850px;
  opacity: 0;
  animation: fadeUp 0.7s ease-out forwards, rotateDown20 0.7s ease-out forwards;
  animation-delay: calc(var(--type-gap) + var(--type-dur) + 0.15s);
  filter: drop-shadow(1px 1px 3px rgb(0, 0, 0, 0.1));
}

/* ===== Hero Border (Rahmen) ===== */
.heroBorder {
  z-index: -1;
  width: 95vw;
  height: clamp(50rem, 47.6786rem + 9.5238vw, 56.25rem);
  position: absolute;
  border-top: 1px solid black;
  border-left: 1px solid black;
  border-right: 1px solid black;
  top: -5%;
  left: 50%;
  transform: translate(-50%, 20px) !important;
  opacity: 0;
  animation: fadeUp 0.7s ease-out forwards;
  animation-delay: calc(var(--type-gap) + var(--type-dur) + 0.15s);
}

/* ===== Hero Right (Bild) ===== */
.heroRight {
  position: absolute;
  /* 522px @1440, 200px @390  →  clamp(min, preferred, max) */
  width: clamp(200px, calc(30.6667vw + 80.4px), 522px);
  aspect-ratio: 522 / 548; /* ≈ 0.952:1 */
  top: 10%;
  right: -7%;
  opacity: 0;

  animation: fadeUp 0.7s ease-out forwards, rotateLeft 0.7s ease-out forwards;
  animation-delay: calc(var(--type-gap) + var(--type-dur) + 0.25s);
}

.heroRight > img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* oder 'cover' je nach Wunsch */
}

/* ===== Bullets / Checks ===== */
.heroCheckContainer {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 65px;
}
.heroCheck {
  display: flex;
  gap: 10px;
}

.heroCheck figcaption,
.lowerHero a {
  perspective: 1000px;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: clamp(1.125rem, 0.9857rem + 0.5714vw, 1.5rem);
  line-height: clamp(1.25rem, 0.7857rem + 1.9048vw, 2.5rem);
  color: var(--color-primary);
  margin-left: 0px;
}

/* Staffelung der Punkte nach dem Typing */
.heroCheckContainer figure {
  perspective: 1000px;
  opacity: 0;
  animation: fadeUp 0.6s ease-out forwards, rotateDown80 0.6s ease-out forwards;
}
.heroCheckContainer figure:nth-child(1) {
  animation-delay: calc(var(--type-gap) + var(--type-dur) + 0.25s);
}
.heroCheckContainer figure:nth-child(2) {
  animation-delay: calc(var(--type-gap) + var(--type-dur) + 0.4s);
}
.heroCheckContainer figure:nth-child(3) {
  animation-delay: calc(var(--type-gap) + var(--type-dur) + 0.55s);
}

.heroPriceInfo {
  opacity: 0;
  animation: fadeUp 0.7s ease-out forwards, rotateDown80 0.7s ease-out forwards;
  animation-delay: calc(var(--type-gap) + var(--type-dur) + 0.7s);
}

/* ===== Lower Hero (CTA + Linie) ===== */
.lowerHero {
  margin-top: 90px;
  padding-bottom: 60px;
  position: relative;
  z-index: 1;
  display: flex;
  gap: 5px;
  opacity: 0;
  animation: fadeUp 0.7s ease-out forwards;
  animation-delay: calc(var(--type-gap) + var(--type-dur) + 0.9s);
}

.triggerElement {
  transition: transform 0.3s ease;
  display: inline-flex;
  align-items: center;
}
.hoverElement:hover + .triggerElement,
.triggerElement:hover {
  transform: translateX(10px);
}

.hoverBorder {
  position: absolute;
  left: 0;
  top: 35px;
  width: 250px;
  height: 1px;
  background-color: black;
  opacity: 0;
  transition: width 0.3s ease, opacity 0.3s ease;
}
/* ~ statt +, damit das Element dazwischen egal ist */
.hoverElement:hover ~ .hoverBorder,
.triggerElement:hover ~ .hoverBorder {
  opacity: 1;
  width: 260px;
}

/* ===== Keyframes ===== */
@keyframes typeReveal {
  to {
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
  }
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  60% {
    opacity: 1;
    transform: translateY(-2px);
  }
  80% {
    transform: translateY(1px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rotateLeft {
  0% {
    transform: rotateY(-60deg);
  }
  100% {
    transform: rotateY(0deg);
  }
}

@keyframes rotateDown20 {
  0% {
    transform: rotateX(20deg);
  }
  100% {
    transform: rotateX(0deg);
  }
}

@keyframes rotateDown80 {
  0% {
    transform: rotateX(80deg);
  }
  100% {
    transform: rotateX(0deg);
  }
}

/* ===== Bewegungs-Reduktion ===== */
@media (prefers-reduced-motion: reduce) {
  .heroH1::before,
  .heroH1-text,
  .heroH1-cursive,
  .heroCheckContainer,
  .heroCheckContainer figure,
  .heroRight,
  .lowerHero,
  .heroBorder {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* 2. Warum Website Section */

#WarumWebsite {
  position: relative;
}

.orangeContainer {
  position: relative;
  width: 99vw;
  top: 0;
  height: clamp(6.25rem, 3.3482rem + 11.9048vw, 14.0625rem);
  background-color: rgb(233, 74, 27, 0.5);
  left: 50%;
  width: 99dvw;
  transform: translateX(-50%);
  z-index: -1;
  border-radius: 25px;
}

.containerRight {
  position: absolute;
  bottom: -40px;
  right: clamp(1.25rem, -1.5357rem + 11.4286vw, 8.75rem);
}

.containerLeft {
  position: absolute;
  bottom: -40px;
  left: clamp(1.25rem, -1.5357rem + 11.4286vw, 8.75rem);
}

.containerCenter {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%) !important;
}

.imageLeftTextRight {
  margin: 50px 0;
  display: grid;
  /* 2 Spalten: Bild links, Texte rechts (oben/unten) */
  grid-template-columns: minmax(260px, 1fr) minmax(0, 1.2fr);
  grid-template-areas:
    "img upper"
    "img lower";
  gap: clamp(16px, 2vw, 32px);
  align-items: start;
}

.imageLeft {
  grid-area: img;
}
.upperText {
  grid-area: upper;
  align-self: end;
}
.lowerText {
  grid-area: lower;
}

/* Optional: Lesebreite begrenzen */
.upperText p,
.lowerText p {
  max-width: 65ch;
}

.imageLeft img {
  width: 100%;
  height: auto;
  display: block;
  /* Bei Bedarf: feste Proportion und Zuschnitt */
  /* aspect-ratio: 3 / 4; object-fit: cover; */
  border-radius: 16px; /* optional */
}

/* 3. WebsiteUnverzichtbar */

#WebsiteUnverzichtbar {
  position: relative;
}

.blueContainer {
  position: absolute;
  width: 99vw;
  top: 0;
  height: 800px;
  background-color: rgb(11, 42, 70, 0.2);
  left: 50%;
  width: 99dvw;
  transform: translateX(-50%);
  z-index: -1;
  border-radius: 25px;
}

.h2Margin {
  margin-bottom: 20px;
  padding-top: 40px;
}

/* ===== Basis (gemeinsam für 2D & 3D) ===== */
.kwd-carousel {
  --card-w: 300px;
  --card-h: 200px;
  --radius: 25px;
  --gap: 50px;
  --far-gap: 30px;
  /* Abstand zwischen Karten */
  --shadow: 0 5px 35px rgba(0, 0, 0, 0.75);
  --rot-near: 10deg;
  /* links/rechts */
  --rot-far: 20deg;
  /* äußerste */
  --offset-near-y: 35px;
  /* NEU: vertikal (außen) */
  --offset-far-y: 130px;
  /* NEU: vertikal (äußerst) */
}

.kwd-carousel {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 0;
}

.kwd-carousel-stage {
  position: relative;
  width: 100%;
  max-width: calc(5 * var(--card-w) + 4 * var(--gap));
  /* NEU: Höhe vergrößert, damit die 100px-Offsets Platz haben */
  height: calc(var(--card-h) + var(--offset-far-y) + 20px);
}

.kwd-card {
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--card-w);
  height: var(--card-h);
  border-radius: var(--radius);
  box-shadow: -2px 7px 3px 0px rgb(0 0 0 / 20%);
  overflow: hidden;
  background: #e9ecef center/cover no-repeat;
  color: #111;
  display: block;
  align-items: flex-end;
  justify-content: flex-start;

  transition: transform 600ms cubic-bezier(0.22, 0.61, 0.36, 1), opacity 600ms,
    filter 600ms, z-index 0s linear 200ms;
  will-change: transform;
}

.kwd-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  /* über dem Bild, unter dem Titel */
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(255, 255, 255, 0.5) 35%,
    rgba(244, 164, 141, 0.5) 100%
  );
}

.kwd-card-img {
  position: absolute;
  inset: 0;
  /* top:0; right:0; bottom:0; left:0 */
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* ersetzt background-size: cover */
  object-position: center;
  /* wie background-position: center */
  border-radius: inherit;
  display: block;
  backface-visibility: hidden;
  /* vermeidet 3D-Flimmern */
  transform: translateZ(0);
  /* kleines Rendering-Upgrade */
  z-index: 0;
}

.kwd-card-title {
  font: 700 18px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial,
    sans-serif;
  padding: 14px 16px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  position: absolute;
  left: 50%;
  bottom: 10px;
  /* gewünschter Abstand */
  transform: translateX(-50%);
  /* horizontal zentrieren */
  text-align: center;
  padding: 0 16px;
  /* seitlich Luft für Umbrüche */
  width: calc(100% - 32px);
  /* nie über den Rand hinaus */
  line-height: 1.25;
  pointer-events: none;
  /* klicks gehen an die Karte */
  z-index: 2;
}

/* ===== 2D-Variante (Standard: Z-Rotation + Y-Offset) ===== */
.kwd-2d .kwd-card.pos--center {
  transform: translateX(-50%) translateY(0) rotate(0) scale(1);
  z-index: 5;
  opacity: 1;
}

.kwd-2d .kwd-card.pos--left {
  transform: translateX(calc(-50% - (var(--card-w) + var(--gap))))
    translateY(var(--offset-near-y)) rotate(calc(-1 * var(--rot-near)))
    scale(0.96);
  z-index: 4;
  opacity: 0.92;
}

.kwd-2d .kwd-card.pos--right {
  transform: translateX(calc(-50% + (var(--card-w) + var(--gap))))
    translateY(var(--offset-near-y)) rotate(var(--rot-near)) scale(0.96);
  z-index: 4;
  opacity: 0.92;
}

.kwd-2d .kwd-card.pos--far-left {
  transform: translateX(calc(-50% - 2 * (var(--card-w) + var(--far-gap))))
    translateY(var(--offset-far-y)) rotate(calc(-1 * var(--rot-far))) scale(0.9);
  z-index: 3;
  opacity: 0.78;
  filter: saturate(0.95);
}

.kwd-2d .kwd-card.pos--far-right {
  transform: translateX(calc(-50% + 2 * (var(--card-w) + var(--far-gap))))
    translateY(var(--offset-far-y)) rotate(var(--rot-far)) scale(0.9);
  z-index: 3;
  opacity: 0.78;
  filter: saturate(0.95);
}

/* ===== 3D-Variante (rotateY + Perspective + gleicher Y-Offset) ===== */
.kwd-3d .kwd-carousel-stage {
  perspective: 1100px;
}

.kwd-3d .kwd-card {
  transform-origin: center center;
}

.kwd-3d .kwd-card.pos--center {
  transform: translateX(-50%) translateY(0) rotateY(0) scale(1);
  z-index: 6;
  opacity: 1;
}

.kwd-3d .kwd-card.pos--left {
  transform: translateX(calc(-50% - (var(--card-w) + var(--gap))))
    translateY(var(--offset-near-y)) rotateY(calc(-1 * var(--rot-near)))
    scale(0.96);
  z-index: 4;
  opacity: 0.92;
}

.kwd-3d .kwd-card.pos--right {
  transform: translateX(calc(-50% + (var(--card-w) + var(--gap))))
    translateY(var(--offset-near-y)) rotateY(var(--rot-near)) scale(0.96);
  z-index: 4;
  opacity: 0.92;
}

.kwd-3d .kwd-card.pos--far-left {
  transform: translateX(calc(-50% - 2 * (var(--card-w) + var(--gap))))
    translateY(var(--offset-far-y)) rotateY(calc(-1 * var(--rot-far)))
    scale(0.9);
  z-index: 3;
  opacity: 0.78;
  filter: saturate(0.95);
}

.kwd-3d .kwd-card.pos--far-right {
  transform: translateX(calc(-50% + 2 * (var(--card-w) + var(--gap))))
    translateY(var(--offset-far-y)) rotateY(var(--rot-far)) scale(0.9);
  z-index: 3;
  opacity: 0.78;
  filter: saturate(0.95);
}

/* ===== Controls & Dots (wie gehabt) ===== */
.kwd-controls {
  margin-top: -50px;
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.kwd-btn {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 0;
  background: #172633;
  color: #fff;
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.kwd-btn:active {
  transform: scale(0.98);
}

.kwd-btn:hover {
  filter: brightness(1.06);
}

.kwd-dots {
  margin-top: 25px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.kwd-dots .dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: #c9ccd1;
  cursor: pointer;
}

.kwd-dots .dot.active {
  background: #172633;
}

/* Bühne darf horizontal „mitziehen“, ohne das Page-Scroll zu blockieren */
.kwd-carousel-stage {
  touch-action: pan-y;
  /* vertikales Scrollen erlaubt, horizontal übernehmen wir */
  will-change: transform;
  transform: translateX(var(--dragX, 0px));
  transition: transform 220ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Während des Draggens keine Ease-Animation */
.kwd-carousel-stage.dragging {
  transition: none;
}

/* (Optional) Während Drag keine Text-Selektion */
.kwd-carousel.dragging {
  user-select: none;
}

/* 4. Statistik */
#Statistik {
  position: relative;
  margin: 200px 0 50px 0;
}

.statsGrid {
  display: grid;
  /* Linke Spalte max 600px (passt exakt zu Card-Breite), rechts flex */
  grid-template-columns: minmax(320px, 600px) minmax(250px, 300px);
  align-items: start;
  gap: var(--gap);
  position: relative;
  padding-left: 0;
}

.statsLeft {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 1; /* über dem Bild */
  width: clamp(22.5rem, 10.0714rem + 30.4762vw, 37.5rem);
}

/* Stack der 5 Cards */
.statStack {
  width: 100%;
  padding-left: 0;
}

/* Grundkarte (closed) */
.statCard {
  margin: 20px 0px;
  width: 100%; /* = 600px in der linken Spalte */
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--c-muted-bg); /* 30% #0B2A46 */
  color: var(--c-muted-fg); /* 50% #0B2A46 */
  transition: all 0.25s ease;
  border: 2px solid transparent;
  box-shadow: inset -1px -1px 3px 0px rgb(0 0 0 / 20%);
}

.statCard:not(.is-open):hover {
  transform: scaleX(1.04) scaleY(1.02);
}

/* Kopfzeile der Card (immer sichtbar) */
.statHeader {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  height: var(--item-h); /* 80px Desktop */
  padding: 14px 18px;
  background: transparent;
  cursor: pointer;
  border: 0;
  text-align: left;
}

.statHeader:focus-visible {
  outline: none;
  border: 0;
}
.statCard:has(.statHeader:focus-visible) {
  border-color: #8eaed0;
}

.statHeader .itemIcon {
  font-size: 22px;
}
.statHeader .itemLabel {
  font: 700 clamp(1.25rem, 0.9714rem + 1.1429vw, 2rem) "Poppins", sans-serif;
  letter-spacing: 0.08em;
  color: rgba(11, 43, 70, 0.5);
  margin-bottom: 0;
  transition: color 0.5s ease;
}

/* Body (beschreibender Text) – fährt ein/aus */
.statBody {
  display: flex;
  align-items: flex-end;
  height: 0; /* geschlossen */
  opacity: 0;
  overflow: hidden;
  padding: 0 18px; /* nur horizontale Padding im Closed-State */
  transition: height 0.5s ease, opacity 0.5s ease, padding 0.5s ease;
}

.statBody p {
  margin: 0;
  font: 500 clamp(14px, 0.95vw, 18px) "Inter", sans-serif;
  line-height: 1.55;
  transition: color 0.5s ease;
}

/* Offener Zustand */
.statCard.is-open {
  background: var(--c-selected-bg); /* #336796 */
}
.statCard.is-open .statHeader h2,
.statCard.is-open .statBody p {
  color: var(--c-selected-fg); /* #EAEAE9 */
}

/* Body bekommt die „Resthöhe“ = 152 - 80 = 72px (Desktop) */
.statCard.is-open .statBody {
  height: calc(var(--detail-h) - var(--item-h));
  opacity: 1;
  padding: 0 18px 18px;
}

.statCard.is-open .statHeader {
  height: 60px;
}

/* Optionaler lila Rahmen beim aktiven (wie im Mock) */
.statCard.is-open {
  border-color: #7b61ff;
}

/* Element raus „in den Viewport“ ziehen – rechter Rand bündig */
.bleedRight {
  margin-left: auto;
}

.phoneFigure {
  margin: 0;
  width: clamp(420px, 48vw, 580px);
}
.phoneFigure img {
  width: clamp(420px, 48vw, 560px);
}

/* 5. SEO für Cafe */
/* ===== Wrapper (Slider sitzt darüber, Controls darunter) ===== */
.sliderWrap {
  position: relative;
  margin-top: 24px;
  margin-bottom: 80px;
}

/* ===== Track / Liste ===== */
.horizontalSlider {
  /* Maße einer Karte + Abstand zentral hier verwalten */
  --slide-w: 263px;
  --slide-gap: 36px;

  display: flex;
  gap: var(--slide-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;

  padding: 40px 0 10px;
  margin: 20px 0 24px;
  /* Platz zu den Controls darunter */

  overflow-y: hidden;
}

/* End-Spacer: sorgt dafür, dass das LETZTE Item links einrasten kann */
.horizontalSlider::after {
  content: "";
  flex: 0 0 calc(100% - var(--slide-w));
}

/* ===== Slide-Karte ===== */
.sliderItem {
  flex: 0 0 auto;
  width: var(--slide-w);
  height: 400px;
  border: 1px solid #ccc;
  border-radius: 25px;
  background: transparent;
  position: relative;
  scroll-snap-align: start;
}

.slideImage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.slideImage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 25px;
}

.slideImage .gradient {
  position: absolute;
  inset: 0;
  border-radius: 25px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.8) 100%
  );
  box-shadow: inset -1px -1px 3px 0px rgb(0 0 0 / 41%);
}

.upperSlideContainer {
  position: relative;
  top: -30px;
  width: 200px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 25px;
  background-color: #336796;
}

.upperSlideContainer p {
  margin: 0;
  padding: 10px 0;
  color: #fff;
  text-align: center;
}

.lowerSlideContainer {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 10px;
  width: calc(var(--slide-w) - 20px);
  padding: 10px;
  background: rgba(182, 191, 199, 0.9);
  border-radius: 25px;
  text-align: center;
}

.lowerSlideContainer p {
  margin: 0;
}

/* ===== Controls (unter dem Slider) ===== */
.sliderControls {
  display: flex;
  flex-direction: column;
  /* Desktop: Pfeile über den Dots */
  align-items: flex-start;
  gap: 18px;
}

/* Pfeile – Desktop: runde Buttons nebeneinander */
.arrowRow {
  display: flex;
  gap: 18px;
  align-items: center;
}

.sliderArrow {
  position: static !important;
  /* alte absolute-Styles neutralisieren */
  top: auto !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 0;
  display: grid;
  place-items: center;
  background: #fff;
  /* Fallback */
  box-shadow: var(--nav-shadow);
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
}

.sliderArrow svg {
  width: 40px;
  height: 40px;
  fill: var(--nav-icon);
  transition: all 0.2s ease;
}

.prev:hover,
.next:hover {
  transform: translateY(-4px) scale(1.05) !important;
  filter: opacity(0.9);
}

.sliderArrow svg:hover {
  filter: opacity(0.9);
}

.dot {
  transition: all 0.2s ease;
}

.dot:hover {
  transform: scale(1.3) !important;
  border: 2px solid black;
}

.sliderDots button:hover {
  transform: scale(1.3) !important;
  border: 2px solid black;
}

.sliderArrow.prev {
  background: var(--nav-prev-bg);
  transition: all 0.2s ease;
}

.sliderArrow.next {
  background: var(--nav-next-bg);
  transition: all 0.2s ease;
}

/* .sliderArrow:hover {
  filter: brightness(1.5);
} */

.sliderArrow:active {
  transform: scale(0.98);
}

.sliderArrow[disabled] {
  opacity: 0.45;
  pointer-events: none;
  filter: none;
}

/* Dots */
.sliderDots {
  display: flex;
  gap: 16px;
  margin-left: 7px;
}

.sliderDots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: var(--dot-muted);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.sliderDots button[aria-selected="true"] {
  background: var(--dot-active);
  transform: scale(1.05);
}

/* 6. Funktionen */
#Funktionen {
  position: relative;
  width: 100%;
  height: 880px;
  margin-left: -50%;
  transform: translateX(50%);
}

.funktionenContainer {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  font-size: 2rem;
  font-weight: bold;
}

.alignEnd {
  display: flex;
  z-index: 1;
  flex-direction: column;
  align-items: flex-end;
}

.alignEnd h2 {
  color: white;
  padding-top: 40px;
  text-align: end;
  width: clamp(350px, 80%, 830px);
}

.alignEnd p {
  color: white;
  margin-top: 20px;
  text-align: end;
  width: clamp(350px, 80%, 660px);
}

.funktionenContainer .backgroundImage {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.funktionenItemContainer {
  display: grid;
  grid-template-columns: repeat(3, 330px);
  grid-template-rows: repeat(2, auto);
  gap: 36px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  overflow-y: hidden;
}

.funktionenItem {
  position: relative;
  background: rgb(147, 164, 179, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-radius: 25px;
  height: 250px;
  scroll-snap-align: start;
  box-shadow: inset -1px -1px 3px 0px rgb(0 0 0 / 51%);
}

.iconContainer {
  width: 100px;
  height: 80px;
  border-radius: 10px;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
  margin-top: 10px;
  background: rgba(231, 231, 231, 1);
}

.funktionenItem h3 {
  font-size: 24px;
  font-weight: bold;
  line-height: 40px;
  letter-spacing: normal;
}

/* 7. Preise */

#Preise {
  margin: 150px 0;
}

.marginPricingGrid {
  margin: 20px 0;
}

/* 8. Vorteile */

#Vorteile {
  position: relative;
  margin-bottom: 150px;
}

.blueContainerVorteile {
  position: absolute;
  width: 99vw;
  top: 0;
  height: 800px;
  background-color: rgb(11, 42, 70, 0.2);
  left: 50%;
  width: 99dvw;
  transform: translateX(-50%);
  z-index: -1;
  border-radius: 25px;
}

.vorteileH2 {
  padding-top: 80px;
  margin-bottom: 50px;
}

.headerVorteileGrid {
  background: rgba(67, 160, 72, 0.5);
  width: clamp(18.75rem, 14.1071rem + 19.0476vw, 31.25rem);
  height: 55px;
  border-radius: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: inset -1px -1px 3px 0px rgb(0 0 0 / 20%);
}

.headerNachteileGrid {
  background: rgba(242, 72, 34, 0.5);
  width: clamp(18.75rem, 14.1071rem + 19.0476vw, 31.25rem);
  height: 55px;
  border-radius: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: inset -1px -1px 3px 0px rgb(0 0 0 / 20%);
}

.flexVorteile {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  scroll-snap-type: x mandatory;
  overflow-x: auto;
  scroll-behavior: smooth;
  overflow-y: hidden;
  gap: 50px;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.vorNachGrid {
  display: flex;
  justify-content: space-between;
  margin-top: 50px;
  gap: 50px;
}

.vorteileFlex,
.nachteileFlex {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 40px;
}

.vorteileFlex div:nth-child(2),
.nachteileFlex div:nth-child(2),
.vorteileFlex div:nth-child(4),
.nachteileFlex div:nth-child(4) {
  margin-left: 40px;
}

.greenContainer,
.redContainer {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  width: clamp(18.75rem, 14.1071rem + 19.0476vw, 31.25rem);
  border-radius: 25px;
  box-shadow: inset -1px -1px 3px 0px rgb(0 0 0 / 10%);
}

.greenContainer {
  background: rgba(67, 160, 72, 0.2);
  padding: 10px 20px;
}

.redContainer {
  background: rgba(242, 72, 34, 0.2);
  padding: 10px 20px;
}

/* 9 Tipps */

#Tipps {
  margin: 100px 0;
}
.tippsContainer {
  display: flex;
  flex-wrap: nowrap;
  gap: 56px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  height: 300px;
  align-items: center;
  overflow-y: hidden;
}

.tippsContainer::-webkit-scrollbar {
  display: none;
}

::-webkit-scrollbar {
  display: none;
}

.tippsItem {
  flex: 0 0 263px;
  height: 259px;
  scroll-snap-align: start;
  display: flex;
  align-content: start;
  flex-wrap: wrap;
  padding: 10px 20px;
  background: rgba(244, 163, 141, 0.5);
  border-radius: 25px;
  box-shadow: inset -1px -1px 3px 0px rgb(0 0 0 / 50%);
}

.horizontalSliderTips::after {
  content: "";
  flex: 0 0 calc(100% - 263px);
}

.tippsImage {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
}

.headingTipps {
  font-weight: bold;
  color: #f24822;
  text-align: start;
  width: 223px;
  margin-top: 15px;
  margin-bottom: 15px;
}

.textTipps {
  color: var(--color-primary);
  text-align: start;
  width: 223px;
}

.sliderControlsTipps {
  position: relative;
  margin-bottom: 40px;
}

.sliderControlsFunktionen {
  position: relative;
  margin-bottom: 40px;
  opacity: 0;
}

.sliderControlsTipps .sliderDots {
  margin: 20px 0;
}

/* 10 CTA */

/* 11 FAQ */

.accordion-item:first-of-type > .accordion-header .accordion-button {
  border-top-left-radius: 25px !important;
  border-top-right-radius: 25px !important;
}

.accordion-item:first-of-type {
  border-top-left-radius: 25px;
  border-top-right-radius: 25px;
}

.accordion-item:last-of-type > .accordion-header .accordion-button.collapsed {
  border-bottom-left-radius: 25px !important;
  border-bottom-right-radius: 25px !important;
}

.accordion-item:last-of-type {
  border-bottom-left-radius: 25px;
  border-bottom-right-radius: 25px;
  margin-bottom: 150px;
}

/* CTA */

.ctaContainer {
  position: relative;
}

.imageCTALeft,
.imageCTARight {
  position: absolute;
  top: 50%;
  width: clamp(9.375rem, 7.0536rem + 9.5238vw, 15.625rem);
  aspect-ratio: 1 / 1; /* garantiert Fläche, auch wenn img noch lazy ist */
  transform: translate(-50%, -50%); /* Basis-Referenz, siehe unten */
  box-shadow: -11px -4px 50px 20px rgb(0 0 0 / 20%);
  z-index: 1;
  border-radius: 25px;
  height: auto;
}

.imageCTALeft {
  left: 0;
  transform: translate(50%, -50%);
} /* links */
.imageCTARight {
  right: 0;
  transform: translate(-50%, -50%);
} /* rechts */

.imageCTALeft img,
.imageCTARight img {
  width: 100%;
  height: auto;
  border-radius: 25px;
}

.imageCTAContainer {
    min-height: 240px;
}

.animate-on-scroll-right {
  opacity: 0;
  transform: translateY(40px) translateX(-40px);
  transition: opacity 0.6s ease-in, transform 0.6s ease-in;
}

/* Wenn sichtbar (im Viewport): gleitet an Position und wird sichtbar */
.animate-on-scroll-right.visible {
  border: white solid 1px;
  opacity: 1;
  perspective: 1000px;
  transform: translateX(50%) translateY(-50%) rotateZ(-15deg);
}

/* Wenn gerade verlassen (Viewport nach oben verlassen): nach rechts versetzen und ausblenden */
.animate-on-scroll-right.out {
  opacity: 0;
  transform: translateY(0) translateX(0);
}

.animate-on-scroll-left {
  opacity: 0;
  transform: translateY(40px) translateX(-40px);
  transition: opacity 0.6s ease-in, transform 0.6s ease-in;
}

/* Wenn sichtbar (im Viewport): gleitet an Position und wird sichtbar */
.animate-on-scroll-left.visible {
  border: white solid 1px;
  opacity: 1;
  transform: translateX(-50%) translateY(-50%) rotateZ(15deg);
}

/* Wenn gerade verlassen (Viewport nach oben verlassen): nach rechts versetzen und ausblenden */
.animate-on-scroll-left.out {
  opacity: 0;
  transform: translateY(0) translateX(0);
}

#CTA {
  background: #0b2a46;
  padding: 20px;
  margin-bottom: 150px;
  position: relative;
}

.ctaH2 {
  font-size: clamp(2.1rem, 1.6511rem + 1.9155vw, 3.375rem);
  margin-bottom: 20px;
  color: #eaeae9;
}

.ctaText {
  opacity: 0 !important;
  padding-top: 50px;
}

.orange {
  font-style: italic;
  color: #f24822;
}

#CTA p {
  color: #eaeae9;
}

.ctaButton {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: pointer;
  display: inline-block;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  transition: all 0.5s;
  background: #43a04780;
  color: #eaeae9;
  border: #eaeaea solid 5px;
  border-radius: 50px;
  margin-bottom: 20px;
  margin-top: 150px;
}

@media (min-width: 1000px) {
  .ctaText {
    opacity: 1 !important;
    position: absolute;
    width: 300px;
    left: 50%;
    transform: translateX(-50%) !important;
  }

  .marginRight100px {
    margin-right: 100px;
  }
  .imageCTALeft:hover {
    transform: translateX(50%) translateY(-60%) rotateZ(0deg) !important;
  }

  .imageCTARight:hover {
    transform: translateX(-50%) translateY(-60%) rotateZ(0deg) !important;
  }
}

@media (max-width: 1400px) {
  #ContainerMarginSetup {
    margin: 0 40px;
  }
}

@media (max-width: 1100px) {
  .flexVorteile {
    flex-direction: column;
    align-items: center;
  }
  .blueContainerVorteile {
    height: 1330px;
  }
  .sliderControlsFunktionen {
    opacity: 1;
    margin-top: 20px;
  }
  .sliderControlsFunktionen .sliderDots {
    position: relative;
    left: 25px;
  }
}

/* Optional etwas responsive */
@media (max-width: 800px) {
  #ContainerMarginSetup {
    margin: 0 20px;
  }
  .heroRight {
    top: 0;
    right: -20%;
  }
  .containerRight,
  .containerLeft {
    bottom: -30px;
  }
  .imageLeftTextRight {
    grid-template-columns: 1fr;
    grid-template-areas:
      "upper"
      "img"
      "lower";
  }
  .imageLeft {
    max-width: 520px; /* optional: Bild nicht unendlich breit */
    margin-inline: auto; /* Bild zentrieren */
  }
  .smCol12W {
    width: 100%;
  }
  .kwd-carousel {
    --card-w: 240px;
    --card-h: 160px;
  }
  .arrowRow {
    display: flex;
    width: 100%;
    justify-content: space-between;
  }

  /* macht die Buttons zu Grid-Kindern */

  .sliderArrow {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #fff;
    box-shadow: none;
  }

  .sliderArrow[disabled] {
    opacity: 0;
    pointer-events: none;
    filter: none;
  }

  .sliderArrow.prev {
    justify-self: start;
    background: none;
  }

  .sliderArrow.next {
    justify-self: end;
    background: none;
  }

  .sliderArrow.prev svg {
    fill: rgba(11, 43, 70, 0.5);
  }

  .sliderControls {
    align-items: center;
  }

  /* links blass */
  .sliderArrow.next svg {
    fill: rgba(11, 43, 70, 0.5);
  }
  .sliderDots {
    margin: 0;
  }
  .sliderControlsTipps .sliderDots,
  .sliderControlsFunktionen .sliderDots {
    margin: 20px 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 10px;
  }
}

@media (max-width: 520px) {
  .kwd-carousel {
    --card-w: 200px;
    --card-h: 130px;
    --gap: 20px;
    --far-gap: 20px;
  }

  .kwd-btn {
    width: 70px;
    height: 70px;
  }

  .kwd-controls {
    margin-top: -100px;
    z-index: 10;
  }

  .kwd-dots {
    margin-top: 10px;
  }
  .statsGrid {
    grid-template-columns: 1fr;
    gap: 18px;
    justify-content: center;
    justify-items: center;
  }

  /* Reihenfolge: Bild oben, dann Cards */
  .statsRight {
    order: -1;
  }

  .statStack {
    margin-top: -80px;
  }

  .bleedRight {
    width: 100vw;
    /* margin-right: calc(-10% + 60vw); */
  }
  .phoneFigure {
    width: min(100vw, 500px);
    margin-inline: auto;
    margin-right: calc(-40% + 20vw);
  }

  /* Card-Breiten/Höhen laut Vorgabe Mobile */
  .statCard {
    border-radius: 18px;
  }
  .statHeader {
    height: var(--item-h-m);
    padding: 12px 16px;
  } /* 58px */
  /* .statCard.is-open .statHeader {
    height: var(--detail-h-m);
  } 160px */
  /* .statCard.is-open .statBody {
    height: calc(var(--detail-h-m) - var(--item-h-m)); 
    padding: 0 16px 16px;
  } */
}

@media (max-width: 470px) {
  .blueContainerVorteile {
    height: 890px;
  }

  .vorteileH2 {
    padding-top: 40px;
    margin-bottom: 30px;
  }

  .flexVorteile {
    flex-direction: row;
    gap: 50px;
    align-items: flex-start;
  }

  .headerVorteileGrid {
    width: 100%;
  }

  .vorteileHeaderItem {
    scroll-snap-align: start;
  }

  .vorteileFlex div:nth-child(2),
  .nachteileFlex div:nth-child(2),
  .vorteileFlex div:nth-child(4),
  .nachteileFlex div:nth-child(4) {
    margin-left: 0px;
  }

  .sliderControlsVorteile {
    opacity: 1;
  }
  .animate-on-scroll-left.visible {

    transform: translateX(-30%) translateY(0%) rotateZ(15deg) !important;
  }

  .animate-on-scroll-right.visible {
    transform: translateX(30%) translateY(-80%) rotateZ(-15deg) !important;
  }

  .ctaText{
    display: none !important;
  }

  .containerCenter {
    position: absolute;
    bottom: -50px;
    width: 100%;
    left: 50%;
    transform: translateX(-50%) !important;
  }
}

@media (min-width: 470px) {
  .sliderControlsVorteile {
    opacity: 0;
  }
}
