/* Styles for the /leistungen/* service subpages. These are DELIBERATELY new section
   layouts, not the homepage's sections reused verbatim - only the design language (color
   variables, type classes, corner-radius/shadow conventions, button styles) is shared with
   the rest of the site, exactly as on the homepage. */

/* ---------- Scroll reveal: fade + rise, same easing as the homepage's other scroll
   moments. Applied broadly across these pages for a bit more life while scrolling. ---------- */
.leistung-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.19, 1, 0.22, 1), transform 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}

.leistung-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .leistung-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Hero: bold gradient banner (same gradient recipe as the site's CTA card),
   icon badge instead of a full illustration split, plus a soft blob accent and a small
   trust row underneath for immediate credibility. ---------- */
.leistung-hero {
  background-color: #fff;
  padding: 30px 0 0;
}

/* .container-padding-normal carries its own 60px 15px padding, meant for
   regular sections - inside a hero wrapper that stacked on top of the
   section's own top padding above, so the real gap was 30px + 60px (or
   15px + 60px on mobile), not the 30px/15px it looked like from the section
   rule alone. Hero wrappers use this instead: no extra vertical padding,
   same 15px side gutter. */
.container-padding-hero {
  max-width: 1400px;
  padding: 0 15px;
}

.leistung-hero-card {
  background-image: radial-gradient(circle farthest-corner at 0% 0%, var(--sekundär), var(--primär) 45%);
  border-radius: 24px;
  padding: 70px 80px;
  display: flex;
  align-items: center;
  gap: 60px;
  overflow: hidden;
  position: relative;
}

.leistung-hero-card::after {
  content: '';
  position: absolute;
  inset: auto -10% -40% auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background-color: #ffffff0d;
}

.leistung-hero-card::before {
  content: '';
  position: absolute;
  top: -18%;
  left: 28%;
  width: 260px;
  height: 260px;
  background-color: var(--tertiär);
  opacity: 0.14;
  border-radius: 42% 58% 65% 35% / 45% 40% 60% 55%;
}

.leistung-hero-text {
  flex: 1.3 1 0;
  min-width: 0;
  position: relative;
}

.leistung-hero-text .text-size-small {
  color: var(--tertiär);
}

.leistung-hero-text .h1 {
  color: #fff;
  margin: 10px 0 16px;
}

.leistung-hero-text p {
  color: #fff;
  opacity: 0.85;
  margin-bottom: 28px;
}

.leistung-hero-badge {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.leistung-hero-badge-circle {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background-color: #ffffff14;
  border: 1px solid #ffffff26;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12%;
}

.leistung-hero-badge-circle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.leistung-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  padding: 26px 6px 0;
}

.leistung-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--black);
  opacity: 0.75;
  font-size: 0.9rem;
}

.leistung-trust-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--tertiär);
}

@media screen and (max-width: 900px) {
  .leistung-hero {
    padding-top: 15px;
  }

  .leistung-hero-card {
    flex-flow: column;
    padding: 44px 32px;
    gap: 32px;
    border-radius: 20px;
  }

  .leistung-hero-badge-circle {
    max-width: 220px;
  }

  .leistung-trust-row {
    flex-flow: column;
    gap: 10px;
  }
}

/* ---------- Feature grid: numbered circle badge + heading + text, no photography.
   Distinct from the homepage's illustrated s-leistung cards. ---------- */
.leistung-features {
  background-color: #fff;
}

.leistung-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.leistung-feature-item {
  border: 1px solid #00000012;
  border-radius: 16px;
  padding: 32px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.leistung-feature-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 40px -20px #1a1a1a26;
  border-color: #0000;
}

.leistung-feature-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--sekundär);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.leistung-feature-item h3 {
  margin-bottom: 10px;
}

.leistung-feature-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-flow: column;
  gap: 8px;
}

.leistung-feature-list li {
  color: var(--black);
  opacity: 0.75;
  font-size: 0.92rem;
  padding-left: 18px;
  position: relative;
}

.leistung-feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--tertiär);
}

@media screen and (max-width: 900px) {
  .leistung-features-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- "Konkret für Ihre Praxis": a two-column deep-dive block giving a tangible
   example instead of just abstract claims - new to these pages, no homepage equivalent. ---------- */
.leistung-deepdive {
  background-color: var(--sekundär);
  position: relative;
  overflow: hidden;
}

.leistung-deepdive::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -8%;
  width: 480px;
  height: 480px;
  background-color: #ffffff08;
  border-radius: 38% 62% 55% 45% / 45% 50% 50% 55%;
}

.leistung-deepdive .text-size-small {
  color: var(--tertiär);
}

.leistung-deepdive h2,
.leistung-deepdive-intro p {
  color: #fff;
}

.leistung-deepdive-intro {
  max-width: 640px;
  margin-bottom: 44px;
}

.leistung-deepdive-intro p {
  opacity: 0.8;
}

.leistung-deepdive-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.leistung-deepdive-card {
  background-color: #ffffff0d;
  border: 1px solid #ffffff1f;
  border-radius: 16px;
  padding: 28px 30px;
}

.leistung-deepdive-card h3 {
  color: #fff;
  margin-bottom: 10px;
}

.leistung-deepdive-card p {
  color: #fff;
  opacity: 0.78;
  margin: 0;
}

@media screen and (max-width: 900px) {
  .leistung-deepdive-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Vorteile: compact stat cards in a row, big faded number, no imagery.
   Distinct from the homepage's alternating image/text zigzag rows. ---------- */
.leistung-vorteile {
  background-color: var(--quatär);
}

.leistung-vorteile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Pages with only 3 cards (e.g. kostenlose-praxisanalyse) add this modifier
   instead of an inline style, so the responsive overrides below still apply -
   an inline style would out-specificity them and break the mobile collapse. */
.leistung-vorteile-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.leistung-vorteile-card {
  background-color: #fff;
  border-radius: 16px;
  padding: 32px 26px;
  box-shadow: 0 20px 40px -24px #1a1a1a26;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.leistung-vorteile-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 48px -22px #1a1a1a33;
}

.leistung-vorteile-num {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--primär);
  opacity: 0.2;
  margin-bottom: -0.6rem;
}

.leistung-vorteile-card h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.leistung-vorteile-card p {
  color: var(--black);
  opacity: 0.75;
  font-size: 0.92rem;
}

@media screen and (max-width: 1100px) {
  .leistung-vorteile-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 600px) {
  .leistung-vorteile-grid {
    grid-template-columns: 1fr;
  }

  .leistung-vorteile-num {
    font-size: 2.25rem;
    margin-bottom: 2px;
  }
}

/* ---------- Prozess: vertical connected timeline with a duration tag per step.
   Distinct from the homepage's horizontal stepper. ---------- */
.leistung-prozess {
  background-color: var(--quatär);
}

.leistung-timeline {
  position: relative;
  display: flex;
  flex-flow: column;
  gap: 36px;
}

.leistung-timeline::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 23px;
  width: 2px;
  background-color: #0b2c561a;
}

.leistung-timeline-step {
  position: relative;
  padding-left: 64px;
}

.leistung-timeline-node {
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--sekundär);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.leistung-timeline-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.leistung-timeline-head h3 {
  margin: 0;
}

.leistung-timeline-duration {
  background-color: var(--quatär);
  color: var(--primär);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 980px;
  white-space: nowrap;
}

/* ---------- FAQ: plain bordered accordion list (native <details>), single column.
   Distinct from the homepage's split question-list/answer-panel layout. ---------- */
.leistung-faq {
  background-color: var(--quatär);
}

/* ---------- FAQ design ported from the homepage (.faq-v2-*) onto the Leistungsseiten,
   scoped to .leistung-faq--v2 so the shared .faq-3-* component keeps its original look
   on every other page that reuses it (Pakete, Praxisanalyse, Magazin). ---------- */
.leistung-faq--v2 {
  background-color: #fff;
}

.leistung-faq--v2 .faq-3-qlabel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--sekundär);
  opacity: 1;
  font-weight: 700;
  font-size: 17px;
  padding: 18px 22px;
  border-radius: 16px;
}

.leistung-faq--v2 .faq-3-qlabel span {
  font-size: 18px;
  flex-shrink: 0;
}

.leistung-faq--v2 .faq-3-panel {
  background-color: var(--quatär);
  border-radius: 28px;
  padding: 44px;
}

.leistung-faq--v2 .faq-3-answer-title {
  font-family: Clashdisplay, Verdana, sans-serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.15;
  margin: 0 0 18px;
  color: var(--sekundär);
}

.leistung-faq--v2 .faq-3-answer p {
  margin: 0;
  font-size: 18px;
  line-height: 1.65;
  color: var(--sekundär);
}

@media screen and (max-width: 900px) {
  /* On this breakpoint the .faq-3-* base CSS turns the layout into a per-item
     accordion, so the question already sits directly above its answer - the
     repeated title from the desktop two-column view would just duplicate it. */
  .leistung-faq--v2 .faq-3-answer-title {
    display: none;
  }
}

.leistung-faq-list {
  display: flex;
  flex-flow: column;
  gap: 12px;
  max-width: 820px;
  margin: 0 auto;
}

.leistung-faq-item {
  background-color: #fff;
  border-radius: 12px;
  padding: 20px 24px;
  transition: box-shadow 0.2s ease;
}

.leistung-faq-item[open] {
  box-shadow: 0 16px 32px -22px #1a1a1a33;
}

.leistung-faq-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--black);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.leistung-faq-summary::-webkit-details-marker {
  display: none;
}

.leistung-faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
}

.leistung-faq-icon::before,
.leistung-faq-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background-color: var(--primär);
  transform: translate(-50%, -50%);
}

.leistung-faq-icon::before {
  width: 12px;
  height: 2px;
}

.leistung-faq-icon::after {
  width: 2px;
  height: 12px;
  transition: transform 0.2s ease;
}

.leistung-faq-item[open] .leistung-faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.leistung-faq-answer {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #00000014;
  color: var(--black);
  opacity: 0.75;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---------- CTA: single centered card, not the split checklist layout. ---------- */
.leistung-cta-box {
  background-image: radial-gradient(circle farthest-corner at 100% 100%, var(--sekundär), var(--primär) 45%);
  border-radius: 24px;
  padding: 60px;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.leistung-cta-box .text-size-small {
  color: var(--tertiär);
}

.leistung-cta-box h2 {
  color: #fff;
  margin: 10px 0 14px;
}

.leistung-cta-box p {
  color: #fff;
  opacity: 0.85;
  margin-bottom: 28px;
}

@media screen and (max-width: 900px) {
  .leistung-cta-box {
    padding: 40px 28px;
  }
}
