/* Maurer Immobilien Ulm — styles
   Palette taken from the original site and logo. */

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #000000;          /* logo block */
  --charcoal: #2e2e2e;     /* headings, body text */
  --stone: #5c5c5c;        /* secondary text (AA on white and mist) */
  --slate: #bcc5cb;        /* her blue-grey */
  --mist: #f0f2f4;         /* her page background */
  --paper: #ffffff;
  --line: #d9dee2;
  --link: #2f4a5c;         /* deep blue-grey for links, from --slate */
  --wa: #1d7d45;           /* WhatsApp green, darkened for white text contrast */
  --focus: #1a5fb4;

  --font: "Source Sans 3", "Source Sans Pro", "Segoe UI", Arial, sans-serif;
  --measure: 66ch;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 112.5%; /* 18px base for easier reading */
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 96px;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--charcoal);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-weight: 300; font-size: clamp(2.3rem, 5.4vw, 4.2rem); letter-spacing: -.015em; }
h2 { font-weight: 300; font-size: clamp(1.75rem, 3.4vw, 2.6rem); letter-spacing: -.01em; }
h3 { font-weight: 600; font-size: 1.2rem; }
p { margin: 0 0 1em; max-width: var(--measure); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 18px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 24px;
  min-height: 84px;
}
.brand { display: block; flex: none; line-height: 0; }
.brand svg { width: 112px; height: auto; }

.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a {
  display: block; padding: 10px 12px; color: var(--charcoal);
  text-decoration: none; font-weight: 500; border-radius: 4px;
}
.nav a:hover { background: var(--mist); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--ink); border-radius: 0; }

.header-call {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff; text-decoration: none;
  padding: 10px 16px; border-radius: 4px; font-weight: 600;
}
.header-call:hover { background: var(--charcoal); }
.header-call svg { width: 18px; height: 18px; }

.menu-toggle {
  display: none; margin-left: auto;
  background: none; border: 2px solid var(--ink); color: var(--ink);
  font: inherit; font-weight: 600; padding: 8px 14px; border-radius: 4px; cursor: pointer;
  min-height: 44px;
}

@media (max-width: 1060px) {
  .menu-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .header-call { display: none; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; padding: 8px var(--gutter) 20px; gap: 0; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.1rem; }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--ink); padding-left: 14px; }
}

/* ---------- Hero: the black block from her logo ---------- */
.hero { background: var(--ink); color: #fff; overflow: hidden; }
.hero .wrap {
  display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(24px, 5vw, 72px);
  align-items: end; padding-top: clamp(48px, 7vw, 96px);
}
.hero-text { padding-bottom: clamp(48px, 7vw, 96px); }
.roof {
  display: block; width: 64px; height: 34px; margin-bottom: 22px;
  stroke: #8c8c8c; stroke-width: 2.5; fill: none;
}
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero .lead { font-size: clamp(1.15rem, 1.9vw, 1.4rem); color: #e4e7ea; max-width: 34ch; }
.hero .values { color: var(--slate); font-size: 1.05rem; margin-bottom: 2em; }
.hero-portrait { position: relative; align-self: end; }
.hero-portrait img { width: 100%; max-width: 420px; margin-left: auto; filter: saturate(.92); }
.hero-portrait figcaption {
  position: absolute; left: 0; bottom: 18px;
  background: #fff; color: var(--ink); padding: 10px 16px; line-height: 1.3;
}
.hero-portrait figcaption strong { display: block; font-size: 1.05rem; }
.hero-portrait figcaption span { color: var(--stone); font-size: .9rem; }

.page-hero { background: var(--ink); color: #fff; padding: clamp(40px, 6vw, 80px) 0 clamp(36px, 5vw, 64px); }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.4rem); margin-bottom: .3em; }
.page-hero p { color: #e4e7ea; font-size: 1.2rem; margin: 0; }

@media (max-width: 800px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-text { padding-bottom: 0; }
  .hero-portrait img { max-width: 300px; margin: 0; }
}

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 22px; border-radius: 4px;
  font-weight: 600; font-size: 1.05rem; text-decoration: none; border: 2px solid transparent;
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--mist); }
.btn-ghost { color: #fff; border-color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--charcoal); }
.btn-outline { color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #166537; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-mist { background: var(--mist); }
.section-head { max-width: 46rem; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { font-size: 1.15rem; color: var(--stone); }

/* Services as an index, not a card grid */
.services { border-top: 2px solid var(--ink); }
.service {
  display: grid; grid-template-columns: minmax(200px, 1fr) 2fr; gap: 8px 40px;
  padding: 26px 0; border-bottom: 1px solid var(--line);
}
.service h3 { margin: 0; font-size: 1.35rem; font-weight: 600; }
.service h3 a { color: var(--ink); text-decoration: none; }
.service h3 a:hover { text-decoration: underline; }
.service p { margin: 0; color: var(--stone); }
.service ul { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.service li { background: var(--mist); padding: 2px 10px; border-radius: 3px; font-size: .92rem; color: var(--charcoal); }
@media (max-width: 700px) { .service { grid-template-columns: 1fr; } }

/* Free valuation band */
.offer {
  display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: center;
  border-left: 6px solid var(--ink); background: var(--paper);
  padding: clamp(24px, 4vw, 44px);
}
.offer h2 { margin-bottom: .3em; }
.offer p { margin: 0; font-size: 1.15rem; }
@media (max-width: 800px) { .offer { grid-template-columns: 1fr; } }

/* Listing */
.listing { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.listing img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.listing .place { color: var(--stone); font-size: 1.1rem; margin-bottom: 1.2em; }
.listing .note { font-size: .95rem; color: var(--stone); margin-top: 1.2em; }
@media (max-width: 800px) { .listing { grid-template-columns: 1fr; } }

.sold { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin-top: 16px; }
.sold figure { margin: 0; position: relative; }
.sold img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.sold figcaption {
  position: absolute; left: 0; top: 16px; background: var(--ink); color: #fff;
  padding: 4px 12px; font-weight: 600;
}

/* About */
.about { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.about > img { width: 100%; }
.about .sig { font-size: 1.2rem; color: var(--ink); font-weight: 600; margin-top: 1.4em; }
.about .sig span { display: block; font-weight: 400; color: var(--stone); font-size: 1rem; }
@media (max-width: 800px) { .about { grid-template-columns: 1fr; } .about > img { max-width: 300px; } }

.badges { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 28px; padding: 0; list-style: none; align-items: center; }
.badges img { height: 132px; width: auto; }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 36px 48px; }
.quote { margin: 0; padding-top: 20px; border-top: 2px solid var(--ink); }
.quote p { font-size: 1.2rem; line-height: 1.5; color: var(--ink); }
.quote footer { color: var(--stone); }
.quote-lg p { font-size: 1.35rem; }

/* Steps (a real sequence) */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 2px solid var(--ink); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step); font-size: 2rem; font-weight: 300; color: var(--ink); line-height: 1; }
.steps h3 { margin-bottom: .2em; }
.steps p { margin: 0; color: var(--stone); }

/* Prose pages */
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.7rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); }
.contact dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 14px 24px; font-size: 1.1rem; }
.contact dt { color: var(--stone); }
.contact dd { margin: 0; }
.contact dd a { color: var(--ink); font-weight: 600; }
@media (max-width: 800px) {
  .contact { grid-template-columns: 1fr; }
  .contact dl { grid-template-columns: 1fr; gap: 2px; }
  .contact dd { margin-bottom: 12px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c9ced2; padding: 48px 0 110px; font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--wa); color: #fff; text-decoration: none; font-weight: 600;
  padding: 14px 20px 14px 16px; border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  min-height: 56px;
}
.wa-float:hover { background: #166537; }
.wa-float svg { width: 28px; height: 28px; flex: none; }
@media (max-width: 520px) {
  .wa-float { padding: 14px; }
  .wa-float .wa-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

@media print {
  .site-header, .wa-float, .hero-portrait, .btn-row { display: none !important; }
  .hero, .page-hero, .site-footer { background: none; color: #000; }
  .hero h1, .page-hero h1 { color: #000; }
}
