/* Team-Seite (aerzte.html), baut auf css/rezeption.css auf. */

.seitenkopf { padding: 8rem 0 4rem; background: var(--flaeche); }
.seitenkopf-raster { display: grid; grid-template-columns: 1fr 19rem; gap: clamp(2rem, 6vw, 6rem); align-items: end; }
.seitenkopf h1 { font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem); letter-spacing: -0.02em; max-width: 14ch; }
.sprungliste { display: flex; flex-direction: column; padding: 1rem 1.5rem; }
.sprungliste a { min-height: 44px; display: flex; align-items: center; justify-content: space-between; text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--linie); }
.sprungliste a:last-child { border-bottom: 0; }

.person + .person { border-top: 1px solid var(--linie); }
.person-raster { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.person-rechts .person-bild { order: 2; }
.person-rechts .person-raster { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.person-bild { margin: 0; position: sticky; top: 6rem; }
.person-bild img, .person-bild .foto-folgt { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; border-radius: var(--rund); }
.person-rolle { color: var(--teal-tief); font-weight: 600; margin-top: -0.4rem; }
.besonders { padding: 1.5rem; margin-top: 2rem; background: var(--flaeche); border-radius: var(--rund); }
.besonders h3 { margin-bottom: 0.4rem; }
.besonders p { margin: 0; }

.werdegang-raster { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(2rem, 6vw, 5rem); margin-top: var(--abstand); }
/* Profile als Fenster (Ärzte-Seite): öffnen über den Link unter dem Foto */
.profil { --glas-bg: rgba(255, 255, 255, 0.94); position: fixed; inset: 0; margin: auto; width: min(62rem, calc(100vw - 1.5rem)); max-height: calc(100vh - 1.5rem); height: fit-content; overflow-y: auto; padding: clamp(1.25rem, 3vw, 2.25rem); color: var(--tinte); }
.profil[open] { animation: rein 220ms cubic-bezier(0.16, 1, 0.3, 1); }
.profil::backdrop { background: rgba(13, 31, 60, 0.35); }
.profil .innen { padding: 0; max-width: none; }
.profil .werdegang-raster { margin-top: 2.5rem; }
.profil .person-bild img { max-height: 26rem; object-fit: cover; }
@media (prefers-reduced-motion: reduce) { .profil[open] { animation: none; } }
.werdegang-text p { margin: 0 0 1rem; color: var(--tinte); line-height: 1.7; }
.ohne-oben-karussell { padding-top: clamp(2rem, 4vw, 3rem); padding-bottom: clamp(2rem, 4vw, 3rem); }
.ohne-oben-karussell .karussell { margin-bottom: 0; }   /* sonst rutscht der Außenabstand als weißer Streifen unter den Abschnitt */
.zeitleiste { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linie); }
.zeitleiste li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--linie); }
.zeitleiste span { font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.zeitleiste p { margin: 0; color: var(--grau); }
.zertifikate { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.zertifikate figure, .ehrung { margin: 0; }
.zertifikate img { border-radius: 50%; }   /* runde Plaketten: keine weißen Ecken, auch im Dunkelmodus */
.zertifikate figcaption, .ehrung figcaption { font-size: 0.85rem; color: var(--grau); margin-top: 0.5rem; }
.ehrung img { border-radius: var(--rund); aspect-ratio: 3 / 2; object-fit: cover; }

.team-seite { background: #fff; }   /* hebt sich vom Ärzte-Karussell (Fläche) ab */
.team-seite .aerzte-kopf .lead { margin: 0.75rem 0 0; max-width: 38rem; }
.team-cta { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap; padding: clamp(1.5rem, 3vw, 2.25rem); margin-top: 0.5rem; }
.team-cta h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); margin: 0.3rem 0 0.4rem; }
.team-cta p:not(.kicker) { margin: 0; color: var(--grau); max-width: 40rem; }
.team-raster { list-style: none; padding: 0; margin: 2.5rem 0 2rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 1.25rem; }
.team-person { padding: 0.75rem 0.75rem 1.25rem; display: flex; flex-direction: column; }
.team-person .foto-folgt { aspect-ratio: 1; border-radius: 14px; margin-bottom: 1rem; }
.team-person strong { font-family: var(--serif); font-weight: 600; color: var(--navy); font-size: 1.15rem; padding: 0 0.5rem; }
.team-person span { color: var(--teal-tief); font-weight: 600; font-size: 0.92rem; padding: 0 0.5rem; }
.team-person small { color: var(--grau); font-size: 0.82rem; padding: 0.3rem 0.5rem 0; }

.zitat { margin: 1.5rem 0 0; padding: 0; font-family: var(--serif); font-size: clamp(1.2rem, 1rem + 0.6vw, 1.45rem); line-height: 1.45; color: #fff; }
.zitat cite { display: block; margin-top: 0.75rem; font: 600 0.9rem var(--sans); font-style: normal; color: #7fe3d4; }

.ehrenamt-mehr-raster { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.vereine-hell { margin-top: 0; border-color: var(--linie); }
.vereine-hell li { border-color: var(--linie); }
.vereine-hell .verein { color: var(--tinte); }
.vereine-hell .verein small { color: var(--grau); }
.vereine-hell .verein-kisumu svg { stroke: #2a8fd0; }
.vereine-hell .verein-kisumu svg circle { fill: #fff; }
.vereine-hell .verein-doki svg { stroke: var(--teal-tief); }
.ehrenamt-galerie { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.ehrenamt-galerie img { border-radius: var(--rund); aspect-ratio: 4 / 3; object-fit: cover; }

.kontakt-zeile { background: var(--flaeche); border-top: 1px solid var(--linie); }
.kontakt-zeile-raster { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: clamp(1.5rem, 5vw, 4rem); }
.kz-text p:last-child { margin: 0; color: var(--grau); max-width: 34rem; }
.kz-knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; justify-content: flex-end; }
.kz-knoepfe .buehne-tel { flex-basis: 100%; text-align: right; margin: 0.25rem 0 0; }
@media (max-width: 1080px) {
  .kontakt-zeile-raster { grid-template-columns: 1fr; }
  .kz-knoepfe { justify-content: flex-start; }
  .kz-knoepfe .buehne-tel { text-align: left; }
}
.kontakt-zeile h2 { margin: 0 0 0.6rem; }
.kontakt-zeile .buehne-knoepfe { margin: 0; }

@media (max-width: 1080px) {
  .seitenkopf-raster, .person-raster, .person-rechts .person-raster, .werdegang-raster, .ehrenamt-mehr-raster { grid-template-columns: 1fr; }
  .person-rechts .person-bild { order: 0; }
  .person-bild { position: static; max-width: 26rem; }
}
@media (max-width: 640px) {
  .zeitleiste li { grid-template-columns: 1fr; gap: 0.2rem; }
  .ehrenamt-galerie { grid-template-columns: 1fr; }
}

/* Praxisteam als Namensliste, wenn keine Fotos da sind. Zurzeit nicht genutzt */
.team-liste { list-style: none; padding: 0; margin: 2.5rem 0 2rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 5vw, 4rem); }
.team-liste li { display: flex; flex-direction: column; padding: 1rem 0; border-top: 1px solid var(--linie); }
.team-liste strong { font-family: var(--serif); font-weight: 600; color: var(--navy); font-size: 1.2rem; }
.team-liste span { color: var(--teal-tief); font-weight: 600; font-size: 0.92rem; }
.team-liste small { color: var(--grau); font-size: 0.85rem; }
@media (max-width: 640px) { .team-liste { grid-template-columns: 1fr; } }

/* Porträts in der Teamliste */
.team-liste .team-foto { width: 100%; max-width: 240px; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; border-radius: var(--rund); margin: 0.4rem 0 0.9rem; }

/* Teamfoto im Seitenkopf */
.seitenkopf-bild { margin-top: clamp(2.5rem, 5vw, 4rem); margin-bottom: 0; }
.seitenkopf-bild img { display: block; width: 100%; height: auto; aspect-ratio: 1920 / 1008; object-fit: cover; object-position: center 30%; border-radius: var(--rund); }

/* Bühne mit drei Porträts: alle drei Ärzt:innen gleich groß, damit nicht nur Dr. Ogutu wahrgenommen wird */
.aerzte-buehne { padding: clamp(6.5rem, 12vw, 8.5rem) 0 clamp(2.5rem, 5vw, 4rem); background: var(--flaeche); }
.buehne-kopf { display: grid; gap: 1rem; margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.buehne-kopf h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.75rem); letter-spacing: -0.02em; max-width: 18ch; }
.buehne-kopf .lead { color: var(--grau); max-width: 46ch; }
.portraets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.6rem, 2vw, 1.75rem); }
.portraets li { display: flex; flex-direction: column; }
.portraets img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; border-radius: var(--rund); background: var(--navy); margin-bottom: 0.9rem; }
.portraets h2 { font-size: clamp(1rem, 0.75rem + 1.1vw, 1.5rem); line-height: 1.2; margin: 0 0 0.25rem; }
.portraets p { color: var(--grau); font-size: clamp(0.8rem, 0.72rem + 0.35vw, 0.95rem); margin: 0 0 0.5rem; }
.portraets .pfeil { margin-top: auto; min-height: 44px; display: inline-flex; align-items: center; }
.buehne-fuss { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: clamp(1.5rem, 3vw, 2.5rem); padding-top: 1.25rem; border-top: 1px solid var(--linie); }
.sprungzeile { display: flex; gap: 1.5rem; }
.sprungzeile a { min-height: 44px; display: inline-flex; align-items: center; gap: 0.4rem; text-decoration: none; font-weight: 500; }
@media (min-width: 900px) {
  .buehne-kopf { grid-template-columns: 1.15fr 1fr; align-items: end; gap: clamp(2rem, 5vw, 5rem); }
}
@media (max-width: 600px) {
  .portraets img { border-radius: 14px; margin-bottom: 0.6rem; }
  .portraets h2 { overflow-wrap: normal; }
  .portraets .pfeil { font-size: 0.85rem; white-space: nowrap; }
  .buehne-kopf .lead { font-size: 1.05rem; }
}

/* Ehrenamt in einem Abschnitt: Foto oben als Grund, darunter auf Navy die Vereine und zwei Bilder */
.ehrenamt-gesamt { flex-direction: column; align-items: stretch; min-height: 0; padding-top: clamp(6rem, 12vw, 10rem); }
.ehrenamt-gesamt .ehrenamt-bild { bottom: auto; height: min(44rem, 100%); }
.ehrenamt-gesamt::before { bottom: auto; height: min(44rem, 100%); }
.ehrenamt-gesamt .vereine { margin-bottom: 0; }
.ehrenamt-gesamt .ehrenamt-galerie { margin-top: clamp(2.5rem, 5vw, 4rem); }
.ehrenamt-gesamt .ehrenamt-galerie img { aspect-ratio: 16 / 10; width: 100%; }
@media (max-width: 1080px) {
  .ehrenamt-gesamt { padding-top: 0; }
  .ehrenamt-gesamt .ehrenamt-bild { height: 18rem; }
}
@media (max-width: 1080px) {
  .ehrenamt-gesamt .ehrenamt-galerie { grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-top: 2rem; }
  .ehrenamt-gesamt .ehrenamt-galerie img { aspect-ratio: 1; border-radius: 14px; }
}

/* Assistenzärzte mit in der Porträt-Reihe: Desktop fünf nebeneinander, Handy 3 + 2 mittig */
.portraets { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.portraets li { grid-column: span 2; }
.portraets li.assistenz:nth-last-child(2) { grid-column: 2 / span 2; }
@media (min-width: 900px) {
  .portraets { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .portraets li, .portraets li.assistenz:nth-last-child(2) { grid-column: auto; }
}
.buehne-fuss { justify-content: flex-end; }

/* Praxisteam als Porträts in derselben Größe wie die Ärzte, Karriere-Hinweis daneben statt schwebender Karte */
.portraets h3 { font-size: clamp(1rem, 0.75rem + 1.1vw, 1.5rem); line-height: 1.2; margin: 0 0 0.25rem; }
.portraets.portraets-team { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.portraets.portraets-team li { grid-column: auto; }
.team-raster { display: grid; gap: clamp(2rem, 4vw, 2.5rem); }
.team-raster .team-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; margin: 0; padding: 1.5rem 0 0; border-top: 1px solid var(--linie); }
@media (min-width: 900px) {
  .team-raster { grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: clamp(0.6rem, 2vw, 1.75rem); }
  .team-raster .portraets-team { grid-column: span 3; }
  .team-raster .team-cta { grid-column: span 2; align-self: end; margin-bottom: 1rem; }
}

/* Ärzte und Praxisteam zusammen, wie Dr. Ogutu es möchte: acht Porträts, Handy 2 nebeneinander, Desktop 4 */
.portraets.portraets-alle { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: clamp(1.5rem, 3vw, 2.5rem); }
.portraets.portraets-alle li, .portraets.portraets-alle li.assistenz:nth-last-child(2) { grid-column: auto; }
@media (min-width: 900px) {
  .portraets.portraets-alle { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.buehne-text { display: grid; gap: 0.75rem; }
.buehne-text .lead { margin: 0; }
.buehne-fuss:has(.team-cta) { justify-content: space-between; align-items: flex-end; }
.buehne-fuss .team-cta { padding: 0; margin: 0; flex: 1 1 32rem; }
.buehne-fuss .team-cta h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); margin: 0.3rem 0 0.4rem; }
