/* Schriften lokal eingebunden (DSGVO: keine Verbindung zu Google/Bunny) */
@font-face { font-family: "Cinzel"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/cinzel-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cinzel"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/cinzel-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/eb-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/eb-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Dancing Script"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/dancing-script-latin-500-normal.woff2") format("woff2"); }

/* ==========================================================
   Immobilien Stegemöller – Prototyp
   Farben & Typo abgeleitet aus Logo + Flyer
   ========================================================== */
:root {
  --navy: #14295c;
  --navy-dark: #0d1e47;
  --navy-soft: #2a4382;
  --ink: #15171c;
  --text: #33373f;
  --muted: #6b7180;
  --line: #d9dfeb;
  --bg: #ffffff;
  --bg-soft: #f2f5fa;
  --bg-tint: #e8edf6;
  --ok: #2f7d4f;
  --warn: #b7791f;
  --sold: #8a2d2d;
  --radius: 4px;
  --shadow: 0 10px 30px rgba(13, 30, 71, .08);
  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --caps: "Cinzel", "EB Garamond", Georgia, serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Dancing Script", cursive;
  --wrap: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Typo ---------- */
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.12; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.4rem; }
.accent { color: var(--navy); }
.eyebrow {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--sans); font-size: .82rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--navy); margin-bottom: 14px;
}
.eyebrow::after { content: ""; height: 1px; background: var(--navy); flex: 0 0 60px; opacity: .6; }
.eyebrow.center { justify-content: center; }
.eyebrow.center::before { content: ""; height: 1px; background: var(--navy); flex: 0 0 60px; opacity: .6; }
.lead { font-size: 1.2rem; color: var(--text); max-width: 60ch; }
.script { font-family: var(--script); color: var(--navy); font-size: 2rem; transform: rotate(-6deg); display: inline-block; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  padding: 13px 26px; border-radius: var(--radius); border: 1px solid var(--navy);
  background: var(--navy); color: #fff; text-decoration: none; cursor: pointer;
  font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: .82rem;
  transition: background .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--navy-dark); }
.btn.ghost { background: transparent; color: var(--navy); }
.btn.ghost:hover { background: var(--navy); color: #fff; }
.btn.light { background: #fff; color: var(--navy); border-color: #fff; }
.btn.light:hover { background: var(--bg-tint); }
.btn.sm { padding: 8px 14px; font-size: .74rem; }
.btn.danger { background: transparent; border-color: var(--sold); color: var(--sold); }
.btn.danger:hover { background: var(--sold); color: #fff; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Topbar & Header ---------- */
.topbar { background: var(--navy-dark); color: #cfd8ea; font-size: .85rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar span { display: inline-flex; align-items: center; gap: 6px; margin-right: 18px; }
.topbar svg { width: 14px; height: 14px; }

.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 86px; gap: 24px; }

.logo { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--ink); line-height: 1; }
.logo svg.roof { width: 150px; height: 30px; color: var(--navy); margin-bottom: -2px; }
.logo .l-small { display: flex; align-items: center; gap: 8px; font-family: var(--caps); font-size: .58rem; letter-spacing: .5em; color: var(--ink); margin: 2px 0; }
.logo .l-small::before, .logo .l-small::after { content: ""; width: 22px; height: 1px; background: var(--navy); }
.logo .l-big { font-family: var(--caps); font-weight: 700; font-size: 1.45rem; letter-spacing: .03em; }
.logo .l-big b { color: var(--navy); font-weight: 700; }
.logo.inverse, .logo.inverse .l-small { color: #fff; }
.logo.inverse svg.roof, .logo.inverse .l-big b { color: #9fb3dd; }
.logo.inverse .l-small::before, .logo.inverse .l-small::after { background: #9fb3dd; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; color: var(--ink); font-size: .84rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; padding: 10px 11px; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a.active { color: var(--navy); border-bottom-color: var(--navy); }
.nav .btn { margin-left: 10px; border-bottom: 1px solid var(--navy); color: #fff; }
.nav .btn:hover { color: #fff; }
.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger svg { width: 28px; height: 28px; color: var(--navy); }

@media (max-width: 1080px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(340px, 86vw); background: #fff; flex-direction: column;
    align-items: stretch; padding: 100px 28px 28px; gap: 0; transform: translateX(100%); transition: transform .3s;
    box-shadow: -10px 0 40px rgba(0,0,0,.12);
  }
  .nav.open { transform: none; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin: 20px 0 0; }
  .topbar .t-right { display: none; }
}

/* ---------- Sections ---------- */
section { padding: 90px 0; }
section.soft { background: var(--bg-soft); }
section.tight { padding: 60px 0; }
.section-head { margin-bottom: 44px; }
.section-head.center { text-align: center; }
.section-head.center .lead { margin: 0 auto; }
.section-head.split { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
hr.rule { border: 0; height: 2px; background: var(--navy); margin: 0 0 28px; width: 100%; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 0; overflow: hidden; background: var(--bg-soft); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 50px; align-items: center; min-height: 600px; }
.hero h1 .accent { display: block; }
.hero .hero-text { padding: 70px 0; position: relative; z-index: 2; }
.hero .hero-text .lead { margin: 24px 0 34px; }
.hero .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .hero-img { position: relative; align-self: stretch; }
.hero .hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .hero-img::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, var(--bg-soft) 0%, rgba(242,245,250,0) 30%);
}
.hero .hero-badge {
  position: absolute; z-index: 2; right: 24px; bottom: 36px; background: rgba(255,255,255,.95);
  padding: 16px 28px; text-align: center; letter-spacing: .18em; font-size: .82rem; color: var(--navy);
  text-transform: uppercase; font-weight: 600; border-bottom: 2px solid var(--navy);
}
.hero .script { position: absolute; z-index: 2; top: 40px; left: 30px; font-size: 2.4rem; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; gap: 0; padding: 0; }
  .hero .hero-text { padding: 50px 24px 40px; }
  .hero .hero-img { height: 340px; }
  .hero .hero-img::before { background: linear-gradient(180deg, var(--bg-soft) 0%, rgba(242,245,250,0) 30%); }
}

/* ---------- Quick search ---------- */
.quicksearch { background: #fff; box-shadow: var(--shadow); border-top: 3px solid var(--navy); padding: 24px; display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 14px; align-items: end; margin-top: -50px; position: relative; z-index: 5; }
@media (max-width: 900px) { .quicksearch { grid-template-columns: 1fr 1fr; margin-top: 24px; } .quicksearch .btn { grid-column: 1 / -1; } }

/* ---------- Forms ---------- */
label.f { display: block; font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); margin-bottom: 6px; }
.field { display: flex; flex-direction: column; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=url], select, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(20,41,92,.12); }
textarea { min-height: 130px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.check input { margin-top: 5px; accent-color: var(--navy); }
.seg { display: inline-flex; border: 1px solid var(--navy); border-radius: var(--radius); overflow: hidden; }
.seg button { background: #fff; border: 0; padding: 10px 22px; cursor: pointer; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; color: var(--navy); }
.seg button.on { background: var(--navy); color: #fff; }
.form-ok { background: #e9f4ed; border-left: 3px solid var(--ok); padding: 16px 18px; color: #1f5135; display: none; }
.form-ok.show { display: block; }

/* ---------- Property cards ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 1000px) { .grid-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-cards { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .c-img { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--bg-tint); }
.card .c-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .c-img img { transform: scale(1.04); }
.card .c-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card .c-loc { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.card .c-loc svg { width: 14px; height: 14px; }
.card h3 { font-size: 1.35rem; margin: 6px 0 14px; }
.card .c-facts { display: flex; gap: 18px; font-size: .92rem; color: var(--text); border-top: 1px solid var(--line); padding-top: 14px; margin-top: auto; }
.card .c-facts span { display: flex; gap: 6px; align-items: center; }
.card .c-facts svg { width: 16px; height: 16px; color: var(--navy); }
.card .c-price { font-family: var(--serif); font-size: 1.55rem; color: var(--navy); font-weight: 600; margin-top: 12px; }
.card .c-price small { font-family: var(--sans); font-size: .8rem; color: var(--muted); font-weight: 400; }
.card.is-sold .c-img img { filter: grayscale(.7) brightness(.9); }

.badge { position: absolute; top: 14px; left: 14px; z-index: 2; padding: 5px 12px; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; background: var(--navy); }
.badge.reserviert { background: var(--warn); }
.badge.verkauft, .badge.vermietet { background: var(--sold); }
.badge.verfuegbar { background: var(--ok); }
.badge.type { left: auto; right: 14px; background: rgba(255,255,255,.95); color: var(--navy); }
.pill { display: inline-block; padding: 3px 10px; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--ok); border-radius: 2px; }
.pill.reserviert { background: var(--warn); } .pill.verkauft, .pill.vermietet { background: var(--sold); }

/* ---------- Listing page ---------- */
.page-hero { background: var(--navy-dark); color: #fff; padding: 64px 0 56px; position: relative; overflow: hidden; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
.page-hero .eyebrow { color: #a9bbe0; } .page-hero .eyebrow::after { background: #a9bbe0; }
.page-hero p { color: #cdd6ea; max-width: 62ch; margin: 0; }
.page-hero svg.bg-house { position: absolute; right: -40px; bottom: -40px; width: 380px; color: rgba(255,255,255,.05); }
.crumbs { font-size: .82rem; color: #a9bbe0; margin-bottom: 16px; } .crumbs a { color: #fff; text-decoration: none; }

.listing { display: grid; grid-template-columns: 290px 1fr; gap: 40px; align-items: start; }
.filters { background: #fff; border: 1px solid var(--line); padding: 24px; position: sticky; top: 110px; display: flex; flex-direction: column; gap: 18px; }
.filters h4 { font-family: var(--sans); font-size: .82rem; letter-spacing: .2em; text-transform: uppercase; color: var(--navy); margin: 0; }
.filters .seg { width: 100%; } .filters .seg button { flex: 1; }
.filters .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; gap: 14px; flex-wrap: wrap; }
.toolbar select { width: auto; }
.empty { text-align: center; padding: 60px 20px; border: 1px dashed var(--line); color: var(--muted); }
.filter-toggle { display: none; }
@media (max-width: 960px) {
  .listing { grid-template-columns: 1fr; }
  .filters { position: static; display: none; } .filters.open { display: flex; }
  .filter-toggle { display: inline-flex; }
}

/* ---------- Detail page ---------- */
.detail-top { padding: 34px 0 0; }
.detail-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; }
.detail-head .d-price { font-family: var(--serif); font-size: 2.3rem; color: var(--navy); font-weight: 600; line-height: 1; text-align: right; }
.detail-head .d-price small { display: block; font-family: var(--sans); font-size: .82rem; color: var(--muted); font-weight: 400; margin-top: 6px; }
.gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
.gallery .g-main { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--bg-tint); cursor: zoom-in; }
.gallery .g-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery .g-side { display: grid; grid-template-rows: repeat(3, 1fr); gap: 10px; }
.gallery .g-side button { padding: 0; border: 0; position: relative; overflow: hidden; cursor: pointer; background: var(--bg-tint); }
.gallery .g-side img { width: 100%; height: 100%; object-fit: cover; }
.gallery .g-side .more { position: absolute; inset: 0; background: rgba(13,30,71,.6); color: #fff; display: grid; place-items: center; font-weight: 600; letter-spacing: .1em; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr; } .gallery .g-side { grid-template-rows: none; grid-template-columns: repeat(3, 1fr); height: 90px; } }

.detail-body { display: grid; grid-template-columns: 1fr 380px; gap: 48px; padding: 44px 0 90px; align-items: start; }
@media (max-width: 1000px) { .detail-body { grid-template-columns: 1fr; } }
.keyfacts { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); margin-bottom: 40px; }
.keyfacts div { padding: 18px; border-right: 1px solid var(--line); text-align: center; }
.keyfacts div:last-child { border-right: 0; }
.keyfacts strong { display: block; font-family: var(--serif); font-size: 1.6rem; color: var(--navy); line-height: 1.1; }
.keyfacts span { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 640px) { .keyfacts { grid-template-columns: 1fr 1fr; } .keyfacts div:nth-child(2) { border-right: 0; } .keyfacts div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
.d-block { margin-bottom: 44px; }
.d-block h3 { display: flex; align-items: center; gap: 14px; font-size: 1.5rem; }
.d-block h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.factlist { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; margin: 0; }
.factlist div { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .96rem; gap: 12px; }
.factlist dt { color: var(--muted); } .factlist dd { margin: 0; font-weight: 600; color: var(--ink); text-align: right; }
@media (max-width: 640px) { .factlist { grid-template-columns: 1fr; } }
.features { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; margin: 0; }
.features li { background: var(--bg-soft); border: 1px solid var(--line); padding: 7px 14px; font-size: .9rem; display: flex; gap: 8px; align-items: center; }
.features svg { width: 15px; height: 15px; color: var(--navy); }
.energy-bar { display: flex; height: 26px; margin: 18px 0 6px; position: relative; }
.energy-bar span { flex: 1; display: grid; place-items: center; font-size: .72rem; font-weight: 700; color: #fff; }
.energy-marker { position: absolute; top: -10px; width: 2px; height: 46px; background: var(--ink); }
.energy-marker::after { content: attr(data-v); position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: .75rem; white-space: nowrap; font-weight: 700; }
.map-ph { aspect-ratio: 16/7; background: repeating-linear-gradient(45deg, var(--bg-soft), var(--bg-soft) 12px, var(--bg-tint) 12px, var(--bg-tint) 24px); display: grid; place-items: center; color: var(--muted); text-align: center; border: 1px solid var(--line); padding: 20px; }

.aside-box { border: 1px solid var(--line); background: #fff; padding: 28px; position: sticky; top: 110px; }
.aside-box .agent { display: flex; gap: 16px; align-items: center; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.aside-box .avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--caps); font-size: 1.3rem; flex: none; }
.aside-box .agent strong { display: block; font-family: var(--serif); font-size: 1.25rem; color: var(--ink); }
.aside-box form { display: flex; flex-direction: column; gap: 12px; }
.aside-box textarea { min-height: 100px; }
.share-row { display: flex; gap: 8px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.share-row .btn { flex: 1; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(8,15,35,.94); z-index: 200; display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 84vh; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 2.6rem; cursor: pointer; padding: 18px; line-height: 1; }
.lightbox .lb-close { top: 10px; right: 16px; } .lightbox .lb-prev { left: 10px; } .lightbox .lb-next { right: 10px; }
.lightbox .lb-count { position: absolute; bottom: 22px; color: #cdd6ea; font-size: .9rem; letter-spacing: .1em; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.service { background: #fff; border: 1px solid var(--line); padding: 30px 28px; transition: border-color .2s, box-shadow .2s; }
.service:hover { border-color: var(--navy); box-shadow: var(--shadow); }
.icon-circle { width: 56px; height: 56px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; margin-bottom: 18px; }
.icon-circle svg { width: 26px; height: 26px; }
.service h3 { font-size: 1.3rem; }
.service p { margin: 0; color: var(--muted); font-size: .97rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; position: relative; }
.step { text-align: center; position: relative; }
.step .num { width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; margin: 0 auto 10px; position: relative; z-index: 2; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 23px; left: calc(50% + 34px); right: calc(-50% + 34px); height: 1px; background: var(--navy); opacity: .35; }
.step .s-ico { color: var(--navy); margin: 14px auto 12px; width: 44px; height: 44px; }
.step h4 { font-family: var(--sans); font-size: .86rem; letter-spacing: .16em; text-transform: uppercase; color: var(--navy); margin-bottom: 10px; }
.step p { font-size: .96rem; color: var(--muted); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } .step::after { display: none; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Why ---------- */
.why { display: grid; grid-template-columns: repeat(3, 1fr); }
.why > div { display: flex; gap: 20px; padding: 10px 34px; border-right: 1px solid var(--line); }
.why > div:last-child { border-right: 0; }
.why svg { width: 46px; height: 46px; color: var(--navy); flex: none; }
.why h4 { font-family: var(--sans); font-size: .86rem; letter-spacing: .16em; text-transform: uppercase; color: var(--navy); margin: 4px 0 8px; }
.why p { margin: 0; color: var(--muted); font-size: .96rem; }
@media (max-width: 860px) { .why { grid-template-columns: 1fr; gap: 24px; } .why > div { border-right: 0; padding: 0; } }

/* ---------- Split / CTA ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split .img-frame { position: relative; }
.split .img-frame::before { content: ""; position: absolute; inset: 20px -20px -20px 20px; border: 2px solid var(--navy); z-index: -1; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.checklist { list-style: none; padding: 0; margin: 24px 0 32px; }
.checklist li { display: flex; gap: 12px; padding: 8px 0; align-items: flex-start; }
.checklist svg { width: 20px; height: 20px; color: var(--navy); flex: none; margin-top: 4px; }

.cta-band { background: var(--navy); color: #fff; padding: 70px 0; position: relative; overflow: hidden; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; position: relative; z-index: 2; }
.cta-band h2 { color: #fff; margin: 0 0 8px; }
.cta-band p { color: #cdd6ea; margin: 0; }
.cta-band .script { color: #fff; opacity: .9; }
.cta-band svg.bg-house { position: absolute; left: -60px; top: -40px; width: 360px; color: rgba(255,255,255,.05); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; gap: 20px; }
.stats strong { display: block; font-family: var(--serif); font-size: 2.8rem; color: var(--navy); line-height: 1; }
.stats span { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; row-gap: 34px; } }

/* ---------- Wizard ---------- */
.wizard { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); max-width: 820px; margin: 0 auto; }
.wizard .w-progress { display: flex; border-bottom: 1px solid var(--line); }
.wizard .w-progress div { flex: 1; padding: 16px 10px; text-align: center; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border-bottom: 3px solid transparent; font-weight: 600; }
.wizard .w-progress div.on { color: var(--navy); border-bottom-color: var(--navy); }
.wizard .w-progress div.done { color: var(--navy); border-bottom-color: rgba(20,41,92,.3); }
.wizard .w-body { padding: 40px; }
.wizard .w-foot { display: flex; justify-content: space-between; padding: 0 40px 40px; gap: 12px; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.choice { border: 1px solid var(--line); background: #fff; padding: 22px 12px; text-align: center; cursor: pointer; transition: all .2s; display: flex; flex-direction: column; align-items: center; gap: 10px; font-weight: 600; }
.choice svg { width: 36px; height: 36px; color: var(--navy); }
.choice:hover { border-color: var(--navy); }
.choice.on { border-color: var(--navy); background: var(--bg-tint); box-shadow: inset 0 0 0 1px var(--navy); }
@media (max-width: 640px) { .wizard .w-body { padding: 26px 20px; } .wizard .w-foot { padding: 0 20px 26px; } .wizard .w-progress div { font-size: 0; padding: 10px 0; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: center; }
.contact-item .icon-circle { margin: 0; width: 46px; height: 46px; flex: none; }
.contact-item .icon-circle svg { width: 20px; height: 20px; }
.contact-item small { display: block; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.contact-item a, .contact-item span { color: var(--ink); text-decoration: none; font-size: 1.08rem; }

/* ---------- Legal ---------- */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.5rem; margin-top: 2em; }
.note { background: #fff8e6; border-left: 3px solid var(--warn); padding: 14px 18px; font-size: .94rem; margin: 20px 0; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-dark); color: #b9c5df; padding: 70px 0 0; font-size: .95rem; }
.footer .f-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.footer h5 { color: #fff; font-family: var(--sans); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; margin: 0 0 18px; }
.footer a { color: #b9c5df; text-decoration: none; } .footer a:hover { color: #fff; }
.footer ul { list-style: none; padding: 0; margin: 0; } .footer li { padding: 4px 0; }
.footer .socials { display: flex; gap: 10px; margin-top: 22px; }
.footer .socials a { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; display: grid; place-items: center; }
.footer .socials svg { width: 18px; height: 18px; }
.footer .f-claim { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; }
.footer .f-claim .claim { letter-spacing: .3em; text-transform: uppercase; color: #fff; }
@media (max-width: 900px) { .footer .f-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer .f-grid { grid-template-columns: 1fr; } }

/* ---------- Floating & Cookie ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.2); z-index: 80; }
.wa-float svg { width: 30px; height: 30px; }
.cookie { position: fixed; left: 22px; bottom: 22px; max-width: 420px; background: #fff; border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0,0,0,.15); padding: 22px; z-index: 90; font-size: .9rem; display: none; }
.cookie.show { display: block; }
.cookie h4 { font-family: var(--serif); font-size: 1.2rem; margin-bottom: 6px; }
.cookie .c-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
@media (max-width: 560px) { .cookie { left: 12px; right: 12px; bottom: 90px; } }
.toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(120px); background: var(--ink); color: #fff; padding: 12px 22px; border-radius: var(--radius); z-index: 300; transition: transform .3s; font-size: .92rem; }
.toast.show { transform: translateX(-50%) translateY(0); }

/* ---------- Admin ---------- */
.admin-bar { background: #fff4d6; border-bottom: 1px solid #ecd9a0; font-size: .86rem; padding: 8px 0; text-align: center; color: #6e5512; }
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 86px); }
.admin-side { background: var(--navy-dark); color: #b9c5df; padding: 30px 0; }
.admin-side a { display: flex; gap: 12px; align-items: center; padding: 12px 26px; color: #b9c5df; text-decoration: none; font-size: .95rem; border-left: 3px solid transparent; }
.admin-side a.on, .admin-side a:hover { background: rgba(255,255,255,.06); color: #fff; border-left-color: #9fb3dd; }
.admin-side svg { width: 18px; height: 18px; }
.admin-side .a-label { padding: 18px 26px 8px; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: #7486ad; }
.admin-main { background: var(--bg-soft); padding: 36px 40px 80px; min-width: 0; }
.admin-main h1 { font-size: 2rem; }
.panel { background: #fff; border: 1px solid var(--line); padding: 26px; margin-bottom: 24px; }
.panel h3 { font-size: 1.2rem; margin-bottom: 18px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 24px; }
.kpis .panel { margin: 0; }
.kpis strong { display: block; font-family: var(--serif); font-size: 2.2rem; color: var(--navy); line-height: 1; }
.kpis span { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
table.t { width: 100%; border-collapse: collapse; font-size: .94rem; }
table.t th { text-align: left; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 2px solid var(--line); font-weight: 600; }
table.t td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t .thumb { width: 72px; height: 52px; object-fit: cover; background: var(--bg-tint); }
table.t .acts { display: flex; gap: 6px; justify-content: flex-end; }
table.t select { padding: 6px 8px; width: auto; font-size: .85rem; }
.table-wrap { overflow-x: auto; }
.img-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 10px; }
.img-list div { position: relative; aspect-ratio: 4/3; background: var(--bg-tint); }
.img-list img { width: 100%; height: 100%; object-fit: cover; }
.img-list button { position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,.6); color: #fff; border: 0; width: 24px; height: 24px; border-radius: 50%; cursor: pointer; line-height: 1; }
.img-list div:first-child::after { content: "Titelbild"; position: absolute; left: 4px; bottom: 4px; background: var(--navy); color: #fff; font-size: .66rem; padding: 2px 6px; letter-spacing: .08em; text-transform: uppercase; }
.dropzone { border: 2px dashed var(--line); padding: 28px; text-align: center; color: var(--muted); cursor: pointer; background: var(--bg-soft); }
.dropzone:hover { border-color: var(--navy); color: var(--navy); }
.feature-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.feature-picks label { border: 1px solid var(--line); padding: 6px 12px; font-size: .88rem; cursor: pointer; display: flex; gap: 6px; align-items: center; background: #fff; }
.feature-picks input { accent-color: var(--navy); }
@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { display: flex; overflow-x: auto; padding: 0; } .admin-side .a-label { display: none; }
  .admin-side a { border-left: 0; border-bottom: 3px solid transparent; white-space: nowrap; padding: 14px 18px; }
  .admin-main { padding: 24px 16px 60px; } .kpis { grid-template-columns: 1fr 1fr; }
}

.fade-in { animation: fade .45s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Fixes */
.c-loc svg { width: 14px; height: 14px; flex: none; }
.logo .l-small { text-transform: uppercase; margin-top: 5px; }
@media (max-width: 1080px) { .nav:not(.open) { box-shadow: none; visibility: hidden; } }
@media (max-width: 900px) { .hero .script { font-size: 1.7rem; top: 20px; left: 20px; } }

/* ---------- Diskreter Zugang ---------- */
.badge.lock { top: auto; bottom: 14px; background: rgba(13,30,71,.88); display: inline-flex; gap: 6px; align-items: center; }
.badge.lock svg { width: 13px; height: 13px; }
.pill svg.pi { width: 11px; height: 11px; vertical-align: -1px; }
.lockbox { max-width: 560px; margin: 0 auto; text-align: center; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--navy); padding: 40px 36px; box-shadow: var(--shadow); }
.lockbox .icon-circle { margin: 0 auto 16px; }
.lockbox h3 { font-size: 1.6rem; }
.code-form { display: flex; gap: 10px; margin-top: 20px; }
.code-form input { text-transform: uppercase; letter-spacing: .1em; text-align: center; font-weight: 600; }
@media (max-width: 520px) { .code-form { flex-direction: column; } .lockbox { padding: 30px 20px; } }
.teaser-img { position: relative; aspect-ratio: 21/9; overflow: hidden; background: var(--bg-tint); }
.teaser-img img { width: 100%; height: 100%; object-fit: cover; filter: blur(3px) brightness(.92); transform: scale(1.04); }

/* ---------- Karte ---------- */
.map-box { aspect-ratio: 16/8; border: 1px solid var(--line); background: var(--bg-soft); position: relative; z-index: 0; }
.map-box .map-ph { aspect-ratio: auto; height: 100%; border: 0; gap: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.map-box .map-ph svg { width: 30px; height: 30px; color: var(--navy); }
.map-box .map-ph p { margin: 0 0 8px; font-size: .9rem; }

/* ---------- Modal / QR ---------- */
.modal { position: fixed; inset: 0; background: rgba(8,15,35,.6); z-index: 250; display: grid; place-items: center; padding: 16px; }
.modal-box { background: #fff; padding: 30px; width: min(460px, 100%); position: relative; max-height: 94vh; overflow: auto; }
.modal-x { position: absolute; top: 8px; right: 12px; background: none; border: 0; font-size: 2rem; cursor: pointer; color: var(--muted); }
.modal .seg { display: flex; } .modal .seg button { flex: 1; padding: 10px 8px; font-size: .72rem; }
.qr-out { width: 240px; margin: 0 auto; } .qr-out svg { width: 100%; height: auto; display: block; }
.qr-url { font-size: .8rem; word-break: break-all; text-align: center; color: var(--navy); margin: 10px 0 4px; }

/* ---------- PDF-Exposé ---------- */
body.print-mode { background: #e6e9ef; }
body.print-mode .wa-float, body.print-mode .cookie { display: none !important; }
.x-toolbar { position: sticky; top: 0; z-index: 10; background: #fff; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 20px; flex-wrap: wrap; font-size: .9rem; }
.x-doc { padding: 30px 0 60px; }
.x-page { width: 210mm; min-height: 297mm; margin: 0 auto 24px; background: #fff; padding: 16mm 16mm 22mm; position: relative; box-shadow: 0 4px 24px rgba(0,0,0,.12); font-size: 10.5pt; line-height: 1.5; overflow: hidden; }
.x-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--navy); padding-bottom: 8mm; margin-bottom: 8mm; }
.x-head.small { padding-bottom: 4mm; margin-bottom: 7mm; } .x-head.small .logo { transform: scale(.75); transform-origin: left center; }
.x-nr { font-size: 8.5pt; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); text-align: right; max-width: 60%; }
.x-hero { height: 110mm; overflow: hidden; background: var(--bg-tint); } .x-hero img { width: 100%; height: 100%; object-fit: cover; }
.x-loc { margin-top: 7mm; font-size: 8.5pt; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.x-title { font-size: 24pt; margin: 2mm 0 6mm; }
.x-cover-row { display: flex; justify-content: space-between; align-items: stretch; gap: 6mm; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.x-kf { display: flex; } .x-kf div { padding: 4mm 6mm 4mm 0; margin-right: 6mm; border-right: 1px solid var(--line); }
.x-kf strong { display: block; font-family: var(--serif); font-size: 15pt; color: var(--navy); line-height: 1.1; }
.x-kf span, .x-price span { font-size: 7.5pt; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.x-price { background: var(--navy); color: #fff; padding: 4mm 7mm; text-align: right; display: flex; flex-direction: column; justify-content: center; }
.x-price span { color: #b9c5df; } .x-price strong { font-family: var(--serif); font-size: 19pt; }
.x-qr { position: absolute; left: 16mm; right: 16mm; bottom: 22mm; display: flex; gap: 5mm; align-items: center; background: var(--bg-soft); padding: 4mm; }
.x-qr > div { width: 26mm; flex: none; } .x-qr svg { width: 100%; height: auto; display: block; }
.x-qr p { margin: 0; font-size: 9pt; } .x-qr small { color: var(--navy); word-break: break-all; }
.x-h { font-size: 15pt; color: var(--navy); margin: 6mm 0 3mm; display: flex; gap: 4mm; align-items: center; }
.x-h::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.x-page .factlist div { padding: 2mm 0; font-size: 9.5pt; }
.x-feat { columns: 3; padding-left: 4mm; margin: 0; } .x-feat li { padding: .5mm 0; }
.x-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 3mm; } .x-gallery div { aspect-ratio: 4/3; overflow: hidden; background: var(--bg-tint); } .x-gallery img { width: 100%; height: 100%; object-fit: cover; }
.x-contact { display: flex; gap: 5mm; align-items: center; border: 1px solid var(--line); padding: 5mm; margin-top: 7mm; }
.x-contact .avatar { width: 16mm; height: 16mm; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--caps); flex: none; }
.x-contact small { display: block; font-size: 7.5pt; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.x-contact strong { display: block; font-family: var(--serif); font-size: 13pt; }
.x-legal { font-size: 7.5pt; color: var(--muted); margin-top: 6mm; }
.x-foot { position: absolute; left: 16mm; right: 16mm; bottom: 9mm; display: flex; justify-content: space-between; font-size: 7.5pt; color: var(--muted); border-top: 1px solid var(--line); padding-top: 2.5mm; }
@media screen and (max-width: 820px) { .x-doc { zoom: .45; } }
@page { size: A4; margin: 0; }
@media print {
  body.print-mode { background: #fff; }
  .x-toolbar, .toast { display: none !important; }
  .x-doc { padding: 0; zoom: 1; }
  .x-page { margin: 0; box-shadow: none; page-break-after: always; break-after: page; height: 297mm; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.teaser-img { aspect-ratio: auto; height: min(42vh, 380px); }

/* ==========================================================
   Laravel-Frontend – Ergänzungen
   ========================================================== */
[hidden] { display: none !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { background: #fbecec; border-left: 3px solid var(--sold); color: #7a2323; padding: 12px 16px; font-size: .94rem; margin: 10px 0; }
.flash { background: #e9f4ed; color: #1f5135; text-align: center; padding: 12px 16px; font-weight: 600; }
form.stack { display: flex; flex-direction: column; gap: 12px; }
form.stack textarea { min-height: 100px; }
.seg label { flex: 1; text-align: center; padding: 10px 14px; cursor: pointer; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; color: var(--navy); background: #fff; }
.seg label.on { background: var(--navy); color: #fff; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.filters .seg { display: flex; }
.grid-cards.auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.crumbs.dark { color: var(--muted); } .crumbs.dark a { color: var(--navy); text-decoration: none; }
.detail-head .c-loc { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.d-title { font-size: clamp(1.8rem, 3.4vw, 2.7rem); margin: 8px 0 0; max-width: 24ch; }
.gallery .g-side .g-empty { background: var(--bg-soft); }
.aside-box .agent a { text-decoration: none; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); text-decoration: none; color: var(--navy); font-weight: 600; padding: 0 10px; }
.pager .on { background: var(--navy); color: #fff; border-color: var(--navy); }
.pager .disabled { color: var(--line); }
.portrait-ph { aspect-ratio: 4/3; background: var(--bg-tint); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--muted); }
.portrait-ph svg { width: 64px; height: 64px; color: var(--navy); opacity: .5; }
.richtext p { margin: 0 0 1em; } .richtext ul, .richtext ol { padding-left: 1.3em; } .richtext a { color: var(--navy); }
.richtext h2, .richtext h3 { margin-top: 1.4em; }
.legal.richtext h2 { font-size: 1.4rem; }
.admin-bar a { color: inherit; font-weight: 700; }
.wizard .w-foot [hidden] { display: none !important; }

/* Website-Sperre / Offline */
.gate-body { background: var(--bg-soft); min-height: 100vh; display: grid; place-items: center; padding: 24px; margin: 0; }
.gate { background: #fff; border-top: 3px solid var(--navy); box-shadow: var(--shadow); padding: 48px 40px; width: min(440px, 100%); text-align: center; }
.gate.wide { width: min(640px, 100%); }
.gate .logo { margin-bottom: 26px; }
.gate h1 { font-size: 2rem; margin-bottom: 10px; }
.pin-form { display: flex; gap: 10px; margin-top: 22px; }
.pin-form input { text-align: center; font-size: 1.5rem; letter-spacing: .5em; font-weight: 600; }
.gate-contact { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.gate-contact a { display: inline-flex; gap: 10px; align-items: center; text-decoration: none; font-size: 1.1rem; color: var(--ink); }
.gate-contact svg { width: 20px; height: 20px; color: var(--navy); }
@media (max-width: 480px) { .pin-form { flex-direction: column; } .gate { padding: 36px 22px; } }

/* ---------- Baukasten-Blöcke ---------- */
.footer .f-grid { grid-template-columns: 1.4fr repeat(auto-fit, minmax(170px, 1fr)); }
.wrap.narrow { max-width: 860px; }
.split.img-left > div:first-child { order: 2; }
.h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-family: var(--serif); font-size: 1.3rem; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--navy); font-size: 1.6rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding-top: 12px; color: var(--text); }
.page-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.page-gallery a { aspect-ratio: 4/3; overflow: hidden; display: block; background: var(--bg-tint); }
.page-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.page-gallery a:hover img { transform: scale(1.04); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr !important; } .split.img-left > div:first-child { order: 0; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr !important; } .stats { grid-template-columns: 1fr 1fr !important; } }

/* ==========================================================
   Feinschliff (Design-Runde 2)
   ========================================================== */
h1, h2, h3 { text-wrap: balance; }
p, .lead { text-wrap: pretty; }

/* Logo: mehr Luft zwischen Dach und Schriftzug */
.logo svg.roof { margin-bottom: 3px; }
.logo .l-small { margin: 3px 0 2px; font-size: .55rem; }
.header .wrap { height: 92px; }

/* Hero: Bild läuft bis zum rechten Bildschirmrand */
.hero { background: linear-gradient(180deg, #f4f6fb 0%, #eef2f8 100%); }
.hero .wrap { display: block; position: static; min-height: 660px; }
.hero .hero-text { max-width: 560px; padding: 96px 0 120px; }
.hero h1 { font-size: clamp(2.4rem, 4vw, 3.5rem); line-height: 1.06; letter-spacing: -.015em; }
.hero h1 .accent { display: block; margin-top: .08em; }
.hero .hero-text .lead { font-size: 1.15rem; color: #4a4f5a; margin: 26px 0 34px; max-width: 34em; }
.hero .hero-img { position: absolute; top: 0; bottom: 0; right: 0; left: 50%; }
.hero .hero-img::before { background: linear-gradient(90deg, #eef2f8 0%, rgba(238,242,248,.6) 12%, rgba(238,242,248,0) 34%); }
.hero .hero-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,30,71,0) 60%, rgba(13,30,71,.25) 100%); pointer-events: none; }
.hero .script { top: 48px; left: 12%; font-size: 2.5rem; text-shadow: 0 1px 12px rgba(255,255,255,.7); }
.hero .hero-badge { right: 40px; bottom: 96px; box-shadow: 0 10px 30px rgba(13,30,71,.15); backdrop-filter: blur(6px); }
.hero-highlights { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; padding: 0; list-style: none; font-size: .92rem; color: #4a4f5a; }
.hero-highlights li { display: flex; align-items: center; gap: 8px; }
.hero-highlights svg { width: 18px; height: 18px; color: var(--navy); }
@media (max-width: 900px) {
  .hero .wrap { min-height: 0; padding: 0; }
  .hero .hero-text { max-width: none; padding: 48px 24px 40px; }
  .hero .hero-img { position: relative; left: auto; height: 320px; }
  .hero .hero-badge { bottom: 20px; right: 16px; }
}

/* Schnellsuche */
.quicksearch { margin-top: -64px; border-radius: 6px; border-top: 0; box-shadow: 0 24px 60px rgba(13,30,71,.14); padding: 26px 28px; gap: 16px; position: relative; }
.quicksearch::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--navy); border-radius: 6px 6px 0 0; }
.quicksearch .btn { height: 48px; }

/* Formularfelder einheitlich (keine System-Optik) */
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=url], input[type=password], select, textarea {
  border-radius: 4px; border-color: #d3dae7; background-color: #fff; min-height: 48px;
}
select {
  -webkit-appearance: none; appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314295c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
label.f { font-size: .7rem; letter-spacing: .14em; margin-bottom: 8px; }

/* Buttons */
.btn { border-radius: 4px; padding: 14px 26px; transition: background .2s, color .2s, transform .2s, box-shadow .2s; }
.btn:not(.ghost):not(.light):hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(20,41,92,.25); }

/* Karten */
.card { border-radius: 6px; overflow: hidden; border-color: #e3e8f1; }
.card .c-img { background: linear-gradient(135deg, #e9eef7 0%, #dfe6f2 100%); }
.card .c-body { padding: 22px 24px 24px; }
.card .c-price { font-size: 1.6rem; }
.badge { border-radius: 3px; }
.service { border-radius: 6px; }
.service:hover { transform: translateY(-3px); }
.service { transition: border-color .2s, box-shadow .2s, transform .2s; }

/* Abschnitte */
section { padding: 100px 0; }
.section-head { margin-bottom: 48px; }
.page-hero { padding: 76px 0 68px; }

/* Verwaltungs-Hinweis */
.admin-bar { font-size: .82rem; padding: 7px 16px; background: #fff7dc; border-bottom: 1px solid #f0e2b0; }
.admin-bar .sep { opacity: .4; margin: 0 10px; }

/* Sanftes Einblenden beim Scrollen */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.logo .l-small { margin-bottom: 4px; }
@media (max-width: 900px) {
  .quicksearch { margin-top: -28px; margin-left: 8px; margin-right: 8px; padding: 20px; }
  .hero .hero-badge { display: none; }
  .hero .script { font-size: 1.8rem; top: 22px; left: 20px; }
  .hero .hero-img { height: 300px; }
  .hero .hero-actions .btn { flex: 1 1 100%; }
  .eyebrow::after { flex-basis: 36px; }
}

/* ==========================================================
   Handy-Ansicht (Design-Runde 3)
   ========================================================== */
.topbar .t-mobile { display: none; }
.mobile-bar { display: none; }
@media (max-width: 760px) {
  body { font-size: 16px; padding-bottom: 72px; }

  /* Topbar: Anruf statt Adresse */
  .topbar .t-left { display: none; }
  .topbar .t-mobile { display: flex; width: 100%; justify-content: space-between; align-items: center; font-size: .82rem; }
  .topbar .t-mobile a { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; }
  .topbar .t-mobile span { opacity: .7; }

  /* Header kompakter */
  .header .wrap { height: 72px; }
  .logo svg.roof { width: 118px; height: 24px; }
  .logo .l-big { font-size: 1.15rem; }
  .logo .l-small { font-size: .48rem; }

  /* Hero: Bild zuerst, Text als Karte darüber */
  .hero { background: #fff; }
  .hero .wrap { display: flex; flex-direction: column-reverse; }
  .hero .hero-img { position: relative; left: auto; height: 300px; }
  .hero .hero-img::before { background: none; }
  .hero .hero-img::after { background: linear-gradient(180deg, rgba(13,30,71,.05) 0%, rgba(13,30,71,0) 40%, rgba(255,255,255,.0) 70%, #fff 100%); }
  .hero .script { font-size: 1.7rem; top: 18px; left: 18px; color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.45); }
  .hero .hero-text { padding: 0 20px 34px; margin-top: -54px; position: relative; z-index: 3; }
  .hero .eyebrow { font-size: .7rem; letter-spacing: .16em; background: #fff; display: inline-flex; padding: 8px 14px; border-radius: 30px; box-shadow: 0 6px 20px rgba(13,30,71,.12); margin-bottom: 18px; }
  .hero .eyebrow::after { display: none; }
  .hero h1 { font-size: clamp(1.95rem, 8.4vw, 2.3rem); line-height: 1.1; }
  .hero .hero-text .lead { font-size: 1rem; line-height: 1.6; margin: 16px 0 24px; }
  .hero .hero-actions { gap: 10px; }
  .hero .hero-actions .btn { flex: 1 1 100%; padding: 15px 18px; }
  .hero-highlights { gap: 8px 16px; margin-top: 20px; font-size: .86rem; }

  /* Suche */
  .quicksearch { margin: 0 4px; padding: 18px; box-shadow: 0 14px 40px rgba(13,30,71,.12); }

  /* Typo & Abstände */
  section { padding: 64px 0; }
  .section-head { margin-bottom: 30px; }
  h2 { font-size: 1.75rem; }
  .btn { letter-spacing: .05em; }
  .eyebrow { letter-spacing: .16em; font-size: .74rem; }
  .wrap { padding: 0 18px; }
  .page-hero { padding: 48px 0 40px; }

  /* Schwebender WhatsApp-Button → ersetzt durch Leiste */
  .wa-float { display: none; }
  .cookie { bottom: 84px; }

  /* Feste Kontakt-Leiste unten */
  .mobile-bar {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
    box-shadow: 0 -6px 24px rgba(13,30,71,.08);
  }
  .mobile-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 7px 4px; border-radius: 10px;
    text-decoration: none; color: var(--navy); font-size: .72rem; font-weight: 600; letter-spacing: .02em; }
  .mobile-bar svg { width: 22px; height: 22px; }
  .mobile-bar a.wa { color: #128c4b; }
  .mobile-bar a.primary { background: var(--navy); color: #fff; }

  .quicksearch select { font-size: .95rem; padding-left: 12px; padding-right: 32px; background-position: right 10px center; }
  .quicksearch { gap: 12px; }
  .section-head.split { align-items: flex-start; }
  .section-head.split .btn { padding: 10px 16px; font-size: .74rem; }

  /* Kontakt-Leiste: schmal */
  body.has-mobile-bar { padding-bottom: 52px; }
  body:not(.has-mobile-bar) { padding-bottom: 0; }
  body:not(.has-mobile-bar) .wa-float { display: grid; width: 50px; height: 50px; right: 14px; bottom: 14px; }
  .mobile-bar { gap: 6px; padding: 5px 8px calc(5px + env(safe-area-inset-bottom)); }
  .mobile-bar a { flex-direction: row; gap: 6px; padding: 9px 6px; font-size: .8rem; border-radius: 8px; }
  .mobile-bar svg { width: 17px; height: 17px; }
  .cookie { bottom: 64px; }
}

/* ==========================================================
   Navigation Handy/Tablet – neu (Vollbild-Menü)
   ========================================================== */
.nav-contact { display: none; }
.burger .i-close { display: none; }
@media (max-width: 1080px) {
  /* backdrop-filter würde das fixierte Menü auf die Kopfzeile begrenzen */
  .header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .header .wrap { position: relative; }
  .header .logo, .burger { position: relative; z-index: 120; }
  .burger { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -8px; border-radius: 8px; }
  .burger svg { width: 26px; height: 26px; }
  body.nav-open .burger .i-open { display: none; }
  body.nav-open .burger .i-close { display: block; }
  body.nav-open { overflow: hidden; }
  body.nav-open .mobile-bar, body.nav-open .wa-float { display: none !important; }

  .nav, .nav:not(.open) {
    position: fixed; inset: 0; width: 100%; height: 100vh; height: 100dvh; z-index: 110;
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    padding: 108px 24px calc(28px + env(safe-area-inset-bottom)); overflow-y: auto;
    background: #fff; box-shadow: none;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s ease, transform .25s ease, visibility 0s; }
  .nav a, .nav a:hover, .nav a.active {
    font-family: var(--serif); font-size: 1.55rem; font-weight: 500; letter-spacing: 0; text-transform: none;
    color: var(--ink); padding: 15px 2px; border: 0; border-bottom: 1px solid var(--line);
    display: flex; justify-content: space-between; align-items: center;
  }
  .nav a:not(.btn)::after { content: "›"; color: var(--navy); opacity: .5; font-family: var(--sans); font-size: 1.6rem; }
  .nav a.active { color: var(--navy); }
  .nav a.btn, .nav a.btn:hover {
    margin: 26px 0 0; justify-content: center; font-family: var(--sans); font-size: .9rem; font-weight: 600;
    letter-spacing: .08em; text-transform: uppercase; color: #fff; padding: 17px; border: 1px solid var(--navy); border-radius: 6px;
  }
  .nav-contact { display: flex; flex-direction: column; gap: 12px; margin-top: auto; padding-top: 32px; font-size: .95rem; color: var(--muted); }
  .nav-contact a, .nav-contact a:hover {
    font-family: var(--sans); font-size: .95rem; text-transform: none; letter-spacing: 0; padding: 0; border: 0;
    color: var(--navy); justify-content: flex-start; gap: 10px; font-weight: 600;
  }
  .nav-contact a::after { content: none !important; }
  .nav-contact span { display: flex; gap: 10px; align-items: center; }
  .nav-contact svg { width: 18px; height: 18px; color: var(--navy); flex: none; }
}

/* Handy: keine Kontakt-Leiste, nur WhatsApp-Button wie am PC */
@media (max-width: 760px) {
  body, body.has-mobile-bar { padding-bottom: 0; }
  .mobile-bar { display: none !important; }
  .wa-float { display: grid !important; width: 54px; height: 54px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); }
  .wa-float svg { width: 28px; height: 28px; }
  .cookie { bottom: 84px; }
  body.nav-open .wa-float { display: none !important; }
}

/* Energieausweis-Skala: Platz für das Wert-Etikett */
.energy-bar { margin: 50px 0 10px; height: 30px; border-radius: 4px; }
.energy-bar span:first-child { border-radius: 4px 0 0 4px; }
.energy-bar span:nth-last-child(2) { border-radius: 0 4px 4px 0; }
.energy-marker { top: -8px; height: 46px; width: 3px; margin-left: -1.5px; background: var(--ink); border-radius: 2px; }
.energy-marker::after {
  top: -28px; padding: 4px 10px; border-radius: 4px; background: var(--ink); color: #fff;
  font-size: .78rem; font-weight: 600; line-height: 1.3; box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.energy-marker.edge-left::after { left: -4px; transform: none; }
.energy-marker.edge-right::after { left: auto; right: -4px; transform: none; }
@media (max-width: 760px) { .energy-bar span { font-size: .66rem; } }

/* Logo aus der Verwaltung */
.logo.has-img { display: block; line-height: 0; }
.logo .logo-img { height: var(--logo-h, 58px); width: auto; max-width: 280px; object-fit: contain; }
.logo .logo-img.whiten { filter: brightness(0) invert(1); }
.footer .logo .logo-img { height: calc(var(--logo-h, 58px) * 1.1); }
.gate .logo { display: inline-block; }
@media (max-width: 760px) { .logo .logo-img { height: var(--logo-h-m, 44px); max-width: 220px; } }

/* Logo (Bilddatei) */
.logo .logo-img { height: var(--logo-h, 76px); max-width: 300px; }
.header .wrap { height: 96px; }
.footer .logo .logo-img { height: 84px; max-width: 240px; }
.gate .logo .logo-img { height: 96px; }
@media (max-width: 760px) {
  .header .wrap { height: 74px; }
  .logo .logo-img { height: var(--logo-h-m, 56px); max-width: 200px; }
}

/* Hinweise: Widerruf im Formular, Symbolbild-Kennzeichnung */
.form-note { font-size: .86rem; color: var(--muted); margin: 4px 0 0; padding: 10px 12px; background: var(--bg-soft); border-left: 3px solid var(--navy); }
.img-caption { position: absolute; left: 10px; bottom: 10px; z-index: 3; background: rgba(13,30,71,.72); color: #fff; font-size: .7rem; letter-spacing: .06em; padding: 3px 8px; border-radius: 3px; pointer-events: none; }
.hero .img-caption { left: auto; right: 12px; bottom: 12px; }
@media (max-width: 900px) { .hero .img-caption { bottom: 60px; } }
