/* Falke Immo · Glass adapter · 2026-10-22.
   Runtime: fixed Falke Design System 1.1.0. This file owns presentation only.
   The old app.css/workspace.css remain baseline references and are not loaded. */
.immo-app {
  --bg: var(--falke-bg);
  --surface: var(--falke-surface);
  --surface-2: var(--falke-soft);
  --ink: var(--falke-ink);
  --muted: var(--falke-muted);
  --line: var(--falke-border);
  --source-border: var(--falke-border);
  --accent: var(--falke-orange);
  --accent-strong: var(--falke-orange-deep);
  --green: var(--falke-success);
  --red: var(--falke-error);
  --blue: var(--falke-chart-current);
  --shadow: var(--falke-shadow);
  --radius: var(--falke-radius-control);
  font-size: 14px;
  line-height: 1.55;
}
.immo-app a { color: inherit; text-decoration: none; }
.immo-app img { max-width: 100%; }
.immo-app button, .immo-app .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; max-width: 100%; padding: 10px 16px;
  border: 1px solid var(--falke-orange-deep); border-radius: var(--falke-radius-control);
  background: var(--falke-orange); color: var(--falke-on-orange);
  font: inherit; font-size: 14px; font-weight: 600; line-height: 1.35;
  text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color var(--falke-motion), box-shadow var(--falke-motion);
}
.immo-app button:hover:not(:disabled), .immo-app .button:hover { box-shadow: inset 0 0 0 1px currentColor; }
.immo-app button.secondary, .immo-app .button.secondary {
  background: var(--surface); color: var(--ink); border-color: var(--falke-control-border);
}
.immo-app button.danger, .immo-app .button.danger { color: var(--red); border-color: var(--red); }
.immo-app button:disabled, .immo-app input:disabled, .immo-app select:disabled, .immo-app textarea:disabled { opacity: .6; cursor: not-allowed; }
.immo-app :focus-visible { outline: 3px solid var(--falke-focus); outline-offset: 3px; }
.immo-app input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
.immo-app textarea, .immo-app select {
  min-width: 0; width: 100%; min-height: 44px; padding: 10px 12px;
  border: 1px solid var(--falke-control-border); border-radius: var(--falke-radius-control);
  background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; line-height: 1.4;
}
.immo-app input::placeholder, .immo-app textarea::placeholder { color: var(--muted); opacity: 1; }
.immo-app input:read-only, .immo-app textarea:read-only { background: var(--surface-2); }
.immo-app textarea { display: block; min-height: 112px; resize: vertical; }
.immo-app select { padding-right: 30px; }
.immo-app label { display: grid; gap: 7px; min-width: 0; color: var(--ink); font-size: 13px; line-height: 1.45; }
.immo-app input[type="checkbox"], .immo-app input[type="radio"] { width: 18px; height: 18px; min-height: 18px; margin: 0; accent-color: var(--accent-strong); flex-shrink: 0; }
.immo-app form { margin: 0; }
.immo-app p { line-height: 1.65; }
.immo-app p + p { margin-top: 12px; }
.immo-app h1 { font-family: var(--falke-font-display); font-weight: 400; font-size: clamp(30px, 3vw, 40px); line-height: 1.15; letter-spacing: -.025em; overflow-wrap: anywhere; }
.immo-app h2 { font-size: 20px; line-height: 1.3; font-weight: 600; letter-spacing: -.02em; }
.immo-app h3 { font-size: 15px; line-height: 1.45; }
.immo-app details, .immo-app summary { min-width: 0; }
.immo-app summary { cursor: pointer; }
.immo-app summary::marker { color: var(--accent-strong); }
.immo-app [hidden] { display: none !important; }
.immo-app .immo-skip-link { position: fixed; z-index: 100; top: 10px; left: 12px; padding: 10px 16px; border-radius: var(--radius); background: var(--ink); color: var(--surface); transform: translateY(-180%); }
.immo-app .immo-skip-link:focus { transform: translateY(0); }
.immo-app .shell { min-height: 100vh; display: grid; grid-template-columns: 244px minmax(0, 1fr); gap: 26px; }
.immo-app .sidebar {
  position: fixed; top: 20px; left: 20px; z-index: 10; width: 224px;
  max-height: calc(100vh - 40px); overflow-y: auto; padding: 24px 18px;
  display: grid; align-content: start; gap: 22px;
  border: 1px solid var(--falke-chrome-border); border-radius: var(--falke-radius-shell);
  background: var(--falke-glass); -webkit-backdrop-filter: blur(var(--falke-glass-blur)); backdrop-filter: blur(var(--falke-glass-blur));
  box-shadow: var(--falke-chrome-shadow);
}
.immo-app .brand { display: grid; gap: 16px; padding: 0 10px 20px; border-bottom: 1px solid var(--falke-chrome-border); color: var(--ink); }
.immo-app .immo-brand-logo { display: block; width: 112px; height: auto; }
.immo-app .brand-copy { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.immo-app .brand-copy strong { font-size: 20px; line-height: 1.2; }
.immo-app .brand-copy small { font-size: 11px; color: var(--muted); }
.immo-app .nav { display: grid; gap: 6px; }
.immo-app .nav a { display: flex; align-items: center; min-height: 44px; min-width: 0; padding: 10px 12px; border: 1px solid transparent; border-radius: var(--radius); font-size: 14px; color: var(--muted); line-height: 1.35; }
.immo-app .nav a:hover { background: var(--surface-2); color: var(--ink); }
.immo-app .nav a.active { background: var(--falke-brand-soft); color: var(--accent-strong); border-color: var(--falke-brand-border); font-weight: 600; }
.immo-app .nav .nav-secondary { margin-top: 12px; }
.immo-app .sidebar-logout { width: 100%; background: var(--surface); border-color: var(--line); color: var(--muted); }
.immo-app .immo-sidebar-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-inline: 10px; font-size: 11px; color: var(--muted); }
.immo-app .immo-preview-badge { display: inline-flex; width: fit-content; align-items: center; padding: 3px 8px; border: 1px solid var(--line); border-radius: var(--falke-radius-pill); background: var(--surface-2); color: var(--muted); font-size: 11px; line-height: 1.4; }
.immo-app .main { grid-column: 2; grid-row: 1; min-width: 0; width: 100%; max-width: 1700px; padding: 28px 30px 28px 0; margin-inline: auto; }
.immo-app .main:focus, .immo-app .login-shell:focus { outline: none; }
.immo-app .immo-page { min-width: 0; }
.immo-app .strategy-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 28px; padding: 12px 16px; border: 1px solid var(--falke-chrome-border); border-radius: var(--radius); background: var(--falke-glass); color: var(--muted); font-size: 12px; }
.immo-app .strategy-strip a { color: var(--accent-strong); font-weight: 600; }
.immo-app .strategy-strip strong { font-weight: 400; }
.immo-app .immo-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 42px; padding: 18px 0 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.immo-app .page-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 24px; }
.immo-app .page-header > div { min-width: 0; }
.immo-app .page-header p:not(.eyebrow) { color: var(--muted); font-size: 14px; margin-top: 9px; max-width: 780px; }
.immo-app .header-actions, .immo-app .toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.immo-app .eyebrow { margin: 0 0 8px; color: var(--accent-strong); font-weight: 600; letter-spacing: .09em; text-transform: uppercase; font-size: 11px; }
.immo-app .toolbar { margin-bottom: 22px; }
.immo-app .import-band, .immo-app .panel, .immo-app .investment-section, .immo-app .planning-settings,
.immo-app .immo-page-finance > form, .immo-app .immo-page-holding > form, .immo-app .immo-page-checks > form {
  min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--falke-radius-card); background: var(--surface); box-shadow: var(--shadow);
}
.immo-app .import-band { margin-bottom: 20px; }
.immo-app .import-band > h2 { margin-bottom: 16px; }
.immo-app .url-form { display: grid; gap: 12px; }
.immo-app .url-form > button { justify-self: start; }
.immo-app .url-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
.immo-app .paste-import { min-height: 200px; }
.immo-app .grid, .immo-app .analysis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 20px; }
.immo-app .panel.wide { grid-column: 1 / -1; }
.immo-app .panel h2, .immo-app .panel h3 { margin-bottom: 16px; }
.immo-app .panel h3:not(:first-child) { margin-top: 22px; }
.immo-app .panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.immo-app .panel-heading h2 { margin-bottom: 0; }
.immo-app .metric-list { margin: 0; display: grid; gap: 10px; }
.immo-app .metric-list.columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.immo-app .metric-list > div { display: flex; justify-content: space-between; gap: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.immo-app .metric-list dt { min-width: 0; color: var(--muted); overflow-wrap: anywhere; }
.immo-app .metric-list dd { min-width: 0; max-width: 65%; flex-shrink: 0; margin: 0; color: var(--ink); text-align: right; overflow-wrap: anywhere; font-weight: 600; font-variant-numeric: tabular-nums; }
.immo-app .compact-list, .immo-app .strategy-rules { margin: 0; padding-left: 22px; color: var(--muted); }
.immo-app .compact-list li + li { margin-top: 10px; }
.immo-app .list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 16px; }
.immo-app .list-toolbar > span { color: var(--muted); font-size: 13px; }
.immo-app .list-toolbar input { max-width: 320px; }
.immo-app .table-panel { min-width: 0; margin-block: 18px; border: 1px solid var(--line); border-radius: var(--falke-radius-card); background: var(--surface); overflow: hidden; overflow: clip; box-shadow: var(--shadow); }
.immo-app .immo-table-frame { min-width: 0; max-width: 100%; overflow: hidden; overflow: clip; border: 1px solid var(--line); border-radius: var(--falke-radius-control); background: var(--surface); }
.immo-app .table-panel > .immo-table-frame { border: 0; border-radius: inherit; }
.immo-app .immo-table-scroller { min-width: 0; max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; border-radius: inherit; }
.immo-app .immo-table-scroller:focus-visible { outline-offset: -3px; }
.immo-app table { width: 100%; border-collapse: collapse; border-spacing: 0; background: var(--surface); font-size: 13px; }
.immo-app table th, .immo-app table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; line-height: 1.5; }
.immo-app table th { background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 600; }
.immo-app table tr:last-child td { border-bottom: 0; }
.immo-app table tbody tr:hover { background: var(--falke-bg); }
.immo-app .object-table { min-width: 980px; }
.immo-app .object-table td { font-variant-numeric: tabular-nums; }
.immo-app .object-table td > small { display: block; max-width: 160px; margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.4; white-space: normal; }
.immo-app table .immo-numeric { text-align: right; font-variant-numeric: tabular-nums; }
.immo-app table td.immo-numeric { white-space: nowrap; }
.immo-app table th.immo-numeric .sort-button { justify-content: flex-end; text-align: right; }
.immo-app .sort-button { display: flex; width: 100%; min-height: 44px; justify-content: flex-start; gap: 8px; border: 0; border-radius: 5px; background: transparent; color: inherit; padding: 4px 0; font-size: 12px; line-height: 1.35; text-align: left; box-shadow: none; }
.immo-app .sort-button:hover { color: var(--ink); box-shadow: none !important; }
.immo-app .sort-button::after { content: ""; flex-shrink: 0; width: 0; height: 0; border-inline: 3px solid transparent; border-top: 5px solid currentColor; opacity: .4; }
.immo-app .sort-button[data-sort-direction="asc"]::after { border-top: 0; border-bottom: 5px solid currentColor; opacity: 1; }
.immo-app .sort-button[data-sort-direction="desc"]::after { opacity: 1; }
.immo-app .object-cell { display: grid; gap: 9px; min-width: 200px; max-width: 360px; }
.immo-app .object-link { display: grid; gap: 4px; }
.immo-app .object-link strong { color: var(--ink); font-size: 14px; }
.immo-app .object-link:hover strong { color: var(--accent-strong); }
.immo-app .object-link small { color: var(--muted); font-size: 12px; }
.immo-app .source-link { display: inline-block; max-width: 280px; color: var(--accent-strong); font-size: 11px; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.immo-app .row-actions { position: sticky; right: 0; z-index: 1; background: var(--surface); width: 1%; white-space: nowrap; box-shadow: -1px 0 0 var(--line); }
.immo-app .compact-button { min-height: 44px; padding: 8px 12px; font-size: 12px; }
.immo-app .score { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 6px; border: 1px solid var(--falke-brand-border); border-radius: var(--radius); background: var(--falke-brand-soft); color: var(--accent-strong); font-size: 18px; font-weight: 600; }
.immo-app .positive { color: var(--green); font-weight: 600; }
.immo-app .negative { color: var(--red); font-weight: 600; }
.immo-app .estimate-badge { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 400; }
.immo-app .estimate-note { margin-top: 14px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.immo-app .empty-state { display: grid; justify-items: start; align-content: center; gap: 16px; min-height: 220px; padding: 32px; color: var(--muted); }
.immo-app .empty-state h2 { color: var(--ink); }
.immo-app .flash-stack { display: grid; gap: 10px; margin-bottom: 20px; }
.immo-app .flash { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); font-size: 13px; line-height: 1.65; }
.immo-app .flash.success { border-color: var(--falke-success); background: var(--falke-success-bg); color: var(--falke-success); }
.immo-app .flash.error { border-color: var(--falke-error); background: var(--falke-error-bg); color: var(--falke-error); }
.immo-app .flash.warning { border-color: var(--falke-brand-border); background: var(--falke-brand-soft); color: var(--accent-strong); }
.immo-app .flash.info { background: var(--surface-2); }
.immo-app .investment { max-width: 1320px; margin-inline: auto; min-width: 0; }
.immo-app .investment-header { display: flex; align-items: center; gap: 18px; padding-bottom: 24px; }
.immo-app .investment-heading { min-width: 0; flex: 1; }
.immo-app .investment-heading h1 { margin: 12px 0 8px; font-family: var(--falke-font-ui); font-size: clamp(24px, 2.5vw, 32px); font-weight: 600; line-height: 1.2; }
.immo-app .investment-heading p { color: var(--muted); font-size: 13px; }
.immo-app .back-link { display: inline-flex; min-height: 28px; align-items: center; color: var(--muted); font-size: 12px; }
.immo-app .back-link:hover { color: var(--accent-strong); }
.immo-app .investment-photo { width: 82px; height: 82px; flex-shrink: 0; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
.immo-app .investment-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; max-width: 330px; }
.immo-app .investment-actions .button { font-size: 13px; }
.immo-app .object-menu { position: relative; width: 100%; text-align: right; font-size: 12px; }
.immo-app .object-menu summary { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 8px; color: var(--muted); }
.immo-app .object-menu form { margin-top: 8px; }
.immo-app .object-menu button { font-size: 13px; }
.immo-app .investment-summary { display: grid; grid-template-columns: 180px minmax(0, 1fr); padding: 24px; gap: 24px; border: 1px solid var(--falke-chrome-border); border-radius: var(--falke-radius-shell); background: var(--surface); box-shadow: var(--shadow); }
.immo-app .investment-score { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-width: 0; padding: 12px 20px 12px 0; border-right: 1px solid var(--line); text-align: center; }
.immo-app .investment-score > span:first-child { color: var(--muted); font-size: 12px; }
.immo-app .investment-score > strong { font-size: 58px; font-weight: 600; line-height: 1.05; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.immo-app .investment-score strong small { font-size: 16px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.immo-app .status-tag { display: inline-flex; width: fit-content; padding: 4px 9px; border: 1px solid var(--falke-brand-border); border-radius: var(--falke-radius-pill); color: var(--accent-strong); background: var(--falke-brand-soft); font-size: 11px; line-height: 1.4; }
.immo-app .status-tag.status-excluded { background: var(--falke-error-bg); color: var(--red); border-color: var(--red); }
.immo-app .investment-result { min-width: 0; }
.immo-app .investment-result > h2 { font-size: 22px; margin-bottom: 6px; }
.immo-app .investment-result > p { color: var(--muted); font-size: 13px; margin-bottom: 22px; }
.immo-app .investment-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 18px; margin: 0; }
.immo-app .investment-metrics > div { min-width: 0; }
.immo-app .investment-metrics dt { color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.immo-app .investment-metrics dd { margin: 0; font-size: 22px; font-weight: 600; line-height: 1.25; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; letter-spacing: -.02em; }
.immo-app .investment-metrics dd small { color: var(--muted); font-size: 13px; font-weight: 400; letter-spacing: 0; }
.immo-app .investment-tabs { display: flex; flex-wrap: wrap; gap: 4px; width: fit-content; max-width: 100%; margin: 22px 0; padding: 4px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.immo-app .investment-tabs a { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 9px 16px; border: 1px solid transparent; border-radius: 9px; color: var(--muted); font-size: 13px; }
.immo-app .investment-tabs a[aria-selected="true"] { background: var(--surface); border-color: var(--falke-control-border); color: var(--ink); font-weight: 600; }
.immo-app .investment-tabs small { display: inline-flex; padding: 1px 5px; border-radius: var(--falke-radius-pill); background: var(--surface-2); font-size: 10px; }
.immo-app .investment-view { min-width: 0; scroll-margin-top: 18px; }
.immo-app .investment-view > .investment-section, .immo-app .investment-view > .assessment-columns { margin-top: 18px; }
.immo-app .investment-view > :first-child { margin-top: 0; }
.immo-app .assessment-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.immo-app .investment-section h2 { font-size: 18px; margin-bottom: 16px; }
.immo-app .investment-section h3 { margin: 20px 0 10px; }
.immo-app .investment-section > p { font-size: 13px; }
.immo-app .investment-section .investment-section { padding: 22px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; }
.immo-app .section-title { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 16px; }
.immo-app .section-title h2 { margin: 0; }
.immo-app .section-title > span, .immo-app .section-title > a { font-size: 12px; color: var(--muted); }
.immo-app .section-title > a { color: var(--accent-strong); }
.immo-app .policy-gates { display: grid; gap: 0; }
.immo-app .policy-gate { padding: 12px 0; border-bottom: 1px solid var(--line); }
.immo-app .policy-gate:last-child { border-bottom: 0; padding-bottom: 0; }
.immo-app .policy-gate > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 32px; }
.immo-app .policy-gate strong { font-size: 14px; }
.immo-app .policy-gate p { margin-top: 10px; color: var(--muted); font-size: 13px; }
.immo-app .policy-gate p a { color: var(--accent-strong); }
.immo-app .policy-state { display: inline-flex; align-self: flex-start; flex-shrink: 0; padding: 4px 9px; border-radius: var(--falke-radius-pill); color: var(--accent-strong); background: var(--falke-brand-soft); font-size: 11px; }
.immo-app .policy-state.open { color: var(--muted); background: var(--surface-2); }
.immo-app .policy-state.pass { color: var(--green); background: var(--falke-success-bg); }
.immo-app .policy-state.fail { color: var(--red); background: var(--falke-error-bg); }
.immo-app .score-component { padding: 13px 0; border-bottom: 1px solid var(--line); }
.immo-app .score-component:last-child { border: 0; }
.immo-app .score-component summary { display: grid; grid-template-columns: minmax(0, 1fr) 60px 48px; align-items: center; gap: 10px; list-style: none; font-size: 13px; min-height: 30px; }
.immo-app .score-component summary::-webkit-details-marker { display: none; }
.immo-app .score-component summary > span > small { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; }
.immo-app .score-component summary strong { text-align: right; font-size: 13px; font-variant-numeric: tabular-nums; }
.immo-app .score-component summary strong small { font-size: 12px; color: var(--muted); font-weight: 400; }
.immo-app .score-component meter { width: 60px; height: 8px; border: 0; background: var(--surface-2); border-radius: var(--falke-radius-pill); }
.immo-app .score-component meter::-webkit-meter-bar { background: var(--surface-2); border: 0; border-radius: var(--falke-radius-pill); }
.immo-app .score-component meter::-webkit-meter-optimum-value { background: var(--accent-strong); }
.immo-app .score-component meter::-moz-meter-bar { background: var(--accent-strong); }
.immo-app .score-component p { margin-top: 12px; color: var(--muted); font-size: 12px; }
.immo-app .cashflow-lines { margin: 0; font-size: 13px; }
.immo-app .cashflow-lines > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.immo-app .cashflow-lines dt { color: var(--muted); min-width: 0; }
.immo-app .cashflow-lines dd { margin: 0; max-width: 55%; flex-shrink: 0; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.immo-app .cashflow-lines .cashflow-total { padding-top: 14px; border-bottom: 0; font-weight: 600; }
.immo-app .cashflow-total dt { color: var(--ink); }
.immo-app .compact-note { color: var(--muted); font-size: 12px; line-height: 1.65; margin-top: 14px; }
.immo-app .compact-note a { color: var(--accent-strong); text-decoration: underline; }
.immo-app .review-list { list-style: none; padding: 0; margin: 0; }
.immo-app .review-list li { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.6; }
.immo-app .review-list li > a { color: var(--accent-strong); white-space: nowrap; }
.immo-app .plain-details { margin-top: 12px; }
.immo-app .plain-details > summary { min-height: 44px; padding: 12px 0; color: var(--accent-strong); font-size: 13px; }
.immo-app .plain-details li { font-size: 13px; line-height: 1.65; margin-top: 7px; }
.immo-app .investment-table { min-width: 330px; }
.immo-app .investment-table th, .immo-app .investment-table td { padding: 12px; }
.immo-app .investment-table th:not(:first-child), .immo-app .investment-table td:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.immo-app .investment-table tr.selected-row, .immo-app .current-row { background: var(--falke-brand-soft); }
.immo-app .table-scroll { min-width: 0; max-width: 100%; margin-block: 14px; }
.immo-app .form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 20px 18px; margin-bottom: 20px; }
.immo-app .form-grid > label { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-end; }
.immo-app .form-grid > label > input, .immo-app .form-grid > label > select { margin-top: auto; }
.immo-app .investment-form .investment-section + .investment-section { margin-top: 18px; }
.immo-app .investment-form .investment-section > label { margin-top: 14px; }
.immo-app .investment-form textarea { margin-bottom: 12px; }
.immo-app .investment-save { position: sticky; bottom: 0; z-index: 4; display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 20px; padding: 16px 20px; border: 1px solid var(--falke-chrome-border); border-radius: var(--falke-radius-card); background: var(--falke-glass); -webkit-backdrop-filter: blur(var(--falke-glass-blur)); backdrop-filter: blur(var(--falke-glass-blur)); box-shadow: var(--falke-chrome-shadow); }
.immo-app .investment-save a { color: var(--muted); font-size: 13px; padding: 10px 2px; }
.immo-app .bank-confirm { display: flex; align-items: flex-start; gap: 12px; margin-block: 16px; font-size: 13px; line-height: 1.6; }
.immo-app .bank-confirm input { margin-top: 2px; }
.immo-app .check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; margin: 20px 0; }
.immo-app .check-grid label { display: grid; grid-template-columns: minmax(0, 1fr) 148px; align-items: center; gap: 14px; font-size: 13px; }
.immo-app .check-grid select { font-size: 14px; }
.immo-app .strategy-page > .investment-section { margin-bottom: 20px; }
.immo-app .strategy-facts { margin: 0; }
.immo-app .strategy-facts > div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.7; }
.immo-app .strategy-facts > div:last-child { border-bottom: 0; }
.immo-app .strategy-facts dt { color: var(--muted); }
.immo-app .strategy-facts dd { margin: 0; }
.immo-app .strategy-rules li { padding: 12px 0; color: var(--ink); }
.immo-app .strategy-rules h3 { margin: 0 0 6px; }
.immo-app .strategy-rules p { color: var(--muted); font-size: 14px; }
.immo-app .planning-settings { margin-block: 22px; }
.immo-app .planning-settings > summary { min-height: 28px; color: var(--accent-strong); font-size: 15px; font-weight: 600; }
.immo-app .planning-settings > form { padding-top: 24px; }
.immo-app .planning-settings form > details { border-bottom: 1px solid var(--line); padding: 10px 0; margin-bottom: 16px; }
.immo-app .planning-settings form > details > summary { min-height: 44px; padding: 10px 0; }
.immo-app .planning-settings form .form-grid { margin-top: 16px; }
.immo-app .immo-page-planning > p, .immo-app .immo-page-finance > p, .immo-app .immo-page-holding > p { margin-bottom: 20px; }
.immo-app .immo-page-planning > section, .immo-app .immo-page-planning > details { margin-top: 26px; }
.immo-app .immo-page-planning > section > h2, .immo-app .immo-page-planning > details > section > h2 { margin-bottom: 12px; }
.immo-app .immo-page-planning > details:last-child { padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--falke-radius-card); background: var(--surface); }
.immo-app .immo-page-planning > details:last-child > summary { color: var(--accent-strong); min-height: 32px; }
.immo-app .immo-page-planning > details:last-child li { font-size: 13px; line-height: 1.7; margin-top: 10px; }
.immo-app .summary-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 24px 0; }
.immo-app .summary-strip > div { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--falke-radius-card); background: var(--surface); box-shadow: var(--shadow); }
.immo-app .summary-strip dt, .immo-app .summary-strip span { color: var(--muted); font-size: 13px; }
.immo-app .summary-strip dd, .immo-app .summary-strip strong { display: block; margin: 10px 0 0; color: var(--ink); font-size: 28px; font-weight: 600; line-height: 1.2; letter-spacing: -.03em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.immo-app .immo-page-holding > form { margin-block: 24px; }
.immo-app .market-region { padding: 24px; margin-block: 20px; border: 1px solid var(--line); border-radius: var(--falke-radius-card); background: var(--surface); box-shadow: var(--shadow); }
.immo-app .market-region .page-header { margin-bottom: 20px; align-items: center; }
.immo-app .market-region .grid { gap: 24px; }
.immo-app .market-region .panel { box-shadow: none; padding: 20px; }
.immo-app .market-region > a { display: inline-block; color: var(--accent-strong); text-decoration: underline; margin-top: 14px; }
.immo-app .source-details { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); }
.immo-app .source-details > div { display: grid; grid-template-columns: minmax(90px, 1fr) minmax(0, 1.6fr); gap: 14px; }
.immo-app .source-details dt { color: var(--muted); font-size: 12px; }
.immo-app .source-details dd { max-width: 100%; font-size: 12px; overflow-wrap: anywhere; }
.immo-app .source-details dd a { color: var(--accent-strong); text-decoration: underline; }
.immo-app .supplement-warnings { padding: 16px 20px 16px 38px; border: 1px solid var(--falke-brand-border); border-radius: var(--radius); background: var(--falke-brand-soft); color: var(--accent-strong); font-size: 13px; line-height: 1.65; }
.immo-app .supplement-candidates { margin: 20px 0; }
.immo-app .supplement-candidate { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 16px; margin-bottom: 14px; padding: 24px; border: 1px solid var(--line); border-radius: var(--falke-radius-card); background: var(--surface); box-shadow: var(--shadow); color: var(--ink); }
.immo-app .supplement-candidate.has-conflict { border-color: var(--falke-brand-border); }
.immo-app .supplement-candidate > input { margin-top: 3px; }
.immo-app .candidate-body { display: grid; gap: 10px; min-width: 0; }
.immo-app .candidate-body > strong { font-size: 15px; }
.immo-app .candidate-values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; font-size: 15px; }
.immo-app .candidate-values > span { min-width: 0; overflow-wrap: anywhere; }
.immo-app .candidate-values small { display: block; margin-bottom: 5px; color: var(--muted); font-size: 11px; }
.immo-app .candidate-values b { color: var(--accent-strong); font-weight: 600; }
.immo-app .candidate-state { color: var(--muted); font-size: 12px; }
.immo-app .has-conflict .candidate-state { color: var(--accent-strong); }
.immo-app .candidate-note, .immo-app .candidate-evidence { color: var(--muted); font-size: 12px; line-height: 1.65; }
.immo-app .candidate-evidence { padding-left: 12px; border-left: 2px solid var(--line); overflow-wrap: anywhere; }
.immo-app .reply-source { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 360px; padding: 16px; border-radius: var(--radius); background: var(--surface-2); color: var(--ink); overflow: auto; font: inherit; font-size: 13px; line-height: 1.7; }
.immo-app .reply-history { padding: 10px 0; border-bottom: 1px solid var(--line); }
.immo-app .reply-history > summary { min-height: 44px; padding-block: 12px; color: var(--accent-strong); font-size: 13px; overflow-wrap: anywhere; }
.immo-app #anfrage, .immo-app .inquiry-composer { scroll-margin-top: var(--inquiry-scroll-offset, 18px); }
.immo-app .inquiry-modes { display: flex; flex-wrap: wrap; width: fit-content; max-width: 100%; gap: 4px; margin: 20px 0; padding: 4px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.immo-app .inquiry-modes a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 14px; border: 1px solid transparent; border-radius: 9px; color: var(--muted); font-size: 13px; text-align: center; }
.immo-app .inquiry-modes a[aria-current="page"] { color: var(--accent-strong); background: var(--falke-brand-soft); border-color: var(--falke-brand-border); font-weight: 600; }
.immo-app .inquiry-status { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; color: var(--muted); font-size: 12px; }
.immo-app .inquiry-composer label { margin-bottom: 18px; }
.immo-app .inquiry-composer .mail-draft { min-height: 460px; font-size: 15px; line-height: 1.7; }
.immo-app .inquiry-actions, .immo-app .inquiry-dispatch { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.immo-app .inquiry-actions button, .immo-app .inquiry-dispatch button { font-size: 13px; }
.immo-app .inquiry-dispatch { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.immo-app .inquiry-dispatch [role="status"] { font-size: 12px; color: var(--accent-strong); }
.immo-app .inquiry-update { margin-bottom: 20px; padding: 14px 16px; border: 1px solid var(--falke-brand-border); border-radius: var(--radius); background: var(--falke-brand-soft); color: var(--accent-strong); font-size: 13px; }
.immo-app .inquiry-document-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; margin: 16px 0 22px; }
.immo-app .inquiry-document-grid label { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding-block: 8px; font-size: 13px; }
.immo-app .inquiry-document-grid input { margin-top: 2px; }
.immo-app .inquiry-document-grid small { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.immo-app .reply-input textarea { min-height: 160px; margin-top: 12px; }
.immo-app .reply-input button { margin-top: 14px; }
.immo-app .supplement-preview .investment-save { position: static; }
.immo-app .immo-page-error > .flash { margin-bottom: 20px; }
.immo-app .immo-page-inquiry-error .investment-section > label { margin-bottom: 20px; }
.immo-app .mail-draft { min-height: 330px; line-height: 1.65; }
.immo-app .immo-page-finance > form > h2 { margin-block: 22px 12px; }
.immo-app .immo-page-finance > form > p { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.immo-app.immo-login { min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; }
.immo-app .immo-login-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 5%; border-bottom: 1px solid var(--falke-chrome-border); background: var(--falke-glass); -webkit-backdrop-filter: blur(var(--falke-glass-blur)); backdrop-filter: blur(var(--falke-glass-blur)); }
.immo-app .immo-login-brand { display: flex; align-items: center; gap: 18px; }
.immo-app .immo-login-brand > span { border-left: 1px solid var(--falke-chrome-border); padding-left: 18px; font-size: 14px; }
.immo-app .login-shell { width: min(100% - 80px, 960px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 430px); gap: 68px; align-items: center; align-self: center; margin: 60px auto; }
.immo-app .immo-login-intro { min-width: 0; }
.immo-app .immo-login-intro h1 { font-size: clamp(42px, 4.5vw, 60px); line-height: 1.05; margin: 14px 0 18px; }
.immo-app .immo-login-intro > p:not(.eyebrow) { max-width: 370px; color: var(--muted); font-size: 15px; }
.immo-app .immo-login-art { display: flex; align-items: flex-end; gap: 10px; height: 90px; margin-top: 36px; }
.immo-app .immo-login-art span { display: block; width: 54px; height: 58px; border: 1px solid var(--falke-chrome-border); border-radius: 14px; background: var(--falke-glass); box-shadow: var(--falke-chrome-shadow); }
.immo-app .immo-login-art span:nth-child(2) { height: 88px; width: 72px; }
.immo-app .immo-login-art span:nth-child(3) { height: 72px; }
.immo-app .login-panel { display: grid; gap: 14px; padding: 32px; border: 1px solid var(--line); border-radius: var(--falke-radius-shell); background: var(--surface); box-shadow: var(--shadow); }
.immo-app .login-panel h2 { font-family: var(--falke-font-display); font-size: 32px; font-weight: 400; letter-spacing: -.02em; }
.immo-app .login-panel .eyebrow { margin-bottom: 2px; }
.immo-app .login-help { color: var(--muted); font-size: 13px; }
.immo-app .login-panel .flash-stack { margin-bottom: 0; }
.immo-app .login-form { display: grid; gap: 22px; margin-top: 14px; }
.immo-app .login-form label { gap: 8px; }
.immo-app .immo-login-footer { width: 90%; margin: 0 auto; padding: 24px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; }
@media (max-width: 1250px) {
  .immo-app .investment-header { flex-wrap: wrap; }
  .immo-app .investment-actions { width: 100%; max-width: none; justify-content: flex-start; }
  .immo-app .object-menu { width: auto; }
  .immo-app .investment-metrics dd { font-size: 20px; }
  .immo-app .check-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) {
  .immo-app .assessment-columns { grid-template-columns: 1fr; }
  .immo-app .investment-summary { grid-template-columns: 145px minmax(0, 1fr); padding: 22px; gap: 20px; }
  .immo-app .investment-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .immo-app .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .immo-app .grid, .immo-app .analysis { gap: 16px; }
  .immo-app .source-details > div { grid-template-columns: 1fr; gap: 5px; }
  .immo-app .source-details dd { text-align: left; }
}
@media (max-width: 980px) {
  .immo-app .shell { display: block; }
  .immo-app .sidebar { position: sticky; top: 0; left: auto; width: 100%; max-height: none; overflow: visible; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 20px 10px; border-radius: 0 0 20px 20px; border-top: 0; border-inline: 0; }
  .immo-app .brand { display: flex; align-items: center; gap: 14px; border: 0; padding: 0; min-width: 0; }
  .immo-app .brand-copy { display: block; padding-left: 14px; border-left: 1px solid var(--falke-chrome-border); }
  .immo-app .brand-copy strong { font-size: 15px; }
  .immo-app .brand-copy small { display: none; }
  .immo-app .immo-brand-logo { width: 98px; }
  .immo-app .sidebar > form { grid-column: 2; grid-row: 1; }
  .immo-app .sidebar-logout { width: auto; font-size: 12px; padding-inline: 12px; }
  .immo-app .immo-sidebar-note { display: none; }
  .immo-app .nav { grid-column: 1 / -1; grid-row: 2; display: flex; gap: 5px; min-width: 0; width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; padding-bottom: 4px; scrollbar-width: thin; }
  .immo-app .nav a { flex-shrink: 0; white-space: nowrap; font-size: 13px; padding-inline: 12px; }
  .immo-app .nav .nav-secondary { margin-top: 0; }
  .immo-app .main { padding: 24px 20px; }
  .immo-app .strategy-strip { margin-bottom: 24px; }
  .immo-app .login-shell { width: min(100% - 48px, 840px); grid-template-columns: minmax(0, 1fr) minmax(0, 390px); gap: 36px; }
  .immo-app .immo-login-intro h1 { font-size: 46px; }
  .immo-app .login-panel { padding: 28px; }
}
@media (max-width: 700px) {
  .immo-app .main { padding: 22px 14px; }
  .immo-app .sidebar { padding: 12px 14px 8px; gap: 9px; }
  .immo-app .page-header { align-items: flex-start; flex-direction: column; gap: 18px; }
  .immo-app .page-header h1 { font-size: 32px; }
  .immo-app .header-actions { width: 100%; }
  .immo-app .strategy-strip { padding: 10px 12px; gap: 5px 12px; font-size: 11px; }
  .immo-app .import-band, .immo-app .panel, .immo-app .investment-section, .immo-app .planning-settings,
  .immo-app .immo-page-finance > form, .immo-app .immo-page-holding > form, .immo-app .immo-page-checks > form { padding: 20px 16px; }
  .immo-app .grid, .immo-app .analysis, .immo-app .form-grid, .immo-app .summary-strip, .immo-app .metric-list.columns { grid-template-columns: 1fr; }
  .immo-app .form-grid { gap: 18px; }
  .immo-app .url-row { grid-template-columns: 1fr; }
  .immo-app .url-form > button { width: 100%; justify-self: stretch; }
  .immo-app .toolbar { align-items: stretch; }
  .immo-app .toolbar .button { width: 100%; }
  .immo-app .list-toolbar { flex-direction: column; align-items: stretch; gap: 14px; }
  .immo-app .list-toolbar input { max-width: none; }
  .immo-app .table-panel { margin-top: 16px; }
  .immo-app .empty-state { padding: 26px 20px; }
  .immo-app .investment-header { gap: 14px; }
  .immo-app .investment-heading h1 { font-size: 25px; }
  .immo-app .investment-photo { width: 60px; height: 60px; }
  .immo-app .investment-actions { gap: 8px; }
  .immo-app .investment-actions .button { padding-inline: 12px; font-size: 12px; }
  .immo-app .investment-summary { grid-template-columns: 1fr; gap: 20px; padding: 20px 16px; }
  .immo-app .investment-score { display: grid; grid-template-columns: 1fr auto; align-items: center; justify-items: start; gap: 8px 12px; border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 20px; text-align: left; }
  .immo-app .investment-score > strong { grid-column: 2; grid-row: 1 / 3; font-size: 48px; }
  .immo-app .investment-score .status-tag { grid-column: 1; }
  .immo-app .investment-result > h2 { font-size: 21px; }
  .immo-app .investment-metrics { gap: 20px 14px; }
  .immo-app .investment-metrics dd { font-size: 21px; }
  .immo-app .investment-metrics dd small { display: block; margin-top: 3px; }
  .immo-app .investment-tabs { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; margin-block: 18px; }
  .immo-app .investment-tabs a { min-height: 44px; padding: 9px 8px; font-size: 13px; }
  .immo-app .score-component summary { grid-template-columns: minmax(0, 1fr) 48px 42px; gap: 8px; }
  .immo-app .score-component meter { width: 48px; }
  .immo-app .score-component summary strong { font-size: 12px; }
  .immo-app .section-title { align-items: flex-start; }
  .immo-app .investment-section h2 { font-size: 18px; }
  .immo-app .policy-gate > summary { align-items: flex-start; }
  .immo-app .policy-state { font-size: 10px; padding: 4px 7px; }
  .immo-app .investment-save { gap: 10px; padding: 12px; }
  .immo-app .investment-save > button { flex: 1 1 100%; }
  .immo-app .investment-save > a { padding: 7px 3px; }
  .immo-app .check-grid { gap: 16px; }
  .immo-app .check-grid label { grid-template-columns: minmax(0, 1fr) 132px; gap: 12px; }
  .immo-app .check-grid select { font-size: 16px; }
  .immo-app .strategy-facts > div { grid-template-columns: 1fr; gap: 6px; padding: 15px 0; }
  .immo-app .summary-strip { gap: 12px; }
  .immo-app .summary-strip > div { padding: 20px; }
  .immo-app .market-region { padding: 20px 16px; }
  .immo-app .market-region .page-header { align-items: flex-start; gap: 14px; }
  .immo-app .market-region .panel { padding: 16px; }
  .immo-app .source-details > div { grid-template-columns: minmax(80px, 1fr) minmax(0, 1.6fr); }
  .immo-app .source-details dd { text-align: right; }
  .immo-app .supplement-candidate { padding: 18px 14px; gap: 12px; }
  .immo-app .candidate-values { gap: 14px; font-size: 14px; }
  .immo-app .inquiry-modes { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .immo-app .inquiry-modes a { font-size: 13px; padding: 10px 6px; }
  .immo-app .inquiry-composer .mail-draft { min-height: 420px; font-size: 16px; }
  .immo-app .inquiry-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .immo-app .inquiry-actions button { padding: 10px 8px; font-size: 13px; }
  .immo-app .inquiry-document-grid { grid-template-columns: 1fr; gap: 6px; }
  .immo-app .immo-footer { margin-top: 30px; }
  .immo-app .immo-login-header { padding: 18px 5%; }
  .immo-app .login-shell { width: min(100% - 28px, 480px); grid-template-columns: 1fr; gap: 28px; margin-block: 38px; }
  .immo-app .immo-login-intro h1 { font-size: 42px; }
  .immo-app .immo-login-intro > p:not(.eyebrow) { max-width: none; font-size: 14px; }
  .immo-app .immo-login-art { display: none; }
  .immo-app .login-panel { padding: 26px 22px; }
  .immo-app .login-panel h2 { font-size: 30px; }
  .immo-app .immo-login-footer { width: calc(100% - 28px); }
}
@media (max-width: 360px) {
  .immo-app .investment-metrics dd { font-size: 19px; }
  .immo-app .investment-metrics dt { font-size: 11px; }
  .immo-app .check-grid label { grid-template-columns: 1fr; gap: 8px; }
  .immo-app .source-details > div { grid-template-columns: 1fr; gap: 4px; }
  .immo-app .source-details dd { text-align: left; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .immo-app .sidebar, .immo-app .investment-save, .immo-app .immo-login-header { background: var(--surface); }
}
@media (prefers-reduced-motion: reduce) {
  .immo-app button, .immo-app .button { transition: none; }
}
@media print {
  .immo-app { background: white; color: black; }
  .immo-app .sidebar, .immo-app .immo-footer, .immo-app .immo-skip-link { display: none; }
  .immo-app .shell { display: block; }
  .immo-app .main { padding: 0; }
  .immo-app .immo-table-scroller { overflow: visible; }
  .immo-app .table-panel, .immo-app .immo-table-frame { overflow: visible; }
  .immo-app .investment-save { position: static; }
}
