/* ==========================================================================
   Übersicht "Vergleich" — Welches Zimmer passt zu Ihnen? (inc/uebersicht-vergleich.php)
   Hell, redaktionell, eckig. Tokens, Knöpfe, Kopfzeile, KI- und FAQ-Abschnitt
   kommen aus zimmer.css; hier nur, was diese Seite neu braucht.
   ========================================================================== */

/* Kopfzeile: hier liegt kein Foto dahinter — immer im hellen Zustand, auch ohne JS */
.uebersicht .kopf { background: var(--papier); color: var(--tinte); box-shadow: 0 1px 0 var(--linie); backdrop-filter: none; -webkit-backdrop-filter: none; }
.uebersicht .kopf .logo-dunkel { display: none; }
.uebersicht .kopf .logo-hell { display: block; }
.uebersicht .kopf .kopf-zimmer a { text-shadow: none; }
.uebersicht .kopf .kopf-zimmer a:hover { border-bottom-color: var(--sand); }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.vgl [hidden] { display: none !important; }
.vgl [id] { scroll-margin-top: calc(var(--kopf-h) + 16px); }
.v-innen { max-width: 1280px; margin: 0 auto; }
.v-kopf { max-width: 780px; }
.v-kopf h2 { font-size: clamp(32px, 4.4vw, 58px); text-wrap: balance; }
.v-text { margin: 16px 0 0; max-width: 620px; color: var(--tinte-2); font-size: clamp(16px, 1.25vw, 18px); line-height: 1.6; }

/* Fließtext-Links zu den Zimmern */
.v-lead a, .kurzantwort a {
  color: var(--tinte); text-decoration: underline; text-decoration-color: var(--sand);
  text-decoration-thickness: 1px; text-underline-offset: 3px; transition: text-decoration-color .2s;
}
.v-lead a:hover, .kurzantwort a:hover { text-decoration-color: var(--sand-dunkel); text-decoration-thickness: 2px; }

/* ---------- Held ---------- */
.v-held { padding: calc(var(--kopf-h) + clamp(28px, 5vw, 72px)) var(--rand) clamp(64px, 8vw, 110px); background: var(--papier); }
.v-pfad { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 18px; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--sand-dunkel); }
.v-pfad a { color: var(--tinte-2); text-decoration: none; }
.v-pfad a:hover { color: var(--tinte); text-decoration: underline; text-decoration-color: var(--sand); text-underline-offset: 3px; }
.v-held h1 { font-size: clamp(36px, 5.6vw, 82px); max-width: 24ch; text-wrap: balance; }
.v-lead { margin: 22px 0 0; max-width: 700px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; text-wrap: pretty; }

/* ---------- Zimmer-Finder ---------- */
.finder { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); margin-top: clamp(36px, 5vw, 64px); align-items: start; }
.finder-form { position: sticky; top: calc(var(--kopf-h) + 20px); padding: clamp(20px, 2.2vw, 28px); background: var(--weiss); border: 1px solid var(--linie); }
.finder-titel { margin: 0 0 16px; font: 700 13px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--sand-dunkel); }
.finder-form fieldset { min-width: 0; margin: 0 0 22px; padding: 0; border: 0; }
.finder-form legend { margin: 0 0 6px; padding: 0; font-size: 15px; font-weight: 700; color: var(--tinte); }
.finder-form .zaehler { padding: 8px 0; }
.finder-form .zaehler > label { flex: 1; font-size: 15.5px; }
.finder-form .zaehler input {
  width: 4.2em; padding: 6px 8px; border: 0; border-radius: 0; background: var(--weiss); color: var(--tinte);
  box-shadow: inset 0 0 0 1px var(--linie-2); font: 400 17px/1.2 var(--sans); text-align: center;
}
/* Mit JS: Plus/Minus-Knöpfe, die Zahl steht groß dazwischen */
.finder-form.js .zaehler input { width: 1.6em; padding: 0; box-shadow: none; background: transparent; font: 300 28px/1 var(--head); -moz-appearance: textfield; appearance: textfield; }
.finder-form.js .zaehler input::-webkit-inner-spin-button,
.finder-form.js .zaehler input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.finder-form .zaehler input:focus-visible { outline: 2px solid var(--sand-dunkel); outline-offset: 2px; }
.finder-form .rund[aria-disabled="true"] { opacity: .35; cursor: default; }

.wuensche { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.wuensche legend { margin-bottom: 10px; }
.wunsch {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; cursor: pointer;
  background: var(--weiss); box-shadow: inset 0 0 0 1px var(--linie-2);
  font-size: 15px; line-height: 1.3; transition: box-shadow .2s, background .2s;
}
.wunsch:hover { box-shadow: inset 0 0 0 1px var(--sand-dunkel); }
.wunsch:has(input:checked) { background: color-mix(in srgb, var(--sand-hell) 40%, var(--weiss)); box-shadow: inset 0 0 0 1.5px var(--sand-dunkel); }
.wunsch input {
  -webkit-appearance: none; appearance: none; flex: none; display: grid; place-content: center;
  width: 18px; height: 18px; margin: 0; border: 1.5px solid var(--linie-2); border-radius: 0; background: var(--weiss); cursor: pointer;
}
.wunsch input::after { content: ''; width: 9px; height: 5px; border-left: 2px solid var(--weiss); border-bottom: 2px solid var(--weiss); transform: translateY(-1px) rotate(-45deg); opacity: 0; }
.wunsch input:checked { background: var(--sand-dunkel); border-color: var(--sand-dunkel); }
.wunsch input:checked::after { opacity: 1; }
.wunsch input:focus-visible { outline: 2px solid var(--sand-dunkel); outline-offset: 2px; }
.finder-los { width: 100%; }
.finder-hinweis { margin: 14px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--tinte-2); }

/* Ergebnis: beste Wahl groß, Alternative daneben, die übrigen kompakt */
.finder-ergebnis-titel { font-size: clamp(26px, 2.6vw, 36px); }
.finder-status { margin: 8px 0 22px; font-size: 15px; color: var(--tinte-2); }
.finder-zu-viele { margin: 0 0 8px; padding: 16px 18px; background: var(--weiss); border: 1px solid var(--linie-2); font-size: 15px; line-height: 1.5; }
.finder-top, .finder-weitere { list-style: none; margin: 0; padding: 0; transition: opacity .18s, transform .18s var(--ease); }
.finder-ergebnis.wechsel .finder-top, .finder-ergebnis.wechsel .finder-weitere { opacity: 0; transform: translateY(6px); }
.finder-top { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(20px, 2.4vw, 36px); align-items: start; }

.fz { position: relative; min-width: 0; }
.fz-marke { position: absolute; z-index: 1; left: 0; top: 0; margin: 0; padding: 8px 12px; background: var(--weiss); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--sand-dunkel); }
.fz-marke:empty { display: none; }
.finder-top .fz:first-child .fz-marke { background: var(--sand); color: var(--tinte); }
.fz-bild { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--papier-2); }
.fz-bild img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), opacity .3s; }
.fz:hover .fz-bild img { transform: scale(1.04); }
.fz-name { margin-top: 18px; font-size: clamp(24px, 2.3vw, 34px); line-height: 1.12; text-wrap: balance; }
.finder-top .fz + .fz .fz-name { font-size: clamp(21px, 1.8vw, 26px); }
.fz-name a, .wachs-schritt h3 a, .vgl-tab thead a { text-decoration: none; }
.fz-name a:hover, .wachs-schritt h3 a:hover, .vgl-tab thead a:hover span { text-decoration: underline; text-decoration-color: var(--sand); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.fz-fakten { margin: 6px 0 0; font-size: 14.5px; color: var(--tinte-2); }
.fz-gruende { list-style: none; display: grid; gap: 8px; margin: 16px 0 0; padding: 0; }
.fz-gruende li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.45; }
.fz-gruende li::before { content: ''; position: absolute; left: 2px; top: .38em; width: 12px; height: 7px; border-left: 2px solid var(--sand-dunkel); border-bottom: 2px solid var(--sand-dunkel); transform: rotate(-45deg); }
.fz-gruende li.nein { color: var(--tinte-2); }
.fz-gruende li.nein::before { top: .72em; width: 11px; height: 0; border-left: 0; border-bottom: 2px solid var(--linie-2); transform: none; }
.fz-preis { margin: 18px 0 0; font-size: 13px; color: var(--tinte-2); }
.fz-preis b { margin: 0 .3em; font: 300 30px/1 var(--head); color: var(--tinte); white-space: nowrap; }
.fz-preis-info { margin: 4px 0 0; font-size: 12.5px; color: var(--tinte-2); }
.fz-cta { margin-top: 20px; text-align: left; line-height: 1.25; }

.finder-weitere-titel { margin: clamp(36px, 4vw, 52px) 0 14px; padding-top: 18px; border-top: 1px solid var(--linie); }
.finder-weitere { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px clamp(16px, 2vw, 28px); }
.finder-weitere .fz { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 14px; align-content: start; }
.finder-weitere .fz-bild { grid-column: 1; grid-row: 1 / span 6; aspect-ratio: 1; align-self: start; }
.finder-weitere .fz > :not(.fz-bild) { grid-column: 2; }
.finder-weitere .fz-marke { position: static; margin: 0 0 4px; padding: 0; background: none; font-size: 11px; letter-spacing: .1em; color: #9a5b2c; }
.finder-weitere .fz-name { margin-top: 0; font-size: 19px; }
.finder-weitere .fz-fakten { font-size: 13px; }
.finder-weitere .fz-gruende, .finder-weitere .fz-preis-info { display: none; }
.finder-weitere .fz-preis { margin-top: 6px; font-size: 12px; }
.finder-weitere .fz-preis b { margin: 0 .25em; font-size: 19px; }
.finder-weitere .fz-cta {
  justify-self: start; margin-top: 6px; padding: 0; background: none; box-shadow: none;
  font: 400 13.5px/1.4 var(--sans); letter-spacing: 0;
  text-decoration: underline; text-decoration-color: var(--sand); text-underline-offset: 3px;
}
.finder-weitere .fz-cta:hover { transform: none; background: none; text-decoration-color: var(--sand-dunkel); }
.fz.passt-nicht .fz-bild img { opacity: .5; filter: grayscale(.5); }
.fz.passt-nicht .fz-name, .fz.passt-nicht .fz-preis b { color: var(--tinte-2); }

/* ---------- Wächst mit: Grundrisse im Flächenverhältnis ---------- */
.wachs { padding: clamp(80px, 10vw, 140px) var(--rand); background: var(--weiss); border-top: 1px solid var(--linie); }
.wachs-raster { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 88px); margin-top: clamp(36px, 5vw, 64px); }
.wachs-buehne {
  position: sticky; top: calc(var(--kopf-h) + 24px); align-self: start; margin: 0;
  height: calc(100svh - var(--kopf-h) - 48px); min-height: 440px;
  display: flex; flex-direction: column; justify-content: center; gap: 22px;
}
.wachs-zahl { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .14em; margin: 0; font: 300 clamp(56px, 6vw, 96px)/1 var(--head); color: var(--tinte); }
.wachs-zahl b { font-weight: 300; font-variant-numeric: tabular-nums; }
.wachs-zahl span { flex-basis: 100%; margin-top: 12px; font: 400 13px/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--sand-dunkel); }
.wachs-flaeche { position: relative; width: min(100%, calc(50svh * var(--ar))); aspect-ratio: var(--ar); }
.wachs-plan {
  position: absolute; left: 0; bottom: 0; width: calc(var(--b) * 100%); height: auto;
  opacity: 0; transform-origin: 0 100%; transform: scale(var(--von, 1));
  transition: opacity .5s var(--ease), transform .9s var(--ease);
}
.wachs-plan.aktiv { opacity: 1; transform: none; }
/* Umrisse aller Kategorien: die größeren zeigen, wie viel Platz noch kommt */
.wachs-umriss { position: absolute; z-index: 1; left: 0; bottom: 0; width: calc(var(--b) * 100%); aspect-ratio: var(--a); border: 1px dashed var(--linie-2); pointer-events: none; transition: opacity .4s, border-color .4s; }
.wachs-umriss i { position: absolute; right: 0; bottom: 100%; padding-bottom: 3px; font: 700 10.5px/1 var(--sans); font-style: normal; letter-spacing: .06em; color: var(--tinte-2); }
.wachs-umriss.aktiv { border: 1.5px solid var(--sand-dunkel); }
.wachs-umriss.aktiv i { color: var(--sand-dunkel); }
.wachs-umriss.kleiner { opacity: 0; }
.wachs-buehne figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
.wachs-skala { display: flex; align-items: center; gap: 2px; }
.wachs-skala a { min-width: 42px; padding: 9px 6px; text-align: center; text-decoration: none; font-size: 14px; color: var(--tinte-2); box-shadow: inset 0 -2px 0 var(--linie); transition: color .2s, box-shadow .2s; }
.wachs-skala a:hover { color: var(--tinte); box-shadow: inset 0 -2px 0 var(--sand); }
.wachs-skala a[aria-current] { color: var(--tinte); font-weight: 700; box-shadow: inset 0 -2px 0 var(--sand-dunkel); }
.wachs-skala span { margin-left: 6px; font-size: 13px; color: var(--tinte-2); }
.wachs-cap { font-size: 12.5px; color: var(--tinte-2); }

.wachs-schritte { list-style: none; margin: 0; padding: 0; }
.wachs-schritt { display: flex; flex-direction: column; min-height: 78svh; justify-content: center; padding: 48px 0; border-top: 1px solid var(--linie); transition: opacity .5s var(--ease); }
.wachs-schritt:first-child { border-top: 0; }
.wachs.js .wachs-schritt:not(.aktiv) { opacity: .38; }
.wachs-mobil { display: none; margin: 0 0 20px; }
.wachs-mobil img { width: calc(var(--b) * 100%); height: auto; }
.wachs-nr { margin: 0 0 12px; font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--sand-dunkel); }
.wachs-schritt h3 { font-size: clamp(28px, 3vw, 42px); text-wrap: balance; }
.wachs-claim { margin: 10px 0 0; font-size: 17px; }
.wachs-bel { margin: 4px 0 0; font-size: 15px; color: var(--tinte-2); }
.wachs-fakten { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--linie); }
.wachs-fakten li { padding: 10px 0; border-bottom: 1px solid var(--linie); font-size: 15px; line-height: 1.45; }
.wachs-preis { margin: 16px 0 0; font-size: 13px; color: var(--tinte-2); }
.wachs-preis b { margin: 0 .3em; font: 300 26px/1 var(--head); color: var(--tinte); white-space: nowrap; }
.wachs-preis small { display: block; margin-top: 4px; font-size: 12.5px; }
.wachs-link { align-self: flex-start; margin-top: 14px; font-size: 15px; font-weight: 700; text-decoration: underline; text-decoration-color: var(--sand); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.wachs-link span { display: inline-block; transition: transform .3s var(--ease); }
.wachs-link:hover { text-decoration-color: var(--sand-dunkel); }
.wachs-link:hover span { transform: translateX(5px); }
/* Ohne JS: einfache Liste mit Grundriss je Zimmer */
.wachs:not(.js) .wachs-raster { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.wachs:not(.js) .wachs-buehne { display: none; }
.wachs:not(.js) .wachs-mobil { display: block; }
.wachs:not(.js) .wachs-schritt { min-height: 0; }

/* ---------- Vergleichstabelle ---------- */
.v-tabelle { padding: clamp(80px, 10vw, 130px) var(--rand); background: var(--papier); border-top: 1px solid var(--linie); }
.tab-wischen { display: none; margin: 18px 0 0; font-size: 12.5px; color: var(--tinte-2); }
.tab-rahmen { margin-top: clamp(28px, 4vw, 48px); overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.tab-rahmen:focus-visible { outline: 2px solid var(--sand-dunkel); outline-offset: 4px; }
.vgl-tab { width: 100%; min-width: 880px; border-collapse: collapse; table-layout: fixed; font-size: 15px; line-height: 1.45; }
.vgl-tab caption { caption-side: bottom; padding-top: 14px; text-align: left; font-size: 12.5px; line-height: 1.5; color: var(--tinte-2); }
.vgl-tab th, .vgl-tab td { padding: 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--linie); }
.vgl-tab thead td, .vgl-tab tbody th { width: 150px; position: sticky; left: 0; z-index: 1; background: var(--papier); }
.vgl-tab thead th, .vgl-tab thead td { vertical-align: bottom; border-bottom: 1px solid var(--tinte-2); padding-bottom: 16px; }
.vgl-tab thead th { font-weight: 400; }
.vgl-tab thead a { display: block; }
.vgl-tab thead img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 12px; background: var(--papier-2); }
.vgl-tab thead span { display: block; font: 300 20px/1.15 var(--head); color: var(--tinte); }
.vgl-tab tbody th { padding-top: 17px; font: 400 12px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--sand-dunkel); }
.vgl-tab .z-kurz td { font-style: italic; color: var(--tinte-2); }
.vgl-tab .z-groesse td { font: 300 26px/1.1 var(--head); color: var(--tinte); white-space: nowrap; }
.vgl-tab .z-preis td { font: 300 24px/1.1 var(--head); color: var(--tinte); white-space: nowrap; }
.vgl-tab .z-rundgang td { border-bottom: 0; }
.vgl-tab td.empfohlen, .vgl-tab th.empfohlen { background: color-mix(in srgb, var(--sand-hell) 38%, var(--papier)); }
.tab-empfohlen { display: inline-block; margin-top: 8px; padding: 4px 8px; background: var(--sand); color: var(--tinte); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.tab-link { font-size: 14px; font-weight: 700; text-decoration: underline; text-decoration-color: var(--sand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.tab-link:hover { text-decoration-color: var(--sand-dunkel); }

.gemeinsam { margin-top: clamp(48px, 6vw, 72px); }
.gemeinsam h3, .v-inklusive h3 { margin-bottom: 8px; font: 700 13px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--sand-dunkel); }
.gemeinsam ul { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 32px; margin: 0; padding: 0; }
.gemeinsam li { padding: 16px 0; border-top: 1px solid var(--linie); font-size: 15px; line-height: 1.45; }

/* ---------- Auf einen Blick + FAQ (Basis: .steckbrief aus zimmer.css) ---------- */
.v-inklusive { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--linie); }
.v-inklusive h3 { margin-bottom: 14px; }
.v-inklusive ul { list-style: none; display: grid; gap: 9px; margin: 0; padding: 0; }
.v-inklusive li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.4; }
.v-inklusive li::before { content: ''; position: absolute; left: 2px; top: .38em; width: 12px; height: 7px; border-left: 2px solid var(--sand-dunkel); border-bottom: 2px solid var(--sand-dunkel); transform: rotate(-45deg); }

/* KI-Abschnitt auf Papier, damit sich die Abschnitte abwechseln */
.uebersicht .ki { background: var(--papier); }

/* ---------- Weiterlesen: Lage + Preise ---------- */
.v-weiter { padding: clamp(64px, 8vw, 110px) var(--rand); background: var(--weiss); border-top: 1px solid var(--linie); }
.v-weiter-raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); }
.v-weiter-link { display: block; padding: 26px 0 8px; border-top: 2px solid var(--tinte); text-decoration: none; }
.v-weiter-link .eyebrow { display: block; }
.v-weiter-link strong { display: block; font: 300 clamp(26px, 2.8vw, 38px)/1.12 var(--head); color: var(--tinte); transition: color .25s; text-wrap: balance; }
.v-weiter-link strong span { display: inline-block; transition: transform .35s var(--ease); }
.v-weiter-link:hover strong { color: var(--sand-dunkel); }
.v-weiter-link:hover strong span { transform: translateX(8px); }
.v-weiter-text { display: block; max-width: 46ch; margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--tinte-2); }

/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
  .finder { grid-template-columns: minmax(0, 1fr); }
  .finder-form { position: static; max-width: 640px; }
}

/* ---------- Handy ---------- */
@media (max-width: 760px) {
  .v-held h1 { max-width: none; }
  .finder-top { grid-template-columns: minmax(0, 1fr); }
  .finder-top .fz + .fz { padding-top: 8px; }
  .finder-weitere { grid-template-columns: minmax(0, 1fr); }
  .fz-preis b { font-size: 26px; }
  .finder-top .fz-cta { width: 100%; justify-content: center; }

  .wachs-raster, .wachs:not(.js) .wachs-raster { grid-template-columns: minmax(0, 1fr); }
  .wachs-buehne { display: none; }
  .wachs-mobil { display: block; }
  .wachs-schritt, .wachs.js .wachs-schritt:not(.aktiv) { min-height: 0; padding: 36px 0; opacity: 1; }

  .tab-wischen { display: block; }
  .vgl-tab { min-width: 760px; font-size: 14px; }
  .vgl-tab thead td, .vgl-tab tbody th { width: 108px; }
  .vgl-tab th, .vgl-tab td { padding: 12px 10px; }
  .vgl-tab thead span { font-size: 17px; }
  .vgl-tab .z-groesse td { font-size: 22px; }
  .vgl-tab .z-preis td { font-size: 20px; }

  .v-weiter-raster { grid-template-columns: minmax(0, 1fr); }
}
