/* Branchen-Hero (Startseite). Bild, Branchenwort, Text und Knöpfe wechseln per Klick auf die Branche. */

/* Das Branchenwort steht in der Schrift des jeweiligen Entwurfs */
@font-face { font-family: "BH Clash"; src: url(../beispiele/dachdecker-beispiel/fonts/clash-grotesk-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "BH Archivo"; src: url(../beispiele/fahrzeugaufbereitung-beispiel/fonts/archivo-latin-standard-normal.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "BH Cormorant"; src: url(../beispiele/all-you-can-eat-beispiel/fonts/cormorant-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "BH Work"; src: url(../beispiele/skin-care-beispiel/fonts/work-sans-latin-300-italic.woff2) format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }

.bh { position: relative; min-height: 100svh; display: flex; overflow: hidden; background: var(--schwarz); isolation: isolate; }

/* Bilder liegen übereinander, das aktive blendet ein und zoomt leicht zurück */
.bh-bilder { position: absolute; inset: 0; z-index: -2; }
.bh-bild { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 65% 50%; opacity: 0; transform: scale(1.06); transition: opacity .9s cubic-bezier(.16, 1, .3, 1), transform 1.6s cubic-bezier(.16, 1, .3, 1); }
.bh-bild.an { opacity: 1; transform: none; }

/* Waldgrüner Schleier links und unten, damit Text und Leiste lesbar bleiben */
.bh-schleier { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgb(8 37 29 / .92) 0%, rgb(8 37 29 / .72) 34%, rgb(8 37 29 / .18) 64%, rgb(8 37 29 / 0) 80%),
    linear-gradient(0deg, rgb(8 37 29 / .9) 0%, rgb(8 37 29 / 0) 30%),
    linear-gradient(180deg, rgb(8 37 29 / .55) 0%, rgb(8 37 29 / 0) 18%); }

.bh-innen { width: min(1400px, 100% - 2 * var(--rand)); margin-inline: auto; padding: clamp(120px, 15vh, 160px) 0 clamp(28px, 4vh, 44px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.bh-text { max-width: 720px; }

.bh-person { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; font-size: 15px; line-height: 1.3; color: var(--text-weich); }
.bh-person img { width: 50px; height: 50px; border-radius: 50%; border: 1.5px solid var(--gold-hell); object-fit: cover; }
.bh-person b { display: block; color: var(--text); font-weight: 600; }

.bh h1 { font-size: clamp(1.5rem, 2.4vw, 2.2rem); line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; color: var(--text); }
.bh-zeile { display: block; }
/* Feld für das wechselnde Wort: fester Platz, damit nichts springt */
.bh-wort-feld { position: relative; display: block; height: 1.12em; margin-top: .08em; font-size: clamp(3.2rem, 7.4vw, 7rem); line-height: 1.12; }
.bh-wort { position: absolute; left: 0; bottom: 0; white-space: nowrap; color: var(--gold-hell); transition: opacity .45s cubic-bezier(.16, 1, .3, 1), transform .55s cubic-bezier(.16, 1, .3, 1), filter .45s; }
.bh-wort.raus { opacity: 0; transform: translateY(-.35em); filter: blur(6px); }
.bh-wort.rein { opacity: 0; transform: translateY(.35em); filter: blur(6px); transition: none; }
.bh-wort[data-schrift="handwerker"] { font-family: "BH Clash", var(--sans); font-weight: 500; letter-spacing: -0.035em; }
.bh-wort[data-schrift="kfz"] { font-family: "BH Archivo", var(--sans); font-weight: 800; font-stretch: 125%; letter-spacing: -0.03em; font-size: .78em; }
.bh-wort[data-schrift="gastro"] { font-family: "BH Cormorant", Georgia, serif; font-weight: 600; letter-spacing: -0.02em; font-size: 1.08em; }
.bh-wort[data-schrift="beauty"] { font-family: "BH Work", var(--sans); font-style: italic; font-weight: 300; letter-spacing: -0.04em; font-size: .8em; }

/* Text und Knöpfe je Branche: liegen übereinander, nur die aktive Tafel ist sichtbar */
.bh-tafeln { display: grid; margin-top: 22px; }
.bh-tafel { grid-area: 1 / 1; display: flex; flex-direction: column; opacity: 0; transform: translateY(10px); visibility: hidden; transition: opacity .4s ease, transform .5s cubic-bezier(.16, 1, .3, 1), visibility 0s .4s; }
.bh-tafel.an { opacity: 1; transform: none; visibility: visible; transition: opacity .5s ease .12s, transform .6s cubic-bezier(.16, 1, .3, 1) .12s, visibility 0s; }
.bh-tafel p { max-width: 50ch; font-size: 1.08rem; line-height: 1.55; color: var(--text); }
.bh-knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 24px; }  /* Knöpfe bleiben beim Wechsel an derselben Stelle */
.bh .knopf.hohl { background: rgb(8 37 29 / .35); }

.bh-zusage { margin-top: 18px; font-size: 15px; color: var(--gold-hell); }
.bh .google-abzeichen { margin-top: 14px; }

/* Branchen-Leiste unten rechts: die gewählte Branche wird zur breiten Karte */
.bh-dock { align-self: flex-end; display: flex; gap: 10px; }
.bh-wahl { position: relative; flex: 0 0 112px; height: 104px; display: flex; align-items: flex-end; gap: 14px; padding: 10px; border: 1px solid rgb(216 193 154 / .35); border-radius: 6px; background: rgb(8 37 29 / .82); color: var(--text); font: inherit; text-align: left; overflow: hidden; cursor: pointer; transition: flex-basis .55s cubic-bezier(.16, 1, .3, 1), border-color .3s, background-color .3s, transform .2s; }
.bh-wahl img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; transition: opacity .3s, inset .55s cubic-bezier(.16, 1, .3, 1), width .55s cubic-bezier(.16, 1, .3, 1), height .55s cubic-bezier(.16, 1, .3, 1); }
.bh-wahl-text { position: relative; display: block; min-width: 0; }
.bh-wahl-text b { display: block; font-size: 14px; line-height: 1.2; font-weight: 700; }
.bh-wahl-text small { display: block; max-height: 0; opacity: 0; overflow: hidden; font-size: 13px; color: var(--text-weich); white-space: nowrap; transition: opacity .3s, max-height .3s; }
.bh-wahl:hover { border-color: var(--gold-hell); }
.bh-wahl:hover img { opacity: .6; }
.bh-wahl:active { transform: scale(.97); }
.bh-wahl[aria-pressed="true"] { flex-basis: 300px; border-color: var(--gold); background: rgb(8 37 29 / .94); align-items: center; cursor: default; }
.bh-wahl[aria-pressed="true"] img { inset: 10px auto 10px 10px; width: 84px; height: calc(100% - 20px); opacity: 1; border-radius: 3px; }
.bh-wahl[aria-pressed="true"] .bh-wahl-text { margin-left: 94px; }
.bh-wahl[aria-pressed="true"] .bh-wahl-text b { font-size: 17px; }
.bh-wahl[aria-pressed="true"] .bh-wahl-text small { max-height: 2em; opacity: 1; margin-top: 4px; transition-delay: .2s; }

/* Handy: Text oben, Branchen als 2 x 2 Raster darunter */
/* Handy: Foto oben frei, Branchen als Reihe an der Fotokante, Text darunter auf Grün */
@media (max-width: 900px) {
  .bh { display: block; min-height: 0; --foto-h: min(42svh, 400px); }
  .bh-bilder { inset: 0 0 auto 0; height: var(--foto-h); }
  .bh-bild { object-position: 72% 50%; }
  .bh-bild[data-b="kfz"] { object-position: 30% 50%; }   /* Front des Wagens im Bild halten */
  .bh-schleier { inset: 0 0 auto 0; height: var(--foto-h); background: linear-gradient(180deg, rgb(8 37 29 / .7) 0%, rgb(8 37 29 / 0) 26%, rgb(8 37 29 / 0) 70%, rgb(8 37 29 / .55) 100%); }
  .bh-innen { padding: calc(var(--foto-h) - 44px) 0 40px; gap: 26px; }
  .bh-dock { order: -1; align-self: stretch; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .bh-wahl, .bh-wahl[aria-pressed="true"] { height: 80px; padding: 7px; align-items: flex-end; border-radius: 4px; }
  .bh-wahl img { opacity: .5; }
  .bh-wahl[aria-pressed="true"] img { inset: 0; width: 100%; height: 100%; border-radius: 0; opacity: .58; }
  .bh-wahl[aria-pressed="true"] .bh-wahl-text { margin-left: 0; }
  .bh-wahl-text b, .bh-wahl[aria-pressed="true"] .bh-wahl-text b { font-size: 12.5px; line-height: 1.15; hyphens: manual; text-shadow: 0 1px 6px rgb(0 0 0 / .8); }
  .bh-wahl[aria-pressed="true"] .bh-wahl-text small { display: none; }
  .bh-wahl[aria-pressed="true"] { border: 2px solid var(--gold-hell); }
  .bh-person { margin-bottom: 10px; font-size: 14px; }
  .bh-innen { gap: 22px; }
  .bh-person img { width: 36px; height: 36px; }
  .bh-person small { display: none; }
  .bh h1 { font-size: 1.25rem; }
  .bh-wort-feld { font-size: clamp(2.3rem, 11vw, 3.4rem); }
  .bh-tafel p { font-size: 15.5px; }
  .bh-knoepfe { padding-top: 18px; }
  .bh-knoepfe .knopf { flex: 1 1 100%; }
  .bh-zusage { font-size: 14px; }
  /* WhatsApp und E-Mail am Rand erst zeigen, wenn der Hero-Text vorbei ist (sie lägen sonst auf dem Text) */
  body.bh-text-da .side-tabs { opacity: 0; visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .bh-bild, .bh-wort, .bh-tafel, .bh-wahl, .bh-wahl img { transition-duration: .01s !important; transition-delay: 0s !important; }
  .bh-bild { transform: none; }
}
