/* Branchenseiten (Makler, Hausverwaltung, Dachdecker): Funktionsraster, Ablauf, Anfrage – ergänzt sub.css/home.css */

/* Funktionsraster */
.bx-feat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.bx-feat__i { padding: 1.9rem 1.7rem 1.8rem; border-radius: 18px; background: #fff; border: 1px solid var(--line); transition: transform .6s var(--ease), box-shadow .5s; }
.bx-feat__i:hover { transform: translateY(-5px); box-shadow: 0 30px 60px -32px rgba(18,20,24,.28); }
.bx-feat__ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: #fff; }
.bx-feat__ic svg { width: 22px; height: 22px; }
.bx-feat__i h3 { font-family: var(--display); font-stretch: 80%; font-weight: 800; font-size: 1.4rem; line-height: 1.08; margin: 1.1rem 0 .6rem; color: var(--ink); }
.bx-feat__i p { color: var(--muted); font-size: .97rem; line-height: 1.6; margin: 0; }
.h-section--grey .bx-feat__i { background: #fff; }
@media (max-width: 1023px) { .bx-feat { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
    .bx-feat { grid-template-columns: 1fr; gap: .75rem; }
    .bx-feat__i { padding: 1.3rem 1.2rem; display: grid; grid-template-columns: 42px 1fr; gap: .2rem 1rem; align-items: start; }
    .bx-feat__ic { width: 42px; height: 42px; grid-row: span 2; }
    .bx-feat__i h3 { margin: .15rem 0 .35rem; font-size: 1.2rem; }
    .bx-feat__i p { font-size: .93rem; }
}

/* Aufzählung im Fließtext */
.seo .bx-list { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: .55rem; }
.seo .bx-list li { position: relative; padding-left: 1.9rem; color: var(--muted); line-height: 1.6; }
.seo .bx-list li::before { content: ""; position: absolute; left: 0; top: .42em; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--grad); }
.seo .bx-list li::after { content: ""; position: absolute; left: .34rem; top: .62em; width: .38rem; height: .2rem; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.seo .bx-list strong { color: var(--ink); }

/* Ablauf: Desktop waagerecht, Handy als senkrechte Zeitleiste */
.bx-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.6rem; position: relative; counter-reset: bx; }
.bx-steps::before { content: ""; position: absolute; left: 28px; right: 28px; top: 27px; height: 2px; background: var(--line); }
.bx-steps li { position: relative; counter-increment: bx; }
.bx-steps li::before { content: counter(bx, decimal-leading-zero); position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--display); font-stretch: 75%; font-weight: 800; font-size: 1.05rem; box-shadow: 0 0 0 6px #fff; }
.h-section--grey .bx-steps li::before { box-shadow: 0 0 0 6px var(--bg-2); }
.bx-steps li:last-child::before { background: var(--grad); }
.bx-steps h3 { font-family: var(--display); font-stretch: 80%; font-weight: 800; font-size: 1.35rem; line-height: 1.1; margin: 1.2rem 0 .5rem; color: var(--ink); }
.bx-steps p { color: var(--muted); font-size: .96rem; line-height: 1.6; margin: 0; }
@media (max-width: 860px) {
    .bx-steps { grid-template-columns: 1fr; gap: 1.6rem; }
    .bx-steps::before { left: 21px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; }
    .bx-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 0 1rem; }
    .bx-steps li::before { width: 44px; height: 44px; font-size: .9rem; grid-row: span 2; }
    .bx-steps h3 { margin: .45rem 0 .35rem; font-size: 1.2rem; }
}

/* Anfrage direkt auf der Seite */
.bx-form { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.bx-form__intro .h-display { margin-top: 1rem; }
.bx-form__intro > p { color: var(--muted); line-height: 1.7; margin-top: 1.2rem; }
.bx-form__who { display: grid; grid-template-columns: 72px 1fr; gap: .2rem 1rem; align-items: center; margin-top: 2rem; padding: 1.1rem 1.2rem; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.bx-form__who img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; grid-row: span 2; }
.bx-form__who b { color: var(--ink); font-size: 1.02rem; }
.bx-form__who span { color: var(--muted); font-size: .9rem; line-height: 1.45; }
.bx-form__alt { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
.bx-form__alt a { display: inline-flex; align-items: center; gap: .45rem; padding: .6rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; font-size: .92rem; text-decoration: none; }
.bx-form__alt a:hover { border-color: var(--ink); }
.bx-form__card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(1.4rem, 3.5vw, 2.6rem); box-shadow: 0 40px 80px -50px rgba(10,11,14,.35); }
.bx-form__card .field label { color: var(--ink); }
.bx-form__card .btn { width: 100%; justify-content: center; }
.bx-form__card .form-hinweis:empty { display: none; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 960px) { .bx-form { grid-template-columns: 1fr; } }

/* Genau vier Referenzen: am breiten Bildschirm in einer Reihe statt 3 + 1 */
@media (min-width: 1180px) { .rf-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.4rem 1.4rem; } .rf-grid--4 .rf-card h3 { font-size: 1.4rem; } }

/* Referenzen am Handy auf 3 kürzen – darunter „Alle Referenzen ansehen“ */
@media (max-width: 640px) { .rf-grid--kurz .rf-card:nth-child(n+4) { display: none; } }

/* Beratung im Preisblock */
.fd .bx-note { margin-top: 1rem; font-size: .95rem; color: rgba(255,255,255,.72); }
.fd .bx-note strong { color: #fff; }

/* =====================================================================
   v3 – Hero mit großer Website-Ansicht, Erzähl-Abschnitt mit mitlaufendem Bild
   (nur auf Seiten mit body.bx)
   ===================================================================== */
body.bx .lp-hero { padding-top: clamp(7.5rem, 11vw, 9.5rem) !important; padding-bottom: clamp(3.5rem, 7vw, 6rem); }
body.bx .lp-hero .lp-hero__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 4vw, 4.5rem); align-items: center; }
body.bx .lp-hero .h-display { font-size: clamp(2.3rem, 1.05rem + 3.1vw, 4.1rem) !important; letter-spacing: -.035em !important; line-height: 1.02 !important; }
body.bx .lp-hero .h-lead { font-size: clamp(1.02rem, .96rem + .25vw, 1.16rem); margin-top: 1.4rem; max-width: 46ch; }
body.bx .lp-hero .h-actions { margin-top: 2rem; }
body.bx .lp-hero .h-proof { margin-top: 1.8rem; }
body.bx .lp-hero .h-hero__glow { left: 72% !important; top: -12vw !important; width: 70vw !important; height: 60vw !important; }

/* Website-Ansicht */
.bx-show { position: relative; perspective: 1800px; padding: 0 6% 9% 0; }
.bx-show__win { position: relative; border-radius: 14px; overflow: hidden; background: #15171c; box-shadow: 0 0 0 1px rgba(255,255,255,.09), 0 60px 120px -40px rgba(0,0,0,.85), 0 30px 60px -30px rgba(242,69,47,.25); transform: rotateY(-8deg) rotateX(3deg) rotateZ(.4deg); transform-origin: 60% 50%; transition: transform 1.1s var(--ease); }
.bx-show:hover .bx-show__win { transform: rotateY(-3deg) rotateX(1deg); }
.bx-show__bar { display: flex; align-items: center; gap: 14px; height: 38px; padding: 0 14px; background: #1d2027; border-bottom: 1px solid rgba(255,255,255,.06); }
.bx-show__bar .dots { display: flex; gap: 7px; flex: 0 0 auto; }
.bx-show__bar .dots i { width: 11px; height: 11px; border-radius: 50%; background: #3a3e48; }
.bx-show__url { flex: 1; max-width: 340px; margin: 0 auto; height: 24px; border-radius: 7px; background: #2a2e37; color: #c3c7d0; font-size: .78rem; display: flex; align-items: center; justify-content: center; gap: 6px; letter-spacing: .01em; white-space: nowrap; overflow: hidden; }
.bx-show__url svg { width: 11px; height: 11px; opacity: .7; flex: 0 0 auto; }
.bx-show__bar .sp { width: 47px; flex: 0 0 auto; }
.bx-show__screen { position: relative; aspect-ratio: 16 / 10; background: #0f1013; }
.bx-show__screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transform: scale(1.02); transition: opacity .9s ease, transform 1.6s var(--ease); }
.bx-show__screen img.is-on { opacity: 1; transform: none; }
.bx-show__phone { position: absolute; right: 0; bottom: 0; width: 22%; border-radius: 26px; padding: 5px; background: #0b0c0f; box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 40px 70px -25px rgba(0,0,0,.9); transform: rotate(3deg); }
.bx-show__phone::before { content: ""; position: absolute; z-index: 2; top: 11px; left: 50%; width: 30%; height: 11px; border-radius: 8px; background: #0b0c0f; transform: translateX(-50%); }
.bx-show__phone span { display: block; aspect-ratio: 390 / 844; border-radius: 21px; overflow: hidden; background: #fff; }
.bx-show__phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.bx-show__chip { position: absolute; left: -4%; bottom: 14%; display: flex; align-items: center; gap: .7rem; padding: .75rem 1.05rem .75rem .8rem; border-radius: 14px; background: rgba(255,255,255,.96); color: var(--ink); box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); font-size: .9rem; line-height: 1.25; max-width: 290px; transition: opacity .4s ease, transform .4s ease; }
.bx-show__chip.is-swap { opacity: 0; transform: translateY(8px); }
.bx-show__chip i { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; color: #fff; font-style: normal; font-weight: 800; }
.bx-show__chip b { display: block; font-size: .98rem; }
.bx-show__chip small { color: var(--muted); font-size: .8rem; }
.bx-show__nav { display: flex; gap: .5rem; margin-top: 1.2rem; padding-left: 2px; }
.bx-show__nav button { height: 6px; width: 26px; border-radius: 4px; border: 0; padding: 0; background: rgba(255,255,255,.22); cursor: pointer; transition: width .4s var(--ease), background .3s; }
.bx-show__nav button[aria-pressed="true"] { width: 46px; background: var(--grad); }
@media (max-width: 1023px) {
    body.bx .lp-hero .lp-hero__grid { grid-template-columns: 1fr; }
    .bx-show { max-width: 720px; }
    .bx-show__win { transform: none; }
}
@media (max-width: 640px) {
    .bx-show { padding: 0 8% 14% 0; margin-top: .5rem; }
    .bx-show__chip { left: auto; right: 0; bottom: -2%; font-size: .8rem; padding: .55rem .75rem .55rem .6rem; max-width: 220px; }
    .bx-show__chip i { width: 28px; height: 28px; }
    .bx-show__chip b { font-size: .86rem; }
    .bx-show__phone { width: 26%; right: 2%; bottom: 10%; }
    .bx-show__bar { height: 30px; } .bx-show__bar .dots i { width: 8px; height: 8px; } .bx-show__url { height: 20px; font-size: .7rem; }
}
@media (prefers-reduced-motion: reduce) { .bx-show__win, .bx-show__screen img { transition: none; } }

/* Fenster der Referenzkarten: schlanker, ruhiger */
body.bx .win__bar { height: 28px; gap: .6rem; background: #EEF0F3; border-bottom: 0; }
body.bx .win__dots i, body.bx .win__dots i:nth-child(2), body.bx .win__dots i:nth-child(3) { width: 8px; height: 8px; background: #CDD1D8; }
body.bx .win__url { background: #fff; border-radius: 6px; font-size: .68rem; }
body.bx .win__url::before { background: #9AA1AD; }
body.bx .rf-card .win { box-shadow: 0 0 0 1px #E3E6EB, 0 26px 50px -30px rgba(10,11,14,.35); }

/* Erzähl-Abschnitt: Text links, Bild rechts läuft mit */
.bx-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.bx-story .seo { max-width: 640px; }
.bx-ch { padding: 0 0 clamp(2.5rem, 6vh, 4.5rem); }
.bx-ch:last-child { padding-bottom: 0; }
.bx-ch h2 { margin-top: 0 !important; }
.bx-ch__no { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .14em; color: var(--acc-text); margin-bottom: .6rem; }
.bx-story__media { position: sticky; top: 120px; }
.bx-stage { position: relative; aspect-ratio: 16 / 12.5; }
.bx-fig { position: absolute; inset: 0; margin: 0; display: flex; flex-direction: column; opacity: 0; transform: translateY(18px) scale(.985); transition: opacity .6s ease, transform .8s var(--ease); pointer-events: none; }
.bx-fig.is-on { opacity: 1; transform: none; pointer-events: auto; }
.bx-fig figcaption { margin-top: 1rem; font-size: .9rem; color: var(--muted); line-height: 1.5; }
.bx-fig figcaption b { color: var(--ink); }
.bx-stage__count { position: absolute; right: 0; bottom: -2.2rem; font-size: .8rem; font-weight: 700; letter-spacing: .14em; color: var(--muted); }
.bx-ch__fig { display: none; }
/* Browserkarte */
.bx-br { border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px #E3E6EB, 0 40px 80px -40px rgba(10,11,14,.45); }
.bx-br__bar { display: flex; align-items: center; gap: .6rem; height: 30px; padding: 0 .8rem; background: #EEF0F3; }
.bx-br__bar i { width: 8px; height: 8px; border-radius: 50%; background: #CDD1D8; }
.bx-br__bar span { flex: 1; max-width: 260px; margin: 0 auto; height: 19px; border-radius: 6px; background: #fff; font-size: .7rem; color: #5B6472; display: flex; align-items: center; justify-content: center; }
.bx-br img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
/* Google-Ergebnis */
.bx-g { border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px #E3E6EB, 0 40px 80px -40px rgba(10,11,14,.45); padding: 1.4rem 1.5rem 1.6rem; font-family: Arial, Helvetica, sans-serif; }
.bx-g__q { display: flex; align-items: center; gap: .7rem; height: 46px; padding: 0 1.1rem; border-radius: 24px; box-shadow: 0 1px 6px rgba(32,33,36,.28); color: #202124; font-size: 1rem; }
.bx-g__q svg { width: 18px; height: 18px; color: #4285F4; }
.bx-g__tabs { display: flex; gap: 1.2rem; margin: .9rem 0 .4rem .4rem; font-size: .82rem; color: #5f6368; }
.bx-g__tabs b { color: #1a73e8; border-bottom: 3px solid #1a73e8; padding-bottom: .35rem; }
.bx-g__r { position: relative; padding: .9rem .4rem; border-top: 1px solid #ECEDEF; }
.bx-g__r:first-of-type { border-top: 0; }
.bx-g__r small { display: block; font-size: .78rem; color: #4d5156; }
.bx-g__r strong { display: block; font-size: 1.12rem; font-weight: 400; color: #1a0dab; margin: .2rem 0 .25rem; }
.bx-g__r p { font-size: .84rem; color: #4d5156; line-height: 1.45; margin: 0; }
.bx-g__r--fade { opacity: .38; }
.bx-g__ad { display: inline-block; font-weight: 700; color: #202124; margin-right: .3rem; }
.bx-g__pos { position: absolute; right: .2rem; top: .8rem; padding: .35rem .6rem; border-radius: 10px; background: var(--grad); color: #fff; font-family: var(--f); font-size: .78rem; font-weight: 800; line-height: 1; text-align: center; }
.bx-g__pos em { display: block; font-style: normal; font-size: .62rem; font-weight: 600; opacity: .85; margin-bottom: 2px; }
/* WhatsApp-Verlauf */
.bx-wa { border-radius: 18px; overflow: hidden; background: #EFE7DE; box-shadow: 0 0 0 1px #E3E6EB, 0 40px 80px -40px rgba(10,11,14,.45); font-family: Arial, Helvetica, sans-serif; }
.bx-wa__top { display: flex; align-items: center; gap: .7rem; padding: .8rem 1rem; background: #075E54; color: #fff; font-size: .95rem; }
.bx-wa__top i { width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: #075E54; font-style: normal; font-weight: 800; font-size: .8rem; font-family: var(--f); }
.bx-wa__top small { display: block; font-size: .72rem; opacity: .8; }
.bx-wa__body { padding: 1.1rem 1rem 1.3rem; display: flex; flex-direction: column; gap: .55rem; }
.bx-wa__m { max-width: 78%; padding: .5rem .7rem .4rem; border-radius: 10px; font-size: .9rem; line-height: 1.4; color: #111; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.bx-wa__m small { display: block; text-align: right; font-size: .66rem; color: #667781; margin-top: .15rem; }
.bx-wa__m--out { align-self: flex-end; background: #D9FDD3; }
.bx-wa__m--in { align-self: flex-start; background: #fff; }
.bx-wa__pics { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: .3rem; }
.bx-wa__pics img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; display: block; }
.bx-wa__link { display: block; margin-top: .4rem; border-radius: 8px; overflow: hidden; background: #F0F2F5; }
.bx-wa__link img { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; object-position: top; }
.bx-wa__link span { display: block; padding: .45rem .6rem; font-size: .78rem; color: #54656f; }
.bx-wa__link b { display: block; color: #111; font-size: .84rem; }
@media (max-width: 960px) {
    .bx-story { grid-template-columns: 1fr; }
    .bx-story__media { display: none; }
    .bx-ch__fig { display: block; margin: 1.6rem 0 1.8rem; }
    .bx-ch__fig figcaption { margin-top: .8rem; font-size: .85rem; color: var(--muted); }
    .bx-g { padding: 1rem; } .bx-g__r strong { font-size: 1rem; padding-right: 4.2rem; }
}
@media (prefers-reduced-motion: reduce) { .bx-fig { transition: opacity .2s linear; transform: none; } }
/* Schadensmeldung (Beispiel) */
.bx-sf { border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px #E3E6EB, 0 40px 80px -40px rgba(10,11,14,.45); padding: 1.4rem 1.5rem 1.5rem; }
.bx-sf__h { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.bx-sf__h b { font-size: 1.15rem; color: var(--ink); }
.bx-sf__h span { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #16a34a; background: #E8F7EE; padding: .35rem .6rem; border-radius: 999px; }
.bx-sf__row { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-bottom: .7rem; }
.bx-sf__f { border: 1px solid #E3E6EB; border-radius: 10px; padding: .5rem .7rem; }
.bx-sf__f small { display: block; font-size: .68rem; color: var(--muted); }
.bx-sf__f span { font-size: .9rem; color: var(--ink); }
.bx-sf__f--full { grid-column: 1 / -1; }
.bx-sf__up { display: flex; align-items: center; gap: .7rem; border: 1.5px dashed #CDD1D8; border-radius: 10px; padding: .7rem; margin-bottom: .9rem; font-size: .86rem; color: var(--muted); }
.bx-sf__up i { width: 46px; height: 36px; border-radius: 6px; background: linear-gradient(135deg, #7C8796, #B9C0CA); flex: 0 0 auto; }
.bx-sf__btn { display: block; text-align: center; padding: .75rem; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; font-size: .92rem; }
/* Feinschliff */
body.bx .lp-hero .h-display { font-size: clamp(2.3rem, 1.05rem + 2.85vw, 3.85rem) !important; }
@media (max-width: 640px) { body.bx .lp-hero .h-display { font-size: clamp(1.85rem, 8.4vw, 2.6rem) !important; -webkit-hyphens: manual; hyphens: manual; } }
.bx-br__bar span { display: block; max-width: 380px; padding: 0 .7rem; line-height: 19px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bx-stage { aspect-ratio: 16 / 11.4; }
.bx-fig > div { flex: 0 0 auto; }
.bx-wa__pics img { aspect-ratio: 16 / 10; }
.bx-wa__link img { aspect-ratio: 2.6 / 1; }
.bx-wa__body { gap: .45rem; padding: .9rem .9rem 1rem; }
.bx-stage__count { top: -2.1rem; bottom: auto; }
