/* Maurer Immobilien Ulm
   Concept: a boutique broker's portfolio. Elegant serif headlines, her black
   logo and blue-grey palette deepened into slate, photos large and personal.
   The roof stroke from her logo is the recurring mark. */

@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; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-normal.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-italic.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }

:root {
  --ink: #000000;          /* logo block */
  --slate-900: #1d2830;    /* deep slate, from her blue-grey */
  --slate-700: #3a4954;
  --slate-300: #bcc5cb;    /* her blue-grey */
  --mist: #f0f2f4;         /* her page background */
  --paper: #ffffff;
  --text: #1f262b;
  --muted: #56616a;        /* AA on white and mist */
  --line: #d6dce0;
  --link: #2c4556;
  --wa: #1d7d45;
  --wa-dark: #166537;
  --focus: #1a5fb4;

  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", Arial, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(18px, 4.5vw, 48px);
  --measure: 64ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 112.5%; -webkit-text-size-adjust: 100%; scroll-padding-top: 120px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--sans); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

h1, h2, h3 { overflow-wrap: break-word; font-family: var(--serif); font-weight: 700; color: var(--ink); line-height: 1.05; margin: 0 0 .45em; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: clamp(2.9rem, 7vw, 5.6rem); }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h3 { font-size: clamp(1.6rem, 2.4vw, 2rem); line-height: 1.12; font-weight: 600; }
p { margin: 0 0 1em; max-width: var(--measure); }
.lead { font-size: clamp(1.15rem, 1.7vw, 1.35rem); line-height: 1.55; }
.muted { color: var(--muted); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 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; }

/* roof stroke from the logo */
.roof { display: block; width: 58px; height: 30px; margin-bottom: 20px; fill: none; stroke: currentColor; stroke-width: 2.5; color: var(--slate-300); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 104px; }
.brand { flex: none; line-height: 0; }
.brand svg { width: 158px; height: auto; }
@media (max-width: 600px) { .site-header .wrap { min-height: 88px; } .brand svg { width: 124px; } }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav a { display: block; padding: 10px 13px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 1rem; }
.nav a:hover { color: var(--ink); text-decoration: underline; }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.header-call { flex: none; display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; text-decoration: none; padding: 11px 18px; font-weight: 600; font-size: .95rem; }
.header-call:hover { background: var(--slate-900); }
.header-call svg { width: 17px; height: 17px; }
.menu-toggle { display: none; margin-left: auto; align-items: center; gap: 10px; background: none; border: 0; color: var(--ink); font: inherit; font-weight: 600; padding: 10px 4px; cursor: pointer; min-height: 44px; }
.menu-toggle .bars { width: 26px; height: 14px; position: relative; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }
.menu-toggle .bars::after { content: ""; position: absolute; left: 0; right: 0; top: 4px; border-top: 2px solid currentColor; }

@media (max-width: 1080px) {
  .menu-toggle { display: inline-flex; }
  .header-call { display: none; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); display: none; max-height: calc(100vh - 88px); overflow-y: auto; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; padding: 8px var(--gutter) 24px; gap: 0; }
  .nav a { font-family: var(--serif); font-size: 1.8rem; font-weight: 700; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { font-weight: 600; }
  .nav .nav-call { display: block; }
}
.nav .nav-call { display: none; }
.nav .nav-call a { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; border: 0; margin-top: 10px; background: var(--ink); color: #fff; padding: 14px 18px; text-align: center; }

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 12px 24px; font-weight: 600; font-size: 1.02rem; text-decoration: none; border: 2px solid transparent; }
.btn svg { width: 21px; height: 21px; flex: none; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--slate-900); }
.btn-outline { color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--mist); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); }

/* ---------- Home hero: her facade photo, headline set in the open sky ---------- */
.hero { position: relative; background: #6bb9e2; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 0% 0%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, rgba(110,187,228,.92) 0%, rgba(110,187,228,.78) 38%, rgba(110,187,228,0) 58%); }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; min-height: min(800px, 88vh); align-items: center; }
.hero-text { grid-column: 2; padding-block: clamp(56px, 8vw, 110px); }
.hero-text .roof { color: var(--ink); }
.hero-text h1 { color: var(--ink); margin-bottom: .3em; }
.hero-text .lead { color: var(--ink); max-width: 30ch; margin-bottom: 1.6em; font-weight: 500; }
.hero .btn-outline { background: rgba(255,255,255,.18); }
.agent-card { display: inline-flex; align-items: center; gap: 16px; background: var(--paper); padding: 10px 22px 10px 10px; margin-top: 32px; box-shadow: 0 16px 36px rgba(29,40,48,.22); }
.agent-card img { width: 72px; height: 72px; object-fit: cover; object-position: 50% 18%; }
.agent-card strong { display: block; font-family: var(--serif); font-size: 1.45rem; font-weight: 700; color: var(--ink); line-height: 1.1; }
.agent-card span { color: var(--muted); font-size: .95rem; line-height: 1.35; display: block; }

@media (max-width: 860px) {
  .hero { background: var(--mist); }
  .hero::after { display: none; }
  .hero-bg { position: relative; height: 62vw; max-height: 420px; object-position: 20% 30%; }
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; }
  .hero-text { grid-column: 1; padding-block: 36px 48px; }
  .hero .btn-outline { background: transparent; }
}

/* ---------- Trust bar ---------- */
.trust { background: var(--slate-900); color: #e8ecef; }
.trust ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.trust li { padding: 26px 24px; border-left: 1px solid rgba(188,197,203,.25); line-height: 1.35; }
.trust li:first-child { border-left: 0; padding-left: 0; }
.trust strong { display: block; font-family: var(--serif); font-size: 1.7rem; font-weight: 700; color: #fff; }
.trust span { font-size: .95rem; color: var(--slate-300); }
@media (max-width: 860px) {
  .trust ul { grid-template-columns: 1fr 1fr; }
  .trust ul { column-gap: 20px; }
  .trust li, .trust li:first-child { padding: 20px 0; border-left: 0; border-top: 1px solid rgba(188,197,203,.25); }
  .trust li:nth-child(-n+2) { border-top: 0; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-mist { background: var(--mist); }
.section-dark { background: var(--slate-900); color: #e8ecef; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .muted { color: var(--slate-300); }
.section-dark a { color: #fff; }
.section-dark .btn-light { color: var(--ink); }
.section-dark .btn-light:hover { color: var(--ink); }
.head { max-width: 46rem; margin-bottom: clamp(32px, 4.5vw, 56px); }

/* Services: sticky intro + list of large serif rows */
.services { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.services-intro { position: sticky; top: 120px; }
.service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.service-list li { border-bottom: 1px solid var(--line); }
.service-list a { display: grid; grid-template-columns: 1fr auto; gap: 6px 24px; padding: 28px 0; text-decoration: none; color: var(--text); }
.service-list h3 { margin: 0; transition: transform .25s ease; }
.service-list p { margin: 0; color: var(--muted); grid-column: 1; }
.service-list .tags { grid-column: 1; display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: .9rem; color: var(--slate-700); font-weight: 600; }
.service-list .arrow { grid-column: 2; grid-row: 1 / span 3; align-self: center; width: 44px; height: 44px; border: 1px solid var(--line); display: grid; place-items: center; transition: background .2s, border-color .2s; }
.service-list .arrow svg { width: 18px; height: 18px; }
.service-list a:hover h3 { transform: translateX(6px); }
.service-list a:hover .arrow { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (prefers-reduced-motion: reduce) { .service-list h3 { transition: none; } }
@media (max-width: 860px) {
  .services { grid-template-columns: 1fr; }
  .services-intro { position: static; }
}

/* Free valuation band */
.offer { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .5fr); gap: 40px clamp(32px, 6vw, 96px); align-items: center; }
.offer h2 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.offer p { font-size: 1.15rem; color: #e8ecef; }
.offer .seal { justify-self: end; width: 100%; max-width: 230px; background: #fff; padding: 10px; transform: rotate(3deg); }
@media (max-width: 760px) { .offer { grid-template-columns: 1fr; } .offer .seal { justify-self: start; max-width: 160px; } }

.sold { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.sold figure { margin: 0; position: relative; }
.sold img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; filter: grayscale(.35); }
.sold figcaption { position: absolute; left: 16px; bottom: 16px; background: #fff; color: var(--ink); padding: 6px 14px; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.about-photo { position: relative; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }
.about-photo::before { content: ""; position: absolute; inset: 24px -24px -24px 24px; border: 1px solid var(--slate-300); z-index: -1; }
.about { position: relative; z-index: 0; }
.signature { font-family: var(--serif); font-style: italic; font-size: 2.2rem; color: var(--ink); margin: .6em 0 0; line-height: 1; }
.signature + p { color: var(--muted); }
.badges { display: flex; flex-wrap: wrap; gap: 18px; margin: 32px 0 0; padding: 0; list-style: none; align-items: center; }
.badges img { height: 112px; width: auto; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .about-photo { max-width: min(340px, calc(100% - 24px)); } }

/* Quotes */
.quote-feature { margin: 0 0 clamp(40px, 5vw, 64px); max-width: 58rem; }
.quote-feature p { font-family: var(--serif); font-size: clamp(1.8rem, 3.6vw, 2.8rem); line-height: 1.2; color: var(--ink); max-width: none; }
.quote-feature footer, .quote footer { color: var(--muted); font-size: 1rem; }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px 48px; }
.quote { margin: 0; padding-top: 22px; border-top: 1px solid var(--ink); }
.quote p { font-family: var(--serif); font-size: 1.45rem; line-height: 1.3; color: var(--ink); }
.quote-mark { display: block; font-family: var(--serif); font-size: 6rem; line-height: .6; color: var(--slate-300); height: .45em; }

/* Google review */
.reviews { background: var(--paper); }
.review { margin: 0 0 clamp(48px, 6vw, 72px); background: var(--paper); padding: clamp(28px, 5vw, 56px); max-width: 60rem; background: var(--mist); border-left: 6px solid var(--ink); }
.section-mist .review { background: var(--paper); }
.stars { display: flex; gap: 4px; color: #e5a100; margin-bottom: 18px; }
.stars svg { width: 26px; height: 26px; }
.review blockquote { margin: 0; }
.review blockquote p { font-family: var(--serif); font-weight: 700; font-size: clamp(1.7rem, 3.8vw, 3rem); line-height: 1.15; color: var(--ink); max-width: none; margin-bottom: .8em; }
.review figcaption { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .98rem; line-height: 1.3; }
.review figcaption strong { display: block; color: var(--ink); font-size: 1.1rem; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: #6d4c41; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 1.2rem; flex: none; }
.reviews .quote { border-top-color: var(--ink); }

/* Steps: a real sequence */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.steps li { counter-increment: s; padding: 26px 24px 26px 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s); display: block; font-family: var(--serif); font-size: 3.2rem; line-height: 1; color: var(--slate-700); margin-bottom: 14px; }
.steps h3 { font-size: 1.5rem; margin-bottom: .3em; }
.steps p { margin: 0; color: var(--muted); }
.section-dark .steps { border-top-color: #fff; }
.section-dark .steps li { border-bottom-color: rgba(188,197,203,.25); }
.section-dark .steps li::before { color: var(--slate-300); }
.section-dark .steps p { color: var(--slate-300); }

/* Feature grid (non-sequential items) */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px 56px; }
.feature { padding-top: 20px; border-top: 1px solid var(--line); }
.feature h3 { font-size: 1.65rem; }
.feature p { margin: 0; color: var(--muted); }

/* Page hero for subpages */
.page-hero { background: var(--slate-900); color: #e8ecef; }
.page-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px; align-items: end; }
.page-hero-text { padding-block: clamp(48px, 7vw, 96px); }
.page-hero h1 { color: #fff; font-size: clamp(2.3rem, 6vw, 4.8rem); margin-bottom: .25em; hyphens: auto; overflow-wrap: break-word; }
.page-hero p { color: var(--slate-300); font-size: clamp(1.1rem, 1.7vw, 1.3rem); margin: 0; }
.crumbs { font-size: .9rem; margin-bottom: 18px; color: var(--slate-300); }
.crumbs a { color: var(--slate-300); }
.page-hero-img { align-self: stretch; position: relative; min-height: 260px; }
.page-hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero.no-img .wrap { grid-template-columns: 1fr; }
@media (max-width: 860px) {
  .page-hero .wrap { grid-template-columns: 1fr; gap: 0; padding-inline: 0; }
  .page-hero-text { padding-inline: var(--gutter); padding-bottom: 36px; }
  .page-hero-img { min-height: 0; aspect-ratio: 16 / 9; }
}

.prose { max-width: 46rem; }
.prose h2 { font-size: clamp(2rem, 3.6vw, 2.6rem); margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.6rem; margin-top: 1.2em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.wishlist { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.wishlist li { font-family: var(--serif); font-size: 1.35rem; padding: 6px 16px; border: 1px solid var(--line); background: var(--paper); }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.big-phone { font-variant-numeric: lining-nums; display: inline-block; font-family: var(--serif); font-size: clamp(2.4rem, 5.4vw, 4rem); font-weight: 700; color: #fff; text-decoration: none; line-height: 1.1; margin: .2em 0 .4em; }
.big-phone:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.contact dl { margin: 0; display: grid; gap: 20px; }
.contact dt { font-size: .9rem; color: var(--slate-300); margin-bottom: 2px; }
.contact dd { margin: 0; font-size: 1.15rem; }
.contact dd a { color: #fff; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* ---------- Footer with Ulm skyline ---------- */
.site-footer { background: var(--ink); color: #b9c1c7; padding: 0 0 110px; font-size: .95rem; }
.skyline { overflow: hidden; display: block; width: 100%; height: auto; color: #5d6f7c; margin-bottom: 40px; }
.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 8px 24px rgba(0,0,0,.28); min-height: 56px; }
.wa-float:hover { background: var(--wa-dark); }
.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, .btn-row, .skyline { display: none !important; }
  .page-hero, .section-dark, .trust, .site-footer { background: none; color: #000; }
}
