/* ==========================================================================
   Seite «Leistungen» – seitenspezifische Styles (Präfix .p-leistungen)
   ========================================================================== */

/* Anker unter der fixen Navigation sauber anspringen */
.p-leistungen #personalmarketing,
.p-leistungen #recruiting,
.p-leistungen #karriereseite,
.p-leistungen #vorqualifizierung,
.p-leistungen #pool,
.p-leistungen #vergleich,
.p-leistungen #preismodell,
.p-leistungen #faq { scroll-margin-top: calc(var(--nav-h) + 12px); }

/* Sprungleiste */
.p-leistungen .jumpbar-wrap { padding-block: 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.p-leistungen .jumpbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.p-leistungen .jumpbar__label { font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--fg-3); margin-right: 8px; }
.p-leistungen .jumpbar .pill { text-decoration: none; transition: border-color .3s, color .3s, background .3s; }
.p-leistungen .jumpbar .pill:hover,
.p-leistungen .jumpbar .pill:focus-visible { border-color: rgba(52, 216, 176, .45); color: var(--fg); background: var(--surface-2); }
.p-leistungen .jumpbar .pill small { font-family: var(--font-display); font-size: .95em; color: var(--accent-2); }

/* Leistungsblöcke */
.p-leistungen .service__list-title { font-family: var(--font-sans); font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--fg-3); margin: 0 0 14px; }
.p-leistungen .service__result { margin-top: 28px; }
.p-leistungen .service__result .pill { max-width: 100%; line-height: 1.45; }
.p-leistungen .service__result .pill strong { color: var(--accent-2); font-weight: 700; margin-right: 2px; }

/* Visual-Karte: Tags + Bildunterschrift */
.p-leistungen .visual .card__visual { margin-bottom: 22px; }
.p-leistungen .visual__tags { display: flex; flex-wrap: wrap; gap: 10px; }
.p-leistungen .visual__caption { margin-top: 18px; }
@media (min-width: 721px) {
  .p-leistungen .grid--split-rev > .visual { order: -1; }
}

/* Konditionen als Definitionsliste */
.p-leistungen .terms { display: grid; margin: 0; }
.p-leistungen .terms > div { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); align-items: baseline; }
.p-leistungen .terms > div:first-child { border-top: 0; padding-top: 0; }
.p-leistungen .terms dt { color: var(--fg-3); font-size: .9rem; margin: 0; }
.p-leistungen .terms dd { margin: 0; font-family: var(--font-display); font-size: 1.2rem; color: var(--fg); text-align: right; }
@media (max-width: 480px) {
  .p-leistungen .terms > div { grid-template-columns: 1fr; gap: 4px; }
  .p-leistungen .terms dd { text-align: left; }
}

/* Vergleichskarten */
.p-leistungen .compare .card { display: flex; flex-direction: column; }
.p-leistungen .compare .card > .pill { align-self: flex-start; margin-bottom: 22px; }
.p-leistungen .compare .card h3 { margin-bottom: 12px; }
.p-leistungen .compare__limits { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.p-leistungen .compare .check-list { margin-top: 6px; margin-bottom: 26px; }
.p-leistungen .compare__card--cm { border-color: rgba(14, 138, 112, .45); box-shadow: 0 24px 50px -30px rgba(14, 138, 112, .4); }

/* Szene «Karriereseite»: Pflegefachfrau, Arzt und Kurzbewerbung auf dem Handy */
.p-leistungen .card__visual--scene { aspect-ratio: 16 / 10; }
.p-leistungen .card__visual--scene svg { width: 88%; max-width: 460px; color: var(--mint-300); filter: drop-shadow(0 0 16px rgba(52, 216, 176, .28)); }
.p-leistungen .card__visual--scene .scene__phone { color: var(--mint-200); }

/* --------------------------------------------------------------------------
   Ein Blick in die Arbeit: Musterkampagne
   Drei Spalten zeigen dieselbe Kampagne aus drei Blickwinkeln: die Anzeige im
   Feed, die Kurzbewerbung auf dem Handy und das Reporting fuer die Einrichtung.
   Der Musterbetrieb ist erfunden und im Abschnitt ausdruecklich als solcher
   gekennzeichnet. Die Nachbauten sind reine Abbildungen: sie tragen role="img"
   mit einer Beschreibung und enthalten bewusst keine bedienbaren Elemente.
   -------------------------------------------------------------------------- */
.p-leistungen .cm-demo {
  --cm-surface:   var(--ink-900);
  --cm-surface-2: #152036;
  --cm-surface-3: #1C2A45;
  --cm-text:      var(--fg);
  --cm-muted:     var(--fg-2);
  --cm-border:    var(--line);
  --cm-accent:      var(--mint-500);   /* Akzentfarbe der Website */
  --cm-accent-text: var(--ink-950);    /* dunkler Text auf der Akzentfarbe */
  line-height: 1.6;
}
.p-leistungen .cm-demo__inner { max-width: 1120px; margin: 0 auto; }
.p-leistungen .cm-demo__eyebrow { font-size: .88rem; color: var(--cm-muted); margin: 0 0 12px; }
.p-leistungen .cm-demo__title { font-size: clamp(1.9rem, 4vw, 2.75rem); font-weight: 500; line-height: 1.15; margin: 0 0 20px; max-width: 18ch; }
.p-leistungen .cm-demo__title em { font-style: italic; font-weight: 400; }
.p-leistungen .cm-demo__lead { font-size: 1.125rem; color: var(--cm-muted); max-width: 62ch; margin: 0 0 20px; }
.p-leistungen .cm-demo__badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--cm-muted);
  border: 1px solid var(--cm-border); border-radius: 999px; padding: 6px 14px; margin: 0 0 48px;
}
.p-leistungen .cm-demo__badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--cm-accent); display: inline-block; flex: none; }

.p-leistungen .cm-demo__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; align-items: start; }
.p-leistungen .cm-demo__col h3 { font-size: 1rem; font-weight: 500; margin: 0 0 16px; }
.p-leistungen .cm-demo__col h3 span { color: var(--cm-muted); font-weight: 400; }

/* Handy-Rahmen */
.p-leistungen .cm-phone { width: 100%; max-width: 280px; background: var(--cm-surface-2); border: 1px solid var(--cm-border); border-radius: 32px; padding: 18px 16px; }
.p-leistungen .cm-phone__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.p-leistungen .cm-phone__avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--cm-surface-3); display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 500; color: var(--cm-text); flex: none; }
.p-leistungen .cm-phone__name { font-size: .88rem; font-weight: 500; margin: 0; line-height: 1.2; }
.p-leistungen .cm-phone__sub { font-size: .75rem; color: var(--cm-muted); margin: 0; }
.p-leistungen .cm-phone__video { position: relative; height: 210px; border-radius: 16px; background: var(--cm-surface-3); display: flex; align-items: center; justify-content: center; }
.p-leistungen .cm-phone__video svg { width: 34px; height: 34px; color: var(--cm-muted); }
.p-leistungen .cm-phone__time { position: absolute; top: 12px; right: 14px; font-size: .75rem; color: var(--cm-muted); }
.p-leistungen .cm-phone__overlay { position: absolute; left: 14px; right: 14px; bottom: 14px; }
.p-leistungen .cm-phone__overlay strong { display: block; font-size: 1rem; font-weight: 500; line-height: 1.25; }
.p-leistungen .cm-phone__overlay span { display: block; font-size: .82rem; color: var(--cm-muted); margin-top: 4px; }
.p-leistungen .cm-phone__caption { font-size: .82rem; margin: 12px 0; line-height: 1.45; }
.p-leistungen .cm-btn {
  display: block; width: 100%; text-align: center; font-size: .88rem; font-weight: 500;
  padding: 11px 14px; border-radius: 12px; border: 0;
  background: var(--cm-accent); color: var(--cm-accent-text);
}

/* Kurzbewerbung */
.p-leistungen .cm-form__step { font-size: .75rem; color: var(--cm-muted); margin: 0 0 8px; }
.p-leistungen .cm-form__bar { height: 4px; border-radius: 2px; background: var(--cm-surface-3); margin-bottom: 16px; }
.p-leistungen .cm-form__bar i { display: block; width: 50%; height: 100%; border-radius: 2px; background: var(--cm-accent); }
.p-leistungen .cm-form__q { font-size: 1rem; font-weight: 500; margin: 0 0 14px; line-height: 1.3; }
.p-leistungen .cm-form__opt { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .82rem; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--cm-border); margin-bottom: 8px; }
.p-leistungen .cm-form__opt--on { border-color: var(--cm-accent); color: var(--cm-accent); }
.p-leistungen .cm-form__opt svg { width: 16px; height: 16px; flex: none; }
.p-leistungen .cm-form__note { font-size: .75rem; color: var(--cm-muted); margin: 12px 0; }

/* Reporting */
.p-leistungen .cm-report { background: var(--cm-surface); border: 1px solid var(--cm-border); border-radius: 20px; padding: 22px; }
.p-leistungen .cm-report__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.p-leistungen .cm-report__head p { margin: 0; font-size: .88rem; font-weight: 500; }
.p-leistungen .cm-report__head span { font-size: .75rem; color: var(--cm-muted); }
.p-leistungen .cm-report__metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.p-leistungen .cm-report__metric { background: var(--cm-surface-2); border-radius: 12px; padding: 12px 14px; }
.p-leistungen .cm-report__metric small { display: block; font-size: .75rem; color: var(--cm-muted); }
.p-leistungen .cm-report__metric b { display: block; font-size: 1.6rem; font-weight: 500; line-height: 1.2; font-variant-numeric: tabular-nums; }
.p-leistungen .cm-report__metric--hit b { color: var(--cm-accent); }
.p-leistungen .cm-report__row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 28px; align-items: center; gap: 10px; font-size: .75rem; margin-bottom: 7px; }
.p-leistungen .cm-report__row span:first-child { color: var(--cm-muted); }
.p-leistungen .cm-report__row span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.p-leistungen .cm-report__track { height: 8px; border-radius: 2px; background: var(--cm-surface-3); }
.p-leistungen .cm-report__track i { display: block; height: 100%; border-radius: 2px; background: var(--cm-muted); }
.p-leistungen .cm-report__row--hit .cm-report__track i { background: var(--cm-accent); }
.p-leistungen .cm-report__foot { font-size: .75rem; color: var(--cm-muted); margin: 16px 0 0; }

.p-leistungen .cm-demo__note { margin: 48px 0 0; font-size: .88rem; color: var(--cm-muted); max-width: 70ch; }
.p-leistungen .cm-demo__note a { color: var(--cm-text); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) {
  .p-leistungen .cm-demo__grid { grid-template-columns: 1fr; gap: 40px; }
  .p-leistungen .cm-phone { max-width: 320px; }
  .p-leistungen .cm-demo__badge { margin-bottom: 36px; }
}

/* Sprungleiste: mitlaufende Fortschrittsmarkierung */
.p-leistungen .jumpbar__progress { position: relative; height: 6px; margin-top: 14px; }
.p-leistungen .jumpbar__rail { display: block; width: 100%; height: 6px; }
.p-leistungen .jumpbar__track { stroke: rgba(255, 255, 255, .12); }
.p-leistungen .jumpbar__fill { stroke: var(--accent); transition: stroke-dashoffset .2s linear; }
.p-leistungen .jumpbar__dot {
  position: absolute; top: 50%; left: var(--gutter); width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent-2); box-shadow: 0 0 14px var(--glow);
  transform: translate(-50%, -50%); opacity: 0;
  transition: opacity .4s var(--ease-out), left .2s linear;
}
.p-leistungen .jumpbar__progress.is-live .jumpbar__dot { opacity: 1; left: calc(var(--gutter) + (100% - var(--gutter) * 2) * var(--cm-jump, 0)); }
.p-leistungen .jumpbar .pill.is-active {
  color: var(--fg); background: var(--surface-2);
  border-color: rgba(52, 216, 176, .5);
  box-shadow: 0 0 0 1px rgba(52, 216, 176, .18), 0 10px 26px -18px rgba(52, 216, 176, .8);
}
.p-leistungen .jumpbar .pill.is-active small { color: var(--mint-200); }

@media (min-width: 901px) {
  .p-leistungen .jumpbar-wrap {
    position: sticky; top: var(--nav-h); z-index: 20;
    background: rgba(7, 13, 24, .86);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    transition: transform .5s var(--ease-out), opacity .4s var(--ease-out);
  }
  .p-leistungen .jumpbar-wrap.is-past { transform: translateY(-140%); opacity: 0; pointer-events: none; }
  .p-leistungen #personalmarketing,
  .p-leistungen #recruiting,
  .p-leistungen #beispiel,
  .p-leistungen #karriereseite,
  .p-leistungen #vorqualifizierung,
  .p-leistungen #pool { scroll-margin-top: calc(var(--nav-h) + 108px); }
}
