/* hb1 20.11.2026 – Auftrag Werbung 13:06/13:35 (Ladezeit, Handy-Kopfbild, Sprachknöpfe, KI-Pille).
   Jeder Punkt hängt an einer Klasse hb-… auf <html> (gesetzt im Kopf, siehe window.LW_HB). Ohne Klasse gilt das alte Aussehen. */

/* A2: Türflügel erst laden, wenn die Tür-Animation wirklich läuft (hb.js lädt sie nach dem Laden der Seite vor) */
html.hb-a2:not(.hb-magic-ok) #magic:not(.on) .leaf{background-image:none}

/* A4: eigenes Hochformat-Kopfbild am Handy hochkant. Tablet und Computer bleiben unverändert. */
.teaser-pic{display:block}
.hb-kopf,.hb-langbg{display:none}
@media (max-width:600px) and (orientation:portrait){
  html.hb-a4 #salesTeaser .teaser-scene{aspect-ratio:1000/1333}
  html.hb-a4 #salesTeaser .ti{display:none!important}
  html.hb-a4 #salesTeaser .teaser-play,html.hb-a4 #salesTeaser .teaser-cta,html.hb-a4 #salesTeaser .teaser-probe2,html.hb-a4 #salesTeaser .k3-btn2{display:none!important}
  html.hb-a4 #salesTeaser .teaser-door{top:57.3%;width:10.8%;height:14.1%}
  html.hb-a4 #salesTeaser .teaser-door[data-door="1"]{left:30%}
  html.hb-a4 #salesTeaser .teaser-door[data-door="2"]{left:49%}
  html.hb-a4 #salesTeaser .teaser-door[data-door="3"]{left:68%}
  html.hb-a4 .hb-kopf{display:block;position:absolute;left:0;right:0;top:0;height:46%;z-index:1;pointer-events:none;text-align:center;
    padding:15cqw 5cqw 0;background:linear-gradient(180deg,rgba(7,12,30,.78) 0%,rgba(7,12,30,.55) 45%,rgba(7,12,30,0) 100%);color:#fdf6e6}
  html.hb-a4 .hb-k1{margin:0;font:700 3.6cqw/1.2 Fraunces,Georgia,serif;letter-spacing:.06em;color:#f3c46b}
  html.hb-a4 .hb-k2{margin:1.6cqw 0 0;font:700 7.2cqw/1.12 Fraunces,Georgia,serif;color:#fff;text-shadow:0 .3cqw 1.4cqw rgba(0,0,20,.55)}
  html.hb-a4 .hb-k3{margin:2.2cqw auto 0;max-width:84cqw;font:600 3.7cqw/1.42 Nunito,system-ui,sans-serif;color:#eef1f8;text-shadow:0 .2cqw 1cqw rgba(0,0,20,.7)}
  /* Türchen 4–6 als sichtbare Pille unten rechts im Schnee (Text aus hb.js je Sprache) */
  html.hb-a4 #salesTeaser .teaser-next{left:auto;right:3%;top:91.5%;width:auto;height:auto;min-height:36px;padding:0 14px;display:flex;align-items:center;
    background:#1e2134;border:1px solid #b9a5ae;color:#fff;font:600 14px/1 Nunito,system-ui,sans-serif;border-radius:999px;box-shadow:0 2px 8px rgba(0,0,20,.45)}
  html.hb-a4 #salesTeaser .teaser-next::before{content:attr(data-hbt)}
  html.hb-a4 #salesTeaser .teaser-next::after{content:"›";font-size:1.45em;margin-left:7px;transform:translateY(-.05em)}
}

/* C6: Kaufknopf im ersten Bildschirm (nur Handy hochkant, nur mit A4) */
.hb-kauf{display:none}
@media (max-width:600px) and (orientation:portrait){
  html.hb-a4.hb-c6 .hb-kauf{display:inline-flex;pointer-events:auto;align-items:center;justify-content:center;margin-top:3.4cqw;min-height:44px;padding:0 20px;border-radius:999px;
    background:linear-gradient(180deg,#f6dca2,#e9c27a);color:#2b2110;font:800 15px/1 Nunito,system-ui,sans-serif;text-decoration:none;border:1px solid #fff0c8;box-shadow:0 3px 12px rgba(0,0,20,.5)}
  html.hb-a4.hb-c6 .hb-kauf:focus-visible{outline:3px solid #ffe2a3;outline-offset:3px}
}

/* C3a: echte Sprachknöpfe statt gemalter Knöpfe (alle Sprachen) */
html.hb-c3 #salesTeaser .teaser-language{display:flex;align-items:center;justify-content:center;color:#f3f1ec;font:700 1.2cqw/1 Nunito,system-ui,sans-serif;letter-spacing:.02em;top:5.29%;height:4.02%}
html.hb-c3 #salesTeaser .teaser-language::before{content:attr(data-language);text-transform:uppercase}
html.hb-c3 #salesTeaser .teaser-language[aria-pressed="true"]{background:linear-gradient(180deg,#f6dca2,#eccb8a);color:#2b2110}
html.hb-c3 .hb-langbg{display:block;position:absolute;z-index:1;left:1.4%;top:4.244%;width:15.45%;height:5.808%;border-radius:999px;background:#11192d;border:.125cqw solid #4b5468;box-sizing:border-box;pointer-events:none}
html.hb-c3 .ti-lang,html.hb-c3 .ti-slot{display:none!important}
@media (max-width:600px) and (orientation:portrait){
  html.hb-a4.hb-c3 .hb-langbg{left:2.4%;top:2.2%;width:auto;height:auto;right:auto;width:calc(4 * 38px + 8px);height:40px;border-width:1px}
  html.hb-a4.hb-c3 #salesTeaser .teaser-language{top:calc(2.2% + 4px);height:32px;width:36px;font-size:13px}
  html.hb-a4.hb-c3 #salesTeaser .teaser-language[data-language="de"]{left:calc(2.4% + 4px)}
  html.hb-a4.hb-c3 #salesTeaser .teaser-language[data-language="en"]{left:calc(2.4% + 42px)}
  html.hb-a4.hb-c3 #salesTeaser .teaser-language[data-language="es"]{left:calc(2.4% + 80px)}
  html.hb-a4.hb-c3 #salesTeaser .teaser-language[data-language="it"]{left:calc(2.4% + 118px)}
}
@media (max-width:600px) and (orientation:landscape),(min-width:601px) and (max-width:900px){
  html.hb-c3 #salesTeaser .teaser-language{font-size:max(1.2cqw,9px)}
}

/* C7: Pille „Made with AI“ oben rechts in EN/ES/IT entfällt wie in DE; Hinweis im Text und im Seitenfuß bleibt */
html.hb-c7 .ti-ki{display:none!important}

/* C4b: stumme Vorschau-Schleife auf der Lichterstadt-Karte (nur mit ?probe) */
.hb-vloop{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:inherit;pointer-events:none}
.hb-vlabel{position:absolute;left:50%;bottom:22%;transform:translateX(-50%);z-index:2;white-space:nowrap;background:rgba(12,22,48,.86);color:#ffe2a3;border:1px solid #e2be7d;border-radius:999px;padding:8px 14px;font:800 14px/1.1 Nunito,system-ui,sans-serif;pointer-events:none}

/* hk1 22.11.2026 – Auftrag Werbe-Chat (Entwurf 4a), Freigabe Inhaber für Bau und Vorschau: erster Handy-Bildschirm.
   Nur Handy hochkant. Unterzeile mit Preis oben, ein Knopf „Probe-Türchen öffnen“, Tipp aufs Bild startet die Probe,
   Zeichen ▶ mit Angabe und „Mit KI erstellt“ auf dem Bild. Der Kaufknopf im Kopf entfällt hier (folgt im zweiten Bildschirm).
   Tablet und Computer: die neuen Teile bleiben unsichtbar. Abschaltbar auf der Vorschau mit ?hb_aus=hk1. */
#salesTeaser .hk1-sub,#salesTeaser .hk1-probe,#salesTeaser .hk1-bild,#salesTeaser .hk1-ki{display:none}
@media (max-width:600px) and (orientation:portrait){
  html.hb-a4.hb-hk1 #salesTeaser .hb-k3,html.hb-a4.hb-hk1 #salesTeaser .hb-kauf{display:none}
  html.hb-a4.hb-hk1 #salesTeaser .hk1-sub{display:block;margin:2.4cqw auto 0;max-width:88cqw;font:600 3.9cqw/1.4 Nunito,system-ui,sans-serif;color:#f4f6fb;text-shadow:0 .2cqw 1cqw rgba(0,0,20,.75);text-wrap:balance}
  html.hb-a4.hb-hk1 #salesTeaser .hk1-probe{display:inline-flex;pointer-events:auto;align-items:center;justify-content:center;margin-top:3.6cqw;min-height:48px;padding:0 24px;border-radius:999px;cursor:pointer;
    background:linear-gradient(180deg,#f6dca2,#e9c27a);color:#2b2110;font:800 16px/1 Nunito,system-ui,sans-serif;border:1px solid #fff0c8;box-shadow:0 3px 12px rgba(0,0,20,.5);-webkit-tap-highlight-color:transparent}
  html.hb-a4.hb-hk1 #salesTeaser .hk1-probe::before{content:"";flex:none;width:0;height:0;margin-right:10px;border-style:solid;border-width:7px 0 7px 11px;border-color:transparent transparent transparent #2b2110}
  html.hb-a4.hb-hk1 #salesTeaser .hk1-probe:focus-visible{outline:3px solid #ffe2a3;outline-offset:3px}
  /* Tipp aufs Bild: Fläche unter dem Textblock bis zum unteren Bildrand; Türen 1–3 und die Pille „Türchen 4–6“ liegen darüber */
  html.hb-a4.hb-hk1 #salesTeaser .hk1-bild{display:flex;position:absolute;left:0;right:0;top:46%;bottom:0;margin:0;padding:0 3cqw 2cqw;box-sizing:border-box;align-items:flex-end;justify-content:center;
    background:none;border:0;border-radius:0;cursor:pointer;color:#fff;font:inherit;text-align:left;-webkit-tap-highlight-color:transparent}
  html.hb-a4.hb-hk1 #salesTeaser .hk1-bild:focus-visible{outline:3px solid #ffe2a3;outline-offset:-4px}
  html.hb-a4.hb-hk1 #salesTeaser .hk1-zeile{display:flex;align-items:center;gap:9px;max-width:100%;box-sizing:border-box;padding:4px 15px 4px 4px;border-radius:999px;background:rgba(14,20,42,.88);border:1px solid rgba(243,196,107,.6);box-shadow:0 2px 8px rgba(0,0,20,.45)}
  html.hb-a4.hb-hk1 #salesTeaser .hk1-play{flex:none;position:relative;width:30px;height:30px;border-radius:50%;background:linear-gradient(180deg,#f6dca2,#e9c27a)}
  html.hb-a4.hb-hk1 #salesTeaser .hk1-play::before{content:"";position:absolute;left:54%;top:50%;transform:translate(-50%,-50%);width:0;height:0;border-style:solid;border-width:6.5px 0 6.5px 10.5px;border-color:transparent transparent transparent #2b2110}
  html.hb-a4.hb-hk1 #salesTeaser .hk1-lbl{display:block;min-width:0;font:700 3.35cqw/1.25 Nunito,system-ui,sans-serif;color:#fdf6e6;text-wrap:balance}
  html.hb-a4.hb-hk1 #salesTeaser .hk1-ki{display:block;position:absolute;z-index:1;right:2.4%;top:calc(2.2% + 9px);padding:5px 9px;border-radius:999px;background:rgba(14,20,42,.62);color:#e8ecf5;font:600 11px/1 Nunito,system-ui,sans-serif;pointer-events:none}
  /* Spanisch und Italienisch sind länger: etwas kleinere Schrift, damit der Knopf über den Türen bleibt */
  html[lang="es"].hb-a4.hb-hk1 #salesTeaser .hk1-sub,html[lang="it"].hb-a4.hb-hk1 #salesTeaser .hk1-sub{font-size:3.55cqw;max-width:92cqw}
  html[lang="it"].hb-a4.hb-hk1 #salesTeaser .hb-k2{font-size:6.1cqw;text-wrap:balance}
  /* Pille „Türchen 4–6“ rückt über die Probe-Zeile */
  html.hb-a4.hb-hk1 #salesTeaser .teaser-next{top:80.5%;min-height:34px;padding:0 11px;font-size:13px}
}
/* hk1: Cookie-Hinweis am Handy hochkant als schmale Zeile im Seitenfluss über dem Kopfbild, wie auf /kaufen (Klasse setzt hb.js).
   Nur die Form; Wortlaut, Knöpfe „Ablehnen/Annehmen“ (gleich groß) und Zeitablauf kommen unverändert aus einwilligung.js. */
#sd-ew.hk1z{position:static;display:block;padding:0;z-index:auto;pointer-events:auto}
#sd-ew.hk1z .k{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;max-width:none;width:100%;max-height:none;overflow:visible;border:0;border-bottom:1px solid rgba(243,196,107,.28);border-radius:0;box-shadow:none;
  padding:calc(5px + env(safe-area-inset-top)) 12px 7px 16px;font-size:13px;line-height:1.3;background:#0b1430}
#sd-ew.hk1z .tx{margin:0;flex:1 1 100%;min-width:0;white-space:normal}
#sd-ew.hk1z .tx b{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
#sd-ew.hk1z .kz{display:inline}
#sd-ew.hk1z .tx .p,#sd-ew.hk1z .u .m{display:none}
#sd-ew.hk1z .u{font-size:0;margin-left:6px}
#sd-ew.hk1z .u .mx{font-size:13px;color:#f3d48f}
#sd-ew.hk1z .x{margin:2px 0 0;flex:1 1 100%;order:3}
#sd-ew.hk1z .r{flex:1 1 100%;display:flex;gap:8px;order:4}
#sd-ew.hk1z .r button,#sd-ew.hk1z .r button[data-w="1"]{flex:1 1 0;min-height:34px;padding:2px 12px;font-size:13px;border-radius:9px;border:1px solid #e2b968;background:transparent;color:#f3d48f}
#sd-ew.hk1z:has(.mx[aria-expanded="true"]) .tx .p{display:inline}
#sd-ew.hk1z:has(.mx[aria-expanded="true"]) .u{font-size:12.5px}
#sd-ew.hk1z:has(.mx[aria-expanded="true"]) .u .m{display:inline}

/* kw3 27.11.2026: nur die Zeile „Probe-Türchen“ ist tippbar, nicht mehr die untere Bildhälfte */
html.hb-a4.hb-hk1 #salesTeaser .hk1-bild{pointer-events:none;cursor:default}
html.hb-a4.hb-hk1 #salesTeaser .hk1-bild .hk1-zeile{pointer-events:auto;cursor:pointer}
