/* Objekt-Detailansicht (Kaisergärten-Stil) – gemeinsam für q2-immobilien.de und denkmal-investment.com */
.od {
    --od-ink: #10192b;
    --od-ink-soft: #2c3a52;
    --od-accent: #c8a35e;
    --od-accent-dark: #a9823a;
    --od-accent-soft: #f3ecda;
    --od-bg: #f6f5f2;
    --od-card: #fff;
    --od-line: #e4e2dc;
    --od-text: #24293a;
    --od-muted: #6b7280;
    --od-ok: #2f7d4f;
    --od-warn: #b7791f;
    --od-top: 96px;            /* Höhe des fixen Seitenkopfs */
    --od-radius: 12px;
    background: var(--od-bg);
    color: var(--od-text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 60px;
}
.od *, .od *::before, .od *::after { box-sizing: border-box; }
.od img { max-width: 100%; display: block; }
.od-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.od-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.od-muted { color: var(--od-muted); font-size: 15px; margin: 0 0 18px; }

/* Kopf */
.od-head { background: #fff; padding: calc(var(--od-top) + 22px) 0 18px; border-bottom: 1px solid var(--od-line); }
.od-crumbs { font-size: 13px; color: var(--od-muted); display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.od-crumbs a { color: var(--od-accent-dark); font-weight: 600; text-decoration: none; }
.od-crumbs a:hover { text-decoration: underline; }
.od-titlerow { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.od-titlerow h1 { margin: 0; font-family: Georgia, 'Iowan Old Style', serif; font-size: clamp(28px, 4vw, 42px); line-height: 1.1; color: var(--od-ink); }
.od-badge { background: var(--od-ink); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.od-sub { margin: 8px 0 0; color: var(--od-muted); font-size: 15px; }

/* Sticky-Tabs */
.od-tabs { position: sticky; top: var(--od-top); z-index: 40; background: #fff; border-bottom: 1px solid var(--od-line); box-shadow: 0 2px 10px rgba(16,25,43,.05); }
.od-tabs .od-wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.od-tabs .od-wrap::-webkit-scrollbar { display: none; }
.od-tabs a { padding: 15px 16px; font-size: 14px; font-weight: 600; color: var(--od-ink-soft); text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; }
.od-tabs a:hover { color: var(--od-accent-dark); }
.od-tabs a.is-active { color: var(--od-ink); border-bottom-color: var(--od-accent); }

/* Layout */
.od-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; margin-top: 28px; align-items: start; }
.od-main { display: grid; gap: 24px; min-width: 0; }
.od-aside { align-self: stretch; }
.od-aside__sticky {
    position: sticky; top: calc(var(--od-top) + 70px);
    display: grid; gap: 18px;
    max-height: calc(100vh - var(--od-top) - 86px); overflow-y: auto; padding: 2px; scrollbar-width: thin;
}
.od [id] { scroll-margin-top: calc(var(--od-top) + 76px); }

/* Karten */
.od-card { background: var(--od-card); border-radius: var(--od-radius); box-shadow: 0 1px 3px rgba(16,25,43,.06), 0 6px 18px rgba(16,25,43,.04); overflow: hidden; }
.od-card__head { margin: 0; display: flex; align-items: center; gap: 12px; padding: 16px 24px; background: var(--od-accent-soft); border-bottom: 1px solid var(--od-line); font-family: Georgia, 'Iowan Old Style', serif; font-size: 21px; color: var(--od-ink); }
.od-card__head--small { padding: 12px 20px; font-size: 17px; }
.od-ico { width: 30px; height: 30px; border-radius: 8px; background: #fff; border: 1px solid var(--od-line); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; color: var(--od-accent-dark); font-family: system-ui, sans-serif; }
.od-card__body { padding: 24px; }
.od-h3 { font-family: Georgia, serif; font-size: 19px; color: var(--od-ink); margin: 0 0 10px; }
.od-prose p { margin: 0 0 14px; }
.od-prose img, .od-section__img { border-radius: 8px; margin: 10px 0 14px; }
.od-section { margin-top: 18px; }

/* Galerie */
.od-gallery { background: #fff; border-radius: var(--od-radius); padding: 10px; box-shadow: 0 1px 3px rgba(16,25,43,.06), 0 6px 18px rgba(16,25,43,.04); }
.od-gallery__main { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #dfe3ea; }
.od-gallery__main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.od-gallery__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--od-ink); font-size: 26px; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.od-gallery__nav--prev { left: 12px; } .od-gallery__nav--next { right: 12px; }
.od-gallery__count { position: absolute; right: 12px; bottom: 12px; background: rgba(16,25,43,.78); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.od-gallery__zoom { position: absolute; left: 12px; top: 12px; width: 36px; height: 36px; border: 0; border-radius: 8px; background: rgba(255,255,255,.9); cursor: pointer; font-size: 18px; }
.od-gallery__video { position: absolute; left: 12px; bottom: 12px; border: 0; border-radius: 999px; background: var(--od-accent); color: var(--od-ink); font-weight: 700; font-size: 13px; padding: 8px 16px; cursor: pointer; }
.od-gallery__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 8px; }
.od-gallery__thumbs button { padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; cursor: pointer; background: none; aspect-ratio: 4 / 3; }
.od-gallery__thumbs button.is-active { border-color: var(--od-accent); }
.od-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* Listen */
.od-checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; }
.od-checks--single { grid-template-columns: 1fr; gap: 9px; }
.od-checks li { position: relative; padding-left: 24px; font-size: 14.5px; }
.od-checks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--od-accent-dark); font-weight: 800; }
.od-downloads { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* Energieausweis */
.od-energy { margin-top: 24px; background: #eef2f4; border-radius: 10px; padding: 20px; }
.od-energy__head { font-size: 14px; margin-bottom: 10px; color: var(--od-ink); text-transform: uppercase; letter-spacing: .04em; }
.od-energy__head span { color: var(--od-muted); text-transform: none; }
.od-energy__pill { display: inline-block; background: #8b1d1d; color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 4px; margin-bottom: 6px; }
.od-energy__scale { display: flex; gap: 2px; margin-bottom: 16px; }
.od-energy__scale span { flex: 1; text-align: center; color: #fff; font-weight: 700; font-size: 13px; padding: 7px 0; opacity: .55; }
.od-energy__scale span.is-active { opacity: 1; transform: scale(1.12); box-shadow: 0 2px 8px rgba(0,0,0,.25); position: relative; z-index: 1; font-size: 15px; }
.od-energy__list { display: grid; grid-template-columns: max-content 1fr; gap: 6px 40px; margin: 0; font-size: 13.5px; }
.od-energy__list dt { font-weight: 700; color: var(--od-ink); }
.od-energy__list dd { margin: 0; color: var(--od-muted); }

/* Karte + Bilder-Grid */
.od-map iframe, .od-map .map-embed { width: 100%; border: 0; border-radius: 10px; }
.od-map iframe { height: 420px; }
.od-map .obj-map-toggle { display: flex; gap: 6px; margin-bottom: 8px; }
.od-map .obj-map-toggle button { border: 1px solid var(--od-line); background: #fff; padding: 6px 14px; border-radius: 6px; cursor: pointer; font-weight: 600; font-size: 13px; }
.od-map .obj-map-toggle button.is-active { background: var(--od-ink); color: #fff; border-color: var(--od-ink); }
.od-imggrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.od-imggrid button { padding: 0; border: 0; border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 3; cursor: zoom-in; background: #dfe3ea; }
.od-imggrid img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.od-imggrid button:hover img { transform: scale(1.04); }

/* Wohnungstabelle */
.od-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; align-items: center; }
.od-filter button { border: 1.5px solid var(--od-line); background: #fff; border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; color: var(--od-muted); cursor: pointer; }
.od-filter button.is-active { background: var(--od-ink); border-color: var(--od-ink); color: #fff; }
.od-filter__free { margin-left: auto; font-size: 13px; color: var(--od-muted); display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.od-tablewrap { overflow-x: auto; }
.od-units { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 720px; }
.od-units th { text-align: left; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--od-muted); padding: 10px 12px; border-bottom: 1px solid var(--od-line); }
.od-units td { padding: 10px 12px; border-bottom: 1px solid var(--od-line); vertical-align: middle; }
.od-unit:hover td { background: #faf8f3; }
.od-unit--verkauft td { opacity: .55; }
.od-unit[hidden] { display: none; }
.od-price { font-weight: 700; color: var(--od-ink); white-space: nowrap; }
.od-plan { display: inline-block; width: 78px; height: 52px; border: 1px solid var(--od-line); border-radius: 8px; background: #fff; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.od-plan:hover { box-shadow: 0 6px 16px rgba(16,25,43,.18); transform: translateY(-1px); }
.od-plan img { width: 100%; height: 100%; object-fit: contain; padding: 2px; }
.od-plan__pdf { display: flex; height: 100%; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: #b3261e; }
.od-status { display: inline-block; font-size: 12.5px; font-weight: 700; }
.od-status--frei { color: var(--od-ok); }
.od-status--reserviert { color: var(--od-warn); }
.od-status--verkauft { color: var(--od-muted); }
.od-status--anfrage { color: var(--od-muted); font-weight: 500; }
.od-link { background: none; border: 0; color: var(--od-accent-dark); font-weight: 700; cursor: pointer; font-size: 13.5px; padding: 4px 0; }
.od-link:hover { text-decoration: underline; }
.od-foot { font-size: 12px; color: var(--od-muted); margin: 14px 0 0; }
.od-foot--note { margin-top: 4px; }

/* Sidebar */
.od-card--facts .od-facts { margin: 0; }
.od-facts > div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 20px; font-size: 14px; border-bottom: 1px solid #efede7; }
.od-facts > div:nth-child(odd) { background: #fbfaf7; }
.od-facts dt { color: var(--od-muted); }
.od-facts dd { margin: 0; font-weight: 700; color: var(--od-ink); text-align: right; }
.od-facts dd.is-accent { color: var(--od-ok); }
.od-contact { display: flex; gap: 14px; align-items: center; padding: 16px 20px 0; }
.od-contact img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }
.od-contact small { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--od-muted); }
.od-contact strong { display: block; font-family: Georgia, serif; font-size: 17px; color: var(--od-ink); }
.od-contact a { color: var(--od-accent-dark); font-weight: 700; text-decoration: none; font-size: 14.5px; }
.od-quick__body { padding: 10px 20px 20px; }
.od-quick__body h3 { margin: 6px 0 12px; font-family: Georgia, serif; font-size: 18px; color: var(--od-ink); }
.od-card--adv .od-checks { padding: 16px 20px 18px; }

/* Formulare */
.od-eyebrow { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--od-accent-dark); }
.od-formtitle { font-family: Georgia, serif; font-size: 28px; margin: 6px 0 6px; color: var(--od-ink); }
.od-form { display: grid; gap: 12px; }
.od-form--full { max-width: 760px; }
.od-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.od-field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--od-ink-soft); margin-bottom: 4px; }
.od-field input, .od-field select, .od-field textarea, .od-form textarea {
    width: 100%; padding: 11px 13px; border: 1.5px solid var(--od-line); border-radius: 8px; font: inherit; font-size: 14.5px; background: #fff; color: var(--od-text);
}
.od-field input:focus, .od-field select:focus, .od-field textarea:focus { outline: 0; border-color: var(--od-accent); box-shadow: 0 0 0 3px rgba(200,163,94,.25); }
.od-field.has-error input, .od-field.has-error select { border-color: #c0392b; }
.od-check { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--od-muted); line-height: 1.45; }
.od-check input { margin-top: 3px; accent-color: var(--od-accent-dark); }
.od-check a { color: var(--od-ink); text-decoration: underline; }
.od-form__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.od-form__secure { font-size: 12px; color: var(--od-muted); }
.od-form--compact .od-form__secure { display: block; width: 100%; }
.od-form__msg { padding: 12px 14px; border-radius: 8px; font-size: 14px; }
.od-form__msg.is-ok { background: #e8f5ec; color: #1f5d37; }
.od-form__msg.is-err { background: #fdecea; color: #8c2118; }
.od-form.is-sent > *:not(.od-form__msg) { display: none; }
.od-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.od-btn { display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid transparent; border-radius: 8px; padding: 12px 22px; font-weight: 700; font-size: 14.5px; cursor: pointer; text-decoration: none; transition: all .2s; font-family: inherit; }
.od-btn--primary { background: var(--od-ink); color: #fff; }
.od-btn--primary:hover { background: var(--od-accent-dark); }
.od-btn--primary[disabled] { opacity: .6; cursor: wait; }
.od-btn--ghost { background: #fff; border-color: var(--od-line); color: var(--od-ink); }
.od-btn--ghost:hover { border-color: var(--od-ink); }
.od-form--compact .od-btn { width: 100%; }

/* Modal (Bild / PDF / Video) */
.od-modal { position: fixed; inset: 0; z-index: 10000; background: rgba(10,16,28,.82); display: flex; align-items: center; justify-content: center; padding: 24px; }
.od-modal[hidden] { display: none; }
.od-modal__box { background: #fff; border-radius: 12px; width: min(1100px, 100%); height: min(88vh, 100%); display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.od-modal__bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--od-line); }
.od-modal__title { font-weight: 700; color: var(--od-ink); margin-right: auto; font-size: 15px; }
.od-modal__tab { border: 1.5px solid var(--od-line); background: #fff; border-radius: 999px; padding: 5px 14px; font-size: 13px; font-weight: 600; cursor: pointer; }
.od-modal__tab.is-active { background: var(--od-ink); color: #fff; border-color: var(--od-ink); }
.od-modal__bar a, .od-modal__close { border: 0; background: none; font-size: 13.5px; font-weight: 700; color: var(--od-accent-dark); cursor: pointer; text-decoration: none; }
.od-modal__close { font-size: 26px; line-height: 1; color: var(--od-ink); padding: 0 6px; }
.od-modal__body { flex: 1; min-height: 0; background: #eceff3; display: flex; align-items: center; justify-content: center; }
.od-modal__body iframe, .od-modal__body embed { width: 100%; height: 100%; border: 0; background: #fff; }
.od-modal__body img { max-width: 100%; max-height: 100%; object-fit: contain; }
.od-modal__body video { max-width: 100%; max-height: 100%; }
.od-modal--image .od-modal__box { background: transparent; box-shadow: none; }
.od-modal--image .od-modal__bar { background: transparent; border: 0; }
.od-modal--image .od-modal__title, .od-modal--image .od-modal__close { color: #fff; }
.od-modal--image .od-modal__body { background: transparent; }
.od-modal__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); font-size: 28px; cursor: pointer; }
.od-modal__nav--prev { left: 18px; } .od-modal__nav--next { right: 18px; }

.od-mobilecta { display: none; }

/* Marken-Feinheiten */
.od--denkmal { --od-top: 82px; }

/* Responsive */
@media (max-width: 1020px) {
    .od-layout { grid-template-columns: 1fr; }
    .od-aside { order: 2; }
    .od-aside__sticky { position: static; max-height: none; overflow: visible; }
    .od-checks { grid-template-columns: 1fr; }
    .od-imggrid { grid-template-columns: repeat(2, 1fr); }
    .od-mobilecta { display: block; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; background: var(--od-accent); color: var(--od-ink); text-align: center; font-weight: 800; padding: 14px; border-radius: 10px; text-decoration: none; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
    .od { padding-bottom: 90px; --od-top: 78px; }
}
@media (max-width: 640px) {
    .od-wrap { padding: 0 16px; }
    .od-row { grid-template-columns: 1fr; }
    .od-card__body { padding: 18px 16px; }
    .od-card__head { padding: 14px 16px; font-size: 19px; }
    .od-energy__list { grid-template-columns: 1fr; gap: 2px; }
    .od-energy__list dd { margin-bottom: 8px; }
    .od-modal { padding: 0; }
    .od-modal__box { border-radius: 0; height: 100%; }
}

/* Seitenkopf der Q2-Seite: auf der hellen Objektseite immer vollflächig dunkel */
body.od-page .site-header { background: var(--color-ink, #10192b); box-shadow: 0 2px 14px rgba(0,0,0,.15); }

.od-hint { margin-top: 20px; }
