/* ========================================================================
   service-page.css
   Einheitliches Layout für Leistungs- und Kursseiten:
   Hero → Inhalt mit Porträtkarte → Honorar → Formular → Kontakt.
   ======================================================================== */

/* Hero ------------------------------------------------------------------ */

.service-hero {
  padding: clamp(64px, 8vw, 108px) 0;
  border-bottom: 1px solid var(--color-line);
  background:
    linear-gradient(
      135deg,
      var(--color-band-strong),
      var(--color-base-strong)
    );
}

.service-hero__inner {
  max-width: 980px;
}

.service-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  letter-spacing: -0.035em;
}

.service-hero__subtitle {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--color-muted);
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  line-height: 1.65;
}

/* Inhaltslayout --------------------------------------------------------- */

.service-content {
  padding: clamp(64px, 8vw, 104px) 0;
  background: var(--color-surface);
}

.service-content__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 300px);
  align-items: start;
  gap: clamp(42px, 7vw, 88px);
}

.service-prose {
  min-width: 0;
  max-width: 820px;
  color: var(--color-text);
  font-size: clamp(1rem, 1.05vw, 1.075rem);
  line-height: 1.8;
}

.service-prose > p {
  max-width: 780px;
  margin: 0 0 1.55rem;
}

.service-prose > p:first-child {
  color: var(--color-muted);
  font-size: clamp(1.04rem, 1.25vw, 1.15rem);
  line-height: 1.75;
}

.service-prose h2 {
  margin: 3.25rem 0 1.1rem;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.015em;
}

.service-prose h2:first-child {
  margin-top: 0;
}

.service-prose h3 {
  margin: 2.4rem 0 0.9rem;
  font-size: clamp(1.3rem, 2.3vw, 1.72rem);
}

.service-prose ul,
.service-prose ol {
  display: grid;
  gap: 0.6rem;
  max-width: 790px;
  margin: 0 0 2.2rem;
  padding: 0;
  list-style: none;
}

.service-prose li {
  position: relative;
  padding-left: 1.65rem;
  line-height: 1.65;
}

.service-prose ul li::before {
  position: absolute;
  top: 0.72em;
  left: 0.15rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-brand);
  content: "";
  transform: translateY(-50%);
}

.service-prose ol {
  counter-reset: service-list;
}

.service-prose ol li {
  counter-increment: service-list;
}

.service-prose ol li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--color-brand-dark);
  content: counter(service-list) ".";
  font-weight: 750;
}

.service-prose a {
  color: var(--color-brand-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

/* Porträtkarte ---------------------------------------------------------- */

.provider-card {
  position: sticky;
  top: 124px;
  width: 100%;
  max-width: 300px;
  justify-self: end;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 20px;
  background: var(--color-background);
  box-shadow: 0 20px 55px var(--color-shadow-soft);
}

.provider-card img {
  width: 100%;
  aspect-ratio: 2 / 2.65;
  object-fit: cover;
  object-position: center 20%;
}

.provider-card__body {
  padding: 1.35rem 1.4rem 1.45rem;
}

.provider-card__label {
  margin: 0 0 0.45rem;
  color: var(--color-brand-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.provider-card h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.4rem, 2vw, 1.65rem);
}

.provider-card p:not(.provider-card__label) {
  margin: 0 0 1rem;
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.provider-card a {
  display: inline-flex;
  align-items: center;
  color: var(--color-brand-dark);
  font-size: 0.88rem;
  font-weight: 750;
}

.provider-card a::after {
  margin-left: 0.4rem;
  content: "→";
  transition: transform var(--transition);
}

.provider-card a:hover::after {
  transform: translateX(3px);
}

/* Honorar --------------------------------------------------------------- */

.price-section {
  margin-top: clamp(3.2rem, 6vw, 4.4rem);
  padding: clamp(1.65rem, 4vw, 2.6rem);
  border: 1px solid var(--color-line);
  border-radius: 20px;
  background:
    linear-gradient(
      135deg,
      var(--color-background),
      var(--color-band-translucent)
    );
}

.service-prose .price-section h2 {
  margin: 0 0 1rem;
}

.price-section p {
  margin: 0 0 0.8rem;
}

.price-section p:last-child {
  margin-bottom: 0;
}

.price-section__value {
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  font-weight: 500;
  line-height: 1.35;
}


/* Responsive ------------------------------------------------------------ */

@media (max-width: 900px) {
  .service-content__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .provider-card {
    position: static;
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    width: min(100%, 660px);
    max-width: 660px;
    justify-self: start;
    order: -1;
  }

  .provider-card img {
    height: 100%;
    min-height: 240px;
    aspect-ratio: auto;
  }
}

@media (max-width: 640px) {
  .service-hero {
    padding: 52px 0 58px;
  }

  .service-hero h1 {
    font-size: clamp(2.35rem, 11vw, 3.6rem);
  }

  .service-content {
    padding: 54px 0 68px;
  }

  .service-prose h2 {
    margin-top: 2.65rem;
  }

  .price-section {
    margin-top: 2.8rem;
    padding: 1.5rem;
    border-radius: 16px;
  }
}

@media (max-width: 560px) {
  .provider-card {
    grid-template-columns: 1fr;
    width: min(100%, 380px);
    justify-self: center;
  }

  .provider-card img {
    height: auto;
    min-height: 0;
    aspect-ratio: 2 / 2.45;
    object-position: center 19%;
  }

  .provider-card__body {
    padding: 1.2rem 1.25rem 1.35rem;
  }
}

/* ==========================================================================
   Mobile-first structural overrides
   ========================================================================== */

.service-hero {
  padding: var(--section-space) 0;
}

.service-hero h1 {
  font-size: var(--font-size-h1);
  overflow-wrap: anywhere;
}

.service-hero__subtitle {
  font-size: var(--font-size-lead);
}

.service-content {
  padding: var(--section-space) 0;
}

.service-content__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

.service-prose {
  max-width: var(--measure);
  font-size: var(--font-size-body);
}

.provider-card {
  position: static;
  display: block;
  width: min(100%, 23.75rem);
  order: initial;
  justify-self: center;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.provider-card img {
  height: auto;
  min-height: 0;
  aspect-ratio: 4 / 5;
  object-position: center 19%;
}

.provider-card__body {
  padding: var(--space-lg);
}

.price-section {
  margin-top: var(--space-2xl);
  padding: var(--space-lg);
  border-radius: var(--radius-card);
}


@media (min-width: 48rem) {
  .provider-card {
    display: grid;
    width: min(100%, 41.25rem);
    grid-template-columns: 11.875rem minmax(0, 1fr);
  }

  .provider-card img {
    height: 100%;
    aspect-ratio: auto;
  }
}

@media (min-width: 64rem) {
  .service-content__inner {
    grid-template-columns: minmax(0, 1fr) minmax(15.625rem, 18.75rem);
    gap: var(--space-3xl);
  }

  .provider-card {
    position: sticky;
    top: 7.75rem;
    display: block;
    width: 100%;
  }

  .provider-card img {
    height: auto;
    aspect-ratio: 2 / 2.65;
  }
}

/* Gemeinsame Kursleitung mit beiden Inhaberinnen. */
.provider-card__portraits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
}

.provider-card__portraits img {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 19%;
}

.provider-card__portraits img + img {
  border-left: 1px solid var(--color-line);
}

.provider-card__team-roles {
  display: grid;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.provider-card .provider-card__team-roles p {
  margin: 0;
}

.provider-card__team-roles strong,
.provider-card__team-roles span {
  display: block;
}

.provider-card__team-roles strong {
  margin-bottom: var(--space-2xs);
  color: var(--color-text-default);
}

@media (min-width: 48rem) {
  .provider-card--team {
    display: block;
  }
}

/* ==========================================================================
   Einzelseite (Model B): Hero-CTA, Check-Liste, Honorar-Hinweis, Porträt-Zitat
   ========================================================================== */

.service-hero__actions {
  margin-top: var(--space-lg);
}

/* „Wann Sie bei mir richtig sind" – Liste mit Häkchen statt Punkt */
.service-prose ul.check-list {
  gap: 0.85rem;
  margin-top: 1.4rem;
}

.service-prose ul.check-list li {
  padding-left: 2.5rem;
}

.service-prose ul.check-list li::before {
  top: 0.1em;
  left: 0;
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--color-brand-wash);
  color: var(--color-brand-dark);
  content: "\2713";
  font-size: 0.9rem;
  font-weight: 800;
  transform: none;
}

/* Transparenter Krankenkassen-Hinweis in der Honorar-Box */
.service-prose .price-section .price-note {
  margin-top: 1.15rem;
  padding: 0.9rem 1.1rem;
  border-left: 3px solid var(--color-brand);
  border-radius: 10px;
  background: var(--color-band-translucent);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Persönliches Zitat der Beraterin in der Porträtkarte */
.provider-card__note {
  font-style: italic;
}

/* Abgelaufene Kurstermine bleiben sichtbar, werden aber durchgestrichen. */
.course-date--past {
  color: var(--color-muted);
  text-decoration-line: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: currentColor;
  opacity: 0.72;
}
