/* ════════════════════════════════════════════════════════
   Partner & Netzwerk — Seitenstile
   Flächen: Hero C · Logos A · So funktioniert es C · Profile A
            · Haltung C · Institutionen B · CTA D
   ════════════════════════════════════════════════════════ */

/* ── Hero ── */
.page-hero.pt-hero { --hero-glow-pos: 80% 80%; --hero-glow-a: 0.18; }

.pt-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

/* „Ansprechpartnerin“ ist lang: Titel etwas kompakter, damit das Wort
   nie mitten im Wort bricht (Desktop zwei Zeilen, mobil ganzes Wort) */
.pt-hero .page-hero__title {
  max-width: 900px;
  font-size: clamp(2rem, 5.4vw, 4.6rem);
  overflow-wrap: normal;
  hyphens: manual;
}

/* ── Logowand (Typ A) ── */
.pt-logos {
  background: var(--color-white);
  border-bottom: 1px solid var(--surface-border-light);
  padding-block: var(--space-xl);
}

.pt-logos__label {
  margin-bottom: var(--space-md);
  color: var(--color-text-muted);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.pt-logos__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: var(--space-sm);
  margin: 0;
  padding: 0;
  list-style: none;
}

.pt-logo {
  display: grid;
  place-items: center;
  height: 96px;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.pt-logo:hover,
.pt-logo:focus-visible {
  border-color: var(--color-accent-mid);
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}

.pt-logo:focus-visible {
  outline: 3px solid rgba(0, 200, 168, 0.35);
  outline-offset: 2px;
}

.pt-logo img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 58px;
  object-fit: contain;
}

.pt-logo--dark {
  border-color: var(--color-primary);
  background: var(--color-primary);
}

.pt-logo--dark img {
  max-height: 42px;
}

/* ── So funktioniert es (Typ C) ── */
.pt-how {
  background: var(--surface-dark);
  border-bottom: 1px solid var(--surface-border-dark);
  padding-block: var(--space-2xl);
}

.pt-how__head {
  max-width: 720px;
}

.pt-how__title {
  color: var(--color-white);
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.pt-how .vz-steps {
  margin-top: var(--space-xl);
}

/* ── Partnerprofile (Typ A) ── */
.pt-profiles {
  background: var(--surface-light);
}

.pt-profiles .section-header {
  margin-bottom: var(--space-xl);
}

.pt-profiles .section-title {
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.pt-group + .pt-group {
  margin-top: var(--space-2xl);
}

.pt-group__title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  color: var(--color-primary);
  font-size: var(--fs-xl);
}

.pt-group__title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.pt-group__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
}

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

.pt-card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 2.6vw, 2rem);
  border: 1px solid rgba(11, 118, 105, 0.2);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  scroll-margin-top: calc(76px + var(--space-lg));
  transition: border-color var(--transition), transform var(--transition);
}

.pt-card:hover {
  border-color: var(--color-accent-mid);
  transform: translateY(-3px);
}

.pt-card:target {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 200, 168, 0.18), var(--shadow-sm);
}

.pt-card__logo {
  display: flex;
  align-items: center;
  height: 84px;
  margin-bottom: var(--space-md);
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  background: var(--color-white);
}

.pt-card__logo img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 60px;
  object-fit: contain;
}

.pt-card__logo--dark {
  border-color: var(--color-primary);
  background: var(--color-primary);
}

.pt-card__logo--dark img {
  max-height: 40px;
}

/* Kanzlei-Logo hat eigene dunkle Fläche: ohne Innenabstand randlos zeigen */
.pt-card__logo--fill {
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #2f2c2b;
}

.pt-card__logo--fill img {
  width: 100%;
  max-height: none;
  height: 100%;
  object-fit: contain;
}

.pt-card__cat {
  margin-bottom: 0.3rem;
  color: var(--color-accent-ink);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pt-card__name {
  margin-bottom: var(--space-sm);
  color: var(--color-primary);
  font-size: var(--fs-xl);
  line-height: 1.25;
}

.pt-card__desc {
  color: var(--color-text-muted);
  font-size: var(--fs-base);
  line-height: 1.7;
}

.pt-card__when {
  margin-top: auto;
  padding-top: var(--space-md);
}

.pt-card__desc + .pt-card__when {
  margin-top: var(--space-md);
  border-top: 1px solid var(--color-border-light);
}

.pt-card__when-title {
  margin-bottom: 0.5rem;
  color: var(--color-primary);
  font-size: var(--fs-sm);
  font-weight: 700;
}

.pt-card__when ul {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pt-card__when li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--color-text);
  font-size: var(--fs-sm);
  line-height: 1.55;
}

.pt-card__when li::before {
  content: "";
  position: absolute;
  top: 0.45rem;
  left: 0.2rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
}

.pt-card__quote {
  margin: var(--space-md) 0 0;
  padding: var(--space-md);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--color-accent-light);
}

.pt-card__stars {
  display: block;
  margin-bottom: 0.35rem;
  color: #b8790f;
  font-size: var(--fs-xs);
  letter-spacing: 2px;
}

.pt-card__quote blockquote {
  margin: 0 0 0.5rem;
  padding: 0;
  border: 0;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-style: italic;
  line-height: 1.5;
}

.pt-card__quote figcaption {
  color: var(--color-text-muted);
  font-size: var(--fs-xs);
  font-weight: 600;
}

/* Breite Einzelkarte (Branche) */
.pt-card--wide {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: var(--space-xl);
  align-items: start;
}

.pt-card--wide .pt-card__logo {
  justify-content: center;
  height: 180px;
  margin-bottom: 0;
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
}

.pt-card--wide .pt-card__logo img {
  max-height: 150px;
}

/* ── Für Institutionen (Typ B, Sie-Ansprache) ── */
.pt-inst {
  background: var(--surface-mint);
  border-block: 1px solid var(--surface-border-light);
  scroll-margin-top: 76px;
}

.pt-inst__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.pt-inst__title {
  max-width: 600px;
  margin-bottom: var(--space-md);
  color: var(--color-primary);
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.pt-inst__text {
  max-width: 620px;
  color: var(--color-text-muted);
  font-size: var(--fs-md);
  line-height: 1.75;
}

.pt-inst__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin: var(--space-lg) 0 0;
  padding: 0;
  list-style: none;
}

.pt-inst__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.pt-inst__list strong {
  display: block;
  color: var(--color-primary);
  font-size: var(--fs-base);
}

.pt-inst__list span:not(.pt-inst__icon) {
  display: block;
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

.pt-inst__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-primary), #0e4a3f);
  color: #78ead7;
}

.pt-inst__icon svg {
  width: 20px;
  height: 20px;
}

.pt-inst__card {
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border-radius: var(--radius-lg);
  background: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.pt-inst__card-title {
  margin-bottom: var(--space-xs);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 700;
}

.pt-inst__card-text {
  margin-bottom: var(--space-md);
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--fs-sm);
  line-height: 1.65;
}

.pt-inst__btn {
  display: flex;
  justify-content: center;
  width: 100%;
}

.pt-inst__card-phone {
  margin-top: var(--space-sm);
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--fs-xs);
  text-align: center;
}

.pt-inst__card-phone a {
  color: #78ead7;
  font-weight: 700;
}

.pt-inst__facts {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: var(--space-md) 0 0;
  padding: var(--space-md) 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  list-style: none;
}

.pt-inst__facts li {
  position: relative;
  padding-left: 1.4rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--fs-sm);
}

.pt-inst__facts li::before {
  content: "";
  position: absolute;
  top: 0.3rem;
  left: 0;
  width: 10px;
  height: 6px;
  border-bottom: 2px solid #78ead7;
  border-left: 2px solid #78ead7;
  transform: rotate(-45deg);
}

/* ── Haltung (Typ C) ── */
.pt-quote {
  background: var(--surface-dark);
  padding-block: var(--space-2xl);
}

.pt-quote__inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.pt-quote__text {
  margin: 0 0 var(--space-md);
  padding: 0;
  border: 0;
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  font-style: italic;
  line-height: 1.45;
}

.pt-quote__author {
  color: #78ead7;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .pt-logos__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .pt-group__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pt-inst__grid {
    grid-template-columns: 1fr;
  }
  .pt-inst__card {
    max-width: 520px;
  }
}

@media (max-width: 720px) {
  .pt-group__grid,
  .pt-group__grid--2 {
    grid-template-columns: 1fr;
  }
  .pt-card--wide {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  .pt-card--wide .pt-card__logo {
    height: 140px;
  }
  .pt-card--wide .pt-card__logo img {
    max-height: 115px;
  }
}

@media (max-width: 640px) {
  .pt-hero__actions .btn {
    width: 100%;
    justify-content: center;
    padding-inline: 1.25rem;
    font-size: var(--fs-sm);
  }
  .pt-logos__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pt-logo {
    height: 84px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pt-logo,
  .pt-card {
    transition: none;
  }
  .pt-logo:hover,
  .pt-logo:focus-visible,
  .pt-card:hover {
    transform: none;
  }
}
