/* Mustermann Immobilien – Demo von JLPStudios
   Leitidee: Verkaufsschild + Grundriss. Signalgelb und Anthrazit, Archivo in zwei Breiten. */

:root {
  --sign: #F5C518;        /* Schild-Gelb */
  --sign-deep: #E0AE00;   /* Gelb, gedrückt */
  --ink: #24272C;         /* Anthrazit */
  --ink-soft: #3A3E45;
  --line: #6B717A;        /* Linien-Grau, AA auf Weiß */
  --concrete: #E9EBEE;    /* kühles Betongrau */
  --paper: #FFFFFF;
  --error: #B3261E;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wide: 125%;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 3px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.08; font-stretch: var(--wide); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Fokus: dicker Anthrazit-Rahmen, auf dunklem Grund gelb */
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.valuation :focus-visible, .site-footer :focus-visible, .search :focus-visible, .demo-bar :focus-visible { outline-color: var(--sign); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--sign); padding: 10px 16px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 22px;
  font: inherit; font-weight: 700; font-size: 1rem; font-stretch: 112%;
  border: 2px solid transparent; border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--ink-soft); }
.btn-sign { background: var(--sign); color: var(--ink); }
.btn-sign:hover { background: var(--sign-deep); }

/* Demo-Hinweis */
.demo-bar {
  background: var(--concrete); color: var(--ink);
  font-size: .875rem; text-align: center; padding: 8px var(--gutter);
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 2px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--ink); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; font-weight: 800; font-stretch: var(--wide); font-size: 1.125rem; letter-spacing: -0.01em; }
.brand-text span { font-weight: 500; font-stretch: 100%; font-size: .8125rem; letter-spacing: 0; margin-top: 4px; color: var(--line); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; gap: 4px; }
.nav ul a {
  display: block; padding: 10px 12px; text-decoration: none; font-weight: 600; font-size: .975rem;
  border-bottom: 3px solid transparent;
}
.nav ul a:hover { border-bottom-color: var(--sign); }
.nav-cta { min-height: 44px; font-size: .9375rem; }

.nav-toggle {
  display: none; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 14px;
  background: var(--sign); color: var(--ink); border: 0; border-radius: var(--radius);
  font: inherit; font-weight: 700; cursor: pointer;
}
.nav-toggle-lines, .nav-toggle-lines::before, .nav-toggle-lines::after {
  display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .2s, background-color .2s;
}
.nav-toggle-lines::before, .nav-toggle-lines::after { content: ""; position: absolute; left: 0; }
.nav-toggle-lines::before { top: -6px; }
.nav-toggle-lines::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; left: 0; right: 0; top: var(--header-bottom, 108px); bottom: 0;
    flex-direction: column; align-items: stretch; gap: 24px;
    background: var(--sign); padding: 24px var(--gutter) 40px;
    overflow-y: auto; visibility: hidden; opacity: 0;
    transition: opacity .2s, visibility 0s .2s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transition: opacity .2s; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a {
    font-size: 1.75rem; font-weight: 800; font-stretch: var(--wide);
    padding: 14px 0; border-bottom: 2px solid var(--ink);
  }
  .nav ul a:hover { border-bottom-color: var(--ink); background: var(--sign-deep); }
  .nav-cta { align-self: flex-start; }
}

/* HERO – das Schild */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--sign); color: var(--ink);
  padding: clamp(48px, 7vw, 96px) 0 0;
}
.hero-plan {
  position: absolute; z-index: -1;
  right: max(var(--gutter, 24px), calc((100vw - var(--wrap)) / 2 - 40px));
  top: 28px; width: min(620px, 44vw); height: auto;
  color: var(--ink);
}
.plan-walls { opacity: .9; }
.plan-detail { opacity: .7; }
.plan-text { font-family: var(--font); font-size: 15px; font-weight: 700; }
.plan-text .small { font-weight: 500; font-size: 13px; }

.hero-inner { padding-bottom: clamp(40px, 5vw, 64px); }
.hero-place { font-weight: 600; font-size: 1rem; margin-bottom: 20px; }
.hero-inner > * { max-width: min(620px, 100%); }
.hero h1 {
  font-size: clamp(2.25rem, 4.6vw, 4.25rem);
  font-weight: 850; line-height: 1.02; letter-spacing: -0.02em;
}
.hero-lead { max-width: 44ch; margin-top: 24px; font-size: 1.1875rem; line-height: 1.55; }

/* Suchleiste – das Werkzeug */
.search {
  position: relative;
  display: grid;
  grid-template-columns: auto auto 1fr 1fr auto;
  align-items: end; gap: 16px 20px;
  background: var(--ink); color: var(--paper);
  padding: 24px 28px 28px;
  border-radius: var(--radius) var(--radius) 0 0;
}
.search-title { font-size: 1.125rem; align-self: center; white-space: nowrap; color: var(--sign); }
.search-mode { display: flex; border: 0; padding: 0; margin: 0; background: var(--ink-soft); border-radius: var(--radius); padding: 4px; }
.search-mode label { position: relative; }
.search-mode input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.search-mode span {
  display: flex; align-items: center; min-height: 44px; padding: 0 18px;
  font-weight: 700; border-radius: 2px; color: #D5D8DC; cursor: pointer;
}
.search-mode input:checked + span { background: var(--paper); color: var(--ink); }
.search-mode input:focus-visible + span { outline: 3px solid var(--sign); outline-offset: 2px; }
.search-field { display: grid; gap: 6px; min-width: 0; }
.search-field > span { font-size: .875rem; color: #C9CDD2; font-weight: 500; }
select, input { font: inherit; color: var(--ink); }
.search select {
  min-height: 52px; width: 100%;
  padding: 0 40px 0 14px; border: 0; border-radius: var(--radius);
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2324272C' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center;
  appearance: none; font-weight: 600;
}
.search-submit { min-height: 52px; padding: 0 28px; }

@media (max-width: 1080px) {
  .search { grid-template-columns: 1fr 1fr; }
  .search-title, .search-mode { grid-column: span 1; }
  .search-mode { justify-self: end; }
  .search-submit { grid-column: 1 / -1; }
}
@media (max-width: 1100px) and (min-width: 761px) {
  .hero-plan { opacity: .3; }
}
@media (max-width: 760px) {
  .hero-plan { width: 560px; right: -260px; top: 8px; opacity: .2; }
  .hero-plan .plan-text { display: none; }
}
@media (max-width: 560px) {
  .search { grid-template-columns: 1fr; padding: 20px 18px 22px; margin-inline: calc(var(--gutter) * -1); border-radius: 0; }
  .search-mode { justify-self: stretch; }
  .search-mode label { flex: 1; }
  .search-mode span { justify-content: center; }
  .search-submit { grid-column: auto; }
}

/* Sections allgemein */
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section-lead { max-width: 56ch; margin-top: 16px; font-size: 1.125rem; color: var(--ink-soft); }

/* OBJEKTE – Exposé-Blätter */
.listings { padding-top: clamp(48px, 6vw, 80px); }
.listings-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.filter-status { margin-top: 8px; color: var(--line); font-weight: 500; }
.filter { display: inline-flex; border: 2px solid var(--ink); border-radius: var(--radius); }
.filter-btn {
  min-height: 44px; padding: 0 20px; border: 0; background: transparent; cursor: pointer;
  font: inherit; font-weight: 700; color: var(--ink);
}
.filter-btn + .filter-btn { border-left: 2px solid var(--ink); }
.filter-btn:hover { background: var(--concrete); }
.filter-btn[aria-pressed="true"] { background: var(--ink); color: var(--sign); }

.estate-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
@media (max-width: 1000px) { .estate-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .estate-grid { grid-template-columns: 1fr; } }
.estate[hidden] { display: none; }
.estate article { display: flex; flex-direction: column; height: 100%; border-top: 4px solid var(--ink); }
.estate-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--concrete); }
.estate-media img { width: 100%; height: 100%; object-fit: cover; }
.estate-sign {
  position: absolute; left: 0; top: 0;
  background: var(--sign); color: var(--ink);
  font-weight: 800; font-stretch: var(--wide); font-size: .9375rem;
  padding: 8px 14px 9px; border-bottom-right-radius: var(--radius);
}
.estate-body { display: flex; flex-direction: column; gap: 18px; padding-top: 18px; flex: 1; }
.estate-title { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.estate-title h3 { font-size: 1.1875rem; }
.estate-place { margin-top: 6px; color: var(--line); font-size: .975rem; }
.estate-plan { flex: none; width: 60px; height: 45px; color: var(--ink); opacity: .75; }
.estate-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-top: 1px solid #C4C8CE; border-bottom: 1px solid #C4C8CE; }
.estate-facts div { padding: 10px 0; }
.estate-facts div + div { padding-left: 12px; border-left: 1px solid #C4C8CE; }
.estate-facts dt { font-size: .8125rem; color: var(--line); }
.estate-facts dd { margin: 2px 0 0; font-weight: 700; font-size: 1.0625rem; }
.estate-price { margin-top: auto; font-weight: 800; font-stretch: var(--wide); font-size: 1.375rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.estate-price .price-label { font-stretch: 100%; font-weight: 500; font-size: .875rem; color: var(--line); width: 100%; }
.estate-price small { font-stretch: 100%; font-weight: 500; font-size: .875rem; color: var(--line); }
.estate.is-entering { animation: estate-in .35s ease-out; }
@keyframes estate-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.empty-note { margin-top: 24px; padding: 20px 24px; background: var(--concrete); font-weight: 500; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; cursor: pointer; }

/* LEISTUNGEN */
.services { background: var(--concrete); }
.services-head { margin-bottom: 48px; }
.services-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.service { padding: 32px 32px 8px 0; }
.service + .service { padding-left: 32px; border-left: 1px solid #B9BEC5; }
.service-icon { width: 56px; height: 56px; margin-bottom: 20px; color: var(--ink); }
.service h3 { font-size: 1.5rem; margin-bottom: 12px; }
.service p { color: var(--ink-soft); }
.service ul { margin-top: 20px; }
.service li { padding: 10px 0 10px 22px; border-top: 1px solid #C9CDD3; position: relative; font-weight: 500; }
.service li::before { content: ""; position: absolute; left: 0; top: 19px; width: 10px; height: 10px; background: var(--sign); box-shadow: inset 0 0 0 2px var(--ink); }
@media (max-width: 860px) {
  .services-list { grid-template-columns: 1fr; }
  .service, .service + .service { padding: 32px 0 24px; border-left: 0; }
  .service + .service { border-top: 1px solid #B9BEC5; }
}

/* ABLAUF – Bemaßungslinie */
.steps {
  position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px;
  margin-top: 56px; padding-top: 44px;
}
.steps::before { /* Maßlinie */
  content: ""; position: absolute; left: 0; right: 0; top: 18px; height: 2px; background: var(--ink);
}
.steps li { position: relative; }
.steps li::before { /* Maßstrich */
  content: ""; position: absolute; left: 0; top: -36px; width: 2px; height: 22px; background: var(--ink);
}
.steps li:last-child::after { content: ""; position: absolute; right: 0; top: -36px; width: 2px; height: 22px; background: var(--ink); }
.step-no {
  position: absolute; left: 14px; top: -45px;
  display: grid; place-items: center; width: 36px; height: 36px;
  background: var(--sign); color: var(--ink); border: 2px solid var(--ink); border-radius: 50%;
  font-weight: 800; font-stretch: var(--wide);
}
.steps h3 { margin-top: 8px; font-size: 1.25rem; }
.steps p { margin-top: 10px; color: var(--ink-soft); }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 36px; padding-top: 0; padding-left: 56px; }
  .steps::before { left: 17px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .steps li::before, .steps li:last-child::after { display: none; }
  .step-no { left: -56px; top: 0; }
  .steps h3 { margin-top: 4px; }
}

/* BEWERTUNG */
.valuation { background: var(--ink); color: var(--paper); }
.valuation-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.valuation h2 { color: var(--sign); }
.valuation-copy > p { margin-top: 20px; max-width: 46ch; color: #D5D8DC; font-size: 1.125rem; }
.valuation-points { margin-top: 28px; }
.valuation-points li { padding: 12px 0; border-top: 1px solid #4A4F57; font-weight: 600; }
.valuation-points li:last-child { border-bottom: 1px solid #4A4F57; }
.valuation-photo { margin: 32px 0 0; aspect-ratio: 3 / 2; overflow: hidden; }
.valuation-photo img { width: 100%; height: 100%; object-fit: cover; }

.valuation-form {
  display: grid; gap: 18px;
  background: var(--paper); color: var(--ink);
  padding: clamp(24px, 3.5vw, 40px);
  border-top: 8px solid var(--sign);
}
.form-demo-hint { font-size: .9375rem; background: var(--concrete); padding: 10px 14px; font-weight: 500; }
.form-row { display: grid; gap: 18px; }
.form-row.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .form-row.two { grid-template-columns: 1fr; } }
.input { display: grid; gap: 6px; }
.input > span { font-weight: 600; font-size: .9375rem; }
.input small { font-weight: 400; color: var(--line); }
.input input, .input select {
  min-height: 50px; width: 100%; padding: 0 14px;
  border: 2px solid #9CA2AA; border-radius: var(--radius); background: var(--paper);
}
.input select {
  appearance: none; padding-right: 40px;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2324272C' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center;
}
.input input:hover, .input select:hover { border-color: var(--ink); }
.input input:focus-visible, .input select:focus-visible { outline: 3px solid var(--sign); outline-offset: 0; border-color: var(--ink); }
.input input::placeholder { color: #80868F; }
[aria-invalid="true"] { border-color: var(--error) !important; box-shadow: 0 0 0 1px var(--error); }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: .9375rem; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--ink); }
.check input:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.valuation-form .btn { justify-self: start; min-height: 52px; }
.form-error { color: var(--error); font-weight: 600; }
.form-success { background: var(--sign); padding: 18px 20px; }
.form-success:focus-visible { outline: 3px solid var(--ink); }
.form-success p { margin-top: 6px; }
@media (max-width: 900px) { .valuation-grid { grid-template-columns: 1fr; } .valuation-photo { display: none; } }

/* TEAM */
.team-head { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 48px; align-items: end; margin-bottom: 44px; }
.team-head h2 { grid-row: span 2; max-width: 16ch; }
.team-head p { color: var(--ink-soft); max-width: 52ch; }
.team-note { font-size: .875rem; color: var(--line) !important; }
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.person { position: relative; }
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.person-plate {
  position: relative; margin: -36px 16px 0 0;
  background: var(--paper); border-left: 6px solid var(--sign);
  padding: 14px 16px 0;
}
.person h3 { font-size: 1.1875rem; }
.person p { color: var(--line); margin-top: 4px; }
@media (max-width: 860px) {
  .team-head { grid-template-columns: 1fr; }
  .team-head h2 { grid-row: auto; }
  .people { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) { .people { grid-template-columns: 1fr; } .person img { aspect-ratio: 1 / 1; } }

/* KONTAKT – zweites Schild */
.contact { background: var(--sign); padding: clamp(56px, 7vw, 96px) 0; }
.contact-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: end; }
.contact h2 { max-width: 16ch; }
.contact-phone {
  font-weight: 900; font-stretch: var(--wide); letter-spacing: -0.02em;
  font-size: clamp(2.25rem, 6vw, 5rem); line-height: 1; text-decoration: none; white-space: nowrap;
  border-bottom: 6px solid var(--ink); padding-bottom: 6px; justify-self: start;
}
.contact-phone:hover { border-bottom-color: transparent; }
.contact-list { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 24px 0 0; border-top: 2px solid var(--ink); }
.contact-list div { padding: 18px 24px 0 0; }
.contact-list div + div { padding-left: 24px; border-left: 2px solid var(--ink); }
.contact-list dt { font-size: .875rem; font-weight: 600; }
.contact-list dd { margin: 6px 0 0; font-weight: 700; font-size: 1.125rem; }
.contact-list a { text-underline-offset: 3px; }
@media (max-width: 760px) {
  .contact-inner { grid-template-columns: 1fr; }
  .contact-list { grid-template-columns: 1fr; }
  .contact-list div, .contact-list div + div { padding: 16px 0; border-left: 0; }
  .contact-list div + div { border-top: 1px solid var(--ink); }
}

/* FOOTER */
.site-footer { background: var(--ink); color: #D5D8DC; padding: 40px 0; font-size: .9375rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.footer-brand .brand-text { color: var(--paper); }
.footer-brand .brand-text span { color: #AEB3BA; }
.footer-brand p { margin-top: 10px; }
.footer-links { display: flex; gap: 8px 24px; }
.footer-links a { color: var(--paper); text-underline-offset: 3px; display: inline-block; padding: 8px 0; }
.footer-links a:hover { color: var(--sign); }
.footer-demo { color: #AEB3BA; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 80;
  max-width: calc(100% - 32px); width: max-content;
  background: var(--ink); color: var(--paper); border-left: 6px solid var(--sign);
  padding: 14px 18px; font-weight: 500;
}

/* Ein einziger Lade-Moment: der Grundriss zeichnet sich */
@media (prefers-reduced-motion: no-preference) {
  .hero-plan path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s cubic-bezier(.6,.1,.2,1) forwards; }
  .hero-plan .plan-detail path { animation-delay: .7s; animation-duration: 1.1s; }
  .hero-plan .plan-text { opacity: 0; animation: fade .6s 1.5s forwards; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
