/* ════════════════════════════════════════════════════════════════════════════
   STADTWERKE STUTTGART — Partner Detail Page
   Loaded only on /partner/stadtwerke-stuttgart.
   Scoped with pd-* to isolate from partner overview styles.
   ════════════════════════════════════════════════════════════════════════════ */

/* ── Layout helpers ── */
.pd-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}

.pd-two-col.pd-two-col--wide {
  grid-template-columns: 1.4fr 1fr;
}

.pd-two-col.pd-two-col--wide-r {
  grid-template-columns: 1fr 1.4fr;
}

/* ── Hero ── */
.pd-hero {
  background: var(--navy);
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
  padding: 0;
}

.pd-hero__left {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 52px;
}

.pd-hero__collab {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.pd-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.pd-hero__badge.first::before {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--gold);
  flex-shrink: 0;
}

.pd-hero__x {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.22);
  font-weight: 500;
  padding: 0 4px;
}

.pd-hero__title {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text-white);
  margin-bottom: 10px;
}

.pd-hero__title em {
  font-style: normal;
  color: var(--green-mid);
}

.pd-hero__sub {
  font-size: 0.86rem;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.58);
  max-width: 44ch;
}

.pd-hero__right {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 52px 52px 52px 32px;
}

.pd-hero__stat {
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 14px;
}

.pd-hero__stat:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pd-hero__stat-num {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-white);
  line-height: 1;
  flex-shrink: 0;
  min-width: 96px;
}

.pd-hero__stat-num em {
  font-style: normal;
  color: var(--gold);
  font-size: 1.1rem;
}

.pd-hero__stat-label {
  font-size: 0.78rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.45);
}

.pd-hero__stat-label strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 2px;
}

/* ── Intro banner ── */
.pd-intro-banner {
  background: var(--green);
  border-radius: var(--r);
  padding: 36px 48px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.pd-intro-banner__icon {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd-intro-banner__kicker {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 6px;
}

.pd-intro-banner__title {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-white);
  margin-bottom: 5px;
}

.pd-intro-banner__desc {
  font-size: 0.84rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
  max-width: 60ch;
}

/* ── Dark card ── */
.pd-dark-card {
  padding: 36px 40px;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.pd-dark-card__eyebrow {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.pd-dark-card__title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-white);
  line-height: 1.2;
}

.pd-dark-card__body {
  font-size: 0.86rem;
  line-height: 1.78;
  color: rgba(255, 255, 255, 0.6);
}

.pd-dark-steps {
  display: flex;
  flex-direction: column;
}

.pd-dark-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.pd-dark-step:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pd-dark-step__num {
  font-size: 1.1rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
  width: 24px;
  padding-top: 1px;
}

.pd-dark-step__title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 3px;
}

.pd-dark-step__desc {
  font-size: 0.78rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.5);
}

/* ── Content card ── */
.pd-content-card {
  padding: 36px 40px;
}

.pd-content-card__eyebrow {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 14px;
}

.pd-content-card__title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 12px;
}

.pd-content-card__body {
  font-size: 0.88rem;
  line-height: 1.78;
  color: var(--ink-dim);
}

.pd-content-card__body p {
  margin-bottom: 12px;
}

.pd-content-card__body p:last-child {
  margin-bottom: 0;
}

/* ── Specs card ── */
.pd-specs-card {
  padding: 32px 36px;
}

.pd-specs-eyebrow {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 18px;
}

.pd-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.pd-spec-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pd-spec-item:nth-child(odd) {
  padding-right: 24px;
  border-right: 1px solid var(--border);
}

.pd-spec-item:nth-child(even) {
  padding-left: 24px;
}

.pd-spec-item:nth-last-child(-n + 2) {
  border-bottom: none;
}

.pd-spec-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.pd-spec-value {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.pd-spec-sub {
  font-size: 0.74rem;
  color: var(--ink-dim);
}

/* ── Photo card ── */
.pd-photo-card {
  border-radius: var(--r);
  overflow: hidden;
  background-color: var(--navy-faint);
  background-size: cover;
  background-position: center;
}

/* ── Cert badges ── */
.pd-cert-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.pd-cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 7px 13px;
  border-radius: 99px;
  border: 1px solid var(--green-mid);
  background: var(--green-faint);
  color: var(--green);
}

.pd-cert-badge svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ── Video card ── */
.pd-video-card {
  background: var(--navy);
  border-radius: var(--r);
  overflow: hidden;
  position: relative;
}

.pd-video-card__cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--navy);
  transition: opacity 0.25s;
}

.pd-video-card__play {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd-video-card__play svg {
  width: 20px;
  height: 20px;
  stroke: var(--card);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-left: 3px;
}

.pd-video-card__label {
  font-size: 0.76rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  max-width: 36ch;
}

.pd-video-card__consent-note {
  font-size: 0.68rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.38);
  text-align: center;
  max-width: 36ch;
}

.pd-video-card__consent-note a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: underline;
}

.pd-video-card__consent-btn {
  all: unset;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 10px 22px;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.15s;
}

.pd-video-card__consent-btn:hover {
  opacity: 0.85;
}

/* ── CTA strip SWS-blue variant ── */
.pd-cta-strip {
  background: var(--navy);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .pd-hero {
    grid-template-columns: 1fr;
  }

  .pd-hero__right {
    display: none;
  }

  .pd-two-col,
  .pd-two-col.pd-two-col--wide,
  .pd-two-col.pd-two-col--wide-r {
    grid-template-columns: 1fr;
  }

  .pd-specs-grid {
    grid-template-columns: 1fr;
  }

  .pd-spec-item:nth-child(odd) {
    padding-right: 0;
    border-right: none;
  }

  .pd-spec-item:nth-child(even) {
    padding-left: 0;
  }

  .pd-spec-item:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }

  .pd-spec-item:last-child {
    border-bottom: none;
  }

  .pd-intro-banner {
    grid-template-columns: 1fr;
  }

  .pd-intro-banner__icon {
    display: none;
  }
  .pd-video-card {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 580px) {
  .pd-hero__left {
    padding: 36px 24px;
  }
  .pd-hero {
    min-height: unset;
  }

  .pd-content-card,
  .pd-dark-card,
  .pd-specs-card {
    padding: 24px 20px;
  }
}

@media (max-width: 380px) {
  .partner-grid-platin,
  .partner-grid-club {
    grid-template-columns: 1fr;
  }
}

html[data-theme="dark"] .pd-video-card__cover,
html[data-theme="dark"] .pd-hero,
html[data-theme="dark"] .pd-dark-card {
  background: var(--card);
}

html[data-theme="light"] .pd-dark-card {
  background: var(--navy);
}
