/* ===================================================================
   hohfluh-interactive Styles — STRIKT auf .hohfluh-app gescoped,
   damit Schrift / Farben / Tabellen der Hauptseite NICHT überschrieben werden.
   =================================================================== */

.hohfluh-app{
  --bg:#f7f4ee;
  --paper:#fffdf8;
  --row:#f3ede5;
  --row-alt:#f8f3ec;
  --hover:#fcfbf8;
  --selected:#ffffff;
  --text:#171411;
  --muted:#6b6259;
  --line:rgba(54,48,42,.16);
  --line-strong:rgba(54,48,42,.30);
  --hf-black:#171411;
  --shadow:0 18px 44px rgba(34,28,20,.06);
  --font:Inter,"Helvetica Neue",Arial,sans-serif;
  width:min(1440px,calc(100% - 44px));
  margin:28px auto 56px;
  color:var(--text);
  font-family:var(--font);
  font-feature-settings:"kern" 1,"liga" 1;
}
.hohfluh-app *,
.hohfluh-app *::before,
.hohfluh-app *::after{box-sizing:border-box}

/* Titles */
.hohfluh-app .hohfluh-kicker{margin:0 0 10px;color:var(--muted);font-size:12px;line-height:1;letter-spacing:.32em;text-transform:uppercase;font-weight:650}
.hohfluh-app .hohfluh-title{margin:0;font-size:clamp(38px,4.6vw,68px);line-height:.96;letter-spacing:.15em;text-transform:uppercase;font-weight:300}
.hohfluh-app .hohfluh-intro{max-width:760px;margin:14px 0 34px;color:var(--muted);font-size:18px;line-height:1.45;font-weight:520}

/* Iso card + head */
.hohfluh-app .iso-card{background:var(--paper);border:1px solid rgba(54,48,42,.12);box-shadow:var(--shadow);margin:0 0 18px}
.hohfluh-app .iso-head{min-height:58px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 26px;border-bottom:1px solid var(--line)}
.hohfluh-app .iso-label,
.hohfluh-app .table-meta,
.hohfluh-app thead th,
.hohfluh-app .filter-label{color:var(--muted);font-size:11px;letter-spacing:.24em;text-transform:uppercase;font-weight:650}
.hohfluh-app .iso-label{font-size:13px;letter-spacing:.28em}
.hohfluh-app .selection{color:var(--muted);font-size:15px;line-height:1.25;text-align:right;font-weight:520}
.hohfluh-app .selection strong{color:var(--text);font-weight:650}

/* SVG stage */
.hohfluh-app .svg-stage{background:#fff;padding:16px;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch}
.hohfluh-app .svg-stage svg{display:block;width:100%;min-width:820px;height:auto}

/* Filters */
.hohfluh-app .filter-row{display:grid;grid-template-columns:92px minmax(0,1fr);column-gap:18px;align-items:start;margin:0 0 8px;padding:0}
.hohfluh-app .filter-row:last-of-type{margin-bottom:20px}
.hohfluh-app .filter-label{width:92px;padding:7px 0 0;margin:0;color:#6b6259;font-size:12px;line-height:1;letter-spacing:.15em;font-weight:500}
.hohfluh-app .filter-tabs{display:flex;align-items:flex-start;gap:28px;width:100%;min-width:0;padding:0 0 8px;margin:0;overflow-x:auto;white-space:nowrap}
.hohfluh-app .filter-tab{appearance:none;border:0;background:transparent;margin:0;padding:7px 0 10px;color:#7a7167;font-size:12px;line-height:1;letter-spacing:.15em;text-transform:uppercase;font-weight:400;font-family:inherit;position:relative;cursor:pointer}
.hohfluh-app .filter-tab.is-active{color:#171411;font-weight:600}
.hohfluh-app .filter-tab::after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:transparent}
.hohfluh-app .filter-tab.is-active::after{background:#171411}
.hohfluh-app .mobile-controls{display:none}

/* Table */
.hohfluh-app .table-meta{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:0 0 8px}
.hohfluh-app .table-wrap{width:100%;max-width:100%;overflow-x:auto;overflow-y:visible;-webkit-overflow-scrolling:touch}
.hohfluh-app table{width:100%;min-width:940px;table-layout:fixed;border-collapse:collapse;border-top:1px solid var(--line-strong)}
.hohfluh-app thead th{height:42px;padding:11px 12px;border-bottom:1px solid var(--line-strong);text-align:left;cursor:pointer}
.hohfluh-app thead th:nth-child(n+2),
.hohfluh-app .col-house,
.hohfluh-app .col-rooms,
.hohfluh-app .col-floor,
.hohfluh-app .col-area,
.hohfluh-app .col-price,
.hohfluh-app .col-status,
.hohfluh-app .col-details{text-align:center}
.hohfluh-app tbody tr{background:var(--row);border-bottom:1px solid var(--line);cursor:pointer;transition:background .14s ease,box-shadow .14s ease}
.hohfluh-app tbody tr:nth-child(even){background:var(--row-alt)}
.hohfluh-app tbody tr.is-hovered:not(.is-selected),
.hohfluh-app tbody tr.is-linked:not(.is-selected){background:var(--hover);box-shadow:inset 4px 0 0 rgba(23,20,17,.30),inset 0 0 0 1px rgba(23,20,17,.10)}
.hohfluh-app tbody tr.is-selected{background:var(--selected)!important;box-shadow:inset 5px 0 0 var(--hf-black),inset 0 0 0 1.5px rgba(23,20,17,.74);position:relative;z-index:2}
.hohfluh-app tbody td{height:54px;padding:12px;color:var(--text);font-size:15px;line-height:1.1;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}
.hohfluh-app .col-nr{width:132px;font-weight:520;text-align:left}
.hohfluh-app .col-house{width:110px}
.hohfluh-app .col-rooms{width:108px}
.hohfluh-app .col-floor{width:118px}
.hohfluh-app .col-area{width:130px}
.hohfluh-app .col-price{width:160px}
.hohfluh-app .col-status{width:138px}
.hohfluh-app .col-details{width:146px}
.hohfluh-app tbody tr.is-selected .col-nr{padding-left:22px}
.hohfluh-app .house-text,
.hohfluh-app .status-pill{color:#171411;font-size:15px;line-height:1.1;letter-spacing:.02em;text-transform:none;font-weight:500}
.hohfluh-app .details-btn{display:inline-flex;align-items:center;justify-content:center;min-width:110px;min-height:32px;padding:0 12px;border:1px solid transparent;color:#625a51;background:transparent;text-decoration:none;font-size:12px;letter-spacing:.16em;text-transform:uppercase;font-weight:600}
.hohfluh-app .details-btn[data-fallback="true"]{cursor:default}
.hohfluh-app tbody tr.is-selected .details-btn{background:#171411;border-color:#171411;color:#fff;font-weight:620}
.hohfluh-app tbody tr.is-selected .details-btn[data-fallback="true"]{background:transparent;border-color:rgba(23,20,17,.42);color:#171411}

/* Mobile cards + empty */
.hohfluh-app .mobile-card-list{display:none}
.hohfluh-app .empty{display:none;padding:22px 0;color:var(--muted);font-size:14px}
.hohfluh-app .empty.is-visible{display:block}

/* SVG highlight control */
.hohfluh-app [id^="unit-mfh-"][id$="-highlight-fills"],
.hohfluh-app [id^="unit-mfh-"][id$="-highlight-outline"],
.hohfluh-app [id^="unit-mfh-"][id$="-highlight-garten"]{opacity:0;pointer-events:none;transition-property:opacity;transition-timing-function:ease}
.hohfluh-app [id^="unit-mfh-"][id$="-highlight-fills"].is-visible,
.hohfluh-app [id^="unit-mfh-"][id$="-highlight-outline"].is-visible,
.hohfluh-app [id^="unit-mfh-"][id$="-highlight-garten"].is-visible,
.hohfluh-app [id^="unit-mfh-"][id*="-highlight"].is-visible{opacity:1!important;visibility:visible!important;pointer-events:none!important}
.hohfluh-app [id^="unit-mfh-"][id$="-hit"]{fill:transparent!important;stroke:none!important;opacity:0!important;pointer-events:all;cursor:pointer}

/* Tablet (681-900px) */
@media (min-width:681px) and (max-width:900px){
  .hohfluh-app{width:calc(100% - 24px)}
  .hohfluh-app .svg-stage{overflow-x:hidden}
  .hohfluh-app .svg-stage svg{min-width:0;width:100%}
  .hohfluh-app .table-wrap{overflow-x:visible}
  .hohfluh-app table{width:100%;min-width:0;table-layout:fixed}
  .hohfluh-app thead th{height:34px;padding:8px 5px;font-size:9px;letter-spacing:.14em;font-weight:600}
  .hohfluh-app tbody td{height:42px;padding:7px 5px;font-size:12.5px;font-weight:460}
  .hohfluh-app .col-nr{width:13.5%;font-weight:480;padding-left:12px}
  .hohfluh-app .col-house{width:13.5%}
  .hohfluh-app .col-rooms{width:11.5%}
  .hohfluh-app .col-floor{width:12.5%}
  .hohfluh-app .col-area{width:14%}
  .hohfluh-app .col-price{width:18%}
  .hohfluh-app .col-status{width:15%}
  .hohfluh-app .col-details{width:15%}
  .hohfluh-app .house-text,
  .hohfluh-app .status-pill{font-size:12.5px;font-weight:460;letter-spacing:.01em}
  .hohfluh-app .details-btn{min-width:74px;min-height:26px;padding:0 7px;font-size:10px;letter-spacing:.10em;font-weight:600}
  .hohfluh-app tbody tr.is-selected{box-shadow:inset 4px 0 0 var(--hf-black),inset 0 0 0 1.2px rgba(23,20,17,.70)!important}
  .hohfluh-app tbody tr.is-selected .col-nr{padding-left:18px}
  .hohfluh-app .filter-row{grid-template-columns:82px minmax(0,1fr);column-gap:14px}
  .hohfluh-app .filter-label{width:82px;font-size:11px;letter-spacing:.14em}
  .hohfluh-app .filter-tabs{gap:22px}
  .hohfluh-app .filter-tab{font-size:11px;letter-spacing:.12em}
}

/* Mobile (<=680px) */
@media(max-width:680px){
  .hohfluh-app{width:calc(100% - 18px);margin:18px auto 42px}
  .hohfluh-app .hohfluh-title{font-size:28px;letter-spacing:.07em}
  .hohfluh-app .hohfluh-intro{font-size:15px;line-height:1.35;margin:12px 0 20px}
  .hohfluh-app .iso-card{margin-bottom:18px}
  .hohfluh-app .iso-head{display:block;padding:12px 14px}
  .hohfluh-app .iso-label{font-size:11px;letter-spacing:.22em}
  .hohfluh-app .selection{margin-top:8px;text-align:left;font-size:13px}
  .hohfluh-app .svg-stage{overflow-x:hidden;padding:8px}
  .hohfluh-app .svg-stage svg{min-width:0;width:100%;height:auto}
  .hohfluh-app .filter-row{display:none}
  .hohfluh-app .mobile-controls{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 18px}
  .hohfluh-app .mobile-field{display:block}
  .hohfluh-app .mobile-field span{display:block;margin:0 0 6px;color:#6b6259;font-size:10px;letter-spacing:.18em;text-transform:uppercase;font-weight:600}
  .hohfluh-app .mobile-field select{width:100%;min-height:42px;padding:0 12px;border:1px solid rgba(54,48,42,.24);background:#fffdf8;color:#171411;font:inherit;font-size:14px;font-weight:500;border-radius:0}
  .hohfluh-app .table-wrap{display:none}
  .hohfluh-app .mobile-card-list{display:block}
  .hohfluh-app .table-meta{margin:0 0 10px}
  .hohfluh-app .table-meta span:last-child{display:none}
  .hohfluh-app .unit-card{position:relative;display:grid;grid-template-columns:1fr auto;gap:8px 12px;padding:15px 14px 14px 18px;background:#f3ede5;border-bottom:1px solid rgba(54,48,42,.16);cursor:pointer}
  .hohfluh-app .unit-card:nth-child(even){background:#f8f3ec}
  .hohfluh-app .unit-card.is-hovered:not(.is-selected),
  .hohfluh-app .unit-card.is-linked:not(.is-selected){background:#fcfbf8;box-shadow:inset 4px 0 0 rgba(23,20,17,.30)}
  .hohfluh-app .unit-card.is-selected{background:#fff!important;box-shadow:inset 5px 0 0 #171411,inset 0 0 0 1.4px rgba(23,20,17,.74)}
  .hohfluh-app .unit-card-main{grid-column:1/-1;display:flex;align-items:baseline;justify-content:space-between;gap:12px}
  .hohfluh-app .unit-card-nr{color:#171411;font-size:18px;line-height:1.1;font-weight:600}
  .hohfluh-app .unit-card-status{color:#171411;font-size:14px;line-height:1.1;font-weight:500;text-transform:lowercase}
  .hohfluh-app .unit-card-meta{grid-column:1/2;display:flex;flex-wrap:wrap;gap:6px 10px;color:#5f564d;font-size:13px;line-height:1.3;font-weight:500}
  .hohfluh-app .unit-card-price{flex-basis:100%;color:#171411;font-weight:600}
  .hohfluh-app .unit-card-meta span:not(:last-child)::after{content:"·";margin-left:10px;color:#8a8177}
  .hohfluh-app .unit-card-details{grid-column:2/3;align-self:end;display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:0 12px;border:1px solid rgba(23,20,17,.42);color:#171411;background:transparent;text-decoration:none;font-size:11px;letter-spacing:.13em;text-transform:uppercase;font-weight:650}
  .hohfluh-app .unit-card-details[data-fallback="true"]{cursor:default}
  .hohfluh-app .unit-card.is-selected .unit-card-details{background:#171411;border-color:#171411;color:#fff}
  .hohfluh-app .unit-card.is-selected .unit-card-details[data-fallback="true"]{background:transparent;border-color:rgba(23,20,17,.42);color:#171411}
}
@media(max-width:390px){
  .hohfluh-app .mobile-controls{grid-template-columns:1fr}
}
