/* =========================================================
   Künne Immobilien Gruppe – Komponenten (Suche, Exposé, Formulare, Funnel …)
   baut auf styles.css auf
   ========================================================= */

/* ---------- Basis / Barrierefreiheit ---------- */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 300; padding: 10px 14px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); font-weight: 600; transition: top .2s; }
.skip:focus { top: 12px; }
.ico { width: 18px; height: 18px; flex: none; }
.muted { color: var(--muted); }
.prose { font-size: 16px; line-height: 1.6; max-width: 68ch; }
.wrap { padding-inline: var(--gutter); max-width: 1440px; margin-inline: auto; }
.section { padding-block: clamp(70px, 9vw, 130px); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.sec-head p { max-width: 520px; color: var(--muted); font-size: 15px; line-height: 1.5; margin-top: 12px; }
.eyebrow { display: block; margin-bottom: 14px; color: var(--muted); }
.dark .eyebrow { color: var(--muted-dark); }
.btnrow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
[hidden] { display: none !important; }

/* Platzhalter sichtbar markieren (SITE.showPlaceholders) */
.show-ph .ph { background: rgba(255, 214, 0, .28); outline: 1px dashed #c8a400; outline-offset: 1px; border-radius: 3px; }
.show-ph .ph::after { content: " ⚑"; font-size: .8em; color: #a58700; }
.show-ph .dark .ph, .show-ph .footer .ph { background: rgba(255, 214, 0, .18); }
.lcard__demo { display: none; }
.show-ph .lcard__demo { display: block; position: absolute; top: 10px; right: 52px; font-size: 10px; padding: 2px 6px; font-weight: 600; color: var(--text); }

/* ---------- Logo ---------- */
.logo { color: #fff; }
.logo__word { display: inline-flex; flex-direction: column; line-height: .9; font-size: 19px; letter-spacing: -.01em; }
.logo__word small { font-size: 9px; font-weight: 500; letter-spacing: .12em; opacity: .8; margin-top: 3px; text-transform: uppercase; }
.preloader .logo__word small { display: none; }

/* ---------- Buttons ---------- */
.btn { cursor: pointer; text-align: left; }
.btn .ico { width: 16px; height: 16px; }
.btn--accent { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn--accent:hover { background: var(--accent-2); }
.btn--lg { height: 48px; padding: 0 18px; font-size: 15px; border-radius: 8px; }
.btn--block { width: 100%; justify-content: center; }
.btn--ghost:hover { background: rgba(0, 17, 68, .05); }
.dark .btn--ghost { border-color: var(--line-dark); color: #fff; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn.is-loading { position: relative; color: transparent !important; }
.btn.is-loading::after { content: ""; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--accent-ink); border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; font-weight: 500; background: #fff; transition: background .25s, border-color .25s; }
.chip:hover { border-color: var(--ink); }
.chip .ico { width: 15px; height: 15px; }
.chip.is-on { --heart-fill: #e0245e; color: #c01c50; border-color: currentColor; }
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 600; background: rgba(255,255,255,.92); color: var(--text); }
.badge--accent { background: var(--accent); color: var(--accent-ink); }

/* ---------- Header-Ergänzungen ---------- */
.nav-icon { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; background: rgba(0, 17, 68, .28); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transition: background .3s; }
.nav-icon:hover { background: rgba(255,255,255,.18); }
.nav-icon .ico { width: 16px; height: 16px; }
.nav-icon__badge { position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.nav-cta .ico { width: 15px; height: 15px; }
.nav-cta--ghost { gap: 6px; }
.dropdown { min-width: 240px; }
.dropdown a .arrow { width: 11px; opacity: .5; }
.mmenu { padding-top: 90px; }
.mmenu__item span[data-fav-count] { font-size: 13px; padding: 2px 8px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); }
.mmenu__foot a { color: #fff; }

/* ---------- Unterseiten-Kopf ---------- */
.subhero { position: relative; color: #fff; background: var(--ink); padding: 130px var(--gutter) clamp(40px, 6vw, 80px); overflow: hidden; }
.subhero .media { position: absolute; inset: 0; }
.subhero .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,17,68,.9), rgba(0,17,68,.55) 60%, rgba(0,17,68,.25)); }
.subhero__in { position: relative; z-index: 2; max-width: 860px; }
.subhero h1 { font-size: clamp(36px, 5vw, 76px); font-weight: 650; letter-spacing: -.045em; line-height: .98; margin: 6px 0 18px; }
.subhero p.lead { font-weight: 500; font-size: clamp(17px, 1.6vw, 22px); line-height: 1.35; color: rgba(255,255,255,.85); max-width: 640px; }
.subhero--tall { min-height: min(78vh, 720px); display: flex; align-items: flex-end; }
.subhero .crumbs { color: rgba(255,255,255,.65); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.crumbs a:hover { text-decoration: underline; }
.subhero__facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; font-size: 14px; color: rgba(255,255,255,.85); }
.subhero__facts b { color: var(--accent); font-size: 20px; margin-right: 4px; }

/* ---------- Hero-Schnellsuche (Startseite) ---------- */
/* Eine durchgehende Pille: Umschalter | Ort | Objektart | Button, getrennt durch feine Linien */
.qsearch { position: relative; z-index: 3; display: grid; grid-template-columns: auto 1fr 1fr auto; align-items: center; gap: 0; padding: 6px; border-radius: 999px; background: rgba(255,255,255,.97); color: var(--text); box-shadow: 0 20px 60px rgba(0,0,0,.25); max-width: 860px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.qsearch__mode { display: flex; height: 52px; padding: 4px; border-radius: 999px; background: var(--paper-2); }
.qsearch__mode label { position: relative; display: grid; place-items: center; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--muted); transition: background .25s, color .25s, box-shadow .25s; }
.qsearch__mode input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.qsearch__mode label:has(input:checked) { background: #fff; color: var(--text); box-shadow: 0 1px 4px rgba(0,17,68,.12); }
.qsearch__mode label:has(input:focus-visible) { outline: 2px solid var(--accent); }
.qsearch .field { position: relative; display: grid; gap: 1px; padding: 6px 20px 6px 22px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .02em; color: var(--text); cursor: pointer; transition: background .2s; }
.qsearch .field:hover { background: var(--paper); }
.qsearch .field + .field::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--line); }
.qsearch .field:hover::before, .qsearch .field:hover + .field::before { opacity: 0; }
.qsearch .field select.qsearch__sel, .qsearch .field select {
  appearance: none; -webkit-appearance: none; height: auto; min-height: 0; padding: 0 22px 0 0; border: 0; border-radius: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 3.5 5 6.5 8 3.5' fill='none' stroke='%235d6680' stroke-width='1.5'/%3E%3C/svg%3E") right center / 10px no-repeat;
  font-size: 15px; font-weight: 500; color: var(--muted); cursor: pointer; box-shadow: none;
}
.qsearch .field select:focus { box-shadow: none; outline: none; color: var(--text); }
.qsearch .field:focus-within { background: var(--paper); }
.qsearch .btn { height: 52px; border-radius: 999px; padding: 0 20px 0 24px; }
.hero__content { flex-direction: column; align-items: stretch; gap: 26px; }
.hero__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.hero__badge strong { font-size: 30px; letter-spacing: -.04em; }
.hero__badge .stars { color: var(--accent); }
.hero__badge .stars svg { width: 12px; height: 12px; }

/* ---------- Kennzahlen-Leiste ---------- */
.factbar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.factbar .stat { min-height: 170px; }
.factbar .stat b { font-size: clamp(40px, 4.4vw, 72px); }
.factbar .stat b small { font-size: .45em; letter-spacing: -.02em; }

/* ---------- Objektkarten ---------- */
.lgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 14px; }
.lcard { position: relative; display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 1px 0 var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.lcard:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0, 17, 68, .1); }
.lcard__media { aspect-ratio: 4 / 3; }
.lcard__media img { transition: transform 1.2s var(--ease); }
.lcard:hover .lcard__media img { transform: scale(1.05); }
.lcard__badges { position: absolute; z-index: 2; left: 10px; top: 10px; display: flex; gap: 5px; flex-wrap: wrap; }
.favbtn { position: absolute; z-index: 3; right: 10px; top: 10px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.92); color: var(--text); transition: transform .3s var(--ease), color .3s; }
.favbtn:hover { transform: scale(1.08); }
.favbtn.is-on { color: #e0245e; --heart-fill: #e0245e; }
.lcard__body { padding: 14px 16px 16px; display: grid; gap: 6px; }
.lcard__place { display: flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--muted); }
.lcard__place .ico { width: 14px; height: 14px; }
.lcard__title { font-size: 17px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.lcard__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.lcard__facts { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); }
.lcard__price { font-size: 20px; font-weight: 650; letter-spacing: -.03em; margin-top: 4px; }
.lcard__price small { font-size: 13px; font-weight: 500; color: var(--muted); }

/* ---------- Suche ---------- */
.search { display: grid; grid-template-columns: 300px 1fr; gap: 24px; padding: 30px var(--gutter) 100px; align-items: start; }
.search__side { position: sticky; top: 76px; display: grid; gap: 14px; }
.filters { display: grid; gap: 12px; padding: 16px; border-radius: 12px; background: #fff; box-shadow: 0 1px 0 var(--line); }
.filters__grid { display: grid; gap: 10px; }
.filters__head { display: flex; justify-content: space-between; align-items: center; }
.filters__head h2 { font-size: 15px; font-weight: 650; }
.linkbtn { font-size: 13px; text-decoration: underline; color: var(--muted); }
.search__promo { padding: 16px; border-radius: 12px; background: var(--ink); color: #fff; display: grid; gap: 10px; font-size: 14px; line-height: 1.4; }
.search__promo strong { font-size: 16px; }
.results__bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.results__count { font-size: 15px; font-weight: 600; }
.results__tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.seg { display: inline-flex; padding: 3px; border-radius: 8px; background: var(--paper-2); }
.seg button { height: 32px; padding: 0 12px; border-radius: 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
.seg button[aria-pressed="true"] { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.results__tools select { height: 38px; border-radius: 8px; border: 1px solid var(--line); background: #fff; padding: 0 10px; font: inherit; font-size: 13px; }
.results__map { display: none; height: min(70vh, 640px); border-radius: 12px; overflow: hidden; background: var(--paper-2); margin-bottom: 16px; }
.search.is-map .results__map { display: block; }
.filters-toggle { display: none; }
.empty { grid-column: 1 / -1; padding: 40px 28px; border-radius: 12px; background: #fff; text-align: left; }
.empty p { margin-top: 10px; color: var(--muted); max-width: 560px; line-height: 1.5; }

/* ---------- Formulare (hell; .form--dark für dunkle Flächen) ---------- */
.form { display: grid; gap: 12px; }
/* Standard ist hell (dunkle Schrift auf Weiß) – überall, auch in mehrstufigen Formularen */
.field { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.field small { font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; color: var(--text); background: #fff; border: 1px solid rgba(0,17,68,.2); border-radius: 8px; padding: 10px 12px; min-height: 44px; font-size: 15px;
}
.field input::placeholder, .field textarea::placeholder { color: #8a92a8; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(136,221,0,.35); }
.field select option { color: var(--text); }
.field select:disabled, .field input:disabled { opacity: .5; }
/* Dunkle Flächen: Kontakt-Drawer und .form--dark */
.drawer .field, .form--dark .field { color: rgba(255,255,255,.75); }
.drawer .field input, .drawer .field select, .drawer .field textarea,
.form--dark .field input, .form--dark .field select, .form--dark .field textarea { color: #fff; background: rgba(255,255,255,.06); border-color: var(--line-dark); }
.drawer .field select option, .form--dark .field select option { color: #000; }
.drawer .field input::placeholder, .drawer .field textarea::placeholder { color: rgba(255,255,255,.45); }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--ink); }
.check a { text-decoration: underline; }
.form--dark .check, .drawer .check { color: rgba(255,255,255,.75); }
.form--dark .check input, .drawer .check input { accent-color: var(--accent); }
.check--inline { align-items: center; font-size: 14px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.success { display: grid; gap: 12px; padding: 20px; border-radius: 12px; background: rgba(136,221,0,.14); outline: none; }
.success > .ico { width: 34px; height: 34px; padding: 6px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); }
.drawer .success .lead { color: #fff; }

/* Auswahl-Kacheln */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 8px; border: 0; padding: 0; margin: 0; }
.tile { position: relative; display: grid; gap: 8px; align-content: start; padding: 16px; border-radius: 10px; border: 1.5px solid rgba(0,17,68,.15); background: #fff; cursor: pointer; font-size: 15px; font-weight: 600; transition: border-color .2s, background .2s, transform .2s; }
.tile:hover { border-color: var(--ink); }
.tile input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.tile:has(input:checked) { border-color: var(--ink); background: rgba(136,221,0,.18); }
.tile:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.tile small { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.tile .ico { width: 28px; height: 28px; color: var(--ink); }

/* Schritte */
.steps { max-width: 760px; }
.steps__top { display: grid; gap: 8px; margin-bottom: 22px; }
.steps__bar { height: 6px; border-radius: 3px; background: var(--paper-2); overflow: hidden; }
.steps__bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .5s var(--ease); }
.steps__label { font-size: 13px; color: var(--muted); font-weight: 500; }
.step { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; min-width: 0; }
.step legend { font-size: clamp(24px, 2.6vw, 36px); font-weight: 650; letter-spacing: -.035em; line-height: 1.08; margin-bottom: 6px; padding: 0; }
.step .hint { color: var(--muted); font-size: 14px; margin-top: -6px; }
.stepnav { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; }
.stepnav .btn--lg { min-width: 140px; justify-content: center; }
.panel { padding: clamp(18px, 3vw, 36px); border-radius: 16px; background: #fff; box-shadow: 0 1px 0 var(--line), 0 30px 60px rgba(0,17,68,.06); }

/* Upload */
.upload { display: grid; gap: 6px; }
.upload__drop { position: relative; display: flex; align-items: center; gap: 12px; padding: 16px; border: 1.5px dashed rgba(0,17,68,.3); border-radius: 10px; background: var(--paper); cursor: pointer; font-size: 14px; transition: border-color .2s, background .2s; }
.upload__drop:hover, .upload__drop:focus-within { border-color: var(--ink); background: #fff; }
.upload__drop span { display: grid; gap: 2px; }
.upload__drop small { color: var(--muted); font-size: 12px; }
.upload__drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload__drop .ico { width: 24px; height: 24px; color: var(--ink); }
.upload__list { display: grid; gap: 4px; font-size: 13px; }
.upload__list li::before { content: "✓ "; color: var(--accent-2); font-weight: 700; }
.upload__list li.is-err { color: var(--danger); }
.upload__list li.is-err::before { content: "✕ "; color: var(--danger); }
.upload__list small { color: var(--muted); }

/* Callout */
.callout { display: flex; gap: 14px; padding: 18px; border-radius: 12px; background: rgba(136,221,0,.14); align-items: flex-start; }
.callout > .ico { width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); flex: none; }
.callout p { margin: 6px 0 12px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.callout--alert { background: #fff1ec; }
.callout--alert > .ico { background: var(--danger); color: #fff; }
.callout--dark { background: var(--ink); color: #fff; }
.callout--dark p { color: rgba(255,255,255,.75); }

/* ---------- Modal / Toast / Consent / Gate / Lightbox ---------- */
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; visibility: hidden; pointer-events: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,10,40,.5); opacity: 0; transition: opacity .35s; }
.modal__panel { position: relative; width: min(560px, 100%); max-height: calc(100dvh - 32px); overflow: auto; padding: 28px 24px 24px; border-radius: 16px; background: #fff; transform: translateY(20px); opacity: 0; transition: transform .45s var(--ease), opacity .3s; }
.modal__body { display: grid; gap: 12px; }
.modal__close { position: absolute; top: 14px; right: 14px; background: var(--paper-2); color: var(--text); }
.modal.is-open { visibility: visible; pointer-events: auto; }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal.is-open .modal__panel { transform: none; opacity: 1; }
.toast { position: fixed; z-index: 130; left: 50%; bottom: 90px; transform: translate(-50%, 20px); padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.consent { position: fixed; z-index: 140; right: 16px; bottom: 16px; width: min(460px, calc(100% - 32px)); padding: 20px; border-radius: 14px; background: #fff; color: var(--text); box-shadow: 0 30px 80px rgba(0,17,68,.3); display: grid; gap: 12px; font-size: 13.5px; line-height: 1.5; }
.consent__title { font-size: 17px; font-weight: 650; }
.consent__opts { display: grid; gap: 8px; }
.consent__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.consent__btns .btn { justify-content: center; height: 42px; }
.consent__btns .btn--dark { grid-column: 1 / -1; }
.gate { display: grid; place-items: center; background: var(--paper-2); border-radius: 12px; min-height: 260px; padding: 20px; }
.gate__inner { max-width: 420px; text-align: center; display: grid; gap: 12px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.gate__inner strong { color: var(--text); }
.gate__btns { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.lightbox { position: fixed; inset: 0; z-index: 160; display: grid; grid-template-columns: 60px 1fr 60px; align-items: center; background: rgba(0,8,30,.95); color: #fff; }
.lightbox figure { margin: 0; display: grid; gap: 10px; justify-items: center; }
.lightbox img { max-width: 100%; max-height: 82vh; object-fit: contain; border-radius: 6px; background: #fff; }
.lightbox figcaption { font-size: 13px; color: rgba(255,255,255,.7); }
.lightbox__nav { font-size: 40px; color: #fff; height: 80px; }
.lightbox__close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.12); display: grid; place-items: center; }

/* ---------- Exposé ---------- */
.xpage { padding: 96px var(--gutter) 0; max-width: 1440px; margin-inline: auto; }
.xtop { background: var(--ink); height: 84px; position: absolute; inset: 0 0 auto; z-index: 0; }
.gallery { position: relative; display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(150px, 22vw)); gap: 6px; border-radius: 14px; overflow: hidden; max-height: 620px; }
.gallery__item { position: relative; cursor: zoom-in; }
.gallery__item:first-child { grid-row: 1 / 3; }
.gallery__item img { transition: transform 1s var(--ease); }
.gallery__item:hover img { transform: scale(1.04); }
.gallery--4 .gallery__item:nth-child(4) { grid-column: 2 / 4; }
.gallery--3, .gallery--2 { grid-template-columns: 2fr 1fr; }
.gallery--2 .gallery__item:nth-child(2) { grid-row: 1 / 3; }
.gallery--1 { grid-template-columns: 1fr; }
.gallery__tools { position: absolute; z-index: 2; right: 12px; bottom: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.expose { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; padding-top: 26px; align-items: start; }
.expose__head { display: grid; gap: 10px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.expose__facts { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 16px; font-weight: 500; }
.expose__mprice { display: none; }
.expose__share { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.xsec { padding: 34px 0; border-bottom: 1px solid var(--line); display: grid; gap: 16px; scroll-margin-top: 90px; }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 0 30px; margin: 0; }
.kv > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; text-align: right; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }
.kpi { padding: 16px; border-radius: 10px; background: var(--ink); color: #fff; display: grid; gap: 8px; }
.kpi span { font-size: 12.5px; color: var(--muted-dark); }
.kpi b { font-size: 24px; letter-spacing: -.03em; color: var(--accent); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: #fff; font-size: 13.5px; box-shadow: 0 1px 0 var(--line); }
.tags .ico { width: 14px; height: 14px; color: var(--accent-2); }
.floorplan { display: block; width: 100%; max-width: 640px; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 1px 0 var(--line); cursor: zoom-in; }
.floorplan svg { display: block; width: 100%; height: auto; }
.embed { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; }
.embed.gate { aspect-ratio: auto; }
.embed__ph { height: 100%; min-height: 220px; display: grid; place-items: center; text-align: center; gap: 10px; padding: 20px; background: var(--ink); color: rgba(255,255,255,.8); font-size: 14px; line-height: 1.5; border-radius: 12px; }
.embed__ph svg { width: 44px; height: 44px; padding: 12px; border-radius: 50%; background: rgba(255,255,255,.12); }
.energy__scale { display: grid; grid-template-columns: repeat(9, 1fr); gap: 3px; }
.energy__scale span { height: 34px; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; border-radius: 4px; opacity: .45; }
.energy__scale span.is-on { opacity: 1; transform: scaleY(1.25); box-shadow: 0 0 0 2px var(--ink); }
.energy__scale [data-c="A+"] { background: #1e9b3a; } .energy__scale [data-c="A"] { background: #3fae2a; } .energy__scale [data-c="B"] { background: #7dbb22; }
.energy__scale [data-c="C"] { background: #bcd01c; color: #222; } .energy__scale [data-c="D"] { background: #f3e21a; color: #222; } .energy__scale [data-c="E"] { background: #f4b81a; color: #222; }
.energy__scale [data-c="F"] { background: #ee7e1d; } .energy__scale [data-c="G"] { background: #e2471f; } .energy__scale [data-c="H"] { background: #c4161c; }
.mapbox { height: 360px; border-radius: 12px; overflow: hidden; background: var(--paper-2); }
.expose__aside { position: sticky; top: 84px; }
.xcard { display: grid; gap: 12px; padding: 20px; border-radius: 14px; background: #fff; box-shadow: 0 1px 0 var(--line), 0 24px 50px rgba(0,17,68,.08); }
.xcard__price { font-size: 32px; font-weight: 700; letter-spacing: -.04em; }
.xcard__price small { font-size: 15px; color: var(--muted); font-weight: 500; }
.xcard__person { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-block: 1px solid var(--line); }
.xcard__person > div:last-child { display: grid; gap: 2px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--paper-2); display: grid; place-items: center; color: var(--muted); }
.xcard__row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.xcard__row .btn { justify-content: center; padding: 0 10px; }
.xsimilar { padding: 70px 0 110px; display: grid; gap: 24px; }

/* ---------- Rechner ---------- */
.calc { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 12px; }
.calc__box { display: grid; gap: 10px; align-content: start; padding: 20px; border-radius: 12px; background: #fff; box-shadow: 0 1px 0 var(--line); }
.calc__out { margin: 6px 0 0; display: grid; }
.calc__out > div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.calc__out dt small { color: var(--muted); margin-left: 4px; }
.calc__out dd { margin: 0; font-weight: 600; }
.calc__out .is-total { font-weight: 700; border-bottom: 0; }
.calc__out .is-big dd { font-size: 26px; letter-spacing: -.03em; color: var(--ink); }
.calc__out .is-big { align-items: baseline; padding: 14px 0; }

/* ---------- Terminbuchung ---------- */
.booking { display: grid; gap: 14px; }
.booking__days { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.booking__days button { flex: 0 0 74px; display: grid; justify-items: center; gap: 2px; padding: 10px 6px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font-size: 12px; color: var(--muted); }
.booking__days button b { font-size: 20px; color: var(--text); letter-spacing: -.03em; }
.booking__days button[aria-selected="true"] { border-color: var(--ink); background: var(--ink); color: rgba(255,255,255,.8); }
.booking__days button[aria-selected="true"] b { color: #fff; }
.booking__slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; }
.booking__slots button { display: grid; gap: 2px; justify-items: start; padding: 12px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font-size: 16px; font-weight: 600; text-align: left; }
.booking__slots button small { font-size: 11.5px; font-weight: 500; color: var(--muted); }
.booking__slots button:hover:not([disabled]) { border-color: var(--ink); }
.booking__slots button[aria-checked="true"] { border-color: var(--ink); background: rgba(136,221,0,.2); }
.booking__slots button[disabled] { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.booking__chosen { display: flex; gap: 8px; align-items: center; font-size: 15px; }

/* ---------- Verkaufen: Ablauf-Timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; counter-reset: t; }
.timeline li { counter-increment: t; position: relative; padding: 22px 18px 20px; border-radius: 12px; background: rgba(255,255,255,.06); display: grid; gap: 8px; align-content: start; }
.timeline li::before { content: "0" counter(t); font: 500 11px var(--mono); color: var(--accent); }
.timeline li::after { content: ""; position: absolute; top: 30px; right: -10px; width: 10px; height: 2px; background: var(--accent); }
.timeline li:last-child::after { display: none; }
.timeline h3 { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.timeline p { font-size: 14px; line-height: 1.45; color: var(--muted-dark); }
.timeline .dur { font-size: 12px; color: #fff; opacity: .7; }
.timeline-total { display: flex; align-items: center; gap: 14px; margin-top: 22px; font-size: 15px; color: var(--muted-dark); }
.timeline-total b { font-size: 34px; color: #fff; letter-spacing: -.04em; }
.light .timeline li { background: #fff; box-shadow: 0 1px 0 var(--line); }
.light .timeline p { color: var(--muted); }

/* Referenzen */
.refs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.ref { margin: 0; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 1px 0 var(--line); }
.ref .media { aspect-ratio: 4 / 3; }
.ref figcaption { display: grid; gap: 6px; padding: 14px 16px 18px; }
.ref figcaption .mono { color: var(--muted); }
.ref blockquote { margin: 4px 0 0; font-size: 14px; line-height: 1.45; color: var(--muted); }

/* FAQ */
.faq { display: grid; gap: 6px; max-width: 860px; }
.faq details { border-radius: 10px; background: #fff; box-shadow: 0 1px 0 var(--line); }
.faq summary { cursor: pointer; padding: 16px 18px; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::after { content: "+"; font-size: 20px; line-height: 1; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 18px 18px; color: var(--muted); line-height: 1.55; font-size: 15px; }

/* ---------- Inhaltsblöcke (Service-Seiten) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 70px); align-items: center; }
.split .media { aspect-ratio: 4 / 3.2; border-radius: 14px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 10px; }
.icard { padding: 20px; border-radius: 12px; background: #fff; box-shadow: 0 1px 0 var(--line); display: grid; gap: 8px; align-content: start; }
.icard h3 { font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.icard p, .icard li { font-size: 14px; color: var(--muted); line-height: 1.5; }
.icard ul { display: grid; gap: 4px; }
.icard li::before { content: "– "; }
.dark .icard { background: rgba(255,255,255,.06); box-shadow: none; }
.dark .icard p, .dark .icard li { color: var(--muted-dark); }
.checklist { display: grid; gap: 8px; }
.checklist li { display: flex; gap: 10px; font-size: 15px; line-height: 1.45; }
.checklist li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5 8.5 14 15 6.5' fill='none' stroke='%23001144' stroke-width='2.2'/%3E%3C/svg%3E") center / 14px no-repeat; }
.notruf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; border-radius: 12px; background: var(--danger); color: #fff; }
.notruf strong { font-size: 18px; }
.notruf p { font-size: 13.5px; opacity: .9; margin-top: 4px; }
.notruf .btn { background: #fff; color: var(--danger); font-weight: 700; }
.layout2 { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
.layout2 > aside { position: sticky; top: 90px; display: grid; gap: 12px; }

/* Projektentwicklung */
.ptl { display: grid; gap: 0; }
.ptl li { position: relative; display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 0 0 22px 22px; border-left: 2px solid var(--line); }
.ptl li::before { content: ""; position: absolute; left: -7px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); }
.ptl li.is-done::before { background: var(--accent); border-color: var(--accent); }
.ptl li.is-now::before { background: var(--ink); box-shadow: 0 0 0 5px rgba(136,221,0,.4); }
.ptl time { font: 500 12px var(--mono); color: var(--muted); padding-top: 2px; }
.ptl b { display: block; font-size: 16px; }
.ptl p { color: var(--muted); font-size: 14px; margin-top: 2px; }
.units { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; border-radius: 12px; overflow: hidden; }
.units th, .units td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.units th { font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--paper); }
.amp { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.amp::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.amp--frei { color: #2c8a19; } .amp--res { color: #c98a00; } .amp--verk { color: #c4361b; }
.downloads { display: grid; gap: 6px; }
.downloads a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 10px; background: #fff; box-shadow: 0 1px 0 var(--line); font-weight: 500; }
.downloads a small { color: var(--muted); font-weight: 400; }

/* Karriere */
.jobs { display: grid; gap: 14px; }
.jobs__filter { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; padding: 14px; border-radius: 12px; background: #fff; box-shadow: 0 1px 0 var(--line); }
.joblist { display: grid; gap: 8px; }
.job { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 20px; border-radius: 12px; background: #fff; box-shadow: 0 1px 0 var(--line); transition: box-shadow .3s; }
.job:hover { box-shadow: 0 1px 0 var(--line), 0 16px 34px rgba(0,17,68,.08); }
.job__t { font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.job__m { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.job__m .ico { width: 14px; height: 14px; }
.job__tags { display: flex; gap: 4px; margin-top: 10px; flex-wrap: wrap; }
.job__tags .badge { background: var(--paper-2); }
.job__a { display: flex; gap: 6px; flex-wrap: wrap; }

/* Bewertungs-Funnel */
.valuation { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.valuation__result { outline: none; display: grid; gap: 14px; }
.valuation__range { font-size: clamp(34px, 5vw, 64px); font-weight: 700; letter-spacing: -.045em; line-height: 1; color: var(--ink); }
.trust { display: grid; gap: 12px; }
.trust .icard b { font-size: 30px; letter-spacing: -.04em; }

/* ---------- Drawer-Ergänzungen ---------- */
.drawer__row dd { margin: 0; }
.drawer__quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 20px; }
.qbtn { display: grid; justify-items: center; gap: 6px; padding: 14px 6px; border-radius: 10px; background: rgba(255,255,255,.08); font-size: 13px; font-weight: 500; text-align: center; }
.qbtn:hover { background: rgba(255,255,255,.16); }
.qbtn .ico { width: 22px; height: 22px; color: var(--accent); }
.qbtn em { font-style: normal; font-size: 11px; }
.drawer .form { display: grid; margin-top: 24px; opacity: 1; transform: none; }
.drawer .btn { opacity: 1; transform: none; }

/* ---------- Mobile Aktionsleiste ---------- */
.actionbar { display: none; }
@media (max-width: 900px) {
  .actionbar { position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 -1px 0 var(--line), 0 -10px 30px rgba(0,17,68,.08); }
  .actionbar > * { display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border-radius: 10px; background: var(--paper-2); color: var(--text); font-size: 15px; font-weight: 600; }
  .actionbar .is-primary { background: var(--accent); color: var(--accent-ink); }
  .actionbar .ico { width: 20px; height: 20px; }
  body.menu-open .actionbar { display: none; }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .hero { height: calc(100svh - 66px - env(safe-area-inset-bottom)); min-height: 620px; }
  .secnav { display: none; }
  .consent { bottom: calc(76px + env(safe-area-inset-bottom)); right: 8px; left: auto; width: calc(100% - 16px); }
  .toast { bottom: 96px; }
}

/* ---------- Karte (Leaflet) ---------- */
.mpin { background: none; border: 0; }
.mpin span { display: inline-block; transform: translateX(0); white-space: nowrap; padding: 5px 9px; border-radius: 999px; background: var(--ink); color: #fff; font: 600 12px var(--font); box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.mpin span:empty { width: 16px; height: 16px; padding: 0; background: var(--accent); border: 3px solid var(--ink); }
.mpop { display: grid; gap: 4px; width: 200px; color: var(--text) !important; font-family: var(--font); }
.mpop img { width: 100%; height: 110px; object-fit: cover; border-radius: 6px; }
.mpop span { color: var(--muted); font-size: 12px; }

/* ---------- Footer ---------- */
.footer__top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 50px; margin-bottom: 50px; border-bottom: 1px solid var(--line-dark); }
.footer__contact { display: grid; gap: 6px; font-size: 14px; color: var(--muted-dark); justify-items: start; }
.footer__contact a:hover { color: var(--accent); }
.footer__big { font-size: clamp(28px, 3.4vw, 48px); font-weight: 650; letter-spacing: -.04em; color: #fff; margin-bottom: 6px; }
.footer__social { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 18px; font-size: 13px; color: var(--muted-dark); }
.footer__social a:hover { color: var(--accent); }
.footer__grid { grid-template-columns: repeat(6, 1fr); margin-bottom: 60px; }
.footer__h { margin: 0 0 14px; font: 500 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-dark); }
.footer li { font-size: 13.5px; }
.footer__bottom button { font-size: 12px; color: inherit; }
.footer__bottom button:hover, .footer__bottom a:hover { color: #fff; }

/* Startseite: Regionen & Bewertungs-Teaser */
.regions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.region { padding: 20px; border-radius: 12px; background: #fff; box-shadow: 0 1px 0 var(--line); display: grid; gap: 10px; align-content: start; }
.region h3 { font-size: 22px; font-weight: 650; letter-spacing: -.03em; }
.region ul { display: flex; flex-wrap: wrap; gap: 4px; }
.region a.tag { display: inline-block; padding: 5px 10px; border-radius: 999px; background: var(--paper); font-size: 13px; }
.region a.tag:hover { background: var(--accent); }
.valteaser { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 4vw, 60px); align-items: center; padding: clamp(24px, 4vw, 56px); border-radius: 18px; background: var(--ink); color: #fff; }
.valteaser .tiles .tile { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: #fff; }
.valteaser .tiles .tile:hover, .valteaser .tiles .tile:has(input:checked) { border-color: var(--accent); background: rgba(136,221,0,.14); }
.valteaser .tile .ico { color: var(--accent); }
.valteaser .tile small { color: var(--muted-dark); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .footer__grid { grid-template-columns: repeat(3, 1fr); }
  .expose { grid-template-columns: minmax(0, 1fr) 320px; gap: 26px; }
}
@media (max-width: 900px) {
  .qsearch { grid-template-columns: 1fr 1fr; gap: 4px; border-radius: 28px; padding: 6px; }
  .qsearch__mode { grid-column: 1 / -1; height: 46px; }
  .qsearch__mode label { flex: 1; }
  .qsearch .field { padding: 8px 16px; border-radius: 20px; background: var(--paper); }
  .qsearch .field + .field::before { display: none; }
  .qsearch .btn { grid-column: 1 / -1; justify-content: center; height: 50px; }
  .hero__row { flex-direction: column; align-items: flex-start; }
  .factbar { grid-template-columns: 1fr 1fr; }
  .search { grid-template-columns: 1fr; padding-top: 18px; }
  .search__side { position: static; }
  .filters { display: none; }
  .search.filters-open .filters { display: grid; }
  .filters-toggle { display: inline-flex; }
  .search__promo { display: none; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 56vw 26vw; }
  .gallery__item:first-child { grid-column: 1 / -1; grid-row: auto; }
  .gallery__item:nth-child(n+4) { display: none; }
  .xpage { padding-top: 84px; }
  .expose { grid-template-columns: 1fr; }
  .expose__aside { position: static; }
  .expose__mprice { display: block; }
  .timeline { grid-template-columns: 1fr; }
  .timeline li::after { display: none; }
  .split, .layout2, .valuation, .valteaser { grid-template-columns: minmax(0, 1fr); }
  .layout2 > aside { position: static; }
  .regions { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .units { font-size: 13px; }
  .units th:nth-child(4), .units td:nth-child(4) { display: none; }
}
@media (max-width: 560px) {
  .regions, .factbar { grid-template-columns: 1fr; }
  .lightbox { grid-template-columns: 40px 1fr 40px; }
  .ptl li { grid-template-columns: 1fr; gap: 2px; }
  .stepnav .btn--lg { min-width: 0; flex: 1; }
}

/* ---------- Druck = PDF-Exposé ---------- */
@media print {
  .header, .actionbar, .consent, .footer, .gallery__tools, .expose__share, .xcard .btn, .xcard__row, #termin, #anfrage, #rechner, .xsimilar, .mapbox, .embed, .pt, .dropdown, .toast, .crumbs { display: none !important; }
  body { background: #fff; padding: 0; }
  .xpage { padding: 0; }
  .expose { grid-template-columns: 1fr; }
  .expose__aside { position: static; order: -1; }
  .gallery { grid-template-rows: 220px 220px; }
  .xsec { break-inside: avoid; }
  .show-ph .ph { background: none; outline: none; }
  .show-ph .ph::after { content: ""; }
}

/* =========================================================
   Verfeinerung (Runde 2)
   ========================================================= */
/* Unterseiten-Kopf ohne Foto: Markentextur statt flacher Fläche */
.subhero:not(:has(> .media)) { background:
  radial-gradient(60% 120% at 100% 0%, rgba(136,221,0,.16), transparent 60%),
  radial-gradient(50% 90% at 85% 120%, rgba(60,110,255,.18), transparent 70%),
  var(--ink); }
.subhero:not(:has(> .media))::after {
  content: ""; position: absolute; right: -40px; bottom: -150px; width: 520px; height: 520px; pointer-events: none; opacity: .07;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M9 24.5V12.2l7-4.2 7 4.2v12.3M13.2 24.5v-6h5.6v6' fill='none' stroke='%23fff' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.typechips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 26px; }
.typechips a { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); transition: background .25s, border-color .25s, color .25s; }
.typechips a:hover { background: rgba(255,255,255,.16); }
.typechips a[aria-current="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }

/* Filterpanel kompakter */
.filters { padding: 18px; gap: 14px; }
.filters__head { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.filters__count { font-size: 13px; color: var(--muted); }
.filters__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.filters__sep { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
.filters .field input, .filters .field select { min-height: 40px; padding: 8px 10px; font-size: 14px; }

/* Demo-Markierung stört die Badges nicht mehr */
.show-ph .lcard__demo { top: auto; right: auto; left: 10px; bottom: 10px; z-index: 2; }

/* Objektkarten etwas wertiger */
.lcard { border: 1px solid rgba(0,17,68,.06); box-shadow: none; }
.lcard__body { padding: 16px 18px 18px; }
.lcard__price { padding-top: 10px; margin-top: 6px; border-top: 1px solid var(--line); display: flex; align-items: baseline; justify-content: space-between; }
.lcard__price::after { content: "Exposé →"; font-size: 12.5px; font-weight: 600; letter-spacing: 0; color: var(--ink); opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .4s var(--ease); }
.lcard:hover .lcard__price::after { opacity: 1; transform: none; }
.lgrid--3 { grid-template-columns: repeat(3, 1fr); }

/* Startseite: Intro links, Bewertungs-Kacheln, Regionen */
.intro__aside { grid-column: 1; grid-row: 1; align-self: start; display: grid; gap: 4px; justify-items: start; }
.valteaser .tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
.valteaser .tile { min-height: 112px; padding: 18px; align-content: space-between; font-size: 17px; position: relative; }
.valteaser .tile::after { content: "→"; position: absolute; right: 16px; bottom: 14px; color: var(--accent); opacity: .5; transition: opacity .25s, transform .3s var(--ease); }
.valteaser .tile:hover::after { opacity: 1; transform: translateX(3px); }
.region { transition: box-shadow .4s var(--ease), transform .4s var(--ease); }
.region:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(0,17,68,.08); }
.region__count { display: flex; gap: 14px; font-size: 13px; color: var(--muted); }
.region__count b { color: var(--text); font-size: 15px; margin-right: 3px; }

/* Timeline ruhiger: Fortschrittslinie oben statt Strich zwischen den Karten */
.timeline li::after { display: none; }
.timeline li { border-top: 2px solid rgba(136,221,0,.35); border-radius: 0 0 12px 12px; }
.timeline li:first-child { border-top-color: var(--accent); }

/* Freistehende Formulare zentrieren */
.section > form.panel.steps, .section > form.panel.form { margin-inline: auto; }

@media (max-width: 1180px) { .lgrid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  .subhero:not(:has(> .media))::after { width: 300px; height: 300px; bottom: -100px; right: -60px; }
  .typechips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .typechips a { flex: none; }
  .intro__aside { grid-row: auto; margin-bottom: 10px; }
}
@media (max-width: 640px) { .lgrid--3 { grid-template-columns: 1fr; } }

/* =========================================================
   Verfeinerung (Runde 3) – Exposé
   ========================================================= */
.xfacts { display: flex; flex-wrap: wrap; gap: 0; margin: 8px 0 4px; }
.xfacts > div { padding: 4px 22px 4px 0; margin-right: 22px; border-right: 1px solid var(--line); }
.xfacts > div:last-child { border-right: 0; }
.xfacts dt { font-size: 12px; color: var(--muted); }
.xfacts dd { margin: 2px 0 0; font-size: 22px; font-weight: 650; letter-spacing: -.03em; }
.kpis { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.xsec > .panel { padding: 20px; }
.xsec .form.panel { gap: 12px; }
.calc .field-row { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.calc .field .ph { font-size: 10px; margin-left: 4px; }
.xcard { border: 1px solid rgba(0,17,68,.06); }
.xcard__price { line-height: 1; }
@media (max-width: 560px) {
  .xfacts > div { padding-right: 14px; margin-right: 14px; }
  .xfacts dd { font-size: 18px; }
}
/* Verkaufen: heller Bewertungs-Einstieg, damit nicht zwei Navy-Blöcke aufeinander folgen */
.valteaser--light { background: #fff; color: var(--text); border: 1px solid rgba(0,17,68,.06); box-shadow: 0 30px 60px rgba(0,17,68,.06); }
.valteaser--light .eyebrow, .valteaser--light legend, .valteaser--light p { color: var(--muted) !important; }
.valteaser--light .tiles .tile { background: var(--paper); border-color: transparent; color: var(--text); }
.valteaser--light .tiles .tile:hover { border-color: var(--ink); background: #fff; }
.valteaser--light .tile .ico { color: var(--ink); }
.valteaser--light .tile::after { color: var(--ink); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .cards--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cards--3 { grid-template-columns: 1fr; } }
.faqwrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 70px); align-items: start; }
@media (max-width: 900px) { .faqwrap { grid-template-columns: minmax(0, 1fr); } }
/* Bewertungs-Funnel: Panel ragt in den Kopf, volle Spaltenbreite, größere Kacheln */
.valuation { position: relative; z-index: 3; margin-top: -110px; }
.valuation .steps { max-width: none; }
.valuation .tiles { grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 10px; }
.valuation .tile { min-height: 130px; align-content: space-between; padding: 18px; font-size: 16px; }
.valuation .tile .ico { width: 32px; height: 32px; }
.valuation .trust { margin-top: 110px; }
body:has(.valuation) .subhero { padding-bottom: 150px; }
@media (max-width: 900px) {
  .valuation { margin-top: -70px; }
  .valuation .trust { margin-top: 0; }
  body:has(.valuation) .subhero { padding-bottom: 100px; }
  .valuation .tiles { grid-template-columns: 1fr 1fr; }
  .valuation .tile { min-height: 104px; }
}
/* Zeitleiste auf dunklen Flächen */
.valteaser:not(.valteaser--light) .ptl li, .dark .ptl li { border-left-color: rgba(255,255,255,.2); }
.valteaser:not(.valteaser--light) .ptl li::before, .dark .ptl li::before { background: var(--ink); border-color: rgba(255,255,255,.7); }
.valteaser:not(.valteaser--light) .ptl li.is-done::before, .dark .ptl li.is-done::before { background: var(--accent); border-color: var(--accent); }
.valteaser:not(.valteaser--light) .ptl time, .dark .ptl time { color: var(--muted-dark); }
.valteaser .ptl + .btn { margin-top: 18px; }
.job__t { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.layout2 aside .factbar .stat { min-height: 130px; padding: 16px; }
.layout2 aside .factbar .stat b { font-size: clamp(32px, 3vw, 46px); white-space: nowrap; }
a.icard { transition: box-shadow .35s var(--ease), transform .35s var(--ease); }
a.icard:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(0,17,68,.08); }

/* Objektstatus öffentlich: reserviert / verkauft / vermietet */
.badge--res { background: #ffd34d; color: #3a2a00; }
.lcard__sold { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-6deg); padding: 8px 18px; border: 2px solid #fff; border-radius: 8px; background: rgba(0,17,68,.82); color: #fff; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 15px; }
.lcard--closed .lcard__media img { filter: grayscale(.6) brightness(.85); }
.lcard--closed .favbtn { display: none; }
.soldbanner { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 12px 14px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; }
.soldbanner .ico { color: var(--accent); }
.soldbanner a { color: var(--accent); text-decoration: underline; }
.soldbanner--res { background: #fff4cc; color: #3a2a00; }

/* Phase 2: Stadtteile & Ratgeber */
.typechips--light a { color: var(--text); background: #fff; border-color: rgba(0,17,68,.12); }
.typechips--light a:hover { background: var(--paper-2); }
.typechips--light { margin-top: 12px; }
@media (max-width: 900px) { .typechips--light { margin-inline: 0; padding-inline: 0; flex-wrap: wrap; overflow: visible; } }
.prose-article { max-width: 72ch; font-size: 17px; line-height: 1.65; display: grid; gap: 16px; }
.prose-article h2 { font-size: 26px; font-weight: 650; letter-spacing: -.03em; margin-top: 18px; }
.prose-article .lead { font-weight: 500; }
/* Mobile Suchwerkzeuge */
@media (max-width: 900px) {
  .results__bar { display: grid; gap: 10px; }
  .results__tools { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
  .results__tools > label:has(select) { grid-column: 1; }
  .results__tools select { width: 100%; }
  .results__tools .seg { grid-column: 2; grid-row: 2; }
  .results__tools .check--inline { grid-column: 1; grid-row: 2; }
  .results__tools .linkbtn { grid-column: 2; grid-row: 1; }
  .filters-toggle { width: 100%; justify-content: space-between; }
}

/* =========================================================
   Eigene Auswahlfelder (js/select.js) – ersetzen das System-Menü überall
   ========================================================= */
.cs { position: relative; display: block; width: 100%; }
.cs > select { display: none !important; }
.cs-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
  min-height: 44px; padding: 10px 12px; text-align: left; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 400; color: var(--text);
  background: #fff; border: 1px solid rgba(0,17,68,.2); border-radius: 8px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.cs-btn:hover { border-color: rgba(0,17,68,.4); }
.cs-btn:focus-visible, .cs.is-open .cs-btn { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(136,221,0,.35); }
.cs-btn.is-placeholder .cs-val { color: var(--muted); }
.cs-val { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-chev { width: 10px; height: 10px; flex: none; color: var(--muted); transition: transform .35s var(--ease); }
.cs.is-open .cs-chev { transform: rotate(180deg); }
.cs.is-disabled .cs-btn { opacity: .5; cursor: not-allowed; }
.cs.is-invalid .cs-btn { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(196,54,27,.15); }
.cs-err { display: block; margin-top: 5px; font-size: 12.5px; color: var(--danger); font-weight: 500; }

/* Liste (hängt an <body>, fest positioniert) */
.cs-list {
  position: fixed; z-index: 400; margin: 0; padding: 6px; list-style: none;
  max-height: 320px; overflow-y: auto; border-radius: 20px;
  background: rgba(255,255,255,.98); border: 1px solid rgba(0,17,68,.07);
  box-shadow: 0 24px 60px rgba(0,10,40,.26), 0 2px 6px rgba(0,10,40,.08);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  font-family: var(--font); color: var(--text);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.97); transform-origin: top left;
  transition: opacity .18s, transform .35s cubic-bezier(.34,1.56,.64,1), visibility 0s .35s;
  scrollbar-width: thin; outline: none;
}
.cs-list.is-up { transform: translateY(6px) scale(.97); transform-origin: bottom left; }
.cs-list.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .35s cubic-bezier(.34,1.56,.64,1), visibility 0s; }
.cs-list li { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 16px 0 10px; border-radius: 999px; font-size: 15px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background .15s; }
.cs-list li .cs-ico { width: 20px; height: 20px; flex: none; padding: 3px; border-radius: 50%; color: transparent; transition: background .2s, color .2s; }
.cs-list li.is-active { background: var(--paper); }
.cs-list li[aria-selected="true"] { font-weight: 600; }
.cs-list li[aria-selected="true"] .cs-ico { background: var(--accent); color: var(--accent-ink); }
.cs-list li[aria-disabled="true"] { opacity: .4; cursor: not-allowed; }
.cs-list.is-open li { animation: csin .32s var(--ease) both; }
.cs-list.is-open li:nth-child(2) { animation-delay: .02s; } .cs-list.is-open li:nth-child(3) { animation-delay: .04s; }
.cs-list.is-open li:nth-child(4) { animation-delay: .06s; } .cs-list.is-open li:nth-child(5) { animation-delay: .08s; }
.cs-list.is-open li:nth-child(n+6) { animation-delay: .1s; }
@keyframes csin { from { opacity: 0; transform: translateY(-4px); } }

/* Dunkle Variante (Kontakt-Drawer, intern) */
.cs-list--dark { background: rgba(18,23,38,.92); border-color: rgba(255,255,255,.1); color: #f3f5f9; box-shadow: 0 30px 70px rgba(0,4,20,.5), inset 0 1px 0 rgba(255,255,255,.07); -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5); }
.cs-list--dark li.is-active { background: rgba(255,255,255,.09); }
.drawer .cs-btn, .form--dark .cs-btn { color: #fff; background: rgba(255,255,255,.06); border-color: var(--line-dark); }
.drawer .cs-chev, .form--dark .cs-chev { color: rgba(255,255,255,.6); }

/* Suchleiste (Startseite): rahmenlos in der Pille */
.qsearch .cs-btn { min-height: 0; padding: 0; border: 0; background: none; box-shadow: none !important; font-weight: 500; color: var(--muted); }
.qsearch .cs.is-open .cs-btn { color: var(--text); }
.qsearch .field.cs-open { background: var(--paper); }
.qsearch .field.cs-open + .field::before, .qsearch .field.cs-open::before { opacity: 0; }

/* Filter & Sortierung (Suchseiten), Rechner, Stellenfilter */
.filters .cs-btn { min-height: 40px; padding: 8px 10px; font-size: 14px; }
.results__tools .cs { width: auto; min-width: 180px; }
.results__tools .cs-btn { min-height: 38px; padding: 0 12px; border-radius: 8px; font-size: 13px; }

@media (max-width: 900px) { .results__tools .cs { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .cs-list, .cs-list.is-open li { transition: none; animation: none; } }

/* 360°-Tour / Video ohne hinterlegten Link bzw. Datei: ausgegraut, nicht klickbar */
.gallery__tools .btn .ico, .gallery__tools .btn svg { width: 14px; height: 14px; }
.gallery__tools .btn.is-off { background: rgba(255,255,255,.55); color: rgba(10,20,51,.4); cursor: not-allowed; box-shadow: none; text-decoration: line-through; text-decoration-color: rgba(10,20,51,.25); }
.gallery__tools .btn.is-off:hover { background: rgba(255,255,255,.55); }

/* Footer: großes, unten leicht abgeschnittenes Künne-Logo */
.footer { overflow: hidden; padding-bottom: 0; }
.footer__mark { display: flex; align-items: flex-end; justify-content: space-between; gap: .06em; margin: 40px 0 -.2em; font-size: clamp(90px, 22.4vw, 400px); font-weight: 800; letter-spacing: -.065em; line-height: .78; color: #fff; user-select: none; pointer-events: none;
  background: linear-gradient(180deg, #fff 35%, rgba(255,255,255,.25)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.footer__mark svg { width: .82em; height: .82em; flex: none; margin-bottom: .02em; }
.footer__mark span { flex: 1; text-align: right; }
.gallery__tools .btn svg path { fill: currentColor; }
/* Footer-Logo: fester Rahmen, Schrift ragt unten heraus → leicht angeschnitten; Umlaut-Punkte bleiben sichtbar */
.footer__mark { height: .74em; overflow: hidden; margin: 48px 0 0; line-height: 1; align-items: flex-start; background: none; -webkit-text-fill-color: initial; }
.footer__mark svg { margin: .06em 0 0; }
.footer__mark span { line-height: 1; margin-top: -.06em; padding-top: .02em;
  background: linear-gradient(180deg, #fff 45%, rgba(255,255,255,.35)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.footer__mark { height: .8em; }
.footer__mark span { margin-top: 0; padding-top: .03em; }
.footer__mark svg { margin-top: .13em; }
.footer__mark { height: .86em; }
.footer__mark span { padding-top: .12em; }
.footer__mark svg { margin-top: .22em; }
/* Handy: Footer-Logo nicht von der Aktionsleiste verdecken lassen */
@media (max-width: 900px) {
  .footer { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .footer__mark { margin-top: 36px; }
}
/* Footer-Logo: zurückhaltender, eher Wasserzeichen als Blickfang */
.footer__mark { opacity: .14; }
/* Footer-Kopf: eine Zeile im selben 6-Spalten-Raster wie die Linkspalten */
.footer__top { display: grid; grid-template-columns: repeat(6, 1fr); gap: 32px; align-items: start; flex-wrap: nowrap; }
.footer__top > div:first-child { grid-column: span 2; }
.footer__ci { display: grid; gap: 0; font-size: 15px; line-height: 1.5; color: #fff; padding-top: 4px; }
.footer__ci a:hover { color: var(--accent); }
.footer__ci span { color: var(--muted-dark); }
@media (max-width: 1180px) { .footer__top { grid-template-columns: repeat(3, 1fr); } .footer__top > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 900px) { .footer__top { grid-template-columns: 1fr 1fr; row-gap: 26px; } }
/* Footer: Social-Icons einfarbig */
.footer__social { gap: 10px; margin-top: 22px; }
.footer__social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-dark); color: rgba(255,255,255,.72); transition: color .2s, border-color .2s, background .2s, transform .2s; }
.footer__social a:hover { color: #fff; border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.06); transform: translateY(-2px); }
.footer__social svg { width: 18px; height: 18px; }
/* Unterseiten: gestaffelter Aufbau (gleiche Bewegung wie im internen Bereich) */
.rv { opacity: 0; }
.rv.rv-in { animation: kRevealIn .75s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--rv-d, 0ms); }
@keyframes kRevealIn { from { opacity: 0; filter: blur(12px); transform: translateY(16px) scale(.985); } to { opacity: 1; filter: none; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; } .rv.rv-in { animation: none; } }
/* Startanimation: Footer-Logo groß */
.kintro { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; align-content: center; gap: 26px; background: var(--brand, #001144); color: #fff; clip-path: inset(0 0 0 0); transition: clip-path 1.1s cubic-bezier(.76,0,.24,1); overflow: hidden; }
.kintro__mark { display: flex; align-items: center; gap: .14em; font-size: clamp(64px, 15vw, 230px); font-weight: 800; letter-spacing: -.065em; line-height: 1; }
.kintro__logo { width: .82em; height: .82em; flex: none; transform: scale(.55) rotate(-8deg); opacity: 0; transition: transform 1s cubic-bezier(.2,.8,.2,1), opacity .5s; }
.kintro__draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s cubic-bezier(.6,0,.2,1) .35s; }
.kintro__draw--2 { transition-delay: .75s; }
.kintro__bar { transform: scaleX(0); transform-origin: 16px 0; transition: transform .7s cubic-bezier(.2,.8,.2,1) 1s; }
.kintro__word { display: inline-flex; overflow: hidden; padding: .14em .04em .02em 0; margin-top: -.1em; }
.kintro__word span { display: inline-block; transform: translateY(110%); transition: transform .9s cubic-bezier(.2,.8,.2,1); transition-delay: calc(.3s + var(--i) * .06s);
  background: linear-gradient(180deg, #fff 45%, rgba(255,255,255,.55)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kintro__tag { opacity: 0; letter-spacing: .3em; font-size: 12px; text-transform: uppercase; transform: translateY(8px); transition: opacity .8s 1.1s, transform .8s 1.1s; }
.kintro.is-in .kintro__logo { transform: none; opacity: 1; }
.kintro.is-in .kintro__draw { stroke-dashoffset: 0; }
.kintro.is-in .kintro__bar { transform: none; }
.kintro.is-in .kintro__word span { transform: none; }
.kintro.is-in .kintro__tag { opacity: .7; transform: none; }
.kintro.is-out { clip-path: inset(0 0 100% 0); }
.kintro.is-out .kintro__mark { transform: translateY(-40px); opacity: .3; transition: transform 1s cubic-bezier(.76,0,.24,1), opacity 1s; }

/* =========================================================
   Smartphone: kompakter, weniger Scrollen, gut bedienbar
   ========================================================= */
@media (max-width: 600px) {
  /* Scroll-Szenen der Startseite/Unternehmen deutlich kürzer */
  .objects { height: 260vh; }
  .philo { height: 160vh; }
  .values { height: 190vh; }
  /* Portal: Handy-Mockup weglassen, Karte nur so hoch wie der Inhalt */
  .portal__phone { display: none; }
  .portal__card { min-height: 0; gap: 0; padding: 28px 22px; }

  /* Objekt-Teaser (Startseite, ähnliche Objekte): wischbare Reihe statt langer Liste */
  #objekte .lgrid, .xsimilar .lgrid {
    display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 80%;
    gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 10px; scrollbar-width: none;
  }
  #objekte .lgrid::-webkit-scrollbar, .xsimilar .lgrid::-webkit-scrollbar { display: none; }
  #objekte .lgrid > *, .xsimilar .lgrid > * { scroll-snap-align: start; }
  #objekte .lgrid .lcard__facts, .xsimilar .lgrid .lcard__facts { display: none; }

  /* Suchergebnisse: kompakte Querformat-Karten (Bild links, Daten rechts) */
  .search .lgrid { gap: 10px; }
  .search .lgrid .lcard { flex-direction: row; min-height: 128px; }
  .search .lgrid .lcard__media { aspect-ratio: auto; width: 40%; flex: none; }
  .search .lgrid .lcard__badges .badge:not(:first-child) { display: none; }
  .search .lgrid .lcard__badges { left: 6px; top: 6px; }
  .search .lgrid .favbtn { width: 32px; height: 32px; top: 6px; right: 6px; }
  .search .lgrid .lcard__demo { display: none; }
  .search .lgrid .lcard__body { padding: 10px 12px; gap: 3px; align-content: center; }
  .search .lgrid .lcard__place { font-size: 11.5px; }
  .search .lgrid .lcard__title { font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .search .lgrid .lcard__facts { font-size: 12px; gap: 2px 10px; }
  .search .lgrid .lcard__price { font-size: 16px; padding-top: 6px; margin-top: 2px; }
  .search .lgrid .lcard__price::after { display: none; }

  /* Rechner auf der Kaufen-Übersicht ausblenden (steht im Exposé beim Objekt) */
  main > #rechner { display: none; }

  /* Footer: Linkspalten als aufklappbare Gruppen */
  .footer__grid { grid-template-columns: 1fr !important; gap: 0; margin-bottom: 36px; }
  .footer__grid > div { border-bottom: 1px solid var(--line-dark); }
  .footer__grid .footer__h { margin: 0; padding: 16px 0; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-size: 11px; }
  .footer__grid .footer__h::after { content: "+"; font: 400 18px/1 var(--font, inherit); letter-spacing: 0; transition: transform .3s; }
  .footer__grid > div.is-open .footer__h::after { transform: rotate(45deg); }
  .footer__grid ul { display: none; padding-bottom: 14px; }
  .footer__grid > div.is-open ul { display: grid; gap: 10px; }
  .footer__top { padding-bottom: 30px; margin-bottom: 8px; }
  .footer__bottom nav { flex-wrap: wrap; gap: 10px 16px; }

  /* Etwas engere Abschnitte */
  .section { padding-block: 56px; }
  .sec-head { gap: 12px; margin-bottom: 22px; }
}
@media (max-width: 600px) {
  /* Referenzen: wischbare Reihe */
  .refs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 10px; scrollbar-width: none; }
  .refs::-webkit-scrollbar { display: none; }
  .refs > * { scroll-snap-align: start; }
  /* Kachel-Auswahl kompakter: zwei pro Reihe */
  .tiles { grid-template-columns: 1fr 1fr !important; gap: 8px; }
}

/* =========================================================
   Sprachumschalter (Globus + Kürzel)
   ========================================================= */
.lang { position: relative; }
.lang__btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 10px; border-radius: 999px; color: #fff; font-size: 12.5px; font-weight: 650; letter-spacing: .04em;
  background: rgba(0, 17, 68, .28); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transition: background .3s; }
.lang__btn:hover, .lang.is-open .lang__btn { background: rgba(255,255,255,.18); }
.lang__btn svg { width: 16px; height: 16px; }
.lang__menu { position: absolute; z-index: 120; top: calc(100% + 8px); right: 0; min-width: 170px; padding: 6px; border-radius: 14px; background: #fff; color: var(--text);
  box-shadow: 0 18px 50px rgba(0,17,68,.22), 0 0 0 1px rgba(0,17,68,.06); display: grid; gap: 2px;
  opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top right; pointer-events: none; transition: opacity .2s, transform .3s cubic-bezier(.2,.8,.2,1); }
.lang.is-open .lang__menu { opacity: 1; transform: none; pointer-events: auto; }
.lang__menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; text-align: left; color: inherit; }
.lang__menu button:hover { background: var(--paper, #f4f4f0); }
.lang__menu button[aria-checked="true"] { font-weight: 650; }
.lang__menu button svg { width: 16px; height: 16px; margin-left: auto; color: #4a8f00; }
.lang__code { display: inline-grid; place-items: center; min-width: 30px; height: 22px; border-radius: 6px; background: var(--paper, #f4f4f0); font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.lang--mobile { display: none; }
@media (max-width: 1180px) {
  .lang--mobile { display: block; margin-left: auto; margin-right: 8px; position: relative; z-index: 85; }
  .lang--mobile .lang__btn { background: rgba(255,255,255,.14); border-color: transparent; }
}
/* Interner Bereich: Glas, dunkel */
.lang--admin .lang__btn { height: 44px; padding: 0 14px 0 12px; background: rgba(255,255,255,.06); border-color: transparent; font-size: 13px; }
.lang--admin .lang__btn:hover, .lang--admin.is-open .lang__btn { background: rgba(255,255,255,.14); }
.lang--admin .lang__btn svg { width: 18px; height: 18px; }
.lang--admin .lang__menu { background: rgba(22, 28, 46, .92); color: #fff; backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4); box-shadow: 0 20px 50px rgba(0,0,0,.4), inset 0 0 0 1px rgba(255,255,255,.1); }
.lang--admin .lang__menu button:hover { background: rgba(255,255,255,.08); }
.lang--admin .lang__code { background: rgba(255,255,255,.1); }
.lang--admin .lang__menu button svg { color: var(--accent, #88dd00); }
.nav-cta, .navpill a, .navpill button { white-space: nowrap; }
html[lang="en"] .actionbar > * { font-size: 13.5px; gap: 6px; white-space: nowrap; }

/* =========================================================
   Objektarten: schmale Bildstreifen, die sich beim Überfahren öffnen
   ========================================================= */
.otypes { display: flex; gap: 12px; height: clamp(440px, 64vh, 660px); }
.otype { position: relative; flex: 1 1 0; min-width: 0; border-radius: 14px; overflow: hidden; color: #fff; isolation: isolate;
  transition: flex-grow .85s cubic-bezier(.22,.9,.24,1), box-shadow .5s; }
.otype.is-active { flex-grow: 3.6; box-shadow: 0 24px 60px rgba(0,17,68,.18); }
.otype img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.08); transition: transform 1.4s cubic-bezier(.22,.9,.24,1), filter .8s; filter: saturate(.85) brightness(.92); }
.otype.is-active img { transform: scale(1); filter: none; }
.otype::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,17,68,.25) 0%, transparent 30%, transparent 45%, rgba(0,17,68,.78) 100%); }
.otype__num { position: absolute; top: 18px; left: 18px; font-size: 11px; letter-spacing: .14em; opacity: .85; }
.otype__label { position: absolute; left: 16px; bottom: 18px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; writing-mode: vertical-rl; transform: rotate(180deg);
  white-space: nowrap; transition: opacity .35s, transform .5s; }
.otype.is-active .otype__label { opacity: 0; transform: rotate(180deg) translateY(-10px); }
.otype__body { position: absolute; left: 26px; right: 26px; bottom: 26px; display: grid; gap: 10px; max-width: 440px;
  opacity: 0; transform: translateY(14px); transition: opacity .35s, transform .5s cubic-bezier(.22,.9,.24,1); pointer-events: none; }
.otype.is-active .otype__body { opacity: 1; transform: none; transition-delay: .28s; }
.otype__title { font-size: clamp(26px, 2.6vw, 38px); font-weight: 650; letter-spacing: -.035em; line-height: 1.05; }
.otype__text { font-size: 15px; line-height: 1.45; opacity: .88; }
.otype__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 14px; font-weight: 600; }
.otype__more .arrow { width: 14px; height: 14px; transition: transform .3s; }
.otype:hover .otype__more .arrow { transform: translateX(4px); }
.otype:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.otypes__all { margin-top: 22px; }
.otypes-sec .sec-head { margin-bottom: 26px; }
@media (max-width: 760px) {
  .otypes { flex-direction: column; height: auto; gap: 8px; }
  .otype { flex: none; height: 76px; transition: height .7s cubic-bezier(.22,.9,.24,1); }
  .otype.is-active { height: 340px; }
  .otype__label { writing-mode: horizontal-tb; transform: none; left: 52px; top: 50%; bottom: auto; margin-top: -7px; font-size: 12px; }
  .otype.is-active .otype__label { transform: translateY(-8px); }
  .otype__num { top: 50%; margin-top: -7px; }
  .otype.is-active .otype__num { top: 18px; margin-top: 0; }
  .otype__body { left: 18px; right: 18px; bottom: 18px; }
  .otype__title { font-size: 26px; }
  .otype__text { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .otype, .otype img, .otype__body { transition: none; } }

/* =========================================================
   Neues Künne-Logo (Bildmarke + Schriftzug)
   ========================================================= */
.logo__img { display: block; height: 34px; width: auto; max-width: none; }
.header .logo { gap: 0; }
.footer .logo__img { height: 46px; }
@media (max-width: 1180px) { .header .logo__img { height: 30px; } }
@media (max-width: 380px) { .header .logo__img { height: 26px; } }
.header__icon svg { width: 25px; height: 22px; }
.phone__bar .logo svg { width: 15px; height: 13px; }
.footer__mark svg { width: .95em; height: .82em; }
/* Startanimation: Streifen bauen sich von unten auf, grüner Balken wächst */
.kintro__logo { width: .95em; height: .82em; }
.kintro__fill { clip-path: inset(100% 0 0 0); transition: clip-path 1.1s cubic-bezier(.6,0,.2,1) .3s; }
.kintro__bar { transform-box: fill-box; transform-origin: left center; transform: scaleX(0); transition: transform .8s cubic-bezier(.2,.8,.2,1) .95s; }
.kintro.is-in .kintro__fill { clip-path: inset(0 0 0 0); }
.kintro.is-in .kintro__bar { transform: none; }

/* Objektarten: Bild/Video zoomt beim Öffnen langsam heran und wandert leicht */
.otype img, .otype__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.06); transform-origin: 58% 45%; }
.otype__video { opacity: 0; transition: opacity .9s ease, filter .8s; filter: saturate(.85) brightness(.92); }
.otype__video.is-ready { opacity: 1; }
.otype.is-active .otype__video { filter: none; }
.otype.is-active.is-moving img, .otype.is-active.is-moving .otype__video { animation: otzoom 30s linear forwards; }
@keyframes otzoom { from { transform: scale(1.06) translate3d(0, 0, 0); } to { transform: scale(1.17) translate3d(-2%, -1.2%, 0); } }
@media (prefers-reduced-motion: reduce) { .otype.is-active.is-moving img { animation: none; } }

/* Startanimation: Subline näher an den Schriftzug */
.kintro { gap: 6px; }
.kintro__tag { margin-top: -.2em; }

/* Footer-Schriftzug: Ü-Punkte selbst gesetzt, näher am U */
.footer__mark .uml { position: relative; display: inline; font-style: normal; }
.footer__mark .uml::before { content: ""; position: absolute; top: var(--uml-top, .06em); left: calc(50% - var(--uml-gap, .109em) - var(--uml-d, .158em) / 2); width: var(--uml-d, .158em); height: var(--uml-d, .158em); border-radius: 50%; background: #fff; box-shadow: calc(var(--uml-gap, .109em) * 2) 0 #fff; }
