/* RED BLACK IMMOBILIEN · Farben und Schrift aus dem Brandbook FINAL, Abfolge aus dem Website-Mockup */
:root {
  --terra: #C65E4A;
  --terra-d: #AE4D3A;
  --graphit: #303234;
  --stein: #A9A39B;
  --puder: #AEC3CC;
  --creme: #F4EFE6;
  --paper: #FAF7F2;
  --text: #3d3f41;
  --muted: #6b6a66;
  --sans: "Montserrat", system-ui, sans-serif;
  --rand: clamp(20px, 5.5vw, 88px);
  --max: 1240px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 16px/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, .h2, .h3 { margin: 0; color: var(--graphit); font-weight: 600; text-transform: uppercase; letter-spacing: .005em; text-wrap: balance; }
h1, .h1 { font-size: clamp(34px, 4.4vw, 62px); line-height: 1.06; }
h2, .h2 { font-size: clamp(28px, 3.2vw, 46px); line-height: 1.1; }
.h3 { font-size: clamp(22px, 2.1vw, 30px); line-height: 1.18; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; padding: 8px 14px; background: var(--graphit); color: #fff; }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }

/* Etikett mit Linie, wie im Mockup */
.eyebrow { display: flex; align-items: center; gap: 16px; margin: 0 0 18px; font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--graphit); }
.eyebrow::after { content: ""; width: 42px; height: 1.5px; background: var(--terra); }
.eyebrow-lead::after { display: none; }
.eyebrow-lead::before { content: ""; width: 48px; height: 1.5px; background: var(--terra); }

/* Buttons */
.btn, .btn-line { display: inline-flex; align-items: center; gap: 14px; padding: 14px 24px; border-radius: 4px; font: 600 14.5px/1.2 var(--sans); text-decoration: none; transition: background .2s, color .2s, border-color .2s; cursor: pointer; }
.btn { background: var(--terra); color: #fff; border: 1.5px solid var(--terra); }
.btn:hover { background: var(--terra-d); border-color: var(--terra-d); }
.btn-line { border: 1.5px solid var(--terra); color: var(--terra); background: transparent; }
.btn-line:hover { background: var(--terra); color: #fff; }
.btn-sm { padding: 11px 18px; font-size: 13.5px; }
.arr { width: 20px; height: 12px; flex: none; transition: transform .2s; }
.btn:hover .arr, .btn-line:hover .arr { transform: translateX(3px); }

/* Navigation */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; gap: 28px; height: 78px; padding: 0 var(--rand); }
.nav { background: rgba(250,247,242,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(48,50,52,.08); }
.nav-logo { flex: none; display: block; width: 74px; transition: opacity .3s; }
.nav-links { display: flex; gap: clamp(18px, 2.4vw, 40px); margin: 0 auto; }
.nav-links a { position: relative; padding: 6px 0; font-size: 13.5px; font-weight: 500; text-decoration: none; color: var(--graphit); }
.nav-links a[aria-current="page"]::after, .nav-links a:hover::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--terra); }
.nav-toggle { display: none; }
@media (max-width: 1020px) {
  .nav { justify-content: space-between; height: 66px; }
  .nav-logo { width: 60px; }
  .nav-cta { display: none; }
  .nav-toggle { display: block; padding: 9px 16px; border: 1.5px solid var(--graphit); border-radius: 4px; background: rgba(250,247,242,.8); color: var(--graphit); font: 600 13px var(--sans); letter-spacing: .08em; text-transform: uppercase; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: 8px var(--rand) 22px; background: var(--paper); box-shadow: 0 12px 24px rgba(48,50,52,.08); display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 0; font-size: 16px; border-bottom: 1px solid rgba(48,50,52,.08); }
  .nav-links a::after { display: none; }
}

/* ---------------- Eingang: Logo öffnet sich, dahinter Andreas ---------------- */
.scene { position: relative; background: var(--creme); }
.scene-stage { position: relative; }
.scene-intro { display: none; }
.hero { position: relative; display: flex; align-items: center; min-height: min(100svh, 940px); padding: 110px var(--rand) 70px; overflow: hidden; background: var(--creme); }
.hero-media { position: absolute; top: 0; right: 0; bottom: 0; width: 58%; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 8%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%); mask-image: linear-gradient(90deg, transparent 0, #000 30%); }
.hero-copy { position: relative; z-index: 2; width: min(600px, 48%); }
.hero-copy h1 { margin-bottom: 26px; }
.lead { max-width: 30em; font-size: clamp(16px, 1.25vw, 18.5px); line-height: 1.65; color: var(--text); margin-bottom: 34px; }
.hero-down { position: absolute; left: 50%; bottom: 18px; z-index: 3; width: 34px; height: 34px; margin-left: -17px; display: grid; place-items: center; color: var(--terra); }
.hero-down svg { width: 22px; }

.scene-on .scene { height: 320vh; }
.scene-on .scene-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.scene-on .scene-intro { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.scene-on .hero { position: absolute; inset: 0; z-index: 2; min-height: 0; background: transparent; }
.scene-on .hero-media { will-change: clip-path, width; }
.scene-on .nav-logo { opacity: 0; }
.scene-mark { position: relative; width: clamp(220px, 40vw, 520px); aspect-ratio: 412.94 / 208.23; transform: translateX(-3.87%); }
.scene-mark img { position: absolute; top: 0; height: 100%; width: auto; will-change: transform; }
.m-r { left: 0; }
.m-b { left: 58.23%; }
.scene-word { width: clamp(150px, 15vw, 210px); margin-top: clamp(26px, 5svh, 52px); will-change: opacity, transform; }
.scene-hint { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: clamp(26px, 5svh, 48px) 0 0; font-size: 11.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.scene-hint span { width: 1.5px; height: 38px; background: linear-gradient(var(--terra), transparent); animation: hint 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

@media (max-width: 760px) {
  .hero { flex-direction: column; justify-content: flex-end; align-items: stretch; min-height: 100svh; padding: 0 var(--rand) 56px; }
  .hero-media { left: 0; width: 100%; bottom: auto; height: 56%; }
  .hero-media img { object-position: 60% 0%; -webkit-mask-image: linear-gradient(0deg, transparent 0, #000 34%); mask-image: linear-gradient(0deg, transparent 0, #000 34%); }
  .hero-copy { width: 100%; }
  .hero-copy h1 { font-size: clamp(31px, 9vw, 40px); margin-bottom: 16px; }
  .lead { margin-bottom: 24px; font-size: 15.5px; }
  .hero-down { display: none; }
  .scene-mark { width: min(68vw, 300px); }
}

/* ---------------- Abschnitte ---------------- */
.sec { padding: clamp(70px, 9vw, 130px) var(--rand); }
.wrap { max-width: var(--max); margin: 0 auto; }
.narrow { max-width: 760px; }
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 6vw, 96px); align-items: center; max-width: calc(var(--max) + 2 * var(--rand)); margin: 0 auto; }
.split-wide { grid-template-columns: 1.05fr 1fr; }
.split-text-first { grid-template-columns: 1.1fr 0.9fr; }
.split-img img { width: 100%; aspect-ratio: 1.05; object-fit: cover; }
.split-wide .split-img img { aspect-ratio: 1.5; }
.sub-img img { width: 100%; object-fit: cover; }
.split-text-first .split-img img, .sub-img img { aspect-ratio: 4 / 5; object-position: 50% 30%; }
.split-copy h2 { margin-bottom: 10px; }
.split-copy .h3 { margin-bottom: 22px; }
.split-copy p { max-width: 36em; }
.subline { margin: 0 0 24px; font-size: clamp(15px, 1.35vw, 19px); font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--terra); }
.split-copy .btn, .split-copy .btn-line { margin-top: 14px; }
.quote { margin: 28px 0 22px; padding: 2px 0 2px 22px; border-left: 2px solid var(--terra); font-style: italic; color: var(--graphit); max-width: 34em; }
.quote strong { font-weight: 600; }
@media (max-width: 860px) {
  .split, .split-wide, .split-text-first { grid-template-columns: 1fr; }
  .split-text-first .split-img { order: -1; }
}

/* Puderblauer Zwischenbereich */
.band { background: var(--puder); padding: clamp(64px, 7vw, 104px) var(--rand); }
.band-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); max-width: var(--max); margin: 0 auto; align-items: center; }
.band-head { padding-right: clamp(0px, 4vw, 60px); border-right: 1.5px solid rgba(48,50,52,.35); }
.band-text p { color: var(--graphit); max-width: 34em; }
.band-text p:last-child { margin-bottom: 0; }
.big-quote { margin: 0; font-size: clamp(21px, 2vw, 28px); font-weight: 500; line-height: 1.4; color: var(--graphit); text-wrap: balance; }
@media (max-width: 860px) { .band-inner { grid-template-columns: 1fr; } .band-head { border-right: 0; padding: 0 0 28px; border-bottom: 1.5px solid rgba(48,50,52,.3); } }

/* Leistungen */
.services { background: var(--paper); }
.services h2 { margin-bottom: clamp(36px, 4.5vw, 60px); }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; }
.service { padding: 0 clamp(16px, 2.2vw, 34px); border-left: 1px solid rgba(48,50,52,.18); text-align: center; }
.service:first-child { border-left: 0; padding-left: 0; }
.service:last-child { padding-right: 0; }
.icon { width: 46px; height: 46px; margin: 0 auto 16px; fill: none; stroke: var(--terra); stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { min-height: 2.5em; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; font-size: 15.5px; line-height: 1.25; letter-spacing: .03em; hyphens: manual; }
.service p { margin: 0; font-size: 14.5px; line-height: 1.65; }
.services-cta { margin: clamp(40px, 5vw, 64px) 0 0; text-align: center; }
@media (max-width: 980px) {
  .service-grid { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .service:nth-child(3) { border-left: 0; padding-left: 0; }
  .service:nth-child(2) { padding-right: 0; }
}
@media (max-width: 560px) {
  .service-grid { grid-template-columns: 1fr; row-gap: 40px; }
  .service { border-left: 0; padding: 0; }
  .service h3 { min-height: 0; }
}

/* Kontaktbereich mit Fassade */
.contact-band { position: relative; overflow: hidden; background: var(--creme); padding: clamp(64px, 7vw, 100px) var(--rand); }
.contact-bg { position: absolute; top: 0; right: 0; width: 46%; height: 100%; object-fit: cover; object-position: 50% 40%; opacity: .9; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 70%); mask-image: linear-gradient(90deg, transparent 0, #000 70%); }
.contact-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; max-width: var(--max); margin: 0 auto; }
.contact-inner > div { max-width: 640px; }
.contact-inner h2 { margin-bottom: 18px; }
.contact-inner p { margin: 0; }
.contact-inner .btn { flex: none; margin-right: clamp(0px, 8vw, 140px); box-shadow: 0 8px 24px rgba(48,50,52,.18); }
@media (max-width: 860px) {
  .contact-inner { flex-direction: column; align-items: flex-start; }
  .contact-bg { width: 100%; opacity: .16; -webkit-mask-image: none; mask-image: none; }
  .contact-inner .btn { margin: 0; }
}

/* Formular */
.form-sec { background: var(--paper); }
.form-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(36px, 6vw, 96px); max-width: var(--max); margin: 0 auto; }
.form-intro .h3 { margin-bottom: 18px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px; }
.form .full { grid-column: 1 / -1; }
.form label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--graphit); }
.opt { font-weight: 400; color: var(--muted); }
.form input, .form select, .form textarea { width: 100%; padding: 13px 14px; border: 1px solid rgba(48,50,52,.25); border-radius: 4px; background: #fff; font: 400 15.5px/1.4 var(--sans); color: var(--graphit); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--terra); box-shadow: 0 0 0 3px rgba(198,94,74,.15); }
.form .check { flex-direction: row; align-items: flex-start; gap: 12px; font-weight: 400; font-size: 14px; letter-spacing: 0; }
.form .check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--terra); flex: none; }
.form-note { margin: 0; padding: 16px 18px; background: var(--creme); border-left: 2px solid var(--terra); }
@media (max-width: 860px) { .form-wrap { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* Unterseiten */
.sub-hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(36px, 6vw, 96px); align-items: center; max-width: calc(var(--max) + 2 * var(--rand)); margin: 0 auto; padding: 130px var(--rand) clamp(60px, 7vw, 100px); }
.sub-copy h1 { margin-bottom: 26px; font-size: clamp(32px, 3.8vw, 54px); }
.sub-copy .lead { margin: 0; }
@media (max-width: 860px) { .sub-hero { grid-template-columns: 1fr; padding-top: 100px; } .sub-img { order: -1; } .sub-img img { aspect-ratio: 4 / 4.2; } }
.legal { padding-top: 150px; min-height: 70vh; }
.legal h1 { margin-bottom: 30px; }
.notfound { text-align: center; }
.notfound img { width: 120px; margin: 0 auto 30px; }

/* Fusszeile */
.footer { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 30px; padding: 26px var(--rand); background: var(--paper); border-top: 1px solid rgba(48,50,52,.1); }
.footer-logo { display: block; width: 170px; padding-right: 30px; border-right: 1.5px solid var(--terra); }
.footer-claim { margin: 0; text-align: center; font-weight: 600; font-size: 15px; letter-spacing: .02em; color: var(--graphit); }
.footer nav { display: flex; gap: 32px; }
.footer nav a { font-size: 13.5px; text-decoration: none; }
.footer nav a:hover { color: var(--terra); }
@media (max-width: 760px) { .footer { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 16px; } .footer-logo { border-right: 0; padding-right: 0; } }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { border-left-color: var(--graphit); }
