/* ==========================================================================
   Pricing
   ========================================================================== */

/* --- Hero ---------------------------------------------------------------- */
.pr-hero { position: relative; background: transparent; clip-path: inset(0); }
.pr-hero__inner {
  position: relative;
  z-index: 1;
  padding-block: 80px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.pr-hero__title { display: flex; gap: 24px; align-items: center; justify-content: center; flex-wrap: wrap; }
.pr-hero__title .h1 { white-space: nowrap; }

/* --- Plan cards ---------------------------------------------------------- */
.plans { background: var(--white); }
.plans__inner { padding-block: 0 48px; }
.plans .shead { width: 738px; max-width: 100%; }
.plans__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 13px;
}
.plan {
  position: relative;
  background: var(--white);
  border-radius: 24px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, .25);
  padding: 28px 22px 20px;
  display: flex;
  flex-direction: column;
  min-height: 633px;
  overflow: hidden;
}
.plan__top { display: flex; flex-direction: column; gap: 8px; }
.plan__name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.2;
}
.plan__desc { font-family: var(--font-body); font-weight: 300; font-size: 14px; line-height: 1.35; color: #2b2b2b; }
.plan__price {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.1;
  color: #437af7;
  margin-top: 18px;
}
.plan__price--free { color: #72c240; }
.plan__per { font-family: var(--font-body); font-weight: 300; font-size: 13px; color: #7a7a7a; margin-top: 6px; }
.plan__features { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.plan__features li { display: flex; gap: 10px; align-items: flex-start; }
.plan__features img { width: 16px; height: 16px; margin-top: 3px; flex: none; }
.plan__features p { font-family: var(--font-body); font-weight: 300; font-size: 14px; line-height: 1.3; }
.plan__specs { margin-top: auto; padding-top: 14px; display: flex; flex-direction: column; gap: 7px; }
.plan__specs li { font-family: var(--font-body); font-weight: 300; font-size: 12px; line-height: 1.2; color: #8a8a8a; }
.plan__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  margin-top: 12px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  transition: filter .18s ease, background-color .18s ease;
}
.plan__btn--ghost { border: 1px solid #cfcfcf; color: var(--black); background: var(--white); }
.plan__btn--ghost:hover { background: #f6f6f6; }
.plan__btn--solid { background: #ab22be; color: var(--white); }
.plan__btn--solid:hover { filter: brightness(1.1); }

.plan__ribbon {
  position: absolute;
  top: 0;
  right: 0;
  width: 116px;
  height: 116px;
  overflow: hidden;
  pointer-events: none;
}
.plan__ribbon span {
  position: absolute;
  top: 24px;
  right: -30px;
  width: 140px;
  transform: rotate(45deg);
  background: #72c240;
  color: var(--white);
  text-align: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .8px;
  padding: 4px 0;
}
.plan--business::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  background: linear-gradient(90deg, #4891d4, #56a8a4 55%, #ca88d7);
}
.plan__sml { display: flex; gap: 2px; padding: 3px; border-radius: 100px; background: #e8f0f9; flex: none; }
.plan__sml button {
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
  width: 26px;
  height: 26px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  color: #6d90c4;
}
.plan__sml button.is-active { background: #3974cc; color: var(--white); }

@media (max-width: 1180px) { .plans__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .plans__grid { grid-template-columns: 1fr; } .plan { min-height: 0; } }

/* --- Schnellstart -------------------------------------------------------- */
.qs { position: relative; background: transparent; height: 1556px; clip-path: inset(0); }
.qs .shead { position: absolute; left: 81px; top: 48px; width: 612px; max-width: calc(100% - 2 * var(--gutter)); }
.qs__row { position: absolute; display: flex; align-items: center; }
.qs__row--1 { left: 132px; top: 271px; gap: 94px; }
.qs__row--2 { left: 69px; top: 704.8px; gap: 42px; }
.qs__row--3 { left: 132px; top: 1137.8px; gap: 70px; }
.qs__copy { display: flex; gap: 16px; align-items: flex-start; flex: none; }
.qs__num {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 20px;
  background: var(--blue-light);
  color: var(--blue-main);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 24px;
}
.qs__body { display: flex; flex-direction: column; gap: 8px; }
.qs__body h3 { font-family: var(--font-head); font-weight: 700; font-size: 24px; line-height: normal; color: var(--blue-main); }
.qs__check { display: flex; gap: 8px; align-items: flex-start; }
.qs__check p { font-family: var(--font-body); font-weight: 300; font-size: 16px; line-height: normal; }
.qs__shot { flex: none; border-radius: 16px; box-shadow: 0 4px 4px rgba(0, 0, 0, .25); overflow: hidden; }
.qs__shot--1 { width: 628px; height: 353.8px; }
/* Animierte Schritte: Rahmen und Schatten bringt .an mit (feature-anim.css) */
.qs__shot--anim { border-radius: 0; box-shadow: none; overflow: visible; height: auto; }
.qs__shot--3 { width: 628px; height: 354px; border-radius: 24px; }
.qs__panel {
  flex: none;
  width: 633px;
  height: 353px;
  background: var(--white);
  border-radius: 16px;
  filter: drop-shadow(0 4px 2px rgba(0, 0, 0, .25));
  position: relative;
  overflow: hidden;
}
/* LLM-Animation (aus der alten Seite): quadratisches SVG mittig im Panel */
.qs__panel--anim { display: flex; align-items: center; justify-content: center; }
.qs__panel .llm { width: auto; height: 94%; max-width: 100%; overflow: visible; }
.llm-rotate-slow { transform-origin: 250px 250px; animation: llm-spin 15s linear infinite; }
.llm-rotate-slow-reverse { transform-origin: 250px 250px; animation: llm-spin-reverse 20s linear infinite; }
.llm-pulse { transform-origin: 250px 250px; animation: llm-pulse-scale 3s ease-in-out infinite; }
.llm-pulse-delay { transform-origin: 250px 250px; animation: llm-pulse-scale 3s ease-in-out infinite 1.5s; }
.llm-float-1 { animation: llm-float 4s ease-in-out infinite; }
.llm-float-2 { animation: llm-float 5s ease-in-out infinite 1s; }
.llm-float-3 { animation: llm-float 4.5s ease-in-out infinite 2s; }
.llm-dash-flow { stroke-dasharray: 8 12; animation: llm-dash-move 20s linear infinite; }
.llm-spark { animation: llm-fade-in-out 3s infinite; transform-box: fill-box; transform-origin: center; }
@keyframes llm-spin { 100% { transform: rotate(360deg); } }
@keyframes llm-spin-reverse { 100% { transform: rotate(-360deg); } }
@keyframes llm-pulse-scale { 0%, 100% { transform: scale(.95); opacity: .8; } 50% { transform: scale(1.05); opacity: 1; } }
@keyframes llm-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes llm-dash-move { 0% { stroke-dashoffset: 200; } 100% { stroke-dashoffset: 0; } }
@keyframes llm-fade-in-out { 0%, 100% { opacity: .2; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.2); } }
@media (prefers-reduced-motion: reduce) { .llm * { animation: none !important; } }

@media (max-width: 1400px) {
  .qs { height: auto; padding-block: 48px 64px; }
  .qs .shead { position: static; width: 100%; max-width: 100%; margin-inline: auto; padding-inline: var(--gutter); }
  .qs__row { position: static; flex-wrap: wrap; gap: 32px !important; margin: 56px auto 0; max-width: 1280px; padding-inline: var(--gutter); }
  /* Gestapelt steht der Text immer zuerst – auch in Reihe 2, deren Grafik im
     DOM vorn liegt (auf dem Desktop dreht row-reverse die Seiten). */
  .qs__row--2 { flex-direction: row; }
  .qs__row--2 .qs__copy { order: -1; }
  .qs__shot, .qs__panel { width: 100%; max-width: 628px; height: auto; }
  .qs__shot--1 { aspect-ratio: 628 / 354; }
  .qs__shot--3 { aspect-ratio: 628 / 354; }
  .qs__panel { aspect-ratio: 633 / 353; }
  .qs__copy { flex: 1 1 320px; }
}
@media (max-width: 700px) {
  .qs__row, .qs__row--2 { flex-direction: column; }
  /* In der Spalte würde flex-basis: 320px zur Mindesthöhe und ließe unter
     dem Text ein Loch. */
  .qs__copy { flex: 0 0 auto; width: 100%; }
  .qs__check p, .qs__body h3 { word-break: break-word; }
}

/* --- Enterprise ---------------------------------------------------------- */
.ent { background: var(--blue-dark-2); color: var(--white); position: relative; height: 581px; }
.ent .shead { position: absolute; left: var(--gutter); top: 48px; width: 738px; max-width: calc(100% - 2 * var(--gutter)); }
.ent__cards {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  top: 288px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px;
  align-items: stretch;
}
.ent__card {
  background: var(--white);
  color: var(--black);
  border-radius: 16px;
  filter: drop-shadow(0 4px 2px rgba(0, 0, 0, .25));
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.ent__card img { width: 40px; height: 40px; }
.ent__card p { font-family: var(--font-head); font-weight: 700; font-size: 15px; line-height: normal; text-transform: uppercase; overflow-wrap: anywhere; }
.ent__cta { position: absolute; left: 50%; top: 485px; transform: translateX(-50%); }

/* Unter 1240px fließt der Abschnitt normal. Den Seitenabstand, den auf dem
   Desktop `left: var(--gutter)` gibt, übernimmt dann das Padding der Sektion –
   sonst klebt die Überschrift am Bildschirmrand. */
@media (max-width: 1240px) {
  .ent { height: auto; padding: 48px var(--gutter); }
  .ent .shead, .ent__cards, .ent__cta { position: static; width: 100%; max-width: 100%; transform: none; }
  .ent__cards { grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
  .ent__cta { display: flex; justify-content: center; margin-top: 40px; }
}
@media (max-width: 900px) {
  /* Bei vier Spalten bräche „SLA-Vereinbarungen" mitten im Wort. */
  .ent__cards { grid-template-columns: repeat(3, 1fr); }
  /* Sieben Karten: die letzte läuft über die ganze Zeile, statt allein
     links zu stehen. */
  .ent__card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 700px) { .ent__cards { grid-template-columns: repeat(2, 1fr); } }

/* --- Integrationen ------------------------------------------------------- */
/* Karte: Blueprint-Raster, dezenter Glow hinter dem Hub, S-Kurven mit
   wandernden Strichen und Punkten (Plum rein, Blau raus).
   Die SVG-Karte ist fest 1440 × 760 und links verankert — dieselben Pixel wie
   die absolut gesetzten Spalten, so bleiben Kurven und Chips deckungsgleich. */
.integ { position: relative; background: transparent; height: 760px; clip-path: inset(0); }
.integ .shead { position: absolute; left: var(--gutter); top: 48px; width: 738px; max-width: calc(100% - 2 * var(--gutter)); z-index: 1; }
.integ .shead .eyebrow { font-size: 16px; letter-spacing: 1.6px; }
.integ__map { position: absolute; inset: 0; }
.integ__lines { position: absolute; left: 0; top: 0; width: 1440px; height: 760px; z-index: 0; overflow: visible; }
.integ__glow { transform-origin: 720px 495px; animation: integ-breathe 7s ease-in-out infinite; }
.integ__paths { stroke-opacity: .55; }
.integ__paths use { transition: stroke-opacity .2s ease, stroke-width .2s ease; }
.integ__flow { stroke-opacity: .7; }
.integ__flow use { animation: integ-dash 1.6s linear infinite; }
@keyframes integ-breathe { 0%, 100% { transform: scale(.96); opacity: .85; } 50% { transform: scale(1.05); opacity: 1; } }
@keyframes integ-dash { to { stroke-dashoffset: -20; } }

.integ__col { position: absolute; top: 323px; width: 338px; display: flex; flex-direction: column; gap: 16px; z-index: 1; }
.integ__col--in { left: 173px; }
.integ__col--out { left: 930px; }
.integ__lbl {
  position: absolute;
  bottom: 100%;
  left: 0;
  margin: 0 0 12px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--plum-main);
}
.integ__col--out .integ__lbl { color: var(--blue-main); }
.integ__chip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 10px 16px 10px 22px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px var(--plum-main), 0 6px 18px rgba(186, 0, 196, .08);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 16px;
  color: var(--text-muted);
  transition: transform .2s ease, box-shadow .2s ease;
}
.integ__chip .ico { flex: none; width: 24px; height: 24px; }
/* Anschluss-Punkt an der Kante, auf der die Kurve andockt */
.integ__chip::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -5px;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--plum-main);
  box-shadow: 0 0 0 3px var(--white);
}
.integ__col--out .integ__chip { box-shadow: inset 0 0 0 1px var(--blue-main), 0 6px 18px rgba(44, 123, 255, .10); }
.integ__col--out .integ__chip::after { right: auto; left: -5px; background: var(--blue-main); }
.integ__chip:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px var(--plum-main), 0 10px 24px rgba(186, 0, 196, .16); }
.integ__col--out .integ__chip:hover { box-shadow: inset 0 0 0 1.5px var(--blue-main), 0 10px 24px rgba(44, 123, 255, .18); }
/* Hover auf einem Chip hebt seine Kurve hervor */
.integ__map:has(.integ__col--in .integ__chip:nth-of-type(1):hover) .in-1,
.integ__map:has(.integ__col--in .integ__chip:nth-of-type(2):hover) .in-2,
.integ__map:has(.integ__col--in .integ__chip:nth-of-type(3):hover) .in-3,
.integ__map:has(.integ__col--in .integ__chip:nth-of-type(4):hover) .in-4,
.integ__map:has(.integ__col--in .integ__chip:nth-of-type(5):hover) .in-5,
.integ__map:has(.integ__col--out .integ__chip:nth-of-type(1):hover) .out-1,
.integ__map:has(.integ__col--out .integ__chip:nth-of-type(2):hover) .out-2,
.integ__map:has(.integ__col--out .integ__chip:nth-of-type(3):hover) .out-3,
.integ__map:has(.integ__col--out .integ__chip:nth-of-type(4):hover) .out-4,
.integ__map:has(.integ__col--out .integ__chip:nth-of-type(5):hover) .out-5 { stroke-opacity: 1; stroke-width: 3.2; }

.integ__hub {
  position: absolute;
  left: 50%;
  top: 495px;
  transform: translate(-50%, -50%);
  background: var(--white);
  box-shadow: 0 14px 36px rgba(44, 123, 255, .16), 0 2px 6px rgba(0, 0, 0, .06);
  border-radius: 16px;
  padding: 34px 40px 24px;
  text-align: center;
  z-index: 2;
}
/* Verlaufsrahmen Plum → Blau, als Maske ausgestanzt */
.integ__hub::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1.5px;
  background: linear-gradient(135deg, var(--plum-main), var(--blue-main));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .55;
  pointer-events: none;
}
.integ__hub img { display: block; width: 161.5px; height: 40.24px; margin: 0 auto; }
.integ__hub-cap {
  display: block;
  margin-top: 14px;
  white-space: nowrap;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 10.5px;
  line-height: 1.7;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #6b6b6b;
}

@media (prefers-reduced-motion: reduce) {
  .integ__glow, .integ__flow use { animation: none; }
  .integ__dots { display: none; }
}

@media (max-width: 1240px) {
  .integ { height: auto; padding: 48px var(--gutter); }
  .integ .shead { position: static; width: 100%; max-width: 100%; }
  .integ__map { position: static; display: flex; flex-direction: column; align-items: center; gap: 0; margin-top: 40px; }
  .integ__col { position: static; width: 100%; max-width: 338px; }
  .integ__lbl { position: static; margin: 0 0 4px; }
  /* gestrichelte Verbinder ersetzen die Kurven */
  .integ__col--in::after, .integ__col--out::before { content: ""; align-self: center; width: 0; height: 32px; border-left: 2px dashed var(--plum-main); }
  .integ__col--in::after { margin-top: 8px; }
  .integ__col--out::before { border-color: var(--blue-main); margin-bottom: 8px; }
  .integ__hub { position: static; transform: none; order: 2; margin: 12px 0; padding: 32px 40px 28px; }
  .integ__hub-cap { white-space: normal; }
  .integ__col--out { order: 3; }
  .integ__lines { display: none; }
  .integ__chip { padding: 10px 16px 10px 18px; }
  .integ__chip::after { display: none; }
}

/* --- Abrechnung (monatlich / jährlich) ----------------------------------- */
.billing {
  display: flex;
  gap: 4px;
  width: max-content;
  max-width: 100%;
  margin: 32px auto 0;
  padding: 4px;
  border-radius: 100px;
  background: #e8f0f9;
}
.billing__opt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 20px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: #6d90c4;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.billing__opt.is-active { background: #3974cc; color: var(--white); }
.billing__badge {
  padding: 3px 8px;
  border-radius: 100px;
  background: #72c240;
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .3px;
  white-space: nowrap;
}

/* Varianten-Schalter: .tv folgt data-tier der Karte (und data-billing der
   Sektion, wo gesetzt), .tb nur data-billing. Ohne JS bleibt S / monatlich. */
.tv, .tb { display: none; }
.plan--business[data-tier="s"] .tv[data-for="s"],
.plan--business[data-tier="m"] .tv[data-for="m"],
.plan--business[data-tier="l"] .tv[data-for="l"] { display: inline; }
.plans[data-billing="monthly"] .plan--business .tv[data-billing="yearly"],
.plans[data-billing="yearly"] .plan--business .tv[data-billing="monthly"] { display: none; }
.plans[data-billing="monthly"] .tb[data-billing="monthly"],
.plans[data-billing="yearly"] .tb[data-billing="yearly"] { display: inline; }
@media (max-width: 640px) { .billing { width: 100%; } .billing__opt { flex: 1; justify-content: center; padding: 0 12px; } }

/* --- Beratung & Integration --------------------------------------------- */
.onb { position: relative; padding-block: 96px; overflow: hidden; }
.onb__glow { position: absolute; left: 52%; top: -12%; width: 62%; pointer-events: none; }
.onb__inner { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.onb__copy .shead__title { margin-top: 16px; }
.onb__copy .lead { margin-top: 16px; }
.onb__points { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.onb__point { display: flex; gap: 16px; align-items: flex-start; }
.onb__ib { flex: none; width: 48px; height: 48px; border-radius: 12px; background: var(--blue-light); display: grid; place-items: center; }
.onb__ib img { width: 24px; height: 24px; }
.onb__point h3 { font-family: var(--font-head); font-weight: 700; font-size: 18px; line-height: 1.3; color: var(--blue-dark-2); }
.onb__point p { margin-top: 4px; font-family: var(--font-body); font-weight: 300; font-size: 16px; line-height: 1.5; }
.onb__cta { margin-top: 36px; }
.onb__art { min-width: 0; }
/* Die Lottie-Szene wird eingeblendet, sobald sie geparst ist (wie der Hero). */
.onb__scene {
  width: 100%;
  aspect-ratio: 3 / 2;
  opacity: 0;
  transform: translateY(10px) scale(.985);
  transition: opacity .7s ease, transform .9s cubic-bezier(.22, .8, .28, 1);
}
.onb__scene.is-ready { opacity: 1; transform: none; }
.onb__scene svg { display: block; width: 100%; height: 100%; overflow: visible; }
.onb__scene img { width: 100%; height: auto; }
@media (prefers-reduced-motion: reduce) { .onb__scene { transition: none; opacity: 1; transform: none; } }
@media (max-width: 1100px) {
  .onb { padding-block: 64px; }
  .onb__inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .onb__art { width: 100%; max-width: 720px; margin: 0 auto; }
}

/* Integrations-Hinweise unter der Karte */
.integ { height: 830px; }
.integ__notes {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  top: 724px;
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
  z-index: 1;
}
.integ__notes li { display: flex; align-items: center; gap: 8px; font-family: var(--font-body); font-weight: 300; font-size: 15px; color: var(--text-muted); }
.integ__notes img { width: 16px; height: 16px; flex: none; }
@media (max-width: 1240px) {
  .integ { height: auto; }
  .integ__notes { position: static; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 32px; }
}
