/* =============================================================================
   PHYSIOPARK MG · LEISTUNGEN (/leistungen) — Seiten-CSS
   Datei:   ppw-leistungen.css  Version: 0.3.3
   System:  gebrückt auf ppw-base.css (globale --ppw-* Tokens, Hardcode-
            Fallbacks eingebaut, 0 sichtbare Änderung)
   Scope:   alles unter .lp-page, kein Leak in Elementor.

   CHANGELOG (neueste zuerst · historische Einträge NIE umschreiben)
   0.3.3 · 2026-11-01 · Direkte Menüsprünge erhalten echte Abschnittshöhen.
   0.3.2 · 2026-11-01 · Angebotsanker aus dem Menü bleiben unter dem Kopf sichtbar.
   --------------------------------------------------------------------------
   0.3.1 · 2026-10-17
     - Der Ergotherapie-Abschnitt ist mit Abstand zur Kopfleiste erreichbar.
   0.3.0 · 2026-07-19
     - Nach GF-Feedback: Sprungnavigation komplett entfernt (störte) und
       Editorial-Nummern (01 bis 05) entfernt (Platzverschwendung).
       scroll-margin-top der Anker zurück auf 110 px.
     - Karten mit .lp-linkbox bekommen cursor: pointer, weil sie seit
       0.3.0 (HTML) komplett klickbar sind. Pfeil-Hinweis bleibt.
   0.2.0 · 2026-07-19
     - DESIGN (von GF freigegeben, sichtbare Änderung):
       - Sticky Sprungnavigation (.lp-jumpbar) mit Scrollspy (.is-active),
         Pill-Optik mit Backdrop-Blur, mobil horizontal scrollbar.
       - Sektionen bekommen Editorial-Nummern (01 bis 05) als Overline
         über den H2, per CSS-Counter, kein HTML-Eingriff nötig.
       - Karten-Hover veredelt: Rahmen petrol, Akzentleiste wird dicker,
         H3 färbt sich petrol, Karten mit Link zeigen Pfeil oben rechts
         (:has-Selektor). BGM-Panel bekommt Hover-Elevation.
       - scroll-margin-top der Anker von 110 auf 165 px (Header + Jumpbar).
     - Technik wie 0.1.0 (Tokens, content-visibility, Reduced Motion).
   0.1.0 · 2026-07-19
     - Erste versionierte Ablage im Workspace. Ausgangslage: gelieferte,
       unversionierte Vorlage.
     - Tokens wertetreu auf --ppw-* gebrückt (Fallback = bisheriger Wert).
       Gleiches System wie ppw-home.css, ppw-header.css, ppw-footer.css.
     - font-family: Manrope-Referenz entfernt (lud real nie), jetzt
       var(--ppw-font, System-Stack).
     - content-visibility: auto auf Sections unterhalb des sichtbaren
       Bereichs (Leistungssektionen, BGM, Bottom-CTA) für kürzere
       initiale Renderzeit. contain-intrinsic-size gegen Layoutsprünge.
     - HTML-Seite: pp-leistungen.html 0.1.0 (aria-expanded am Dropdown,
       Reveal ohne Scroll-Listener).
     - Rest UNVERÄNDERT.

   ARBEITSREGELN (wie Startseite)
     - KEINE Textänderung. Nur Präsentation/CSS.
     - Farben/Radien/Schatten über Tokens statt Hardcodes.
     - Klassennamen NICHT umbenennen (JS-Hooks).
     - Jede Änderung: Version hochziehen + hier loggen.
   ============================================================================= */

.lp-page *,
.lp-page *::before,
.lp-page *::after {
  box-sizing: border-box;
}

.lp-page {
  /* Gebrückt auf ppw-base.css, Fallback = bisheriger Wert (wertetreu) */
  --font-family: var(--ppw-font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif);

  --bg: var(--ppw-surface-alt, #eef4f5);
  --surface: var(--ppw-surface, #ffffff);
  --surface-soft: var(--ppw-bg-alt, #f6fafa);
  --surface-tint: #f1f7f7;                 /* lokal */

  --text: #0e2329;                         /* lokal (wie Startseite) */
  --muted: #3a5258;                        /* lokal */
  --muted-soft: #5a737a;                   /* lokal */

  --primary: var(--ppw-brand, #0f5c63);
  --primary-deep: var(--ppw-brand-deep, #0a464c);
  --primary-hover: var(--ppw-brand-hover, #0b494f);
  --primary-soft: var(--ppw-brand-soft, #e3eff0);

  --border: var(--ppw-border, #d4e1e3);
  --border-soft: #e5edee;                  /* lokal */
  --shadow-sm: var(--ppw-shadow-sm, 0 4px 12px rgba(7, 24, 28, 0.06));
  --shadow: var(--ppw-shadow-md, 0 14px 32px rgba(7, 24, 28, 0.10));

  --radius: 16px;                          /* lokal */
  --ui-radius-pill: 12px;                  /* lokal */

  --heading-main: var(--ppw-heading, #0c2731);
  --heading-sub: #123c46;                  /* lokal */

  font-family: var(--font-family);
  color: var(--text);
  padding: 28px 14px 44px;
  background:
    radial-gradient(1100px 480px at 4% 0%, rgba(15, 92, 99, 0.10), transparent 72%),
    radial-gradient(820px 360px at 100% 8%, rgba(15, 92, 99, 0.06), transparent 72%),
    linear-gradient(180deg, #f9fcfc 0%, var(--bg) 100%);
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

@media (hover: hover) and (pointer: fine) {
  html {
    scroll-behavior: smooth;
  }
}

.lp-page img {
  max-width: 100%;
}

.lp-page .container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 10px;
}

.lp-page #UnsereLeistungen,
.lp-page #ERWEITERTEPHYSIOTHERAPIE,
.lp-page #NEUROLOGISCHEPHYSIOTHERAPIE,
.lp-page #WEITERELEISTUNGEN,
.lp-page #unternehmensgesundheit {
  scroll-margin-top: 110px;
}

.lp-page #ergotherapie {
  scroll-margin-top: 150px;
}

/* Sections unterhalb des sichtbaren Bereichs erst bei Annäherung rendern */
.lp-page .lp-section,
.lp-page .lp-bottom {
  content-visibility: auto;
  contain-intrinsic-size: auto 800px;
}

/* ============================================================
   SHARED PANELS
   ============================================================ */
.lp-page .lp-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  padding: 36px 24px 32px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.lp-page .hero-cta-row {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
  width: 100%;
  max-width: 900px;
}

.lp-page a.cta-button,
.lp-page button.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 11px 18px;
  border-radius: var(--ui-radius-pill);
  border: 1px solid transparent;
  text-decoration: none !important;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.005em;
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--primary), #2f7880);
  box-shadow: 0 10px 22px rgba(15, 91, 99, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
}

.lp-page a.cta-button:hover,
.lp-page button.cta-button:hover,
.lp-page a.cta-button:focus-visible,
.lp-page button.cta-button:focus-visible {
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--primary-hover), #256b72);
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(15, 91, 99, 0.28);
}

.lp-page a.cta-button--ghost,
.lp-page button.cta-button--ghost {
  background: #ffffff;
  color: #103a43 !important;
  border: 1px solid #98bcc1;
  box-shadow: var(--shadow-sm);
}

.lp-page a.cta-button--ghost:hover,
.lp-page button.cta-button--ghost:hover,
.lp-page a.cta-button--ghost:focus-visible,
.lp-page button.cta-button--ghost:focus-visible {
  background: var(--primary-soft);
  color: #0b3038 !important;
  border-color: var(--primary);
  box-shadow: 0 10px 22px rgba(15, 91, 99, 0.14);
}

.lp-page a.cta-button:focus-visible,
.lp-page button.cta-button:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* ============================================================
   CALL DROPDOWN
   ============================================================ */
.lp-page .call-dropdown-wrapper {
  position: relative;
  width: 100%;
}

.lp-page .dropdown-arrow {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.8em;
  transition: transform 0.25s ease;
}

.lp-page #call-toggle-btn.is-open .dropdown-arrow {
  transform: rotate(180deg);
}

.lp-page .call-dropdown {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lp-page .call-dropdown[hidden] {
  display: none !important;
}

.lp-page .call-dropdown a {
  display: block;
  padding: 12px;
  background: var(--primary-soft);
  border-radius: 10px;
  text-align: center;
  font-weight: 700;
  color: var(--primary) !important;
  text-decoration: none !important;
  border: 1px solid #c0d9db;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.2s;
}

.lp-page .call-dropdown a:hover {
  background: #d4ecee;
  transform: translateY(-1px);
}

/* ============================================================
   HERO
   ============================================================ */
.lp-page .lp-hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lp-page .lp-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 2.4vw + 1rem, 3rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 850;
  color: var(--heading-main);
}

.lp-page .lp-hero p {
  margin: 0 auto;
  max-width: 920px;
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.1rem;
  font-weight: 500;
}

.lp-page .lp-hero p strong {
  color: var(--heading-sub);
  font-weight: 700;
}

/* Trust-Row im Startseiten-Look mit Häkchen */
.lp-page .pp-trust-row {
  list-style: none;
  margin: 22px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--border-soft);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 20px;
  width: 100%;
  max-width: 1100px;
}

.lp-page .pp-trust-row li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
}

.lp-page .pp-trust-row svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex: 0 0 auto;
}

/* ============================================================
   SECTIONS & SECTION-HEADS
   ============================================================ */
.lp-page .lp-section {
  margin-top: 56px;
}

.lp-page .lp-section-head {
  margin: 0 auto 28px;
  max-width: 900px;
  text-align: center;
}

.lp-page .lp-section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.55rem, 1.4vw + 1rem, 2.1rem);
  line-height: 1.18;
  font-weight: 840;
  color: var(--heading-main);
  letter-spacing: -0.015em;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.lp-page .lp-section-head h2::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 200px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--primary) 20%, var(--primary) 80%, transparent);
}

.lp-page .lp-section-head p {
  margin: 0 auto;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.05rem;
  font-weight: 500;
}

.lp-page .lp-section-head p strong {
  color: var(--heading-sub);
  font-weight: 700;
}

/* ============================================================
   GRIDS
   ============================================================ */
.lp-page .lp-grid {
  display: grid;
  gap: 16px;
}

.lp-page .lp-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lp-page .lp-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ============================================================
   CARDS OHNE ICONS
   ============================================================ */
.lp-page .lp-card {
  position: relative;
  background: var(--surface-soft);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 22px 20px 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.lp-page .lp-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  bottom: 22px;
  width: 3px;
  border-radius: 999px;
  background: var(--primary);
  opacity: 0.7;
  transition: width 0.25s ease, opacity 0.25s ease;
}

.lp-page .lp-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(15, 92, 99, 0.13);
  border-color: var(--primary);
}

.lp-page .lp-card:hover::before {
  width: 4px;
  opacity: 1;
}

/* Pfeil-Hinweis oben rechts bei Karten mit Link (Klick-Affordance) */
.lp-page .lp-card:has(.lp-linkbox) {
  cursor: pointer; /* Karte ist seit 0.3.0 komplett klickbar */
}

.lp-page .lp-card:has(.lp-linkbox)::after {
  content: "→";
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
  opacity: 0;
  transform: translateX(-5px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.lp-page .lp-card:has(.lp-linkbox):hover::after,
.lp-page .lp-card:has(.lp-linkbox):focus-within::after {
  opacity: 1;
  transform: translateX(0);
}

.lp-page .lp-card h3 {
  margin: 0 0 8px;
  color: var(--heading-sub);
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.01em;
  transition: color 0.25s ease;
}

.lp-page .lp-card:hover h3 {
  color: var(--primary);
}

.lp-page .lp-card p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.98rem;
}

.lp-page .lp-card p:last-child {
  margin-bottom: 0;
}

.lp-page .lp-card p strong {
  color: var(--heading-sub);
  font-weight: 700;
}

.lp-page .lp-card-highlight {
  background: linear-gradient(180deg, #ffffff, var(--primary-soft));
  border-color: #c8dde0;
}

.lp-page .lp-card-highlight::before {
  width: 4px;
  opacity: 1;
  background: linear-gradient(180deg, var(--primary), var(--primary-deep));
}

/* Mehr erfahren */
.lp-page .lp-linkbox {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: auto;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid #b9d4d7;
  background: #ffffff;
  color: var(--primary) !important;
  text-decoration: none !important;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.005em;
  align-self: flex-start;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.lp-page .lp-linkbox::after {
  content: "→";
  font-size: 1em;
  transition: transform 0.2s ease;
}

.lp-page .lp-linkbox:hover {
  background: var(--primary);
  color: #ffffff !important;
  border-color: var(--primary);
  transform: translateY(-1px);
}

.lp-page .lp-linkbox:hover::after {
  transform: translateX(3px);
}

/* ============================================================
   BGM HIGHLIGHT CTA
   ============================================================ */
.lp-page .lp-bgm-section {
  margin-top: 64px;
}

.lp-page .lp-bgm-panel {
  background:
    linear-gradient(135deg, rgba(15, 92, 99, 0.12), rgba(255, 255, 255, 0.96)),
    #ffffff;
  border: 1px solid #c8dde0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 26px;
  align-items: stretch;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lp-page .lp-bgm-panel:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(15, 92, 99, 0.14);
}

.lp-page .lp-bgm-panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  bottom: 24px;
  width: 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--primary), var(--primary-deep));
}

.lp-page .lp-bgm-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 800;
  font-size: 0.88rem;
}

.lp-page .lp-bgm-content h3 {
  margin: 0 0 12px;
  color: var(--heading-main);
  font-size: clamp(1.45rem, 1.4vw + 1rem, 2rem);
  line-height: 1.18;
  font-weight: 850;
  letter-spacing: -0.015em;
}

.lp-page .lp-bgm-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.05rem;
  max-width: 760px;
}

.lp-page .lp-bgm-cta-row {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 560px;
}

.lp-page .lp-bgm-points {
  display: grid;
  gap: 12px;
}

.lp-page .lp-bgm-points div {
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.lp-page .lp-bgm-points strong {
  display: block;
  color: var(--heading-sub);
  font-size: 1rem;
  margin-bottom: 5px;
}

.lp-page .lp-bgm-points span {
  display: block;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.95rem;
}

/* ============================================================
   BOTTOM CTA
   ============================================================ */
.lp-page .lp-bottom {
  margin-top: 60px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lp-page .lp-bottom h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 1.4vw + 1rem, 2rem);
  line-height: 1.18;
  font-weight: 840;
  color: var(--heading-main);
  letter-spacing: -0.015em;
}

.lp-page .lp-bottom p {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.05rem;
  font-weight: 500;
  max-width: 760px;
}

/* ============================================================
   ANIMATIONS + SICHERHEITSNETZ
   ============================================================ */
.lp-page .pp-reveal {
  opacity: 0;
  transform: translateY(18px);
}

.lp-page .pp-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--pp-delay, 0ms);
}

/* Erzwungene Einblendung (Failsafe) */
.lp-page .pp-reveal.pp-shown {
  opacity: 1 !important;
  transform: none !important;
  transition: opacity 0.4s ease !important;
  transition-delay: 0ms !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .lp-page .lp-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .lp-page .hero-cta-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .lp-page .lp-bgm-panel {
    grid-template-columns: 1fr;
    padding: 24px 18px;
  }

  .lp-page .lp-bgm-cta-row {
    grid-template-columns: 1fr;
    max-width: none;
  }
}

@media (max-width: 760px) {
  .lp-page {
    padding: 22px 12px 36px;
  }

  /* Textkarten einspaltig — lange Fachbegriffe brauchen die volle Breite */
  .lp-page .lp-grid-3,
  .lp-page .lp-grid-2 {
    grid-template-columns: 1fr;
  }

  .lp-page .lp-panel {
    padding: 24px 18px;
  }

  .lp-page .lp-card {
    padding: 20px 18px;
  }

  .lp-page .lp-section {
    margin-top: 40px;
  }

  .lp-page .lp-bottom {
    margin-top: 44px;
  }

  .lp-page .lp-hero h1 {
    font-size: 1.85rem;
  }

  .lp-page .lp-section-head h2,
  .lp-page .lp-bottom h2 {
    font-size: 1.55rem;
  }

  .lp-page .lp-hero p,
  .lp-page .lp-bottom p,
  .lp-page .lp-section-head p {
    font-size: 1.08rem;
  }

  .lp-page .lp-card h3 {
    font-size: 1.15rem;
  }

  .lp-page .lp-card p {
    font-size: 1.02rem;
  }

  .lp-page .lp-linkbox {
    font-size: 0.98rem;
    padding: 11px 14px;
    width: 100%;
  }

  .lp-page .pp-trust-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: left;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    justify-items: start;
  }

  .lp-page .pp-trust-row li {
    align-items: center;
    font-size: 0.92rem;
    gap: 8px;
    white-space: nowrap;
  }

  .lp-page .pp-trust-row svg {
    width: 16px;
    height: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .lp-page .pp-reveal,
  .lp-page .pp-reveal.is-visible,
  .lp-page .pp-reveal.pp-shown,
  .lp-page .lp-card,
  .lp-page .lp-card::after,
  .lp-page .lp-card h3,
  .lp-page .lp-linkbox,
  .lp-page .lp-bgm-panel,
  .lp-page a.cta-button,
  .lp-page button.cta-button {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }

  /* Pfeil-Hinweis bei Reduced Motion dauerhaft zeigen */
  .lp-page .lp-card:has(.lp-linkbox)::after {
    opacity: 1;
  }
}

/* Direkte Angebotsanker aus der Hauptnavigation. */
.lp-page .lp-card[id] { scroll-margin-top: 110px; }

/* Fragmentziele: vorherige Abschnitte vor dem nativen Sprung auslegen.
   Ohne Fragment bleibt die bedarfsgerechte Darstellung aktiv. */
.lp-page:has(:target) .lp-section { content-visibility: visible; }
