/* R2 Immobilien — shared styles (Schrift wird in inc/header.php via <link> geladen) */

:root {
  --bg: #F2F1ED;
  --surface: #FAF9F6;
  --ink: #191813;
  --ink-2: #5C594F;
  --line: #DBD8CF;
  --dark: #191813;
  --dark-ink: #EDEBE4;
  --dark-ink-2: #A39F93;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 64px; }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 500;
}
.dark .eyebrow { color: var(--dark-ink-2); }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; text-wrap: balance; }
h1 { font-size: 76px; letter-spacing: -0.01em; }
h2 { font-size: 52px; letter-spacing: -0.005em; }

.lead { font-size: 19px; color: var(--ink-2); max-width: 56ch; text-wrap: pretty; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-size: 15px; font-weight: 500;
  padding: 15px 30px; text-decoration: none; letter-spacing: 0.02em;
  background: var(--ink); color: var(--bg); border: 1px solid var(--ink);
  transition: background 0.2s, color 0.2s;
}
.btn:hover { background: #2E2C26; border-color: #2E2C26; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: rgba(25, 24, 19, 0.06); }
.btn.on-image { border-color: rgba(255, 255, 255, 0.85); color: #fff; background: transparent; }
.btn.on-image:hover { background: rgba(255, 255, 255, 0.14); }
.btn.on-image.solid { background: #FAF9F6; color: var(--ink); border-color: #FAF9F6; }
.btn.on-image.solid:hover { background: #fff; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(242, 241, 237, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 64px;
  height: 80px; display: flex; align-items: center; gap: 40px;
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 40px; width: auto; }
.nav-links { display: flex; gap: 34px; margin-left: auto; }
.nav-links a {
  font-size: 14.5px; font-weight: 500; text-decoration: none; color: var(--ink-2);
  letter-spacing: 0.01em; transition: color 0.15s;
}
.nav-links a:hover { color: var(--ink); }
.nav-phone {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14.5px; font-weight: 500; text-decoration: none;
  color: var(--bg); background: var(--ink);
  padding: 11px 22px; transition: background 0.2s;
}
.nav-phone:hover { background: #2E2C26; }

/* ---------- sections ---------- */
section { padding: 120px 0; }

/* pillars */
.pillars { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 56px; margin-top: 72px; }
.pillar { border-top: 1px solid var(--ink); padding-top: 28px; }
.pillar h3 { font-size: 29px; margin-bottom: 14px; }
.pillar p { color: var(--ink-2); font-size: 16px; text-wrap: pretty; }

/* über mich */
.bio-grid { display: grid; grid-template-columns: 440px 1fr; gap: 96px; align-items: start; margin-top: 72px; }
.bio-photo { position: relative; }
.bio-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.bio-photo figcaption { font-size: 13.5px; color: var(--ink-2); margin-top: 14px; letter-spacing: 0.02em; }
.bio-text p { color: var(--ink-2); text-wrap: pretty; }
.bio-text p + p { margin-top: 1.2em; }
.bio-text strong { color: var(--ink); font-weight: 500; }

.timeline { margin-top: 52px; border-top: 1px solid var(--line); }
.tl-row { display: grid; grid-template-columns: 150px 1fr; gap: 28px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.tl-when { font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1.3; }
.tl-what { color: var(--ink-2); font-size: 16px; align-self: center; text-wrap: pretty; }
.tl-what em { font-style: normal; color: var(--ink); font-weight: 500; }

/* warum immobilien */
.why { margin-top: 110px; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 56px; margin-top: 56px; }
.why-item { border-top: 1px solid var(--ink); padding-top: 26px; }
.why-item .num { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--ink-2); }
.why-item h3 { font-size: 28px; margin: 8px 0 12px; }
.why-item p { color: var(--ink-2); font-size: 16px; text-wrap: pretty; }

/* leistungen */
.services { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service-list { margin-top: 64px; border-top: 1px solid var(--ink); }
.service { display: grid; grid-template-columns: 120px 380px 1fr; gap: 48px; padding: 44px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.service .num { font-family: var(--serif); font-size: 34px; font-weight: 500; color: var(--ink-2); }
.service h3 { font-size: 32px; }
.service p { color: var(--ink-2); font-size: 16.5px; max-width: 52ch; text-wrap: pretty; }

/* referenzen */
.ref-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 72px; }
.ref-grid figure.wide { grid-column: span 2; }
.ref-grid figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.ref-grid figure.wide img { aspect-ratio: 16 / 9; }
.ref-grid figcaption { font-size: 13.5px; color: var(--ink-2); margin-top: 12px; letter-spacing: 0.02em; }

.ref-quote { display: grid; grid-template-columns: 380px 1fr; gap: 80px; align-items: center; margin-top: 110px; padding-top: 90px; border-top: 1px solid var(--line); }
.ref-quote img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
.ref-quote blockquote { font-family: var(--serif); font-size: 36px; line-height: 1.25; font-weight: 500; text-wrap: balance; }
.ref-quote .attribution { margin-top: 24px; font-size: 14px; color: var(--ink-2); letter-spacing: 0.02em; }

/* vorher / nachher */
.ba-section { background: var(--surface); border-top: 1px solid var(--line); }
.ba-wrap { margin-top: 64px; }
.ba {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  user-select: none; touch-action: none; cursor: ew-resize;
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba .ba-after-clip { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.ba .ba-handle {
  position: absolute; top: 0; bottom: 0; width: 2px; background: #fff;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.35); pointer-events: none;
}
.ba .ba-knob {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 52px; height: 52px; border-radius: 50%; background: #FAF9F6;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  font-size: 13px; color: var(--ink); box-shadow: 0 2px 14px rgba(0, 0, 0, 0.3);
}
.ba .ba-tag {
  position: absolute; bottom: 22px; font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; font-weight: 500; padding: 8px 14px; pointer-events: none;
}
.ba .ba-tag.before { left: 22px; background: rgba(25, 24, 19, 0.78); color: var(--dark-ink); }
.ba .ba-tag.after { right: 22px; background: rgba(250, 249, 246, 0.9); color: var(--ink); }
.ba-caption { font-size: 13.5px; color: var(--ink-2); margin-top: 16px; letter-spacing: 0.02em; }

/* kontakt */
.contact { background: var(--dark); color: var(--dark-ink); padding: 130px 0 0; }
.contact .inner { text-align: center; max-width: 760px; margin: 0 auto; padding: 0 64px; }
.contact h2 { color: var(--dark-ink); }
.contact .lead { color: var(--dark-ink-2); margin: 26px auto 0; }
.contact-phone {
  display: inline-block; font-family: var(--serif); font-size: 54px; font-weight: 500;
  color: var(--dark-ink); text-decoration: none; margin-top: 56px; line-height: 1.1;
  border-bottom: 1px solid rgba(237, 235, 228, 0.35); padding-bottom: 10px;
  transition: border-color 0.2s;
}
.contact-phone:hover { border-color: var(--dark-ink); }
.contact-rows { margin-top: 40px; display: flex; gap: 36px; justify-content: center; font-size: 15.5px; color: var(--dark-ink-2); }
.contact-rows a { color: var(--dark-ink); text-decoration: none; border-bottom: 1px solid rgba(237, 235, 228, 0.3); }
.contact-rows a:hover { border-color: var(--dark-ink); }

.footer { margin-top: 110px; border-top: 1px solid rgba(237, 235, 228, 0.16); }
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 30px 64px;
  display: flex; align-items: center; gap: 28px;
  font-size: 13.5px; color: var(--dark-ink-2);
}
.footer-inner .spacer { margin-left: auto; }
.footer-inner a { color: var(--dark-ink-2); text-decoration: none; border-bottom: 1px solid rgba(237, 235, 228, 0.25); }
.footer-inner a:hover { color: var(--dark-ink); }

/* section headers */
.sec-head { max-width: 720px; }
.sec-head h2 { margin-top: 20px; }
.sec-head .lead { margin-top: 24px; }
.sec-head.center { margin: 0 auto; text-align: center; }
