/* gfundn. Klickdummy
   Farbregel 60/30/10: Blush Sand (Fläche), Cocoa Brown (Text, dunkle Flächen), Electric Blue (Akzent) */
:root {
  --sand: #EFE6DE;
  --sand-50: #F8F3EE;
  --sand-100: #F3ECE5;
  --sand-200: #E6D9CD;
  --sand-300: #D7C5B5;
  --cocoa: #4A3226;
  --cocoa-90: #5A4033;
  --cocoa-70: #7A6052;
  --cocoa-50: #9C8678;
  --blue: #2E6BFF;
  --blue-600: #1F55E0;
  --blue-50: #E4ECFF;
  --on-accent: #FFFFFF;
  --accent-on-dark: var(--accent-on-dark);
  --white: #FFFFFF;
  --ask: #B07A33;
  --ask-50: #F6EAD8;
  --wait: #9A8C82;
  --danger: #B9402C;
  --danger-50: #F7E1DC;
  --ok-50: #E4ECFF;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(74, 50, 38, .06), 0 10px 30px rgba(74, 50, 38, .08);
  --shadow-lg: 0 20px 60px rgba(74, 50, 38, .22);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 68px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--sand);
  color: var(--cocoa);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 15px; color: var(--cocoa); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.15; letter-spacing: -.02em; }
h1 { font-size: clamp(30px, 4.6vw, 54px); font-weight: 800; }
h2 { font-size: clamp(22px, 2.6vw, 32px); font-weight: 750; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--cocoa-70); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section-tight { padding: 36px 0; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

/* Demo-Banner */
.demo-banner {
  background: var(--cocoa);
  color: var(--sand);
  font-size: 12px;
  text-align: center;
  padding: 6px 16px;
}
.demo-banner b { color: var(--white); }
.demo-banner { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 5px 16px; }
.theme-select-wrap { display: inline-flex; align-items: center; gap: 6px; background: color-mix(in srgb, var(--sand) 14%, transparent); border-radius: 999px; padding: 2px 4px 2px 8px; cursor: pointer; }
.theme-sw { display: inline-flex; width: 34px; height: 14px; border-radius: 4px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.35); }
.theme-sw i:nth-child(1) { flex: 6; } .theme-sw i:nth-child(2) { flex: 3; } .theme-sw i:nth-child(3) { flex: 1; }
#theme-select { background: transparent; border: none; color: var(--white); font-size: 12px; font-weight: 650; padding: 3px 2px; cursor: pointer; outline: none; max-width: 260px; }
#theme-select option { color: #222; }
@media (max-width: 620px) { .demo-banner { gap: 4px; font-size: 11px; } }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--sand) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sand-200);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .02em; font-size: 17px; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px; background: var(--cocoa);
  display: grid; place-items: center; color: var(--sand);
}
.logo-mark svg { width: 20px; height: 20px; }
.logo small { display: block; font-weight: 500; font-size: 11px; color: var(--cocoa-70); letter-spacing: 0; margin-top: -2px; }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { padding: 8px 12px; border-radius: 999px; font-weight: 550; font-size: 14px; color: var(--cocoa-90); }
.nav a:hover { background: var(--sand-200); }
.nav a.active { background: var(--cocoa); color: var(--sand); }
.header-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.icon-btn {
  position: relative; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--sand-300);
  background: var(--sand-50); display: grid; place-items: center; color: var(--cocoa);
}
.icon-btn:hover { background: var(--white); }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn .count {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--blue); color: var(--on-accent); font-size: 11px; font-weight: 700;
  display: grid; place-items: center;
}
.avatar {
  width: 40px; height: 40px; border-radius: 999px; background: var(--cocoa); color: var(--sand);
  display: grid; place-items: center; font-weight: 700; border: none;
}
.burger { display: none; }
@media (max-width: 980px) {
  .nav { display: none; }
  .burger { display: grid; }
  .header-actions .hide-m { display: none; }
}
.mobile-nav {
  position: fixed; inset: 0; z-index: 90; background: var(--sand); padding: 20px; display: flex; flex-direction: column; gap: 6px;
}
.mobile-nav a { padding: 14px 12px; font-size: 18px; font-weight: 650; border-bottom: 1px solid var(--sand-200); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 650; font-size: 14px; line-height: 1.1; white-space: nowrap;
  transition: background .15s, transform .05s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--blue); color: var(--on-accent); }
.btn-primary:hover { filter: brightness(.93); }
.btn-dark { background: var(--cocoa); color: var(--sand); }
.btn-dark:hover { background: var(--cocoa-90); }
.btn-ghost { background: transparent; border-color: var(--sand-300); color: var(--cocoa); }
.btn-ghost:hover { background: var(--sand-50); }
.btn-light { background: var(--sand-50); color: var(--cocoa); border-color: var(--sand-300); }
.btn-light:hover { background: var(--white); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-link { background: none; border: none; color: var(--blue-600); padding: 0; font-weight: 600; }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.btn-lg { padding: 15px 24px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* Pills, badges */
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 650; background: var(--sand-200); color: var(--cocoa);
}
.pill svg { width: 13px; height: 13px; }
.pill-blue { background: var(--blue-50); color: var(--blue-600); }
.pill-dark { background: var(--cocoa); color: var(--sand); }
.pill-ask { background: var(--ask-50); color: var(--ask); }
.pill-wait { background: #ECE6E1; color: #6F6259; }
.pill-danger { background: var(--danger-50); color: var(--danger); }
.dot { width: 8px; height: 8px; border-radius: 999px; display: inline-block; }
.dot-ok { background: var(--blue); }
.dot-ask { background: var(--ask); }
.dot-wait { background: var(--wait); }
.dot-unknown { background: var(--sand-300); border: 1px solid var(--cocoa-50); }

/* Cards */
.card { background: var(--sand-50); border: 1px solid var(--sand-200); border-radius: var(--radius); padding: 20px; }
.card-white { background: var(--white); }
.card-dark { background: var(--cocoa); color: var(--sand); border-color: var(--cocoa); }
.card-dark .muted { color: var(--sand-300); }
.card h3 { margin-bottom: 6px; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-size: 13px; font-weight: 650; color: var(--cocoa-90); }
.input, .select, .textarea {
  width: 100%; padding: 11px 14px; border-radius: var(--radius-sm); border: 1px solid var(--sand-300);
  background: var(--white); outline: none; transition: border .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-50); }
.textarea { min-height: 110px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--blue); width: 16px; height: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--sand-300); background: var(--sand-50);
  font-size: 13px; font-weight: 600; color: var(--cocoa); display: inline-flex; gap: 6px; align-items: center;
}
.chip svg { width: 16px; height: 16px; }
.chip.on { background: var(--cocoa); color: var(--sand); border-color: var(--cocoa); }
.seg { display: inline-flex; background: var(--sand-200); border-radius: 999px; padding: 3px; }
.seg button { border: none; background: none; padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: 13px; color: var(--cocoa-90); }
.seg button.on { background: var(--white); color: var(--cocoa); box-shadow: 0 1px 3px rgba(74,50,38,.15); }
input[type=range] { accent-color: var(--blue); width: 100%; }

/* Hero */
.hero { padding: 56px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }
.eyebrow svg { width: 15px; height: 15px; flex: none; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 700; color: var(--blue-600); background: var(--blue-50); padding: 5px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 span { color: var(--cocoa-70); }
.hero-lead { font-size: 18px; color: var(--cocoa-90); max-width: 560px; }
.searchbox {
  background: var(--white); border-radius: 20px; padding: 10px; box-shadow: var(--shadow);
  display: grid; grid-template-columns: 1.4fr 1fr .8fr auto; gap: 6px; margin-top: 26px; border: 1px solid var(--sand-200);
}
.searchbox .sb-field { padding: 6px 12px; border-radius: 12px; display: flex; flex-direction: column; justify-content: center; }
.searchbox .sb-field:hover { background: var(--sand-50); }
.searchbox .sb-field + .sb-field { border-left: 1px solid var(--sand-200); }
.searchbox label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--cocoa-70); }
.searchbox input, .searchbox select { border: none; outline: none; background: transparent; padding: 2px 0; font-weight: 600; width: 100%; }
.searchbox .btn { height: 100%; min-height: 54px; border-radius: 14px; }
@media (max-width: 760px) {
  .searchbox { grid-template-columns: 1fr 1fr; }
  .searchbox .sb-field:first-child { grid-column: 1 / -1; }
  .searchbox .sb-field + .sb-field { border-left: none; }
  .searchbox .btn { grid-column: 1 / -1; }
}
.trust-row { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; font-size: 13px; color: var(--cocoa-70); font-weight: 550; }
.trust-row span { display: inline-flex; align-items: center; gap: 6px; }
.trust-row svg { width: 16px; height: 16px; color: var(--blue-600); }

.hero-visual {
  position: relative; height: 440px; border-radius: 28px; overflow: hidden; background: var(--cocoa);
  box-shadow: var(--shadow-lg);
}
.hero-visual .hv-map { position: absolute; inset: 0; }
.hero-float {
  position: absolute; background: var(--white); border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow-lg);
  font-size: 13px; z-index: 5;
}
.hero-float b { font-size: 15px; }
.hf-1 { left: 18px; bottom: 18px; width: 240px; }
.hf-2 { right: 18px; top: 18px; width: 210px; }

/* Kategorien */
.cat-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cat-tile {
  background: var(--sand-50); border: 1px solid var(--sand-200); border-radius: var(--radius); padding: 18px 14px;
  display: flex; flex-direction: column; gap: 10px; transition: transform .15s, box-shadow .15s;
}
.cat-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); background: var(--white); }
.cat-tile .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--sand-200); display: grid; place-items: center; }
.cat-tile .ic svg { width: 22px; height: 22px; }
.cat-tile b { font-size: 14px; }
.cat-tile span { font-size: 12px; color: var(--cocoa-70); }

/* Dunkle Sektion (30 %) */
.dark-section { background: var(--cocoa); color: var(--sand); }
.dark-section h2, .dark-section h3 { color: var(--white); }
.dark-section .muted { color: var(--sand-300); }
.step-num { width: 36px; height: 36px; border-radius: 999px; background: var(--blue); color: var(--on-accent); display: grid; place-items: center; font-weight: 800; margin-bottom: 14px; }
.stat-big { font-size: 40px; font-weight: 800; letter-spacing: -.03em; color: var(--white); }
.compare-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare-table th, .compare-table td { padding: 12px 10px; border-bottom: 1px solid var(--sand-200); text-align: left; vertical-align: top; }
.compare-table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--cocoa-70); }
.dark-section .compare-table th, .dark-section .compare-table td { border-color: color-mix(in srgb, var(--sand) 15%, transparent); }
.dark-section .compare-table thead th { color: var(--sand-300); }
.yes { color: var(--blue-600); font-weight: 700; }
.dark-section .yes { color: var(--accent-on-dark); }

/* Footer */
.footer { background: var(--cocoa); color: var(--sand-300); padding: 48px 0 28px; font-size: 14px; }
.footer h4 { color: var(--white); font-size: 14px; margin-bottom: 12px; }
.footer a { display: block; padding: 4px 0; color: var(--sand); }
.footer a:hover { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-bottom { border-top: 1px solid color-mix(in srgb, var(--sand) 15%, transparent); margin-top: 32px; padding-top: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12px; }

/* Suche */
.search-page { display: flex; flex-direction: column; height: calc(100vh - var(--header-h) - 28px); }
.filterbar {
  background: var(--sand-50); border-bottom: 1px solid var(--sand-200); padding: 12px 20px;
  display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap;
}
.filterbar .field { min-width: 120px; }
.filterbar .field.grow { flex: 1; min-width: 200px; }
.filterbar .input, .filterbar .select { padding: 9px 12px; }
.search-body { flex: 1; display: grid; grid-template-columns: minmax(380px, 46%) 1fr; min-height: 0; }
.results { overflow-y: auto; padding: 16px 20px 40px; }
.mapwrap { position: relative; border-left: 1px solid var(--sand-200); }
.map { position: absolute; inset: 0; background: var(--sand-200); }
.map-legend {
  position: absolute; left: 12px; bottom: 28px; z-index: 5; background: var(--white); border-radius: 12px;
  padding: 10px 12px; box-shadow: var(--shadow); font-size: 12px; display: grid; gap: 5px;
}
.map-legend div { display: flex; gap: 8px; align-items: center; }
.map-toggles { position: absolute; right: 12px; top: 12px; z-index: 5; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.map-redo { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 5; }
.mobile-switch { display: none; }
@media (max-width: 900px) {
  .search-page { height: auto; }
  .search-body { grid-template-columns: 1fr; }
  .mapwrap { height: 70vh; border-left: none; }
  .search-body.show-map .results { display: none; }
  .search-body:not(.show-map) .mapwrap { display: none; }
  .mobile-switch { display: flex; position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 40; box-shadow: var(--shadow-lg); }
}
.notice {
  border-radius: 12px; padding: 12px 14px; font-size: 14px; display: flex; gap: 10px; align-items: flex-start;
  background: var(--blue-50); color: var(--cocoa);
}
.notice svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--blue-600); }
.notice-warn { background: var(--ask-50); }
.notice-warn svg { color: var(--ask); }
.notice-danger { background: var(--danger-50); }
.notice-danger svg { color: var(--danger); }
.notice-dark { background: var(--cocoa); color: var(--sand); }
.notice-dark svg { color: var(--accent-on-dark); }

.listing {
  display: grid; grid-template-columns: 150px 1fr; gap: 14px; padding: 12px; border-radius: var(--radius);
  background: var(--sand-50); border: 1px solid var(--sand-200); margin-bottom: 12px; position: relative;
  transition: box-shadow .15s, border-color .15s, background .15s; cursor: pointer;
}
.listing:hover, .listing.hl { background: var(--white); box-shadow: var(--shadow); border-color: var(--sand-300); }
.listing.hl { border-color: var(--blue); }
.listing .thumb { border-radius: 12px; height: 100%; min-height: 128px; }
.listing h3 { font-size: 15px; margin: 4px 0 2px; }
.listing .meta { font-size: 13px; color: var(--cocoa-70); }
.listing .price { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.listing .price small { font-size: 12px; font-weight: 550; color: var(--cocoa-70); letter-spacing: 0; }
.listing .actions { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; }
.listing .actions button {
  width: 32px; height: 32px; border-radius: 999px; background: var(--white); border: 1px solid var(--sand-200);
  display: grid; place-items: center; color: var(--cocoa);
}
.listing .actions button svg { width: 16px; height: 16px; }
.listing .actions button.on { color: var(--blue-600); border-color: var(--blue); }
@media (max-width: 520px) { .listing { grid-template-columns: 1fr; } .listing .thumb { min-height: 150px; } }

.gesuch-card { border: 1.5px dashed var(--cocoa-50); background: transparent; }
.gesuch-card:hover { background: var(--sand-50); }

.thumb {
  position: relative; overflow: hidden; display: grid; place-items: center; color: rgba(255,255,255,.85);
  background: linear-gradient(135deg, var(--c1, #8A6A57), var(--c2, #4A3226));
}
.thumb > svg { width: 38%; max-width: 64px; height: auto; opacity: .9; }
.thumb::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 2px, transparent 2px 14px);
}
.thumb .tag { position: absolute; left: 8px; bottom: 8px; z-index: 2; }

/* Map-Pins */
.pin {
  background: var(--blue); color: var(--on-accent); font-weight: 750; font-size: 12px; padding: 5px 9px; border-radius: 999px;
  box-shadow: 0 2px 6px rgba(74,50,38,.35); border: 2px solid var(--white); white-space: nowrap; cursor: pointer;
  transition: transform .12s; display: inline-flex; gap: 4px; align-items: center; font-family: var(--font);
}
.pin:hover, .pin.hl { transform: scale(1.15); z-index: 10; }
.pin.hl { background: var(--cocoa) !important; color: var(--white) !important; }
.pin-ask { background: var(--white); color: var(--ask); border-color: var(--ask); }
.pin-wait { background: #E9E2DC; color: #6F6259; border-color: var(--white); }
.pin-unknown { background: var(--white); color: var(--cocoa-70); border-color: var(--sand-300); }
.pin-private { background: var(--cocoa); color: var(--sand); }
.pin svg { width: 12px; height: 12px; }
.pin-gesuch {
  background: var(--sand-50); color: var(--cocoa); border: 2px dashed var(--cocoa); font-size: 11px;
}
.pin-cluster { background: var(--cocoa); color: var(--sand); min-width: 34px; justify-content: center; }
.pin-me { width: 18px; height: 18px; border-radius: 999px; background: var(--blue); border: 3px solid var(--white); box-shadow: 0 0 0 6px color-mix(in srgb, var(--blue) 25%, transparent); }
.maplibregl-popup-content { border-radius: 14px !important; padding: 12px 14px !important; font-family: var(--font); color: var(--cocoa); box-shadow: var(--shadow-lg) !important; }

/* Detail */
.breadcrumbs { font-size: 13px; color: var(--cocoa-70); padding: 18px 0 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.breadcrumbs a:hover { color: var(--blue-600); }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 180px 180px; gap: 8px; border-radius: 22px; overflow: hidden; }
.gallery .thumb:first-child { grid-row: 1 / 3; }
.gallery .thumb:nth-child(4) { grid-column: 2 / 4; }
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 110px; } .gallery .thumb:first-child { grid-column: 1 / 3; grid-row: auto; } .gallery .thumb:nth-child(4) { display: none; } }
.detail-grid { display: grid; grid-template-columns: 1fr 380px; gap: 32px; margin-top: 26px; align-items: start; }
@media (max-width: 960px) { .detail-grid { grid-template-columns: 1fr; } }
.sticky { position: sticky; top: calc(var(--header-h) + 16px); }
.unit-table { width: 100%; border-collapse: separate; border-spacing: 0 6px; font-size: 14px; }
.unit-table td { background: var(--sand-50); padding: 12px; border-top: 1px solid var(--sand-200); border-bottom: 1px solid var(--sand-200); }
.unit-table td:first-child { border-left: 1px solid var(--sand-200); border-radius: 12px 0 0 12px; }
.unit-table td:last-child { border-right: 1px solid var(--sand-200); border-radius: 0 12px 12px 0; text-align: right; }
.unit-table tr { cursor: pointer; }
.unit-table tr.sel td { background: var(--white); border-color: var(--blue); }
.unit-table input { accent-color: var(--blue); }
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.feature-list div { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.feature-list svg { width: 18px; height: 18px; color: var(--blue-600); flex: none; }
.feature-list .off { color: var(--cocoa-50); text-decoration: line-through; }
.feature-list .off svg { color: var(--cocoa-50); }
.calc { background: var(--white); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); border: 1px solid var(--sand-200); }
.calc .total { font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.calc-lines { font-size: 14px; border-top: 1px solid var(--sand-200); margin-top: 12px; padding-top: 10px; }
.calc-lines div { display: flex; justify-content: space-between; padding: 4px 0; }
.calc-lines .sum { border-top: 1px solid var(--sand-200); margin-top: 6px; padding-top: 10px; font-weight: 750; }
.source-box { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; padding: 12px 14px; border-radius: 12px; background: var(--sand-100); border: 1px solid var(--sand-200); }
.source-box svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.host { display: flex; gap: 14px; align-items: center; }
.host .avatar { width: 52px; height: 52px; font-size: 18px; }
.minimap { height: 260px; border-radius: 18px; overflow: hidden; position: relative; }
.divider { height: 1px; background: var(--sand-200); margin: 26px 0; }

/* Modal, Toast */
.modal-back {
  position: fixed; inset: 0; background: rgba(74, 50, 38, .45); z-index: 100; display: grid; place-items: center; padding: 16px;
  animation: fade .15s ease;
}
.modal {
  background: var(--sand-50); border-radius: 22px; width: min(560px, 100%); max-height: 90vh; overflow: auto; padding: 26px;
  box-shadow: var(--shadow-lg); animation: pop .18s ease; position: relative;
}
.modal-wide { width: min(820px, 100%); }
.modal-close { position: absolute; top: 14px; right: 14px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0; } }
.toast-wrap { position: fixed; bottom: 22px; right: 22px; z-index: 200; display: grid; gap: 8px; }
.toast {
  background: var(--cocoa); color: var(--sand); padding: 12px 16px; border-radius: 14px; box-shadow: var(--shadow-lg);
  font-size: 14px; display: flex; gap: 10px; align-items: center; animation: pop .2s ease; max-width: 360px;
}
.toast svg { width: 18px; height: 18px; color: var(--accent-on-dark); flex: none; }

/* Wizard */
.wizard { display: grid; grid-template-columns: 260px 1fr; gap: 32px; padding: 32px 0 64px; align-items: start; }
@media (max-width: 860px) { .wizard { grid-template-columns: 1fr; } .wizard-steps { display: none; } }
.wizard-steps { background: var(--cocoa); color: var(--sand); border-radius: 20px; padding: 20px; }
.wizard-steps ol { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 4px; }
.wizard-steps li { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 12px; font-size: 14px; color: var(--sand-300); }
.wizard-steps li .n { width: 26px; height: 26px; border-radius: 999px; border: 1.5px solid var(--sand-300); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.wizard-steps li.done { color: var(--sand); }
.wizard-steps li.done .n { background: var(--sand); color: var(--cocoa); border-color: var(--sand); }
.wizard-steps li.cur { background: color-mix(in srgb, var(--sand) 10%, transparent); color: var(--white); font-weight: 650; }
.wizard-steps li.cur .n { background: var(--blue); border-color: var(--blue); color: var(--on-accent); }
.progress { height: 6px; border-radius: 999px; background: var(--sand-200); overflow: hidden; margin-bottom: 22px; }
.progress div { height: 100%; background: var(--blue); transition: width .3s; }
.type-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 560px) { .type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.type-opt {
  border: 1.5px solid var(--sand-300); background: var(--sand-50); border-radius: 16px; padding: 16px; text-align: left;
  display: flex; flex-direction: column; gap: 8px; color: var(--cocoa);
}
.type-opt svg { width: 26px; height: 26px; }
.type-opt b { font-size: 14px; }
.type-opt span { font-size: 12px; color: var(--cocoa-70); }
.type-opt.on { border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 3px var(--blue-50); }
.dropzone {
  border: 2px dashed var(--sand-300); border-radius: 18px; padding: 30px; text-align: center; background: var(--sand-50); cursor: pointer;
}
.dropzone:hover { border-color: var(--blue); background: var(--white); }
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.photo-grid .thumb { height: 90px; border-radius: 12px; }

/* Konto, Nachrichten */
.account { display: grid; grid-template-columns: 240px 1fr; gap: 28px; padding: 28px 0 64px; align-items: start; }
@media (max-width: 860px) { .account { grid-template-columns: 1fr; } }
.side-nav { display: grid; gap: 2px; background: var(--sand-50); border: 1px solid var(--sand-200); border-radius: 18px; padding: 8px; }
.side-nav a { padding: 10px 12px; border-radius: 12px; font-size: 14px; font-weight: 600; display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.side-nav a span.l { display: flex; gap: 10px; align-items: center; }
.side-nav a svg { width: 18px; height: 18px; }
.side-nav a:hover { background: var(--sand-200); }
.side-nav a.active { background: var(--cocoa); color: var(--sand); }
.kpi { background: var(--sand-50); border: 1px solid var(--sand-200); border-radius: 16px; padding: 16px; }
.kpi .v { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.kpi .l { font-size: 13px; color: var(--cocoa-70); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--sand-50); border-radius: 16px; overflow: hidden; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--sand-200); vertical-align: middle; }
.table th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--cocoa-70); background: var(--sand-100); }
.table tr:last-child td { border-bottom: none; }
.table-wrap { overflow-x: auto; border: 1px solid var(--sand-200); border-radius: 16px; }
.chat { display: grid; grid-template-columns: 300px 1fr; height: calc(100vh - var(--header-h) - 120px); min-height: 520px; border: 1px solid var(--sand-200); border-radius: 20px; overflow: hidden; background: var(--sand-50); }
@media (max-width: 860px) { .chat { grid-template-columns: 1fr; } .chat.has-thread .threads { display: none; } .chat:not(.has-thread) .thread { display: none; } }
.threads { border-right: 1px solid var(--sand-200); overflow-y: auto; }
.thread-item { display: flex; gap: 12px; padding: 14px; border-bottom: 1px solid var(--sand-200); align-items: center; }
.thread-item:hover { background: var(--sand-100); }
.thread-item.active { background: var(--white); box-shadow: inset 3px 0 0 var(--blue); }
.thread-item .avatar { width: 42px; height: 42px; flex: none; }
.thread-item .t { font-weight: 650; font-size: 14px; }
.thread-item .p { font-size: 13px; color: var(--cocoa-70); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; }
.thread { display: flex; flex-direction: column; min-height: 0; }
.thread-back { display: none !important; }
@media (max-width: 860px) { .thread-back { display: grid !important; } }
.thread-head { padding: 14px 18px; border-bottom: 1px solid var(--sand-200); display: flex; gap: 12px; align-items: center; background: var(--white); }
.msgs { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 72%; padding: 10px 14px; border-radius: 18px; font-size: 14px; background: var(--white); border: 1px solid var(--sand-200); }
/* */
.msg.me { align-self: flex-end; background: var(--blue); color: var(--on-accent); border-color: var(--blue); border-bottom-right-radius: 6px; }
.msg.them { border-bottom-left-radius: 6px; }
.msg .time { font-size: 11px; opacity: .7; margin-top: 4px; }
.msg.sys { align-self: center; background: var(--sand-200); border: none; font-size: 13px; text-align: center; max-width: 90%; }
.composer { border-top: 1px solid var(--sand-200); padding: 12px; background: var(--white); }
.composer .row { flex-wrap: nowrap; }
.quick-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }

/* Bars */
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 140px 1fr 70px; gap: 12px; align-items: center; font-size: 14px; }
.bar-track { height: 12px; border-radius: 999px; background: var(--sand-200); overflow: hidden; }
.bar-fill { height: 100%; background: var(--cocoa); border-radius: 999px; }
.bar-fill.blue { background: var(--blue); }
.vbars { display: flex; align-items: flex-end; gap: 6px; height: 140px; }
.vbars div { flex: 1; background: var(--cocoa); border-radius: 6px 6px 0 0; position: relative; min-height: 4px; }
.vbars div.blue { background: var(--blue); }

/* Artikel */
.article { font-size: 17px; line-height: 1.7; }
.article h2 { margin-top: 1.6em; font-size: 24px; }
.article ul { padding-left: 20px; }
.article li { margin-bottom: 6px; }
.faq details { background: var(--sand-50); border: 1px solid var(--sand-200); border-radius: 14px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { font-weight: 650; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--blue-600); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 10px 0 0; color: var(--cocoa-90); }

.empty { text-align: center; padding: 48px 20px; }
.empty .ic { width: 64px; height: 64px; border-radius: 20px; background: var(--sand-200); display: grid; place-items: center; margin: 0 auto 16px; }
.empty .ic svg { width: 30px; height: 30px; }
.contract { background: var(--white); border-radius: 12px; padding: 28px; font-size: 13px; line-height: 1.6; border: 1px solid var(--sand-200); font-family: Georgia, serif; }
.contract h3 { font-family: var(--font); text-align: center; }
.kbd { font-family: ui-monospace, monospace; background: var(--sand-200); padding: 2px 6px; border-radius: 6px; font-size: 12px; }

/* Mobile Feinschliff */
@media (max-width: 620px) {
  .container, .narrow { padding: 0 16px; }
  .header-inner { gap: 10px; }
  .header-actions { gap: 6px; }
  .logo small { display: none; }
  .logo { font-size: 16px; }
  .icon-btn, .avatar { width: 36px; height: 36px; }
  .filterbar { padding: 10px 16px; gap: 8px; }
  .filterbar #f-alarm { display: none; }
  .filterbar .f-mode { flex: 1; }
  .filterbar .f-mode button { flex: 1; justify-content: center; }
  .results { padding: 12px 16px 90px; }
  .toast-wrap { left: 12px; right: 12px; bottom: 80px; }
  .toast { max-width: none; }
  .hero-visual { height: 320px; }
  .card-dark[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .bar-row { grid-template-columns: 100px 1fr 56px; }
}
.account > *, .wizard > *, .detail-grid > *, .search-body > * { min-width: 0; }

/* Theme-Umschalter */
.theme-fab { position: fixed; left: 16px; bottom: 16px; z-index: 60; }
.theme-pop { position: fixed; left: 16px; bottom: 70px; z-index: 61; background: var(--sand-50); border: 1px solid var(--sand-200); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 14px; width: 320px; max-width: calc(100vw - 32px); }
.theme-opt { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; background: none; border: 1.5px solid transparent; border-radius: 12px; padding: 8px; color: var(--cocoa); }
.theme-opt:hover { background: var(--sand-100); }
.theme-opt.on { border-color: var(--blue); background: var(--white); }
.swatch { display: flex; height: 34px; width: 92px; border-radius: 8px; overflow: hidden; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.swatch i:nth-child(1) { flex: 6; } .swatch i:nth-child(2) { flex: 3; } .swatch i:nth-child(3) { flex: 1; }
@media (max-width: 900px) { .theme-fab { bottom: 76px; } .theme-pop { bottom: 130px; } }

/* Wortmarke gfundn. */
.wordmark { font-weight: 800; letter-spacing: -.035em; font-size: 21px; line-height: 1; text-transform: lowercase; }
.wm-dot { color: var(--blue); }
.logo > span:last-child:not(.wordmark) { display: flex; flex-direction: column; gap: 3px; }
.logo small { margin-top: 0 !important; letter-spacing: .01em; }
.logo-mark { position: relative; }
.logo-mark i { width: 12px; height: 12px; border-radius: 999px; background: var(--blue); display: block; }
.logo-mark-inv { background: var(--sand); }
.footer .wordmark { color: var(--white); }

/* =====================================================================
   Apple-Design-Feinschliff (nach emilkowalski/skills: apple-design)
   Reaktion beim Drücken, Materialien, Federbewegung, Typografie, A11y
   ===================================================================== */

/* Typografie: Systemschrift zuerst (SF auf Apple-Geräten), größenabhängiges Tracking */
body { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, "Segoe UI", sans-serif; font-optical-sizing: auto; letter-spacing: 0; }
h1 { letter-spacing: -.035em; line-height: 1.04; }
h2 { letter-spacing: -.025em; line-height: 1.1; }
h3 { letter-spacing: -.012em; line-height: 1.25; }
.hero-lead { line-height: 1.55; letter-spacing: -.006em; }
.small { letter-spacing: .003em; }
.xs { letter-spacing: .012em; line-height: 1.45; }
.wordmark { letter-spacing: -.04em; }
:focus-visible { outline: 2.5px solid var(--blue-600); outline-offset: 2px; border-radius: 8px; }

/* Reaktion: Feedback sofort beim Drücken, nicht erst beim Loslassen */
.btn, .icon-btn, .chip, .type-opt, .theme-opt, .listing, .cat-tile, a.card, a.kpi, .avatar, .seg button {
  transition: transform .32s cubic-bezier(.2, .8, .2, 1), background-color .15s, border-color .15s, box-shadow .2s, color .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); transition: transform 100ms ease-out; }
.icon-btn:active, .chip:active, .type-opt:active, .theme-opt:active, .avatar:active, .seg button:active { transform: scale(.94); transition: transform 100ms ease-out; }
.listing:active, .cat-tile:active, a.card:active, a.kpi:active { transform: scale(.985); transition: transform 100ms ease-out; }
.pin:active { transform: scale(.9); transition: transform 80ms ease-out; }
.cat-tile:hover { transform: translateY(-2px); }
.seg button.on { transition: background-color .2s, box-shadow .2s; }

/* Materialien: Glas-Header, Inhalt scrollt darunter; Kante erst bei Überlappung */
.header {
  background: color-mix(in srgb, var(--sand) 72%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  border-bottom-color: transparent; transition: border-color .2s, box-shadow .2s;
}
.header.scrolled { border-bottom-color: color-mix(in srgb, var(--cocoa) 10%, transparent); box-shadow: 0 1px 14px color-mix(in srgb, var(--cocoa) 6%, transparent); }

/* Schwebende Kartenelemente als helles Glas (nie Glas auf Glas) */
.map-legend, .map-toggles .btn, .map-redo, .maplibregl-popup-content {
  background: color-mix(in srgb, var(--sand-50) 78%, transparent) !important;
  -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid color-mix(in srgb, #fff 55%, transparent);
}
.map-redo { color: var(--cocoa) !important; font-weight: 700; }
.maplibregl-popup-tip { display: none; }

/* Toasts: dunkles Material, rein und raus auf demselben Weg */
.toast {
  background: color-mix(in srgb, var(--cocoa) 90%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  animation: toastIn .34s cubic-bezier(.32, .72, 0, 1);
  transition: transform .26s cubic-bezier(.4, 0, 1, 1), opacity .26s;
}
.toast.out { transform: translateY(18px) scale(.98); opacity: 0; }
@keyframes toastIn { from { transform: translateY(18px) scale(.98); opacity: 0; } }

/* Modals: abdunkeln zum Fokussieren, Fläche materialisiert sich (Blur + Skalierung) */
.modal-back {
  background: color-mix(in srgb, var(--cocoa) calc(45% * var(--scrim, 1)), transparent);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.modal { animation: materialize .3s cubic-bezier(.32, .72, 0, 1); transform-origin: 50% 40%; }
@keyframes materialize { from { opacity: 0; transform: scale(.95); filter: blur(6px); } }
.modal-back.closing { animation: fadeOut .18s ease forwards; pointer-events: none; }
.modal-back.closing .modal { animation: dematerialize .18s ease forwards; }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes dematerialize { to { opacity: 0; transform: scale(.96); filter: blur(4px); } }
.sheet-grab { display: none; flex-direction: column; align-items: center; gap: 6px; padding: 10px 16px 6px; cursor: grab; touch-action: none; user-select: none; }
.sheet-handle { width: 40px; height: 5px; border-radius: 999px; background: color-mix(in srgb, var(--cocoa) 22%, transparent); }

/* Handy: Modals werden zu Bottom Sheets, die man nach unten wegzieht */
@media (max-width: 620px) {
  .modal-back { align-items: end; place-items: end center; padding: 0; }
  .modal { width: 100%; max-height: 92dvh; border-radius: 26px 26px 0 0; padding: 4px 20px calc(24px + env(safe-area-inset-bottom)); animation: sheetIn .42s cubic-bezier(.32, .72, 0, 1); touch-action: pan-y; }
  .modal .modal-grab { display: flex; margin: 0 -20px 4px; }
  .modal-close { top: 12px; right: 12px; }
  .modal-back.closing .modal { animation: none; }
  .modal-back.closing { animation: none; }
}
@keyframes sheetIn { from { transform: translateY(100%); } }

/* Suche: Ergebnisspalte (Desktop) und Bottom Sheet über der Karte (Handy) */
.results-sheet { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.results-sheet .results { flex: 1; min-height: 0; overscroll-behavior: contain; }
.mobile-switch { display: none !important; }
@media (max-width: 900px) {
  .search-body { position: relative; display: block; overflow: hidden; height: 72vh; flex: none; }
  .search-body .mapwrap { position: absolute; inset: 0; height: auto; display: block !important; border: 0; }
  .search-body .results-sheet {
    position: absolute; left: 0; right: 0; top: 0; height: 100%; z-index: 6; will-change: transform; transform: translateY(48%);
    background: color-mix(in srgb, var(--sand) 92%, transparent);
    -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
    border-radius: 24px 24px 0 0; box-shadow: 0 -10px 34px color-mix(in srgb, var(--cocoa) 22%, transparent);
    border-top: 1px solid color-mix(in srgb, #fff 60%, transparent);
  }
  .search-body .results-sheet .results { display: block !important; padding-top: 4px; }
  .search-body .sheet-grab { display: flex; }
  .map-legend { display: none; }
  .map-toggles { top: 10px; right: 10px; }
}

/* Formular-Fehler: sanftes Anstupsen in Richtung der Aufmerksamkeit */
.nudge { animation: nudge .32s cubic-bezier(.36, .07, .19, .97); }
@keyframes nudge { 30% { transform: translateX(-5px); } 60% { transform: translateX(4px); } }

/* Barrierefreiheit: weniger Bewegung, weniger Transparenz, mehr Kontrast */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .modal { animation: fadeIn .2s ease !important; }
  @keyframes fadeIn { from { opacity: 0; } }
}
@media (prefers-reduced-transparency: reduce) {
  .header, .search-body .results-sheet, .toast, .modal-back, .map-legend, .map-toggles .btn, .map-redo, .maplibregl-popup-content { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .header { background: var(--sand); }
  .search-body .results-sheet { background: var(--sand); }
  .toast { background: var(--cocoa); }
  .map-legend, .map-toggles .btn, .map-redo, .maplibregl-popup-content { background: var(--sand-50) !important; }
}
@media (prefers-contrast: more) {
  .card, .listing, .input, .select, .btn-ghost, .btn-light, .kpi, .table-wrap { border-color: var(--cocoa) !important; }
  .muted, .listing .meta { color: var(--cocoa-90) !important; }
  .header { background: var(--sand); border-bottom: 1px solid var(--cocoa); }
}

/* Festes Farbschema „Salbei, Graphit & Limette“ auf weißem Grund */
:root {
  --sand: #FFFFFF; --sand-50: #F6F8F5; --sand-100: #F2F4F0; --sand-200: #D9DFD3; --sand-300: #BFC7B8;
  --cocoa: #24272A; --cocoa-90: #33373B; --cocoa-70: #62686C; --cocoa-50: #959A9C;
  --blue: #C6F03A; --blue-600: #4E6600; --blue-50: #EFFBCB; --on-accent: #24272A; --accent-on-dark: #C6F03A;
  --map-bg: #FAFBF9; --ask: #62686C; --ask-50: #E3E6E2;
}
.demo-banner { padding: 6px 16px; }
.loading { display: grid; place-items: center; min-height: 50vh; color: var(--cocoa-70); }
.spinner { width: 28px; height: 28px; border-radius: 999px; border: 3px solid var(--sand-200); border-top-color: var(--blue); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.photo-real { background-size: cover !important; background-position: center !important; }
.photo-real > svg, .photo-real::after { display: none; }
.photo-grid .ph { position: relative; }
.photo-grid .ph button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 999px; border: 0; background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center; }
.photo-grid .ph button svg { width: 14px; height: 14px; }

/* Datenfeed */
.btn.is-busy { opacity: .6; cursor: progress; }
#feed-card code, .narrow code { font: 12.5px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--sand-100); padding: 1px 5px; border-radius: 6px; }

/* Sucheinstieg Startseite: Reiter Lagern / Parken */
.finder { margin-top: 26px; background: var(--white); border: 1px solid var(--sand-200); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; max-width: 600px; }
.finder-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px 8px 0; }
.finder-tab { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 12px; border: 0; border-radius: 14px 14px 0 0; background: var(--sand-50); color: var(--cocoa-70); font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; transition: background .2s, color .2s; }
.finder-tab svg { width: 20px; height: 20px; }
.finder-tab:hover { color: var(--cocoa); }
.finder-tab.on { background: var(--blue); color: var(--on-accent); }
.finder-tab:focus-visible { outline: 3px solid var(--blue-600); outline-offset: -3px; }
.finder-body { padding: 16px 16px 16px; border-top: 3px solid var(--blue); }
.finder-hint { margin: 0 0 10px; font-size: 14px; color: var(--cocoa-90); text-align: center; }
.finder-chips { justify-content: center; margin-bottom: 12px; }
.finder-chips .chip svg { width: 16px; height: 16px; }
.finder-input { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--sand-300); border-radius: 12px; padding: 0 12px; background: var(--white); transition: border-color .15s; }
.finder-input:focus-within { border-color: var(--cocoa); }
.finder-input > svg { width: 20px; height: 20px; color: var(--cocoa-70); flex: none; }
.finder-input input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; font-weight: 600; padding: 14px 0; color: var(--cocoa); }
.finder-clear { border: 0; background: var(--sand-100); width: 26px; height: 26px; border-radius: 99px; display: grid; place-items: center; cursor: pointer; color: var(--cocoa-70); flex: none; }
.finder-clear svg { width: 14px; height: 14px; }
.finder-go { width: 100%; justify-content: center; margin-top: 12px; }
.use-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 900px) { .use-groups { grid-template-columns: 1fr; } }
.use-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.use-head > svg { width: 36px; height: 36px; padding: 8px; border-radius: 12px; background: var(--blue); color: var(--on-accent); flex: none; box-sizing: border-box; }
.use-head b { display: block; font-size: 18px; }
.use-head span { font-size: 13px; color: var(--cocoa-70); }
.cat-grid.cat-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 560px) { .cat-grid.cat-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .finder-tab { font-size: 15px; padding: 12px 8px; } }

/* Beide Gruppen teilen sich die Zeilen, damit die Kacheln in Parken und Lagern gleich hoch sind */
@media (min-width: 901px) {
  .use-groups { grid-template-rows: auto auto; row-gap: 0; }
  .use-group { display: grid; grid-row: span 2; grid-template-rows: subgrid; }
  .use-group .cat-grid { height: 100%; }
  .use-group .cat-tile { height: 100%; box-sizing: border-box; }
}
@media (max-width: 1100px) and (min-width: 901px) { .header-inner { gap: 14px; } .nav { margin-left: 0; } .nav a { padding: 8px 9px; } }

/* ---------- Schwebende Navigationsleiste (Glas) ---------- */
.header, .header.scrolled { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border: 0; box-shadow: none; padding-top: 10px; pointer-events: none; }
.header .header-inner {
  pointer-events: auto; height: calc(var(--header-h) - 10px); width: calc(100% - 24px); max-width: 1240px; padding: 0 10px 0 16px; border-radius: 20px;
  background: color-mix(in srgb, var(--white) 82%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid color-mix(in srgb, var(--cocoa) 8%, transparent);
  box-shadow: 0 8px 28px color-mix(in srgb, var(--cocoa) 10%, transparent);
}
.header.scrolled .header-inner { box-shadow: 0 10px 32px color-mix(in srgb, var(--cocoa) 16%, transparent); }
.nav { margin-left: auto; margin-right: auto; }
.header-actions { margin-left: 0; }
@media (max-width: 980px) { .header-actions { margin-left: auto; } }
@media (prefers-reduced-transparency: reduce) { .header .header-inner { background: var(--white); -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media (prefers-contrast: more) { .header { background: transparent; border: 0; } .header .header-inner { background: var(--white); border-color: var(--cocoa); } }

/* ---------- Startseite: Foto über die ganze Breite (Welle ist Teil des Bildes) ---------- */
.hero.hx { position: relative; isolation: isolate; margin-top: calc(-1 * var(--header-h)); padding: calc(var(--header-h) + 34px) 0 0; min-height: max(640px, calc(100vw / 2.333)); color: #fff; overflow: hidden; }
.hx-media { position: absolute; inset: 0; z-index: -1; background: var(--sand); }
.hx-media img { width: 100%; height: 100%; object-fit: cover; object-position: 0% 88%; display: block; }
.hx-shade { position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(14,26,16,.82) 0%, rgba(14,26,16,.66) 28%, rgba(14,26,16,.28) 46%, rgba(14,26,16,0) 60%),
              linear-gradient(180deg, rgba(14,26,16,.35) 0%, rgba(14,26,16,0) 22%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 58%, transparent 74%); mask-image: linear-gradient(180deg, #000 0%, #000 58%, transparent 74%); }
.hx-inner { display: grid; grid-template-columns: minmax(0, 600px); align-items: start; }
.hx-copy { min-width: 0; padding-bottom: 40px; }
.hx-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; font-size: 13px; font-weight: 650; color: #fff;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.26); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); margin-bottom: 16px; }
.flag-at { width: 20px; height: 14px; border-radius: 3px; flex: none; background: linear-gradient(#ED2939 0 33.3%, #fff 33.3% 66.6%, #ED2939 66.6%); box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.hx h1 { color: #fff; font-size: clamp(34px, 3.4vw, 50px); line-height: 1.04; letter-spacing: -.035em; margin: 0; text-shadow: 0 2px 20px rgba(0,0,0,.3); }
.hx h1 span { color: var(--blue); display: block; }
.hx-lead { font-size: 17px; line-height: 1.5; color: rgba(255,255,255,.94); max-width: 520px; margin: 12px 0 0; text-shadow: 0 1px 12px rgba(0,0,0,.3); }
.hx-finder { margin-top: 22px; max-width: 600px; box-shadow: 0 24px 60px rgba(0,0,0,.22); border: 0; color: var(--cocoa); }
.hx-finder .finder-tab { padding: 11px 12px; font-size: 15px; }
.hx-finder .finder-body { padding: 12px; }
.hx-row { display: flex; gap: 10px; }
.hx-row .finder-input { flex: 1; min-width: 0; }
.hx-row .finder-input input { padding: 12px 0; }
.hx-go { flex: none; min-width: 120px; justify-content: center; min-height: 48px; }
.finder-locate { border: 0; background: none; width: 34px; height: 34px; border-radius: 99px; display: grid; place-items: center; cursor: pointer; color: var(--cocoa-70); flex: none; }
.finder-locate:hover { background: var(--sand-100); color: var(--cocoa); }
.finder-locate svg { width: 18px; height: 18px; }
.finder-locate.is-busy { animation: spin 1s linear infinite; }
.hx-finder .finder-chips { justify-content: flex-start; margin: 10px 0 0; gap: 6px; }
.hx-finder .finder-chips .chip { font-size: 13px; padding: 5px 10px; }

.hx-features { margin-top: 4px; position: relative; z-index: 1; }
.hx-features .container { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.hx-feat { display: flex; gap: 12px; padding: 6px 20px; }
.hx-feat + .hx-feat { border-left: 1px solid var(--sand-200); }
.hx-feat > span { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-600); }
.hx-feat > span svg { width: 20px; height: 20px; }
.hx-feat b { display: block; font-size: 15px; }
.hx-feat p { margin: 4px 0 0; font-size: 13px; color: var(--cocoa-70); line-height: 1.45; }

@media (max-width: 900px) {
  .hx-features .container { grid-template-columns: 1fr 1fr; row-gap: 18px; }
  .hx-feat:nth-child(3) { border-left: 0; }
}
/* Handy: Foto als Streifen oben, darunter Überschrift und Suche in normalen Farben auf Weiß */
@media (max-width: 760px) {
  .hero.hx { margin-top: 4px; min-height: 0; padding: calc(100vw / 1.777 + 6px) 0 8px; color: var(--cocoa); }
  .hx-media img { border-radius: 0; }
  .hx-media { bottom: auto; height: calc(100vw / 1.777); }
  .hx-media img { object-position: 50% 100%; }
  .hx-shade { display: none; }
  .hx-eyebrow { color: var(--blue-600); background: var(--blue-50); border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; font-size: 12px; }
  .hx h1 { color: var(--cocoa); font-size: 32px; text-shadow: none; }
  .hx h1 span { color: var(--cocoa-70); }
  .hx-lead { color: var(--cocoa-90); font-size: 16px; text-shadow: none; }
  .hx-copy { padding-bottom: 8px; }
  .hx-finder { box-shadow: var(--shadow); border: 1px solid var(--sand-200); }
  .hx-row { flex-direction: column; }
  .hx-go { width: 100%; }
  .hx-features { margin-top: 8px; }
  .hx-features .container { grid-template-columns: 1fr; }
  .hx-feat { padding: 4px 0; border-left: 0 !important; }
}
/* Vermieter-Abschnitt auf dunklem Grund */
.landlord .btn-ghost { color: var(--white); border-color: color-mix(in srgb, var(--white) 35%, transparent); background: transparent; }
.landlord .btn-ghost:hover { background: color-mix(in srgb, var(--white) 10%, transparent); }
.landlord .card-white { color: var(--cocoa); border-color: transparent; }
.landlord .card-white h3 { color: var(--cocoa); }
.landlord .card-white .muted { color: var(--cocoa-70); }
/* Startseite: nur die Österreich-Fahne über der Überschrift */
.hx-flag { display: block; width: 30px; height: 20px; border-radius: 4px; margin-bottom: 16px; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
@media (max-width: 760px) { .hx-flag { width: 26px; height: 17px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); } }
.hx-media img { transform-origin: 50% 100%; }
/* Unten nicht abschneiden: beim Parallax ragt der weiße Bildrand unter den Kopfbereich, seitlich und oben wird weiter beschnitten */
@media (min-width: 761px) { .hero.hx { overflow-x: clip; overflow-y: visible; } }
/* Mehr Luft zwischen Vorteile-Zeile und „Wofür brauchst du Platz?“ */
.hx-features { padding-bottom: 56px; }
.hx-features + .section-tight { padding-top: 24px; }
@media (max-width: 760px) { .hx-features { padding-bottom: 28px; } .hx-features + .section-tight { padding-top: 16px; } }
/* Leichte Unschärfe auf dem Startbild; die Grundskalierung schiebt die weich werdenden Ränder aus dem sichtbaren Bereich */
.hx-media img { filter: blur(1.6px); transform: scale(1.02); }
.hx-media { clip-path: inset(0 0 -200px 0); }

/* Unterseiten: klassische Leiste über die volle Breite statt schwebender Pille (die bleibt der Startseite über dem Foto vorbehalten) */
body:not(.is-home) .header {
  padding-top: 0; pointer-events: auto;
  background: color-mix(in srgb, var(--white) 86%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--sand-200);
}
body:not(.is-home) .header .header-inner {
  height: var(--header-h); width: auto; max-width: 1200px; padding: 0 20px; border-radius: 0;
  background: none; -webkit-backdrop-filter: none; backdrop-filter: none; border: 0; box-shadow: none;
}
body:not(.is-home) .header.scrolled { box-shadow: 0 1px 14px color-mix(in srgb, var(--cocoa) 6%, transparent); }
body:not(.is-home) .header.scrolled .header-inner { box-shadow: none; }
/* Suche: Leiste so breit wie Filterzeile und Karte */
body[data-page="suche"] .header .header-inner { max-width: none; }
@media (prefers-reduced-transparency: reduce) { body:not(.is-home) .header { background: var(--white); -webkit-backdrop-filter: none; backdrop-filter: none; } }

.wordmark { white-space: nowrap; }
.logo-inv .wordmark { color: var(--white); }
/* Marke: Symbol vor der Wortmarke */
.brand-sym { width: 1.9em; height: 1.57em; flex: none; overflow: visible; display: block; }
.bs-sq { fill: var(--cocoa); }
.bs-p { fill: var(--white); }
.bs-roof { fill: none; stroke: var(--blue); stroke-width: 4.6; stroke-linecap: round; stroke-linejoin: round; }
.logo { gap: 6px; }
.logo-inv .bs-sq { fill: var(--white); }
.logo-inv .bs-p { fill: var(--cocoa); }
/* Kacheln mit Foto */
.cat-tile.cat-photo { padding: 0; overflow: hidden; display: flex; flex-direction: column; gap: 0; background: var(--white); }
.ct-img { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #e3e3e4; }
.ct-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; display: block; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.cat-tile.cat-photo:hover .ct-img img { transform: scale(1.05); }
.ct-txt { display: block; padding: 10px 12px 12px; }
.ct-txt b { display: block; font-size: 15px; }
.ct-txt span { display: block; font-size: 12.5px; color: var(--cocoa-70); margin-top: 2px; line-height: 1.35; }
@media (prefers-reduced-motion: reduce) { .ct-img img { transition: none; } .cat-tile.cat-photo:hover .ct-img img { transform: none; } }
/* Scharfe Welle über dem unscharfen Foto: eigene Ebene mit nur dem Wellenband und der weißen Fläche darunter */
.hx-media .hx-edge { position: absolute; inset: 0; filter: none; pointer-events: none; }
/* Größeres Logo in der Kopfleiste */
.header .logo { font-size: 20px; gap: 8px; }
.header .logo .wordmark { font-size: 29px; }
@media (max-width: 620px) { .header .logo { font-size: 18px; gap: 7px; } .header .logo .wordmark { font-size: 25px; } }
/* Startbild scharf und farbig; die Wellen-Ebene liefert das grüne Band */
.hx-media img:not(.hx-edge) { filter: none; transform: none; }
.hx-media .hx-edge { transform: none; }
/* Leichter Zoom (heraus) beim Scrollen (Wert setzt views-search.js), unten verankert, damit die Welle sitzen bleibt */
.hx-media img.hx-photo:not(.hx-edge) { transform: scale(var(--hx-zoom, 1.12)); transform-origin: 50% 100%; will-change: transform; }
@media (prefers-reduced-motion: reduce) { .hx-media img.hx-photo:not(.hx-edge) { transform: none; } }

/* Suche: kompakte Leiste, Filter eingeklappt */
.filterbar { align-items: center; }
.f-where { position: relative; flex: 1 1 280px; max-width: 560px; }
.f-where .f-ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); display: flex; color: var(--cocoa-90); pointer-events: none; }
.f-where .f-ic svg { width: 17px; height: 17px; }
.filterbar .f-where .input { padding: 10px 12px 10px 38px; }
.f-mode button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; }
.f-mode button svg { width: 16px; height: 16px; }
#f-more { display: inline-flex; align-items: center; gap: 7px; }
.f-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--cocoa); color: var(--white); font-size: 12px; font-weight: 700; }
.filterbar #f-alarm { margin-left: auto; }
.f-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px; }
.f-chips .chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; font-size: 13px; }
.f-chips .chip svg { width: 13px; height: 13px; }
.price-basis { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; margin-bottom: 14px; color: var(--cocoa-90); }
.price-basis svg { width: 15px; height: 15px; flex: none; }
.price-basis span { flex: 1 1 200px; }
.mf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.mf-foot { margin-top: 18px; position: sticky; bottom: -26px; background: var(--sand-50); padding: 12px 0 2px; z-index: 1; }
@media (max-width: 760px) { .mf-foot { bottom: calc(-24px - env(safe-area-inset-bottom)); padding-bottom: 6px; } }
@media (max-width: 900px) {
  .filterbar { flex-wrap: wrap; }
  .filterbar .f-where { max-width: none; flex: 1 1 0; min-width: 0; }
  .filterbar .f-mode { flex: 1 1 100%; min-width: 0; }
  .filterbar .f-mode button { padding: 7px 6px; gap: 5px; font-size: 13px; }
  .filterbar #f-more { flex: none; padding: 8px 12px; }
}
@media (max-width: 380px) { .filterbar .f-mode button svg { display: none; } }
@media (max-width: 760px) { .price-basis > svg { display: none; } }

/* Einwilligungs-Banner */
.cc {
  position: fixed; z-index: 95; right: 16px; bottom: 16px; width: min(460px, calc(100vw - 32px));
  background: var(--sand-50); color: var(--cocoa); border: 1px solid var(--sand-200); border-radius: 20px;
  box-shadow: var(--shadow-lg); padding: 20px 20px 16px; font-size: 14px; line-height: 1.5;
  animation: materialize .3s cubic-bezier(.32, .72, 0, 1);
}
.cc h2 { font-size: 18px; margin: 0 0 6px; }
.cc p { margin: 0; color: var(--cocoa-90); }
.cc a { color: inherit; text-decoration: underline; }
.cc-detail { display: grid; gap: 10px; margin-top: 14px; }
.cc-detail[hidden] { display: none; }
.cc-opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--sand-200); border-radius: 12px; cursor: pointer; }
.cc-opt input { margin-top: 3px; accent-color: var(--cocoa); width: 17px; height: 17px; flex: none; }
.cc-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.cc-btns .btn { justify-content: center; padding: 10px 12px; font-size: 14px; }
.cc-btns [hidden] { display: none; }
@media (max-width: 760px) { .cc { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 16px; } .cc p { font-size: 13px; } }
@media (prefers-reduced-motion: reduce) { .cc { animation: none; } }
.cc-btns .cc-wide { grid-column: 1 / -1; }
.cc-btns .btn-link { padding: 4px; }

/* Rechtstexte */
.legal-toc { margin-top: 18px; padding: 16px 20px; border: 1px solid var(--sand-200); border-radius: 16px; background: var(--sand-50); font-size: 14px; }
.legal-toc ol { margin: 8px 0 0; padding-left: 20px; columns: 2; column-gap: 28px; }
.legal-toc li { break-inside: avoid; padding: 2px 0; }
.legal-toc a { color: inherit; }
.legal h2 { scroll-margin-top: calc(var(--header-h) + 20px); }
.legal .table-wrap { margin: 12px 0 16px; }
.legal .table td, .legal .table th { font-size: 14px; }
mark.ph { background: #fff3a6; color: #3a2e00; padding: 0 4px; border-radius: 4px; }
@media (max-width: 640px) { .legal-toc ol { columns: 1; } }
.footer .footer-link { display: block; padding: 4px 0; color: var(--sand); background: none; border: 0; font: inherit; cursor: pointer; text-align: left; }
.footer .footer-link:hover { color: var(--white); }
