/**
 * HOLZLAR onOffice — Single-Immobilien-Profil.
 * Full-Width-Hero + kontaktierter Body mit Tab-Navigation (weiße Karten).
 * Selbsttragend: Designtokens als CSS-Variablen, unabhängig von anderen Plugins.
 */

.holzlar-objekt {
	--oo-cream:  #faf6f0;
	--oo-ink:    #1a1411;
	--oo-sand:   #f3ecde;
	--oo-h2col:  #f5a200;
	--oo-h3col:  #ec6d10;
	--oo-h4col:  #dd3a10;
	--oo-muted:  #6b625b;
	--oo-line:   rgba(26, 20, 17, .10);
	--oo-radius: 24px;
	--oo-gradient: linear-gradient(135deg, #f5a200, #f28006 28%, #ec6d10 55%, #e25211 78%, #dd3a10);
	--oo-shadow:   0 1px 2px rgba(26,20,17,.04), 0 20px 60px -30px rgba(26,20,17,.18);

	font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color: var(--oo-ink);
	-webkit-font-smoothing: antialiased;
	line-height: 1.6;
}
.holzlar-objekt *, .holzlar-objekt *::before, .holzlar-objekt *::after { box-sizing: border-box; }
.holzlar-objekt img { max-width: 100%; height: auto; display: block; }

/* ---- Body-Container ---- */
.oo-body { max-width: 1100px; margin: 0 auto; padding: 0 16px 56px; }

/* ---- Hero (Full-Width-Banner) ---- */
.oo-hero {
	position: relative; width: 100%;
	height: clamp(380px, 60vh, 640px);
	overflow: hidden; background: var(--oo-sand);
	display: flex; align-items: flex-end;
	margin-bottom: 22px;
}
.oo-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.oo-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,20,17,.82) 0%, rgba(26,20,17,.22) 46%, rgba(26,20,17,0) 76%); }
.oo-hero-inner { position: relative; width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 24px 38px; color: #fff; }
.oo-hero-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.oo-hero-title { color: #fff; font-weight: 700; letter-spacing: -.02em; line-height: 1.12; margin: 0; font-size: clamp(1.7rem, 4vw, 3rem); text-wrap: balance; }
.oo-hero-ort { color: rgba(255,255,255,.86); font-weight: 500; margin: .45em 0 0; }
.oo-hero--plain { height: auto; background: transparent; }
.oo-hero--plain .oo-hero-inner { color: var(--oo-ink); padding-top: 24px; }
.oo-hero--plain .oo-hero-title { color: var(--oo-ink); }
.oo-hero--plain .oo-hero-ort { color: var(--oo-muted); }

.oo-badge {
	display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px;
	font-size: .82rem; font-weight: 600; background: #fff; color: var(--oo-ink);
	box-shadow: 0 2px 10px rgba(0,0,0,.12);
}
.oo-badge.is-available { background: #1f9d55; color: #fff; }
.oo-badge.is-reserved  { background: #f5a200; color: #1a1411; }
.oo-badge.is-sold      { background: var(--oo-h4col); color: #fff; }
.oo-badge--price { background: rgba(255,255,255,.94); font-weight: 700; }

/* ---- Galerie-Slider (eine Reihe) ---- */
.oo-gallery { position: relative; margin: 0 0 22px; }
.oo-thumbs {
	display: flex; gap: 10px; overflow-x: auto; scroll-behavior: smooth;
	scroll-snap-type: x proximity; padding-bottom: 2px;
	scrollbar-width: none; -ms-overflow-style: none;
}
.oo-thumbs::-webkit-scrollbar { display: none; }
.oo-thumb {
	flex: 0 0 auto; width: clamp(124px, 22vw, 172px); aspect-ratio: 4 / 3;
	border-radius: 12px; overflow: hidden; cursor: pointer; background: var(--oo-sand);
	scroll-snap-align: start; transition: transform .25s ease, box-shadow .25s ease;
}
.oo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.oo-thumb:hover { transform: translateY(-2px); box-shadow: var(--oo-shadow); }
.oo-thumb:focus-visible { outline: 2px solid var(--oo-h3col); outline-offset: 2px; }
.oo-gal-nav {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
	width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
	background: #fff; color: var(--oo-ink); box-shadow: 0 4px 16px rgba(0,0,0,.18);
	font-size: 1.4rem; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.oo-gal-prev { left: 6px; } .oo-gal-next { right: 6px; }
.oo-gal-nav:hover { background: var(--oo-cream); }
.oo-gal-nav[hidden] { display: none; }
@media (hover: none) { .oo-gal-nav { display: none; } }

/* ---- Karten ---- */
.oo-card { background: #fff; border-radius: var(--oo-radius); box-shadow: var(--oo-shadow); padding: 26px 28px; margin: 0 0 22px; }
.oo-h2 { font-size: clamp(1.2rem, 2.2vw, 1.55rem); font-weight: 700; letter-spacing: -.02em; margin: 0 0 14px; }
.oo-h3 { font-size: 1.05rem; font-weight: 700; margin: 22px 0 10px; }
.oo-prose { color: #322b25; }
.oo-prose p { margin: 0 0 1em; }
.oo-prose p:last-child { margin-bottom: 0; }
.oo-note { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--oo-line); color: var(--oo-muted); font-size: .92rem; }

/* ---- Eckdaten ---- */
.oo-facts { padding: 20px 24px; }
.oo-facts-grid { display: grid; gap: 8px 24px; margin: 0; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.oo-fact { padding: 8px 0; }
.oo-fact dt { font-size: .8rem; color: var(--oo-muted); margin: 0 0 2px; }
.oo-fact dd { margin: 0; font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em; }

/* ---- Tab-Navigation ---- */
.oo-tabs { margin-top: 4px; }
.oo-tablist { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px; margin-bottom: 22px; scrollbar-width: none; -ms-overflow-style: none; }
.oo-tablist::-webkit-scrollbar { display: none; }
.oo-tab {
	flex: 0 0 auto; background: #fff; cursor: pointer; font: inherit;
	font-weight: 600; font-size: .95rem; color: var(--oo-muted);
	padding: 11px 22px; border: 1.5px solid var(--oo-line); border-radius: 9999px;
	white-space: nowrap;
	transition: color .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease, transform .25s ease;
}
.oo-tab:hover { color: var(--oo-ink); border-color: var(--oo-ink); transform: translateY(-1px); }
.oo-tab.is-active {
	color: #fff; border-color: transparent;
	background: linear-gradient(120deg, #F5A200, #EC6D10 55%, #DD3A10);
}
@media (max-width: 767px) {
	.oo-tablist { gap: 6px; margin-bottom: 16px; }
	.oo-tab { padding: 8px 15px; font-size: .82rem; border-width: 1px; }
	.oo-tab:hover { transform: none; }
}
.oo-tab:focus-visible { outline: 2px solid var(--oo-h3col); outline-offset: 2px; border-radius: 6px; }
.oo-panel[hidden] { display: none; }

/* ---- Merkmale ---- */
.oo-features { display: grid; gap: 18px; }
.oo-feature-label { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--oo-muted); margin-bottom: 8px; }
.oo-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.oo-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--oo-sand); color: #2c2620; font-size: .9rem; font-weight: 500; }
.oo-chip--check::before { content: "✓"; color: var(--oo-h3col); font-weight: 700; }
.oo-features-text { margin-top: 20px; }

/* ---- Energie ---- */
.oo-energy-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 720px) { .oo-energy-grid { grid-template-columns: 1.4fr 1fr; } }
.oo-energy-data { display: grid; gap: 10px 24px; margin: 0; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.oo-energy-data dt { font-size: .8rem; color: var(--oo-muted); }
.oo-energy-data dd { margin: 0; font-weight: 600; }
.oo-eklasse { display: inline-block; min-width: 34px; text-align: center; padding: 3px 10px; border-radius: 8px; color: #fff; font-weight: 700; }
.oo-energy-skala img { border-radius: 12px; margin-left: auto; }

/* ---- Lage / Distanzen / Karte ---- */
.oo-address { font-weight: 600; margin: 0 0 10px; }
.oo-distances { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .oo-distances { grid-template-columns: 1fr 1fr; column-gap: 28px; } }
.oo-distances li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--oo-line); }
.oo-distances li span:last-child { color: var(--oo-muted); white-space: nowrap; }
.oo-map { height: 380px; border-radius: 16px; overflow: hidden; margin-top: 18px; background: var(--oo-sand); }
.oo-map .leaflet-container { height: 100%; width: 100%; font: inherit; }

/* ---- Grundrisse ---- */
.oo-floorplans { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.oo-floorplan { display: block; border-radius: 14px; overflow: hidden; background: var(--oo-sand); box-shadow: var(--oo-shadow); cursor: pointer; }
.oo-floorplan img { width: 100%; }

/* ---- Kontakt ---- */
/* Gradient-Banner-CTA (Kundenwahl „Vorschlag 3", 2026-06-10) */
.oo-contact { position: relative; overflow: hidden; background: var(--oo-gradient); color: #fff; padding: 56px 24px 48px; text-align: center; }
.oo-contact::before { content: ""; position: absolute; width: 480px; height: 480px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.18); left: 50%; bottom: -300px; transform: translateX(-50%); pointer-events: none; }
.oo-contact > * { position: relative; }
.oo-contact-kicker { margin: 0 0 14px; font-size: .72rem; text-transform: uppercase; letter-spacing: .22em; font-weight: 600; color: rgba(255,255,255,.85); }
.oo-contact .oo-h2 { color: #fff; margin: 0 auto 10px; max-width: 18ch; font-size: clamp(1.9rem, 3.6vw, 2.6rem); line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; }
.oo-contact-sub { color: rgba(255,255,255,.88); max-width: 46ch; margin: 0 auto 14px; line-height: 1.6; font-size: .98rem; }
.oo-contact-ref { display: inline-flex; gap: 6px; padding: 8px 18px; border-radius: 999px; background: rgba(26,20,17,.22); color: #fff; font-size: .82rem; font-weight: 600; letter-spacing: .01em; margin-bottom: 28px; }
.oo-contact-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.oo-cta-pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 28px; border-radius: 999px; font-weight: 600; font-size: .98rem; text-decoration: none; cursor: pointer; background: rgba(255,255,255,.16); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; border: 1px solid rgba(255,255,255,.3); transition: transform .25s ease, background .25s ease; }
.oo-cta-pill:hover { background: rgba(255,255,255,.26); transform: translateY(-1px); }
.oo-cta-pill--solid { background: #fff; color: var(--oo-ink); border-color: #fff; }
.oo-cta-pill--solid:hover { background: #FAF6F0; }
.oo-contact-form { max-width: 680px; margin: 34px auto 0; background: rgba(255,255,255,.95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--oo-ink); border-radius: 22px; padding: 32px 30px; text-align: left; box-shadow: 0 30px 70px -40px rgba(0,0,0,.45); }
.oo-contact-form-title { margin: 0 0 14px; font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
@media (max-width: 879px) { .oo-contact { padding: 44px 18px 36px; } .oo-contact-form { padding: 24px 20px; } }
/* Formular-Fixes (2026-06-10): Selects hatten feste 43px-Höhe -> Text abgeschnitten
   (Padding 2x14px + line-height brauchen ~54px); Submit auf Kundenwunsch min. 80px hoch. */
.oo-contact-form select { height: auto !important; min-height: 54px; line-height: 1.4 !important; }
.oo-contact-form button[type="submit"], .oo-contact-form .wpforms-submit { min-height: 80px !important; }

/* ---- Lightbox ---- */
.oo-lb { position: fixed; inset: 0; z-index: 99999; display: none; background: rgba(16,12,9,.94); align-items: center; justify-content: center; }
.oo-lb.is-open { display: flex; }
.oo-lb img { max-width: 92vw; max-height: 86vh; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.oo-lb-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer; width: 52px; height: 52px; border-radius: 50%; font-size: 1.6rem; line-height: 1; }
.oo-lb-btn:hover { background: rgba(255,255,255,.22); }
.oo-lb-prev { left: 4vw; } .oo-lb-next { right: 4vw; }
.oo-lb-close { top: 22px; right: 22px; transform: none; width: 46px; height: 46px; font-size: 1.4rem; }
.oo-lb-count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: #fff; font-size: .9rem; opacity: .8; }
@media (max-width: 560px) { .oo-lb-btn { width: 42px; height: 42px; } }

@media (prefers-reduced-motion: reduce) { .holzlar-objekt * { transition: none !important; } }
