/* Seitenkopf mit Mega-Menü – Daniel von Baum Immobilien */
.vbh { --p: #007E91; --pd: #005f6e; --o: #E8A020; --od: #c9870f; --t: #1f2a30; --m: #5b6870; --l: #e3ecee; --s: #f3f8f9;
  position: sticky; top: 0; z-index: 9995; background: #fff; font-family: Raleway, system-ui, sans-serif; color: var(--t); border-bottom: 1px solid var(--l); }
.vbh *, .vbh *::before, .vbh *::after { box-sizing: border-box; }
.vbh a { text-decoration: none; color: inherit; }
.vbh button { font: inherit; }
.vbh svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.vbh svg.fill { fill: var(--o); stroke: none; }
.vbh-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 24px; }
.vbh-skip { position: absolute; left: -9999px; top: 8px; background: var(--p); color: #fff !important; padding: 8px 14px; border-radius: 8px; z-index: 2; }
.vbh-skip:focus { left: 12px; }

.vbh-top { transition: margin-top .25s ease; }
.vbh-top .vbh-wrap { justify-content: space-between; min-height: 68px; }
.vbh-logo { display: flex; align-items: center; gap: 12px; }
.vbh-crest { position: relative; display: block; width: 32px; height: 48px; flex: none; }
.vbh-crest img { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Wappen baut sich beim ersten Seitenaufruf eines Besuchs auf: Schild, dann wächst der Baum */
.vbh-crest .s { animation: vbhSchild .5s cubic-bezier(.2,.8,.2,1) both; }
.vbh-crest .b { transform-origin: 50% 88%; animation: vbhBaum 1s cubic-bezier(.2,.8,.2,1) .35s both; }
.vbh-crest.still .s, .vbh-crest.still .b { animation: none; }
@keyframes vbhSchild { from { opacity: 0; transform: scale(.88); } to { opacity: 1; transform: none; } }
@keyframes vbhBaum { from { opacity: 0; clip-path: inset(100% 0 0 0); transform: scale(.55); } 40% { opacity: 1; } to { opacity: 1; clip-path: inset(0 0 0 0); transform: none; } }
.vbh-logo span { display: flex; flex-direction: column; line-height: 1.1; }
.vbh-logo b { font-size: 1.15rem; font-weight: 700; letter-spacing: .01em; }
.vbh-logo small { font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; color: var(--p); font-weight: 700; }
.vbh-util { display: flex; align-items: center; gap: 22px; font-size: .9rem; font-weight: 600; }
.vbh-util a { display: inline-flex; align-items: center; gap: 7px; color: var(--t); }
.vbh-util a:hover { color: var(--p); }
.vbh-util svg { color: var(--p); }
.vbh-stars b { font-weight: 700; }

.vbh-nav { border-top: 1px solid var(--l); }
.vbh-items { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex: 1; }
.vbh-items [data-p] { all: unset; cursor: pointer; display: block; padding: 16px 14px; font-size: .97rem; font-weight: 600; color: var(--m); border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.vbh-items [data-p]:hover, .vbh-items [data-p][aria-expanded="true"] { color: var(--t); border-bottom-color: var(--o); }
.vbh-items [data-p]:focus-visible { outline: 2px solid var(--p); outline-offset: -4px; border-radius: 6px; }
.vbh-cta { display: inline-flex; align-items: center; justify-content: center; background: var(--o); color: #fff !important; font-weight: 700; font-size: .92rem; padding: 11px 20px; border-radius: 999px; white-space: nowrap; box-shadow: 0 6px 16px rgba(232,160,32,.3); transition: background .15s, transform .15s; }
.vbh-cta:hover { background: var(--od); transform: translateY(-1px); }

.vbh-panel { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--l); box-shadow: 0 24px 40px rgba(0,40,50,.12); animation: vbhIn .18s ease; }
@keyframes vbhIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.vbh-grid { display: grid !important; grid-template-columns: 1fr 1.2fr 1.6fr; gap: 40px; align-items: start; padding-top: 34px; padding-bottom: 38px; }
.vbh .vbh-h { font-family: Georgia, 'Times New Roman', serif; font-size: 1.7rem; line-height: 1.2; margin: 0 0 10px; color: var(--t); }
.vbh .vbh-intro p:not(.vbh-h) { margin: 0 0 14px; color: var(--m); font-size: .95rem; line-height: 1.6; }
.vbh-more { color: var(--p) !important; font-weight: 700; font-size: .92rem; }
.vbh-eye { display: block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--m); font-weight: 600; margin: 0 0 12px; }
.vbh-cols { display: grid; gap: 28px; }
.vbh-cols.two { grid-template-columns: 1fr 1fr; }
.vbh-cols a { display: block; padding: 7px 0; font-size: .95rem; font-weight: 500; color: var(--t); transition: color .15s, transform .15s; }
.vbh-cols a:hover { color: var(--p); transform: translateX(3px); }
.vbh-teaser { display: grid; grid-template-columns: 1.15fr 1fr; min-height: 220px; background: var(--s); border-radius: 4px; overflow: hidden; }
.vbh-timg { position: relative; overflow: hidden; }
.vbh-timg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.vbh-teaser:hover .vbh-timg img { transform: scale(1.05); }
.vbh-ttx { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 22px; }
.vbh-ttx b { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: 1.15rem; line-height: 1.35; color: var(--t); }
.vbh-ttx .vbh-eye { margin: 0; }
.vbh-arr { color: var(--t); font-size: 1.2rem; }

.vbh.scrolled .vbh-top { margin-top: -69px; }
.vbh-burger { display: none; }
.vbh-mobile { display: none; }

/* Altes Astra-Menü sicherheitshalber ausblenden */
#masthead, .main-header-menu-toggle, .ast-mobile-popup-drawer { display: none !important; }

@media (max-width: 1080px) {
  .vbh-util a:not(:first-child) { display: none; }
  .vbh-grid { grid-template-columns: 1fr 1.4fr; }
  .vbh-teaser { display: none; }
}
@media (max-width: 860px) {
  .vbh-nav { display: none; }
  .vbh-util { display: none; }
  .vbh.scrolled .vbh-top { margin-top: 0; }
  .vbh-top .vbh-wrap { min-height: 62px; padding: 0 16px; }
  .vbh-burger { all: unset; cursor: pointer; display: grid; place-content: center; gap: 5px; width: 44px; height: 44px; border-radius: 12px; background: var(--s); }
  .vbh-burger span { display: block; width: 20px; height: 2px; background: var(--t); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .vbh-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .vbh-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .vbh-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .vbh-mobile:not([hidden]) { display: flex; flex-direction: column; gap: 18px; position: fixed; left: 0; right: 0; top: 63px; bottom: 0; overflow-y: auto; background: #fff; padding: 18px 16px 110px; animation: vbhIn .18s ease; }
  .vbh-m-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .vbh-m-tiles a { border-radius: 16px; padding: 18px 14px; display: flex; flex-direction: column; gap: 6px; min-height: 120px; justify-content: flex-end; color: #fff !important; }
  .vbh-m-tiles .t1 { background: linear-gradient(150deg, var(--o), var(--od)); }
  .vbh-m-tiles .t2 { background: linear-gradient(150deg, var(--p), var(--pd)); }
  .vbh-m-tiles b { font-size: 1.05rem; line-height: 1.25; }
  .vbh-m-tiles span { font-size: .8rem; opacity: .9; }
  .vbh-m-acc details { border-bottom: 1px solid var(--l); }
  .vbh-m-acc summary { list-style: none; cursor: pointer; padding: 16px 4px; font-weight: 700; font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; }
  .vbh-m-acc summary::-webkit-details-marker { display: none; }
  .vbh-m-acc summary::after { content: '+'; font-size: 1.4rem; color: var(--p); font-weight: 400; }
  .vbh-m-acc details[open] summary::after { content: '–'; }
  .vbh-m-acc .vbh-eye { margin: 6px 4px 6px; }
  .vbh-m-acc a { display: block; padding: 10px 4px; color: var(--t); font-weight: 500; }
  .vbh-m-acc .lst { padding-bottom: 12px; }
  .vbh-m-foot { display: grid; gap: 10px; text-align: center; font-weight: 700; }
  .vbh-m-foot a:last-child { color: var(--p) !important; padding: 8px; }
  html.vbh-lock { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { .vbh *, .vbh-panel { animation: none !important; transition: none !important; } }
/* Theme-Buttonstile neutralisieren */
.vbh .vbh-items [data-p], .vbh .vbh-items [data-p]:hover, .vbh .vbh-items [data-p]:focus { background: none !important; box-shadow: none !important; border-radius: 0 !important; border-top: 0 !important; border-left: 0 !important; border-right: 0 !important; }
@media (max-width: 860px) {
  .vbh .vbh-burger, .vbh .vbh-burger:hover, .vbh .vbh-burger:focus { background: var(--s) !important; border: 0 !important; padding: 0 !important; box-shadow: none !important; border-radius: 12px !important; }
}
/* Handy: Menü-Knopf schwebend rechts unten wie auf der alten Seite (Daumenhöhe), Logo mittig */
@media (max-width: 860px) {
  .vbh-top .vbh-wrap { justify-content: center; }
  .vbh .vbh-burger, .vbh .vbh-burger:hover, .vbh .vbh-burger:focus {
    position: fixed; right: 14px; bottom: 120px; z-index: 2; width: 54px; height: 54px;
    background: #fff !important; border: 1px solid #e6eaee !important; border-radius: 15px !important;
    box-shadow: 0 6px 20px rgba(0,0,0,.16) !important;
  }
  .vbh-burger span { background: var(--p); }
  .vbh-mobile:not([hidden]) { z-index: 1; }
}

.vbh-m-acc .vbh-m-over { font-weight: 700; color: var(--p) !important; }
/* Objekt-Fakten im Teaser */
.vbh-facts { display: flex; flex-wrap: wrap; gap: 6px; }
.vbh-facts span { background: #fff; border: 1px solid var(--l); color: var(--t); border-radius: 999px; padding: 4px 10px; font-size: .8rem; font-weight: 600; white-space: nowrap; }
/* Handy-Menü: neuestes Kaufobjekt oben, Bild klein links */
@media (max-width: 860px) {
  .vbh-mobile .vbh-m-teaser { display: grid; grid-template-columns: 38% 1fr; min-height: 0; border-radius: 16px; flex-shrink: 0; }
  .vbh-m-teaser .vbh-timg { min-height: 128px; }
  .vbh-m-teaser .vbh-ttx { padding: 12px 12px 12px 14px; gap: 6px; justify-content: center; }
  .vbh-m-teaser .vbh-ttx .vbh-eye { font-size: .68rem; }
  .vbh-m-teaser .vbh-ttx b { font-size: .98rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .vbh-m-teaser .vbh-facts { gap: 4px; }
  .vbh-m-teaser .vbh-facts span { font-size: .72rem; padding: 3px 8px; }
  .vbh-m-teaser .vbh-arr { display: none; }
}
/* Handy-Menü: dritte, breite Kachel „Suchprofil anlegen“ unter den beiden anderen */
@media (max-width: 860px) {
  .vbh-m-tiles .t3 { grid-column: 1 / -1; min-height: 0; padding: 16px; background: #fff; border: 2px solid var(--p); color: var(--p) !important; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
  .vbh-m-tiles .t3 b { font-size: 1.05rem; white-space: nowrap; }
  .vbh-m-tiles .t3 span { opacity: .85; color: var(--t); text-align: right; font-size: .78rem; }
}
