/* wels.immobilien — Gestaltung nach dem Entwurf „Vier Kacheln, dann die Karte" (entwurf/richtung-v2.html).
   Das Auffällige ist die Karte mit den orangen Preisen; alles drumherum bleibt ruhig. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --petrol: #0b3d4a;
  --petrol-tief: #072a33;
  --petrol-hell: #e4eef0;
  --orange: #ff6a3d;
  --orange-tief: #f2531f;
  --flaeche: #f4f6f7;
  --weiss: #fff;
  --text: #15262b;
  --grau: #56676c;
  --linie: #d6e0e2;
  --rahmen: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--flaeche);
}
a { color: var(--petrol); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.nur-vorleser { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rahmen { max-width: var(--rahmen); margin: 0 auto; padding: 0 16px; }
.seite.schmal { max-width: 720px; margin: 0 auto; padding: 40px 16px 64px; }

/* ------------------------------------------------------------------ Kopf und Fuß */
.kopf {
  display: flex; align-items: center; gap: 16px;
  padding: 12px max(16px, calc((100% - var(--rahmen)) / 2 + 16px));
  background: var(--petrol); color: var(--weiss);
}
.wortmarke { color: var(--weiss); text-decoration: none; font-weight: 800; font-size: 1.125rem; letter-spacing: -0.02em; }
.wortmarke span { font-weight: 500; opacity: .65; }
.kopf-konto { margin-left: auto; color: var(--weiss); font-size: .875rem; font-weight: 600; text-decoration: none; }
.kopf-konto:hover { text-decoration: underline; }
.sprachwahl {
  margin-left: 6px; color: var(--weiss); text-decoration: none; font-weight: 600; font-size: .8125rem;
  border: 1px solid rgba(255,255,255,.4); border-radius: 999px; padding: 3px 10px;
}
.sprachwahl:hover { background: rgba(255,255,255,.12); }
.fuss {
  margin-top: 56px; padding: 18px 16px; text-align: center; font-size: .8125rem;
  background: var(--petrol); color: rgba(255,255,255,.85);
}
.fuss a { color: var(--weiss); }
.sprachhinweis {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 1000;
  display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 12px;
  background: var(--petrol-tief); color: var(--weiss); font-size: .875rem; box-shadow: 0 6px 24px rgba(7,42,51,.3);
}
.sprachhinweis[hidden] { display: none; }
.sprachhinweis a { color: var(--orange); font-weight: 700; }
.sprachhinweis button { font: inherit; color: rgba(255,255,255,.75); background: none; border: 0; cursor: pointer; text-decoration: underline; }

/* ------------------------------------------------------------------ Einstieg */
.einstieg { padding: 28px 0 20px; }
.einstieg h1 { margin: 0; font-size: clamp(1.625rem, 4vw, 2.25rem); line-height: 1.15; font-weight: 800; letter-spacing: -0.025em; }
.lead { margin: 6px 0 18px; color: var(--grau); max-width: 60ch; }
.einstiege { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kachel {
  display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  padding: 14px 16px; border-radius: 12px; background: var(--weiss); color: var(--text); text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--linie);
}
.kachel:hover, .kachel.ist-aktiv { box-shadow: inset 0 0 0 2px var(--petrol); }
.kachel .symbol {
  grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--petrol-hell); color: var(--petrol);
}
.kachel .symbol svg { width: 22px; height: 22px; }
.kachel strong { font-size: 1rem; line-height: 1.25; }
.kachel span:last-child { font-size: .875rem; color: var(--grau); }

/* ------------------------------------------------------------------ Filter */
.suche { max-width: var(--rahmen); margin: 0 auto; padding: 0 16px; }
.filter { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-bottom: 12px; }
.reiter {
  display: flex; gap: 2px; width: max-content; max-width: 100%; overflow-x: auto; padding: 3px;
  background: var(--weiss); border-radius: 999px; box-shadow: inset 0 0 0 1px var(--linie);
}
.reiter button {
  font: inherit; font-size: .875rem; font-weight: 600; white-space: nowrap; color: var(--text);
  padding: 7px 14px; border: 0; border-radius: 999px; background: none; cursor: pointer;
}
.reiter button[aria-pressed="true"] { background: var(--petrol); color: var(--weiss); }
.reiter button:not([aria-pressed="true"]):hover { background: var(--petrol-hell); }
.filterzeile { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.filterzeile input[type="search"] { flex: 1 1 260px; }
.filterzeile input, .filterzeile select, .mehr-inhalt input, .mehr-inhalt select {
  font: inherit; height: 44px; padding: 0 12px; color: var(--text);
  border: 1px solid var(--linie); border-radius: 8px; background: var(--weiss);
}
.feld-klein { display: grid; gap: 2px; font-size: .75rem; color: var(--grau); }
.feld-klein[hidden] { display: none; }
.feld-klein select { min-width: 120px; }
.mehr { position: relative; }
.mehr summary {
  list-style: none; cursor: pointer; height: 44px; display: flex; align-items: center; padding: 0 14px;
  border: 1px solid var(--linie); border-radius: 8px; background: var(--weiss); font-size: .875rem; font-weight: 600;
}
.mehr summary::-webkit-details-marker { display: none; }
.mehr[open] summary { border-color: var(--petrol); }
.mehr-inhalt {
  position: absolute; z-index: 600; top: calc(100% + 6px); left: 0; width: min(420px, 92vw);
  display: grid; gap: 12px; padding: 16px; background: var(--weiss); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(7,42,51,.18);
}
.mehr-inhalt label { display: grid; gap: 4px; font-size: .8125rem; color: var(--grau); }
.mehr-inhalt fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.mehr-inhalt legend { font-size: .8125rem; color: var(--grau); margin-bottom: 6px; }
.mehr-inhalt .haken { display: flex; gap: 6px; align-items: center; font-size: .875rem; color: var(--text); }
.knopf {
  display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 20px;
  font: inherit; font-weight: 700; color: var(--petrol-tief); background: var(--orange);
  border: 0; border-radius: 8px; cursor: pointer; text-decoration: none;
}
.knopf:hover { background: var(--orange-tief); }
.knopf-ruhig { background: var(--petrol); color: var(--weiss); }
.knopf-ruhig:hover { background: var(--petrol-tief); }
.knopf-anbieter { background: var(--weiss); color: var(--text); box-shadow: inset 0 0 0 1px var(--linie); }
.knopf-anbieter:hover { background: var(--weiss); box-shadow: inset 0 0 0 2px var(--petrol); }
/* Gestaltungsregeln der Anbieter: Google weiß mit Rand #747775 und Schrift #1f1f1f, Meta #1877F2 mit weißem f */
.knopf-google, .knopf-facebook { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 500; }
.knopf-google { background: #fff; color: #1f1f1f; box-shadow: inset 0 0 0 1px #747775; font-family: Roboto, Arial, sans-serif; }
.knopf-google:hover { background: #f8fafd; box-shadow: inset 0 0 0 1px #747775; }
.knopf-facebook { background: #1877F2; color: #fff; box-shadow: none; }
.knopf-facebook:hover { background: #166fe5; box-shadow: none; }
.anbieter-zeichen { flex: none; }
.anmelde-wege { display: grid; gap: 10px; margin: 8px 0 18px; }
.knopf-reihe { display: flex; flex-wrap: wrap; gap: 10px; }
.knopf-reihe form { margin: 0; }
.kasten .tabelle + p { margin-top: 14px; }
.status-kasten { display: grid; gap: 10px; margin-bottom: 18px; }
.pruef-karte { display: grid; gap: 10px; margin-bottom: 14px; }
.pruef-karte p { margin: 0; }
.pruef-fotos { display: flex; gap: 6px; overflow-x: auto; }
.pruef-fotos img { height: 90px; width: auto; border-radius: 6px; }
.grund-form { display: grid; gap: 6px; }
.grund-form label { display: grid; gap: 4px; font-size: .8125rem; color: var(--grau); }
.grund-form textarea { font: inherit; padding: 8px 10px; border: 1px solid var(--linie); border-radius: 8px; }
.grund-form .knopf { justify-self: start; }
.melden-link { margin: 4px 0 0; }
.ratgeber-liste { list-style: none; padding: 0; display: grid; gap: 12px; }
.ratgeber-liste a { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--linie); border-radius: 10px; background: var(--weiss); color: var(--text); text-decoration: none; }
.ratgeber-liste a:hover, .ratgeber-liste a:focus { border-color: var(--petrol); }
.ratgeber-liste span { color: var(--grau); font-size: .9375rem; }
.ratgeber-artikel, .rechtstext { max-width: 720px; }
.ratgeber-artikel p, .ratgeber-artikel li, .rechtstext p, .rechtstext li { line-height: 1.6; }
.ratgeber-artikel h2, .rechtstext h2 { margin-top: 28px; }
.rechtstext h3 { margin-top: 20px; font-size: 1.05rem; }
.rechtstext { overflow-wrap: break-word; }
.rechtstext h1 { font-size: clamp(1.5rem, 7vw, 2rem); line-height: 1.2; }   /* „Datenschutzerklärung“ passt am Handy in eine Zeile */
.verkaufen-wege { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 18px; align-items: start; margin-top: 18px; }
.verkaufen-wege h2 { margin-top: 0; }
.nur-schmal { display: none; }
@media (max-width: 760px) { .verkaufen-wege { grid-template-columns: minmax(0, 1fr); } .nur-schmal { display: block; } }
.melden-link a { color: var(--grau); }
.melde-gruende { border: 0; margin: 0; padding: 0; display: grid; gap: 6px; }
.melde-gruende legend { font-size: .8125rem; color: var(--grau); margin-bottom: 4px; }
.anfrageformular label.haken, .anfrageformular label.wahl { display: flex; gap: 8px; align-items: flex-start; font-size: .9375rem; color: var(--text); }
.status-kasten p { margin: 0; }
.anmelde-wege .knopf, .weiter-wege .knopf { width: 100%; }
.trenner { display: flex; align-items: center; gap: 12px; color: var(--grau); font-size: .875rem; }
.trenner::before, .trenner::after { content: ""; flex: 1; border-top: 1px solid var(--linie); }
.inseratformular input[type=email] {
  font: inherit; font-size: 1rem; color: var(--text); padding: 10px 12px; border: 1px solid var(--linie); border-radius: 8px; background: var(--weiss); width: 100%;
}

/* ------------------------------------------------------------------ Karte und Liste */
.karte-und-liste {
  display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr);
  height: clamp(440px, 72vh, 760px); border-radius: 14px; overflow: hidden;
  background: var(--weiss); box-shadow: inset 0 0 0 1px var(--linie);
}
.karte-rahmen { position: relative; min-height: 100%; }
.karte { position: absolute; inset: 0; background: var(--petrol-hell); z-index: 0; }
.umgebung-schalter {
  position: absolute; left: 10px; bottom: 24px; right: 10px; z-index: 500; pointer-events: none;
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
.umgebung-schalter > * { pointer-events: auto; }
.umgebung-schalter span { font-size: .75rem; font-weight: 600; padding: 4px 8px; border-radius: 999px; background: rgba(255,255,255,.92); }
.umgebung-schalter button {
  display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: .8125rem; font-weight: 600;
  padding: 5px 10px; border: 0; border-radius: 999px; cursor: pointer; color: var(--text);
  background: var(--weiss); box-shadow: 0 1px 4px rgba(7,42,51,.25);
}
.umgebung-schalter button[aria-pressed="true"] { background: var(--petrol); color: var(--weiss); }
.punkt { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--weiss); box-shadow: 0 0 0 1px rgba(7,42,51,.2); }
.punkt-einkauf { background: #3c8d5a; }
.punkt-gesundheit { background: #c0392b; }
.punkt-bildung { background: #6c5ce7; }
.punkt-lokale { background: #d68910; }
.punkt-oeffis { background: #7f8c8d; }
.liste { overflow-y: auto; padding: 12px; border-left: 1px solid var(--linie); }
.liste-kopf { margin: 2px 4px 10px; font-weight: 700; font-size: .9375rem; }
.ergebnisse { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.treffer {
  display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 8px; border-radius: 10px;
  color: inherit; text-decoration: none;
}
.treffer:hover, .treffer.ist-aktiv { background: var(--flaeche); }
.treffer.ist-aktiv { box-shadow: inset 3px 0 0 var(--orange); }
.treffer img, .kein-foto { width: 112px; aspect-ratio: 3 / 2; height: auto; object-fit: cover; border-radius: 8px; }
.kein-foto { display: grid; place-items: center; background: var(--petrol-hell); color: rgba(11,61,74,.45); }
.kein-foto svg { width: 34px; height: 34px; }
.t-text { display: grid; align-content: start; gap: 1px; min-width: 0; }
.t-preis { font-variant-numeric: tabular-nums; font-size: 1rem; }
.t-titel { font-size: .875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-zeile, .t-energie { font-size: .8125rem; color: var(--grau); }
.t-marke {
  justify-self: start; font-size: .6875rem; font-weight: 700; padding: 1px 7px; border-radius: 999px;
  background: var(--petrol); color: var(--weiss);
}
.liste-leer { margin: 24px 8px; color: var(--grau); }
.karte-quelle { margin: 6px 2px 0; font-size: .75rem; color: var(--grau); text-align: right; }

/* Preis-Markierungen: Leaflet setzt den Ankerpunkt oben links, das Schild steht mittig darüber */
.pin { width: 0; height: 0; }
.pin-schild {
  position: absolute; left: 0; top: 0; transform: translate(-50%, calc(-100% - 7px));
  padding: 3px 8px; border-radius: 6px; white-space: nowrap; cursor: pointer;
  font: 700 12px/1.3 "Inter", system-ui, sans-serif; font-variant-numeric: tabular-nums;
  background: var(--orange); color: var(--petrol-tief); box-shadow: 0 2px 6px rgba(7,42,51,.35);
}
.pin-schild::after {
  content: ""; position: absolute; left: 50%; bottom: -6px; margin-left: -6px;
  border: 6px solid transparent; border-bottom: 0; border-top-color: var(--orange);
}
.pin-nachmieter .pin-schild { background: var(--petrol); color: var(--weiss); }
.pin-nachmieter .pin-schild::after { border-top-color: var(--petrol); }
.pin.ist-aktiv .pin-schild { background: var(--petrol-tief); color: var(--weiss); transform: translate(-50%, calc(-100% - 7px)) scale(1.12); }
.pin.ist-aktiv .pin-schild::after { border-top-color: var(--petrol-tief); }
.leaflet-container { font-family: inherit; }
.leaflet-control-attribution { font-size: 10px; }

/* ------------------------------------------------------------------ Weiter */
.weiter { margin-top: 28px; }
.weiter-raster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.weiter-karte {
  display: grid; gap: 6px; align-content: start; padding: 18px; border-radius: 14px;
  color: var(--text); text-decoration: none; background: var(--weiss); box-shadow: inset 0 0 0 1px var(--linie);
}
.weiter-karte strong { font-size: 1.0625rem; }
.weiter-karte > span:not(.knopf) { color: var(--grau); font-size: .9375rem; }
.weiter-karte .knopf { justify-self: start; margin-top: 8px; }
.weiter-karte.ist-match { background: var(--petrol); color: var(--weiss); box-shadow: none; }
.weiter-karte.ist-match > span:not(.knopf) { color: rgba(255,255,255,.8); }
.weiter-karte.ist-ausziehen { background: var(--petrol-hell); box-shadow: none; }
.weiter-karte ul { margin: 2px 0 0; padding-left: 18px; font-size: .9375rem; }
.weiter-karte li { margin: 4px 0; }

/* ------------------------------------------------------------------ Handy */
@media (max-width: 900px) {
  .einstiege { grid-template-columns: 1fr 1fr; }
  .weiter-raster { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .kachel { grid-template-columns: 1fr; row-gap: 6px; padding: 12px; }
  .kachel .symbol { grid-row: auto; width: 34px; height: 34px; }
  .karte-und-liste { display: block; height: auto; }
  .karte-rahmen { height: 60vh; min-height: 340px; }
  .umgebung-schalter { flex-wrap: nowrap; overflow-x: auto; bottom: 22px; }
  .umgebung-schalter span { display: none; }
  .umgebung-schalter button { flex: none; }
  .liste { border-left: 0; border-top: 1px solid var(--linie); max-height: none; }
  .filterzeile input[type="search"] { flex-basis: 100%; }
  .feld-klein, .mehr { flex: 1 1 0; min-width: 0; }
  .feld-klein select { min-width: 0; width: 100%; }
  .mehr summary { justify-content: center; }
  .mehr-inhalt { left: auto; right: 0; }
  .filterzeile .knopf { flex: 1 1 100%; }
}

/* ------------------------------------------------------------------ Inseratsseite */
.inserat { max-width: var(--rahmen); margin: 0 auto; padding: 16px 16px 0; }
.zurueck { margin: 0 0 12px; font-size: .875rem; }
.inserat-raster { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.inserat-seite { position: sticky; top: 16px; display: grid; gap: 12px; }
.galerie { margin: 0 0 18px; }
.galerie-gross img { width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: cover; border-radius: 14px; }
.galerie-leiste { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.galerie-leiste img { width: 104px; aspect-ratio: 3 / 2; height: auto; object-fit: cover; border-radius: 8px; }
.galerie-leer { width: 100%; aspect-ratio: 3 / 2; border-radius: 14px; margin-bottom: 18px; }
.galerie-leer svg { width: 72px; height: 72px; }
.inserat h1 { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.2; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.inserat h2 { margin: 28px 0 10px; font-size: 1.125rem; }
.inserat-seite h2 { margin: 0 0 10px; }
.inserat-preis { margin: 6px 0 0; font-size: 1.375rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.inserat-zeile { margin: 2px 0 0; color: var(--grau); }
.hinweis { margin: 14px 0 0; padding: 10px 14px; border-radius: 10px; background: var(--petrol-hell); box-shadow: inset 3px 0 0 var(--petrol); }
.eckdaten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 0; }
.eckdaten div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--linie); }
.eckdaten dt { color: var(--grau); }
.eckdaten dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.fliesstext { max-width: 70ch; overflow-wrap: anywhere; }
.sprachmarke { display: inline-block; margin: 0 0 6px; padding: 2px 8px; border-radius: 999px; font-size: .75rem; background: var(--petrol-hell); color: var(--petrol); }
.original summary { cursor: pointer; color: var(--petrol); font-weight: 600; }
.karte-detail { height: 340px; border-radius: 14px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--linie); }
.naechste { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.naechste li { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.kasten { padding: 18px; border-radius: 14px; background: var(--weiss); box-shadow: inset 0 0 0 1px var(--linie); }
.kasten p { margin: 0 0 6px; }
.anfrageformular { display: grid; gap: 10px; }
.anfrageformular label { display: grid; gap: 4px; font-size: .8125rem; color: var(--grau); }
.anfrageformular input, .anfrageformular textarea {
  font: inherit; font-size: 1rem; color: var(--text); padding: 10px 12px; border: 1px solid var(--linie); border-radius: 8px; background: var(--weiss);
}
.anfrageformular textarea { resize: vertical; }
.anfrageformular .klein { font-size: .75rem; color: var(--grau); margin: 0; }
.honig { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.erfolg, .fehler { padding: 10px 12px; border-radius: 8px; }
.erfolg { background: #e3f3e8; color: #1d5b33; }
.fehler { background: #fde7e3; color: #8a2414; }
.teilen-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; }
.teilen-knoepfe .knopf { height: 38px; padding: 0 14px; font-size: .875rem; }
.galerie-dialog { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 92vh; }
.galerie-dialog::backdrop { background: rgba(7,42,51,.88); }
.galerie-dialog img { max-width: 96vw; max-height: 92vh; border-radius: 8px; }
.galerie-dialog button {
  position: fixed; width: 44px; height: 44px; border: 0; border-radius: 50%; cursor: pointer;
  font-size: 1.5rem; line-height: 1; background: rgba(255,255,255,.92); color: var(--petrol-tief);
}
.g-zu { top: 16px; right: 16px; }
.g-zurueck { left: 16px; top: 50%; }
.g-weiter { right: 16px; top: 50%; }
@media (max-width: 900px) {
  .inserat-raster { grid-template-columns: minmax(0, 1fr); }
  .inserat-seite { position: static; }
  .eckdaten { grid-template-columns: minmax(0, 1fr); }
}

/* Kärtchen auf der Karte */
.popup-treffer { display: grid; gap: 2px; color: var(--text); text-decoration: none; min-width: 180px; font: 13px/1.35 "Inter", system-ui, sans-serif; }
.popup-treffer strong { font-size: 14px; font-variant-numeric: tabular-nums; }
.popup-zeile, .popup-energie { color: var(--grau); font-size: 12px; }
.anfrageformular + p, .erfolg + .anfrageformular { margin-top: 10px; }

/* Hinweis am Handy: ein Finger scrollt die Seite, zwei bewegen die Karte */
.karte-hinweis {
  position: absolute; inset: 0; z-index: 900; display: grid; place-items: center; padding: 24px;
  background: rgba(7,42,51,.55); color: var(--weiss); font-weight: 700; text-align: center;
  opacity: 0; transition: opacity .2s; pointer-events: none;
}
.karte-hinweis.ist-sichtbar { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .karte-hinweis { transition: none; } }

form.inline { display: inline; }
.haken { display: flex; gap: 8px; align-items: flex-start; }
.rahmen > h1 { margin-top: 28px; }

/* Makler-Bereich im Konto und Makler-Kasten im Inserat */
.rahmen > h2 { margin: 28px 0 10px; }
.rahmen > .kasten { overflow-x: auto; }
.tabelle { width: 100%; border-collapse: collapse; font-size: .875rem; }
.tabelle th { padding: 6px 8px; border-bottom: 1px solid var(--linie); color: var(--grau); font-weight: 600; text-align: left; }
.tabelle td { padding: 8px; border-bottom: 1px solid var(--linie); vertical-align: top; }
.tabelle tr:last-child td { border-bottom: 0; }
.stand-online { color: #1d5b33; font-weight: 600; }
.stand-ausserhalb, .stand-ohne_lage { color: #8a2414; font-weight: 600; }
.stand-offline, .fehlertext { color: var(--grau); }
.fehlertext { font-size: .8125rem; }
.anfrage-eintrag + .anfrage-eintrag { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--linie); }
.anbieter-logo { display: block; max-width: 160px; max-height: 80px; margin: 0 0 10px; }
/* Inseratsformular (Stufe 3) */
.inseratformular { display: grid; gap: 18px; }
.inseratformular fieldset { margin: 0; padding: 16px; border: 0; border-radius: 14px; background: var(--weiss); box-shadow: inset 0 0 0 1px var(--linie); display: grid; gap: 10px; }
.inseratformular legend { float: left; width: 100%; padding: 0; font-weight: 700; font-size: 1.0625rem; margin-bottom: 4px; }
.inseratformular legend + * { clear: both; }
.inseratformular label { display: grid; gap: 4px; font-size: .8125rem; color: var(--grau); }
.inseratformular label.haken, .inseratformular label.wahl { display: flex; gap: 8px; align-items: flex-start; font-size: .9375rem; color: var(--text); }
.inseratformular input[type=text], .inseratformular input[type=number], .inseratformular input[type=tel], .inseratformular select, .inseratformular textarea {
  font: inherit; font-size: 1rem; color: var(--text); padding: 10px 12px; border: 1px solid var(--linie); border-radius: 8px; background: var(--weiss); width: 100%;
}
.inseratformular .zwei { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.inseratformular .wahl-reihe { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.inseratformular .wahl-spalte { display: grid; gap: 6px; }
.inseratformular .merkmal-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 12px; }
.inseratformular .inventar-zeile { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 8px; }
.inseratformular .klein { font-size: .8125rem; color: var(--grau); margin: 0; }
.foto-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.foto-liste li { display: grid; gap: 4px; align-content: start; }
.foto-liste img { display: block; width: 100%; height: 105px; object-fit: cover; border-radius: 8px; background: var(--linie); }
.inseratformular input[type=file] { font: inherit; font-size: .9375rem; color: var(--text); }
.inseratformular.mit-js .nur-hinweis { display: none; }
.feld-fehler { margin: 0; color: #8a2414; font-size: .875rem; }
@media (max-width: 520px) { .inseratformular .zwei { grid-template-columns: minmax(0, 1fr); } }
.grundrisse { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.grundrisse img { display: block; width: 100%; height: auto; border-radius: 8px; background: var(--weiss); box-shadow: inset 0 0 0 1px var(--linie); }
.anfrageformular select { font: inherit; font-size: 1rem; color: var(--text); padding: 10px 12px; border: 1px solid var(--linie); border-radius: 8px; background: var(--weiss); }
