/* Startseite: Haus im Schnitt und Vertrauensleiste. Tokens aus DESIGN.md. */
.lp-btn{display:inline-flex;gap:.5rem;align-items:center;border:1px solid #000;border-radius:20px;padding:.75rem 1.5rem;background:var(--base-color-brand--primary-100);color:#fff;text-decoration:none;font-size:1.125rem;line-height:1.3;transition:background .2s}
.lp-btn:hover{background:var(--base-color-brand--primary-80)}
.lp-btn:focus-visible,.lp-hotspot:focus-visible{outline:3px solid var(--base-color-brand--secondary-100);outline-offset:3px}
.lp-btn.is-red{background:var(--base-color-brand--accent-100);border-color:var(--base-color-brand--accent-100)}
.lp-btn.is-red:hover{background:var(--base-color-brand--accent-80)}

.lp-house-section{padding:9rem 4.5rem 3rem;color:var(--text-color--text-primary)}
.lp-house-head{display:flex;justify-content:space-between;align-items:flex-end;gap:2rem;margin-bottom:2rem}
.lp-house-head h1{font-size:clamp(2.25rem,4vw,3.75rem);line-height:1.2;font-weight:700;max-width:16em;text-wrap:balance}
.lp-house-head h1 em{font-style:normal;color:var(--base-color-brand--secondary-100)}
.lp-rate{display:inline-flex;gap:.75rem;align-items:center;font-size:.95rem;color:inherit;text-decoration:none;flex:none}
.lp-rate b{font-size:2.25rem;line-height:1.1}
.lp-stars{display:flex;gap:2px;margin-bottom:2px}
.lp-stars svg{width:18px;height:18px}

.lp-house-stage{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:2rem;align-items:stretch}
.lp-house-inner{position:relative}
.lp-house-draw{background:#fff;border-radius:20px;padding:1.5rem;display:flex;align-items:center}
.lp-house-inner{width:100%}
.lp-house{display:block;width:100%;height:auto}
.lp-layer{transition:opacity .2s}
.lp-layer:is(.is-active,.is-hover) :is(path,rect,line){stroke:var(--base-color-brand--accent-100)}
.lp-layer.is-active rect[fill="url(#lp-insul)"]{fill:url(#lp-insul)}
/* Klickflächen der Hausteile: unsichtbar, beim Zeigen und Wählen rot getönt */
.lp-hit{fill:transparent;cursor:pointer;transition:fill .2s,stroke .2s}
.lp-hit.is-band{fill:none;stroke:transparent;stroke-width:46;stroke-linejoin:round;stroke-linecap:round;pointer-events:stroke}
.lp-hit.is-hover{fill:#bf1a2f14}
.lp-hit.is-active{fill:#bf1a2f1f}
.lp-hit.is-band.is-hover{fill:none;stroke:#bf1a2f1f}
.lp-hit.is-band.is-active{fill:none;stroke:#bf1a2f2e}
.lp-hotspot{position:absolute;width:44px;height:44px;margin:-22px 0 0 -22px;padding:0;border:0;border-radius:50%;background:transparent;cursor:pointer}
.lp-hotspot::before{content:"";position:absolute;inset:8px;border-radius:50%;background:var(--base-color-brand--accent-100);border:3px solid #fff;transition:transform .2s cubic-bezier(.16,1,.3,1)}
.lp-hotspot-label{position:absolute;left:calc(100% - 4px);top:50%;transform:translateY(-50%);white-space:nowrap;font-size:.9rem;font-weight:700;color:var(--base-color-brand--primary-80);background:#fff;border:1.5px solid var(--base-color-brand--primary-80);border-radius:10px;padding:.15rem .55rem;pointer-events:none;transition:background .2s,color .2s,border-color .2s}
.lp-hotspot-label.is-left{left:auto;right:calc(100% - 4px)}
.lp-hotspot:is(:hover,.is-hover,.is-active)::before{transform:scale(1.3)}
.lp-hotspot:is(:hover,.is-hover,.is-active) .lp-hotspot-label{background:var(--base-color-brand--accent-100);border-color:var(--base-color-brand--accent-100);color:#fff}
.lp-hotspot.is-active::after{content:"";position:absolute;inset:3px;border-radius:50%;border:2px solid var(--base-color-brand--accent-100)}

.lp-trade{background:var(--base-color-brand--primary-100);color:#fff;border-radius:20px;padding:1.5rem;display:flex;flex-direction:column;gap:.75rem}
.lp-trade-media{display:block;width:100%;aspect-ratio:16/9;margin:0;object-fit:cover;border-radius:14px;background:var(--base-color-brand--primary-80)}
.lp-trade-media.is-pending{display:flex;align-items:center;justify-content:center;font-size:.95rem}
.lp-trade-copy{display:flex;flex-direction:column;gap:.75rem}
/* Film: Poster mit Play in der Karte, Wiedergabe im modalen Dialog */
.lp-trade{container-type:inline-size}
.lp-trade h2{text-wrap:balance}
.lp-trade h2.is-film{white-space:nowrap;font-size:min(1.75rem,8.2cqi)}
.lp-trade-copy p{text-wrap:pretty}
.lp-nowrap{white-space:nowrap}
.lp-film-facade{position:relative;overflow:hidden;padding:0;border:0;cursor:pointer}
.lp-film-facade img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .6s cubic-bezier(.16,1,.3,1)}
.lp-film-facade::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,#1c2e5b8c,#1c2e5b00 60%);pointer-events:none}
.lp-film-play{position:absolute;z-index:1;left:50%;top:50%;width:76px;height:76px;margin:-38px 0 0 -38px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:var(--base-color-brand--accent-100);color:#fff;box-shadow:0 0 0 3px #fff,0 10px 24px -6px #0006;transition:transform .25s cubic-bezier(.16,1,.3,1),background .2s}
.lp-film-facade:hover .lp-film-play{background:var(--base-color-brand--accent-80);transform:scale(1.08)}
.lp-film-facade:hover img{transform:scale(1.03)}
.lp-film-facade:focus-visible{outline:3px solid var(--base-color-brand--secondary-100);outline-offset:-5px}
.lp-scroll-lock{overflow:hidden}
.lp-film-dialog{width:min(1120px,calc(100vw - 3rem),calc((100dvh - 7rem) * 16 / 9));max-width:none;max-height:none;padding:0;border:0;background:transparent;overflow:visible}
.lp-film-dialog::backdrop{background:#0d1630e0}
.lp-film-frame{position:relative;aspect-ratio:16/9;border-radius:14px;overflow:hidden;background:#000;box-shadow:0 30px 60px -20px #000c}
.lp-film-frame video{display:block;width:100%;height:100%;object-fit:contain}
.lp-film-frame video:focus:not(:focus-visible){outline:0}
.lp-film-close{position:absolute;right:0;bottom:calc(100% + .75rem);width:44px;height:44px;display:flex;align-items:center;justify-content:center;border:1px solid #ffffff59;border-radius:50%;background:#0d1630b3;color:#fff;cursor:pointer;transition:background .2s}
.lp-film-close:hover{background:var(--base-color-brand--accent-100);border-color:var(--base-color-brand--accent-100)}
.lp-film-close:focus-visible{outline:3px solid #fff;outline-offset:3px}
.lp-film-spinner{position:absolute;left:50%;top:50%;width:44px;height:44px;margin:-22px 0 0 -22px;border-radius:50%;border:3px solid #ffffff4d;border-top-color:#fff;animation:lp-spin .8s linear infinite;pointer-events:none}
@keyframes lp-spin{to{transform:rotate(360deg)}}
.lp-film-error{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.4rem;padding:1rem;text-align:center;background:var(--base-color-brand--primary-80);color:#fff}
.lp-film-error a{color:#fff;font-weight:600}
@media (max-width:767px){
  .lp-film-dialog{width:100vw;margin:auto 0}
  .lp-film-frame{border-radius:0}
  .lp-film-close{right:.75rem}
}
@media (orientation:landscape) and (max-height:500px){
  .lp-film-dialog{width:min(100vw,calc(100dvh * 16 / 9));margin:auto}
  .lp-film-frame{border-radius:0}
  .lp-film-close{bottom:auto;top:.5rem;right:.5rem;z-index:1}
}
@media (prefers-reduced-motion:reduce){
  .lp-film-facade img,.lp-film-play,.lp-hit,.lp-hotspot::before{transition:none}
  .lp-film-facade:hover img,.lp-film-facade:hover .lp-film-play{transform:none}
  .lp-film-spinner{animation-duration:2.4s}
}
.lp-trade h2{font-size:1.75rem;line-height:1.25;margin-top:.5rem}
.lp-trade p{line-height:1.5}
.lp-trade .lp-btn{align-self:flex-start;margin-top:.25rem}
.lp-trade-note{margin-top:auto;font-size:.95rem;opacity:.9}
.lp-trade-note a{color:#fff;font-weight:600}

@media (prefers-reduced-motion:no-preference){
  .lp-layer{animation:lp-build .9s cubic-bezier(.16,1,.3,1) both}
  .lp-l1{animation-delay:0s}.lp-l2{animation-delay:.12s}.lp-l3{animation-delay:.24s}.lp-l4{animation-delay:.36s}.lp-l5{animation-delay:.48s}
  .lp-hotspot::after{content:"";position:absolute;inset:3px;border-radius:50%;border:2px solid var(--base-color-brand--accent-100);animation:lp-pulse 2.4s ease-out infinite}
}
@keyframes lp-build{from{opacity:0;transform:translateY(28px)}}
@keyframes lp-pulse{from{opacity:.7;transform:scale(.7)}to{opacity:0;transform:scale(1.5)}}

.lp-btn.is-ghost{background:transparent;border-color:var(--base-color-brand--primary-80);color:var(--base-color-brand--primary-80)}
.lp-sticky{display:none}
@media (max-width:991px){.lp-sticky{display:flex}}
.lp-trust{background:var(--base-color-brand--primary-80);color:#fff;display:grid;grid-template-columns:repeat(4,1fr);gap:1.5rem;padding:1.75rem 4.5rem}
.lp-trust b{display:block;font-size:1.35rem;line-height:1.3}
.lp-trust span{font-size:.95rem;opacity:.9}

@media (max-width:991px){
  .lp-hotspot-label{display:none}
  .lp-sticky .lp-btn{font-size:1rem;white-space:nowrap}
  .lp-sticky{position:fixed;left:0;right:0;bottom:0;z-index:90;display:flex;gap:.5rem;padding:.6rem .75rem calc(.6rem + env(safe-area-inset-bottom));background:#ffffffe6;border-top:1px solid var(--base-color-brand--primary-80)}
  .lp-sticky .lp-btn{flex:1;justify-content:center;padding:.7rem 1rem}
  .lp-house-section{padding:6rem 1.5rem 2rem}
  .lp-house-head{flex-direction:column;align-items:flex-start}
  .lp-house-stage{grid-template-columns:1fr}
  .lp-house-draw{padding:.75rem}
  .lp-trust{grid-template-columns:repeat(2,1fr);padding:1.5rem}
}
@media (max-width:479px){
  .lp-trust{grid-template-columns:1fr}
  .lp-trade .lp-btn{align-self:stretch;justify-content:center}
}

/* Mobile Navigationsleiste: neutrale Flaeche statt Hellblau, Logo proportional kleiner,
   mehr vertikaler Innenabstand. Desktop bleibt unveraendert. */
@media (max-width:991px){
  .navbar-blur{background-color:#ffffffe6}
  .navbar1_component{height:auto;min-height:4.75rem;padding-top:.75rem;padding-bottom:.75rem}
  .navbar1_logo{width:150px;height:auto}
  .navbar1_logo-link{padding-left:0}
}
