/* „Alles drin. Nichts vorab.“ als Kachel-Raster (Bento) – Test ?vorschau=leistungen (04.11.2026).
   Dunkler Petrol-Grund wie die Stadtkarte, jede Leistung eine Kachel mit kleiner Animation. startbloecke.js setzt .is-da. */
.vbl {
  --p: #007E91; --o: #E8A020; --hell: rgba(255, 255, 255, 0.86); --leise: rgba(255, 255, 255, 0.68);
  max-width: 1240px; margin: clamp(56px, 7vw, 96px) auto clamp(40px, 5vw, 70px);
  border-radius: 28px; overflow: hidden; color: #fff;
  font-family: Raleway, system-ui, -apple-system, 'Segoe UI', sans-serif;
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(10, 161, 182, 0.32) 0%, rgba(10, 161, 182, 0) 60%),
    radial-gradient(80% 60% at 0% 100%, rgba(232, 160, 32, 0.12) 0%, rgba(232, 160, 32, 0) 60%),
    linear-gradient(160deg, #0a5562, #05343d);
  box-shadow: 0 30px 60px -30px rgba(0, 50, 60, 0.55);
  padding: clamp(28px, 4vw, 56px);
}
.vbl-kopf { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 30px; margin-bottom: clamp(22px, 3vw, 34px); }
.vbl-eye { display: inline-flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--o); }
.vbl-eye::before { content: ''; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.vbl h2.vbl-h { margin: 10px 0 0 !important; font-size: clamp(1.7rem, 3vw, 2.6rem) !important; line-height: 1.12 !important; font-weight: 800 !important; letter-spacing: -0.015em; color: #fff !important; text-align: left !important; }
.vbl h2.vbl-h em { font-style: normal; color: var(--o); }
.vbl p.vbl-lead { margin: 0; max-width: 430px; font-size: 1rem; line-height: 1.6; color: var(--leise); font-weight: 500; }

.vbl-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(150px, auto); gap: 14px; }
.vbl-k {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; overflow: hidden;
  padding: 18px 18px 18px; border-radius: 20px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0; transform: translateY(18px) scale(0.98);
  transition: opacity .5s ease, transform .6s cubic-bezier(.2,.8,.2,1), background-color .25s ease, border-color .25s ease;
  transition-delay: calc(var(--i, 0) * 70ms), calc(var(--i, 0) * 70ms), 0s, 0s;
}
.vbl.is-da .vbl-k { opacity: 1; transform: none; }
.vbl-k:hover { background: rgba(255, 255, 255, 0.11); border-color: rgba(255, 255, 255, 0.22); }
.vbl-k.b2 { grid-column: span 2; }
.vbl-k.h2 { grid-row: span 2; }
.vbl-k b { font-size: 1.02rem; font-weight: 800; line-height: 1.25; color: #fff; }
.vbl-k span.t { font-size: .88rem; line-height: 1.5; color: var(--leise); font-weight: 500; }
.vbl-ink { position: absolute; top: 14px; right: 14px; padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(232, 160, 32, .7); color: var(--o); font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.vbl-ico { position: absolute; top: 16px; left: 18px; width: 46px; height: 46px; color: #9fe3ee; }
.vbl-ico svg { width: 100%; height: 100%; overflow: visible; }
.vbl-ico svg * { vector-effect: non-scaling-stroke; }

/* Hauptkachel 0 € */
.vbl-k.null { justify-content: space-between; background: linear-gradient(150deg, #f2b23c 0%, #E8A020 45%, #cf8710 100%); border-color: transparent; color: #fff; padding: 24px; }
.vbl-k.null:hover { background: linear-gradient(150deg, #f5bb4c 0%, #eba92e 45%, #d48d16 100%); }
.vbl-null-z { font-size: clamp(4.2rem, 9vw, 7.4rem); font-weight: 900; line-height: .9; letter-spacing: -0.04em; text-shadow: 0 10px 30px rgba(120, 60, 0, .25); }
.vbl-null-z small { display: block; margin-top: 8px; font-size: clamp(1rem, 1.6vw, 1.3rem); font-weight: 800; letter-spacing: 0; text-shadow: none; }
.vbl-k.null span.t { color: rgba(255, 255, 255, .95); font-size: .98rem; font-weight: 600; max-width: 360px; }
.vbl .vbl-btn { align-self: flex-start; margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; background: #fff; color: #9a5b00 !important; font-weight: 800; font-size: .92rem; text-decoration: none !important; box-shadow: 0 10px 22px -10px rgba(90, 45, 0, .45); transition: transform .2s ease; }
.vbl .vbl-btn:hover { transform: translateY(-2px); }
.vbl .vbl-btn svg { width: 16px !important; height: 16px !important; }
.vbl-null-ring { position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .35); animation: vbl-dreh 30s linear infinite; pointer-events: none; }
.vbl-null-ring::after { content: ''; position: absolute; inset: 34px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .22); }

/* Kachel-Inhalt nach oben lassen Platz fürs Symbol */
.vbl-k:not(.null) { padding-top: 76px; }

/* Drohne schwebt, Rotoren flirren */
.vbl-drohne { position: absolute; right: 22px; top: 18px; width: 120px; color: #fff; animation: vbl-schweb 3.6s ease-in-out infinite; }
.vbl-drohne .r { transform-box: fill-box; transform-origin: center; animation: vbl-rotor .14s linear infinite; }
.vbl-drohne-schatten { position: absolute; right: 52px; top: 108px; width: 60px; height: 8px; border-radius: 50%; background: rgba(0, 0, 0, .25); filter: blur(3px); animation: vbl-schatten 3.6s ease-in-out infinite; }
@keyframes vbl-schweb { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-10px) rotate(2deg); } }
@keyframes vbl-schatten { 0%, 100% { transform: scaleX(1); opacity: .5; } 50% { transform: scaleX(.75); opacity: .3; } }
@keyframes vbl-rotor { 0% { transform: scaleX(1); } 50% { transform: scaleX(.25); } 100% { transform: scaleX(1); } }
.vbl-k.drohne { padding-top: 18px; min-height: 150px; }
.vbl-k.drohne span.t { max-width: 62%; }

/* 360°: Ring dreht */
.vbl-360 .ring { transform-origin: 50% 50%; transform-box: fill-box; animation: vbl-dreh 9s linear infinite; }
@keyframes vbl-dreh { to { transform: rotate(360deg); } }
/* Kamera: Blitz beim Drüberfahren */
.vbl-blitz { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.vbl-k.foto:hover .vbl-blitz { animation: vbl-blitz .45s ease-out; }
@keyframes vbl-blitz { 0% { opacity: 0; } 15% { opacity: .55; } 100% { opacity: 0; } }
/* Bewertung: Zeiger schwingt ein */
.vbl-tacho .zeiger { transform-origin: 24px 30px; transform: rotate(-75deg); transition: transform 1.4s cubic-bezier(.3,1.5,.5,1) .6s; }
.vbl.is-da .vbl-tacho .zeiger { transform: rotate(35deg); }
/* Energieausweis: Balken wachsen */
.vbl-energie rect { transform-box: fill-box; transform-origin: left center; transform: scaleX(0); transition: transform .5s ease; }
.vbl.is-da .vbl-energie rect { transform: scaleX(1); }
.vbl.is-da .vbl-energie rect:nth-child(2) { transition-delay: .15s; } .vbl.is-da .vbl-energie rect:nth-child(3) { transition-delay: .3s; } .vbl.is-da .vbl-energie rect:nth-child(4) { transition-delay: .45s; }
/* Exposé: Seiten fächern beim Drüberfahren */
.vbl-expose .s1, .vbl-expose .s2 { transition: transform .35s ease; transform-box: fill-box; transform-origin: bottom left; }
.vbl-k:hover .vbl-expose .s1 { transform: rotate(-10deg); }
.vbl-k:hover .vbl-expose .s2 { transform: rotate(-5deg); }
/* Schlüssel schwingt */
.vbl-k:hover .vbl-schluessel { animation: vbl-schwing .8s ease; transform-origin: 30% 30%; }
@keyframes vbl-schwing { 0% { transform: rotate(0); } 30% { transform: rotate(-18deg); } 60% { transform: rotate(10deg); } 100% { transform: rotate(0); } }
/* Portale: Laufband */
.vbl-band { position: absolute; left: 0; right: 0; top: 22px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.vbl-band div { display: flex; gap: 10px; width: max-content; animation: vbl-lauf 22s linear infinite; }
.vbl-band span { padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: .82rem; font-weight: 700; color: #fff; white-space: nowrap; }
.vbl-band span.o { background: rgba(232, 160, 32, .9); }
@keyframes vbl-lauf { to { transform: translateX(-50%); } }
/* Besichtigung: Kalender-Häkchen */
.vbl-kal .haken { stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .6s ease 1s; }
.vbl.is-da .vbl-kal .haken { stroke-dashoffset: 0; }

@media (max-width: 900px) {
  .vbl { border-radius: 0; }
  .vbl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(140px, auto); grid-auto-flow: dense; gap: 10px; }
  .vbl-k.h2 { grid-row: auto; }
  .vbl-k.null { grid-column: span 2; }
  .vbl-k { padding: 14px; }
  .vbl-k:not(.null) { padding-top: 66px; }
  .vbl-ico { left: 14px; top: 14px; width: 40px; height: 40px; }
  .vbl-ink { top: 12px; right: 12px; }
  .vbl-k b { font-size: .95rem; }
  .vbl-k span.t { font-size: .82rem; }
  .vbl-drohne { width: 92px; right: 12px; }
  .vbl-drohne-schatten { right: 32px; top: 88px; width: 46px; }
  .vbl-k.drohne span.t { max-width: 58%; }
}
@media (max-width: 420px) { .vbl-k:not(.b2):not(.null) span.t { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .vbl *, .vbl-k { animation: none !important; transition: none !important; }
  .vbl-k { opacity: 1; transform: none; }
}

/* Drohne und Laufband unter das „inklusive“-Schild (sonst überdecken sie es) */
.vbl .vbl-drohne { width: 150px; right: 36px; top: 52px; }
.vbl .vbl-drohne-schatten { right: 78px; top: 150px; width: 66px; }
.vbl-k.drohne { min-height: 190px; }
.vbl-k.drohne span.t, .vbl-k.drohne b { max-width: 55%; }
.vbl .vbl-band { top: 58px; }
.vbl-k.band { padding-top: 112px !important; }
@media (max-width: 900px) {
  .vbl .vbl-drohne { width: 104px; right: 16px; top: 50px; }
  .vbl .vbl-drohne-schatten { right: 44px; top: 120px; width: 48px; }
  .vbl-k.drohne { min-height: 170px; }
  .vbl .vbl-band { top: 50px; }
  .vbl-k.band { padding-top: 100px !important; }
}
@media (max-width: 900px) { .vbl .vbl-ink { font-size: .58rem; padding: 2px 7px; } }

/* Klick-Details: Karte schiebt sich von unten über die Kachel */
.vbl-k.kann { cursor: pointer; outline: none; }
.vbl-k.kann:focus-visible { box-shadow: 0 0 0 3px #E8A020; }
.vbl-k.kann span.t { padding-right: 34px; }
.vbl-plus { position: absolute; right: 14px; bottom: 14px; z-index: 3; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .14); transition: transform .35s cubic-bezier(.3,1.4,.5,1), background-color .25s ease; }
.vbl-plus::before, .vbl-plus::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: #fff; }
.vbl-plus::after { transform: rotate(90deg); }
.vbl-k.kann:hover .vbl-plus { background: rgba(255, 255, 255, .24); transform: scale(1.08); }
.vbl-k.is-offen .vbl-plus { transform: rotate(135deg); background: #E8A020; }
.vbl-mehr {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
  padding: 18px 18px 18px; background: linear-gradient(170deg, #0c6a79 0%, #074652 100%); color: #fff;
  clip-path: inset(100% 0 0 0 round 20px); transition: clip-path .5s cubic-bezier(.2,.8,.2,1);
  cursor: pointer;
}
.vbl-k.is-offen .vbl-mehr { clip-path: inset(0 0 0 0 round 20px); }
.vbl-mehr > * { opacity: 0; transform: translateY(10px); transition: opacity .3s ease, transform .4s ease; }
.vbl-k.is-offen .vbl-mehr > * { opacity: 1; transform: none; transition-delay: .18s; }
.vbl-k.is-offen .vbl-mehr > p { transition-delay: .24s; }
.vbl-k.is-offen .vbl-mehr > a { transition-delay: .3s; }
.vbl-mehr b { font-size: 1rem; font-weight: 800; padding-right: 34px; }
.vbl .vbl-mehr p { margin: 0; font-size: .88rem; line-height: 1.5; color: rgba(255, 255, 255, .9); font-weight: 500; padding-right: 34px; }
.vbl .vbl-mehr a { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 7px 14px; border-radius: 999px; background: #E8A020; color: #fff !important; font-size: .82rem; font-weight: 800; text-decoration: none !important; }
.vbl .vbl-mehr a svg { width: 14px !important; height: 14px !important; }
/* Animation beim Öffnen nochmal abspielen */
.vbl-k.is-klick .vbl-blitz { animation: vbl-blitz .45s ease-out; }
.vbl-k.is-klick .vbl-schluessel { animation: vbl-schwing .8s ease; transform-origin: 30% 30%; }
.vbl-k.is-klick .vbl-ico { animation: vbl-hupf .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes vbl-hupf { 0% { transform: scale(1); } 40% { transform: scale(1.18); } 100% { transform: scale(1); } }
@media (max-width: 900px) {
  .vbl-mehr { padding: 14px; gap: 6px; }
  .vbl .vbl-mehr p { font-size: .8rem; padding-right: 0; }
  .vbl-mehr b { font-size: .92rem; }
  .vbl .vbl-mehr a { font-size: .74rem; padding: 6px 11px; }
  .vbl-plus { right: 10px; bottom: 10px; width: 24px; height: 24px; }
  .vbl-k.kann span.t { padding-right: 26px; }
}
@media (max-width: 420px) { .vbl-k:not(.b2):not(.null) .vbl-mehr p { font-size: .74rem; line-height: 1.4; } }
/* Detailkarte darf über die Kachel nach oben hinauswachsen (lange Texte auf kleinen Kacheln) */
.vbl-mehr { inset: auto 0 0 0; min-height: 100%; border-radius: 20px; }
.vbl-k.is-offen { overflow: visible; z-index: 5; }
.vbl-k.is-offen .vbl-mehr { box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .55); }
.vbl-k.is-offen > .vbl-band { overflow: hidden; }
.vbl .vbl-k > b { hyphens: auto; -webkit-hyphens: auto; }
.vbl .vbl-mehr a { white-space: nowrap; }
@media (max-width: 900px) {
  /* Handy: geöffnete Kachel nimmt die ganze Zeile ein, damit der Text Platz hat */
  .vbl-k.kann.is-offen { grid-column: 1 / -1; }
  .vbl-k.kann > b { padding-right: 28px; }
}
.vbl .vbl-k.kann.is-offen .vbl-plus { transform: rotate(135deg); background: #E8A020; }
