/*
Theme Name:  Hühner Immobilien
Description: Klares, ruhiges Theme für Hühner Immobilien. Zeigt die Objekte aus dem Plugin „Hühner Immobilien – OpenImmo Import“.
Version:     1.0.0
Author:      Nico Huck
Requires PHP: 8.0
Requires at least: 6.3
Text Domain: huehner
*/

:root {
  --bg: #fbfaf8; --surface: #fff; --ink: #2c2f34; --ink-2: #6e6e73; --line: #e8e6e3;
  --rose: #f5a5a6;        /* Markenfarbe aus dem Logo */
  --rose-soft: #fdf0f0;
  --rose-ink: #b0565a;    /* Rosé für Text auf Weiß (AA-Kontrast) */
  --radius: 22px; --radius-sm: 14px; --wrap: 1180px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  /* Systemschrift (SF auf Apple-Geräten) – keine externen Schriften, DSGVO-freundlich */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
section { padding: clamp(72px, 10vw, 128px) 0; }
.site-main { padding-top: 64px; }
.home .site-main { padding-top: 0; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }

h1, h2, h3 { margin: 0; letter-spacing: -0.022em; line-height: 1.08; font-weight: 600; }
h1 { font-size: clamp(32px, 4.6vw, 52px); letter-spacing: -0.03em; }
h2 { font-size: clamp(30px, 4.4vw, 50px); }
h3 { font-size: 21px; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--rose-ink); letter-spacing: 0.01em; margin-bottom: 14px; }
.lead { font-size: clamp(19px, 2vw, 22px); color: var(--ink-2); line-height: 1.5; max-width: 40ch; }
.muted { color: var(--ink-2); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px;
  border-radius: 999px; font-weight: 500; font-size: 16px; border: 0; cursor: pointer; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-rose { background: var(--rose); color: var(--ink); }
.btn-light { background: #f0eeeb; color: var(--ink); }
.btn-glass { background: rgb(255 255 255 / 0.16); color: #fff; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.btn-ghost { background: transparent; color: var(--ink); padding: 0 8px; }
.btn-block { width: 100%; }
.btn-ghost .arrow { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: #454950; }
  .btn-rose:hover { background: #f29596; }
  .btn-light:hover { background: #e7e4e0; }
  .btn-glass:hover { background: rgb(255 255 255 / 0.26); }
  .btn-ghost:hover .arrow { transform: translateX(3px); }
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 32px; }
.center .actions { justify-content: center; }

/* Header */
.header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: 64px; background: rgb(251 250 248 / 0.78);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line); transition: border-color 200ms ease, background-color 300ms ease; }
.admin-bar .header { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 46px; } }
.home .header:not(.scrolled) { border-bottom-color: transparent; }
.header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo img { height: 36px; width: auto; transition: filter 300ms ease; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; font-size: 15px; color: var(--ink-2); }
.nav a { transition: color 150ms ease; }
.nav a:hover, .nav .current-menu-item > a { color: var(--ink); }
.header .btn { height: 38px; padding: 0 18px; font-size: 14px; }
.header.on-hero { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: transparent; }
.logo { display: inline-flex; border-radius: 999px; transition: background-color 300ms ease, padding 300ms ease; }
/* Über dem Foto: Logo in Originalfarben auf heller Glas-Pille statt weiß eingefärbt */
.header.on-hero .logo { background: rgb(255 255 255 / 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding: 4px 14px 4px 4px; }
.header.on-hero .logo img { height: 32px; }
.header.on-hero .nav ul { color: rgb(255 255 255 / 0.82); }
.header.on-hero .nav a:hover { color: #fff; }
.header.on-hero .btn-call { background: rgb(255 255 255 / 0.16); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.header.on-hero .menu-btn span { background: #fff; }
.menu-btn { display: none; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; padding: 0; }
.menu-btn span { display: block; width: 20px; height: 1.5px; background: var(--ink); margin: 5px auto; border-radius: 2px; transition: transform 240ms var(--ease-out); }
.menu-open .menu-btn span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-open .menu-btn span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.sheet { position: fixed; inset: 64px 0 auto 0; z-index: 49; background: var(--bg); padding: 16px 16px 32px; border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity 200ms ease, transform 280ms var(--ease-drawer); }
.menu-open .sheet { opacity: 1; transform: none; pointer-events: auto; }
.sheet ul { list-style: none; margin: 0; padding: 0; }
.sheet ul a { display: block; font-size: 28px; font-weight: 600; letter-spacing: -0.02em; padding: 10px 0; }
.sheet .btn { margin-top: 16px; }
@media (max-width: 860px) { .nav, .header .btn-call { display: none; } .menu-btn { display: block; } }
@media (min-width: 861px) { .sheet { display: none; } }

/* Hero – Vollbild, beim Scrollen wird das Bild zur Karte */
.hero { position: relative; height: 100svh; min-height: 640px; max-height: 1100px; padding: 0; color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0; overflow: hidden; background: #2a2725;
  clip-path: inset(var(--inset-y, 0px) var(--inset-x, 0px) 0 var(--inset-x, 0px) round var(--r, 0px)); will-change: clip-path; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%;
  transform: scale(var(--zoom, 1)); will-change: transform; animation: hero-in 1600ms var(--ease-out) backwards; }
@keyframes hero-in { from { transform: scale(1.12); filter: brightness(0.6); } }
.hero-media::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgb(20 16 14 / 0.78) 0%, rgb(20 16 14 / 0.25) 45%, rgb(20 16 14 / 0) 70%),
              linear-gradient(to bottom, rgb(20 16 14 / 0.45), rgb(20 16 14 / 0) 22%); }
.hero-content { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: clamp(40px, 8vh, 96px); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; padding: 6px 14px 6px 6px;
  border-radius: 999px; background: rgb(255 255 255 / 0.14); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); margin-bottom: 24px; }
.hero-kicker img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.hero h1 { font-size: clamp(40px, 6.8vw, 100px); line-height: 0.92; letter-spacing: -0.045em; font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--rose); }
.hero .lead { color: rgb(255 255 255 / 0.82); margin-top: 24px; max-width: 34ch; }
.hero-card { display: flex; gap: 14px; align-items: center; width: 330px; padding: 10px 18px 10px 10px; border-radius: 20px;
  background: rgb(255 255 255 / 0.14); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.18); transition: transform 160ms var(--ease-out), background-color 200ms ease; }
.hero-card:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .hero-card:hover { background: rgb(255 255 255 / 0.22); } }
.hero-card img { width: 84px; height: 84px; border-radius: 12px; object-fit: cover; flex: none; }
.hero-card small { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--rose); }
.hero-card small::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 0 4px rgb(245 165 166 / 0.25); }
.hero-card strong { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; margin-top: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-card span { display: block; font-size: 14px; color: rgb(255 255 255 / 0.75); margin-top: 2px; font-variant-numeric: tabular-nums; }
.scroll-hint { position: absolute; left: 50%; bottom: 18px; z-index: 1; width: 22px; height: 34px; margin-left: -11px; border-radius: 12px; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.6); }
.scroll-hint::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: hint 1800ms var(--ease-out) infinite; }
@keyframes hint { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(11px); opacity: 0; } }
.intro { animation: intro 900ms var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 90ms + 250ms); }
@keyframes intro { from { opacity: 0; transform: translateY(24px); filter: blur(8px); } }
@media (max-width: 860px) { .hero-inner { grid-template-columns: 1fr; gap: 28px; } .hero-card { width: 100%; max-width: 420px; } .scroll-hint { display: none; } }
@media (max-width: 520px) { .hero .actions .btn { flex: 1; } .hero-card img { width: 64px; height: 64px; } }

/* Kennzahlen */
.facts-section { padding: clamp(56px, 8vw, 96px) 0 0; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fact strong { display: block; font-size: clamp(34px, 4.4vw, 56px); font-weight: 600; letter-spacing: -0.035em; line-height: 1; }
.fact strong em { font-style: normal; color: var(--rose-ink); }
.fact span { display: block; font-size: 15px; color: var(--ink-2); margin-top: 10px; }
@media (max-width: 720px) { .facts { grid-template-columns: 1fr 1fr; gap: 32px 16px; } }

/* Immobilien-Karten */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
@media (max-width: 400px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--surface); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 8px 24px rgb(0 0 0 / 0.04); transition: transform 160ms var(--ease-out), box-shadow 240ms ease; }
.card:active { transform: scale(0.99); }
.card-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #eee; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .card:hover { box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 16px 40px rgb(0 0 0 / 0.08); }
  .card:hover .card-img img { transform: scale(1.03); }
}
.badges { display: flex; gap: 6px; flex-wrap: wrap; }
.card-img .badges { position: absolute; top: 16px; left: 16px; }
.badge { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: #f0eeeb; }
.card-img .badge { background: rgb(255 255 255 / 0.9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.badge.rose, .card-img .badge.rose { background: var(--rose); }
.badge.green { background: #e3f6e8; color: #1b7a36; }
.badge.amber, .card-img .badge.amber { background: #fff1d6; color: #8a5a00; }
.badge-360 { position: absolute; right: 16px; bottom: 16px; font-size: 12px; font-weight: 600; color: #fff; background: rgb(0 0 0 / 0.45);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 5px 10px; border-radius: 999px; }
.card-body { padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-meta { font-size: 14px; color: var(--ink-2); display: flex; gap: 8px; align-items: center; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: #34c759; flex: none; }
.dot.amber { background: #ff9f0a; } .dot.grey { background: #aeaeb2; }
.price { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.specs { display: flex; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.specs div { flex: 1; }
.specs div + div { border-left: 1px solid var(--line); padding-left: 16px; }
.specs strong { display: block; font-size: 17px; font-weight: 600; }
.specs span { font-size: 13px; color: var(--ink-2); }
.search-cta { margin-top: 24px; background: var(--rose-soft); border-radius: var(--radius); padding: 28px; display: flex;
  justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.search-cta p { max-width: 56ch; }
.empty { background: var(--surface); border-radius: var(--radius); padding: 48px 28px; text-align: center; }

/* Filter (Archiv) */
.filter { display: inline-flex; background: #f0eeeb; border-radius: 999px; padding: 3px; gap: 2px; margin-top: 28px; }
.filter a { padding: 8px 18px; border-radius: 999px; font-size: 15px; transition: background-color 150ms ease; }
.filter a[aria-current="page"] { background: var(--surface); box-shadow: 0 1px 3px rgb(0 0 0 / 0.1); font-weight: 500; }
.pagination { margin-top: 48px; display: flex; justify-content: center; gap: 6px; }
.pagination .page-numbers { min-width: 40px; height: 40px; display: inline-grid; place-items: center; padding: 0 12px; border-radius: 999px; background: var(--surface); }
.pagination .current { background: var(--ink); color: #fff; }

/* Über */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split-img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: #eee; }
.split-img img { width: 100%; height: 100%; object-fit: cover; }
.prose { color: var(--ink-2); font-size: 18px; }
.prose p + p { margin-top: 16px; }
.prose h2 { color: var(--ink); margin-bottom: 24px; }
.signature { margin-top: 28px; display: flex; align-items: center; gap: 16px; }
.signature img { height: 56px; width: auto; }
.signature strong { color: var(--ink); }
.signature small { display: block; font-size: 14px; color: var(--ink-2); }

/* Verkaufen */
.dark { background: #2b2e33; color: #f5f5f7; }
.dark .lead, .dark .muted { color: #b9bcc2; }
.dark .eyebrow { color: var(--rose); }
.steps { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; counter-reset: s; }
.steps li { counter-increment: s; background: #363a40; border-radius: var(--radius-sm); padding: 24px; min-height: 140px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.steps li::before { content: counter(s, decimal-leading-zero); font-size: 14px; font-weight: 600; color: var(--rose); font-variant-numeric: tabular-nums; }
.steps li span { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.steps li:last-child { background: var(--rose); color: var(--ink); }
.steps li:last-child::before { color: var(--ink); }

/* Home Staging Vergleich */
.compare-wrap { max-width: 900px; margin-inline: auto; }
.compare { position: relative; margin-top: 48px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 2; user-select: none; touch-action: pan-y; background: #ddd; --pos: 50%; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare .after { clip-path: inset(0 0 0 var(--pos)); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: #fff; transform: translateX(-1px); pointer-events: none; }
.compare .knob { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%);
  box-shadow: 0 4px 16px rgb(0 0 0 / 0.18); display: grid; place-items: center; font-size: 14px; color: var(--ink); }
.compare .tag { position: absolute; bottom: 16px; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgb(255 255 255 / 0.9); pointer-events: none; }
.compare .tag.l { left: 16px; } .compare .tag.r { right: 16px; }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare:has(input:focus-visible) .knob { outline: 2px solid var(--rose-ink); outline-offset: 3px; }

/* 360 */
.tour { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 520px; display: flex; align-items: end; color: #fff; }
.tour > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tour::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(0 0 0 / 0.62), rgb(0 0 0 / 0) 62%); }
.tour-body { position: relative; z-index: 1; padding: clamp(28px, 5vw, 56px); max-width: 620px; }
.tour-body .eyebrow { color: rgb(255 255 255 / 0.8); }
.tour-body .lead { color: rgb(255 255 255 / 0.82); margin-top: 16px; }
.tour .btn-primary { background: #fff; color: var(--ink); }

/* Team */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 56px; }
@media (max-width: 960px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .team { grid-template-columns: 1fr; } }
.member-img { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: #eee; }
.member-img img { width: 100%; height: 100%; object-fit: cover; }
.member h3 { margin-top: 20px; }
.member .role { font-size: 15px; color: var(--rose-ink); font-weight: 500; margin-top: 4px; }
.member p.muted { font-size: 15px; margin-top: 10px; line-height: 1.55; }

/* Kontakt */
.contact { background: var(--rose-soft); border-radius: calc(var(--radius) + 8px); padding: clamp(40px, 7vw, 88px); text-align: center; }
.contact .lead { margin: 20px auto 0; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 40px; text-align: left; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-item { background: var(--surface); border-radius: var(--radius-sm); padding: 20px 22px; transition: transform 160ms var(--ease-out); }
a.contact-item:active { transform: scale(0.98); }
.contact-item span { display: block; font-size: 13px; color: var(--ink-2); }
.contact-item strong { font-weight: 600; font-size: 17px; word-break: break-word; }

/* ---------- Immobilie: Detailseite ---------- */
.top { padding: 28px 0 24px; }
.top h1 { max-width: 24ch; }
.back { display: inline-flex; gap: 6px; font-size: 15px; color: var(--ink-2); margin-bottom: 24px; }
.back:hover { color: var(--ink); }
.top .badges { margin-bottom: 14px; }
.loc { margin-top: 12px; color: var(--ink-2); font-size: 17px; }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; aspect-ratio: 2.3 / 1;
  border-radius: var(--radius); overflow: hidden; position: relative; }
.gallery.n1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.gallery.n2, .gallery.n3, .gallery.n4 { grid-template-columns: 2fr 1fr; }
.gallery button { padding: 0; border: 0; background: #eee; cursor: zoom-in; overflow: hidden; }
.gallery button:first-child { grid-row: span 2; }
.gallery.n1 button:first-child { grid-row: auto; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: filter 200ms ease; }
@media (hover: hover) and (pointer: fine) { .gallery button:hover img { filter: brightness(0.94); } }
.gallery .all { position: absolute; right: 16px; bottom: 16px; height: 38px; font-size: 14px; background: rgb(255 255 255 / 0.92);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); cursor: pointer; }
@media (max-width: 760px) {
  .gallery, .gallery.n2, .gallery.n3, .gallery.n4 { grid-template-columns: 1fr; grid-template-rows: none; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); }
  .gallery button:not(:first-child):not(.all) { display: none; }
  .gallery button:first-child { grid-row: auto; }
}
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(32px, 5vw, 72px); padding: 40px 0 96px; align-items: start; }
@media (max-width: 960px) { .layout { grid-template-columns: 1fr; } }
.layout h2 { font-size: clamp(24px, 2.6vw, 30px); margin-bottom: 20px; }
.block { padding: 40px 0; border-top: 1px solid var(--line); }
.block:first-child { border-top: 0; padding-top: 0; }
.keyfacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; }
.keyfact { background: var(--surface); border-radius: var(--radius-sm); padding: 18px 18px 16px; box-shadow: 0 1px 2px rgb(0 0 0 / 0.04); }
.keyfact strong { display: block; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.keyfact span { font-size: 13px; color: var(--ink-2); }
.block .lead { color: var(--ink); font-size: 20px; letter-spacing: -0.01em; max-width: none; margin-bottom: 20px; }
.text { color: #454950; }
.text p + p { margin-top: 14px; }
.clamp { position: relative; max-height: 320px; overflow: hidden; transition: max-height 400ms var(--ease-out); }
.clamp::after { content: ""; position: absolute; inset: auto 0 0 0; height: 96px; background: linear-gradient(to top, var(--bg), rgb(251 250 248 / 0)); transition: opacity 200ms ease; }
.clamp.open::after { opacity: 0; }
.more { margin-top: 12px; background: none; border: 0; padding: 0; font-weight: 600; color: var(--rose-ink); cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 14px; border-radius: 999px; background: var(--surface); font-size: 15px; box-shadow: inset 0 0 0 1px var(--line); }
.table { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin: 0; }
@media (max-width: 600px) { .table { grid-template-columns: 1fr; } }
.row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.row dt { color: var(--ink-2); }
.row dd { margin: 0; font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.group-title { grid-column: 1 / -1; font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 20px 0 4px; }
.group-title:first-child { margin-top: 0; }
.note { background: #f0eeeb; border-radius: var(--radius-sm); padding: 16px 18px; font-size: 15px; color: var(--ink-2); }
.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.plans button { padding: 16px; border: 0; background: var(--surface); border-radius: var(--radius-sm); cursor: zoom-in; box-shadow: inset 0 0 0 1px var(--line);
  aspect-ratio: 1; transition: transform 160ms var(--ease-out); }
.plans button:active { transform: scale(0.98); }
.plans img { width: 100%; height: 100%; object-fit: contain; }
.docs { display: grid; gap: 8px; }
.doc { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: var(--surface); border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1px var(--line); transition: transform 160ms var(--ease-out); }
.doc:active { transform: scale(0.99); }
.doc .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--rose-soft); color: var(--rose-ink); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.doc strong { display: block; font-weight: 500; font-size: 15px; word-break: break-word; }
.doc span { font-size: 13px; color: var(--ink-2); }
.doc .dl { margin-left: auto; font-size: 14px; font-weight: 600; color: var(--rose-ink); white-space: nowrap; }
.map { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 16 / 8; background: #ecebe8; margin-top: 20px; display: grid; place-items: center; text-align: center; padding: 16px; }
.map iframe { border: 0; width: 100%; height: 100%; }
.map.loaded { padding: 0; }
.map p { font-size: 15px; color: var(--ink-2); max-width: 36ch; }
.map strong { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }
.map .btn { margin-top: 14px; }
.aside { position: sticky; top: 88px; display: grid; gap: 12px; }
.panel { background: var(--surface); border-radius: var(--radius); padding: 28px; box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 12px 32px rgb(0 0 0 / 0.05); }
.price-label { font-size: 14px; color: var(--ink-2); }
.panel .price { font-size: 34px; letter-spacing: -0.03em; line-height: 1.15; margin-top: 2px; }
.price-sub { font-size: 14px; color: var(--ink-2); margin-top: 6px; }
.panel .actions { display: grid; gap: 8px; margin-top: 24px; }
.agent { display: flex; gap: 14px; align-items: center; }
.agent img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.agent strong { display: block; font-weight: 600; }
.agent span { font-size: 14px; color: var(--ink-2); }
.agent-links { margin-top: 16px; display: grid; gap: 4px; font-size: 15px; }
.agent-links a { color: var(--rose-ink); font-weight: 500; }
.ref { font-size: 13px; color: var(--ink-2); text-align: center; }
@media (max-width: 960px) { .aside { position: static; } .aside .panel-price { display: none; } }

/* Formular */
.form { display: grid; gap: 14px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .form .two { grid-template-columns: 1fr; } }
.field label, .field .label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.field small { color: var(--ink-2); font-weight: 400; }
.input { width: 100%; height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); padding: 0 14px; transition: border-color 150ms ease, box-shadow 150ms ease; }
textarea.input { height: 120px; padding: 12px 14px; resize: vertical; }
.input:focus { outline: none; border-color: var(--rose-ink); box-shadow: 0 0 0 4px rgb(176 86 90 / 0.12); }
.seg { display: inline-flex; background: #f0eeeb; border-radius: 999px; padding: 3px; gap: 2px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { margin: 0; padding: 7px 16px; border-radius: 999px; font-size: 14px; cursor: pointer; transition: background-color 150ms ease; }
.seg input:checked + label { background: var(--surface); box-shadow: 0 1px 3px rgb(0 0 0 / 0.1); font-weight: 500; }
.seg input:focus-visible + label { outline: 2px solid var(--rose-ink); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.check a { text-decoration: underline; }
.opts { display: grid; gap: 8px; }
.form-error { background: #fff1d6; color: #8a5a00; border-radius: 12px; padding: 12px 16px; font-size: 15px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.success { text-align: center; padding: 24px 0; }
.success .tick { width: 56px; height: 56px; border-radius: 50%; background: #e3f6e8; color: #1b7a36; display: grid; place-items: center; font-size: 26px; margin: 0 auto 16px; }
.success.show { animation: pop 320ms var(--ease-out); }
@keyframes pop { from { opacity: 0; transform: scale(0.96); } }

/* Mobile Leiste */
.bar { display: none; }
@media (max-width: 960px) {
  .bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; gap: 12px; align-items: center; justify-content: space-between;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgb(251 250 248 / 0.86);
    backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-top: 1px solid var(--line); }
  .bar .price { font-size: 22px; }
  .bar .btn { height: 44px; }
  .single-immobilie { padding-bottom: 76px; }
}

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 100; background: rgb(12 12 12 / 0.94); display: grid; grid-template-rows: auto 1fr auto;
  opacity: 0; pointer-events: none; transition: opacity 200ms ease; color: #fff; }
.lb.open { opacity: 1; pointer-events: auto; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; font-size: 14px; color: #a1a1a6; font-variant-numeric: tabular-nums; }
.lb-stage { position: relative; display: grid; place-items: center; padding: 0 72px; min-height: 0; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 160px); object-fit: contain; border-radius: 8px; transform: scale(0.98); transition: transform 240ms var(--ease-out); }
.lb.open .lb-stage img { transform: none; }
.lb-stage.plan img { background: #fff; padding: 16px; }
.lb-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgb(255 255 255 / 0.12); color: #fff; cursor: pointer; font-size: 20px;
  display: grid; place-items: center; transition: background-color 150ms ease, transform 160ms var(--ease-out); }
.lb-btn:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .lb-btn:hover { background: rgb(255 255 255 / 0.2); } }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev:active, .lb-next:active { transform: translateY(-50%) scale(0.94); }
.lb-prev { left: 16px; } .lb-next { right: 16px; }
.lb-caption { text-align: center; padding: 16px 20px 24px; font-size: 14px; color: #a1a1a6; min-height: 56px; }
@media (max-width: 600px) { .lb-stage { padding: 0 8px; } .lb-prev, .lb-next { top: auto; bottom: -60px; } }

/* Seiten (Impressum, Datenschutz …) */
.page-content { max-width: 760px; padding: 48px 0 96px; }
.page-content h1 { margin-bottom: 32px; }
.entry { color: #454950; }
.entry h2 { font-size: 26px; margin: 40px 0 12px; }
.entry h3 { font-size: 19px; margin: 28px 0 8px; }
.entry p, .entry ul, .entry ol { margin: 0 0 16px; }
.entry a { color: var(--rose-ink); text-decoration: underline; }

/* Footer */
.footer { margin-top: clamp(40px, 6vw, 80px); padding: clamp(56px, 7vw, 88px) 0 40px; background: var(--surface); border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand .logo img { height: 42px; }
.footer-brand p { margin: 18px 0 22px; max-width: 38ch; line-height: 1.55; }
.footer-col h3 { font-size: 13px; font-weight: 600; color: var(--ink); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a:hover { color: var(--ink); }
.footer-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px 44px; margin-top: clamp(48px, 6vw, 72px); padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.footer-logo { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.footer-logo img { height: 24px; width: auto; display: block; }
.footer-logo img[src*="immoscout24"] { height: 34px; }
.footer-logo .ico { width: 26px; height: 26px; color: var(--rose-ink); }
.footer-logo b { font-weight: 700; font-size: 16px; }
.footer-logo small { font-size: 12px; color: var(--ink-2); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; padding-top: 24px; font-size: 14px; }
.footer-bottom ul { display: flex; gap: 20px; }

/* Einblenden beim Scrollen – einmalig, dezent */
.js .reveal { opacity: 0; transform: translateY(10px); transition: opacity 450ms var(--ease-out), transform 450ms var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; transition: opacity 300ms ease; }
  .card-img img, .btn, .card, .sheet, .clamp, .lb-stage img, .doc, .plans button { transition-property: opacity, background-color, color; }
  .hero-media img, .scroll-hint::after, .success.show { animation: none; }
  .intro { animation: fade 400ms ease backwards; }
  @keyframes fade { from { opacity: 0; } }
}

/* Brotkrumen (Rank Math) */
.crumbs { font-size: 14px; color: var(--ink-2); margin-bottom: 24px; }
.crumbs a:hover { color: var(--ink); }
.crumbs .separator { margin: 0 6px; opacity: 0.6; }
.crumbs .last { color: var(--ink); }

/* ---------- Ihre Maklerin: Video / Porträt + Qualifikationen ---------- */
.video { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: #eee; border: 0; padding: 0; }
.video video, .video img { width: 100%; height: 100%; object-fit: cover; }
.video.video-yt { cursor: pointer; }
.video .play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%;
  background: rgb(255 255 255 / 0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgb(0 0 0 / 0.2);
  transition: transform 200ms var(--ease-out); }
.video .play::after { content: ""; position: absolute; left: 31px; top: 25px; border-left: 20px solid var(--ink); border-top: 13px solid transparent; border-bottom: 13px solid transparent; }
.video:active .play { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .video-yt:hover .play { transform: scale(1.06); } }
.video-note { position: absolute; left: 12px; right: 12px; bottom: 12px; font-size: 12px; color: #fff; text-shadow: 0 1px 2px rgb(0 0 0 / 0.5); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ticks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 32px; color: var(--ink); font-size: 17px; line-height: 1.45; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--rose-soft); }
.ticks li::after { content: ""; position: absolute; left: 7px; top: 6px; width: 5px; height: 9px; border: solid var(--rose-ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* ---------- Bekannt aus ---------- */
.press { margin-top: clamp(48px, 7vw, 80px); display: flex; flex-direction: column; align-items: center; gap: 22px; padding-top: 36px; border-top: 1px solid var(--line); text-align: center; }
.press-label { font-size: 13px; font-weight: 600; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.12em; }
.press-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 24px 64px; }
.press-item { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.press-item img { height: 46px; width: auto; object-fit: contain; }
.press-wordmark { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.press-item span { font-size: 13px; color: var(--ink-2); }


/* ---------- Google-Bewertung im Hero ---------- */
.hero-rating { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 8px 16px; border-radius: 999px; font-size: 15px;
  background: rgb(255 255 255 / 0.14); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.2); }
.hero-rating strong { font-weight: 700; }
.hero-rating span:last-child { color: rgb(255 255 255 / 0.85); }
.stars { color: #fbbc04; letter-spacing: 1px; }

/* ---------- Lead-Block Wertermittlung ---------- */
.lead-section { padding-top: 0; }
.lead-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-radius: calc(var(--radius) + 10px); overflow: hidden;
  background: #2b2e33; color: #f5f5f7; box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.22); }
@media (max-width: 900px) { .lead-block { grid-template-columns: 1fr; } }
.lead-copy { padding: clamp(32px, 5vw, 64px); }
.lead-copy .eyebrow { color: var(--rose); }
.lead-copy h2 { font-size: clamp(32px, 4.2vw, 52px); color: #fff; }
.lead-copy .lead { color: #cdd0d5; margin-top: 16px; }
.lead-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.lead-points li { position: relative; padding-left: 30px; color: #e5e5ea; }
.lead-points li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--rose); color: var(--ink);
  font-size: 12px; font-weight: 700; display: grid; place-items: center; margin-top: 3px; }
.lead-points b { color: #fff; font-weight: 600; }
.lead-rating { display: inline-flex; gap: 8px; align-items: center; margin-top: 28px; font-size: 15px; color: #c7c7cc; }
.lead-rating strong { color: #fff; }
.lead-start { background: var(--surface); color: var(--ink); padding: clamp(28px, 4.5vw, 56px); display: flex; flex-direction: column; justify-content: center; }
.lead-step { font-size: 13px; font-weight: 600; color: var(--rose-ink); }
.lead-start h3 { font-size: clamp(22px, 2.2vw, 28px); margin: 10px 0 24px; letter-spacing: -0.02em; }
.lead-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lead-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 20px; border-radius: 16px; background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; font-size: 17px;
  transition: transform 160ms var(--ease-out), box-shadow 200ms ease, background-color 200ms ease; }
.lead-tile svg { width: 32px; height: 32px; color: var(--rose-ink); }
.lead-tile:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .lead-tile:hover { background: var(--rose-soft); box-shadow: inset 0 0 0 2px var(--rose-ink); } }
.lead-other { margin-top: 18px; font-size: 15px; color: var(--ink-2); }
.lead-other:hover { color: var(--ink); }

/* ---------- Kundenstimmen ---------- */
.reviews-section { padding-top: clamp(80px, 10vw, 128px); }
.reviews-head { text-align: center; margin-bottom: 48px; }
.reviews-head h2 { margin-top: 18px; }
.score { display: inline-flex; align-items: center; gap: 18px; margin-top: 6px; text-align: left; }
.score > strong { font-size: clamp(64px, 8vw, 96px); font-weight: 700; letter-spacing: -0.05em; line-height: 1; }
.stars-lg { font-size: 30px; letter-spacing: 3px; display: block; }
.score a { font-size: 15px; color: var(--ink-2); }
.score a:hover { color: var(--ink); }
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; }
.review { margin: 0; background: var(--surface); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 18px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 12px 32px rgb(0 0 0 / 0.06); }
.review .stars { font-size: 18px; }
.review blockquote { margin: 0; font-size: 18px; line-height: 1.55; color: var(--ink); flex: 1; }
.review figcaption { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.review figcaption strong { display: block; }
.review figcaption small { color: var(--ink-2); font-size: 13px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--rose-soft); color: var(--rose-ink); display: grid; place-items: center; font-weight: 700; }

/* ---------- Bewertungsseite & Assistent ---------- */
.valuation { padding-top: clamp(40px, 6vw, 80px); }
.valuation-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 580px); gap: clamp(32px, 5vw, 80px); align-items: start; }
.valuation-intro { position: sticky; top: 112px; }
@media (max-width: 960px) { .valuation-grid { grid-template-columns: 1fr; } .valuation-intro { position: static; } }
.valuation h1 { font-size: clamp(34px, 5vw, 60px); max-width: 14ch; }
.valuation .panel { scroll-margin-top: 96px; padding: clamp(24px, 3.5vw, 40px); }

.wizard { --gap: 12px; }
.wizard .form { gap: 22px; }
.wizard .form .two { gap: var(--gap); }
.wizard-progress { height: 4px; border-radius: 4px; background: #f0eeeb; overflow: hidden; }
.wizard-progress span { display: block; height: 100%; width: 20%; background: var(--rose); border-radius: 4px; transition: width 500ms var(--ease-out); }
.wizard-step-label { font-size: 13px; margin: 12px 0 22px; font-variant-numeric: tabular-nums; }
.step { border: 0; margin: 0; padding: 0; min-width: 0; }
.step legend { font-size: clamp(22px, 2vw, 26px); font-weight: 600; letter-spacing: -0.02em; margin-bottom: 20px; padding: 0; }
/* Schrittwechsel: neuer Schritt gleitet weich herein */
.step.entering { opacity: 0; transform: translateX(calc(var(--dir, 1) * 18px)); filter: blur(4px); }
.step { transition: opacity 320ms var(--ease-out), transform 420ms var(--ease-out), filter 320ms var(--ease-out); }

.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap, 12px); grid-auto-rows: 1fr; }
@media (max-width: 480px) { .choices { grid-template-columns: 1fr; grid-auto-rows: auto; } }
.choice { position: relative; cursor: pointer; display: flex; height: 100%; -webkit-tap-highlight-color: transparent; }
.choice span { height: 100%; gap: 12px; }
.choice .ico { width: 22px; height: 22px; flex: none; color: var(--ink-2); transition: color 200ms ease, transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1); }
.choice em { font-style: normal; }
.choice input:checked + span .ico { color: var(--rose-ink); transform: scale(1.08); }
/* Objektart: große Kacheln, Icon oben */
.choices-lg { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choices-lg .choice span { flex-direction: column; align-items: flex-start; justify-content: space-between; min-height: 118px; padding: 18px 18px 16px; gap: 16px; }
.choices-lg .ico { width: 30px; height: 30px; }
.choices-lg .choice span i { top: 18px; margin-top: 0; }
@media (max-width: 640px) { .choices-lg { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { position: relative; flex: 1; display: flex; align-items: center; min-height: 58px; padding: 14px 48px 14px 18px; border-radius: 14px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgb(0 0 0 / 0.03); font-size: 16px; font-weight: 500; line-height: 1.35;
  transition: box-shadow 220ms ease, background-color 220ms ease, transform 160ms var(--ease-out); }
.choice span i { position: absolute; right: 16px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px #d2d0cc; transition: box-shadow 200ms ease, background-color 200ms ease; }
.choice span i::after { content: ""; position: absolute; left: 7.5px; top: 4px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0.4); opacity: 0; transition: transform 380ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 160ms ease; }
.choice:active span { transform: scale(0.97); }
.choice input:checked + span { background: var(--rose-soft); box-shadow: inset 0 0 0 2px var(--rose-ink), 0 6px 18px rgb(176 86 90 / 0.12); }
.choice input:checked + span i { background: var(--rose-ink); box-shadow: inset 0 0 0 1.5px var(--rose-ink); animation: pop-check 380ms cubic-bezier(0.34, 1.56, 0.64, 1); }
.choice input:checked + span i::after { opacity: 1; transform: rotate(45deg) scale(1); }
@keyframes pop-check { 0% { transform: scale(0.6); } 100% { transform: scale(1); } }
.choice input:focus-visible + span { outline: 2px solid var(--rose-ink); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .choice:hover input:not(:checked) + span { box-shadow: inset 0 0 0 1px #cfccc7, 0 4px 12px rgb(0 0 0 / 0.05); } }

.wizard .input { height: 54px; border-radius: 14px; font-size: 16px; background: var(--surface); }
.wizard .field label, .wizard .field .label { margin-bottom: 8px; }
.wizard-nav { display: flex; gap: 10px; margin-top: 30px; }
.wizard-nav .btn { height: 52px; }
.wizard-nav [data-next], .wizard-nav [data-submit] { margin-left: auto; min-width: 160px; }
.wizard-note { font-size: 13px; margin-top: 14px; text-align: center; }
.wizard .invalid { box-shadow: 0 0 0 4px rgb(176 86 90 / 0.15) !important; border-color: var(--rose-ink); animation: shake 360ms var(--ease-out); }
@keyframes shake { 0%, 100% { transform: none; } 25% { transform: translateX(-5px); } 50% { transform: translateX(4px); } 75% { transform: translateX(-2px); } }
.success .tick svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw 500ms 150ms var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .step, .step.entering { transition: opacity 200ms ease; transform: none; filter: none; }
  .choice input:checked + span i, .wizard .invalid { animation: none; }
}

/* ---------- Ratgeber-Beitrag ---------- */
.post-head { max-width: 820px; padding-top: clamp(40px, 6vw, 72px); }
.post-head h1 { font-size: clamp(32px, 4.6vw, 52px); }
.post-meta { margin-top: 16px; font-size: 15px; }
.post-hero { margin-top: 40px; border-radius: var(--radius); overflow: hidden; }
.post-hero img { width: 100%; max-height: 620px; object-fit: cover; }
.post-body { max-width: 720px; padding: 48px 0 24px; font-size: 19px; line-height: 1.7; }
.post-body img { border-radius: var(--radius-sm); }
.post-cta { padding-bottom: 96px; max-width: 980px; }

/* ---------- Verkaufsablauf als Scroll-Story ---------- */
.journey { background: #2b2e33; color: #f5f5f7; }
.journey-head { max-width: 720px; }
.journey-head .eyebrow { color: var(--rose); }
.journey-head h2 { color: #fff; }
.journey-head .lead { color: #b9bcc2; margin-top: 20px; }
.journey-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); margin-top: clamp(48px, 6vw, 80px); }
.journey-media { position: relative; }
.journey-frame { position: sticky; top: calc(50vh - min(32vw, 300px)); aspect-ratio: 4 / 5; max-height: 640px; border-radius: var(--radius); overflow: hidden; background: #363a40; }
.journey-img { position: absolute; inset: 0; opacity: 0; transform: scale(1.04); transition: opacity 700ms ease, transform 1200ms var(--ease-out); }
.journey-img.is-active { opacity: 1; transform: none; }
.journey-img img { width: 100%; height: 100%; object-fit: cover; }
.journey-count { position: absolute; left: 20px; bottom: 20px; padding: 6px 14px; border-radius: 999px; font-size: 14px; color: #fff;
  background: rgb(0 0 0 / 0.4); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-variant-numeric: tabular-nums; }
.journey-count b { color: var(--rose); }
.journey-steps { list-style: none; margin: 0; padding: 0 0 0 28px; position: relative; }
.journey-steps::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; background: #474b52; border-radius: 2px; }
.journey-steps::after { content: ""; position: absolute; left: 0; top: 8px; width: 2px; height: var(--progress, 0%); background: var(--rose); border-radius: 2px; transition: height 400ms var(--ease-out); }
.journey-step { padding: clamp(36px, 9vh, 96px) 0; opacity: 0.35; transition: opacity 400ms ease; position: relative; }
.journey-step:first-child { padding-top: 0; }
.journey-step.is-active { opacity: 1; }
.journey-step::before { content: ""; position: absolute; left: -33px; top: calc(clamp(36px, 9vh, 96px) + 6px); width: 12px; height: 12px; border-radius: 50%;
  background: #2b2e33; box-shadow: 0 0 0 2px #454950; transition: background-color 300ms ease, box-shadow 300ms ease; }
.journey-step:first-child::before { top: 6px; }
.journey-step.is-active::before { background: var(--rose); box-shadow: 0 0 0 2px var(--rose), 0 0 0 7px rgb(245 165 166 / 0.18); }
.journey-no { font-size: 14px; font-weight: 600; color: var(--rose); font-variant-numeric: tabular-nums; }
.journey-step h3 { font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -0.02em; margin: 8px 0 12px; color: #fff; }
.journey-step p { color: #b9bcc2; font-size: 18px; line-height: 1.6; max-width: 46ch; }
.journey-step-img { display: none; }
.journey-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(40px, 6vw, 72px); }
@media (max-width: 860px) {
  .journey-grid { grid-template-columns: 1fr; }
  .journey-media { display: none; }
  .journey-steps { padding-left: 0; }
  .journey-steps::before, .journey-steps::after, .journey-step::before { display: none; }
  .journey-step { opacity: 1; padding: 0 0 48px; }
  .journey-step-img { display: block; aspect-ratio: 16 / 10; border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 18px; background: #363a40; }
  .journey-step-img img { width: 100%; height: 100%; object-fit: cover; }
}
@media (prefers-reduced-motion: reduce) { .journey-img { transform: none; transition: opacity 300ms ease; } }

/* ---------- Vertrauensleiste: DEKRA + Portale ---------- */
.trust { margin-top: clamp(40px, 6vw, 64px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px;
  padding: 22px 28px; border-radius: var(--radius); background: var(--surface); box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 10px 30px rgb(0 0 0 / 0.05); }
.trust-cert { display: flex; align-items: center; gap: 14px; }
.trust-cert .ico { width: 40px; height: 40px; color: var(--rose-ink); padding: 8px; border-radius: 12px; background: var(--rose-soft); box-sizing: content-box; }
.trust-cert img { height: 48px; width: auto; }
.trust-cert strong { display: block; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.trust-cert small { display: block; font-size: 13px; color: var(--ink-2); }
.trust-portals { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; }
.trust-label { font-size: 13px; font-weight: 600; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.08em; }
.trust-portal { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; color: #454950; }
.trust-portal img { height: 24px; width: auto; display: block; }

.trust-compact { margin-top: 28px; padding: 18px 20px; flex-direction: column; align-items: flex-start; gap: 16px; }
.trust-compact .trust-portals { gap: 8px 20px; }
.trust-compact .trust-portal { font-size: 16px; }
@media (max-width: 760px) { .trust { flex-direction: column; align-items: flex-start; } }

.trust-portal img[src*="immoscout24"] { height: 38px; }

/* Eine ruhige Vertrauensleiste unter dem Hero */
.facts-section { padding: clamp(32px, 4vw, 48px) 0 0; }
.facts-section .trust { margin-top: 0; }
.trust-press { padding-left: 28px; border-left: 1px solid var(--line); }
.trust-press img { height: 24px; }
@media (max-width: 1100px) { .trust-press { padding-left: 0; border-left: 0; } }

@media (min-width: 1100px) { .facts-section .trust { flex-wrap: nowrap; gap: 28px; } .facts-section .trust-portals { flex-wrap: nowrap; gap: 22px; } .facts-section .trust-cert small { max-width: 26ch; } }
.trust-label { white-space: nowrap; }

.trust-cert img[src*="dekra"] { height: 30px; width: auto; }
.trust-cert:has(img) small { font-size: 13px; line-height: 1.35; max-width: 22ch; padding-left: 14px; border-left: 1px solid var(--line); }
.footer-logo img[src*="dekra"] { height: 26px; }

/* ---------- KI-Rundgang Video ---------- */
.tour > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tour-video { position: relative; margin: 8px 0 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: #2c2f34; }
.tour-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.tour-video figcaption { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 500; color: #fff; background: rgb(0 0 0 / 0.4); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 0 4px rgb(245 165 166 / 0.25); }
.tour-toggle { position: absolute; right: 16px; bottom: 16px; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgb(0 0 0 / 0.4); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: transform 160ms var(--ease-out); }
.tour-toggle:active { transform: scale(0.92); }
.tour-toggle::before, .tour-toggle::after { content: ""; position: absolute; top: 13px; width: 4px; height: 14px; background: #fff; border-radius: 1px; }
.tour-toggle::before { left: 14px; } .tour-toggle::after { right: 14px; }
.tour-toggle.paused::before { left: 16px; width: 0; height: 0; background: none; border-left: 12px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.tour-toggle.paused::after { display: none; }
@media (max-width: 760px) { .tour-video { aspect-ratio: 4 / 3; border-radius: var(--radius-sm); } }

/* ---------- Hero aufgeräumt: ein Haupt-Button, Rest dezent ---------- */
.hero-inner { grid-template-columns: minmax(0, 1fr); }
.hero-link { display: inline-flex; align-items: center; gap: 6px; height: 48px; padding: 0 8px; color: #fff; font-weight: 500;
  text-decoration: underline; text-decoration-color: rgb(255 255 255 / 0.4); text-underline-offset: 5px; transition: text-decoration-color 200ms ease; }
.hero-link span { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .hero-link:hover { text-decoration-color: #fff; } .hero-link:hover span { transform: translateX(3px); } }
.hero-rating { background: none; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; padding: 0; margin-top: 20px; }
.kicker-short { display: none; }
@media (max-width: 640px) {
  .hero-content { padding-top: 96px; padding-bottom: 40px; }
  .hero-kicker { font-size: 13px; padding: 5px 12px 5px 5px; margin-bottom: 18px; white-space: nowrap; }
  .hero-kicker img { width: 24px; height: 24px; }
  .kicker-long { display: none; } .kicker-short { display: inline; }
  .hero h1 { font-size: clamp(40px, 12vw, 52px); }
  .hero .lead { font-size: 17px; margin-top: 16px; }
  .hero .actions { margin-top: 24px; flex-direction: column; align-items: stretch; gap: 4px; }
  .hero .actions .btn { width: 100%; }
  .hero-link { justify-content: center; }
  .hero-rating { margin-top: 14px; font-size: 14px; justify-content: center; width: 100%; }
}
@media (max-width: 640px) { .hero .actions .btn { flex: none; height: 52px; } }

/* ---------- Ihre Maklerin: Video-Rahmen / Platzhalter ---------- */
#ueber .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
#ueber .video { aspect-ratio: 16 / 11; max-height: 560px; }
#ueber .video img { object-position: 50% 25%; }
.video-placeholder::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(20 16 14 / 0.6), rgb(20 16 14 / 0.05) 55%); }
.video-placeholder .play { z-index: 1; opacity: 0.95; }
.video-soon { position: absolute; z-index: 1; left: 22px; bottom: 20px; color: #fff; font-size: 14px; line-height: 1.4; }
.video-soon b { display: block; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
@media (max-width: 860px) { #ueber .split { grid-template-columns: 1fr; } #ueber .video { aspect-ratio: 4 / 3; } }

/* ---------- Referenzen ---------- */
.references { padding-top: clamp(80px, 10vw, 128px); }
.card-sold .card-img img { filter: saturate(0.85); }
.stamp { position: absolute; right: 16px; top: 16px; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: #fff; background: var(--ink); box-shadow: 0 6px 18px rgb(0 0 0 / 0.18); transform: rotate(-4deg); }
.stamp-inline { position: static; display: inline-block; transform: none; }
.badge.sold { background: var(--ink); color: #fff; }
.ref-cta { margin-top: 28px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 26px 28px;
  border-radius: var(--radius); background: var(--rose-soft); }
.ref-cta p { max-width: 60ch; }
.panel-sold p { color: var(--ink-2); font-size: 15px; }

/* ---------- Mobil: Vertrauensleiste in drei ruhigen Zeilen ---------- */
@media (max-width: 760px) {
  .trust, .facts-section .trust { flex-direction: column; align-items: stretch; gap: 0; padding: 4px 20px; }
  .trust > * { padding: 16px 0; }
  .trust > * + * { border-top: 1px solid var(--line); }
  .trust-cert { gap: 14px; }
  .trust-cert img[src*="dekra"] { height: 26px; flex: none; }
  .trust-cert:has(img) small { max-width: none; font-size: 13px; }
  .trust-portals, .facts-section .trust-portals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; justify-items: center; gap: 14px 10px; }
  .trust-label { grid-column: 1 / -1; justify-self: start; font-size: 12px; }
  .trust-portal img { height: 22px; max-width: 100%; }
  .trust-portal img[src*="immoscout24"] { height: 32px; }
  .trust-press { padding-left: 0; border-left: 0; grid-template-columns: auto 1fr; justify-items: start; }
  .trust-press .trust-label { grid-column: auto; align-self: center; }
  .trust-press img { height: 22px; }
}

/* ---------- Mobil: Stapelkarten (Verkaufsablauf, Team) ---------- */
@media (max-width: 860px) {
  [data-stack] > * { position: sticky; top: calc(84px + var(--k, 0) * 12px); transform-origin: 50% 0; will-change: transform; }
  .journey-steps[data-stack] { display: grid; gap: 20px; }
  .journey-step { background: #363a40; border-radius: 22px; padding: 14px 14px 22px !important; box-shadow: 0 -8px 30px rgb(0 0 0 / 0.28); }
  .journey-step .journey-step-img { margin: 0 0 16px; border-radius: 14px; }
  .journey-step h3, .journey-step p, .journey-no { padding: 0 6px; }
  .journey-step h3 { font-size: 24px; }
  .journey-step p { font-size: 16px; }
  .journey-steps[data-stack]::after, .journey-steps[data-stack]::before { display: none; }
  .team[data-stack] { display: grid; grid-template-columns: 1fr; gap: 20px; }
  .team[data-stack] .member { background: var(--surface); border-radius: 22px; padding: 12px 12px 22px; box-shadow: 0 -6px 28px rgb(0 0 0 / 0.08), 0 1px 2px rgb(0 0 0 / 0.04); }
  .team[data-stack] .member-img { aspect-ratio: 4 / 3; border-radius: 14px; }
  .team[data-stack] .member-img img { object-position: 50% 25%; }
  .team[data-stack] .member h3, .team[data-stack] .member p { padding: 0 8px; }
  .team[data-stack] .member h3 { margin-top: 16px; }
}
@media (prefers-reduced-motion: reduce) { [data-stack] > * { transform: none !important; filter: none !important; } }
@media (max-width: 860px) { [data-stack] > .reveal, [data-stack] > * { transition: opacity 450ms ease !important; } }

/* Referenz-Karten sind keine Links */
.card-sold { cursor: default; }
.card-sold:active { transform: none; }
@media (hover: hover) and (pointer: fine) { .card-sold:hover { box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 8px 24px rgb(0 0 0 / 0.04); } .card-sold:hover .card-img img { transform: none; } }
