/* Thien Immobilien – Angebote (Übersicht + Objektseiten)
   Eigenständig gekapselt unter .ang, damit das restliche Seiten-CSS unberührt bleibt. */

.ang {
  --klinker: #901824;
  --klinker-dk: #741219;
  --tinte: #14304f;
  --text: #2b3440;
  --leise: #5d6875;
  --linie: #dfe5ec;
  --himmel: #eef2f6;
  --weiss: #ffffff;
  --r-bild: 14px;
  --r-ui: 10px;
  background: var(--weiss);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  padding: 28px 0 96px;
}
.ang *, .ang *::before, .ang *::after { box-sizing: border-box; }
.ang a { color: var(--tinte); }
.ang a:focus-visible, .ang button:focus-visible { outline: 3px solid var(--klinker); outline-offset: 3px; border-radius: 6px; }
.ang h1, .ang h2, .ang h3 { color: var(--tinte); font-weight: 600; letter-spacing: -0.015em; }
.ang p { margin: 0 0 1em; }
.ang .vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ang-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Kopf Objektseite ---------- */
.ang-crumb { font-size: 14px; color: var(--leise); display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.ang-crumb a { color: var(--leise); text-decoration: none; }
.ang-crumb a:hover { color: var(--klinker); }
.ang-head { max-width: 860px; margin-bottom: 26px; }
.ang-kicker { color: var(--klinker); font-weight: 500; margin: 0 0 6px; }
.ang-head h1 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.15; margin: 0; }

/* ---------- Galerie: ein großes Bild, vier kleine ---------- */
.ang-gallery {
  max-width: 1180px; margin: 0 auto 36px; padding: 0 24px;
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 8px; aspect-ratio: 2.35 / 1;
}
.ang-gallery a { position: relative; display: block; overflow: hidden; border-radius: 4px; background: var(--himmel); }
.ang-gallery .g-big { grid-row: 1 / 3; border-radius: var(--r-bild) 4px 4px var(--r-bild); }
.ang-gallery a:nth-child(3) { border-top-right-radius: var(--r-bild); }
.ang-gallery a:nth-child(5) { border-bottom-right-radius: var(--r-bild); }
.ang-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.ang-gallery a:hover img { transform: scale(1.03); }
.g-count-m { display: none; }
.g-count {
  position: absolute; right: 12px; bottom: 12px; background: var(--weiss); color: var(--tinte);
  font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; box-shadow: 0 4px 14px rgba(20,48,79,.18);
}

/* ---------- Inhalt + Seitenleiste ---------- */
.ang-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.ang-main { max-width: 720px; }

.ang-facts { display: flex; flex-wrap: wrap; margin: 0 0 40px; padding: 0 0 26px; border-bottom: 1px solid var(--linie); }
.ang-facts div { padding: 0 28px 0 0; margin: 0 28px 12px 0; border-right: 1px solid var(--linie); }
.ang-facts div:last-child { border-right: 0; margin-right: 0; }
.ang-facts dt { font-size: 14px; color: var(--leise); font-weight: 400; }
.ang-facts dd { margin: 0; font-size: 22px; font-weight: 600; color: var(--tinte); letter-spacing: -0.01em; }

.ang-sec { padding: 0 0 34px; margin: 0 0 34px; border-bottom: 1px solid var(--linie); }
.ang-sec:last-child { border-bottom: 0; }
.ang-sec h2 { font-size: 24px; margin: 0 0 14px; }
.ang-sec p { color: var(--text); }
.ang-note { color: var(--leise); font-size: 15px; }

.ang-table { width: 100%; border-collapse: collapse; }
.ang-table th, .ang-table td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--linie); vertical-align: top; }
.ang-table th { font-weight: 400; color: var(--leise); width: 46%; padding-right: 16px; }
.ang-table td { color: var(--tinte); font-weight: 500; }

/* Energieeffizienz-Skala */
.escale { list-style: none; display: grid; grid-template-columns: repeat(9, 1fr); gap: 3px; padding: 0; margin: 4px 0 18px; }
.escale li { text-align: center; font-size: 13px; font-weight: 600; color: #fff; padding: 7px 0; opacity: .32; }
.escale li:first-child { border-radius: 6px 0 0 6px; } .escale li:last-child { border-radius: 0 6px 6px 0; }
.escale .e0 { background: #00843d; } .escale .e1 { background: #2aa846; } .escale .e2 { background: #8cc63f; color: #1d2a12; }
.escale .e3 { background: #c8d92b; color: #2b2f0c; } .escale .e4 { background: #ffe200; color: #3a3200; } .escale .e5 { background: #fbb534; color: #3a2400; }
.escale .e6 { background: #f58a1f; } .escale .e7 { background: #ec5b24; } .escale .e8 { background: #d7191c; }
.escale .is-on { opacity: 1; transform: scaleY(1.22); box-shadow: 0 0 0 2px var(--tinte); border-radius: 4px; position: relative; z-index: 1; }

.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.plans a { text-decoration: none; }
.plans figure { margin: 0; border: 1px solid var(--linie); border-radius: var(--r-ui); padding: 10px; background: #fff; }
.plans img { width: 100%; height: auto; display: block; }
.plans figcaption { font-size: 14px; color: var(--leise); margin-top: 6px; }

/* Seitenleiste */
.ang-side { position: static; }
.ang-card { border: 1px solid var(--linie); border-radius: var(--r-bild); padding: 26px; background: #fff; box-shadow: 0 18px 40px -24px rgba(20,48,79,.35); }
.ang-price-l { margin: 0; color: var(--leise); font-size: 14px; }
.ang-price { margin: 0; font-size: 34px; font-weight: 600; color: var(--klinker); letter-spacing: -0.02em; line-height: 1.2; }
.ang-price-n { font-size: 14px; color: var(--leise); margin: 4px 0 18px; }
.ang-status { background: #fff4e5; color: #6b3d00; border-radius: var(--r-ui); padding: 10px 12px; font-size: 14px; }

.ang-btn, .ang .ang-btn {
  display: block; text-align: center; background: var(--klinker); color: #fff; text-decoration: none; font-weight: 600;
  padding: 14px 18px; border-radius: var(--r-ui); border: 0; transition: background .2s ease;
}
.ang-btn:hover, .ang .ang-btn:hover { background: var(--klinker-dk); color: #fff; }
.ang .ang-btn + .ang-btn { margin-top: 10px; }
.ang .ang-btn-2 { background: #fff; color: var(--tinte); box-shadow: inset 0 0 0 1.5px var(--tinte); }
.ang .ang-btn-2:hover { background: var(--himmel); color: var(--tinte); }

.ang-person { display: flex; gap: 14px; align-items: center; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--linie); }
.ang-avatar { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; flex: none; background: var(--himmel); }
.ang-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.ang-person p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--leise); }
.ang-person strong { color: var(--tinte); }
.ang-person a { font-weight: 600; text-decoration: none; }
.ang-fin { font-size: 14px; color: var(--leise); margin: 16px 0 0; }

/* Mobile Leiste unten */
.ang-sticky { display: none; }

/* ---------- Übersicht ---------- */
.ang-lhead { max-width: 760px; margin: 8px 0 26px; }
.ang-lhead h1 { font-size: clamp(30px, 4vw, 48px); line-height: 1.12; margin: 0 0 14px; }
.ang-lhead p { color: var(--leise); font-size: 18px; margin: 0; }

.ang-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 34px; }
.ang-filter button {
  font: inherit; font-size: 15px; cursor: pointer; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--linie); background: #fff; color: var(--tinte); transition: background .15s, border-color .15s;
}
.ang-filter button span { color: var(--leise); margin-left: 2px; }
.ang-filter button:hover { border-color: var(--tinte); }
.ang-filter button.is-on { background: var(--tinte); border-color: var(--tinte); color: #fff; }
.ang-filter button.is-on span { color: #c6d3e2; }

.ang-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 28px; }
.ang-item[hidden] { display: none; }
.ang-item a { display: block; text-decoration: none; color: inherit; }
.ang-thumb { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-bild); overflow: hidden; background: var(--himmel); margin-bottom: 16px; }
.ang-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.ang-item a:hover .ang-thumb img { transform: scale(1.04); }
.ang-noimg { display: grid; place-items: center; height: 100%; color: var(--leise); }
.ang-flag { position: absolute; left: 14px; top: 14px; background: #fff; color: var(--tinte); font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; }
.ang-flag.is-new { background: var(--klinker); color: #fff; }
.ang-item-k { color: var(--klinker); font-size: 15px; font-weight: 500; margin: 0 0 4px; }
.ang-item h2 { font-size: 19px; line-height: 1.35; margin: 0 0 10px; }
.ang-item a:hover h2 { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.ang-item-f { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-wrap: wrap; color: var(--leise); font-size: 15px; }
.ang-item-f li + li::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: #b7c2cf; margin: 0 10px 3px; }
.ang-item-p { font-size: 22px; font-weight: 600; color: var(--tinte); margin: 0; letter-spacing: -0.01em; }
.ang-empty { font-size: 18px; color: var(--leise); padding: 40px 0; }

.ang-search {
  margin-top: 72px; padding: 34px 36px; background: var(--himmel); border-radius: var(--r-bild);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center;
}
.ang-search h2 { font-size: 26px; margin: 0 0 6px; }
.ang-search p { margin: 0; color: var(--leise); max-width: 560px; }
.ang-search-a { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.ang-search-a .ang-btn { display: inline-block; }
.ang-link { font-weight: 600; text-decoration: none; }

/* ---------- Bildbetrachter ---------- */
.ang-viewer { border: 0; padding: 0; background: rgba(9, 20, 33, .96); width: 100vw; height: 100vh; max-width: none; max-height: none; color: #fff; }
.ang-viewer:not([open]) { display: none; }
.ang-viewer::backdrop { background: rgba(9, 20, 33, .96); }
.ang-viewer figure { margin: 0; height: 100%; display: grid; place-items: center; padding: 56px 72px 64px; }
.ang-viewer img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 6px; }
.ang-viewer figcaption { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; font-size: 15px; color: #c9d3de; }
.ang-viewer button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 22px; cursor: pointer; }
.ang-viewer button:hover { background: rgba(255,255,255,.24); }
.ang-viewer .v-close { top: 14px; right: 14px; }
.ang-viewer .v-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.ang-viewer .v-next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ---------- Responsiv ---------- */
@media (max-width: 1100px) {
  .ang-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ang-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; }
}
@media (max-width: 900px) {
  .ang-grid { grid-template-columns: 1fr; }
  .ang-side { position: static; }
  .ang-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; aspect-ratio: auto; padding: 0; gap: 4px; }
  .ang-gallery .g-big { grid-column: 1 / 3; grid-row: auto; aspect-ratio: 3 / 2; border-radius: 0; }
  .ang-gallery a { aspect-ratio: 3 / 2; border-radius: 0 !important; }
  .ang-gallery a:nth-child(n+4) { display: none; }
  .ang-gallery .g-count-m { display: block; }
  .ang-sticky {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; gap: 14px; align-items: center; justify-content: space-between;
    background: #fff; border-top: 1px solid var(--linie); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px rgba(20,48,79,.08);
  }
  .ang-sticky span { font-weight: 600; font-size: 19px; color: var(--klinker); }
  .ang-sticky .ang-btn { padding: 11px 16px; }
}
@media (max-width: 640px) {
  .ang { padding-top: 18px; }
  .ang-wrap { padding: 0 16px; }
  .ang-list { grid-template-columns: 1fr; gap: 36px; }
  .ang-facts div { padding-right: 18px; margin-right: 18px; }
  .ang-facts dd { font-size: 19px; }
  .ang-search { grid-template-columns: 1fr; padding: 26px 22px; }
  .ang-viewer figure { padding: 56px 8px 64px; }
  .ang-viewer .v-prev, .ang-viewer .v-next { top: auto; bottom: 8px; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ang * { transition: none !important; }
}

/* ---------- Anfrageformular ---------- */
.ang-form { display: grid; gap: 12px; margin-top: 4px; }
.ang-form label { display: grid; gap: 4px; font-size: 14px; color: var(--leise); }
.ang-form input:not([type=radio]):not([type=checkbox]), .ang-form textarea {
  font: inherit; font-size: 15px; color: var(--text); width: 100%; padding: 10px 12px;
  border: 1px solid #cdd6e1; border-radius: 8px; background: #fff;
}
.ang-form input:focus, .ang-form textarea:focus { outline: none; border-color: var(--tinte); box-shadow: 0 0 0 3px rgba(20,48,79,.15); }
.ang-form textarea { resize: vertical; min-height: 72px; }
.ang-form .opt { color: #8a95a3; }
.ang-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ang-row-str { grid-template-columns: minmax(0, 1fr) 84px; }
.ang-row-ort { grid-template-columns: 96px minmax(0, 1fr); }
.ang-dsinfo { font-size: 13px; line-height: 1.5; color: var(--leise); background: #f4f7fa; border-radius: 8px; padding: 10px 12px; }
.ang-dsinfo p { margin: 0 0 6px; }
.ang-dsinfo p:last-child { margin: 0; }
.ang-dsinfo details { margin: 0 0 6px; }
.ang-dsinfo summary { cursor: pointer; color: var(--tinte); font-weight: 600; margin-bottom: 6px; }
.ang-choice { border: 0; padding: 0; margin: 0 0 2px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ang-choice legend { font-size: 14px; color: var(--leise); margin-bottom: 6px; padding: 0; }
.ang-choice label { display: block; position: relative; }
.ang-choice input { position: absolute; opacity: 0; }
.ang-choice label { border: 1px solid #cdd6e1; border-radius: 8px; padding: 9px 8px; text-align: center; color: var(--tinte); font-weight: 500; cursor: pointer; font-size: 14px; }
.ang-choice label:has(input:checked) { border-color: var(--tinte); background: var(--tinte); color: #fff; }
.ang-choice label:has(input:focus-visible) { outline: 3px solid var(--klinker); outline-offset: 2px; }
.ang-check { display: flex !important; grid-template-columns: none; gap: 10px !important; align-items: flex-start; font-size: 13px !important; line-height: 1.5; }
.ang-check input { margin-top: 3px; flex: none; accent-color: var(--tinte); }
.ang-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ang-form .ang-btn { width: 100%; cursor: pointer; font: inherit; font-weight: 600; }
.ang-form .ang-btn[disabled] { opacity: .7; cursor: default; }
.ang-form-msg { margin: 0; font-size: 14px; }
.ang-form-msg:empty { display: none; }
.ang-form-msg.is-ok { color: #1d5b33; background: #e8f5ec; padding: 10px 12px; border-radius: 8px; }
.ang-form-msg.is-err { color: #8a1c1c; background: #fdecec; padding: 10px 12px; border-radius: 8px; }
.ang-form.is-sent input, .ang-form.is-sent textarea, .ang-form.is-sent .ang-choice { opacity: .55; pointer-events: none; }
.ang-form-n { margin: 0; font-size: 13px; color: #8a95a3; }
.ang-card .ang-price-n { margin-bottom: 14px; }

/* Vorschau-Hinweis */
.ang-preview { background: #14304f; color: #fff; text-align: center; font-size: 14px; padding: 8px 16px; }
.ang-form label, .ang-form input, .ang-form textarea, .ang-form fieldset { margin: 0; }
.ang-form label > span:first-child { line-height: 1.4; }
.ang-check { line-height: 1.5; }
.ang-check span { display: block; }

/* =========================================================
   Objektseite – überarbeitetes Layout
   ========================================================= */
.ang-detail { padding-bottom: 0; }
.ang .ic { width: 22px; height: 22px; flex: none; }
.ang-detail .ang-head { max-width: 900px; }
.ang-detail .ang-kicker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ang-badge { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; }
.ang-badge.is-new { background: var(--klinker); color: #fff; }
.ang-badge.is-res { background: #fff1db; color: #6b3d00; }
.ang-head-price { display: none; }

/* Kennzahlen */
.ang-detail .ang-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0;
  margin: -8px 0 0; padding: 0; border: 1px solid var(--linie); border-radius: var(--r-bild); background: #fff;
  box-shadow: 0 14px 34px -26px rgba(20,48,79,.45); overflow: hidden;
}
.ang-detail .ang-facts div {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  padding: 18px 20px; margin: 0; border: 0; border-right: 1px solid var(--linie);
}
.ang-detail .ang-facts div:last-child { border-right: 0; }
.ang-detail .ang-facts .ic { grid-row: 1 / 3; width: 30px; height: 30px; color: var(--klinker); }
.ang-detail .ang-facts dt { font-size: 13px; color: var(--leise); line-height: 1.3; }
.ang-detail .ang-facts dd { font-size: 19px; line-height: 1.3; margin: 0; font-weight: 600; color: var(--tinte); }

/* Abschnitts-Navigation */
.ang-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 26px 0 38px; }
.ang-tabs a {
  font-size: 14px; font-weight: 500; text-decoration: none; padding: 7px 14px; border-radius: 999px;
  background: var(--himmel); color: var(--tinte); transition: background .15s, color .15s;
}
.ang-tabs a:hover { background: var(--tinte); color: #fff; }
.ang-tabs a:last-child { background: var(--klinker); color: #fff; }
.ang-tabs a:last-child:hover { background: var(--klinker-dk); }

/* Inhalt */
.ang-detail .ang-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; }
.ang-detail .ang-main { max-width: 740px; }
.ang-detail .ang-sec { border: 0; padding: 0; margin: 0 0 52px; scroll-margin-top: 90px; }
.ang-detail .ang-sec h2 { font-size: 26px; margin: 0 0 16px; display: flex; align-items: center; gap: 12px; }
.ang-detail .ang-sec h2::before { content: ""; width: 26px; height: 3px; border-radius: 2px; background: var(--klinker); flex: none; }
.ang-lead p:first-of-type { font-size: 19px; line-height: 1.65; color: var(--tinte); }

.ang-chips { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.ang-chips li { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; padding: 7px 14px 7px 10px; border-radius: 999px; background: var(--himmel); color: var(--tinte); }
.ang-chips .ic { width: 18px; height: 18px; color: #1d7a45; }

.ang-panel { background: var(--himmel); border-radius: var(--r-bild); padding: 8px 24px; }
.ang-dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; margin: 0; }
.ang-dl div { padding: 14px 0; border-bottom: 1px solid #d8e0ea; }
.ang-dl div:nth-last-child(-n+2):nth-child(odd), .ang-dl div:last-child { border-bottom: 0; }
.ang-dl dt { font-size: 13px; color: var(--leise); line-height: 1.4; }
.ang-dl dd { margin: 2px 0 0; font-weight: 600; color: var(--tinte); line-height: 1.45; }
.ang-dl-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ang-dl-3 div { border-bottom: 0; padding: 10px 0; }
.ang-panel .escale { margin: 18px 0 10px; }
.ang-detail .escale li { opacity: .38; padding: 9px 0; }
.ang-detail .escale .is-on { opacity: 1; transform: scaleY(1.28); box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--tinte); }

.ang-detail .plans { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.ang-detail .plans figure { padding: 0; overflow: hidden; border-radius: var(--r-bild); transition: box-shadow .2s, border-color .2s; }
.ang-detail .plans a:hover figure { border-color: #b9c6d4; box-shadow: 0 14px 30px -20px rgba(20,48,79,.5); }
.plan-img { position: relative; display: block; aspect-ratio: 4 / 3; background: #fff; padding: 14px; }
.plan-img img { width: 100%; height: 100%; object-fit: contain; }
.plan-zoom { position: absolute; right: 10px; bottom: 10px; width: 36px; height: 36px; border-radius: 50%; background: var(--tinte); color: #fff; display: grid; place-items: center; opacity: 0; transition: opacity .2s; }
.plan-zoom .ic { width: 18px; height: 18px; }
.plans a:hover .plan-zoom, .plans a:focus-visible .plan-zoom { opacity: 1; }
.ang-detail .plans figcaption { margin: 0; padding: 12px 16px; border-top: 1px solid var(--linie); color: var(--tinte); font-weight: 500; }

/* Seitenleiste: kompakt und mitlaufend */
.ang-detail .ang-side { position: sticky; top: 24px; }
.ang-detail .ang-card { padding: 24px; }
.ang-detail .ang-price-n { margin: 4px 0 18px; }
.ang-detail .ang-person { margin-top: 20px; padding-top: 18px; }
.ang-detail .ang-avatar { width: 60px; height: 60px; }
.ang-contact { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; font-size: 15px; }
.ang-contact a { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500; word-break: break-all; }
.ang-contact .ic { width: 18px; height: 18px; color: var(--klinker); }
.ang-detail .ang-fin { padding-top: 14px; border-top: 1px solid var(--linie); }

/* Anfrage-Bereich */
.ang-req { background: linear-gradient(180deg, var(--himmel), #e6ecf3); margin-top: 24px; padding: 72px 0 88px; scroll-margin-top: 20px; }
.ang-req-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 64px; align-items: start; }
.ang-req-intro h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.2; margin: 0 0 28px; }
.ang-steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 32px; display: grid; gap: 18px; }
.ang-steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; }
.ang-steps li::before {
  content: counter(s); grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--klinker); font-weight: 700; box-shadow: 0 6px 16px -8px rgba(20,48,79,.4);
}
.ang-steps strong { color: var(--tinte); }
.ang-steps span { color: var(--leise); font-size: 15px; line-height: 1.55; }
.ang-person-l { border-top: 1px solid #cfd9e4; }
.ang-req-form { background: #fff; border-radius: var(--r-bild); padding: 28px; box-shadow: 0 24px 50px -30px rgba(20,48,79,.55); }

@media (max-width: 1100px) {
  .ang-detail .ang-grid { grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; }
  .ang-req-in { gap: 40px; }
}
@media (max-width: 900px) {
  .ang-detail .ang-side { display: none; }
  .ang-detail .ang-grid { grid-template-columns: 1fr; }
  .ang-head-price { display: flex; flex-direction: column; margin: 14px 0 0; }
  .ang-head-price strong { font-size: 28px; color: var(--klinker); line-height: 1.2; }
  .ang-head-price span { font-size: 14px; color: var(--leise); }
  .ang-detail .ang-facts { margin-top: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ang-detail .ang-facts div { border-right: 1px solid var(--linie); border-bottom: 1px solid var(--linie); padding: 14px 16px; }
  .ang-detail .ang-facts div:nth-child(2n) { border-right: 0; }
  .ang-req-in { grid-template-columns: 1fr; }
  .ang-req { padding: 48px 0 110px; }
}
@media (max-width: 640px) {
  .ang-tabs { flex-wrap: nowrap; overflow-x: auto; margin: 20px -16px 30px; padding: 0 16px; scrollbar-width: none; }
  .ang-tabs a { white-space: nowrap; }
  .ang-dl, .ang-dl-3 { grid-template-columns: 1fr; }
  .ang-dl div:nth-last-child(-n+2):nth-child(odd) { border-bottom: 1px solid #d8e0ea; }
  .ang-panel { padding: 4px 18px; }
  .ang-detail .ang-facts dd { font-size: 17px; }
  .ang-detail .ang-facts .ic { width: 26px; height: 26px; }
  .ang-req-form { padding: 20px 16px; margin: 0 -4px; }
  .ang-lead p:first-of-type { font-size: 17px; }
}
.ang-detail dt { font-weight: 400; }
.ang-detail .ang-price { margin: 2px 0 0; }
.ang-detail .ang-price-n { margin: 2px 0 18px; }

/* Lagekarte */
.ang-map { position: relative; margin: 8px 0 12px; border-radius: var(--r-bild); overflow: hidden; background: var(--himmel); }
.ang-map-ph {
  min-height: 340px; display: grid; place-items: center; text-align: center; padding: 28px;
  background:
    radial-gradient(circle at 50% 50%, rgba(144,24,36,.16) 0 70px, transparent 71px),
    repeating-linear-gradient(28deg, transparent 0 46px, rgba(20,48,79,.06) 46px 48px),
    repeating-linear-gradient(-62deg, transparent 0 70px, rgba(20,48,79,.06) 70px 73px),
    #e9eef3;
}
.ang-map-ph > div { max-width: 440px; background: rgba(255,255,255,.92); border-radius: var(--r-bild); padding: 22px 24px; box-shadow: 0 16px 36px -24px rgba(20,48,79,.5); }
.ang-map-ph p { font-size: 14px; color: var(--leise); margin: 0 0 12px; line-height: 1.55; }
.ang-map-ph p strong { font-size: 17px; color: var(--tinte); }
.ang-map-ph .ang-btn { display: inline-block; cursor: pointer; font: inherit; font-weight: 600; padding: 11px 22px; }
.ang-map-c { height: 420px; }
.ang-map-poi { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; background: #fff; border-bottom: 1px solid var(--linie); }
.ang-map-poi button {
  font: inherit; font-size: 14px; display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--linie); background: #fff; color: var(--tinte);
}
.ang-map-poi button i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.ang-map-poi button[aria-pressed="true"] { background: var(--tinte); border-color: var(--tinte); color: #fff; }
.ang-map .maplibregl-popup-content { font: 14px/1.4 inherit; color: var(--tinte); padding: 8px 12px; border-radius: 8px; }
@media (max-width: 640px) { .ang-map-c { height: 340px; } .ang-map-ph { min-height: 300px; } }

/* Energieausweis: Bandtacho */
.ang-energy { padding: 26px 26px 10px; }
.eband-wrap { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 26px; align-items: end; margin-bottom: 22px; }
.ebadge { width: 92px; height: 92px; border-radius: 18px; display: grid; place-items: center; align-content: center; color: #fff; text-align: center; box-shadow: 0 12px 26px -14px rgba(20,48,79,.6); }
.ebadge b { font-size: 40px; line-height: 1; font-weight: 700; letter-spacing: -.02em; }
.ebadge span { font-size: 11px; line-height: 1.2; margin-top: 4px; opacity: .92; }
.ebadge.e0 { background: #00843d; } .ebadge.e1 { background: #2aa846; } .ebadge.e2 { background: #79b833; }
.ebadge.e3 { background: #b5c41f; color: #22280a; } .ebadge.e4 { background: #f2cf00; color: #3a3200; } .ebadge.e5 { background: #f5a623; color: #3a2400; }
.ebadge.e6 { background: #ee7d1c; } .ebadge.e7 { background: #e5541f; } .ebadge.e8 { background: #d21f1f; }
.eband { position: relative; padding-top: 44px; }
.eband-bar {
  height: 18px; border-radius: 999px;
  background: linear-gradient(90deg, #00843d 0%, #2aa846 12%, #8cc63f 23%, #c8d92b 32%, #ffe200 42%, #fbb534 53%, #f58a1f 65%, #ec5b24 80%, #d7191c 100%);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}
.eband-cls { list-style: none; margin: 8px 0 0; padding: 0; position: relative; height: 24px; }
.eband-cls li { position: absolute; top: 0; text-align: center; font-size: 12px; font-weight: 600; color: var(--leise); border-left: 1px solid #c9d3de; line-height: 24px; }
.eband-cls li:first-child { border-left: 0; }
.eband-cls li.is-on { color: #fff; background: var(--tinte); border-radius: 6px; border-left-color: transparent; }
.eband-ticks { position: relative; height: 18px; margin-top: 2px; }
.eband-ticks span { position: absolute; transform: translateX(-50%); font-size: 11px; color: #8a95a3; white-space: nowrap; }
.eband-ticks span:first-child { transform: none; }
.eband-ticks span:last-child { transform: translateX(-70%); }
.eband-ptr { position: absolute; top: 0; height: 66px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; z-index: 1; }
.eband-ptr span {
  background: var(--tinte); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; padding: 5px 10px; border-radius: 8px;
  box-shadow: 0 8px 18px -10px rgba(20,48,79,.7);
}
.eband-ptr::after { content: ""; width: 3px; flex: 1; background: var(--tinte); border-radius: 2px; margin-top: 0; box-shadow: 0 0 0 2px #fff; }
.eband-ptr span { position: relative; }
.eband-ptr.is-r { align-items: flex-end; transform: translateX(calc(-100% + 2px)); }
.eband-ptr.is-l { align-items: flex-start; transform: translateX(-1px); }
@media (max-width: 640px) {
  .eband-wrap { grid-template-columns: 1fr; gap: 14px; }
  .ebadge { width: max-content; height: auto; grid-auto-flow: column; justify-content: start; gap: 10px; padding: 8px 16px; border-radius: 12px; }
  .ebadge b { font-size: 26px; }
  .ebadge span { margin: 0; font-size: 13px; }
  .eband-cls li { font-size: 10px; }
  .ang-energy { padding: 20px 16px 6px; }
}

/* Suchauftrag */
.sa-head { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; align-items: start; margin-bottom: 36px; }
.sa-head h1 { font-size: clamp(30px, 4vw, 46px); line-height: 1.12; margin: 0 0 14px; }
.sa-lead { font-size: 18px; color: var(--leise); max-width: 640px; margin-bottom: 28px !important; }
.sa-person { background: var(--himmel); border-radius: var(--r-bild); padding: 22px; display: flex; gap: 14px; align-items: center; }
.sa-person p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--leise); }
.sa-person strong { color: var(--tinte); }
.sa-person a { font-weight: 600; text-decoration: none; }
.sa-frame { background: #fff; border: 1px solid var(--linie); border-radius: var(--r-bild); box-shadow: 0 24px 50px -34px rgba(20,48,79,.5); overflow: hidden; }
.sa-frame iframe { display: block; width: 100%; height: 2150px; border: 0; }
.sa-empty { padding: 48px 28px; text-align: center; color: var(--leise); }
.sa-note { font-size: 14px; color: var(--leise); margin: 14px 0 0 !important; }
@media (max-width: 900px) {
  .sa-head { grid-template-columns: 1fr; gap: 24px; }
  .sa-frame iframe { height: 2700px; }
}
@media (max-width: 640px) {
  .sa-frame { border-radius: 10px; margin: 0 -8px; }
  .sa-frame iframe { height: 3100px; }
}

/* Referenzen */
.ang-flag.is-sold { background: var(--tinte); color: #fff; }
.ref-list .ang-thumb img { filter: saturate(.92); }
.ref-item h2 { font-size: 18px; }
