/* propvision radar – Design-Tokens. Standardmarke propvision (propvision.at: Rubik, Dunkelgrün); Marke KeyRadar (KeyLiving-Website:
   Bebas Neue / Poppins, Salbeigrün) über body[data-brand="keyradar"]. Nur Farben, Schrift und Logo unterscheiden sich (app.brand). */
@font-face { font-family: 'Rubik'; font-weight: 300 800; font-display: swap; src: url(/static/fonts/rubik-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Rubik'; font-weight: 300 800; font-display: swap; src: url(/static/fonts/rubik-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Bebas Neue'; font-weight: 400; font-display: swap; src: url(/static/fonts/bebas-neue-400-normal-latin.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 400; font-display: swap; src: url(/static/fonts/poppins-400-normal-latin.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 500; font-display: swap; src: url(/static/fonts/poppins-500-normal-latin.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 600; font-display: swap; src: url(/static/fonts/poppins-600-normal-latin.woff2) format('woff2'); }
@font-face { font-family: 'Space Mono'; font-weight: 400; font-display: swap; src: url(/static/fonts/space-mono-400-normal-latin.woff2) format('woff2'); }

:root {
  --green: #5e816a; --green-dark: #4b6a56; --sage: #c3d5b4; --sage-light: #e3e8e0;
  --cream: #f4f0ed; --cream-dark: #ebebe5; --ink: #1a1a1a; --text-light: #424242; --muted: #6b6b6b;
  --hairline: #dbdbdb; --white: #fff; --bad: #b4473a;
  --font-display: 'Bebas Neue', sans-serif; --font-body: 'Poppins', sans-serif; --font-mono: 'Space Mono', monospace;
  --radius: 12px; --shadow: 0 1px 2px rgba(26,26,26,.06), 0 8px 24px rgba(26,26,26,.06);
}
/* Marke propvision: Farben und Schrift von propvision.at */
body[data-brand="propvision"] {
  --green: #3f604b; --green-dark: #1e3828; --sage: #82a28a; --sage-light: #eaefe8; --cream: #f2f5f1; --cream-dark: #e4eae2;
  --font-display: 'Rubik', sans-serif; --font-body: 'Rubik', sans-serif;
}
body[data-brand="propvision"] h1, body[data-brand="propvision"] h2, body[data-brand="propvision"] h3 { font-weight: 600; letter-spacing: -.01em; }
body[data-brand="propvision"] .brand img { height: 46px; }                 /* Wortmarke hat viel Innenrand */
body[data-brand="propvision"] .login-logo { height: 64px; }
body[data-brand="propvision"] .card-value { font-size: 32px; letter-spacing: -.01em; }
body[data-brand="propvision"] .card-value.small { font-size: 24px; }
body[data-brand="propvision"] .hero h1 { font-size: clamp(40px, 6vw, 76px); }
body[data-brand="propvision"] .page-head h1 { font-size: clamp(32px, 4vw, 52px); }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 15px; line-height: 1.5; color: var(--ink);
       background: var(--cream); min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: .03em; margin: 0; line-height: 1; }

/* Kopfzeile */
.topbar { display: flex; align-items: center; gap: 32px; padding: 0 24px; height: 64px; background: var(--white);
          border-bottom: 1px solid var(--hairline); position: sticky; top: 0; z-index: 10; }
.brand img { display: block; height: 36px; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a, .nav-soon { padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: 14px; color: var(--text-light); }
.nav a:hover, .nav a.active { background: var(--cream); color: var(--ink); }
.nav-soon { color: var(--muted); opacity: .55; cursor: default; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.user { font-size: 13px; color: var(--muted); font-family: var(--font-mono); }

/* Seite */
.page { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 32px 24px 48px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; box-sizing: border-box; }
.page > * { min-width: 0; }
html, body { overflow-x: hidden; }
.card, .grid > * { min-width: 0; }
.card-value { overflow-wrap: anywhere; }
.lead, .h-detail, .crumbs, .card-meta, .prose, .sub { overflow-wrap: anywhere; }
.crumbs { flex-wrap: wrap; }
.hero h1 { font-size: clamp(48px, 7vw, 88px); color: var(--ink); }
.hero h1 span { color: var(--green); }
.lead { margin: 8px 0 0; color: var(--text-light); max-width: 720px; }
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.card { background: var(--white); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.card-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.card-label { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
.card-value { font-family: var(--font-display); font-size: 36px; margin-top: 6px; color: var(--ink); }
.card-value.ok { color: var(--green); } .card-value.bad { color: var(--bad); }
.card-meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.map-card { padding: 16px 16px 16px; }
.map { height: 420px; border-radius: 8px; overflow: hidden; background: var(--cream-dark); }
.footer { padding: 16px 24px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--hairline); text-align: center; }

/* Buttons + Formulare */
.btn { font: inherit; font-weight: 500; border: 1px solid transparent; border-radius: 999px; padding: 10px 18px; cursor: pointer; }
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); }
.btn-ghost { background: transparent; border-color: var(--hairline); color: var(--text-light); padding: 7px 14px; font-size: 13px; }
.btn-ghost:hover { background: var(--cream); }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--text-light); }
.form input { font: inherit; padding: 11px 14px; border: 1px solid var(--hairline); border-radius: 8px; background: var(--white); color: var(--ink); }
.form input:focus { outline: 2px solid var(--sage); border-color: var(--green); }
.alert { background: #fbeae7; color: var(--bad); border: 1px solid #f0c9c2; border-radius: 8px; padding: 10px 14px; font-size: 14px; }

/* Login */
.login-body { background: linear-gradient(160deg, var(--cream) 0%, var(--sage-light) 100%); }
.login-wrap { flex: 1; display: grid; place-items: center; align-content: center; padding: 32px 16px; gap: 16px; }
.login-card { width: 100%; max-width: 400px; background: var(--white); border: 1px solid var(--hairline); border-radius: 16px;
              padding: 36px 32px 32px; box-shadow: var(--shadow); display: grid; gap: 18px; }
.login-logo { height: 44px; justify-self: start; }
.login-sub { margin: -8px 0 0; color: var(--muted); font-size: 14px; }
.login-foot { font-size: 12px; color: var(--muted); margin: 0; text-align: center; }

@media (max-width: 720px) {
  .topbar { gap: 12px; padding: 0 16px; }
  .nav { display: none; }
  .page { padding: 20px 16px 32px; }
  .map { height: 320px; }
}

/* Inserate */
.page-head h1 { font-size: clamp(40px, 5vw, 64px); }
.h-small { font-size: clamp(28px, 3.5vw, 40px) !important; line-height: 1.1; }
.back { font-size: 13px; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: end; }
.filters label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 500; }
.filters input, .filters select { font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid var(--hairline); border-radius: 8px; background: var(--white); min-width: 90px; }
.filters input[type=search] { min-width: 200px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 16px; align-items: start; }
.sticky { position: sticky; top: 80px; }
.stack { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.table-card { padding: 0; overflow: hidden; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--cream-dark); text-align: left; vertical-align: top; }
.table th { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--cream); }
.table td.num, .table th.num { text-align: right; white-space: nowrap; }
.table tr:hover td { background: #fbfaf8; }
.table .title { font-weight: 500; color: var(--ink); }
.table .title:hover { color: var(--green); }
.table .sub, .sub { font-size: 12px; color: var(--muted); }
.table .thumb { width: 72px; padding-right: 0; }
.table .thumb img, .table .thumb .noimg { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; background: var(--cream-dark); }
.noimg { display: grid; place-items: center; color: var(--muted); font-size: 11px; background: var(--cream-dark); }
.warn { color: #a3542a; }
.pop-geo { margin-top: 4px; color: #6b6b6b; font-size: 11px; }
.gallery .noimg, .gs-main.noimg { width: 100%; min-height: 220px; border-radius: 12px; }
.table .empty { text-align: center; color: var(--muted); padding: 32px; }
.table.compact td, .table.compact th { padding: 6px 8px; }
.down { color: var(--green); } .up { color: var(--bad); }
.pill { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.pill.on { background: var(--sage-light); color: var(--green-dark); }
.pill.off { background: var(--cream-dark); color: var(--muted); }
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; padding: 14px; font-size: 13px; color: var(--muted); }
.map-tall { height: calc(100vh - 140px); min-height: 420px; }
.pin { width: 14px; height: 14px; border-radius: 50%; background: var(--green); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3); cursor: pointer; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; background: var(--cream-dark); }
.prose { white-space: pre-line; margin: 8px 0 0; color: var(--text-light); font-size: 14px; }
.attrs { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; font-size: 13px; margin: 8px 0 0; }
.attrs dt { color: var(--muted); } .attrs dd { margin: 0; }
.mapboxgl-popup-content { font-family: var(--font-body); font-size: 13px; border-radius: 8px; }
@media (max-width: 1000px) { .split { grid-template-columns: 1fr; } .sticky { position: static; } .map-tall { height: 360px; } }

/* Inserat-Detail */
.crumbs { font-size: 13px; color: var(--muted); display: flex; gap: 8px; }
.crumbs a:hover { color: var(--green); }
.detail-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; padding: 16px; }
.hero-gallery { display: grid; grid-template-rows: auto auto; gap: 8px; }
.hero-main img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; background: var(--cream-dark); display: block; }
.hero-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.hero-thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: var(--cream-dark); display: block; }
.hero-thumbs .more { display: grid; place-items: center; aspect-ratio: 1; border-radius: 8px; background: var(--cream); color: var(--green); font-weight: 600; }
.no-img { display: grid; place-items: center; aspect-ratio: 4/3; border-radius: 10px; background: var(--cream); color: var(--muted); }
.hero-body { display: grid; gap: 12px; align-content: start; padding: 8px 8px 8px 0; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pill:not(.on):not(.off) { background: var(--cream); color: var(--text-light); }
.pill.warn { background: #fff1d6; color: #8a5a00; }
.h-detail { font-size: clamp(28px, 3vw, 40px) !important; line-height: 1.05; }
.addr { margin: 0; color: var(--text-light); }
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px; }
.price { font-family: var(--font-display); font-size: 44px; color: var(--green); line-height: 1; }
.price-prev { font-size: 13px; color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 16px; margin: 4px 0 0; padding: 14px 0 0; border-top: 1px solid var(--cream-dark); }
.facts div { display: grid; gap: 2px; }
.facts dt { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; font-family: var(--font-display); font-size: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { display: inline-flex; gap: 6px; align-items: baseline; font-size: 13px; padding: 6px 10px; border-radius: 8px; background: var(--cream); }
.chip span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.map-detail { height: 300px; }
.map-note { margin-top: 8px; }
@media (max-width: 900px) { .detail-hero { grid-template-columns: 1fr; } .facts { grid-template-columns: repeat(2, 1fr); } }

/* Büros & Betreuer */
.stars { color: #c9a227; letter-spacing: .05em; }
.ampel { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.ampel.grün, .ampel.gruen { background: var(--sage-light); color: var(--green-dark); }
.ampel.gelb { background: #fff1d6; color: #8a5a00; }
.ampel.rot { background: #fbeae7; color: var(--bad); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.facts-4 { grid-template-columns: repeat(4, 1fr); }
.facts dd.small { font-size: 18px; }
.card-value.small { font-size: 26px; }
.reviews { display: grid; gap: 10px; max-height: 480px; overflow: auto; }
.review { padding: 10px 12px; background: var(--cream); border-radius: 8px; font-size: 13px; }
.review p { margin: 6px 0 0; color: var(--text-light); }
.profil-row { display: grid; grid-template-columns: 160px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--cream-dark); }
.profil-row .prose { margin: 0; }
.filters label.check { flex-direction: row; align-items: center; gap: 6px; padding-bottom: 8px; }
@media (max-width: 720px) { .facts-4 { grid-template-columns: repeat(2, 1fr); } .profil-row { grid-template-columns: 1fr; } }

.legend { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: middle; margin-right: 4px; }
.legend.geo { background: var(--green); } .legend.wh { background: #9aa39c; }

/* ===== Modernisierung + Mobile ===== */
.filters-toggle { display: none; }
.view-toggle { display: none; }
.topbar { backdrop-filter: saturate(1.4) blur(10px); background: rgba(255,255,255,.88); }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 12px; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; align-items: center; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.tabbar { display: none; }
.card { border-radius: 16px; }
.btn { transition: transform .08s, background .15s; }
.btn:active { transform: scale(.97); }

@media (max-width: 900px) {
  .topbar { gap: 12px; padding: 0 16px; height: 60px; }
  .brand img { height: 32px; }
  .menu-btn { display: flex; }
  .topbar-right { display: none; }
  .nav { display: none; position: fixed; top: 60px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--hairline);
         flex-direction: column; padding: 8px 12px 12px; gap: 2px; box-shadow: var(--shadow); z-index: 20; }
  .nav a { padding: 12px 14px; font-size: 16px; border-radius: 12px; }
  body.menu-open .nav { display: flex; }
  body.menu-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
  body.menu-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding: 12px 14px; border-top: 1px solid var(--cream-dark); }
  .table .sub.hide-m { display: none; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 15;
            background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-top: 1px solid var(--hairline);
            padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a, .tabbar .tab-more { display: grid; justify-items: center; gap: 2px; font-size: 11px; font-weight: 500; color: var(--muted); padding: 4px 0; border-radius: 10px; background: none; border: 0; font-family: inherit; cursor: pointer; }
  body.menu-open .tabbar .tab-more { color: var(--green); }
  .tabbar a.active { color: var(--green); }
  .tabbar svg { width: 22px; height: 22px; fill: currentColor; }
  .page { padding: 16px 16px calc(84px + env(safe-area-inset-bottom)); gap: 16px; }
  .footer { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  .hero h1 { font-size: 44px; }
  .page-head h1 { font-size: 36px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card { padding: 14px 14px; }
  .card-value { font-size: 28px; }
  .card { padding: 14px 16px; }
  .card-value { font-size: 28px; }
  /* Filter einklappbar */
  .filters { gap: 8px 10px; }
  .filters:not(.open) > label:nth-child(n+4) { display: none; }
  .filters label { flex: 1 1 45%; }
  .filters input, .filters select { width: 100%; min-width: 0; font-size: 16px; }
  .filters input[type=search] { min-width: 0; }
  .filters .btn { flex: 1 1 auto; text-align: center; }
  .filters-toggle { display: inline-block; }
  /* Tabellen: wichtige Spalten behalten, Rest ausblenden, horizontales Scrollen */
  .table-card { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table th.hide-m, .table td.hide-m { display: none; }
  .table th, .table td { padding: 10px 10px; }
  /* Inserate: Kartenliste statt Tabelle */
  .listing-table { display: none; }
  .listing-cards { display: grid; gap: 10px; }
  .split { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .map-tall { height: 60vh; min-height: 320px; }
  .view-toggle { display: flex; }
  body.show-map .list-pane { display: none; }
  body:not(.show-map) .map-pane { display: none; }
  .detail-hero { padding: 12px; gap: 14px; }
  .price { font-size: 36px; }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .facts dd { font-size: 20px; }
  .hero-thumbs { grid-template-columns: repeat(5, 1fr); gap: 6px; }
}
@media (min-width: 901px) { .listing-cards { display: none; } .filters-toggle { display: none; } .view-toggle { display: none; } }
.view-toggle { gap: 6px; background: var(--white); border: 1px solid var(--hairline); border-radius: 999px; padding: 4px; width: max-content; }
.view-toggle button { font: inherit; font-size: 13px; font-weight: 500; border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; color: var(--muted); }
.view-toggle button.active { background: var(--green); color: var(--white); }
.lcard { display: grid; grid-template-columns: 96px 1fr; gap: 12px; background: var(--white); border: 1px solid var(--hairline); border-radius: 14px; padding: 10px; box-shadow: var(--shadow); }
.lcard img, .lcard .noimg { width: 96px; height: 80px; object-fit: cover; border-radius: 10px; background: var(--cream-dark); }
.lcard .noimg { display: grid; place-items: center; color: var(--muted); font-size: 11px; }
.lcard-body { min-width: 0; display: grid; gap: 4px; align-content: start; }
.lcard-title { font-weight: 500; font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lcard-meta { font-size: 12px; color: var(--muted); }
.lcard-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.lcard-price { font-family: var(--font-display); font-size: 22px; color: var(--green); }
.lcard-facts { font-size: 12px; color: var(--text-light); }

@media (max-width: 900px) {
  .bueros-table td:nth-child(3), .bueros-table td:nth-child(4), .bueros-table td:nth-child(5), .bueros-table td:nth-child(8) { display: none; }
  .betreuer-table td:nth-child(4), .betreuer-table td:nth-child(5), .betreuer-table td:nth-child(6), .betreuer-table td:nth-child(7) { display: none; }
  .regions-table td:nth-child(3), .regions-table td:nth-child(4), .regions-table td:nth-child(5), .regions-table td:nth-child(6) { display: none; }
}

.m-only { display: none; }
@media (max-width: 900px) { .m-only { display: flex; } }

/* Galerie */
.gallery-slider { display: grid; gap: 8px; }
.gs-stage { position: relative; border-radius: 12px; overflow: hidden; background: var(--cream-dark); aspect-ratio: 4/3; }
.gs-main { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.gs-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow); }
.gs-btn:hover { background: #fff; }
.gs-prev { left: 10px; } .gs-next { right: 10px; }
.gs-full { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 10px; border: 0; background: rgba(255,255,255,.85); font-size: 18px; cursor: pointer; }
.gs-count { position: absolute; left: 10px; bottom: 10px; background: rgba(26,26,26,.65); color: #fff; font-size: 12px; padding: 3px 8px; border-radius: 999px; }
.gs-thumbs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.gs-thumbs img { width: 72px; height: 54px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; cursor: pointer; opacity: .6; border: 2px solid transparent; }
.gs-thumbs img.active { opacity: 1; border-color: var(--green); }
.gs-empty { display: grid; place-items: center; aspect-ratio: 4/3; border-radius: 12px; background: var(--cream); color: var(--muted); }
.gs-overlay { position: fixed; inset: 0; background: rgba(10,10,10,.96); z-index: 100; display: grid; place-items: center; }
.gs-overlay img { max-width: 96vw; max-height: 92vh; object-fit: contain; border-radius: 6px; }
.gs-overlay .gs-btn { background: rgba(255,255,255,.18); color: #fff; width: 48px; height: 48px; }
.gs-overlay .gs-btn:hover { background: rgba(255,255,255,.3); }
.gs-close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; font-size: 28px; cursor: pointer; }
.gs-overlay .gs-count { left: 50%; transform: translateX(-50%); bottom: 16px; }

/* Immobilie: Zeitstrahl */
.timeline { display: grid; gap: 0; margin-top: 6px; }
.tl-item { display: grid; grid-template-columns: 18px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--cream-dark); }
.tl-item:last-child { border-bottom: 0; }
.tl-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--green); margin-top: 6px; box-shadow: 0 0 0 3px var(--sage-light); }
.tl-item.off .tl-dot { background: var(--hairline); box-shadow: 0 0 0 3px var(--cream); }
.tl-head { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.tl-facts { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--text-light); margin-top: 4px; }
.tl-price { font-weight: 600; color: var(--ink); }
.key-new { border-color: var(--green); background: var(--sage-light); }
.keybox { display: block; font-family: var(--font-mono); font-size: 14px; padding: 12px 14px; background: var(--white); border-radius: 8px; margin: 8px 0; word-break: break-all; user-select: all; }
.inline-form { display: flex; gap: 8px; margin: 10px 0 14px; }
.inline-form input { flex: 1; font: inherit; padding: 9px 12px; border: 1px solid var(--hairline); border-radius: 8px; }
code { font-family: var(--font-mono); font-size: 12px; background: var(--cream); padding: 1px 5px; border-radius: 4px; }
.hero-row { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.region-pick select { font: inherit; padding: 9px 12px; border: 1px solid var(--hairline); border-radius: 999px; background: var(--white); }
.kpi { display: block; } .kpi:hover { border-color: var(--sage); }
.map-dash { height: 440px; }
.listing-cards.always { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
@media (max-width: 900px) { .map-dash { height: 320px; } .listing-cards.always { grid-template-columns: 1fr; } }

.person-head { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; align-items: start; }
.person-head .avatar { grid-row: 1 / span 3; width: 120px; height: 150px; object-fit: cover; object-position: top; border-radius: 14px; border: 3px solid var(--white); box-shadow: var(--shadow); background: var(--cream-dark); }
@media (max-width: 720px) { .person-head .avatar { width: 84px; height: 105px; } .person-head { gap: 6px 12px; } }
@media (max-width: 480px) { .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } .chart-box { height: 200px; } .facts { grid-template-columns: repeat(2, 1fr); } }
.chart-box { position: relative; height: 220px; } .chart-box.tall { height: 280px; }
.review { padding: 10px 0; border-top: 1px solid var(--hairline); }
.review:first-child { border-top: 0; }
.review .who { font-weight: 600; } .review .when { color: var(--muted); font-size: 12px; }
.review mark { background: #eef3ef; color: inherit; padding: 0 2px; border-radius: 3px; }
.prov { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 6px; }
.prov-item { display: inline-flex; align-items: center; gap: 9px; padding: 5px 12px 5px 5px; border: 1px solid var(--hairline); border-radius: 999px; background: var(--white); color: inherit; text-decoration: none; line-height: 1.15; }
a.prov-item:hover { border-color: var(--sage); }
.prov-item .logo, .prov-item .photo { width: 32px; height: 32px; object-fit: cover; background: var(--cream-dark); flex: none; }
.prov-item .logo { border-radius: 50%; padding: 4px; box-sizing: border-box; object-fit: contain; }
.prov-item .photo { border-radius: 8px; object-position: top; }
.prov-item .initials { display: grid; place-items: center; font-weight: 600; color: var(--muted); font-size: 13px; }
.prov-name { display: block; font-weight: 600; font-size: 13px; } .prov-sub { display: block; font-size: 11px; color: var(--muted); }
.seg-switch { display: flex; flex-wrap: wrap; gap: 6px; }
.seg-switch button { font: inherit; font-size: 13px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--hairline); background: var(--white); cursor: pointer; }
.seg-switch button.active { background: var(--green); color: #fff; border-color: var(--green); }
.map-ana { height: 520px; border-radius: 12px; }
.legend-bar { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-top: 8px; }
.legend-bar .ramp { flex: 1; height: 10px; border-radius: 999px; background: linear-gradient(90deg, #e9f0ec, #8fb39b, #5e816a, #2f4a3a, #1a1a1a); max-width: 320px; }
.ana-note { font-size: 12px; color: var(--muted); }
@media (max-width: 900px) { .map-ana { height: 380px; } }
.share-bar { height: 10px; background: var(--cream-dark); border-radius: 999px; overflow: hidden; margin-top: 8px; }
.share-bar > div { height: 100%; background: var(--green, #5e816a); }
