@font-face {
  font-display: swap;
  font-family: "Nexa";
  font-style: normal;
  font-weight: 400;
  src: url("/assets/fonts/nexa-book-subset.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Nexa";
  font-style: normal;
  font-weight: 800;
  src: url("/assets/fonts/nexa-heavy-heading-subset.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --ink: #0b0b0a;
  --muted: #666666;
  --line: #dedede;
  --paper: #ffffff;
  --panel: #ffffff;
  --night: #0b0b0a;
  --gold: #9f7d2d;
  --gold-soft: #b39136;
  --gold-pale: #eee2bd;
  --shadow: 0 12px 34px rgba(11, 11, 10, .08);
}

* { box-sizing: border-box; }
html, body { overflow-x: hidden; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Nexa", ui-sans-serif, system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.5;
}

a { color: inherit; overflow-wrap: anywhere; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 18px clamp(18px, 5vw, 70px);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  color: var(--ink);
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  font-weight: 800;
  text-decoration: none;
}

.brand-city { color: var(--gold); }

.site-header nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.site-header a,
.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-header nav a {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: clamp(28px, 6vw, 82px);
  align-items: end;
  min-height: 58vh;
  padding: clamp(54px, 8vw, 104px) clamp(18px, 5vw, 70px) clamp(42px, 6vw, 74px);
  color: var(--ink);
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.hero-copy,
.property-copy {
  min-width: 0;
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero .eyebrow { color: var(--gold); }

h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 18px;
  font-size: clamp(3.05rem, 7.5vw, 7.2rem);
  line-height: .96;
  overflow-wrap: anywhere;
}
h2 {
  margin-bottom: 12px;
  font-size: clamp(2.15rem, 4.6vw, 4.2rem);
  line-height: 1;
  overflow-wrap: anywhere;
}
h3 {
  margin-bottom: 10px;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.16;
}

.lead {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.42rem);
}

.quick-search,
.trust-panel,
.request-section,
.listing-card,
.topic-grid article,
.district-grid article,
.partner-card {
  border-radius: 8px;
}

.quick-search {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
  max-width: 820px;
  margin-top: 28px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
}

label {
  display: grid;
  gap: 7px;
  min-width: 0;
  font-weight: 800;
}

input, select, textarea {
  width: 100%;
  max-width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 2px solid var(--night);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

textarea { resize: vertical; }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--night);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: #fff;
  background: var(--night);
}

.trust-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--night);
  background: #fff;
}

.trust-panel p { margin: 0; color: var(--muted); }

.section-head,
.listing-grid,
.info-band,
.topic-grid,
.partner-grid,
.request-section,
.site-footer,
.legal-main,
.property-layout,
.property-note {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(280px, .7fr);
  gap: 28px;
  align-items: end;
  padding: clamp(54px, 8vw, 90px) 0 28px;
}

.section-head > p,
.topic-grid p,
.district-grid p,
.property-main p,
.request-section > div > p,
.legal-main p,
.legal-main li {
  color: var(--muted);
}

.listing-grid {
  display: grid;
  gap: 24px;
  padding-bottom: clamp(58px, 8vw, 92px);
}

.listing-card {
  display: grid;
  grid-template-columns: minmax(160px, 230px) minmax(0, 1fr);
  align-items: start;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.listing-card img {
  width: 100%;
  height: 230px;
  min-height: 0;
  object-fit: cover;
}

.listing-card > div {
  min-width: 0;
  padding: clamp(22px, 4vw, 42px);
}

.meta {
  color: var(--muted);
  font-weight: 800;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 22px;
}

.facts div {
  min-width: 0;
  min-height: 82px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.facts dt {
  color: var(--muted);
  font-size: .8rem;
}

.facts dd {
  margin: 5px 0 0;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0 0 22px;
  list-style: none;
}

.tags li {
  padding: 6px 10px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--night);
  background: var(--gold-pale);
  font-weight: 800;
}

.text-link {
  color: var(--night);
  font-weight: 800;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.info-band {
  padding: clamp(34px, 5vw, 54px);
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.info-band .eyebrow { color: var(--gold); }

.district-grid,
.topic-grid,
.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.district-grid article,
.topic-grid article,
.partner-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--night);
  background: var(--panel);
}

.info-band .district-grid article {
  border-color: var(--line);
  background: #fff;
}

.info-band p { color: var(--muted); }

.topic-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-bottom: clamp(58px, 8vw, 92px);
}

.partner-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-bottom: clamp(58px, 8vw, 92px);
}

.partner-card.is-placeholder {
  border-color: var(--line);
  color: var(--muted);
  background: #fafafa;
}

.request-section {
  display: grid;
  grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
  gap: 28px;
  padding: clamp(34px, 5vw, 54px);
  margin-bottom: clamp(58px, 8vw, 92px);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.request-form {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.checkbox-label {
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  color: var(--muted);
  font-weight: 400;
  overflow-wrap: anywhere;
}

.checkbox-label input {
  min-height: 22px;
  margin-top: 3px;
}

.honeypot {
  position: absolute;
  left: -100vw;
}

.form-status { margin: 0; color: var(--muted); }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-block: 26px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.legal-main {
  padding: clamp(44px, 7vw, 80px) 0;
}

.legal-main article { max-width: 860px; }
.legal-main h1 { color: var(--night); font-size: clamp(3rem, 6vw, 5.4rem); }
.legal-main h2 { margin-top: 34px; font-size: 1.55rem; }

.property-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
  padding: clamp(46px, 8vw, 96px) clamp(18px, 5vw, 70px);
  color: #fff;
  background:
    linear-gradient(115deg, rgba(11, 11, 10, .86), rgba(11, 11, 10, .58)),
    url("/assets/objects/4-zimmer-wohnung.jpg") center / cover;
}

.property-hero.house {
  background:
    linear-gradient(115deg, rgba(11, 11, 10, .86), rgba(11, 11, 10, .58)),
    url("/assets/objects/einfamilienhaus.jpg") center / cover;
}

.property-hero .eyebrow { color: var(--gold); }
.property-hero img {
  width: 100%;
  max-height: 340px;
  border: 8px solid rgba(255,255,255,.84);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 22px 70px rgba(0,0,0,.22);
}

.property-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: clamp(24px, 5vw, 56px);
  padding: clamp(48px, 7vw, 86px) 0 36px;
}

.property-main { max-width: 760px; }
.property-main h2:not(:first-of-type) { margin-top: 38px; }
.facts.stacked { grid-template-columns: 1fr; }
.property-note {
  margin-bottom: clamp(54px, 7vw, 88px);
  padding: 18px 22px;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: #fff8e3;
  color: var(--muted);
}

@media (max-width: 980px) {
  .quick-search,
  .request-section,
  .district-grid,
  .topic-grid,
  .partner-grid {
    grid-template-columns: 1fr;
  }

  .request-form { margin-top: 24px; }
}

@media (max-width: 820px) {
  .site-header,
  .site-footer,
  .section-head,
  .listing-card,
  .property-hero,
  .property-layout {
    display: block;
  }

  .site-header {
    position: static;
    padding-block: 12px;
  }

  .site-header nav,
  .site-footer nav {
    margin-top: 14px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 48px;
  }

  .trust-panel,
  .listing-card img,
  .property-hero img {
    margin-top: 24px;
  }

  .listing-card img {
    height: 220px;
  }

  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .hero,
  .property-hero {
    padding-inline: 16px;
  }

  .section-head,
  .listing-grid,
  .info-band,
  .topic-grid,
  .partner-grid,
  .request-section,
  .site-footer,
  .legal-main,
  .property-layout,
  .property-note {
    width: calc(100% - 32px);
  }

  .request-section,
  .info-band {
    padding: 22px 16px;
  }

  h1 { font-size: clamp(2.15rem, 12vw, 3rem); }
  h2 { font-size: clamp(1.85rem, 8vw, 2.4rem); }
  .button { width: 100%; }
  .form-grid,
  .facts { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
  body { font-size: 16px; }
  .site-header nav a,
  .site-footer nav a { font-size: .88rem; }
  h1 { font-size: 2.2rem; }
}
