:root {
  --ink: #171817;
  --ink-soft: #2c2d2a;
  --paper: #f4f1e9;
  --paper-deep: #e9e4d9;
  --white: #fffefa;
  --red: #e00012;
  --red-dark: #b9000e;
  --line: rgba(23, 24, 23, 0.18);
  --line-light: rgba(255, 255, 255, 0.22);
  --muted: #686960;
  --shell: min(1180px, calc(100vw - 48px));
  --header-height: 92px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }

::selection { background: var(--red); color: var(--white); }

.shell { width: var(--shell); margin-inline: auto; }
.section { padding: 132px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  transform: translateY(-150%);
  padding: 10px 16px;
  background: var(--white);
  color: var(--ink);
  border: 2px solid var(--red);
}
.skip-link:focus { transform: translateY(0); }

.eyebrow {
  margin: 0 0 24px;
  color: var(--red);
  font-size: 0.75rem;
  line-height: 1;
  font-weight: 760;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.eyebrow.light { color: #ff6a72; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.03; letter-spacing: -0.045em; }
h1 { margin-bottom: 28px; font-size: clamp(3.45rem, 6.4vw, 6.6rem); font-weight: 650; }
.hero h1 { max-width: 100%; font-size: clamp(3.45rem, 5.35vw, 5.6rem); }
h1 em { color: #ff5a65; font-style: normal; font-weight: 350; }
h2 { margin-bottom: 32px; font-size: clamp(2.55rem, 4.4vw, 4.8rem); font-weight: 620; }
h3 { font-size: 1.25rem; letter-spacing: -0.025em; }

.site-header {
  position: relative;
  z-index: 100;
  height: var(--header-height);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: 255px 1fr auto;
  align-items: center;
  gap: 48px;
}

.brand img, .footer-brand img { width: 214px; height: auto; }

.main-nav { display: flex; align-items: center; justify-content: center; gap: 34px; }
.main-nav a, .footer-bottom a {
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.035em;
}
.main-nav a { position: relative; padding: 12px 0; }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 5px;
  height: 2px;
  background: var(--red);
  transition: right .25s var(--ease);
}
.main-nav a:hover::after, .main-nav a:focus-visible::after { right: 0; }

.header-phone { text-decoration: none; font-size: 0.88rem; line-height: 1.25; font-weight: 700; text-align: right; }
.header-phone span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; }
.menu-toggle { display: none; }

.hero {
  min-height: calc(100vh - var(--header-height));
  display: grid;
  grid-template-columns: minmax(480px, 43%) 1fr;
  position: relative;
  background: var(--ink);
  overflow: hidden;
}

.hero-copy {
  display: flex;
  align-items: center;
  color: var(--white);
  padding: 90px clamp(32px, 5vw, 72px) 90px clamp(24px, calc((100vw - 1180px) / 2), 120px);
}
.hero-copy-inner { max-width: 625px; }
.hero-intro { max-width: 580px; margin-bottom: 42px; color: rgba(255,255,255,.74); font-size: clamp(1rem, 1.35vw, 1.2rem); }
.hero-actions { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.hero-image { background-image: url('/assets/images/hero-wohnimmobilien.jpg'); background-size: cover; background-position: 59% center; min-height: 620px; }

.hero-marker {
  position: absolute;
  right: clamp(22px, 4vw, 64px);
  bottom: 0;
  width: 82px;
  height: 122px;
  display: grid;
  place-items: center;
  background: var(--red);
  color: var(--white);
  font-size: 2.5rem;
  font-weight: 800;
}

.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 0;
  font-weight: 720;
  font-size: 0.84rem;
  letter-spacing: .025em;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--red); color: var(--white); }
.button-primary:hover, .button-primary:focus-visible { background: var(--red-dark); }
.button-outline { border-color: rgba(255,255,255,.45); color: var(--white); }
.button-outline:hover, .button-outline:focus-visible { border-color: var(--white); background: var(--white); color: var(--ink); }
.text-link { font-size: .84rem; font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.light-link { color: rgba(255,255,255,.8); }

.principles { padding: 72px 0; background: var(--white); border-bottom: 1px solid var(--line); }
.principles-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.principles article { padding: 10px 48px 4px; border-left: 1px solid var(--line); }
.principles article:first-child { padding-left: 0; border-left: 0; }
.principle-index { color: var(--red); font-size: .72rem; font-weight: 760; letter-spacing: .14em; }
.principles h2 { margin: 18px 0 14px; font-size: 1.5rem; letter-spacing: -.025em; }
.principles p { margin-bottom: 0; color: var(--muted); font-size: .94rem; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9vw; align-items: start; }
.about-copy { padding-top: 48px; }
.about-copy .lead { margin-bottom: 26px; font-size: clamp(1.25rem, 2vw, 1.7rem); line-height: 1.43; letter-spacing: -.02em; }
.about-copy > p:not(.lead) { color: var(--muted); }
.fact-line { display: grid; grid-template-columns: 5px 1fr; gap: 24px; margin-top: 46px; padding-top: 30px; border-top: 1px solid var(--line); }
.fact-line-mark { width: 5px; height: 100%; min-height: 74px; background: var(--red); }
.fact-line p { margin: 0; font-size: .95rem; }

.care { background: var(--paper-deep); }
.care-grid { display: grid; grid-template-columns: minmax(340px, .82fr) 1.18fr; gap: 9vw; align-items: center; }
.care-image-wrap { margin: 0; position: relative; }
.care-image-wrap img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.care-image-wrap::after { content: ""; position: absolute; width: 34%; height: 7px; right: -7%; top: 12%; background: var(--red); }
.care-image-wrap figcaption { margin-top: 14px; color: var(--muted); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; }
.care-content h2 { max-width: 700px; }
.care-list { margin-top: 58px; border-top: 1px solid var(--line); }
.care-list article { display: grid; grid-template-columns: 48px 1fr; gap: 22px; padding: 27px 0 23px; border-bottom: 1px solid var(--line); }
.care-list article > span { color: var(--red); font-size: .72rem; font-weight: 800; letter-spacing: .1em; }
.care-list h3 { margin: 0 0 8px; }
.care-list p { margin: 0; color: var(--muted); font-size: .95rem; }

.tenant { color: var(--white); background: var(--ink-soft); position: relative; overflow: hidden; }
.tenant::before { content: "VERT"; position: absolute; right: -1vw; bottom: -10vw; color: rgba(255,255,255,.035); font-size: clamp(9rem, 25vw, 25rem); line-height: .8; font-weight: 800; letter-spacing: -.08em; }
.tenant-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 9vw; align-items: end; }
.tenant h2 { margin-bottom: 0; }
.tenant-copy p { max-width: 600px; margin-bottom: 36px; color: rgba(255,255,255,.72); font-size: 1.08rem; }

.contact { background: var(--white); }
.contact-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 9vw; }
.contact-intro > p:not(.eyebrow) { max-width: 390px; color: var(--muted); }
.contact-intro address { display: grid; gap: 8px; margin-top: 44px; font-style: normal; }
.contact-intro address a { width: fit-content; color: var(--red); font-weight: 720; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.contact-intro address span { margin-top: 14px; font-size: .92rem; }

.contact-form { padding: 44px; background: var(--paper); border-top: 7px solid var(--red); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { margin-bottom: 27px; }
.field label { display: block; margin-bottom: 8px; font-size: .76rem; font-weight: 760; letter-spacing: .06em; text-transform: uppercase; }
.field input, .field textarea, .field select {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #9b9b92;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  padding: 9px 1px 12px;
  outline: none;
}
.field textarea { resize: vertical; min-height: 134px; }
.field input:focus, .field textarea:focus, .field select:focus { border-bottom-color: var(--red); box-shadow: 0 1px 0 var(--red); }
.check-field { display: grid; grid-template-columns: 20px 1fr; gap: 11px; align-items: start; font-size: .8rem; color: var(--muted); cursor: pointer; }
.check-field input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--red); }
.check-field a { text-underline-offset: 3px; }
.form-footer { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.form-footer p { max-width: 290px; margin: 0; color: var(--muted); font-size: .75rem; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-bottom: 26px; padding: 14px 16px; border-left: 4px solid var(--red); background: var(--white); font-size: .9rem; }
.form-status.success { border-color: #2b7a3d; }
.form-status.error { border-color: var(--red); }
.contact-form.is-sending { opacity: .72; pointer-events: none; }

.site-footer { padding: 72px 0 28px; color: var(--white); background: #101110; }
.footer-top { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: start; gap: 48px; padding-bottom: 64px; }
.footer-brand { display: block; width: fit-content; }
.footer-top > p { font-size: 1.4rem; line-height: 1.3; letter-spacing: -.025em; }
.footer-contact { display: grid; gap: 8px; justify-items: end; }
.footer-contact a { color: #ff5964; font-weight: 700; text-underline-offset: 4px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; padding-top: 24px; border-top: 1px solid var(--line-light); color: rgba(255,255,255,.56); font-size: .74rem; }
.footer-bottom div { display: flex; gap: 22px; }

.legal-page { background: var(--paper); }
.legal-header { background: var(--paper); }
.legal-main { padding: 95px 0 130px; }
.legal-shell { width: min(820px, calc(100vw - 48px)); margin-inline: auto; }
.legal-title { padding-bottom: 48px; margin-bottom: 52px; border-bottom: 1px solid var(--line); }
.legal-title h1 { margin: 0; color: var(--ink); font-size: clamp(3rem, 7vw, 5.5rem); }
.legal-content h2 { margin: 54px 0 18px; font-size: 1.8rem; letter-spacing: -.025em; }
.legal-content h3 { margin: 34px 0 12px; font-size: 1.2rem; }
.legal-content p, .legal-content li { color: #444640; }
.legal-content ul { padding-left: 22px; }
.legal-note { margin: 0 0 46px; padding: 18px 20px; border-left: 5px solid var(--red); background: var(--white); font-size: .9rem; }
.legal-objection { margin: 42px 0 54px; padding: 28px 30px; border-left: 5px solid var(--red); background: var(--white); }
.legal-objection h2 { margin: 0 0 14px; }
.legal-objection p { margin-bottom: 0; }
.legal-updated { margin-top: 46px; font-size: .9rem; font-weight: 700; }
.legal-back { display: inline-flex; margin-top: 56px; font-weight: 700; text-underline-offset: 5px; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }

@media (max-width: 980px) {
  :root { --header-height: 78px; }
  .header-inner { grid-template-columns: 1fr auto; gap: 18px; }
  .brand img { width: 190px; }
  .header-phone { display: none; }
  .menu-toggle { width: 46px; height: 46px; display: grid; place-content: center; gap: 7px; border: 0; background: transparent; cursor: pointer; }
  .menu-toggle span:not(.sr-only) { display: block; width: 26px; height: 2px; background: var(--ink); transition: transform .2s var(--ease); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(4.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }
  .main-nav { position: fixed; inset: var(--header-height) 0 auto; display: grid; gap: 0; padding: 18px 24px 28px; background: var(--paper); border-bottom: 1px solid var(--line); transform: translateY(-130%); transition: transform .3s var(--ease); }
  .main-nav.is-open { transform: translateY(0); }
  .main-nav a { padding: 17px 0; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .legal-header .main-nav { position: static; display: flex; transform: none; gap: 24px; padding: 0; border: 0; background: transparent; }
  .legal-header .main-nav a { padding: 8px 0; border: 0; font-size: .8rem; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { padding: 92px max(24px, calc((100vw - 1180px) / 2)) 80px; }
  .hero-image { min-height: 58vw; background-position: center; }
  .principles-grid { grid-template-columns: 1fr; }
  .principles article, .principles article:first-child { padding: 26px 0; border-left: 0; border-top: 1px solid var(--line); }
  .principles article:first-child { border-top: 0; }
  .about-grid, .tenant-grid, .contact-grid { grid-template-columns: 1fr; gap: 52px; }
  .about-copy { padding-top: 0; }
  .care-grid { grid-template-columns: .85fr 1.15fr; gap: 7vw; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-contact { justify-items: start; }
}

@media (max-width: 700px) {
  :root { --shell: min(100% - 32px, 1180px); }
  body { font-size: 16px; }
  .section { padding: 88px 0; }
  h1 { font-size: clamp(3.25rem, 15vw, 4.7rem); }
  h2 { font-size: clamp(2.35rem, 11vw, 3.45rem); }
  .brand img { width: 168px; }
  .legal-header .main-nav { gap: 14px; }
  .legal-header .main-nav a { font-size: .72rem; }
  .hero-copy { padding: 76px 20px 64px; }
  .hero-intro { font-size: 1rem; }
  .hero-image { min-height: 76vw; }
  .hero-marker { width: 58px; height: 84px; font-size: 1.8rem; }
  .principles { padding: 44px 0; }
  .care-grid { grid-template-columns: 1fr; gap: 58px; }
  .care-image-wrap { width: 88%; }
  .care-content h2 { font-size: clamp(2.3rem, 10vw, 3.2rem); }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 30px 20px; }
  .form-footer { display: grid; }
  .form-footer .button { width: 100%; }
  .footer-top { grid-template-columns: 1fr; padding-bottom: 44px; }
  .footer-bottom { flex-direction: column; }
  .legal-shell { width: min(100% - 32px, 820px); }
  .legal-main { padding: 72px 0 96px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
