/* Branchen-Familie · beweis (Owner: wdf-art-director, Auftrag B-branche-arztpraxis, Familie seit B-branchen-familie; abgeleitet aus persona-fotografen-070-stimmen.css). Nur Tokens, mobil zuerst.
   Kopf mit kurzer Google-Zeile · Projekt-Bühne der Branchen-Referenz in Projektfarbe (Muster projekt-000-projektbuehne.css) als farbiger Takt ·
   Reihe weiterer Projekte der Branche (Projektfarbe + Telefon-Screen) · zwei Stimmen-Karten (Arztpraxis: Weiß, Castell; je Branche laut stimmen-zuordnung.md) · vier weitere aufklappbar · CTA-Zeile. */

/* Projektfarben aller acht Referenzen wie referenzen-020-projekte.css (gemessen in den Live-Screenshots; Vorschlag dort: Token --color-projekt-<slug>).
   Alle acht hier, damit jede Branche ihre Beweis-Projekte ohne eigene Datei zeigen kann (Regel: Meldung B-branchen-familie). */
[data-projekt="hautarzt-pawlowska"] { --pf: var(--color-projekt-hautarzt-pawlowska); }
[data-projekt="physiotherapie-mocker"] { --pf: var(--color-projekt-physiotherapie-mocker); }
[data-projekt="immobilien-kraemer"] { --pf: var(--color-projekt-immobilien-kraemer); }
[data-projekt="edelstahlbau-tannroda-projekt-iris"] { --pf: var(--color-projekt-edelstahlbau-tannroda-projekt-iris); }
[data-projekt="steuerberater-sieger"] { --pf: var(--color-projekt-steuerberater-sieger); }
[data-projekt="redesign-ines-zu-castel"] { --pf: var(--color-projekt-redesign-ines-zu-castel); }
[data-projekt="neue-website-markus-kortschak"] { --pf: var(--color-projekt-neue-website-markus-kortschak); }
[data-projekt="arbeitsmedizin-weiss"] { --pf: var(--color-projekt-arbeitsmedizin-weiss); }
[data-projekt="hubert-haustechnik"] { --pf: var(--color-projekt-hubert-haustechnik); }   /* Lauf 4: wie Projektbühne ergänzt */

.br-stimmen { isolation: isolate; }
.br-bw-kopf { display: grid; gap: var(--space-24); align-items: end; }
.br-bw-google { display: flex; align-items: center; gap: var(--space-8); color: var(--color-text-secondary); font-size: var(--font-size-small); }
.br-bw-google b { color: var(--color-text); font-weight: var(--font-weight-medium); }

.br-st-raster { display: grid; gap: var(--space-24); margin-top: var(--space-64); }
.br-st-karten { display: grid; gap: var(--space-24); }
.br-st-karten > li > .karte-stimme { height: 100%; }
.karte-stimme figcaption { margin-top: auto; }
.br-st-karten .karte-stimme { grid-template-rows: auto auto 1fr auto; }

/* Mobil eine Stimme sichtbar, die zweite steht dort unter „Weitere Stimmen“ */
.br-st-ab768 { display: none; }
@media (min-width: 768px) { .br-st-ab768 { display: block; } .br-st-bis768 { display: none; } }

/* Aufklapper „Vier weitere Stimmen“ */
.br-st-weitere { margin-top: var(--space-24); }
.br-st-weitere summary {
  display: inline-flex; align-items: center; gap: var(--space-12); min-height: var(--size-target); cursor: pointer; list-style: none;
  color: var(--color-text); font-weight: var(--font-weight-medium); font-size: var(--font-size-ui);
}
.br-st-weitere summary::-webkit-details-marker { display: none; }
.br-st-weitere-ico { position: relative; width: var(--size-faq-toggle); height: var(--size-faq-toggle); border-radius: var(--radius-round); box-shadow: var(--ring-hairline); transition: background-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.br-st-weitere-ico::before, .br-st-weitere-ico::after { content: ""; position: absolute; left: 50%; top: 50%; width: var(--space-12); height: var(--stroke-bold); margin: calc(var(--stroke-bold) / -2) 0 0 calc(var(--space-12) / -2); background: var(--color-text); }
.br-st-weitere-ico::after { transform: rotate(90deg); transition: transform var(--dur-base) var(--ease-out); }
.br-st-weitere[open] .br-st-weitere-ico::after { transform: rotate(0deg); }
.br-st-weitere-zu { display: none; }
.br-st-weitere[open] .br-st-weitere-auf { display: none; }
.br-st-weitere[open] .br-st-weitere-zu { display: inline; }
@media (hover: hover) { .br-st-weitere summary:hover .br-st-weitere-ico { background: var(--color-accent-a10); box-shadow: var(--ring-accent); } }
.br-st-karten--weitere { margin-top: var(--space-16); }
.br-st-karten--weitere blockquote { font-size: var(--font-size-body); }

/* ---------- Projekt-Bühne (Projektfarbe + Browser + Telefon + Porträt) ---------- */
.br-projekt { display: grid; overflow: hidden; margin-top: var(--space-48); }
.br-pj-buehne {
  position: relative; margin: 0; overflow: hidden; isolation: isolate; padding: 10% 7% 0;
  background:
    radial-gradient(80% 70% at 16% 0%, color-mix(in srgb, var(--color-white) 20%, transparent), transparent 70%),
    linear-gradient(180deg, color-mix(in oklab, var(--pf) 94%, var(--color-white)) 0%, var(--pf) 45%, color-mix(in oklab, var(--pf) 74%, var(--color-bg)) 100%);
}
.br-pj-buehne::before {
  content: ""; position: absolute; left: 12%; right: 10%; bottom: -12%; height: 50%; z-index: -1;
  border-radius: var(--radius-round); background: color-mix(in srgb, var(--color-bg) 45%, transparent); filter: var(--blur-glow);
}
.br-pj-screens { position: relative; padding-right: 13%; margin-bottom: -3%; }
.br-pj-browser { border-radius: var(--radius-device) var(--radius-device) 0 0; }
.br-pj-browser .chrome .tab { min-width: 0; max-width: 40%; }
.br-pj-browser .chrome .tab i { background: var(--pf); }
.br-pj-browser .chrome .tab span, .br-pj-browser .chrome .url b { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.br-pj-browser .chrome .url b { font-family: var(--font-mono); font-weight: var(--font-weight-regular); color: var(--color-device-chrome-text); }
.br-pj-browser .vp img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.br-pj-screens .sc-m {
  position: absolute; right: 0; top: 16%; width: 23%; aspect-ratio: 420 / 909; object-fit: cover; object-position: top;
  border-radius: var(--radius-md); box-shadow: var(--shadow-screen-phone);
}
.br-pj-text { display: grid; gap: var(--space-12); align-content: center; justify-items: start; padding: var(--space-24) var(--space-20) var(--space-32); }
.br-pj-text .meta { color: var(--color-text-tertiary); }
.br-pj-titel { font: var(--font-weight-display) var(--font-size-station) / var(--leading-station) var(--font-display); letter-spacing: var(--tracking-station); text-wrap: balance; }
.br-pj-kurz { max-width: 44ch; color: var(--color-text-secondary); text-wrap: pretty; }
.br-pj-links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-24); }

@media (min-width: 768px) {
  .br-st-karten--weitere { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .br-st-karten:not(.br-st-karten--weitere) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .br-bw-kopf { grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--space-64); }
  .br-st-karten:not(.br-st-karten--weitere) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .br-st-karten--weitere { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .br-projekt { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
  .br-pj-text { padding: var(--space-48); }
}

/* ---------- Ziele der Referenz (aus der Projektseite) ---------- */
.br-pj-ziele { display: grid; gap: var(--space-8); width: 100%; }
.br-pj-ziele li { display: grid; gap: var(--space-2); padding: var(--space-8) 0 0; border-top: 1px solid var(--color-line); color: var(--color-text); font-size: var(--font-size-ui-sm); line-height: var(--leading-snug); }
.br-pj-ziele .mono { font-size: var(--font-size-mono-xs); color: var(--color-accent-soft); }

/* ---------- Reihe weiterer Projekte der Branche ---------- */
.br-reihe { display: grid; gap: var(--space-16); margin-top: var(--space-24); }
.br-reihe-karte {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); overflow: hidden; border-radius: var(--radius-lg);
  background: var(--gradient-card-module), var(--color-bg); box-shadow: var(--shadow-card-module);
}
.br-reihe-bild {
  position: relative; overflow: hidden; padding: var(--space-16) var(--space-16) 0; display: flex; align-items: flex-end; justify-content: center; min-height: calc(var(--space-96) * 1.6);
  background: linear-gradient(180deg, color-mix(in oklab, var(--pf) 92%, var(--color-white)) 0%, var(--pf) 55%, color-mix(in oklab, var(--pf) 70%, var(--color-bg)) 100%);
}
.br-reihe-bild img { width: 72%; max-width: calc(var(--space-96) * 1.2); aspect-ratio: 420 / 560; object-fit: cover; object-position: top; border-radius: var(--radius-md) var(--radius-md) 0 0; box-shadow: var(--shadow-screen-phone); }
.br-reihe-text { display: grid; gap: var(--space-6); align-content: center; justify-items: start; padding: var(--space-16) var(--space-20); }
.br-reihe-text .meta { color: var(--color-text-tertiary); font-size: var(--font-size-mono-xs); }
.br-reihe-titel { font: var(--font-weight-display) var(--font-size-body-lg) / var(--leading-title) var(--font-display); letter-spacing: var(--tracking-title); text-wrap: balance; }
@media (min-width: 768px) {
  .br-reihe { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-24); }
  .br-reihe-karte { grid-template-columns: 1fr; }
  .br-reihe-bild { min-height: 0; aspect-ratio: 16 / 10; padding: var(--space-24) var(--space-24) 0; }
  .br-reihe-bild img { width: 42%; max-width: none; }
  .br-reihe-text { padding: var(--space-20) var(--space-24) var(--space-24); }
}
@media (min-width: 1024px) {
  .br-pj-ziele { gap: var(--space-10); }
}

/* Inhaber-Porträt in der Projekt-Bühne (base.css .inhaber/.por) und Stimmen-Kicker („Was Kunden/Mandanten sagen“) */
.br-pj-text .inhaber { width: 100%; }
.br-st-kicker { margin-top: var(--space-64); }
.br-st-kicker + .br-st-raster { margin-top: var(--space-24); }

/* Reihe mit 1 oder 2 Projekten: Breite füllen statt leerer Spalten (Beweis-Regel: Reihe 0–3) */
@media (min-width: 768px) {
  .br-reihe:has(> .br-reihe-karte:only-child) { grid-template-columns: minmax(0, 1fr); }
  .br-reihe-karte:only-child { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .br-reihe-karte:only-child .br-reihe-bild { aspect-ratio: auto; min-height: calc(var(--space-96) * 2); }
  .br-reihe-karte:only-child .br-reihe-bild img { width: 46%; }
  .br-reihe:has(> .br-reihe-karte:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .br-reihe:has(> .br-reihe-karte:nth-child(2):last-child) .br-reihe-bild { aspect-ratio: 16 / 7; }
  .br-reihe:has(> .br-reihe-karte:nth-child(2):last-child) .br-reihe-bild img { width: 28%; }
}

/* r1 (Kritik Branchen P2-6): Querkarte mit nur einem Projekt füllt die Breite mit Inhalt statt Leerfläche:
   Satz (daten.mjs) + ein Ziel der Projektseite rechts neben Titel und Link. Bei mehreren Projekten ausgeblendet. */
.br-reihe-mehr { display: none; }
@media (min-width: 768px) {
  .br-reihe-karte:only-child .br-reihe-mehr { display: grid; gap: var(--space-12); align-content: center; }
  .br-reihe-satz { max-width: 52ch; color: var(--color-text-secondary); font-size: var(--font-size-ui-sm); line-height: var(--leading-body); text-wrap: pretty; }
  .br-reihe-ziel { display: grid; gap: var(--space-2); padding-top: var(--space-8); border-top: 1px solid var(--color-line); color: var(--color-text); font-size: var(--font-size-ui-sm); line-height: var(--leading-snug); }
  .br-reihe-ziel .mono { font-size: var(--font-size-mono-xs); color: var(--color-accent-soft); }
}
@media (min-width: 1024px) {
  .br-reihe-karte:only-child .br-reihe-text { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); column-gap: var(--space-48); padding: var(--space-32) var(--space-48); }
  .br-reihe-karte:only-child .br-reihe-mehr { grid-column: 2; grid-row: 1 / span 3; }
  .br-reihe-karte:only-child .br-reihe-text > :not(.br-reihe-mehr) { grid-column: 1; }
}
