/* Privé – öffentliche Website. Gestaltung nach Prive_Brand_Guide (Juni 2026):
   dunkle Bühne, Petrol als einziger Akzent, Serifen-Headlines, viel Negativraum. */
:root {
  --bg: #0e0e0e;
  --bg-2: #121212;
  --surface: #1e1e1e;
  --outline: #2b2b2b;
  --text: #f3f4f6;
  --muted: #9ea3ae;
  --faint: #6b7079;
  --petrol: #155259;
  --petrol-2: #1b6870;
  --petrol-soft: rgba(21, 82, 89, .35);
  --radius: 14px;
  --radius-lg: 20px;
  /* Brand-Fonts (IvyPresto Headline / Sofia Pro) nach Klärung der Web-Lizenz hier eintragen */
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-text: "Sofia Sans", "Helvetica Neue", Arial, sans-serif;
  --max: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.62 var(--font-text); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 300; letter-spacing: -.01em; margin: 0; line-height: 1.08; }
h1 { font-size: clamp(40px, 6vw, 76px); }
h2 { font-size: clamp(30px, 3.6vw, 48px); }
h3 { font-size: clamp(22px, 2vw, 28px); }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font: 700 12px/1 var(--font-text); letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
.eyebrow.accent { color: #7fb3b9; }
.lead { font-size: clamp(17px, 1.4vw, 20px); color: #c9ccd2; max-width: 640px; }
.muted { color: var(--muted); }
.section { padding: clamp(64px, 9vw, 128px) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); flex-wrap: wrap; }
.section-head .eyebrow { margin-bottom: 14px; display: block; }
hr.rule { border: 0; border-top: 1px solid var(--outline); margin: 0; }

/* ---------- Header ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.header.solid, .header.always { background: rgba(14, 14, 14, .9); backdrop-filter: blur(14px); border-color: var(--outline); }
.header .wrap { display: flex; align-items: center; gap: 28px; height: 78px; }
.wordmark { font-family: var(--font-display); font-weight: 400; font-size: 27px; letter-spacing: .08em; }
.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a { font-size: 15px; color: #d4d6db; position: relative; padding: 6px 0; }
.nav a:hover, .nav a.on { color: #fff; }
.nav a.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: #7fb3b9; }
.langs { display: flex; gap: 2px; font-size: 13px; letter-spacing: .1em; }
.langs a { padding: 6px 8px; color: var(--faint); border-radius: 6px; }
.langs a.on { color: var(--text); }
.menu-btn { display: none; background: none; border: 0; color: var(--text); font-size: 15px; cursor: pointer; margin-left: auto; letter-spacing: .12em; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 28px; border-radius: 999px; font: 700 13px/1 var(--font-text); letter-spacing: .18em; text-transform: uppercase; border: 1px solid rgba(255,255,255,.28); color: var(--text); background: transparent; cursor: pointer; transition: all .2s; white-space: nowrap; }
.btn:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn-primary { background: var(--petrol); border-color: var(--petrol); }
.btn-primary:hover { background: var(--petrol-2); border-color: var(--petrol-2); }
.btn-sm { height: 42px; padding: 0 20px; font-size: 12px; }
.link-arrow { display: inline-flex; gap: 10px; align-items: center; font: 700 12px/1 var(--font-text); letter-spacing: .2em; text-transform: uppercase; color: #d4d6db; }
.link-arrow:hover { color: #fff; }
.link-arrow::after { content: "→"; font-size: 16px; letter-spacing: 0; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(100vh, 980px); display: flex; align-items: flex-end; overflow: hidden; }
.hero picture, .hero > img { position: absolute; inset: 0; }
.hero img { width: 100%; height: 100%; object-fit: cover; animation: hero-in 2.6s cubic-bezier(.2,.7,.2,1) both; }
@keyframes hero-in { from { scale: 1.1; opacity: .4; } to { scale: 1; opacity: 1; } }  /* „scale“ statt transform: verträgt sich mit dem Parallax aus site.js */
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,14,14,.55) 0%, rgba(14,14,14,.1) 30%, rgba(14,14,14,.35) 60%, rgba(14,14,14,.96) 100%); }
.hero .wrap { position: relative; z-index: 2; padding-bottom: clamp(48px, 9vh, 110px); }
.hero h1 { max-width: 900px; margin: 18px 0 22px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-caption { position: absolute; right: var(--gutter); bottom: 32px; z-index: 2; text-align: right; font-size: 13px; color: var(--muted); max-width: 320px; }
.hero-caption a:hover { color: var(--text); }

/* ---------- Grundsätze ---------- */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 64px); }
.principle .num { font-family: var(--font-display); font-size: 30px; color: #7fb3b9; }
.principle h3 { font-family: var(--font-text); font-weight: 700; font-size: 17px; margin: 10px 0 8px; letter-spacing: 0; }
.principle p { color: var(--muted); font-size: 15px; }

/* ---------- Objektkarten ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 32px); }
.card { display: flex; flex-direction: column; gap: 16px; }
.card .media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.card:hover .media img { transform: scale(1.05); }
.card .tag { position: absolute; left: 14px; top: 14px; z-index: 2; font: 700 11px/1 var(--font-text); letter-spacing: .18em; text-transform: uppercase; padding: 8px 12px; border-radius: 999px; background: rgba(14,14,14,.6); backdrop-filter: blur(8px); }
.card .meta { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.card .loc { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.card .title { font-family: var(--font-display); font-size: 25px; font-weight: 400; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .price { font-size: 16px; white-space: nowrap; }
.card .specs { display: flex; gap: 18px; color: var(--muted); font-size: 14px; }
.noimg { width: 100%; height: 100%; display: grid; place-items: center; color: var(--faint); font-family: var(--font-display); font-size: 28px; }

/* Länder */
.regions { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.region { position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.region img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.region:hover img { transform: scale(1.05); }
.region::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(14,14,14,.88)); }
.region .label { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 2; }
.region .label strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 32px; }
.region .label span { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* Band (App / Kontakt) */
.band { border-radius: var(--radius-lg); background: radial-gradient(120% 140% at 0% 0%, rgba(21,82,89,.55), transparent 60%), var(--surface); border: 1px solid var(--outline); padding: clamp(32px, 6vw, 80px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.band .actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- Suche ---------- */
.page-top { padding-top: 150px; padding-bottom: 36px; }
.search { display: grid; grid-template-columns: repeat(6, 1fr) auto; gap: 10px; padding: 14px; background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius-lg); margin-bottom: 36px; }
.field { width: 100%; height: 50px; padding: 0 16px; background: var(--bg-2); border: 1px solid var(--outline); border-radius: 10px; color: var(--text); font: 15px var(--font-text); outline: none; transition: border-color .2s; }
textarea.field { height: auto; padding: 14px 16px; resize: vertical; line-height: 1.55; }
.field:focus { border-color: #7fb3b9; }
.field::placeholder { color: var(--faint); }
select.field { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.results-info { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 56px; }
.pager a, .pager span { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--outline); color: var(--muted); padding: 0 14px; font-size: 14px; }
.pager a:hover { border-color: var(--muted); color: var(--text); }
.pager .on { background: var(--petrol); border-color: var(--petrol); color: #fff; }
.empty { padding: 90px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--outline); border-radius: var(--radius-lg); }
.htmx-request #results { opacity: .45; transition: opacity .2s; }

/* ---------- Detail ---------- */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; height: min(78vh, 720px); margin-top: 96px; border-radius: var(--radius-lg); overflow: hidden; }
.gallery > button { position: relative; padding: 0; border: 0; background: var(--surface); cursor: zoom-in; overflow: hidden; }
.gallery > button:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s; }
.gallery > button:hover img { transform: scale(1.03); }
.gallery .more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(14,14,14,.6); font: 700 12px/1 var(--font-text); letter-spacing: .2em; text-transform: uppercase; }
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(32px, 5vw, 80px); align-items: start; padding-top: 48px; }
.detail h1 { font-size: clamp(36px, 4.4vw, 60px); margin: 14px 0 16px; }
.detail .where { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); border-top: 1px solid var(--outline); border-bottom: 1px solid var(--outline); margin: 36px 0; }
.fact { padding: 20px 0; }
.fact .k { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.fact .v { font-family: var(--font-display); font-size: 30px; margin-top: 4px; }
.prose { font-size: 17px; color: #d1d4d9; line-height: 1.72; }
.prose h2, .prose h3 { font-family: var(--font-text); font-weight: 700; font-size: 18px; margin: 1.4em 0 .5em; color: var(--text); letter-spacing: 0; }
.prose ul { padding-left: 1.2em; }
.prose a { color: #7fb3b9; text-decoration: underline; }
.subhead { font: 700 12px/1 var(--font-text); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin: 48px 0 18px; }
.tour { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--outline); }
.tour iframe { width: 100%; height: 100%; border: 0; }
.aside { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 18px; }
.panel { background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius-lg); padding: 28px; }
.panel .price { font-family: var(--font-display); font-size: 40px; line-height: 1.1; }
.panel .note { font-size: 13px; color: var(--muted); margin-top: 6px; }
.form { display: flex; flex-direction: column; gap: 12px; }
.form label { font-size: 13px; color: var(--muted); }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.5; }
.form .check input { margin-top: 3px; accent-color: var(--petrol); }
.form .err { color: #fca5a5; font-size: 13px; }
.form .check a { text-decoration: underline; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 16px 18px; border-radius: 12px; background: var(--petrol-soft); border: 1px solid rgba(127,179,185,.35); font-size: 15px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8,8,8,.97); display: none; align-items: center; justify-content: center; }
.lightbox.on { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 1px solid rgba(255,255,255,.2); color: #fff; width: 54px; height: 54px; border-radius: 50%; cursor: pointer; font-size: 22px; }
.lightbox button:hover { border-color: #fff; }
.lightbox .prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox .next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox .close { right: 24px; top: 24px; }
.lightbox .count { position: absolute; bottom: 24px; font-size: 13px; letter-spacing: .2em; color: var(--muted); }

/* Lifestyle */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; }
.chips a { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--outline); font-size: 14px; color: var(--muted); }
.chips a.on, .chips a:hover { border-color: #7fb3b9; color: var(--text); }
.article-hero { margin-top: 96px; aspect-ratio: 21 / 9; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.article { max-width: 780px; margin: 0 auto; padding-top: 48px; }

/* Footer */
.footer { border-top: 1px solid var(--outline); padding: 64px 0 40px; margin-top: 40px; }
.footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { font: 700 12px/1 var(--font-text); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.footer a { display: block; color: #c9ccd2; font-size: 15px; margin-bottom: 10px; }
.footer a:hover { color: #fff; }
.footer .bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--outline); color: var(--faint); font-size: 13px; letter-spacing: .1em; flex-wrap: wrap; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 90; background: var(--petrol); color: #fff; padding: 16px 24px; border-radius: 999px; box-shadow: 0 16px 40px rgba(0,0,0,.5); font-size: 15px; animation: toast 6s ease forwards; }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, 10px); } 8%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; visibility: hidden; } }

/* Einblenden beim Scrollen */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s ease, transform 1s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .hero img { animation: none; transform: none; } }

@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .search { grid-template-columns: repeat(3, 1fr); }
  .detail { grid-template-columns: 1fr; }
  .aside { position: static; }
  .band { grid-template-columns: 1fr; }
  .band .actions { justify-content: flex-start; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav, .header .langs, .header .btn { display: none; }
  .menu-btn { display: block; }
  .header.open { background: var(--bg); height: 100vh; }
  .header.open .wrap { flex-wrap: wrap; height: auto; padding-top: 22px; }
  .header.open .nav { display: flex; flex-direction: column; width: 100%; margin: 30px 0 0; gap: 18px; }
  .header.open .nav a { font-family: var(--font-display); font-size: 34px; }
  .header.open .langs { display: flex; margin-top: 24px; }
  .grid { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .search { grid-template-columns: 1fr 1fr; }
  .search .full { grid-column: span 2; }
  .gallery { grid-template-columns: 1fr; grid-template-rows: 1fr; height: 56vh; margin-top: 78px; border-radius: 0; }
  .gallery > button:not(:first-child) { display: none; }
  .hero-caption { display: none; }
  .footer .cols { grid-template-columns: 1fr; }
}

/* Feinschliff */
html, body { overflow-x: hidden; }
h1, h2, h3, .card .title { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(14,14,14,.72) 0%, rgba(14,14,14,.35) 45%, transparent 75%); }
.hero::after { z-index: 1; }
.hero .eyebrow { color: #d4d6db; }
.gallery .more { z-index: 2; }
@media (max-width: 760px) {
  .hero h1 { font-size: 38px; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .search .full { grid-column: 1 / -1; }
}

/* Sprachumschalter (Flagge + Dropdown, wie sandrostadelmann.com) */
.lang-switch { position: relative; }
.lang-current { display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 8px 4px; cursor: pointer; color: var(--text); }
.lang-switch img { display: block; width: 26px; height: 16px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255,255,255,.18); }
.lang-current .chev { width: 7px; height: 7px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.lang-switch.open .chev { transform: translateY(1px) rotate(-135deg); }
.lang-menu { position: absolute; top: calc(100% + 6px); left: 50%; transform: translate(-50%, -4px); display: flex; flex-direction: column; gap: 2px; padding: 6px; background: var(--surface); border: 1px solid var(--outline); border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,.45); opacity: 0; visibility: hidden; transition: opacity .15s, transform .15s, visibility .15s; z-index: 60; }
.lang-switch.open .lang-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.lang-menu a { display: grid; place-items: center; padding: 10px 12px; border-radius: 8px; }
.lang-menu a:hover, .lang-menu a:focus-visible { background: rgba(255,255,255,.07); outline: none; }
@media (max-width: 760px) {
  .lang-switch { margin-left: auto; }
  .menu-btn { margin-left: 12px; }
  .header.open .lang-switch { order: 2; }
}
.lang-switch img { max-width: none; flex: none; }
.lang-menu { min-width: 58px; }

/* ---------- Karte (Leaflet, CARTO dark) ---------- */
.results-info { gap: 16px; flex-wrap: wrap; }
.results-tools { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.view-toggle { display: inline-flex; padding: 3px; border: 1px solid var(--outline); border-radius: 999px; background: var(--surface); }
.view-toggle a { display: inline-flex; align-items: center; height: 34px; padding: 0 18px; border-radius: 999px; font: 700 11px/1 var(--font-text); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); transition: background .2s, color .2s; }
.view-toggle a:hover { color: var(--text); }
.view-toggle a.on { background: var(--petrol); color: #fff; }
.estate-map { height: min(72vh, 780px); min-height: 440px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--outline); background: #0b0b0b; isolation: isolate; }
.area-map { aspect-ratio: 16 / 9; min-height: 260px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--outline); background: #0b0b0b; isolation: isolate; }
.map-note { font-size: 13px; color: var(--faint); margin: 14px 0 0; }
.htmx-request .estate-map { opacity: .45; transition: opacity .2s; }

.leaflet-container, .estate-map.leaflet-container, .area-map.leaflet-container { background: #0b0b0b; font-family: var(--font-text); }
.leaflet-container .leaflet-control.leaflet-control-attribution { background: rgba(14,14,14,.75); color: var(--faint); font-size: 10px; padding: 2px 8px; border-top-left-radius: 8px; }
.leaflet-container .leaflet-control-attribution a { color: var(--muted); }
.leaflet-bar, .leaflet-touch .leaflet-bar { border: 1px solid var(--outline); box-shadow: 0 8px 24px rgba(0,0,0,.4); border-radius: 12px; overflow: hidden; }
.leaflet-bar a, .leaflet-touch .leaflet-bar a { background: var(--surface); color: var(--text); border-bottom-color: var(--outline); width: 36px; height: 36px; line-height: 36px; font-weight: 400; }
.leaflet-bar a:hover, .leaflet-bar a:focus { background: #262626; color: #fff; }
.leaflet-bar a.leaflet-disabled { background: var(--bg-2); color: var(--faint); }

/* Preis-Pins */
.pin { background: none; border: 0; }
.pin span { position: absolute; left: 0; top: 0; transform: translate(-50%, calc(-100% - 7px)); white-space: nowrap; padding: 7px 11px; border-radius: 999px; background: #141414; border: 1px solid rgba(127,179,185,.5); color: var(--text); font: 700 12px/1 var(--font-text); letter-spacing: .02em; box-shadow: 0 6px 18px rgba(0,0,0,.5); transition: background .15s, border-color .15s; cursor: pointer; }
.pin span::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 8px; height: 8px; background: inherit; border-right: 1px solid rgba(127,179,185,.5); border-bottom: 1px solid rgba(127,179,185,.5); transform: translateX(-50%) rotate(45deg); }
.pin:hover span, .pin:focus span, .pin:focus-visible span { background: var(--petrol); border-color: #7fb3b9; }
.pin:focus { outline: none; }
.cluster { background: none; }
.cluster span { width: 100%; height: 100%; display: grid; place-items: center; border-radius: 50%; background: var(--petrol); border: 1px solid rgba(127,179,185,.65); color: #fff; font: 700 13px/1 var(--font-text); box-shadow: 0 0 0 6px rgba(21,82,89,.32), 0 10px 24px rgba(0,0,0,.5); transition: background .15s; }
.cluster:hover span { background: var(--petrol-2); }

/* Popup = Mini-Karte */
.map-popup .leaflet-popup-content-wrapper { background: var(--surface); color: var(--text); border: 1px solid var(--outline); border-radius: var(--radius); padding: 0; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.6); }
.map-popup .leaflet-popup-content { margin: 0; width: 260px !important; line-height: 1.4; }
.map-popup .leaflet-popup-tip { background: var(--surface); box-shadow: none; border: 1px solid var(--outline); }
.leaflet-container .map-popup a.leaflet-popup-close-button { top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; background: rgba(14,14,14,.7); color: #fff; font: 400 18px/28px var(--font-text); text-align: center; z-index: 2; }
.leaflet-container a.map-card { display: block; color: var(--text); }
.map-card img, .map-card .noimg { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; background: var(--bg-2); }
.map-card .noimg { font-size: 22px; }
.map-card .body { padding: 14px 16px 16px; }
.map-card .loc { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.map-card .title { font-family: var(--font-display); font-size: 21px; line-height: 1.15; margin: 6px 0 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.map-card .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; }
.map-card .more { font: 700 10px/1 var(--font-text); letter-spacing: .18em; text-transform: uppercase; color: #7fb3b9; }
.map-card:hover .more { color: #fff; }

@media (max-width: 760px) {
  .results-info { align-items: flex-start; }
  .estate-map { height: 65vh; min-height: 360px; margin: 0 calc(-1 * var(--gutter)); border-radius: 0; border-left: 0; border-right: 0; }
  .map-note { font-size: 12px; }
}
/* Fallback ohne CARTO-Key: OSM-Kacheln abgedunkelt, damit die Karte zur dunklen Bühne passt */
.leaflet-container .tiles-dark { filter: invert(1) hue-rotate(180deg) brightness(.78) contrast(.92) saturate(.3); }

/* Anfrage-Quiz: Fragen nacheinander (nur mit JS – ohne JS alles untereinander) */
.quiz-head { display: none; }
.quiz.js .quiz-head { display: block; margin-bottom: 6px; }
.quiz-bar { height: 3px; border-radius: 3px; background: var(--outline); overflow: hidden; }
.quiz-bar span { display: block; height: 100%; width: 0; background: #7fb3b9; transition: width .5s cubic-bezier(.2,.7,.2,1); }
.quiz-count { margin-top: 12px; font: 700 11px/1 var(--font-text); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.quiz-count b { color: var(--text); }
.quiz-step { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.quiz.js .quiz-step { display: none; margin: 0; }
.quiz.js .quiz-step.on { display: flex; animation: quiz-in .45s cubic-bezier(.2,.7,.2,1); }
.quiz.js .quiz-step.on.back { animation-name: quiz-in-back; }
@keyframes quiz-in { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes quiz-in-back { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
.quiz-q { font-family: var(--font-display); font-weight: 300; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; color: var(--text); padding: 0; margin-bottom: 6px; }
.quiz-options { display: grid; gap: 10px; }
.quiz-opt { position: relative; display: flex; align-items: center; gap: 14px; min-height: 58px; padding: 14px 18px; border-radius: 12px; border: 1px solid var(--outline); background: var(--bg-2); color: var(--text) !important; font-size: 16px !important; cursor: pointer; transition: border-color .2s, background .2s, transform .15s; }
.quiz-opt:hover { border-color: rgba(127,179,185,.6); }
.quiz-opt:active { transform: scale(.99); }
.quiz-opt input { appearance: none; flex: none; width: 20px; height: 20px; margin: 0; border-radius: 50%; border: 1.5px solid var(--faint); display: grid; place-items: center; transition: all .2s; }
.quiz-opt input::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #fff; transform: scale(0); transition: transform .2s; }
.quiz-opt input:checked { border-color: var(--petrol-2); background: var(--petrol-2); }
.quiz-opt input:checked::after { transform: scale(1); }
.quiz-opt:has(input:checked) { border-color: var(--petrol-2); background: var(--petrol-soft); }
.quiz-opt input:focus-visible { outline: 2px solid #7fb3b9; outline-offset: 3px; }
.quiz .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quiz textarea.field { height: auto; min-height: 110px; padding: 14px 16px; resize: vertical; }
.quiz-back { align-self: flex-start; margin-top: 4px; background: none; border: 0; padding: 6px 0; color: var(--muted); font: 700 12px/1 var(--font-text); letter-spacing: .18em; text-transform: uppercase; cursor: pointer; }
.quiz-back:hover { color: var(--text); }
@media (max-width: 520px) { .quiz .row2 { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .quiz.js .quiz-step.on, .quiz-bar span { animation: none; transition: none; } }
.contact-home { grid-template-columns: minmax(0, 1fr) minmax(0, 540px); align-items: center; }

/* Mitglieder-Login */
.member-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; letter-spacing: .06em; color: #d4d6db; padding: 6px 4px; margin-right: 6px; white-space: nowrap; }
.member-link:hover, .member-link.on { color: #fff; }
.member-link .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.member-link .dot.vip { background: #7fb3b9; box-shadow: 0 0 0 3px rgba(127,179,185,.25); }
.badge-vip { display: inline-block; padding: 7px 12px; border-radius: 999px; background: var(--petrol); color: #fff; font: 700 11px/1 var(--font-text); letter-spacing: .2em; text-transform: uppercase; }
.badge-vip.off { background: transparent; border: 1px solid var(--outline); color: var(--muted); letter-spacing: .1em; }
.or { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; margin: 6px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--outline); }
.card .tag.tag-vip { background: rgba(21,82,89,.85); }

/* =====================================================================
   Anfrage-Fragebogen (/kontakt/) – ohne Menü, mobil zuerst, ein Schritt pro Bildschirm
   ===================================================================== */
.btn-block { width: 100%; }
body.funnel { min-height: 100dvh; display: flex; flex-direction: column; background: radial-gradient(120% 70% at 50% 0%, rgba(21,82,89,.28), transparent 60%), var(--bg); }
.funnel-top { display: flex; align-items: center; justify-content: center; position: relative; height: 64px; padding: 0 20px; padding-top: env(safe-area-inset-top); }
.funnel-top .wordmark { font-size: 24px; }
.funnel-close { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); font-size: 18px; }
.funnel-close:hover { color: var(--text); background: var(--surface); }
body.funnel main { flex: 1; display: flex; }
.funnel-main { width: 100%; max-width: 560px; margin: 0 auto; padding: 8px 20px calc(28px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; }
.funnel-estate { display: flex; align-items: center; gap: 12px; padding: 10px; margin-bottom: 18px; border: 1px solid var(--outline); border-radius: 12px; background: var(--surface); font-size: 14px; line-height: 1.3; }
.funnel-estate img { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; flex: none; }
.funnel-estate small { display: block; color: var(--muted); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 3px; }
body.funnel .quiz { flex: 1; gap: 14px; }
body.funnel .quiz-q { font-size: clamp(30px, 8vw, 40px); margin-bottom: 14px; }
body.funnel .quiz-opt { min-height: 64px; font-size: 17px !important; }
body.funnel .field { height: 56px; font-size: 17px; }  /* ≥ 16 px: kein Auto-Zoom auf dem iPhone */
body.funnel .quiz-step { gap: 12px; }
.quiz-next { margin-top: 6px; }
.quiz-note { font-size: 13px; margin: 2px 0 0; text-align: center; }
.quiz-more summary { cursor: pointer; color: var(--muted); font-size: 14px; padding: 6px 0; list-style: none; }
.quiz-more summary::before { content: "+ "; }
.quiz-more[open] summary::before { content: "– "; }
.quiz-more textarea { margin-top: 8px; }
body.funnel .quiz-back { margin-top: auto; padding-top: 18px; }
.funnel-thanks { text-align: center; align-items: center; justify-content: center; gap: 18px; padding-top: 6vh; }
.funnel-thanks h1 { font-size: clamp(36px, 9vw, 52px); }
.funnel-thanks .lead { margin: 0 auto; }
.funnel-actions { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 380px; margin-top: 18px; align-items: center; }
/* Objektseite: auf dem Handy feste Anfrage-Leiste unten */
.cta-bar { display: none; }
@media (max-width: 1100px) {
  .cta-bar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, transparent, rgba(14,14,14,.92) 30%); }
  body:has(.cta-bar) .footer { padding-bottom: 96px; }
}

/* =====================================================================
   Motion – ruhig und hochwertig; alles aus bei „Bewegung reduzieren“
   ===================================================================== */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; animation-timing-function: cubic-bezier(.2,.7,.2,1); }

@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
/* Startseite: Hero-Texte erscheinen nacheinander, Bild mit leichtem Parallax (site.js) */
.hero .wrap > * { animation: rise 1.1s cubic-bezier(.2,.7,.2,1) both; }
.hero .wrap > :nth-child(1) { animation-delay: .25s; }
.hero .wrap > :nth-child(2) { animation-delay: .4s; }
.hero .wrap > :nth-child(3) { animation-delay: .58s; }
.hero .wrap > :nth-child(4) { animation-delay: .74s; }
.hero-caption { animation: fade 1.2s 1.1s both; }
.hero img { will-change: transform; }
/* Einblenden beim Scrollen: Raster nacheinander (--d per site.js), Bilder mit „Vorhang“ */
.reveal { transition-delay: var(--d, 0s); }
.card.reveal .media, .region.reveal { clip-path: inset(0 0 100% 0 round var(--radius)); transition: clip-path 1.2s cubic-bezier(.7,0,.2,1) var(--d, 0s); }
.card.reveal.in .media, .region.reveal.in { clip-path: inset(0 0 0 0 round var(--radius)); }
.card.reveal .media img, .region.reveal img { transform: scale(1.12); transition: transform 1.6s cubic-bezier(.2,.7,.2,1) var(--d, 0s); }
.card.reveal.in .media img, .region.reveal.in img { transform: scale(1); }
.card.reveal.in:hover .media img, .region.reveal.in:hover img { transform: scale(1.05); transition-delay: 0s; }
.card { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.card:hover { transform: translateY(-4px); }
/* Abschnitts-Überschriften: feine Linie wächst vor dem Eyebrow */
.section-head .eyebrow.accent::before, .band .eyebrow.accent::before { content: ""; display: inline-block; vertical-align: middle; width: 0; height: 1px; margin-right: 0; background: #7fb3b9; transition: width 1s cubic-bezier(.2,.7,.2,1) .2s, margin .6s .2s; }
.section-head.in .eyebrow.accent::before, .band.in .eyebrow.accent::before { width: 34px; margin-right: 14px; }
/* Buttons: sanfter Glanz beim Darüberfahren */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.14) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.btn:hover::after { transform: translateX(120%); }
.btn.is-sending { pointer-events: none; opacity: .8; }
.btn.is-sending::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
/* Header blendet beim Runterscrollen aus, beim Hochscrollen wieder ein */
.header { transition: transform .45s cubic-bezier(.2,.7,.2,1), background .3s, border-color .3s; }
.header.hide { transform: translateY(-100%); }
/* Bilder weich laden */
img[loading="lazy"] { animation: fade .8s both; }
/* Lightbox */
.lightbox.on { animation: fade .35s both; }
.lightbox.on img { animation: rise .5s cubic-bezier(.2,.7,.2,1) both; }
/* Fragebogen: Antworten fächern auf, Auswahl „pulst“, Fortschritt gleitet */
.quiz.js .quiz-step.on .quiz-opt { animation: rise .55s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i, 0) * 60ms + 80ms); }
.quiz-opt:has(input:checked) { animation: pick .4s cubic-bezier(.2,.7,.2,1); }
@keyframes pick { 40% { transform: scale(.97); } 100% { transform: scale(1); } }
.check-draw { width: 76px; height: 76px; }
.check-draw circle { fill: none; stroke: #7fb3b9; stroke-width: 2; stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .9s .2s cubic-bezier(.65,0,.35,1) forwards; }
.check-draw path { fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 36; stroke-dashoffset: 36; animation: draw .5s 1s cubic-bezier(.65,0,.35,1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.funnel-thanks > :not(svg) { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.funnel-thanks > h1 { animation-delay: .9s; }
.funnel-thanks > .lead { animation-delay: 1.05s; }
.funnel-thanks > .funnel-actions { animation-delay: 1.2s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .card.reveal .media, .region.reveal { clip-path: none; }
  .header.hide { transform: none; }
  @view-transition { navigation: none; }
}
.detail > * { min-width: 0; }  /* Raster darf nicht breiter als der Bildschirm werden (mobil) */

/* Startseiten-Bilder (Backoffice → Startseite): eins = fest, mehrere = Slideshow mit Überblendung */
.hero-media { position: absolute; inset: 0; will-change: transform; }
.hero-media img { position: absolute; inset: 0; opacity: 0; animation: none; transition: opacity 1.8s ease; }
.hero-media img.on { opacity: 1; animation: hero-in 2.6s cubic-bezier(.2,.7,.2,1) both; }
.hero-media.multi img.on { animation: kenburns 9s cubic-bezier(.25,.6,.3,1) both; }
@keyframes kenburns { from { scale: 1.1; } to { scale: 1; } }
.hero-caption[data-cap] { opacity: 0; animation: none; transition: opacity 1.2s ease; pointer-events: none; }
.hero-caption[data-cap].on { opacity: 1; pointer-events: auto; transition-delay: .6s; }
.hero-dots { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 2; display: flex; gap: 8px; }
.hero-dots span { width: 26px; height: 2px; background: rgba(255,255,255,.28); border-radius: 2px; overflow: hidden; position: relative; }
.hero-dots span.on::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; animation: dot 7s linear both; }
@keyframes dot { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.prose.legal { overflow-wrap: anywhere; } .prose.legal a { text-decoration: underline; }

/* App-Abschnitt: App-Icon + Store-Knöpfe mit Logo */
.app-icon { display: block; width: 88px; height: 88px; border-radius: 20px; margin-bottom: 22px; box-shadow: 0 14px 40px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.08); }
.store-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.band .actions { flex-direction: column; align-items: flex-end; }
.store-badge { display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 22px 0 18px; border-radius: 14px; background: #000; color: #fff; border: 1px solid rgba(255,255,255,.22); transition: transform .2s, border-color .2s; }
.store-badge:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.5); }
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge span { display: flex; flex-direction: column; font: 600 18px/1.1 var(--font-text); letter-spacing: -.01em; white-space: nowrap; }
.store-badge small { font: 500 11px/1.2 var(--font-text); letter-spacing: .02em; opacity: .85; }
.funnel-actions .store-badges { justify-content: center; }
@media (max-width: 1100px) { .band .actions { align-items: flex-start; } }
