/* alvergo-immobilien.de – schlicht, flach, eine Akzentfarbe (ALVERGO-Blau), Arial */
:root {
  --ink: #1d2124;
  --grau: #59626b;
  --linie: #dde2e6;
  --flaeche: #f3f5f6;
  --blau: #2f87c4;
  --blau-text: #1f6aa1;
  --blau-dunkel: #18598a;
  --rahmen: 1180px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; font-size: 17px; line-height: 1.55; color: var(--ink); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blau-text); text-underline-offset: 2px; }
a:hover { color: var(--blau-dunkel); }
h1, h2, h3 { line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 2.35rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
.klein { font-size: .86rem; color: var(--grau); }
.sprung { position: absolute; left: -999px; }
.sprung:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 50; }
:focus-visible { outline: 2px solid var(--blau); outline-offset: 2px; }

.rahmen { max-width: var(--rahmen); margin: 0 auto; padding: 0 24px; }
.schmal { max-width: 820px; }
.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.zwei.mitte { align-items: center; }
.abschnitt { padding: 72px 0; }
.flaeche { background: var(--flaeche); }
.seitenkopf { padding-top: 56px; }
.einleitung { font-size: 1.16rem; color: #33393e; max-width: 62ch; }

/* Knöpfe */
.knopf { display: inline-block; background: var(--blau-text); color: #fff; text-decoration: none; font-weight: bold;
  padding: 13px 22px; border: 2px solid var(--blau-text); border-radius: 3px; font-size: 1rem; cursor: pointer; font-family: inherit; }
.knopf:hover { background: var(--blau-dunkel); border-color: var(--blau-dunkel); color: #fff; }
.knopf.hell { background: #fff; color: var(--blau-text); }
.knopf.hell:hover { background: var(--flaeche); color: var(--blau-dunkel); }
.knopf.klein { padding: 8px 16px; font-size: .95rem; }
.knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6em 0 1em; }
.textlink { font-weight: bold; }
.textlink::after { content: " →"; }

/* Kopf */
.kopf { border-bottom: 1px solid var(--linie); background: #fff; position: relative; z-index: 20; }
.kopf-innen { display: flex; align-items: center; gap: 28px; height: 78px; }
.logo img { width: 132px; height: auto; }
.haupt { display: flex; gap: 22px; margin-left: auto; }
.haupt a { color: var(--ink); text-decoration: none; font-size: .96rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.haupt a:hover { color: var(--blau-text); }
.haupt a[aria-current] { border-bottom-color: var(--blau); }
.kopf-rechts { display: flex; align-items: center; gap: 16px; }
.kopf-tel { color: var(--ink); font-weight: bold; text-decoration: none; white-space: nowrap; }
.menu { display: none; }

/* Start */
.held { padding: 56px 0 64px; }
.held-innen { display: grid; grid-template-columns: 5fr 6fr; gap: 56px; align-items: center; }
.held h1 { font-size: 2.9rem; }
.held-bild { display: block; color: var(--ink); text-decoration: none; }
.held-bild img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.held-unter { display: flex; justify-content: space-between; gap: 16px; padding-top: 10px; font-size: .95rem; border-bottom: 1px solid var(--linie); padding-bottom: 10px; }
.held-bild:hover b { text-decoration: underline; }

.kopfzeile { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; margin-bottom: 8px; }
.reiter { display: flex; gap: 22px; margin: 0 0 28px; }
.reiter a { color: var(--grau); text-decoration: none; padding-bottom: 4px; border-bottom: 2px solid transparent; }
.reiter a:hover { color: var(--ink); }
.reiter a[aria-current] { color: var(--ink); border-bottom-color: var(--blau); font-weight: bold; }
.nachsatz { margin-top: 36px; color: var(--grau); }
.leer { padding: 28px 0; color: var(--grau); max-width: 60ch; }

/* Angebotsliste */
.angebote { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 28px; }
.angebot { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; }
.angebot-bild { position: relative; display: block; margin-bottom: 14px; background: var(--flaeche); }
.angebot-bild img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.ohne-bild { display: flex; aspect-ratio: 4 / 3; align-items: center; justify-content: center; color: var(--grau); }
.status { position: absolute; left: 0; top: 14px; background: #fff; color: var(--ink); font-size: .85rem; font-weight: bold; padding: 4px 10px; }
.angebot-ort { font-size: .86rem; color: var(--grau); }
.angebot-titel { font-weight: bold; font-size: 1.08rem; line-height: 1.3; margin: 4px 0 6px; }
.angebot:hover .angebot-titel { text-decoration: underline; text-decoration-color: var(--blau); }
.angebot-daten { font-size: .92rem; color: #3c4349; }
.angebot-preis { font-weight: bold; font-size: 1.12rem; margin-top: 8px; }

/* Schritte */
.schritte { list-style: none; padding: 0; margin: 0; counter-reset: s; border-top: 1px solid #cfd6db; }
.schritte li { counter-increment: s; position: relative; padding: 14px 0 14px 40px; border-bottom: 1px solid #cfd6db; }
.schritte li::before { content: counter(s); position: absolute; left: 0; color: var(--blau-text); font-weight: bold; }
.schritte b { display: block; }
.ablauf { list-style: none; padding: 0; counter-reset: a; margin: 0 0 2em; }
.ablauf li { counter-increment: a; position: relative; padding: 0 0 22px 52px; }
.ablauf li::before { content: counter(a); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border: 2px solid var(--blau); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: bold; color: var(--blau-text); font-size: .95rem; background: #fff; }
.ablauf li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 34px; bottom: 4px; width: 2px; background: var(--linie); }
.ablauf h3 { margin-bottom: .3em; }
.ablauf p { margin: 0; color: #33393e; }
.liste { padding-left: 1.1em; }
.liste li { margin-bottom: .4em; }

.bild-rahmen { margin: 0; }
.bild-rahmen figcaption { font-size: .86rem; color: var(--grau); margin-top: 8px; }
.sonder h3 { font-size: 1.3rem; margin-top: 18px; }
.sonder h3 a { color: var(--ink); text-decoration: none; }
.sonder h3 a:hover { color: var(--blau-text); text-decoration: underline; }
.kontaktzeilen { font-size: 1.2rem; font-weight: bold; }
.kontaktzeilen a { color: var(--ink); text-decoration: none; }
.kontaktzeilen a:hover { color: var(--blau-text); }

/* Vorher/Nachher */
.vergleich { position: relative; overflow: hidden; --pos: 50%; user-select: none; }
.vergleich img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.vergleich .vorher { position: absolute; inset: 0; height: 100%; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.vergleich::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.vergleich input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.vergleich-text { position: absolute; bottom: 10px; background: rgba(0,0,0,.6); color: #fff; font-size: .8rem; padding: 3px 8px; pointer-events: none; }
.vergleich-text.links { left: 10px; } .vergleich-text.rechts { right: 10px; }
.vergleich:has(input:focus-visible) { outline: 2px solid var(--blau); outline-offset: 3px; }

/* Formular */
.formular { display: grid; gap: 14px; }
.formular h2 { font-size: 1.2rem; margin: 0; }
.formular label { display: grid; gap: 5px; font-size: .92rem; font-weight: bold; }
.formular .opt { font-weight: normal; color: var(--grau); }
.formular input[type=text], .formular input[type=email], .formular input[type=tel], .formular textarea {
  font: inherit; font-weight: normal; font-size: 1rem; padding: 10px 12px; border: 1px solid #b9c2c9; border-radius: 3px; background: #fff; width: 100%; color: var(--ink); }
.formular input:focus, .formular textarea:focus { border-color: var(--blau); outline: 1px solid var(--blau); }
.formular textarea { resize: vertical; min-height: 110px; }
.formular .klein { margin: 0; }
.formular .knopf { justify-self: start; }
.optionen { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.optionen legend { font-size: .92rem; font-weight: bold; padding: 0; margin-bottom: 6px; }
.optionen label { display: flex; gap: 7px; align-items: center; font-weight: normal; font-size: .95rem; }
.optionen input { width: 18px; height: 18px; accent-color: var(--blau-text); }
.honig { position: absolute; left: -5000px; }
.formular-status { margin: 0; font-weight: bold; }
.formular-status.fehler { color: #a32020; }

/* Objektseite */
.objekt { padding-top: 24px; padding-bottom: 72px; }
.brot { font-size: .88rem; color: var(--grau); margin-bottom: 18px; }
.brot a { color: var(--grau); }
.objekt h1 { font-size: 2.05rem; max-width: 30ch; }
.objekt-ort { color: var(--grau); margin-bottom: 22px; }
.galerie { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: 520px; margin-bottom: 40px; }
.galerie a { position: relative; display: block; overflow: hidden; background: var(--flaeche); }
.galerie img { width: 100%; height: 100%; object-fit: cover; transition: opacity .15s; }
.galerie a:hover img { opacity: .92; }
.g-haupt { grid-row: 1 / 3; }
.g-rest { display: none !important; }
.g-alle-zeile { display: none; margin: -28px 0 32px; }
.g-mehr { position: absolute; inset: 0; background: rgba(20,24,28,.55); color: #fff; font-weight: bold; display: flex; align-items: center; justify-content: center; text-align: center; padding: 10px; }
.objekt-raster { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 64px; align-items: start; }
.objekt-text section { padding: 28px 0; border-top: 1px solid var(--linie); }
.objekt-text h2 { font-size: 1.35rem; }
.kennzahlen { display: flex; flex-wrap: wrap; margin: 0 0 8px; }
.kennzahlen div { padding: 0 28px 20px 0; margin-right: 28px; border-right: 1px solid var(--linie); }
.kennzahlen div:last-child { border-right: 0; }
.kennzahlen dt { font-size: .86rem; color: var(--grau); }
.kennzahlen dd { margin: 2px 0 0; font-size: 1.35rem; font-weight: bold; }
.daten { border-collapse: collapse; width: 100%; margin-bottom: 1em; }
.daten th, .daten td { text-align: left; vertical-align: top; padding: 9px 0; border-bottom: 1px solid var(--linie); }
.daten th { font-weight: normal; color: var(--grau); width: 40%; padding-right: 20px; }
.daten.jahr th { width: 90px; }
.grundrisse { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grundrisse figure { margin: 0; }
.grundrisse img { border: 1px solid var(--linie); background: #fff; }
.grundrisse figcaption { font-size: .88rem; color: var(--grau); margin-top: 6px; }
.hinweis { font-size: .86rem; color: var(--grau); }
.seitenleiste { position: sticky; top: 20px; }
.kasten { border: 1px solid var(--linie); padding: 26px; }
.seiten-preis { font-size: 1.9rem; font-weight: bold; margin: 0 0 4px; }
.seiten-preis span { font-size: 1rem; font-weight: normal; color: var(--grau); }
.status-zeile { display: inline-block; background: var(--flaeche); font-weight: bold; padding: 3px 10px; margin-bottom: 10px; }
.person { border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); padding: 16px 0 2px; margin: 16px 0 20px; }
.person a { font-weight: bold; }
.handy-leiste { display: none; }

/* Bildbetrachter */
.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; background: rgba(12,14,16,.96); color: #fff; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(12,14,16,.96); }
.lightbox figure { margin: 0; max-width: calc(100vw - 140px); display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-height: calc(100vh - 110px); max-width: 100%; width: auto; object-fit: contain; }
.lightbox figcaption { margin-top: 12px; font-size: .95rem; color: #d7dde2; text-align: center; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 44px; line-height: 1; cursor: pointer; padding: 12px 18px; font-family: Arial, sans-serif; }
.lightbox button:hover { color: #9fd0f0; }
.lb-zu { top: 8px; right: 12px; }
.lb-vor { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-nach { right: 8px; top: 50%; transform: translateY(-50%); }

/* Fuß */
.fuss { background: #1d2124; color: #c9d0d5; font-size: .93rem; }
.fuss a { color: #e6ebee; text-decoration: none; }
.fuss a:hover { text-decoration: underline; color: #fff; }
.fuss-innen { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; padding-top: 56px; padding-bottom: 40px; }
.fuss-logo img { width: 120px; filter: brightness(0) invert(1); opacity: .9; }
.fuss-titel { color: #fff; font-weight: bold; margin-bottom: .6em; }
.fuss ul { list-style: none; padding: 0; margin: 0; }
.fuss li { margin-bottom: .45em; }
.fuss-recht { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid #3a4146; padding-top: 18px; padding-bottom: 24px; font-size: .85rem; }
.recht h2 { font-size: 1.15rem; margin-top: 1.6em; }

/* Mittlere Breite */
.kopf-link { color: var(--ink); text-decoration: none; font-size: .96rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.kopf-link:hover { color: var(--blau-text); }
.kopf-link[aria-current] { border-bottom-color: var(--blau); }
.haupt { gap: 26px; }
@media (max-width: 860px) {
  .haupt, .kopf-rechts { display: none; }
  .menu { display: block; margin-left: auto; position: relative; }
  .menu summary { list-style: none; cursor: pointer; font-weight: bold; padding: 9px 14px; border: 1px solid var(--linie); border-radius: 3px; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu[open] summary { background: var(--flaeche); }
  .menu nav { position: absolute; right: 0; top: calc(100% + 10px); background: #fff; border: 1px solid var(--linie); min-width: 250px; display: grid; padding: 8px 0; }
  .menu nav a { padding: 10px 20px; color: var(--ink); text-decoration: none; }
  .menu nav a:hover, .menu nav a[aria-current] { background: var(--flaeche); }
}
@media (max-width: 1140px) {
  .objekt-raster { grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; }
}
@media (max-width: 900px) {
  body { font-size: 16px; }
  h1, .held h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  .abschnitt { padding: 52px 0; }
  .zwei, .held-innen { grid-template-columns: 1fr; gap: 36px; }
  .angebote { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .galerie { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; height: auto; }
  .galerie .g-haupt { grid-column: 1 / 3; grid-row: auto; aspect-ratio: 4 / 3; }
  .galerie .g-klein { aspect-ratio: 4 / 3; }
  .galerie .g-klein:nth-of-type(n+4) { display: none; }
  .galerie .g-mehr { display: none; }
  .g-alle-zeile { display: block !important; }
  .objekt-raster { grid-template-columns: 1fr; }
  .seitenleiste { position: static; }
  .objekt h1 { font-size: 1.65rem; }
  .handy-leiste { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--linie); z-index: 30; }
  .handy-leiste .knopf { flex: 1; text-align: center; padding: 11px 10px; }
  .objektseite .fuss { padding-bottom: 70px; }
  .fuss-innen { grid-template-columns: 1fr 1fr; }
  .lightbox figure { max-width: 100vw; }
  .lb-vor, .lb-nach { top: auto !important; bottom: 10px; transform: none !important; }
}
@media (max-width: 560px) {
  .rahmen { padding: 0 18px; }
  .angebote { grid-template-columns: 1fr; }
  .kennzahlen div { padding-right: 18px; margin-right: 18px; }
  .kennzahlen dd { font-size: 1.15rem; }
  .daten th { width: 45%; }
  .grundrisse { grid-template-columns: 1fr; }
  .fuss-innen { grid-template-columns: 1fr; }
  .kopf-innen { height: 66px; }
  .logo img { width: 112px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .kopf, .fuss, .handy-leiste, .seitenleiste form, .galerie a:nth-child(n+2) { display: none !important; } }
.held-unter > :last-child, .angebot-preis { white-space: nowrap; }
/* Galerie mit wenigen Bildern */
.galerie.n1 { grid-template-columns: 1fr; grid-template-rows: 1fr; max-width: 820px; }
.galerie.n2 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr; }
.galerie.n2 .g-haupt { grid-row: auto; }
.galerie.n3, .galerie.n4 { grid-template-columns: 2fr 1fr; }
.galerie.n4 .g-klein:nth-of-type(4) { display: none; }

/* Startseite: Objekt im Fokus */
.fokus { padding: 40px 0 64px; }
.fokus-zeile { color: var(--grau); font-size: .95rem; margin-bottom: 14px; }
.fokus-raster { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: start; }
.fokus-bilder { display: block; }
.fokus-haupt { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.fokus-klein { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.fokus-klein img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.fokus-bilder:hover img { opacity: .94; }
.fokus-text h2 { font-size: 2.3rem; line-height: 1.12; margin-bottom: .45em; }
.fokus-text h2 a { color: var(--ink); text-decoration: none; }
.fokus-text h2 a:hover { color: var(--blau-text); }
.fokus-text > p:first-of-type { font-size: 1.08rem; color: #33393e; }
.fokus-text .kennzahlen { margin: 22px 0 6px; padding-top: 20px; border-top: 1px solid var(--linie); }
.fokus-merkmale { color: #33393e; border-bottom: 1px solid var(--linie); padding-bottom: 18px; }
.makler-band { background: var(--flaeche); padding: 48px 0; }
.makler-band h1 { font-size: 2rem; }
.makler-band .knoepfe { margin-top: 0; }
.lagekarte { margin: 24px 0 0; }
.lagekarte img { border: 1px solid var(--linie); }
.legende { columns: 2; column-gap: 28px; font-size: .92rem; margin: 14px 0 8px; padding-left: 1.4em; }
.legende li { break-inside: avoid; margin-bottom: 3px; }
.lagekarte figcaption { font-size: .82rem; color: var(--grau); }
.grundrisse + .hinweis { margin-top: 12px; }
@media (max-width: 900px) {
  .fokus { padding-top: 24px; }
  .fokus-raster { grid-template-columns: 1fr; gap: 24px; }
  .fokus-text h2 { font-size: 1.8rem; }
  .makler-band h1 { font-size: 1.6rem; }
}
@media (max-width: 560px) { .legende { columns: 1; } }
.fokus-text .kennzahlen div { padding-right: 20px; margin-right: 20px; }
