:root {
  color-scheme: light;
  /* Berner Sandstein, Bernrot, Gold */
  --bg: #F7F8F4;
  --surface: #FFFFFF;
  --paper: #EEF0E9;
  --stone: #E4E7DD;
  --stone-deep: #CBD0C1;
  --ink: #1D2622;
  --muted: #5B665F;
  --line: #DCE0D5;
  --red: #C4122F;
  --red-deep: #990D24;
  --red-soft: #FBE6E9;
  --gold: #F2C230;
  --font: 'Schibsted Grotesk', 'Helvetica Neue', Arial, system-ui, sans-serif;
  --r-photo: 14px;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-padding-top: env(safe-area-inset-top, 0px); scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
[hidden] { display: none !important; }
.est, .count, .kpis dd, .calc td:last-child, .bar .num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Sandstein-Quader als ruhige Fläche (Berner Altstadt) */
.ashlar {
  background-color: var(--stone);
  background-image:
    linear-gradient(rgba(29, 38, 34, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 38, 34, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 38, 34, .055) 1px, transparent 1px);
  background-size: 100% 56px, 168px 112px, 168px 112px;
  background-position: 0 0, 0 0, 84px 56px;
}

/* Knöpfe */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid var(--ink); background: transparent; padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--ink); color: #fff; }
.btn-red { background: var(--red); border-color: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-deep); border-color: var(--red-deep); }
.btn-light { background: #fff; border-color: #fff; color: var(--ink); }
.btn-light:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn-big { padding: 13px 24px; font-size: 17px; }

/* Kopfzeile */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; letter-spacing: -0.02em; text-decoration: none; }
.brand svg { flex: none; }
.brand .mark { color: var(--ink); margin-top: -4px; }
.brand .word { font-size: 23px; font-weight: 800; letter-spacing: -0.035em; line-height: 1; }
.brand .word span { font-weight: 500; }
.account { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.demo-switch { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.demo-switch input { accent-color: var(--red); width: 18px; height: 18px; }
.badge { font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: var(--gold); color: var(--ink); }

/* Einstieg */
.hero { padding-bottom: 72px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; padding-top: 40px; }
.hero h1 { font-size: clamp(34px, 4.3vw, 58px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; margin: 0 0 24px; max-width: 16ch; hyphens: manual; text-wrap: balance; }
.hero .lede { font-size: 20px; line-height: 1.5; margin: 0 0 28px; max-width: 34ch; color: var(--ink); }
.hero .lede strong { font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { margin: 20px 0 0; font-size: 14px; color: var(--muted); max-width: 42ch; }
.spot { position: relative; }
.spot .lot-body { background: var(--surface); border-radius: 0 0 var(--r-photo) var(--r-photo); padding: 18px 22px 20px; box-shadow: 0 1px 0 var(--stone-deep); }
.spot .media { border-radius: var(--r-photo) var(--r-photo) 0 0; }
.spot h2 { font-size: 23px; line-height: 1.25; letter-spacing: -0.015em; margin: 0 0 4px; }
.spot-caption { font-size: 14px; font-weight: 600; color: var(--red); margin: 0 0 6px; }

/* Bilder mit Etikett */
.media { position: relative; border-radius: var(--r-photo); overflow: hidden; background: var(--paper); aspect-ratio: 4 / 3; isolation: isolate; }
.media.big { aspect-ratio: 16 / 10; }
.track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; height: 100%; margin: 0; scroll-snap-align: start; position: relative; overflow: hidden; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide.empty { display: grid; place-items: center; align-content: center; gap: 10px; text-align: center; padding: 24px; color: var(--muted); }
.slide.empty figcaption { font-size: 14px; max-width: 26ch; }
.slide.empty .parcel path { fill: rgba(196, 18, 47, .08); }
.slide.locked img { filter: blur(14px) saturate(.8); transform: scale(1.15); }
.slide.locked figcaption { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 4px; padding: 20px; text-align: center; color: #fff; background: rgba(29, 38, 34, .55); }
.slide.locked b { font-size: 20px; letter-spacing: -0.01em; }
.slide.locked span { font-size: 15px; opacity: .9; }
.slide.locked .btn { margin-top: 12px; }
.slide.locked svg { margin-bottom: 4px; }
.is-off .slide img { filter: grayscale(1) contrast(.9); }

.tag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: var(--gold); color: var(--ink);
  padding: 8px 14px 9px 24px; line-height: 1.05;
  clip-path: polygon(11px 0, 100% 0, 100% 100%, 11px 100%, 0 50%);
  border-radius: 0 5px 5px 0;
  transform: rotate(-3deg); transform-origin: 0 50%;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .12);
}
.tag::before { content: ''; position: absolute; left: 9px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 1px 1px rgba(0, 0, 0, .35); }
.tag b { display: block; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.tag small { display: block; font-size: 12px; font-weight: 600; margin-top: 2px; }
.tag.off { background: #D7DAD2; }
.tag.off b { text-decoration: line-through; text-decoration-thickness: 2px; }
.tag.off small { color: var(--red-deep); }
.big .tag { top: 18px; left: 18px; padding: 11px 18px 12px 28px; }
.big .tag b { font-size: 26px; }
.big .tag small { font-size: 14px; }

.count { position: absolute; right: 12px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; background: rgba(29, 38, 34, .72); color: #fff; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.dots { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 2; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.dot { width: 18px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .55); }
.dot.on { background: #fff; }
.nav { position: absolute; top: 50%; z-index: 2; width: 38px; height: 38px; margin-top: -19px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); opacity: 0; transition: opacity .15s; }
.nav.prev { left: 10px; } .nav.next { right: 10px; }
.nav:disabled { visibility: hidden; }
.media:hover .nav, .nav:focus-visible { opacity: 1; }
@media (hover: none) { .nav { display: none; } }

/* Zeitstrahl */
.radar { margin: -36px 0 0; background: var(--surface); border-radius: 18px; padding: 20px 24px 12px; position: relative; box-shadow: 0 1px 0 var(--stone-deep); }
.radar-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 4px; }
.radar-head h2 { font-size: 18px; font-weight: 700; margin: 0; }
.radar-head span { color: var(--muted); font-size: 14px; }
.radar-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.radar svg { display: block; width: 100%; min-width: 760px; height: auto; }
.radar-head span a { color: var(--ink); font-weight: 600; }
.radar .month { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 5; }
.radar .axis { stroke: var(--line); stroke-width: 2; stroke-linecap: round; }
.radar .now { fill: var(--ink); }
.radar .lbl { fill: var(--muted); font: 500 12px var(--font); }
.radar .today { fill: var(--ink); font: 700 12px var(--font); }
.radar .pin { cursor: pointer; }
.radar .pin rect:not(.hit) { fill: var(--red); transition: fill .15s; }
.radar .pin .hit { fill: transparent; }
.radar .pin:hover rect:not(.hit), .radar .pin:focus rect:not(.hit) { fill: var(--gold); }
.radar .pin:focus { outline: none; }
.radar .pin:focus-visible .hit { stroke: var(--ink); stroke-width: 1.5; rx: 6; }

/* Filter */
.list-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 32px; padding: 64px 0 8px; }
.list-head h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.03em; line-height: 1.1; margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; padding: 18px 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1.5px solid var(--line); background: var(--surface); padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.filters select { font: inherit; font-size: 14px; font-weight: 500; padding: 7px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); }
.filters label.check { display: flex; gap: 6px; align-items: center; font-size: 14px; color: var(--muted); }
.filters label.check input { accent-color: var(--red); }

/* Objekte */
.month { display: flex; align-items: baseline; gap: 12px; font-size: 20px; font-weight: 800; letter-spacing: -0.015em; margin: 40px 0 18px; }
.month span { font-size: 14px; font-weight: 500; color: var(--muted); }
.lots { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 40px 28px; }
.lot { position: relative; cursor: pointer; }
.lot-body { padding: 14px 2px 0; }
.lot h3 { font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; margin: 0 0 4px; text-wrap: pretty; }
.lot-link { text-decoration: none; }
.lot:hover .lot-link { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--red); }
.lot-meta { margin: 0; font-size: 15px; color: var(--muted); }
.lot-facts { margin: 4px 0 0; font-size: 14px; font-weight: 500; }
.count.sv { font-weight: 500; }
.filters #f-canton { font-weight: 600; }
.lot-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.est b { font-size: 20px; font-weight: 800; letter-spacing: -0.015em; }
.est small { font-size: 13px; color: var(--muted); margin-left: 6px; }
.place { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 500; }
.place.locked { color: var(--muted); border: 1.5px dashed var(--stone-deep); border-radius: 999px; padding: 2px 10px 2px 8px; }
.lot.cancelled h3, .lot.cancelled .est { color: var(--muted); }
.tag-eval { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: #E3F0E6; color: #25613A; }
.empty-list { padding: 48px 0; color: var(--muted); }

/* Abo */
.pitch { margin-top: 96px; background: var(--ink); color: #fff; }
.pitch-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px 64px; padding: 72px 0; align-items: start; }
.pitch h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; letter-spacing: -0.035em; margin: 0 0 20px; max-width: 16ch; }
.pitch p { margin: 0 0 28px; color: #C9D1CB; max-width: 38ch; }
.perks { list-style: none; margin: 0; padding: 0; }
.perks li { display: grid; grid-template-columns: 36px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.perks li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .14); }
.perks svg { color: var(--gold); margin-top: 2px; }
.perks b { display: block; font-size: 18px; }
.perks span { color: #C9D1CB; font-size: 15px; }

footer { padding: 32px 0 40px; color: var(--muted); font-size: 14px; }
footer p { margin: 0; max-width: 70ch; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; padding-top: 16px; }
  .hero .lede { max-width: 44ch; }
  .pitch-grid { grid-template-columns: 1fr; padding: 56px 0; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero { padding-bottom: 60px; }
  .hero .lede { font-size: 18px; }
  .lots { grid-template-columns: 1fr; gap: 36px; }
  .radar { padding: 16px 16px 8px; border-radius: 14px; }
  .list-head { padding-top: 48px; }
  .btn-sub-top { display: none; }
}

/* Detail */
dialog { border: 0; padding: 0; background: var(--surface); color: var(--ink); width: min(880px, 100vw - 24px); max-height: calc(100% - 48px); border-radius: 18px; box-shadow: 0 24px 64px rgba(29, 38, 34, .22); }
dialog::backdrop { background: rgba(29, 38, 34, .45); }
.d-media .media { border-radius: 0; }
.d-inner { padding: 28px 32px 32px; }
.d-close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .95); font-size: 26px; line-height: 1; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.login .d-close { box-shadow: none; background: var(--paper); }
.d-when { margin: 0 0 6px; color: var(--muted); font-size: 15px; }
.d-when strong { color: var(--ink); }
.status { color: var(--red); font-weight: 700; }
dialog h2 { font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 12px; padding-right: 8px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; padding: 16px 18px; background: var(--paper); border-radius: 12px; margin: 16px 0 24px; }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; }
dialog h4 { font-size: 15px; margin: 24px 0 8px; }
.parcels { border: 1px solid var(--line); border-radius: 10px; }
.parcels > div { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.parcels > div:last-child { border-bottom: 0; }
.parcels p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.parcels .pn { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; }
.docs { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.docs a { display: inline-flex; gap: 8px; align-items: center; text-decoration: none; border-bottom: 1px solid var(--line); padding: 4px 0; }
.docs a:hover { color: var(--red); border-color: var(--red); }
.desc { margin: 0; white-space: pre-line; color: var(--ink); font-size: 16px; max-width: 64ch; }
.paywall { position: relative; margin-top: 8px; overflow: hidden; border-radius: 12px; }
.paywall .ghost { filter: blur(5px); user-select: none; pointer-events: none; padding: 8px 0; }
.paywall .ghost span { display: block; height: 14px; background: var(--line); border-radius: 3px; margin: 10px 0; }
.paywall .offer { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 12px; padding: 20px 0; background: linear-gradient(to right, var(--surface) 62%, transparent); }
.paywall .offer p { margin: 0; max-width: 42ch; }
.src { margin-top: 24px; font-size: 14px; color: var(--muted); }
.login p { color: var(--muted); margin: 0 0 16px; }
.login label { font-weight: 600; font-size: 15px; }
.login input { width: 100%; font: inherit; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); margin: 6px 0 14px; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 10; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 15px; max-width: calc(100% - 32px); }
@media (max-width: 640px) { .d-inner { padding: 22px 18px 26px; } dialog h2 { font-size: 23px; } }

/* Auswertung der Unterlagen */
.ev { margin-top: 8px; }
.ev h3 { font-size: 19px; letter-spacing: -0.01em; margin: 32px 0 10px; }
.ev .lead { font-size: 17px; max-width: 64ch; margin: 0; }
.gallery { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.shot { flex: none; width: 190px; scroll-snap-align: start; border: 0; padding: 0; background: none; text-align: left; }
.shot .frame { height: 128px; border-radius: 6px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot.plan .frame { background: var(--surface); }
.shot.plan img { object-fit: contain; }
.shot .ph { color: var(--muted); display: grid; place-items: center; gap: 4px; font-size: 12px; text-align: center; padding: 8px; }
.shot .ph svg { opacity: .55; }
.shot .frame.missing { border-style: dashed; }
.shot b { display: block; font-size: 14px; margin-top: 6px; }
.shot small { display: block; font-size: 12px; color: var(--muted); }
.gallery-note { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.kpis div { background: var(--surface); padding: 12px 14px; }
.kpis dt { font-size: 13px; color: var(--muted); }
.kpis dd { margin: 2px 0 0; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.bars { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: minmax(120px, 210px) 1fr auto; gap: 12px; align-items: center; font-size: 14px; }
.bar .track { height: 14px; background: var(--paper); border-radius: 3px; overflow: hidden; }
.bar .fill { height: 100%; background: var(--muted); border-radius: 3px; }
.bar.main .fill { background: var(--red); }
.bar .num { font-weight: 700; white-space: nowrap; }
.bar small { display: block; color: var(--muted); font-size: 12px; }
.calc { border: 1px solid var(--line); background: var(--paper); border-radius: 12px; padding: 18px; display: grid; gap: 14px; }
.calc label.bid { display: grid; gap: 4px; font-weight: 700; font-size: 15px; }
.calc input[type=number] { font: inherit; font-size: 22px; font-weight: 700; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); width: 100%; max-width: 280px; }
.calc .opts { display: grid; gap: 6px; font-size: 14px; }
.calc .opts label { display: flex; gap: 8px; align-items: flex-start; }
.calc .opts input { accent-color: var(--red); margin-top: 3px; }
.calc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.calc td { padding: 6px 0; border-bottom: 1px solid var(--line); }
.calc td:last-child { text-align: right; font-weight: 700; white-space: nowrap; }
.calc tr.total td { border-bottom: 0; border-top: 1.5px solid var(--ink); font-size: 18px; padding-top: 10px; }
.calc .when { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.calc .when div { background: #fff; border-radius: 6px; padding: 10px 12px; font-size: 14px; }
.calc .when b { display: block; font-size: 19px; }
.calc .warn { color: var(--red); font-size: 14px; margin: 0; }
.calc .muted { color: var(--muted); font-size: 13px; margin: 0; }
.risks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.risks li { display: grid; grid-template-columns: 14px 1fr; gap: 12px; }
.risks .dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 6px; border: 2px solid var(--red); }
.risks .hoch .dot { background: var(--red); }
.risks .tief .dot { border-color: var(--muted); }
.risks b { display: block; }
.risks p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.kv { display: grid; grid-template-columns: minmax(120px, 190px) 1fr; gap: 6px 16px; margin: 0; font-size: 15px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.plain { margin: 0; padding-left: 18px; font-size: 15px; }
.plain li { margin: 3px 0; }
.todo-box { background: var(--red-soft); border-radius: 10px; padding: 14px 16px; }
.todo-box h3 { margin-top: 0 !important; }
.lightbox { position: fixed; inset: 0; background: rgba(21, 26, 28, .92); display: grid; place-items: center; padding: 24px; z-index: 5; }
.lightbox img { max-width: 100%; max-height: 80vh; border-radius: 4px; background: #fff; }
.lightbox p { color: #fff; margin: 10px 0 0; text-align: center; }
.lightbox button { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); right: 16px; background: none; border: 0; color: #fff; font-size: 34px; }
@media (max-width: 640px) {
  .bar { grid-template-columns: 1fr auto; }
  .bar .track { grid-column: 1 / -1; order: 3; }
  .kv { grid-template-columns: 1fr; gap: 0 0; }
  .kv dd { margin-bottom: 8px; }
  .calc .when { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { transform: translateY(8px) scaleY(.4); opacity: 0; } }
  .radar .pin { animation: rise .6s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(var(--i) * 22ms); transform-box: fill-box; transform-origin: bottom; }
  .spot .tag { animation: swing 1.1s cubic-bezier(.3, 1.6, .5, 1) .25s backwards; }
  @keyframes swing { from { transform: rotate(-16deg); } }
}

/* Objektseite (/objekt/...) */
.top-slim { border-bottom: 1px solid var(--line); background: var(--bg); }
.top-slim .top { padding: 12px 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 14px; color: var(--muted); margin: 22px 0 14px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--red); }
.obj { padding-bottom: 72px; }
.obj-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 40px; align-items: start; }
.obj-main { min-width: 0; }
.obj-main .media { border-radius: var(--r-photo); }
.obj h1 { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.15; letter-spacing: -0.025em; margin: 22px 0 12px; text-wrap: balance; }
.obj .d-when { font-size: 16px; }
.obj h4 { font-size: 16px; margin: 28px 0 8px; scroll-margin-top: 16px; }
.obj-side { position: sticky; top: 16px; display: grid; gap: 16px; }
.card { background: var(--surface); border-radius: 14px; padding: 20px 22px; box-shadow: 0 1px 0 var(--stone-deep); }
.card .est b { font-size: 28px; }
.card .count-down { margin: 0 0 4px; font-weight: 700; color: var(--red); font-size: 15px; }
.card dl { margin: 14px 0 0; display: grid; gap: 10px; font-size: 15px; }
.card dt { color: var(--muted); font-size: 13px; }
.card dd { margin: 0; font-weight: 600; }
.card .btn { width: 100%; margin-top: 16px; }
.card .fine { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.obj-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; }
.obj-nav a { text-decoration: none; max-width: 46%; }
.obj-nav a:hover { color: var(--red); }
.obj-nav small { display: block; color: var(--muted); }
.obj-nav .next { text-align: right; margin-left: auto; }
.facts { margin-top: 20px; }
.docs .doc { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; column-gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); }
.docs .doc svg { grid-row: 1 / span 2; align-self: start; margin-top: 3px; color: var(--red); }
.docs .doc-main { border: 0; padding: 0; font-weight: 600; }
.docs .doc small { color: var(--muted); font-size: 13px; grid-column: 2; }
.docs .doc-act { grid-column: 3; grid-row: 1 / span 2; display: flex; gap: 14px; font-size: 14px; align-items: center; }
.docs .doc-act a { border: 0; padding: 0; color: var(--muted); }
.linkbtn { background: none; border: 0; padding: 0; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }
.linkbtn:hover { color: var(--red); }
.teaser-note { background: var(--paper); border-radius: 12px; padding: 16px 18px; margin: 24px 0 0; font-size: 15px; }
.foot-links { margin-top: 10px !important; }
.legal { max-width: 70ch; padding: 24px 0 72px; }
.legal h1 { font-size: 32px; letter-spacing: -0.02em; }
.legal h2 { font-size: 20px; margin: 32px 0 6px; }
.legal p, .legal li { font-size: 16px; }
@media (max-width: 900px) {
  .obj-grid { grid-template-columns: minmax(0, 1fr); }
  .obj-side { position: static; }
  .docs .doc { grid-template-columns: 22px minmax(0, 1fr); }
  .docs .doc-act { grid-column: 2; grid-row: auto; margin-top: 2px; }
}

.pitch-fine { margin: 14px 0 0 !important; font-size: 14px; color: #C9D1CB; }
.pitch-fine a { color: #fff; }
.legal .muted { color: var(--muted); font-size: 14px; margin-top: -8px; }

/* Lange Wörter und breite Inhalte dürfen die Seite nie breiter als den Bildschirm machen */
.obj { overflow-wrap: anywhere; }
.obj .gallery, .obj .parcels { max-width: 100%; }

/* Reihen pro Region (Startseite) */
#rails { padding-bottom: 8px; }
.rail-sec { margin-top: 56px; }
.rail-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 16px; }
.rail-head h2 { font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.025em; line-height: 1.15; margin: 0; }
.rail-head h2 a { text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.rail-head .arrow { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--paper); transition: background .15s; }
.rail-head h2 a:hover .arrow { background: var(--gold); }
.rail-head p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.rail-nav { display: flex; gap: 8px; flex: none; }
.rail-btn { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--paper); display: grid; place-items: center; }
.rail-btn:hover:not(:disabled) { background: var(--stone-deep); }
.rail-btn:disabled { opacity: .35; }
.rail { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 2px 2px 10px; margin: 0 -2px; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.rail > .lot { flex: 0 0 clamp(250px, 23vw, 292px); scroll-snap-align: start; min-width: 0; }
.rail .lot h3 { font-size: 17px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rail .lot-foot { flex-direction: column; align-items: flex-start; }
.rail-all { flex: 0 0 clamp(200px, 18vw, 240px); scroll-snap-align: start; display: grid; place-content: center; justify-items: center; gap: 18px; background: var(--surface); border-radius: var(--r-photo); box-shadow: 0 1px 0 var(--stone-deep); text-decoration: none; padding: 24px; min-height: 260px; }
.rail-all:hover { box-shadow: 0 0 0 2px var(--ink); }
.rail-all .stack { position: relative; width: 84px; height: 64px; }
.rail-all .stack i { position: absolute; width: 56px; height: 44px; border-radius: 8px; background: var(--stone); box-shadow: 0 1px 4px rgba(29, 38, 34, .18); }
.rail-all .stack i:nth-child(1) { left: 0; top: 14px; transform: rotate(-8deg); background: var(--stone-deep); }
.rail-all .stack i:nth-child(2) { left: 14px; top: 6px; transform: rotate(4deg); background: var(--gold); }
.rail-all .stack i:nth-child(3) { left: 28px; top: 14px; background: var(--red); }
.rail-all b { font-size: 17px; text-align: center; }
@media (max-width: 640px) {
  .rail-sec { margin-top: 44px; }
  .rail > .lot { flex-basis: 78vw; }
  .rail-all { flex-basis: 56vw; }
  .rail-nav { display: none; }
}

/* Liste (/versteigerungen) */
.list-head h1 { font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -0.03em; line-height: 1.1; margin: 0; }
.list-sum { margin: 0; color: var(--muted); }
.region-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 18px 0 4px; }
.region-tabs .chip { text-decoration: none; display: inline-flex; gap: 6px; align-items: baseline; }
.region-tabs .chip span { opacity: .6; font-size: 13px; }
.ssr-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 8px; }
.ssr-list span { color: var(--muted); font-size: 15px; }
.crumbs + .list-head { padding-top: 6px; }

/* Luftbild statt Foto */
.slide.aerial { background: var(--paper); }
.pin-dot { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: var(--red); border: 3px solid #fff; box-shadow: 0 0 0 2px rgba(29, 38, 34, .35), 0 2px 8px rgba(0, 0, 0, .4); }
.slide.aerial { position: relative; }
.slide .outline { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.slide .outline polygon { fill: rgba(196, 18, 47, .22); stroke: #fff; stroke-width: 5; paint-order: stroke; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.slide .outline polygon { stroke: var(--red); stroke-width: 3; }
.map-cap { position: absolute; left: 12px; bottom: 12px; z-index: 2; background: rgba(29, 38, 34, .72); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; pointer-events: none; }
.media .count + .map-cap, .media:has(.count) .map-cap { bottom: 12px; }
.planfig { margin: 0 0 14px; }
.planbox { position: relative; border-radius: 12px; overflow: hidden; background: var(--paper); aspect-ratio: 16 / 10; }
.planbox img { width: 100%; height: 100%; object-fit: cover; display: block; }
.planbox .outline { position: absolute; inset: 0; width: 100%; height: 100%; }
.planbox .outline polygon { fill: rgba(196, 18, 47, .18); stroke: var(--red); stroke-width: 3; vector-effect: non-scaling-stroke; }
.planfig figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.admin-link { margin: 0 0 12px; }


@media (max-width: 560px) { .radar-head { flex-direction: column; gap: 2px; } }

.admin-link { display: flex; gap: 8px; flex-wrap: wrap; }
.btn.feat.on { background: #2E7D4F; border-color: #2E7D4F; color: #fff; }
