* { box-sizing: border-box; }
:root { color-scheme: light; --ink: #19333a; --muted: #64777c; --line: #dce5e4; --paper: #f5f8f7; --surface: #ffffff; --brand: #126a5c; --brand-dark: #0c5046; --brand-soft: #e8f3f0; --danger: #a63d38; --shadow: 0 8px 26px rgba(25, 51, 58, .06); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { outline-offset: 3px; }
:focus-visible { outline: 3px solid #2f8d7c; }
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: 1180px; min-height: 68px; margin: auto; padding: 10px 24px; display: flex; align-items: center; gap: 30px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-weight: 750; letter-spacing: -.02em; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid #c8ddd7; border-radius: 9px; color: var(--brand); font-size: 20px; }
.main-nav { display: flex; align-items: center; gap: 7px; flex: 1; }
.main-nav a { padding: 8px 11px; border-radius: 7px; color: var(--muted); text-decoration: none; font-size: 14px; }
.main-nav a:hover, .main-nav a:focus-visible { background: var(--paper); color: var(--ink); }
.user-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.user-name { color: var(--muted); font-size: 13px; }
.page-shell { width: min(1180px, 100%); margin: 0 auto; padding: 28px 24px 60px; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 24px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 6px; font-size: clamp(26px, 3vw, 34px); letter-spacing: -.04em; line-height: 1.15; }
h2 { margin-bottom: 7px; font-size: 18px; letter-spacing: -.02em; }
.eyebrow { margin-bottom: 6px; color: var(--brand); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.muted { color: var(--muted); margin-bottom: 0; }
.heading-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 7px; padding: 9px 14px; text-decoration: none; font-size: 14px; font-weight: 650; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.button-primary { background: var(--brand); color: #fff; }
.button-primary:hover { background: var(--brand-dark); }
.button-outline { background: var(--surface); color: var(--ink); border-color: var(--line); }
.button-outline:hover, .button-quiet:hover { background: #edf3f1; }
.button-quiet { background: transparent; color: var(--muted); border-color: transparent; }
.button-danger-quiet { color: var(--danger); background: transparent; border-color: transparent; }
.button-danger-quiet:hover { background: #f8eceb; }
.inline-form { margin: 0; }
.notice { border: 1px solid var(--line); border-radius: 8px; padding: 12px 15px; margin-bottom: 18px; background: var(--surface); }
.notice-success { border-color: #b7d9d0; background: #eff8f5; color: #15574b; }
.notice-error { border-color: #e7c4c0; background: #fff4f2; color: #8e302b; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat-card, .panel { background: var(--surface); border: 1px solid var(--line); border-radius: 11px; box-shadow: var(--shadow); }
.stat-card { padding: 17px 19px; }
.stat-card span, .summary-grid span, .result-primary span { display: block; color: var(--muted); font-size: 13px; }
.stat-card strong { display: block; margin: 8px 0 2px; font-size: 25px; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.stat-card small { color: var(--muted); font-size: 12px; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, .8fr); gap: 16px; align-items: start; }
.panel { padding: 20px; }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; margin-bottom: 15px; }
.panel-heading p { font-size: 13px; }
.text-link { color: var(--brand); font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.empty-state { text-align: center; padding: 36px 22px; color: var(--muted); }
.empty-state strong { color: var(--ink); font-size: 16px; }
.empty-state p { margin: 6px 0 15px; }
.compact-list { border-top: 1px solid var(--line); }
.compact-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); padding: 13px 2px; text-decoration: none; }
.compact-row:last-child { border-bottom: 0; }
.compact-row span { min-width: 0; }
.compact-row strong, .compact-row small { display: block; }
.compact-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compact-row small { color: var(--muted); font-size: 12px; }
.compact-row b { flex: 0 0 auto; font-size: 14px; font-variant-numeric: tabular-nums; }
.partner-panel { background: #fbfdfc; }
.household-name { font-size: 17px; font-weight: 700; }
.small-note { margin: 12px 0 0; color: var(--muted); font-size: 12px; }
.summary-panel { margin-top: 16px; }
.summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-top: 15px; border-top: 1px solid var(--line); }
.summary-grid strong { display: block; margin-top: 5px; font-size: 18px; font-variant-numeric: tabular-nums; }
.filter-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; color: var(--muted); font-size: 13px; }
.filter-bar select { min-width: 190px; }
.table-panel { padding: 3px 18px; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 14px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-size: 12px; font-weight: 650; }
td { font-size: 14px; }
td strong, td small { display: block; }
td small { margin-top: 3px; color: var(--muted); font-size: 12px; }
tbody tr:last-child td { border-bottom: 0; }
.numeric { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.status-pill { display: inline-block; padding: 4px 8px; border: 1px solid var(--line); border-radius: 999px; background: #f7faf9; color: #435b60; font-size: 12px; white-space: nowrap; }
.row-actions { text-align: right; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.form-panel { max-width: 900px; margin: 0 auto; padding: 24px; }
.form-section { padding: 0 0 22px; margin: 0 0 22px; border-bottom: 1px solid var(--line); }
.form-section:last-of-type { margin-bottom: 18px; }
.form-section h2 { margin-bottom: 15px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 13px; color: var(--ink); font-size: 13px; font-weight: 650; }
.field input, .field select, .field textarea, .filter-bar select { width: 100%; min-height: 42px; border: 1px solid #cbd9d7; border-radius: 7px; background: #fff; color: var(--ink); padding: 9px 11px; font-weight: 400; }
.field textarea { resize: vertical; }
.field small { color: var(--muted); font-size: 11px; font-weight: 400; }
.form-grid .field { margin-bottom: 0; }
.form-section > .field { margin-top: 14px; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 4px; }
.delete-form { display: flex; justify-content: flex-end; max-width: 900px; margin: 12px auto; }
.disclaimer { margin: 17px 0 0; color: var(--muted); font-size: 12px; }
.finance-layout { display: grid; grid-template-columns: minmax(220px, .72fr) minmax(0, 1.8fr); gap: 16px; align-items: start; }
.scenario-list { padding: 17px; }
.scenario-list h2 { margin: 2px 6px 12px; }
.scenario-link { display: block; padding: 12px; border-radius: 8px; text-decoration: none; border: 1px solid transparent; }
.scenario-link:hover { background: #f6f9f8; }
.scenario-link.active { background: var(--brand-soft); border-color: #c7e0d9; }
.scenario-link strong, .scenario-link span { display: block; }
.scenario-link span { color: var(--muted); font-size: 12px; }
.finance-detail > .panel { padding: 22px; }
.result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 15px 0 20px; }
.result-primary { background: var(--brand-soft); border-radius: 8px; padding: 15px; }
.result-primary strong { display: block; margin: 4px 0; color: var(--brand-dark); font-size: clamp(22px, 3vw, 30px); letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.result-primary small { color: var(--muted); font-size: 11px; }
.data-table { border-top: 1px solid var(--line); }
.data-table > div { display: flex; justify-content: space-between; gap: 14px; padding: 11px 2px; border-bottom: 1px solid var(--line); }
.data-table span { color: var(--muted); }
.data-table strong { text-align: right; font-variant-numeric: tabular-nums; }
.data-table .subrow { padding-top: 4px; padding-bottom: 4px; border-bottom: 0; font-size: 12px; }
.negative { color: var(--danger); }
.auth-wrap { display: grid; place-items: center; min-height: calc(100vh - 120px); padding: 24px 0; }
.auth-card { width: min(460px, 100%); border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 30px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 28px; }
.auth-card > .muted { margin-bottom: 22px; }
.form-stack { display: flex; flex-direction: column; gap: 10px; }
.form-stack .field { margin: 0; }
.form-stack .button { margin-top: 5px; width: 100%; }
.form-divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 11px; margin: 9px 0 2px; }
.form-divider::before, .form-divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.auth-switch { margin: 18px 0 0; color: var(--muted); font-size: 13px; }
.auth-switch a { color: var(--brand); font-weight: 700; }
@media (max-width: 760px) {
  .topbar-inner { flex-wrap: wrap; gap: 8px 14px; padding: 11px 16px; }
  .brand { margin-right: auto; }
  .main-nav { order: 3; width: 100%; overflow-x: auto; }
  .main-nav a { padding: 7px 9px; white-space: nowrap; }
  .user-name { display: none; }
  .page-shell { padding: 22px 16px 44px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .heading-actions { width: 100%; }
  .heading-actions .button { flex: 1; }
  .stat-grid { grid-template-columns: 1fr; gap: 9px; }
  .stat-card { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 13px 15px; }
  .stat-card strong { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
  .stat-card small { grid-column: 1; }
  .content-grid, .finance-layout { grid-template-columns: 1fr; }
  .summary-grid { grid-template-columns: 1fr; gap: 12px; }
  .form-grid { grid-template-columns: 1fr; gap: 12px; }
  .form-panel { padding: 18px; }
  .result-grid { grid-template-columns: 1fr; }
  .table-panel { padding: 6px 14px; }
  .property-table, .property-table tbody, .property-table tr, .property-table td { display: block; width: 100%; }
  .property-table thead { display: none; }
  .property-table tbody tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .property-table tbody tr:last-child { border-bottom: 0; }
  .property-table td { padding: 2px 0; border: 0; }
  .property-table td[data-label="Immobilie"] { grid-column: 1 / -1; }
  .property-table td[data-label="Preis"] { text-align: left; }
  .property-table td[data-label="Fläche / Zimmer"] { display: none; }
  .property-table td[data-label="Status"] { grid-column: 1; }
  .property-table td.row-actions { grid-column: 2; }
  .property-table td[data-label="Passt zu euch"] { grid-column: 1 / -1; }
  .member-columns, .form-grid-3, .feature-grid { grid-template-columns: 1fr; }
}
@media (max-width: 440px) {
  .heading-actions { flex-direction: column; }
  .auth-card { padding: 23px 18px; }
  .panel { padding: 16px; }
  .panel-heading { flex-direction: column; }
  .filter-bar select { flex: 1 1 100%; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } }

/* Vorstellungen, Vergleich und Ausstattung */
.section-gap { margin-bottom: 16px; }
.field[hidden] { display: none; }
.field-wide { grid-column: 1 / -1; }
.form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px 16px; margin-top: 18px; }
.feature-grid .field { margin: 0; }
.form-intro { margin: -8px 0 14px; font-size: 13px; }
.field em { color: var(--muted); font-style: normal; font-weight: 400; }
.muted-small { color: var(--muted); font-size: 12px; margin: 0; }
.button-small { min-height: 32px; padding: 5px 10px; font-size: 12px; }
.positive { color: #1f7a4d; }
.table-scroll { overflow-x: auto; }
.simple-table th, .simple-table td { padding: 10px 8px; }
.simple-table tbody th { font-weight: 600; text-align: left; }
.simple-table th small, .simple-table td small { display: block; color: var(--muted); font-size: 11px; font-weight: 400; }
.simple-table tfoot th, .simple-table tfoot td { border-top: 2px solid var(--line); border-bottom: 0; font-weight: 700; text-align: left; }
.simple-table tfoot td.numeric { text-align: right; }
.profile-form { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.profile-form h3 { font-size: 15px; margin-bottom: 12px; }
.member-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.member-column { border: 1px solid var(--line); border-radius: 9px; padding: 14px 16px; }
.member-column h3 { font-size: 16px; margin-bottom: 4px; }
.member-column h4 { margin: 14px 0 6px; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.pref-list { list-style: none; margin: 0; padding: 0; }
.pref-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.pref-list li:last-child { border-bottom: 0; }
.pref-hint { display: block; color: var(--muted); font-size: 11px; }
.pref-hint-same { color: #1f7a4d; }
.fit { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; border: 1px solid; font-size: 12px; white-space: nowrap; }
.fit-yes { color: #1f6b44; background: #ecf7f0; border-color: #bfe0cc; }
.fit-no { color: #8e302b; background: #fff1ef; border-color: #ecc5c0; }
.fit-open { color: #7a5a12; background: #fdf6e3; border-color: #ecdcae; }
.fit-na { color: var(--muted); background: #f4f6f6; border-color: var(--line); }
.fit-counts, .person-fit { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.compare-filter { margin-bottom: 16px; }
.compare-filter fieldset { border: 0; margin: 0 0 12px; padding: 0; }
.compare-filter legend { font-size: 13px; font-weight: 650; margin-bottom: 8px; }
.check-list { display: flex; flex-wrap: wrap; gap: 8px; }
.check-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; cursor: pointer; }
.check-chip:has(input:checked) { background: var(--brand-soft); border-color: #c7e0d9; }
.compare-filter-row { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; }
.compare-filter-row .field { margin: 0; min-width: 200px; }
.check-field { display: flex; gap: 10px; align-items: flex-start; padding: 12px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fbfdfc; font-size: 13px; cursor: pointer; }
.check-field input { margin-top: 3px; width: 18px; height: 18px; }
.check-field small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.matrix-panel { padding: 0; overflow: hidden; }
.matrix-wrap { overflow-x: auto; }
.matrix { min-width: 640px; }
.matrix th, .matrix td { padding: 9px 12px; vertical-align: top; }
.matrix thead th { background: #f7faf9; color: var(--ink); font-size: 14px; min-width: 170px; }
.matrix thead th a { font-weight: 700; text-decoration: none; }
.matrix thead th a:hover { text-decoration: underline; }
.matrix thead th small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
.matrix .matrix-action { display: inline-block; margin-top: 4px; font-size: 12px; }
.matrix-label { position: sticky; left: 0; z-index: 1; background: var(--surface); min-width: 170px; text-align: left; font-weight: 600; color: var(--ink); font-size: 13px; }
.matrix thead .matrix-label { background: #f7faf9; }
.matrix-label small { display: block; color: var(--muted); font-weight: 400; font-size: 11px; }
.group-row th { background: var(--paper); color: var(--brand); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding-top: 12px; }
.result-row td, .result-row th { background: #fbfdfc; }

@media (max-width: 760px) { .form-grid-3 { grid-template-columns: 1fr; } .matrix-label { min-width: 130px; } }
.scope-tag { display: inline-block; margin-left: 4px; padding: 1px 7px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 11px; white-space: nowrap; }

/* Titelbilder */
.property-cell { display: flex; align-items: flex-start; gap: 12px; }
.thumb { flex: 0 0 auto; width: 76px; height: 57px; border-radius: 8px; object-fit: cover; background: var(--paper); border: 1px solid var(--line); }
.thumb-empty, .matrix-thumb.thumb-empty { display: grid; place-items: center; color: var(--muted); font-size: 22px; }
.matrix-thumb { display: block; width: 100%; max-width: 220px; aspect-ratio: 4 / 3; height: auto; margin-bottom: 8px; border-radius: 8px; object-fit: cover; background: var(--paper); border: 1px solid var(--line); }
.image-field { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 18px; align-items: start; }
.image-preview { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); }
.image-empty { padding: 18px; border: 1px dashed var(--line); border-radius: 10px; }
.image-controls { display: grid; gap: 12px; }
.checkbox-field { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.checkbox-field input { width: 18px; height: 18px; accent-color: var(--brand); }
@media (max-width: 640px) {
  .image-field { grid-template-columns: 1fr; }
  .thumb { width: 60px; height: 45px; }
}

/* Screenshot einfügen und zuschneiden */
.image-preview-wrap { display: grid; gap: 6px; }
.image-note, .small-note { color: var(--muted); font-size: 13px; }
.paste-zone { display: grid; gap: 4px; padding: 14px 16px; border: 1px dashed #b8cdc8; border-radius: 10px; background: var(--brand-soft); font-size: 14px; }
.paste-zone span { color: var(--muted); font-size: 13px; }
.paste-zone:focus-visible, .paste-zone.is-over { outline: 2px solid var(--brand); outline-offset: 2px; }
.crop-editor { margin-top: 18px; display: grid; gap: 10px; }
.crop-editor h3 { margin: 0; font-size: 16px; }
.crop-stage { position: relative; max-width: 100%; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; cursor: crosshair; touch-action: none; user-select: none; line-height: 0; }
.crop-stage canvas { display: block; width: 100%; height: auto; }
.crop-box { position: absolute; border: 2px solid var(--brand); box-shadow: 0 0 0 9999px rgba(25, 51, 58, .45); pointer-events: none; }
.crop-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ocr-status { margin: 0; font-size: 14px; }
.field-filled input, .field-filled select { border-color: var(--brand); background: var(--brand-soft); }

/* Titelbilder auf der Startseite */
.compact-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.compact-main > span:last-child { min-width: 0; }
.thumb.thumb-small { width: 64px; height: 48px; }
@media (max-width: 640px) { .thumb.thumb-small { width: 52px; height: 39px; } }

/* Link zum Inserat */
.listing-link { grid-column: 1 / -1; margin: -6px 0 0; font-size: 14px; }
.row-actions { white-space: nowrap; }

/* Ganze Immobilien-Zelle in der Merkliste ist klickbar */
.cell-link { position: relative; cursor: pointer; }
.row-link { color: inherit; text-decoration: none; }
.row-link::after { content: ""; position: absolute; inset: 0; }
.cell-link:hover .row-link { color: var(--brand); text-decoration: underline; }
.row-link:focus-visible { outline: none; }
.cell-link:focus-within { outline: 2px solid var(--brand); outline-offset: -2px; }

/* Finanzierung mit Immobilie */
.property-pick { margin-bottom: 16px; }
.scenario-property { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; color: var(--ink); text-decoration: none; font-size: 14px; }
.scenario-property:hover strong, .scenario-property:focus-visible strong { color: var(--brand); text-decoration: underline; }
.notice-inline { margin: 8px 0 0; padding: 8px 12px; border-radius: 8px; background: #fff6e0; color: #6b4b00; font-size: 13px; }

/* Gesamtes Eigenkapital in der Finanzierung */
.equity-box { display: grid; gap: 2px; margin-bottom: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--brand-soft); }
.equity-box span { color: var(--muted); font-size: 13px; }
.equity-box strong { font-size: 20px; font-variant-numeric: tabular-nums; }
.equity-box small { color: var(--muted); font-size: 13px; }
.warning-row { grid-column: 1 / -1; padding: 8px 12px; border-radius: 8px; background: #fff6e0; color: #6b4b00; font-size: 13px; }

/* Standard-Finanzierung auf der Immobilienseite */
.property-finance { margin-top: 24px; }
.pf-body:not([hidden]) { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 24px; align-items: start; }
.pf-sliders { display: grid; gap: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.pf-slider { display: grid; gap: 6px; }
.pf-slider label { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 650; font-size: 14px; }
.pf-value { display: inline-flex; align-items: center; gap: 4px; font-weight: 400; }
.pf-value input { width: 110px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; font: inherit; text-align: right; font-variant-numeric: tabular-nums; background: var(--surface); }
.pf-slider input[type="range"] { width: 100%; accent-color: var(--brand); }
.pf-slider small { color: var(--muted); font-size: 12px; }
.pf-results .result-grid { margin-top: 0; }
.data-table > [data-pf-comfort]:not([hidden]) { display: block; padding: 0; border-bottom: 0; }
.data-table > [data-pf-comfort] > div { display: flex; justify-content: space-between; gap: 14px; padding: 11px 2px; border-bottom: 1px solid var(--line); }
.pf-results .warning-row { margin: 12px 0 0; }
@media (max-width: 860px) { .pf-body:not([hidden]) { grid-template-columns: 1fr; } }

/* Daumen hoch / runter */
.vote-widget { display: flex; flex-direction: column; gap: 6px; }
.vote-own, .vote-other { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.vote-name { color: var(--muted); min-width: 0; overflow-wrap: anywhere; }
.vote-own .vote-name { color: inherit; font-weight: 600; }
.vote-button { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; min-height: 32px; padding: 2px 6px; border: 1px solid var(--line); border-radius: 8px; background: transparent; font-size: 16px; line-height: 1; cursor: pointer; filter: grayscale(1); opacity: .65; transition: background-color .15s ease-out, border-color .15s ease-out, opacity .15s ease-out; }
.vote-button:hover { opacity: 1; filter: none; border-color: var(--brand); }
.vote-button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.vote-button.is-up { filter: none; opacity: 1; background: #e6f4ea; border-color: #3f8f5a; }
.vote-button.is-down { filter: none; opacity: 1; background: #fbe9e7; border-color: #c0504d; }
.vote-result { font-size: 16px; }
.vote-other.is-open .vote-result { color: var(--muted); }
.vote-summary { display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 999px; font-size: 12px; border: 1px solid var(--line); }
.vote-summary.is-up { background: #e6f4ea; color: #24603a; border-color: #b7dcc3; }
.vote-summary.is-down { background: #fbe9e7; color: #8a2f2b; border-color: #efc1bd; }
.vote-summary.is-mixed { background: #fff6e0; color: #7a5a00; border-color: #f0dca0; }
.vote-panel { max-width: 900px; margin: 0 auto 18px; }
.vote-panel h2 { margin: 0 0 10px; font-size: 16px; }
.vote-panel .vote-widget { flex-direction: row; flex-wrap: wrap; gap: 10px 24px; }
@media (max-width: 760px) {
  .property-table td[data-label="Bewertung"] { grid-column: 1 / -1; }
}

/* Notizen in der Immobilienliste */
.list-notes { position: relative; z-index: 1; margin-top: 8px; padding: 6px 10px; border-left: 3px solid var(--line); background: var(--paper, #f7faf9); border-radius: 0 6px 6px 0; font-size: 12.5px; line-height: 1.45; cursor: auto; max-width: 60ch; }
.list-notes p { margin: 2px 0 0; overflow-wrap: anywhere; }
.list-notes-label { display: block; color: var(--muted); font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; }
.list-notes summary { cursor: pointer; list-style: none; }
.list-notes summary::-webkit-details-marker { display: none; }
.list-notes summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.list-notes-short { display: block; overflow-wrap: anywhere; }
.list-notes-more { display: inline-block; margin-top: 2px; color: var(--brand-dark, var(--brand)); text-decoration: underline; font-size: 12px; }
.list-notes[open] .list-notes-short { display: none; }
.list-notes[open] .list-notes-more::before { content: "Weniger anzeigen"; }
.list-notes[open] .list-notes-more { font-size: 0; }
.list-notes[open] .list-notes-more::before { font-size: 12px; }
