/* Feinanpassung Gruppe listen */

/* Objektkarten im Raster NUR auf /immobilienangebot/ (dort traegt die Section die eindeutige
   id="angebot"): live zeigt die Fotos auf dem Handy dort in einem quadratischeren Format
   (332x321 = Seitenverhaeltnis ~1,03) statt unserem Standard 414/338 (~1,22) - jede Karte dadurch
   ca. 27px hoeher als live (Hauptanteil der -50px/Karte-Luecke). Auf /blog/ (Referenzen) passt das
   Standard-Seitenverhaeltnis dagegen schon gut (live dort 388x308 = ~1,26) - deshalb bewusst ueber
   die Section-ID abgegrenzt, nicht ueber die gemeinsame Klasse .objektraster. */
@media (max-width: 767px) {
  /* ersetzt durch feste Fotohöhe 321 px (unten) */
}

/* Referenzen-Kopf ("Vertrauen, das ueberzeugt..."): live hat auf PC 80px Section-Abstand oben
   (statt unserer 40px) und 48px Innenabstand um die beiden Textspalten (statt 0px) - zusammen
   -90px Luecke. Eindeutig ueber das Inline-Style der Section abgegrenzt (nur /blog/, nicht
   /immobilienangebot/, das ein anderes Inline-Style traegt), Handy bereits ok. */
@media (min-width: 768px) {
  section[style*="padding:40px 10px 60px"] { padding-top: 80px; }
  section[style*="padding:40px 10px 60px"] .spalten > div { padding: 48px 48px 0; }
}

/* Referenzen-Liste: der Abstand "Textspalten -> erste Karte" ist bei uns durchgaengig ca. 50px
   groesser als live (unser .listenkopf hat 46px margin-top, live hat direkt nach der Textspalte
   nur die schmale Toolbar-Zeile ohne Zusatzabstand) - verschiebt alle 12 Karten gleichmaessig nach
   unten. Nur auf dieser Seite (eindeutiges Section-Inline-Style), .listenkopf auf
   /immobilienangebot/ bleibt unveraendert (dort stimmt der Abstand bereits). */
@media (max-width: 767px) {
  section[style*="padding:40px 10px 60px"] .listenkopf { margin-top: 0; }
}

/* Referenzen-Liste: jede einzelne Karte stimmt bereits fast exakt mit live ueberein, aber live hat
   zwischen den Karten ca. 53px Abstand (wir 18px) - macht sich ueber 12 Karten als -28px/Karte
   kumulierend bemerkbar. Nur hier (eindeutiges Section-Inline-Style); .objektraster auf
   /immobilienangebot/ bleibt beim Standard-Abstand (dort passt er bereits). */
@media (max-width: 767px) {
  section[style*="padding:40px 10px 60px"] .objektraster { row-gap: 50px; }
}

/* Referenzen PC: Schlussbanner live höher (Überschrift→Fuß 486 statt 369 px, davor +58 px), Einleitung +42 px */
@media (min-width: 768px) {
  body.gruppe-listen .schluss.bildgrund { padding-top: 170px; padding-bottom: 229px; }
  body.gruppe-listen section.rahmen.raster-liste:has(.spalten) { padding-top: 82px !important; }
}

/* Suchprofil-Formular wie live (Frymo, vermessen 26.10.2026): Spalten 248|506|506 bzw. 2x635, Felder 42 px,
   Rahmen 1px #c4c4c4 / Radius 2, Beschriftung 16/500 dunkel, Zwischentitel 16/700 grau, Knopf #272727 */
.sp-titel { text-align: center; margin: 0 0 20px; }
.sp-einl { text-align: center; color: var(--dunkel); max-width: 960px; margin: 0 auto; }
form.sp { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 39px; }
form.sp > * { flex: 0 0 100%; min-width: 0; }
form.sp > .sp-anrede { flex: 0 0 19.375%; }
form.sp > .sp-drittel { flex: 1 1 0; }
form.sp > .sp-halb { flex: 0 0 calc(50% - 5px); }
form.sp .hinweis-test { margin: 0; }
form.sp .sp-teil { font-weight: 700; color: var(--text); margin: 0; line-height: 24px; }
form.sp .sp-teil ~ .sp-teil { margin-top: 5px; }
form.sp label { display: block; font-size: 16px; line-height: 24px; font-weight: 500; color: var(--dunkel); margin: 0 0 5px; }
form.sp input[type=text], form.sp input[type=email], form.sp input[type=tel], form.sp input[type=number], form.sp select, form.sp textarea, form.sp .sp-orte {
  display: block; width: 100%; box-sizing: border-box; height: 42px; padding: 8px; border: 1px solid #c4c4c4; border-radius: 2px; background: #fff;
  font: 400 16px/24px var(--schrift); color: var(--text); margin: 0; }
form.sp select { color: #303030; -webkit-appearance: none; appearance: none; padding-right: 28px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23808080'/%3E%3C/svg%3E") no-repeat right 12px center; }
form.sp select:disabled { opacity: .5; }
form.sp textarea { height: 114px; resize: vertical; }
form.sp ::placeholder { color: var(--text); opacity: 1; }
form.sp .sp-paar { display: flex; gap: 10px; }
form.sp .sp-paar > * { flex: 1 1 0; min-width: 0; }
form.sp .sp-orte { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; height: auto; min-height: 42px; padding: 4px 8px; position: relative; }
form.sp .sp-orte input[type=text] { border: 0; height: 32px; padding: 0; flex: 1 1 60px; width: auto; outline: 0; }
form.sp .sp-chips:empty { display: none; }
form.sp .sp-chips span { display: inline-block; background: #f0f0f0; border-radius: 2px; padding: 2px 6px; margin-right: 4px; color: #303030; cursor: pointer; }
form.sp .sp-hinzu { position: absolute; left: -1px; right: -1px; top: 100%; z-index: 5; text-align: left; background: #fff; border: 1px solid #c4c4c4; padding: 8px; font: 400 16px var(--schrift); color: #303030; cursor: pointer; }
form.sp .sp-haken { font-weight: 500; line-height: 22.4px; margin: 7px 0 0; }
form.sp .sp-haken + .sp-haken { margin-top: 5px; }
form.sp .sp-haken input { margin: 0; vertical-align: -1px; }
form.sp .sp-haken a { color: inherit; text-decoration: underline; }
form.sp > div:has(.sp-knopf) { margin-top: 5px; }
.sp-knopf { background: #272727; color: #fff; border: 0; border-radius: 2px; padding: 10px 36px; font: 400 16px/24px var(--schrift); cursor: pointer; }
@media (max-width: 767px) {
  .sp-einl { font-size: 14px; line-height: 21px; }
  form.sp > .sp-anrede, form.sp > .sp-drittel, form.sp > .sp-halb { flex: 0 0 100%; }
  form.sp label, form.sp .sp-teil { font-size: 14px; line-height: 21px; }
  form.sp select { height: 40px; font-size: 14px; }
  form.sp .sp-haken { font-size: 14px; line-height: 19.6px; }
  .sp-knopf { width: 100%; }
}
/* Nachmessung: live Beschriftungen in „Inter“ 500 (lokal in schriften/, OFL);
   Formular live 1280 breit (20 px breiter als unser Rahmen), Notiz exakt 114 px, Vorname/Nachname je 506 px */
form.sp label { font-family: Inter, sans-serif; }
form.sp textarea { min-height: 114px; }
form.sp > .sp-drittel { flex: 0 0 calc((80.625% - 20px) / 2); }
@media (min-width: 768px) { form.sp { margin-left: -10px; margin-right: -10px; } }
@media (max-width: 767px) {
  .sp-einl { max-width: 278px; }
  form.sp .sp-orte { min-height: 40px; padding: 3px 8px; }
}
@media (max-width: 767px) { form.sp > .sp-drittel { flex: 0 0 100%; } }
/* live: Auswahlfelder (selectize) ohne Pfeil, gesperrter Objekttyp nur graue Schrift; unter dem Knopf 46 px bis zum Fuß */
form.sp select { background-image: none; padding-right: 8px; }
form.sp select:disabled { opacity: 1; color: #aaa; background: #fff; }
section.rahmen:has(> form.sp) { padding-bottom: 46px !important; }
@media (max-width: 767px) { .sp-einl { max-width: 262px; } }

/* Objektkarten im Angebot wie live (Frymo-Raster, vermessen 26.10.2026): Raster 1280 breit, Spalten 413, Abstand 50/20;
   Karte Rand 1px rgba(141,141,141,.1), Radius 16 rundum; Foto fest 321 hoch; Inhalt 24/16/16 mit 12 px Abstand;
   Titel 600; ID-Zeile 32 hoch, Ort/Eckdaten 27, Preis 20px/24. Handy: Raster 334 breit (28 px Rand), Schrift 14/21. */
#angebot .objektraster { gap: 50px 20px; margin: 0 -10px; }
#angebot .okarte { border: 1px solid rgba(141,141,141,.1); border-radius: 0 0 16px 16px; }
#angebot .okarte .bild { aspect-ratio: auto; height: 321px; flex: none; }
#angebot .okarte .info { padding: 24px 16px 16px; gap: 12px; }
#angebot .okarte .nr { padding-top: 8px; line-height: 24px; margin: 0; }
#angebot .okarte h3 { font-weight: 600; letter-spacing: -1px; margin: 0; }
#angebot .okarte .ort, #angebot .okarte .eckdaten { margin: 0; min-height: 27px; }
#angebot .okarte .preis { line-height: 24px; margin-top: 0; }
#angebot .okarte .etiketten span { padding: 2px 16px; line-height: 24px; background: rgba(255,255,255,.6); }
@media (max-width: 767px) {
  #angebot .objektraster { margin: 0 14px; }
  #angebot .okarte .info { font-size: 14px; line-height: 21px; }
  #angebot .okarte .nr { line-height: 21px; }
  #angebot .okarte .ort, #angebot .okarte .eckdaten { min-height: 23px; }
  #angebot .okarte .preis { line-height: 21px; }
  #angebot .okarte .etiketten span { line-height: 21px; }
}
/* Abstände um das Raster wie live (versatz.mjs 26.10.): über den Karten PC −11 / Handy +10 px, unter der Seitenwahl PC −46 / Handy −17 px */
#angebot .objektraster { margin-top: -11px; }
section#angebot { padding-bottom: 34px !important; }
@media (max-width: 767px) {
  #angebot .objektraster { margin-top: 0; padding-top: 14px; }
  section#angebot { padding-bottom: 63px !important; }
}

/* Referenzen-Karten wie live (gleiches Frymo-Raster wie Angebot): 413×444, Foto 308 fest, ohne ID/Eckdaten/Preis
   (leere Eckdatenzeile live trotzdem mit 12 px Abstand), Etikett „Verkauft“ 12/700 rot, Innenabstand 14.
   Handy: Raster volle Breite 390 (kein Seitenrand), Karte 390×440. */
.raster-liste:not(#angebot) .objektraster { gap: 50px 20px; margin: 0 -10px; }
.raster-liste:not(#angebot) .okarte { border: 1px solid rgba(141,141,141,.1); border-radius: 0 0 16px 16px; }
.raster-liste:not(#angebot) .okarte .bild { aspect-ratio: auto; height: 308px; flex: none; }
.raster-liste:not(#angebot) .okarte .info { padding: 24px 16px 28px; gap: 12px; }
.raster-liste:not(#angebot) .okarte h3 { font-weight: 600; letter-spacing: -1px; margin: 0; }
.raster-liste:not(#angebot) .okarte .ort { margin: 0; min-height: 27px; }
.raster-liste:not(#angebot) .okarte .etiketten span { padding: 14px; line-height: 24px; font-weight: 700; color: var(--rot); background: rgba(255,255,255,.6); }
@media (max-width: 767px) {
  .raster-liste:not(#angebot) .objektraster { margin: 0 -10px; }
  .raster-liste:not(#angebot) .okarte .info { font-size: 14px; line-height: 21px; }
  .raster-liste:not(#angebot) .okarte .ort { min-height: 23px; }
  .raster-liste:not(#angebot) .okarte .etiketten span { line-height: 21px; }
}
/* Referenzen Feinabstände (versatz.mjs 26.10. abends): unter der Seitenwahl PC +26 / Handy −18, Handy Einleitung −7, Handy Schlussbanner +19 */
section.raster-liste[style*="padding:40px 10px 60px"] { padding-bottom: 86px !important; }
@media (max-width: 767px) {
  section.raster-liste[style*="padding:40px 10px 60px"] { padding-top: 33px !important; padding-bottom: 42px !important; }
}
@media (max-width: 767px) { body.gruppe-listen .schluss.bildgrund { padding-bottom: 75px; } }
.raster-liste:not(#angebot) .objektraster { margin-top: -10px; }
@media (max-width: 767px) { .raster-liste:not(#angebot) .objektraster { margin-top: 0; padding-top: 9px; } }

/* Objektkarten (Angebot/Startslider/Referenzen): live rundet NUR die UNTEREN beiden Ecken (16px),
   oben bleibt das Foto eckig (per Pixel-Vergleich an der echten Ecke bestätigt: live zeigt an allen
   4 Fotoecken scharfe 90°-Kanten, erst am unteren Kartenrand eine sichtbare Rundung). Die vorherige
   Regel "border-radius:16px" (alle 4 Ecken) rundete bei uns fälschlich auch die Fotoecken oben -
   das war vermutlich die vom Inhaber bemerkte "rund statt eckig"-Stelle auf der Angebotsseite.
   (Die eigentlichen border-radius-Werte sind oben an den Objektkarten-Regeln bereits korrigiert.) */

/* Angebots-Suchleiste (Wo|Titel|ID, Vermarktungsart, Objekttyp, Zimmer, Ort, Kaufpreis, Fläche,
   Suchen-Knopf): live misst Rahmen #69727d und Radius 3px (stil.css hat bislang 1px/#c9ccd1), der
   rote Suchen-Knopf hat auf live zusätzlich 3px Radius (stil.css-Basisknopf ist sonst eckig). */
.suche input, .suche select { border: 1px solid #69727d; border-radius: 3px; }
.suche .knopf { border-radius: 3px; }
/* "Voreingestellte Sortierung": live misst Radius 5px, Rahmen rgba(141,141,141,.1), Hintergrund
   leicht grau rgba(197,197,197,.1) (stil.css hat bislang 0/#eee/weiß). */
.listenkopf select { border-radius: 5px; border: 1px solid rgba(141,141,141,.1); background: rgba(197,197,197,.1); }

/* Foto-Pfeile je Karte (mehrere Fotos durchblättern): auf dem Handy gibt es kein Hover, live zeigt
   den "weiter"-Pfeil dort deshalb immer (nicht erst bei Hover wie am PC - dort bleibt es unveraendert
   bei Hover). Der "zurueck"-Pfeil ist auf dem ersten Foto ohnehin per [hidden] ausgeblendet. */
@media (max-width: 767px) {
  #angebot .okarte .kprev, #angebot .okarte .knext,
  .raster-liste:not(#angebot) .okarte .kprev, .raster-liste:not(#angebot) .okarte .knext { opacity: 1; }
}

/* 360°-Badge: live hat einen engen, hellgrauen Schatten (0 0 3px #ccc), nicht den dunkleren/weicheren
   stil.css-Schatten (0 2px 8px rgba(0,0,0,.12)). */
.tour360 { box-shadow: 0 0 3px rgb(204,204,204); }

/* WhatsApp-Knopf auf dem Handy: live misst 56x56 px mit 14px Abstand zum Rand (nicht 64x64/20px wie am
   PC, stil.css nutzt bislang überall 64/20). */
@media (max-width: 767px) {
  body.gruppe-listen .wa-knopf { width: 56px; height: 56px; right: 14px; bottom: 14px; }
}
