/* SpinCity – Experiment „Fliegender Text“, Entwurf 2
   Einblendungen in verschiedenen Formen, geschwungene Hero-Kante mit Schritt-Karte als Übergang,
   Tagesleiste für die Tischpreise, Kacheln „Was es bei uns gibt“, Vorteile als Raster, neues Icon-Set.
   Alle Bewegungen hängen an html.fx-motion – bei „Bewegung reduzieren“ ist alles sofort sichtbar. */

:root {
  --fx-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fx-pop: cubic-bezier(0.34, 1.56, 0.64, 1);
  --fx-overlap: clamp(64px, 7vw, 96px);
  --fx-edge-h: clamp(44px, 8vw, 120px);
  --icon-accent: var(--gelb);
}

/* ================================================================
   Einblendungen
   ================================================================ */

.fx-motion [data-reveal] {
  transition:
    opacity 0.8s var(--fx-ease) var(--d, 0ms),
    transform 0.95s var(--fx-ease) var(--d, 0ms);
}

.fx-motion [data-reveal="up"]:not(.is-in) {
  opacity: 0;
  transform: translate3d(0, 36px, 0);
}

.fx-motion [data-reveal="rise"]:not(.is-in) {
  opacity: 0;
  transform: translate3d(0, 70px, 0) scale(0.97);
}

.fx-motion [data-reveal="rise"] {
  transition:
    opacity 0.9s var(--fx-ease) 0.35s,
    transform 1.1s var(--fx-ease) 0.35s;
}

.fx-motion [data-reveal="fade"]:not(.is-in) {
  opacity: 0;
}

.fx-motion [data-reveal="left"]:not(.is-in) {
  opacity: 0;
  transform: translate3d(-56px, 0, 0);
}

.fx-motion [data-reveal="right"]:not(.is-in) {
  opacity: 0;
  transform: translate3d(56px, 0, 0);
}

/* Kacheln springen auf */
.fx-motion [data-reveal="pop"] {
  transition:
    opacity 0.45s ease var(--d, 0ms),
    transform 0.75s var(--fx-pop) var(--d, 0ms);
}

.fx-motion [data-reveal="pop"]:not(.is-in) {
  opacity: 0;
  transform: scale(0.72) rotate(-5deg);
}

/* in der Schritt-Karte erst, wenn die Karte selbst schon da ist */
.fx-motion .fx-steps [data-reveal="pop"] {
  transition:
    opacity 0.45s ease calc(var(--d, 0ms) + 700ms),
    transform 0.75s var(--fx-pop) calc(var(--d, 0ms) + 700ms);
}

/* Fotos: Vorhang von unten, Bild zoomt dabei zurück */
.fx-motion [data-reveal="clip"] img {
  transition:
    clip-path 1.2s var(--fx-ease) var(--d, 0ms),
    transform 1.6s var(--fx-ease) var(--d, 0ms);
}

.fx-motion [data-reveal="clip"]:not(.is-in) img {
  clip-path: inset(100% 0 0 0);
  transform: scale(1.18);
}

/* Überschriften: Wörter steigen nacheinander aus einer Kante auf */
.fx-w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}

.fx-wi {
  display: inline-block;
}

.fx-motion [data-reveal="words"] {
  transition: none;
}

.fx-motion [data-reveal="words"] .fx-wi {
  transition:
    transform 0.9s var(--fx-ease) calc(var(--i, 0) * 65ms + var(--d, 0ms)),
    opacity 0.6s ease calc(var(--i, 0) * 65ms + var(--d, 0ms));
}

.fx-motion [data-reveal="words"]:not(.fx-split):not(.is-in) {
  opacity: 0;
}

.fx-motion [data-reveal="words"].fx-split:not(.is-in) .fx-wi {
  opacity: 0;
  transform: translate3d(0, 105%, 0);
}

/* Tagesleiste: Tarife wachsen von links nach rechts */
.fx-motion [data-reveal="grow"] {
  transition: none;
}

.fx-motion [data-reveal="grow"] > li {
  clip-path: inset(-40px -40px -40px -40px);
  transition:
    clip-path 1s var(--fx-ease) calc(var(--n, 0) * 160ms + 150ms),
    transform 0.4s var(--fx-ease),
    box-shadow 0.4s ease;
}

.fx-motion [data-reveal="grow"]:not(.is-in) > li {
  clip-path: inset(-40px 100% -40px -40px);
}

/* Notbremse: kommt fx.js nicht an, ist nach 2,5 s trotzdem alles sichtbar */
.fx-motion:not(.fx-ready) [data-reveal],
.fx-motion:not(.fx-ready) [data-reveal="clip"] img,
.fx-motion:not(.fx-ready) [data-reveal="grow"] > li {
  animation: fx-failsafe 0s 2.5s forwards;
}

@keyframes fx-failsafe {
  to {
    opacity: 1;
    transform: none;
    clip-path: none;
  }
}

/* ================================================================
   Icon-Set (inline SVG aus templates/icons/): Linie in currentColor, gelber Ball als Akzent
   ================================================================ */

.fx-icon {
  display: block;
  width: 3rem;
  height: 3rem;
  overflow: visible;
}

.fx-icon .is {
  fill: currentColor;
  fill-opacity: 0.14;
  stroke: none;
}

.fx-icon .is2 {
  fill: currentColor;
  fill-opacity: 0.3;
  stroke: none;
}

.fx-icon .ia {
  fill: var(--icon-accent);
  stroke: none;
}

.fx-icon .iaf {
  fill: var(--icon-accent);
}

.fx-icon .ias {
  stroke: var(--icon-accent);
}

.fx-icon .if {
  fill: currentColor;
  stroke: none;
}

.fx-icon .id {
  stroke: var(--dunkelviolett);
}

.fx-icon .ball,
.fx-icon .scan {
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes fx-hop {
  0%,
  100% {
    transform: translateY(0);
  }
  45% {
    transform: translateY(-5px) scale(1.08);
  }
}

@keyframes fx-scan {
  0%,
  100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-9px);
  }
  70% {
    transform: translateY(9px);
  }
}

/* ================================================================
   Hero
   ================================================================ */

.fx-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(560px, 86vh, 800px);
  color: var(--weiss);
  background: var(--dunkelviolett);
  overflow: hidden;
}

.fx-hero-media {
  position: absolute;
  inset: -6% 0;
  z-index: -2;
  will-change: transform;
}

.fx-hero-media picture {
  display: contents;
}

.fx-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.fx-motion .fx-hero-img {
  animation: fx-hero-zoom 2.4s var(--fx-ease) both;
}

@keyframes fx-hero-zoom {
  from {
    transform: scale(1.12);
  }
  to {
    transform: scale(1);
  }
}

/* links nur so dunkel wie nötig – von der Halle soll möglichst viel zu sehen sein */
.fx-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(38, 28, 46, 0.84) 0%, rgba(38, 28, 46, 0.5) 38%, rgba(38, 28, 46, 0.05) 68%),
    linear-gradient(0deg, rgba(38, 28, 46, 0.55) 0%, rgba(38, 28, 46, 0) 40%);
}

.fx-hero-inner {
  position: relative;
  padding: 7.25rem 0 calc(var(--fx-overlap) + 2.75rem);
}

.fx-hero-slogan {
  display: block;
  width: clamp(150px, 15vw, 220px);
  height: auto;
  margin: 0 0 0.35rem -0.2rem;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.3));
}

.fx-motion .fx-hero-slogan {
  transition-delay: 0.15s;
}

.fx-hero h1 {
  margin: 0 0 1rem;
  max-width: 11ch;
  text-wrap: balance;
  font-size: clamp(2.7rem, 6.2vw, 5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--weiss);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}

.fx-hero-lead {
  margin: 0;
  max-width: 33rem;
  font-size: clamp(1.05rem, 1.35vw, 1.22rem);
  line-height: 1.5;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.fx-hero .hero-meta {
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.fx-motion .fx-hero-lead {
  --d: 450ms;
}

.fx-motion .fx-hero .hero-actions {
  --d: 600ms;
}

.fx-motion .fx-hero .hero-meta {
  --d: 750ms;
}

/* geschwungene Unterkante + gelbe Schwung-Linie */
.fx-hero-edge,
.fx-hero-line {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: var(--fx-edge-h);
  display: block;
  pointer-events: none;
}

.fx-hero-edge path {
  fill: var(--weiss);
}

.fx-hero-line path {
  fill: none;
  stroke: var(--gelb);
  stroke-width: 3;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.fx-motion .fx-hero-line {
  clip-path: inset(0 100% 0 0);
  animation: fx-line-in 1.8s var(--fx-ease) 0.6s forwards;
}

@keyframes fx-line-in {
  to {
    clip-path: inset(0 0 0 0);
  }
}

/* ================================================================
   Übergang: Schritt-Karte über der Kante
   ================================================================ */

.fx-steps {
  position: relative;
  z-index: 2;
  margin-top: calc(-1 * var(--fx-overlap));
}

.fx-steps-card {
  display: grid;
  grid-template-columns: minmax(0, 8.5rem) minmax(0, 1fr);
  grid-template-areas:
    "title list"
    ". alt";
  align-items: center;
  gap: 0.6rem 2rem;
  padding: 1.4rem 1.75rem 1.2rem;
  background: var(--weiss);
  border-radius: 24px;
  box-shadow:
    0 26px 60px -22px rgba(38, 28, 46, 0.42),
    0 2px 8px rgba(38, 28, 46, 0.06);
}

.fx-steps-title {
  grid-area: title;
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--violett);
}

.fx-steps-list {
  grid-area: list;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem 2.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: fx-step;
}

.fx-step {
  position: relative;
  counter-increment: fx-step;
}

/* Pfeil zwischen den Schritten */
.fx-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -1.35rem;
  width: 0.6rem;
  height: 0.6rem;
  border-top: 2.5px solid rgba(83, 46, 109, 0.3);
  border-right: 2.5px solid rgba(83, 46, 109, 0.3);
  transform: translateY(-50%) rotate(45deg);
}

.fx-step-inner {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 0.3rem;
  border-radius: 18px;
  color: inherit;
  text-decoration: none;
}

a.fx-step-inner:hover strong {
  color: var(--blau);
}

.fx-step-icon {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 3.7rem;
  height: 3.7rem;
  border-radius: 18px;
  background: var(--violett);
  color: var(--weiss);
}

.fx-step-icon .fx-icon {
  width: 2.45rem;
  height: 2.45rem;
}

.fx-step-icon::after {
  content: counter(fx-step);
  position: absolute;
  top: -0.45rem;
  right: -0.45rem;
  display: grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  background: var(--gelb);
  color: var(--dunkelviolett);
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 0 0 3px var(--weiss);
}

.fx-step-text strong {
  display: block;
  font-size: 1.02rem;
  line-height: 1.2;
  color: var(--violett);
}

.fx-step-text small {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.2rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.fx-steps-alt {
  grid-area: alt;
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.fx-steps-alt a {
  font-weight: 600;
}

/* kleine Bewegung in den Schritt-Icons, sobald die Karte da ist */
.fx-motion .fx-steps-card.is-in .fx-icon .scan {
  animation: fx-scan 2.6s ease-in-out 1.2s infinite;
}

.fx-motion .fx-steps-card.is-in .fx-step:first-child .ball {
  animation: fx-hop 0.7s var(--fx-ease) 1.4s 2;
}

.fx-motion .fx-steps-card.is-in .fx-step:last-child .ball {
  animation: fx-hop 0.7s var(--fx-ease) 1.8s 2;
}

/* ================================================================
   Tischpreise als Tagesleiste
   ================================================================ */

.fx-prices {
  padding-top: clamp(3rem, 6vw, 4.5rem);
}

.fx-prices-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0 2rem;
}

.fx-prices-head .section-intro {
  margin-bottom: 1.75rem;
}

.fx-now {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.75rem;
  padding: 0.6rem 1.1rem;
  border-radius: var(--pill);
  background: var(--dunkelviolett);
  color: var(--weiss);
  font-size: 0.92rem;
  font-weight: 600;
}

.fx-now-dot {
  position: relative;
  flex: none;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--gelb);
}

.fx-motion .fx-now-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--gelb);
  animation: fx-pulse 1.9s ease-out infinite;
}

.fx-now.is-closed .fx-now-dot,
.fx-now.is-closed .fx-now-dot::after {
  background: rgba(255, 255, 255, 0.45);
}

@keyframes fx-pulse {
  to {
    transform: scale(3);
    opacity: 0;
  }
}

.fx-tariffs {
  display: grid;
  gap: 1.25rem;
}

.fx-tariff-days {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.fx-tariff-track {
  position: relative;
  padding-bottom: 2.6rem;
}

.fx-tariff-bar {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fx-tariff {
  position: relative;
  flex: var(--h) 1 0;
  min-width: 10.5rem;
  min-height: 9.75rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1rem 1.15rem 0.95rem;
  border-radius: 10px;
  transition:
    transform 0.4s var(--fx-ease),
    box-shadow 0.4s ease;
}

.fx-tariff:first-child {
  border-top-left-radius: 22px;
  border-bottom-left-radius: 22px;
}

.fx-tariff:last-child {
  border-top-right-radius: 22px;
  border-bottom-right-radius: 22px;
}

/* Stunden-Skala am unteren Rand: ein Strich je volle Stunde (innerhalb eines Tarifs ist die Zeit linear) */
.fx-tariff[data-start]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 7px;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 calc(100% / var(--h) - 1px),
    currentColor calc(100% / var(--h) - 1px) calc(100% / var(--h))
  );
  opacity: 0.22;
  pointer-events: none;
}

.fx-tariff-c {
  background: var(--blau);
  color: var(--weiss);
}

.fx-tariff-b {
  background: #eaeff6;
  color: var(--violett);
}

.fx-tariff-a {
  background: var(--dunkelviolett);
  color: var(--weiss);
}

.fx-tariff-gap {
  min-width: 1.5rem;
  background: repeating-linear-gradient(135deg, #eef1f6 0 8px, #f8f9fb 8px 16px);
}

.fx-tariff-name {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

.fx-tariff-price {
  margin-top: 0.4rem;
  font-size: clamp(1.8rem, 2.9vw, 2.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.fx-tariff-price small {
  margin-left: 0.15rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0;
  opacity: 0.8;
}

.fx-tariff-a .fx-tariff-price {
  color: var(--gelb);
}

.fx-tariff-half {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  opacity: 0.85;
}

.fx-tariff-range {
  margin-top: auto;
  padding-top: 0.8rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.fx-tariff-now {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  display: none;
  padding: 0.15rem 0.55rem;
  border-radius: var(--pill);
  background: var(--gelb);
  color: var(--dunkelviolett);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.fx-tariff.is-now {
  z-index: 1;
  transform: translateY(-5px);
  box-shadow:
    0 0 0 3px var(--gelb),
    0 20px 34px -14px rgba(38, 28, 46, 0.5);
}

.fx-tariff.is-now .fx-tariff-now {
  display: inline-block;
}

/* Jetzt-Markierung unter der Leiste */
.fx-tariff-marker {
  position: absolute;
  bottom: 0;
  left: 0;
  transform: translateX(-50%);
  padding: 0.22rem 0.6rem;
  border-radius: var(--pill);
  background: var(--gelb);
  color: var(--dunkelviolett);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.fx-tariff-marker::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: var(--gelb);
}

.fx-motion .fx-tariff-marker {
  animation: fx-marker-in 0.6s var(--fx-pop) 1.1s both;
}

@keyframes fx-marker-in {
  from {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
}

.fx-ways {
  margin-top: 1.5rem;
}

/* ================================================================
   Was es bei uns gibt
   ================================================================ */

.fx-tiles {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fx-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  aspect-ratio: 1 / 1.06;
  border-radius: 20px;
  overflow: hidden;
  background: var(--violett);
  color: var(--weiss);
  text-decoration: none;
  box-shadow: 0 12px 26px -14px rgba(83, 46, 109, 0.65);
  transition:
    transform 0.4s var(--fx-ease),
    box-shadow 0.4s ease;
}

.fx-tile-icon {
  flex: 1;
  display: grid;
  place-items: center;
}

.fx-tile-icon .fx-icon {
  width: clamp(2.8rem, 4.6vw, 4.1rem);
  height: auto;
  aspect-ratio: 1;
  transition: transform 0.4s var(--fx-ease);
}

.fx-tile-label {
  display: grid;
  place-items: center;
  min-height: 3.2em;
  padding: 0.55rem 0.5rem;
  background: rgba(38, 28, 46, 0.42);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  transition:
    background 0.3s ease,
    color 0.3s ease;
}

.fx-tile:hover,
.fx-tile:focus-visible {
  color: var(--weiss);
  transform: translateY(-6px);
  box-shadow: 0 22px 34px -16px rgba(83, 46, 109, 0.8);
}

.fx-tile:hover .fx-tile-label,
.fx-tile:focus-visible .fx-tile-label {
  background: var(--gelb);
  color: var(--dunkelviolett);
}

.fx-tile:hover .fx-icon {
  transform: scale(1.06);
}

.fx-tile:hover .ball {
  animation: fx-hop 0.65s var(--fx-ease);
}

.fx-tile:hover .scan {
  animation: fx-scan 1.2s ease-in-out;
}

/* nach Bereichen gruppiert: vier weiße Kästen, je zwei Kachelreihen */
.fx-offer-groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

/* Subgrid: Titelzeilen aller Kästen einer Reihe sind gleich hoch – die Kacheln beginnen auf einer Linie,
   auch wenn ein Titel („Sparen, schenken, shoppen“) zweizeilig ist */
.fx-offer-group {
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
  row-gap: 0;
  padding: 1.05rem 0.95rem 0.95rem;
  border-radius: 24px;
  background: var(--weiss);
  box-shadow: var(--shadow-soft), 0 12px 30px -20px rgba(38, 28, 46, 0.3);
}

.fx-offer-group-title {
  display: flex;
  align-items: center;
  align-self: end;
  gap: 0.55rem;
  margin: 0 0 0.85rem 0.15rem;
  font-size: 1.05rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--violett);
}

/* kleiner gelber Ball vor dem Titel */
.fx-offer-group-title::before {
  content: "";
  flex: none;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--gelb);
  box-shadow: 0 0 0 3px rgba(231, 235, 22, 0.28);
}

.fx-offer-group .fx-tiles {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 10px;
}

.fx-offer-group .fx-tiles > .is-wide {
  grid-column: span 2;
}

.fx-offer-group .fx-tile {
  border-radius: 16px;
}

.fx-offer-group .fx-tiles > .is-wide .fx-tile {
  aspect-ratio: auto;
}

.fx-offer-group .fx-tile-icon .fx-icon {
  width: clamp(2.4rem, 3.4vw, 3rem);
}

.fx-offer-group .fx-tile-label {
  min-height: 2.9em;
  font-size: 0.86rem;
}

/* Trennen nur an guten Stellen: „Gruppen-training“ statt „Gruppentrai-ning“ */
.fx-tile-label {
  hyphens: auto;
  -webkit-hyphens: auto;
  hyphenate-limit-chars: 10 5 5;
  -webkit-hyphenate-limit-before: 5;
  -webkit-hyphenate-limit-after: 5;
}

.fx-offers-more {
  margin: 2rem 0 0;
  text-align: center;
}

/* ================================================================
   Vorteile als Raster
   ================================================================ */

.fx-bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(200px, auto);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fx-perk {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.35rem 1.4rem 1.4rem;
  border-radius: 24px;
  overflow: hidden;
}

.fx-perk-u6 {
  grid-column: 1 / span 2;
  grid-row: 1 / span 2;
}

.fx-perk-icon {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.16);
}

.fx-perk-icon .fx-icon {
  width: 2.3rem;
  height: 2.3rem;
}

.fx-perk-text {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.fx-perk-text strong {
  font-size: clamp(1.3rem, 1.9vw, 1.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.fx-perk-text > span {
  max-width: 26rem;
  font-size: 0.95rem;
  line-height: 1.45;
  opacity: 0.9;
}

.fx-perk-u6 .fx-perk-text strong {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.fx-perk-u6 .fx-perk-text > span {
  font-size: 1.05rem;
}

.fx-perk-photo {
  min-height: 240px;
  background: var(--dunkelviolett);
  color: var(--weiss);
}

.fx-perk-photo img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fx-perk-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(38, 28, 46, 0.1) 30%, rgba(38, 28, 46, 0.85) 100%);
}

.fx-perk-photo .fx-perk-icon {
  background: rgba(38, 28, 46, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.fx-perk-violet {
  background: var(--violett);
  color: var(--weiss);
}

.fx-perk-blue {
  background: var(--blau);
  color: var(--weiss);
}

.fx-perk-yellow {
  --icon-accent: var(--weiss);
  background: var(--gelb);
  color: var(--dunkelviolett);
}

.fx-perk-yellow .fx-perk-icon {
  background: rgba(38, 28, 46, 0.08);
}

.fx-perk-light {
  background: #efeaf4;
  color: var(--violett);
}

.fx-perk-light .fx-perk-icon {
  background: var(--weiss);
}

.fx-perk-light .fx-perk-text > span {
  color: var(--ink);
  opacity: 0.8;
}

.fx-perk-link {
  color: inherit;
  text-decoration: none;
}

/* ganze Karte klickbar */
.fx-perk-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.fx-perk-link:hover {
  color: var(--gelb);
}

.fx-perk-shop .fx-perk-text strong::after {
  content: " →";
  color: var(--gelb);
}

.fx-perk-photo img {
  transition:
    clip-path 1.2s var(--fx-ease) var(--d, 0ms),
    transform 1.6s var(--fx-ease) var(--d, 0ms);
}

.fx-perk-shop:hover img {
  transform: scale(1.05);
}

/* Text der Fotokarten kommt nach dem Bild */
.fx-motion .fx-perk-photo .fx-perk-icon,
.fx-motion .fx-perk-photo .fx-perk-text {
  transition:
    opacity 0.7s ease 0.5s,
    transform 0.9s var(--fx-ease) 0.5s;
}

.fx-motion .fx-perk-photo:not(.is-in) .fx-perk-icon,
.fx-motion .fx-perk-photo:not(.is-in) .fx-perk-text {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
}

.fx-motion .fx-perk.is-in .ball {
  animation: fx-hop 0.7s var(--fx-ease) 0.9s;
}

/* ================================================================
   Schwung als Kante: violette Bänder und Footer auf allen Seiten
   (Maske statt Bild: die Fläche davor scheint durch, egal ob weiß oder grau)
   ================================================================ */

:root {
  --fx-sub-edge: clamp(28px, 4.5vw, 64px);
  --fx-band-edge: clamp(28px, 4.5vw, 64px);
  --fx-foot-edge: clamp(24px, 3.5vw, 48px);
  /* Oberkante: links tief, nach rechts ansteigend – wie unter dem Hero */
  --fx-mask-top: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0 120 C 90 106, 210 78, 360 56 C 680 8, 1140 0, 1440 24 V120 Z'/%3E%3C/svg%3E");
  /* Unterkante: Fläche endet links unten, rechts schon oben */
  --fx-mask-bottom: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0 0 H1440 V0 C 1350 14, 1230 42, 1080 64 C 760 112, 300 120, 0 96 Z'/%3E%3C/svg%3E");
}

.community-band {
  position: relative;
  margin-top: calc(-1 * var(--fx-band-edge));
  padding-top: calc(4.5rem + var(--fx-band-edge));
  -webkit-mask:
    var(--fx-mask-top) top left / 100% var(--fx-band-edge) no-repeat,
    linear-gradient(#000 0 0) bottom left / 100% calc(100% - var(--fx-band-edge) + 1px) no-repeat;
  mask:
    var(--fx-mask-top) top left / 100% var(--fx-band-edge) no-repeat,
    linear-gradient(#000 0 0) bottom left / 100% calc(100% - var(--fx-band-edge) + 1px) no-repeat;
}

.site-footer {
  position: relative;
  margin-top: calc(-1 * var(--fx-foot-edge));
  padding-top: calc(3rem + var(--fx-foot-edge));
  -webkit-mask:
    var(--fx-mask-top) top left / 100% var(--fx-foot-edge) no-repeat,
    linear-gradient(#000 0 0) bottom left / 100% calc(100% - var(--fx-foot-edge) + 1px) no-repeat;
  mask:
    var(--fx-mask-top) top left / 100% var(--fx-foot-edge) no-repeat,
    linear-gradient(#000 0 0) bottom left / 100% calc(100% - var(--fx-foot-edge) + 1px) no-repeat;
}

/* Band direkt vor dem Footer: die Illustration steht sonst bis zur Unterkante und würde von der
   Footer-Kurve angeschnitten – sie rückt um deren Höhe nach oben und steht dann auf dem Schwung */
main > .community-band:last-child .community-illu {
  margin-bottom: calc(-4.5rem + var(--fx-foot-edge));
}

@media (max-width: 900px) {
  main > .community-band:last-child .community-illu {
    margin-bottom: calc(-3rem + var(--fx-foot-edge));
  }
}

/* ================================================================
   Unterseiten: Kopfbereich mit Schwung-Kante und Einblendung beim Laden
   ================================================================ */

body:not(.fx-home) .page-hero {
  position: relative;
  z-index: 1;
  padding-bottom: calc(2.5rem + var(--fx-sub-edge));
  -webkit-mask:
    var(--fx-mask-bottom) bottom left / 100% var(--fx-sub-edge) no-repeat,
    linear-gradient(#000 0 0) top left / 100% calc(100% - var(--fx-sub-edge) + 1px) no-repeat;
  mask:
    var(--fx-mask-bottom) bottom left / 100% var(--fx-sub-edge) no-repeat,
    linear-gradient(#000 0 0) top left / 100% calc(100% - var(--fx-sub-edge) + 1px) no-repeat;
}

/* der nächste Abschnitt rückt unter die Kante – sein Hintergrund füllt die Kurve */
body:not(.fx-home) .page-hero + * {
  margin-top: calc(-1 * var(--fx-sub-edge));
  border-top: var(--fx-sub-edge) solid transparent;
}

/* Kartenreihe direkt unter dem Kopf: liegt wie auf der Startseite über der Kante */
body:not(.fx-home) .page-hero:has(+ .section-tight > .container > ul:first-child) {
  padding-bottom: calc(4.75rem + var(--fx-sub-edge));
}

body:not(.fx-home) .page-hero + .section-tight:has(> .container > ul:first-child) {
  position: relative;
  z-index: 2;
  margin-top: calc(-1 * (var(--fx-sub-edge) + 3.5rem));
  border-top: 0;
  padding-top: 0;
}

body:not(.fx-home) .page-hero + .section-tight > .container > ul:first-child > li {
  background: var(--weiss);
  box-shadow:
    0 22px 44px -24px rgba(38, 28, 46, 0.4),
    0 2px 6px rgba(38, 28, 46, 0.05);
}

@keyframes fx-in-up {
  from {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
  }
}

@keyframes fx-in-fade {
  from {
    opacity: 0;
  }
}

@keyframes fx-in-clip {
  from {
    clip-path: inset(100% 0 0 0 round 24px);
    transform: scale(1.05);
  }
  to {
    clip-path: inset(0 0 0 0 round 24px);
  }
}

@keyframes fx-word-up {
  from {
    opacity: 0;
    transform: translate3d(0, 105%, 0);
  }
}

.fx-motion body:not(.fx-home) .page-hero .eyebrow {
  animation: fx-in-fade 0.7s ease 0.05s both;
}

.fx-motion body:not(.fx-home) .page-hero h1:not(.fx-split) {
  opacity: 0;
}

.fx-motion:not(.fx-ready) body:not(.fx-home) .page-hero h1 {
  animation: fx-failsafe 0s 2.5s forwards;
}

.fx-motion .page-hero h1.fx-split .fx-wi {
  animation: fx-word-up 0.9s var(--fx-ease) calc(var(--i, 0) * 60ms + 80ms) both;
}

.fx-motion body:not(.fx-home) .page-hero h1 ~ :is(p, div, ul, form, nav) {
  animation: fx-in-up 0.9s var(--fx-ease) 0.4s both;
}

.fx-motion body:not(.fx-home) .page-hero-split > :last-child:not(:first-child) {
  animation: fx-in-up 1s var(--fx-ease) 0.25s both;
}

.fx-motion body:not(.fx-home) .page-hero-split > img.page-hero-photo:last-child {
  animation: fx-in-clip 1.3s var(--fx-ease) 0.15s both;
}

.fx-motion body:not(.fx-home) .page-hero + .section-tight > .container > ul:first-child > li {
  animation: fx-in-up 0.9s var(--fx-ease) both;
}

.fx-motion body:not(.fx-home) .page-hero + .section-tight > .container > ul:first-child > li:nth-child(1) { animation-delay: 0.55s; }
.fx-motion body:not(.fx-home) .page-hero + .section-tight > .container > ul:first-child > li:nth-child(2) { animation-delay: 0.65s; }
.fx-motion body:not(.fx-home) .page-hero + .section-tight > .container > ul:first-child > li:nth-child(3) { animation-delay: 0.75s; }
.fx-motion body:not(.fx-home) .page-hero + .section-tight > .container > ul:first-child > li:nth-child(4) { animation-delay: 0.85s; }

/* ================================================================
   Feature-Icons der Unterseiten: neues Icon-Set in violetten Kacheln (wie Startseite)
   ================================================================ */

:is(.how-icon, .about-value-icon, .event-benefit-icon, .price-row-icon, .partner-place-icon,
    .community-more-icon, .package-icon, .extra-icon):has(> .fx-icon) {
  border-radius: 16px;
  background: var(--violett);
  color: var(--weiss);
}

:is(.how-icon, .about-value-icon, .event-benefit-icon, .price-row-icon, .partner-place-icon,
    .community-more-icon, .package-icon, .extra-icon, .health-card-icon) > .fx-icon {
  width: 70%;
  height: 70%;
}

.stack-icon > .fx-icon {
  width: 54%;
  height: 54%;
  color: var(--weiss);
}

/* ================================================================
   Spielpartner: Szene aus den CD-Illustrationen bei „Matchday & Open Play“
   ================================================================ */

.dropin-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 400px);
  align-items: center;
  gap: 1rem 3rem;
}

.dropin-head .section-intro {
  margin-bottom: 0;
}

.dropin-scene {
  position: relative;
  aspect-ratio: 16 / 10.5;
}

/* helles Lila-Oval als Bühne, wie die Hintergrundflächen der CD-Illustration */
.dropin-scene::before {
  content: "";
  position: absolute;
  inset: 10% 6% 0;
  border-radius: 50%;
  background: #efeaf4;
}

.dropin-scene img {
  position: absolute;
  height: auto;
}

.dropin-scene-table {
  left: 20%;
  bottom: 10%;
  width: 60%;
}

.dropin-scene-left {
  left: 2%;
  bottom: 0;
  width: 36%;
}

.dropin-scene-right {
  right: 1%;
  bottom: 1%;
  width: 36%;
}

/* Einblenden: Bühne wächst, Platte steigt auf, die beiden kommen von links und rechts */
.fx-motion .dropin-scene::before,
.fx-motion .dropin-scene img {
  transition:
    opacity 0.8s ease,
    transform 1.1s var(--fx-ease);
}

.fx-motion .dropin-scene-table {
  transition-delay: 0.15s;
}

.fx-motion .dropin-scene-left,
.fx-motion .dropin-scene-right {
  transition-delay: 0.35s;
}

.fx-motion .dropin-scene:not(.is-in)::before {
  opacity: 0;
  transform: scale(0.85);
}

.fx-motion .dropin-scene:not(.is-in) .dropin-scene-table {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
}

.fx-motion .dropin-scene:not(.is-in) .dropin-scene-left {
  opacity: 0;
  transform: translate3d(-60px, 0, 0) rotate(-6deg);
}

.fx-motion .dropin-scene:not(.is-in) .dropin-scene-right {
  opacity: 0;
  transform: translate3d(60px, 0, 0) rotate(6deg);
}

/* Icons vor „Matchday“ und „Open Play“ */
.dropin-card h3 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.dropin-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 14px;
  background: var(--violett);
  color: var(--weiss);
}

.dropin-icon .fx-icon {
  width: 1.8rem;
  height: 1.8rem;
}

@media (max-width: 900px) {
  .dropin-head {
    grid-template-columns: 1fr;
  }

  .dropin-scene {
    width: min(100%, 380px);
    margin: 0.5rem auto 0;
  }
}

/* ================================================================
   Über uns: Hallen-Team gleichwertig zu den Gründern
   ================================================================ */

.staff-section .staff-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.staff-section .staff-card {
  gap: 0.25rem;
  padding: 2rem 1.5rem 1.75rem;
  border-radius: 20px;
  background: var(--weiss);
  box-shadow: var(--shadow-soft);
}

.staff-section .staff-card h3 {
  margin: 0.25rem 0 0;
  font-size: 1.25rem;
  line-height: 1.15;
  color: var(--violett);
}

.staff-section .staff-avatar,
.staff-section .staff-photo {
  width: 8.5rem;
  height: 8.5rem;
  font-size: 2.4rem;
}

.staff-role {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.35rem 0 0;
  padding: 0.3rem 0.85rem 0.3rem 0.55rem;
  border-radius: var(--pill);
  background: var(--violett);
  color: var(--weiss);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.staff-role .fx-icon {
  width: 1.35rem;
  height: 1.35rem;
}

.staff-area {
  margin: 0.6rem 0 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--ink);
}

.staff-bio {
  margin: 0.6rem 0 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
}

@media (max-width: 900px) {
  .staff-section .staff-grid {
    grid-template-columns: 1fr;
  }

  .staff-section .staff-card {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 1.25rem;
    padding: 1.25rem 1.25rem;
    text-align: left;
  }

  .staff-section .staff-avatar,
  .staff-section .staff-photo {
    width: 5.5rem;
    height: 5.5rem;
    margin: 0;
    font-size: 1.6rem;
  }

  .staff-section .staff-card h3 {
    margin: 0;
  }

  .staff-section .staff-card h3 {
    flex: 1 1 60%;
  }

  /* Porträt + Name in der ersten Zeile; Pill (textbreit), Bereich und Bio darunter */
  .staff-section .staff-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 1.25rem;
    row-gap: 0.4rem;
  }

  .staff-section .staff-card h3 {
    flex: none;
  }

  .staff-role,
  .staff-area,
  .staff-bio {
    grid-column: 1 / -1;
  }

  .staff-role {
    justify-self: start;
    margin-top: 0.35rem;
  }

  .staff-area,
  .staff-bio {
    flex-basis: 100%;
  }
}

/* ================================================================
   Responsiv
   ================================================================ */

@media (max-width: 1080px) {
  .fx-tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Tablet: zwei Kästen nebeneinander, Kacheln breiter und flacher */
@media (max-width: 1080px) {
  .fx-offer-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fx-offer-group .fx-tile {
    aspect-ratio: 1.6 / 1;
  }
}

/* ein Kasten pro Zeile: alle Kacheln einer Gruppe nebeneinander */
@media (max-width: 820px) {
  .fx-offer-groups {
    grid-template-columns: 1fr;
  }

  .fx-offer-group .fx-tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .fx-offer-group .fx-tile {
    aspect-ratio: 1.5 / 1;
  }

  .fx-offer-group .fx-tiles > .is-wide .fx-tile {
    aspect-ratio: 3.1 / 1;
  }
}

/* Handy: Kacheln werden zu kompakten Zeilen (Icon links, Text rechts) */
@media (max-width: 520px) {
  .fx-offer-group .fx-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
  }

  .fx-offer-group .fx-tiles > .is-wide {
    grid-column: auto;
  }

  .fx-offer-group .fx-tile,
  .fx-offer-group .fx-tiles > .is-wide .fx-tile {
    flex-direction: row;
    align-items: center;
    aspect-ratio: auto;
    min-height: 3.6rem;
    border-radius: 14px;
  }

  .fx-offer-group .fx-tile-icon {
    flex: 0 0 2.9rem;
  }

  .fx-offer-group .fx-tile-icon .fx-icon {
    width: 1.8rem;
  }

  .fx-offer-group .fx-tile-label {
    flex: 1;
    min-height: 0;
    padding: 0.45rem 0.55rem 0.45rem 0;
    background: none;
    font-size: 0.8rem;
    text-align: left;
    place-items: center start;
  }
}

@media (max-width: 900px) {
  .fx-steps-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "list"
      "alt";
    gap: 0.9rem;
    padding: 1.25rem 1.25rem 1.1rem;
  }

  .fx-steps-list {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .fx-step:not(:last-child)::after {
    display: none;
  }

  .fx-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(180px, auto);
  }

  .fx-perk-u6 {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 300px;
  }

  .fx-perk-shop {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .fx-tariff-track {
    padding-bottom: 0;
  }

  .fx-tariff-bar {
    flex-direction: column;
  }

  .fx-tariff {
    flex: none;
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "name price"
      "range half";
    align-items: baseline;
    gap: 0.2rem 1rem;
    padding: 0.95rem 1.1rem;
  }

  .fx-tariff:first-child {
    border-radius: 18px 18px 10px 10px;
  }

  .fx-tariff:last-child {
    border-radius: 10px 10px 18px 18px;
  }

  .fx-tariff-name {
    grid-area: name;
  }

  .fx-tariff-price {
    grid-area: price;
    margin: 0;
    font-size: 1.75rem;
    text-align: right;
  }

  .fx-tariff-range {
    grid-area: range;
    margin: 0;
    padding: 0;
  }

  .fx-tariff-half {
    grid-area: half;
    margin: 0;
    text-align: right;
  }

  .fx-tariff-now {
    top: -0.6rem;
    right: auto;
    left: 1rem;
  }

  .fx-tariff.is-now {
    transform: none;
  }

  .fx-tariff-gap,
  .fx-tariff-marker,
  .fx-tariff[data-start]::after {
    display: none;
  }

  .fx-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .fx-tile {
    border-radius: 16px;
  }

  .fx-tile-label {
    padding-inline: 0.3rem;
    font-size: 0.76rem;
    hyphens: auto;
    -webkit-hyphens: auto;
  }
}

@media (max-width: 560px) {
  .fx-hero {
    min-height: 0;
  }

  /* Text läuft über die ganze Breite – das Foto braucht mehr Abdunklung */
  .fx-hero::before {
    background: linear-gradient(0deg, rgba(38, 28, 46, 0.92) 0%, rgba(38, 28, 46, 0.7) 50%, rgba(38, 28, 46, 0.35) 100%);
  }

  .fx-hero-inner {
    padding-top: 6.5rem;
  }

  .fx-hero h1 {
    font-size: clamp(2.4rem, 11vw, 3rem);
  }

  .fx-bento {
    grid-template-columns: 1fr;
  }

  .fx-perk {
    grid-column: auto;
    min-height: 0;
  }

  .fx-perk-u6 {
    min-height: 280px;
  }

  .fx-perk-shop {
    min-height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fx-tile,
  .fx-tile .fx-icon,
  .fx-tariff,
  .fx-perk-photo img {
    transition: none;
  }

  .fx-tile:hover,
  .fx-tile:focus-visible {
    transform: none;
  }

  .fx-tile:hover .ball,
  .fx-tile:hover .scan {
    animation: none;
  }
}
