/* ============================================================
   Der Immobilienmakler Weber & Keil GmbH — Karlsfeld bei Dachau
   Design: GG Digital · Münchner Editorial-Eleganz
   ============================================================ */

@font-face {
  font-family: 'Fraunces';
  src: url('fonts/fraunces.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('fonts/fraunces-italic.woff2') format('woff2');
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('fonts/instrument-sans.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('fonts/instrument-sans-italic.woff2') format('woff2');
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #f5efe3;
  --paper-deep: #ede4d0;
  --card: #fbf7ee;
  --ink: #22302a;
  --ink-soft: #4b5a52;
  --pine: #16382b;
  --pine-deep: #0f2a20;
  --pine-line: #2a4f3f;
  --brass: #a97e3f;
  --brass-bright: #c9974f;
  --brass-pale: #e8d9bd;
  --line: #ddd0b8;
  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans: 'Instrument Sans', 'Avenir Next', 'Helvetica Neue', sans-serif;
  --radius: 10px;
  --shadow-soft: 0 2px 6px rgba(34, 48, 42, .06), 0 14px 34px rgba(34, 48, 42, .09);
  --shadow-deep: 0 3px 8px rgba(15, 42, 32, .18), 0 22px 48px rgba(15, 42, 32, .22);
  --wrap: 1160px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(1100px 520px at 85% -80px, rgba(201, 151, 79, .10), transparent 65%),
    radial-gradient(900px 640px at -140px 360px, rgba(22, 56, 43, .05), transparent 60%);
  -webkit-font-smoothing: antialiased;
}

/* Papierkorn über allem, sehr dezent */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.3 0 0 0 0 0.2 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

a { color: var(--pine); text-decoration-color: var(--brass); text-underline-offset: 3px; }
a:hover { color: var(--brass); }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--pine); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 239, 227, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; min-height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  background: var(--pine); color: var(--brass-pale);
  border-radius: 9px;
  font-family: var(--serif); font-weight: 600; font-size: 1.05rem; letter-spacing: .02em;
  box-shadow: inset 0 0 0 1.5px rgba(201, 151, 79, .55);
}
.brand-name { line-height: 1.2; }
.brand-name strong {
  display: block; font-family: var(--serif); font-weight: 650; font-size: 1.08rem; letter-spacing: .01em;
}
.brand-name span {
  font-size: .74rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-soft);
}
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a {
  font-size: .95rem; font-weight: 500; text-decoration: none; color: var(--ink);
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--brass); border-bottom-color: var(--brass); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 15px 26px; border-radius: 999px; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn svg { flex: none; }
.btn-brass {
  background: linear-gradient(160deg, var(--brass-bright), var(--brass));
  color: #fff;
  box-shadow: 0 2px 5px rgba(169, 126, 63, .35), 0 10px 24px rgba(169, 126, 63, .28);
}
.btn-brass:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 4px 9px rgba(169, 126, 63, .4), 0 16px 32px rgba(169, 126, 63, .34); }
.btn-ghost { border-color: var(--pine); color: var(--pine); background: transparent; }
.btn-ghost:hover { background: var(--pine); color: var(--paper); transform: translateY(-2px); }
.btn-light { background: var(--paper); color: var(--pine); }
.btn-light:hover { background: #fff; color: var(--pine); transform: translateY(-2px); }
.header-cta { white-space: nowrap; padding: 12px 20px; font-size: .95rem; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 48px; align-items: center;
  padding-top: 84px; padding-bottom: 96px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brass);
}
.eyebrow::before { content: ''; width: 34px; height: 1.5px; background: var(--brass); }
.hero h1 {
  font-family: var(--serif); font-weight: 560;
  font-size: clamp(2.5rem, 5.4vw, 4.15rem);
  line-height: 1.06; letter-spacing: -.015em;
  margin: 22px 0 24px;
  text-wrap: balance;
}
.hero h1 em { font-style: italic; font-weight: 480; color: var(--brass); }
.hero-lead { font-size: 1.16rem; color: var(--ink-soft); max-width: 34em; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { margin-top: 18px; font-size: .9rem; color: var(--ink-soft); }
.hero-note strong { color: var(--ink); }

/* Foto-Collage rechts */
.hero-collage { position: relative; height: 480px; }
.hero-collage figure {
  position: absolute; margin: 0;
  background: #fff; padding: 10px 10px 14px;
  border-radius: 4px;
  box-shadow: var(--shadow-deep);
}
.hero-collage img { border-radius: 2px; filter: saturate(.94); }
.hero-collage .ph-1 {
  left: 4%; top: 6%; width: 55%; transform: rotate(-3.2deg); z-index: 1;
  animation: drop-in .9s cubic-bezier(.2, .8, .25, 1) .15s both;
}
.hero-collage .ph-2 {
  right: 0; top: 20%; width: 52%; transform: rotate(2.4deg); z-index: 2;
  animation: drop-in .9s cubic-bezier(.2, .8, .25, 1) .35s both;
}
.hero-collage .ph-3 {
  left: 16%; bottom: 0; width: 48%; transform: rotate(-1.4deg); z-index: 3;
  animation: drop-in .9s cubic-bezier(.2, .8, .25, 1) .55s both;
}
.hero-collage figcaption {
  font-size: .78rem; color: var(--ink-soft); padding-top: 8px; text-align: center;
  font-family: var(--serif); font-style: italic;
}
.hero-badge {
  position: absolute; right: 6%; bottom: 10%; z-index: 5;
  width: 118px; height: 118px; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: var(--pine); color: var(--brass-pale);
  box-shadow: var(--shadow-deep);
  transform: rotate(8deg);
  animation: drop-in .9s cubic-bezier(.2, .8, .25, 1) .75s both;
}
.hero-badge span { font-family: var(--serif); font-size: .82rem; line-height: 1.35; padding: 0 10px; }
.hero-badge strong { display: block; font-size: 1.5rem; font-weight: 650; color: #fff; }

@keyframes drop-in {
  from { opacity: 0; transform: translateY(26px) rotate(0deg) scale(.97); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero .eyebrow, .hero h1, .hero-lead, .hero-actions, .hero-note {
  animation: rise .7s cubic-bezier(.2, .8, .25, 1) both;
}
.hero h1 { animation-delay: .08s; }
.hero-lead { animation-delay: .16s; }
.hero-actions { animation-delay: .24s; }
.hero-note { animation-delay: .32s; }

/* ---------- Vertrauensband ---------- */
.trust {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: rgba(251, 247, 238, .6);
}
.trust .wrap {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px;
  padding-top: 34px; padding-bottom: 34px;
}
.trust-item { display: flex; gap: 14px; align-items: flex-start; }
.trust-item svg { flex: none; color: var(--brass); margin-top: 3px; }
.trust-item strong { display: block; font-family: var(--serif); font-size: 1.06rem; font-weight: 620; line-height: 1.3; }
.trust-item span { font-size: .88rem; color: var(--ink-soft); }

/* ---------- Sektionen allgemein ---------- */
section { position: relative; }
.section-pad { padding: 96px 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 {
  font-family: var(--serif); font-weight: 560; letter-spacing: -.01em;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.12;
  margin: 18px 0 16px; text-wrap: balance;
}
.section-head h2 em { font-style: italic; color: var(--brass); font-weight: 480; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }

/* Scroll-Reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .25, 1); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }

/* ---------- Leistungen ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 30px 32px; display: flex; flex-direction: column;
  box-shadow: var(--shadow-soft);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.service-card:hover { transform: translateY(-6px); border-color: var(--brass); box-shadow: 0 4px 10px rgba(34,48,42,.08), 0 24px 48px rgba(34,48,42,.13); }
.service-icon {
  width: 52px; height: 52px; border-radius: 12px; margin-bottom: 22px;
  display: grid; place-items: center;
  background: var(--pine); color: var(--brass-pale);
}
.service-card h3 { font-family: var(--serif); font-size: 1.42rem; font-weight: 620; margin-bottom: 6px; }
.service-card .service-sub { font-size: .86rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brass); font-weight: 600; margin-bottom: 16px; }
.service-card ul { list-style: none; display: grid; gap: 11px; margin-bottom: 22px; }
.service-card li { display: flex; gap: 10px; font-size: .97rem; color: var(--ink-soft); }
.service-card li svg { flex: none; color: var(--brass); margin-top: 4px; }
.service-quote {
  margin-top: auto; padding-top: 18px; border-top: 1px dashed var(--line);
  font-family: var(--serif); font-style: italic; font-size: .98rem; color: var(--pine);
}

/* ---------- Ablauf ---------- */
.process { background: linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.process-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: step; }
.process-step { position: relative; padding: 8px 26px 0 0; }
.process-step + .process-step { border-left: 1px solid var(--line); padding-left: 26px; }
.step-num {
  font-family: var(--serif); font-style: italic; font-weight: 480;
  font-size: 2.6rem; line-height: 1; color: var(--brass);
}
.process-step h3 { font-family: var(--serif); font-size: 1.16rem; font-weight: 620; margin: 14px 0 10px; line-height: 1.3; }
.process-step p { font-size: .92rem; color: var(--ink-soft); }

/* ---------- Über uns ---------- */
.about .wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.about-figure { position: relative; margin: 0; }
.about-figure .portrait {
  background: #fff; padding: 12px 12px 16px; border-radius: 4px;
  box-shadow: var(--shadow-deep); transform: rotate(-1.6deg);
}
.about-figure img { width: 100%; border-radius: 2px; }
.about-figure figcaption { text-align: center; font-family: var(--serif); font-style: italic; font-size: .92rem; color: var(--ink-soft); padding-top: 10px; }
.about-creds {
  margin-top: 34px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 26px 22px; box-shadow: var(--shadow-soft);
}
.about-creds h3 { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); margin-bottom: 14px; }
.about-creds ul { list-style: none; display: grid; gap: 12px; }
.about-creds li { display: flex; gap: 10px; font-size: .95rem; color: var(--ink-soft); }
.about-creds li svg { flex: none; color: var(--brass); margin-top: 4px; }
.about-text h2 {
  font-family: var(--serif); font-weight: 560; letter-spacing: -.01em;
  font-size: clamp(1.9rem, 3.4vw, 2.55rem); line-height: 1.12; margin: 18px 0 22px;
}
.about-text h2 em { font-style: italic; color: var(--brass); font-weight: 480; }
.about-text p { color: var(--ink-soft); margin-bottom: 18px; }
.about-text p strong { color: var(--ink); }
.pull-quote {
  margin: 30px 0; padding: 6px 0 6px 26px; border-left: 3px solid var(--brass);
  font-family: var(--serif); font-style: italic; font-size: 1.32rem; line-height: 1.45; color: var(--pine);
}
.signature { font-family: var(--serif); font-style: italic; font-size: 1.28rem; color: var(--pine); margin-top: 8px; }

/* ---------- Referenzen ---------- */
.refs { background: var(--pine); color: #e9e2d2; }
.refs::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: radial-gradient(720px 320px at 90% 0, rgba(201, 151, 79, .16), transparent 60%);
}
.refs .wrap { position: relative; z-index: 1; }
.refs .eyebrow { color: var(--brass-bright); }
.refs .section-head h2 { color: #f6f1e3; }
.refs .section-head h2 em { color: var(--brass-bright); }
.refs .section-head p { color: #bcc9be; }
.refs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ref-card {
  display: flex; gap: 18px; align-items: flex-start;
  background: rgba(251, 247, 238, .05);
  border: 1px solid var(--pine-line); border-radius: var(--radius);
  padding: 20px;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.ref-card:hover { background: rgba(251, 247, 238, .09); border-color: var(--brass); transform: translateY(-4px); }
.ref-photo { flex: none; background: #f6f1e3; padding: 5px 5px 7px; border-radius: 3px; transform: rotate(-2deg); box-shadow: 0 8px 18px rgba(0, 0, 0, .35); }
.ref-photo img { width: 108px; height: 82px; object-fit: cover; border-radius: 2px; filter: saturate(.92); }
.ref-card h3 { font-family: var(--serif); font-size: 1.08rem; font-weight: 600; line-height: 1.3; color: #f6f1e3; margin-bottom: 8px; }
.ref-facts { list-style: none; font-size: .84rem; color: #bcc9be; display: grid; gap: 3px; }
.refs-footnote { margin-top: 34px; font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: #bcc9be; text-align: center; }

/* ---------- Gesuche ---------- */
.leads { background: var(--paper); }
.leads-band {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 56px 60px; box-shadow: var(--shadow-soft);
  position: relative; overflow: hidden;
}
.leads-band::before {
  content: ''; position: absolute; right: -70px; top: -70px; width: 260px; height: 260px;
  border-radius: 50%; border: 1.5px solid var(--brass-pale);
}
.leads-band::after {
  content: ''; position: absolute; right: -30px; top: -30px; width: 260px; height: 260px;
  border-radius: 50%; border: 1.5px solid var(--brass-pale);
}
.leads-band h2 { font-family: var(--serif); font-weight: 560; font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.15; margin: 16px 0 16px; }
.leads-band h2 em { font-style: italic; color: var(--brass); font-weight: 480; }
.leads-band p { color: var(--ink-soft); }
.leads-cta { position: relative; z-index: 1; display: grid; gap: 14px; justify-items: start; }
.leads-cta .btn { width: 100%; max-width: 320px; }
.leads-cta small { color: var(--ink-soft); font-size: .88rem; }

/* ---------- Kontakt ---------- */
.contact { background: linear-gradient(180deg, var(--paper-deep) 0%, var(--paper) 45%); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; }
.contact-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 34px; box-shadow: var(--shadow-soft);
}
.contact-card h3 { font-family: var(--serif); font-size: 1.35rem; font-weight: 620; margin-bottom: 20px; }
.contact-rows { display: grid; gap: 18px; }
.contact-row { display: flex; gap: 16px; align-items: flex-start; }
.contact-row svg { flex: none; color: var(--brass); margin-top: 4px; }
.contact-row strong { display: block; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 3px; }
.contact-row a { font-size: 1.06rem; font-weight: 600; text-decoration: none; }
.contact-row .sub { font-size: .88rem; color: var(--ink-soft); }
.contact-card address { font-style: normal; font-size: 1.02rem; line-height: 1.7; }
.contact-actions { display: grid; gap: 12px; margin-top: 26px; }
.map-link { font-size: .92rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--pine-deep); color: #a9baab; font-size: .92rem; }
.site-footer .wrap { padding-top: 48px; padding-bottom: 40px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 26px; padding-bottom: 28px; border-bottom: 1px solid var(--pine-line); }
.footer-brand strong { display: block; font-family: var(--serif); font-size: 1.15rem; color: #f6f1e3; font-weight: 600; margin-bottom: 4px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.footer-nav a { color: #cdd8cd; text-decoration: none; }
.footer-nav a:hover { color: var(--brass-bright); }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; }
.footer-legal a { color: #a9baab; }

/* ---------- Mobile Anrufleiste ---------- */
.call-bar { display: none; }

/* ---------- Legal-Seiten ---------- */
.legal-main { padding: 72px 0 96px; }
.legal-main .wrap { max-width: 780px; }
.legal-main h1 { font-family: var(--serif); font-weight: 560; font-size: clamp(2.1rem, 4vw, 2.9rem); margin: 14px 0 34px; }
.legal-main h2 { font-family: var(--serif); font-weight: 620; font-size: 1.35rem; margin: 38px 0 12px; }
.legal-main p, .legal-main li { color: var(--ink-soft); margin-bottom: 12px; }
.legal-main ul { padding-left: 22px; }
.legal-main address { font-style: normal; color: var(--ink-soft); line-height: 1.8; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1020px) {
  .main-nav { display: none; }
  .hero .wrap { grid-template-columns: 1fr; gap: 56px; padding-top: 56px; padding-bottom: 72px; }
  .hero-collage { height: 420px; max-width: 520px; }
  .trust .wrap { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; max-width: 620px; margin: 0 auto; }
  .process-grid { grid-template-columns: 1fr; gap: 30px; }
  .process-step + .process-step { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 28px; }
  .about .wrap { grid-template-columns: 1fr; gap: 52px; }
  .about-figure { max-width: 440px; }
  .refs-grid { grid-template-columns: repeat(2, 1fr); }
  .leads-band { grid-template-columns: 1fr; padding: 44px 36px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 1rem; }
  .section-pad { padding: 68px 0; }
  .header-cta span { display: none; }
  .header-cta { padding: 12px 14px; }
  .trust .wrap { grid-template-columns: 1fr; gap: 20px; }
  .hero-collage { height: 350px; }
  .hero-badge { width: 100px; height: 100px; right: 2%; }
  .refs-grid { grid-template-columns: 1fr; }
  .ref-photo img { width: 96px; height: 74px; }
  .leads-band { padding: 36px 24px; }
  .contact-card { padding: 28px 22px; }

  /* feste Anrufleiste unten */
  .call-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: rgba(15, 42, 32, .96); backdrop-filter: blur(8px);
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    gap: 10px;
  }
  .call-bar a { flex: 1; padding: 14px 10px; font-size: .98rem; }
  body { padding-bottom: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
  .reveal { opacity: 1; transform: none; }
}
