/* MV-ImmoCenter Portal – Ergänzungen zum Original-Theme (YOOtheme/UIkit) */
:root {
    --mvic-primary: #004a6c;
    --mvic-primary-light: #0067a2;
    --mvic-text: #1c1c1c;
    --mvic-muted: #f8f8f8;
    --mvic-border: #e5e5e5;
}

/* YOOtheme-Extras */
.tm-grid-expand > * { flex-grow: 1; }
.mvic-hero .uk-slideshow-items { min-height: 300px; }

/* Honeypot */
.mvic-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Formulare ---------- */
.mvic-form .uk-form-label { font-weight: 600; }
.mvic-accept { display: flex; gap: 10px; align-items: flex-start; font-size: .875rem; line-height: 1.5; margin-top: 6px; }
.mvic-accept .uk-checkbox { margin-top: 3px; flex: 0 0 auto; }
.mvic-form .uk-alert-success, .mvic-form .uk-alert-danger { margin-bottom: 20px; }
.mvic-submit { min-width: 220px; }

/* Bewertung starten (ersetzt Balbooa-Formular 1:1 im Aussehen) */
.mvic-bewertung { max-width: 320px; width: 100%; box-sizing: border-box; padding: 30px 20px; box-shadow: 0 14px 25px rgba(0, 0, 0, .12); background: #fff; color: var(--mvic-text); text-align: center; }
.mvic-bew-legend { font-weight: 600; font-size: 17px; line-height: 1.6; color: #333; margin-bottom: 4px; width: 100%; text-align: center; }
.mvic-req { color: #333; }
.mvic-bew-options { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #eee; }
.mvic-bew-option { position: relative; cursor: pointer; display: block; }
.mvic-bew-option + .mvic-bew-option { border-left: 1px solid #eee; }
.mvic-bew-option input { position: absolute; opacity: 0; pointer-events: none; }
.mvic-bew-box { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 24px 6px 30px; transition: background .2s, box-shadow .2s; }
.mvic-bew-box img { width: 72px; height: 72px; object-fit: contain; }
.mvic-bew-title { font-weight: 600; font-size: 15px; color: #333; }
.mvic-bew-option:hover .mvic-bew-box { background: #f5f9fb; }
.mvic-bew-option input:checked + .mvic-bew-box { background: #eaf3f8; box-shadow: inset 0 0 0 2px var(--mvic-primary); }
.mvic-bew-option input:focus-visible + .mvic-bew-box { outline: 2px solid var(--mvic-primary); outline-offset: -4px; }
.mvic-bew-submit { max-height: 0; overflow: hidden; transition: max-height .3s ease, margin .3s ease; }
.mvic-bewertung:has(input:checked) .mvic-bew-submit, .mvic-bewertung.is-selected .mvic-bew-submit { max-height: 120px; margin-top: 20px; }
.mvic-bew-submit .uk-button { font-weight: 700; font-size: 16px; padding: 6px 10px; line-height: 1.6; }
.uk-card-primary .mvic-bewertung, .uk-section-primary .mvic-bewertung { color: var(--mvic-text); }

/* ---------- Header / Merkliste ---------- */
.navphone a { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.mvic-remind { position: relative; display: inline-flex; color: var(--mvic-text); }
.mvic-remind-count { position: absolute; top: -8px; right: -12px; min-width: 18px; height: 18px; border-radius: 9px; background: #e3342f; color: #fff; font-size: 11px; line-height: 18px; text-align: center; padding: 0 4px; font-family: Arial, sans-serif; }


/* ---------- Objektkarten ---------- */
.mvic-prop-card { display: flex; flex-direction: column; width: 100%; box-shadow: none; border: 1px solid var(--mvic-border); background: #fff; transition: box-shadow .2s; }
.mvic-prop-card:hover { box-shadow: 0 10px 28px rgba(0, 0, 0, .09); }
.mvic-prop-media { aspect-ratio: 4 / 3; overflow: hidden; background: #eef2f4; }
.mvic-prop-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.mvic-prop-card:hover .mvic-prop-media img { transform: scale(1.03); }
.mvic-noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #9aaab2; }
.mvic-ribbon { position: absolute; top: 18px; left: -42px; width: 150px; transform: rotate(-45deg); background: #0067a2; color: #fff; text-align: center; font-size: 13px; font-weight: 700; padding: 6px 0; letter-spacing: .5px; pointer-events: none; }
.mvic-prop-media { position: relative; }
.mvic-badge { position: absolute; top: 14px; left: 14px; background: #c47a00; color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; text-transform: uppercase; letter-spacing: .5px; }
.mvic-badge-inline { position: static; display: inline-block; margin-bottom: 10px; }
.mvic-fav { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: #222; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform .15s, color .15s; z-index: 2; }
.mvic-fav:hover { transform: scale(1.08); }
.mvic-fav.is-fav { color: #e3342f; }
.mvic-fav.is-fav svg path, .mvic-fav.is-fav svg { fill: #e3342f; }
.mvic-prop-body { padding: 18px 20px 14px; flex: 1; }
.mvic-prop-label { display: inline-block; background: #0067a2; color: #fff; font-size: 12px; padding: 2px 7px; border-radius: 3px; line-height: 1.5; }
.mvic-prop-title { font-size: 16px; line-height: 1.6; font-weight: 600; margin: 12px 0 6px; color: #555; }
.mvic-prop-title a:hover { color: var(--mvic-primary); text-decoration: none; }
.mvic-prop-facts { font-size: 14px; color: #666; line-height: 1.5; }
.mvic-prop-foot { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-top: 1px solid var(--mvic-border); }
.mvic-prop-price { font-weight: 700; color: var(--mvic-primary); font-size: 16px; }
.mvic-prop-foot .uk-button { padding: 0 16px; }

/* Listenansicht */
.mvic-view-list .mvic-prop-grid > * { width: 100% !important; }
.mvic-view-list .mvic-prop-card { flex-direction: row; flex-wrap: wrap; }
.mvic-view-list .mvic-prop-media { width: 36%; aspect-ratio: auto; min-height: 210px; }
.mvic-view-list .mvic-prop-body { width: 64%; flex: none; box-sizing: border-box; }
.mvic-view-list .mvic-prop-foot { width: 64%; margin-left: 36%; box-sizing: border-box; margin-top: -1px; }
@media (max-width: 639px) {
    .mvic-view-list .mvic-prop-media, .mvic-view-list .mvic-prop-body, .mvic-view-list .mvic-prop-foot { width: 100%; margin-left: 0; }
}
.mvic-viewtoggle .uk-button.is-active { background: var(--mvic-primary); color: #fff; border-color: var(--mvic-primary); }
.mvic-filter .uk-select { min-width: 170px; }

/* Karte */
.mvic-map { width: 100%; min-height: 220px; background: #e9eef1; z-index: 0; }
.mvic-map-list { height: calc(100vh - 140px); max-height: 760px; min-height: 360px; }
@media (max-width: 959px) {
    .mvic-map-col { display: none; order: -1; }
    .mvic-map-col.mvic-map-open { display: block; }
    .mvic-map-list { height: 360px; }
}
.mvic-popup { width: 220px; font-family: inherit; }
.mvic-popup img { width: 100%; height: 120px; object-fit: cover; display: block; margin-bottom: 8px; }
.mvic-popup strong { display: block; line-height: 1.35; margin-bottom: 4px; }
.mvic-popup .p { color: var(--mvic-primary); font-weight: 700; }
.mvic-map-consent { height: 100%; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; }
.mvic-merkliste .mvic-prop-item.is-hidden { display: none; }

/* Detailseite */
.mvic-gallery .uk-slideshow-items { background: #eef2f4; }
.mvic-img-count { position: absolute; left: 14px; bottom: 14px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 13px; padding: 3px 9px; border-radius: 3px; }
.mvic-thumbnav img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; opacity: .65; transition: opacity .2s; }
.mvic-thumbnav a.is-active img, .mvic-thumbnav a:hover img { opacity: 1; outline: 2px solid var(--mvic-primary); outline-offset: -2px; }
.mvic-facts th { width: 45%; font-weight: 600; color: #555; text-transform: none; font-size: 15px; }
.mvic-features .uk-label { background: #eaf3f8; color: var(--mvic-primary); text-transform: none; font-size: 14px; padding: 3px 10px; margin: 0 4px 6px 0; }
.mvic-text { line-height: 1.7; }
.mvic-price-big { font-size: 28px; font-weight: 700; color: var(--mvic-primary); line-height: 1.3; }
.mvic-pricebox { border: 1px solid var(--mvic-border); box-shadow: 0 10px 30px rgba(0, 0, 0, .06); }
.mvic-quickfacts li { font-size: 15px; }
.mvic-eclass { display: flex; margin: 10px 0 0; max-width: 520px; }
.mvic-eclass span { flex: 1; text-align: center; color: #fff; font-size: 12px; font-weight: 700; padding: 5px 0; opacity: .55; }
.mvic-eclass span:nth-child(1) { background: #00843d; } .mvic-eclass span:nth-child(2) { background: #2b9a3b; } .mvic-eclass span:nth-child(3) { background: #7cb93a; }
.mvic-eclass span:nth-child(4) { background: #c7d62f; color: #333; } .mvic-eclass span:nth-child(5) { background: #f5e61c; color: #333; } .mvic-eclass span:nth-child(6) { background: #f5b21c; }
.mvic-eclass span:nth-child(7) { background: #ef7d1a; } .mvic-eclass span:nth-child(8) { background: #e3401c; } .mvic-eclass span:nth-child(9) { background: #c4161c; }
.mvic-eclass span.is-active { opacity: 1; transform: scaleY(1.35); box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.mvic-mobile-price { background: var(--mvic-muted); padding: 14px 16px; }

/* Galerie / Video */
.mvic-ratio-43 { aspect-ratio: 4 / 3; overflow: hidden; }
.mvic-ratio-43 img, .mvic-cover-img { width: 100%; height: 100%; object-fit: cover; }
.mvic-video { position: relative; aspect-ratio: 16 / 9; background: #111 center / cover no-repeat; display: flex; align-items: center; justify-content: center; }
.mvic-video-play { background: none; border: 0; color: #fff; cursor: pointer; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .6)); }
.mvic-video-note { position: absolute; bottom: 8px; left: 0; right: 0; text-align: center; color: #fff; font-size: 12px; text-shadow: 0 1px 3px #000; }
.mvic-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Blog */
.mvic-blog-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.mvic-article h2 { margin-top: 1.6em; }

/* Cookie-Hinweis */
.mvic-consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 10000; display: flex; justify-content: center; }
.mvic-consent[hidden] { display: none; }
.mvic-consent-inner { max-width: 760px; background: #fff; color: #333; box-shadow: 0 10px 40px rgba(0, 0, 0, .25); padding: 18px 22px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; border-top: 4px solid var(--mvic-primary); }
.mvic-consent-text { flex: 1 1 360px; font-size: 14px; line-height: 1.5; }
.mvic-consent-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Sticky-Sidebar im Blog */
.js-sticky .mvic-bewertung { margin-left: auto; margin-right: auto; }

/* Formular-Optik wie bisher (Balbooa) */
.mvic-form .uk-form-label { font-size: 13px; font-weight: 700; color: #1c1c1c; margin-bottom: 8px; }
.mvic-form .uk-input, .mvic-form .uk-select { height: 50px; }
.mvic-form .uk-textarea { min-height: 120px; }
.mvic-form .mvic-accept { font-size: 13px; font-weight: 600; line-height: 1.75; }
.mvic-form .mvic-submit { padding: 6px 30px; font-size: 16px; font-weight: 700; }
