/* RAUM.SIEBEN — eigene Exposé-Ansicht (09.11.2026). Baut auf site.css auf (Tokens, Knöpfe, Kopf, Kontakt, Fuß).
   CI: Matt-Grund, Neutralschwarz, Leinrot nur als Linie/Marke, Montserrat 700/300 versal. Keine Kästen, keine Schatten. */

/* ---------- Leiste: zurück + blättern ---------- */
.obj-leiste { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.obj-zurueck { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; font-weight: 500; text-decoration: none; color: var(--grau); }
.obj-zurueck svg { width: 18px; height: 18px; transition: transform .45s var(--sanft); }
.obj-zurueck:hover { color: var(--schwarz); }
.obj-zurueck:hover svg { transform: translateX(-4px); }
.obj-blaettern { display: flex; align-items: center; gap: 4px; font-size: 14px; color: var(--grau); font-variant-numeric: tabular-nums; white-space: nowrap; }
.obj-blaettern span { padding: 0 6px; }
.obj-pfeil { display: inline-grid; place-items: center; width: 44px; height: 44px; color: var(--schwarz); cursor: pointer; }
.obj-pfeil svg { width: 20px; height: 20px; }
.obj-pfeil:hover { color: var(--leinrot-tief); }
@media (max-width: 420px) { .obj-blaettern span { display: none; } }

/* ---------- Laden / nicht gefunden ---------- */
.obj-status { padding-top: clamp(48px, 8vw, 104px); padding-bottom: clamp(80px, 10vw, 148px); }
.obj-laedt { color: var(--grau); min-height: 50vh; }
.obj-status .haus-linie { margin-bottom: 28px; }
.obj-status .lead { margin: 24px 0 36px; }
.obj-status .lead a { color: var(--schwarz); font-weight: 600; white-space: nowrap; }

/* ---------- Bilder ---------- */
.obj-galerie { margin-bottom: clamp(32px, 5vw, 56px); }
.obj-raster { display: none; }
.obj-kachel { position: relative; display: block; padding: 0; border: 0; background: var(--flaeche); overflow: hidden; cursor: zoom-in; border-radius: 2px; }
.obj-kachel img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--sanft); }
.obj-kachel:hover img { transform: scale(1.03); }
.obj-alle {
  position: absolute; right: calc(var(--rand) + 16px); bottom: 16px;
  display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 18px;
  background: var(--matt); color: var(--schwarz); border: 1.5px solid var(--schwarz); border-radius: 2px; cursor: pointer;
  font: 600 14px/1 "Montserrat", sans-serif; letter-spacing: .06em; text-transform: uppercase;
}
.obj-alle svg { width: 18px; height: 18px; }
.obj-alle:hover { background: var(--schwarz); color: var(--matt); }

/* Handy: Streifen zum Wischen, ganz randlos */
.obj-streifen { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; background: var(--flaeche); }
.obj-streifen::-webkit-scrollbar { display: none; }
.obj-streifen-bild { flex: 0 0 100%; scroll-snap-align: start; padding: 0; border: 0; background: none; cursor: zoom-in; }
.obj-streifen-bild img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.obj-zaehler { display: flex; gap: 12px; margin: 12px auto 0; font-size: 14px; color: var(--grau); font-variant-numeric: tabular-nums; }
.obj-zaehler [data-zaehler] { font-weight: 600; color: var(--schwarz); }

@media (min-width: 760px) {
  .obj-streifen, .obj-zaehler { display: none; }
  .obj-raster { position: relative; display: grid; gap: 8px; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); height: clamp(380px, 46vw, 600px); }
  .obj-kachel--gross { grid-row: span 2; }
  .obj-raster[data-anzahl="1"] { grid-template-columns: 1fr; }
  .obj-raster[data-anzahl="2"] { grid-template-columns: 2fr 1fr; }
  .obj-raster[data-anzahl="2"] .obj-kachel:not(.obj-kachel--gross) { grid-row: span 2; }
  .obj-raster[data-anzahl="3"] { grid-template-columns: 2fr 1fr; }
  .obj-raster[data-anzahl="4"] .obj-kachel:nth-child(4) { grid-column: span 2; }
}

/* ---------- Haupt: Inhalt + Anfrage-Spalte ---------- */
.obj-haupt { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; padding-bottom: clamp(72px, 9vw, 128px); }
.obj-seite { display: none; }
@media (min-width: 980px) {
  .obj-haupt { grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(48px, 6vw, 96px); align-items: start; }
  .obj-seite { display: block; position: sticky; top: 124px; }
}

/* Kopf */
.obj-kopf .ueber { margin-bottom: 20px; }
.obj-titel { font-size: clamp(26px, 3.4vw, 44px); line-height: 1.1; hyphens: auto; overflow-wrap: break-word; }
.obj-titel > span { margin-top: .15em; }
.obj-stichworte { margin: 20px 0 0; color: var(--grau); font-size: 17px; line-height: 1.55; }
.obj-preiszeile { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 24px 0 0; }
.obj-preiszeile b { font-size: 30px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.obj-preiszeile span { font-size: 15px; color: var(--grau); }
@media (min-width: 980px) { .obj-preiszeile { display: none; } }

/* Kennzahlen: große dünne Ziffern, Leinrot-Linie oben */
.obj-zahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 24px; margin: 40px 0 0; padding-top: 28px; border-top: 2px solid var(--leinrot); }
.obj-zahl { display: flex; flex-direction: column-reverse; gap: 6px; }
.obj-zahl dd { margin: 0; font-size: clamp(30px, 3.2vw, 40px); font-weight: 300; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.obj-zahl dt { font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--grau); }

/* Blöcke */
.obj-block { margin-top: clamp(48px, 6vw, 72px); }
.obj-h { margin: 0 0 20px; font-size: 16px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; display: flex; align-items: center; gap: 16px; }
.obj-h::after { content: ""; flex: 1; height: 1px; background: var(--linie); }
.obj-h3 { margin: 32px 0 8px; font-size: 16px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.obj-text { max-width: 40em; }
.obj-text p { white-space: pre-line; overflow-wrap: break-word; }
.obj-weiter { margin-top: 4px; padding: 0; background: none; border: 0; border-bottom: 1.5px solid var(--leinrot); font: 600 17px/1.4 "Montserrat", sans-serif; color: var(--schwarz); cursor: pointer; }

.obj-daten { display: grid; grid-template-columns: minmax(0, 1fr); margin: 0; }
.obj-zeile { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 24px; padding: 14px 0; border-bottom: 1px solid var(--linie); font-size: 17px; }
.obj-zeile dt { color: var(--grau); flex: 0 1 auto; }
.obj-zeile dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: break-word; hyphens: manual; min-width: 0; }
[data-ausweis] { grid-template-columns: minmax(0, 1fr) !important; max-width: 640px; }
@media (min-width: 700px) { .obj-daten { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; } }

.obj-merkmale { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 48px; }
.obj-merkmale li { position: relative; padding: 12px 0 12px 32px; border-bottom: 1px solid var(--linie); font-size: 17px; }
.obj-merkmale li::before { content: ""; position: absolute; left: 0; top: 1.3em; width: 16px; height: 2px; background: var(--leinrot); }
.obj-merkmale li:first-letter { text-transform: uppercase; }
@media (min-width: 700px) { .obj-merkmale { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Energieklasse: neun Felder, das eigene schwarz */
.obj-skala { list-style: none; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 4px; margin: 0 0 24px; padding: 0; max-width: 520px; }
.obj-skala li { display: grid; place-items: center; height: 40px; border: 1px solid var(--linie); font-size: 14px; font-weight: 600; color: var(--grau); border-radius: 2px; }
.obj-skala li.ist-hier { height: 52px; margin-top: -6px; background: var(--schwarz); border-color: var(--schwarz); color: var(--matt); font-size: 18px; }
[data-block="energie"] .obj-merkmale { margin-bottom: 8px; }
.obj-energie-satz { margin: 0; font-size: 17px; color: var(--grau); max-width: 40em; }
.obj-mehr--innen { margin-top: 20px; border-top: 0; }
.obj-mehr--innen summary { min-height: 52px; font-size: 15px; }
.obj-mehr--innen .obj-daten { padding-bottom: 16px; }

.obj-mehr { margin-top: 40px; border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.obj-mehr summary { display: flex; align-items: center; justify-content: space-between; min-height: 60px; cursor: pointer; list-style: none; font-size: 16px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.obj-mehr summary::-webkit-details-marker { display: none; }
.obj-mehr summary::after { content: "+"; font-size: 26px; font-weight: 300; color: var(--leinrot-tief); }
.obj-mehr[open] summary::after { content: "–"; }
.obj-mehr .obj-text { padding-bottom: 16px; font-size: 16px; color: var(--grau); }
.obj-quelle { margin: 32px 0 0; font-size: 14px; color: var(--grau); }

/* Anfrage-Karte (Desktop): offen auf Matt, nur Leinrot-Linie oben */
.obj-karte { border-top: 2px solid var(--leinrot); padding-top: 24px; display: grid; gap: 12px; }
.obj-preis-art { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--grau); }
.obj-preis { margin: -4px 0 0; font-size: 36px; font-weight: 700; line-height: 1.1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.obj-ort { margin: 0 0 12px; color: var(--grau); font-size: 16px; }
.obj-karte .knopf { width: 100%; justify-content: space-between; white-space: nowrap; }
.obj-karte .knopf--wa { justify-content: center; }
.obj-karte-zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.obj-karte .obj-karte-zwei .knopf { justify-content: center; padding: 0 12px; }
.obj-karte-dazu a { color: var(--schwarz); font-weight: 600; text-decoration: none; white-space: nowrap; border-bottom: 1.5px solid var(--leinrot); }
.obj-karte-dazu { margin: 8px 0 0; font-size: 15px; line-height: 1.55; color: var(--grau); }
.obj-karte-tel { margin: 0; font-size: 15px; color: var(--grau); }
.obj-karte-tel a { color: var(--schwarz); font-weight: 600; text-decoration: none; white-space: nowrap; border-bottom: 1.5px solid var(--leinrot); }

/* Mitfahrender Balken: Telefon-Feld + Preis links, Aufforderung rechts */
.obj-mitfahrend { text-transform: none; letter-spacing: 0; }
.obj-mitfahrend .mit-haupt { justify-content: space-between; gap: 8px; padding: 0 14px; min-width: 0; }
.obj-mitfahrend .mit-haupt span { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.obj-mitfahrend .mit-haupt b { font-weight: 600; font-size: 14px; letter-spacing: .02em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.obj-mitfahrend .mit-haupt b::after { content: "→"; }
@media (max-width: 400px) { .obj-mitfahrend .mit-haupt span { font-size: 15px; } .obj-mitfahrend .mit-haupt b::after { content: none; } }
@media (max-width: 340px) { .obj-mitfahrend .mit-haupt span { display: none; } .obj-mitfahrend .mit-haupt { justify-content: center; } }
.objekt-seite .fuss { padding-bottom: 104px; }
@media (min-width: 980px) { .objekt-seite .fuss { padding-bottom: 48px; } }

/* Kontakt unten: Bild des Angebots statt Stock (nie eines der fünf Raster-Bilder) */
.objekt-seite .kontakt-foto { background: var(--flaeche); }
.kontakt--ohne-foto { border-top: 2px solid var(--leinrot); }
@media (min-width: 980px) {
  .kontakt--ohne-foto { min-height: 0; }
  .kontakt--ohne-foto > .huelle { justify-content: flex-start; }
  .kontakt--ohne-foto .kontakt-text { width: 100%; }
}

/* ---------- Großansicht ---------- */
.schau-offen { overflow: hidden; }
.obj-schau { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: var(--schwarz); color: var(--matt); }
.obj-schau::backdrop { background: var(--schwarz); }
.obj-schau[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.obj-schau-kopf { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px var(--rand); font-size: 15px; font-variant-numeric: tabular-nums; color: var(--hell-auf-dunkel); }
.obj-schau-zu { display: grid; place-items: center; width: 52px; height: 52px; background: none; border: 0; color: var(--matt); cursor: pointer; }
.obj-schau-zu svg { width: 26px; height: 26px; }
.obj-schau-bahn { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.obj-schau-bahn::-webkit-scrollbar { display: none; }
.obj-schau-bild { flex: 0 0 100%; margin: 0; scroll-snap-align: start; display: grid; place-items: center; padding: 0 var(--rand); }
.obj-schau-bild img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.obj-schau-text { margin: 0; padding: 14px var(--rand) calc(20px + env(safe-area-inset-bottom)); text-align: center; font-size: 15px; color: var(--hell-auf-dunkel); min-height: 1.5em; }
.obj-schau-pfeil { display: none; position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; place-items: center; background: none; border: 1.5px solid var(--linie-dunkel); border-radius: 2px; color: var(--matt); cursor: pointer; }
.obj-schau-pfeil svg { width: 22px; height: 22px; }
.obj-schau-pfeil:hover { border-color: var(--matt); }
.obj-schau-pfeil--vor { left: 16px; }
.obj-schau-pfeil--nach { right: 16px; }
.obj-schau :focus-visible { outline-color: var(--matt); }
@media (min-width: 760px) and (hover: hover) { .obj-schau-pfeil { display: grid; } .obj-schau-bild { padding: 0 96px; } }
