/* =========================================================
   h+v Immobilien — Stylesheet
   Brand: Herz + Verstand · Deep Forest / Orange · Inter
   ========================================================= */

/* Inter, selbst gehostet (statt Live-Anbindung an fonts.googleapis.com, DSGVO) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Brand palette (verbindlich, nicht erweitern) */
  --forest:      #102716; /* Deep Forest — Primär */
  --swamp:       #4A644D; /* Swamp Green — Sekundär */
  --orange:      #DE6D20; /* Orange — Akzent */
  --black:       #111111;
  --grey-dark:   #515151;
  --grey-smoke:  #E5E5E5;
  --white:       #FFFFFF;

  --paper:       #F7F6F2; /* warmes Off-White für Flächen */
  --forest-soft: #1a3a24;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --maxw: 1180px;
  --gut: clamp(1.25rem, 4vw, 3rem);
  --radius: 2px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--forest);
  background: var(--paper);
  line-height: 1.6;
  font-weight: 400;
  font-feature-settings: "cv05", "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }

.section { padding-block: clamp(4rem, 9vw, 8.5rem); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--orange);
}
.eyebrow::before {
  content: ""; width: 26px; height: 1.5px; background: var(--orange); display: inline-block;
}

h1, h2, h3 { font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; color: var(--forest); }

/* the "+" accent used as a brand motif */
.plus { color: var(--orange); font-weight: 700; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,246,242,.82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled { border-color: var(--grey-smoke); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px;
}
.brand { display: flex; align-items: center; gap: .65rem; }
.brand img { height: 52px; width: auto; }
.brand .word {
  font-weight: 700; font-size: 1.15rem; letter-spacing: -0.03em; color: var(--forest);
}
.brand .word b { color: var(--forest); }
.nav-links { display: flex; align-items: center; gap: 2.2rem; }
.nav-links a:not(.btn) {
  font-size: .93rem; font-weight: 500; color: var(--forest);
  position: relative; transition: color .2s var(--ease);
}
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -5px; height: 1.5px; width: 0;
  background: var(--orange); transition: width .28s var(--ease);
}
.nav-links a:not(.btn):hover::after { width: 100%; }
.nav-links a:not(.btn):hover { color: var(--orange); }

.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--forest); color: var(--white);
  padding: .8rem 1.4rem; border-radius: var(--radius);
  font-size: .92rem; font-weight: 600; letter-spacing: -0.01em;
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
  border: none; cursor: pointer;
}
.btn:hover { background: var(--orange); transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(222,109,32,.6); }
.btn .arw { transition: transform .25s var(--ease); }
.btn:hover .arw { transform: translateX(4px); }
.btn.ghost { background: transparent; color: var(--forest); border: 1.5px solid var(--forest); }
.btn.ghost:hover { background: var(--forest); color: var(--white); box-shadow: none; }
.btn.light { background: var(--white); color: var(--forest); }
.btn.light:hover { background: var(--orange); color: var(--white); }

.nav-links a.nav-phone { white-space: nowrap; color: var(--orange); font-weight: 600; }
.nav-links a.nav-phone:hover { color: var(--forest); }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: .4rem; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--forest); margin: 5px 0; transition: .3s var(--ease); }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding-block: clamp(4rem, 11vw, 9rem) clamp(4rem, 9vw, 7rem);
  overflow: hidden;
}
.hero::before {
  content: "+";
  position: absolute; right: -3vw; top: -6vw;
  font-size: clamp(20rem, 46vw, 46rem); line-height: 1;
  color: var(--forest); opacity: .04; font-weight: 800; pointer-events: none; z-index: 0;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 {
  font-size: clamp(2.15rem, 7vw, 5.4rem);
  max-width: 15ch; margin-top: 1.6rem;
  overflow-wrap: break-word; word-break: break-word; hyphens: auto;
}
.hero h1 .sub { display: block; color: var(--swamp); font-weight: 600; font-size: .5em; letter-spacing: -0.01em; margin-top: 1.2rem; line-height: 1.2; }
.hero .lead {
  max-width: 52ch; margin-top: 1.8rem; font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--grey-dark);
}
.hero .cta-row { margin-top: 2.5rem; display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

/* Photo panel to the right of the headline */
.hero-photo { position: relative; margin: 0; }
.hero-photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 4px; filter: grayscale(100%) contrast(1.03);
  border: 1px solid var(--grey-smoke);
}
.hero-photo::before {
  content: ""; position: absolute; inset: -14px 14px 14px -14px; z-index: 0;
  border: 1.5px solid var(--orange); border-radius: 4px; opacity: .5;
}
.hero-photo img { position: relative; z-index: 1; }
.hero-photo figcaption {
  position: absolute; z-index: 2; left: 0; bottom: 0;
  background: var(--forest); color: var(--paper);
  font-size: .82rem; font-weight: 600; letter-spacing: .04em;
  padding: .6rem 1rem; border-radius: 0 4px 0 4px;
}

.hero-meta {
  margin-top: clamp(3rem, 6vw, 5rem);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--grey-smoke); border: 1px solid var(--grey-smoke);
  border-radius: var(--radius); overflow: hidden;
}
.hero-meta .cell { background: var(--paper); padding: 1.5rem 1.6rem; }
.hero-meta .num { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; color: var(--forest); letter-spacing: -0.03em; }
.hero-meta .lbl { font-size: .85rem; color: var(--grey-dark); margin-top: .35rem; }

/* ---------- About (dark) ---------- */
.about { background: var(--forest); color: var(--paper); position: relative; }
.about::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient( circle at 82% 12%, rgba(222,109,32,.16), transparent 46%);
}
.about .wrap { position: relative; z-index: 1; }
.about h2 { color: var(--white); font-size: clamp(1.9rem, 4vw, 3.2rem); max-width: 20ch; margin-top: 1.4rem; }
.about .quote {
  font-size: clamp(1.3rem, 2.6vw, 2rem); font-weight: 300; line-height: 1.4;
  max-width: 26ch; color: var(--white); letter-spacing: -0.01em;
}
.about .quote b { font-weight: 600; color: var(--orange); }
.about-grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about-grid p { color: rgba(247,246,242,.78); font-size: 1.05rem; }
.about-grid p + p { margin-top: 1.2rem; }
.about .eyebrow { color: var(--orange); }

/* Portrait of the managing director */
.portrait { position: relative; margin: 0; }
.portrait img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: 4px; filter: grayscale(100%) contrast(1.02);
  border: 1px solid rgba(247,246,242,.14);
}
.portrait::before {
  content: ""; position: absolute; inset: 14px -14px -14px 14px; z-index: 0;
  border: 1.5px solid var(--orange); border-radius: 4px; opacity: .5;
}
.portrait img { position: relative; z-index: 1; }
.portrait figcaption {
  position: absolute; z-index: 2; left: 0; bottom: 0; right: 6%;
  display: flex; flex-direction: column; gap: .15rem;
  background: var(--orange); color: var(--forest);
  padding: .75rem 1.1rem; border-radius: 0 4px 0 4px;
}
.portrait .name { font-weight: 700; font-size: 1rem; letter-spacing: -0.01em; }
.portrait .role { font-size: .78rem; font-weight: 500; opacity: .85; line-height: 1.3; }

/* ---------- Services ---------- */
.services .head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 1.5rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.services h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); max-width: 16ch; margin-top: 1.2rem; }
.grid-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--grey-smoke); border: 1px solid var(--grey-smoke); border-radius: var(--radius); overflow: hidden; }
.svc {
  background: var(--paper); padding: clamp(2rem, 3.5vw, 3rem);
  position: relative; transition: background .35s var(--ease), color .35s var(--ease);
}
.svc:hover { background: var(--forest); }
.svc:hover h3, .svc:hover p, .svc:hover .idx { color: var(--paper); }
.svc:hover .idx { color: var(--orange); }
.idx { font-size: .82rem; font-weight: 700; letter-spacing: .1em; color: var(--orange); }
.svc h3 { font-size: 1.35rem; margin-top: 1.4rem; transition: color .35s var(--ease); }
.svc p { color: var(--grey-dark); margin-top: .8rem; font-size: .98rem; transition: color .35s var(--ease); }

/* ---------- Eigentumswohnungen ---------- */
.eigentum { background: var(--white); }
.eigentum-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.eigentum-grid h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); margin-top: 1.2rem; max-width: 13ch; }
.eigentum-grid p { color: var(--grey-dark); font-size: 1.05rem; }
.eigentum-grid p + p { margin-top: 1.1rem; }

/* ---------- Partner band ---------- */
.partners { background: var(--swamp); color: var(--white); }
.partners .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.partners h2 { color: var(--white); font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.partners .eyebrow { color: #ffd9b8; }
.partners .eyebrow::before { background: #ffd9b8; }
.partners p { color: rgba(255,255,255,.85); margin-top: 1.2rem; font-size: 1.05rem; }
.tag-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.8rem; }
.tag { border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: .5rem 1rem; font-size: .88rem; font-weight: 500; }

/* ---------- Testimonial (Partnerstimme) ---------- */
.testimonial { background: var(--paper); }
.testimonial-inner { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.testimonial-photo { margin: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 1.2rem; }
.testimonial-photo img {
  width: 100%; max-width: 300px; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 999px; filter: grayscale(100%) contrast(1.03);
  border: 4px solid var(--white); box-shadow: 0 16px 40px -20px rgba(16,39,22,.5);
}
.testimonial-photo figcaption { display: flex; flex-direction: column; gap: .15rem; }
.testimonial-photo .name { font-weight: 700; font-size: 1.15rem; color: var(--forest); letter-spacing: -0.01em; }
.testimonial-photo .role { font-size: .9rem; color: var(--grey-dark); }
.testimonial-body { position: relative; }
.testimonial-body .eyebrow { margin-bottom: 1.2rem; }
.testimonial-body blockquote { margin: 0; position: relative; }
.testimonial-body .mark {
  position: absolute; top: -2.4rem; left: -0.5rem; z-index: 0;
  font-size: 7rem; line-height: 1; color: var(--orange); opacity: .25; font-weight: 800;
}
.testimonial-body p {
  position: relative; z-index: 1;
  font-size: clamp(1.2rem, 2.1vw, 1.7rem); line-height: 1.5; font-weight: 300;
  color: var(--forest); letter-spacing: -0.01em;
}
.testimonial-body p b { font-weight: 600; color: var(--orange); }

/* ---------- Sponsoring ---------- */
.sponsoring { background: var(--paper); }
.sponsoring-head { max-width: 60ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sponsoring h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); margin-top: 1.2rem; }
.sponsoring-head .lead { margin-top: 1.4rem; color: var(--grey-dark); font-size: clamp(1.02rem, 1.5vw, 1.18rem); }
.sponsor-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); }
.sponsor-card {
  background: var(--white); border: 1px solid var(--grey-smoke); border-radius: 4px;
  padding: clamp(1.8rem, 3vw, 2.6rem);
  display: flex; flex-direction: column; gap: 1.6rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.sponsor-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(16,39,22,.4); }
.sponsor-logo {
  height: 150px; display: flex; align-items: center; justify-content: center;
  padding: .5rem; border-bottom: 1px solid var(--grey-smoke); padding-bottom: 1.6rem;
}
.sponsor-logo img { max-height: 150px; max-width: 78%; width: auto; object-fit: contain; }
.sponsor-logo.placeholder { flex-direction: column; gap: .4rem; }
.sponsor-logo.placeholder .ph-mark {
  font-size: 3.4rem; font-weight: 800; letter-spacing: -0.03em; color: var(--forest); line-height: 1;
}
.sponsor-logo.placeholder .ph-name {
  font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--swamp);
}
.sponsor-role {
  display: inline-block; align-self: flex-start;
  background: var(--orange); color: var(--forest);
  font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: .4rem .8rem; border-radius: 999px;
}
.sponsor-body h3 { font-size: 1.4rem; margin-top: .9rem; }
.sponsor-body p { color: var(--grey-dark); margin-top: .8rem; font-size: .98rem; line-height: 1.65; }

/* ---------- Contact ---------- */
.contact { background: var(--paper); }
.contact-card {
  background: var(--forest); color: var(--paper); border-radius: 4px;
  padding: clamp(2.5rem, 6vw, 5rem);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
  position: relative; overflow: hidden;
}
.contact-card::before {
  content: "+"; position: absolute; left: -2vw; bottom: -8vw; font-size: clamp(14rem, 30vw, 30rem);
  color: rgba(222,109,32,.12); font-weight: 800; line-height: 1; pointer-events: none;
}
.contact-card .wrap-inner { position: relative; z-index: 1; }
.contact-card h2 { color: var(--white); font-size: clamp(1.9rem, 4vw, 3rem); }
.contact-card p { color: rgba(247,246,242,.8); margin-top: 1rem; max-width: 40ch; }
.contact-detail { position: relative; z-index: 1; }
.contact-detail a.mail {
  display: block; font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-weight: 700; color: var(--white);
  letter-spacing: -0.02em; transition: color .2s var(--ease);
}
.contact-detail a.mail:hover { color: var(--orange); }
.contact-detail .line { margin-top: 1.6rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.15); }
.contact-detail .k { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--orange); }
.contact-detail .v { color: var(--paper); margin-top: .3rem; }
.contact-card .cta-row { margin-top: 2rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: rgba(255,255,255,.7); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2rem; align-items: start; }
.footer-brand img { height: 40px; margin-bottom: 1rem; }
.footer-brand p { max-width: 34ch; font-size: .95rem; }
.footer-nav { display: flex; gap: 3rem; flex-wrap: wrap; }
.footer-col h4 { color: var(--white); font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 1rem; font-weight: 600; }
.footer-col a, .footer-col span { display: block; font-size: .95rem; margin-bottom: .55rem; transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
  margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .85rem; color: rgba(255,255,255,.5);
}

/* ---------- Legal pages ---------- */
.legal { padding-block: clamp(3rem, 7vw, 6rem); }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: .5rem; }
.legal .updated { color: var(--grey-dark); font-size: .9rem; margin-bottom: 3rem; }
.legal h2 { font-size: 1.35rem; margin-top: 2.6rem; margin-bottom: .8rem; color: var(--forest); }
.legal h3 { font-size: 1.05rem; margin-top: 1.6rem; margin-bottom: .5rem; }
.legal p, .legal li { color: var(--grey-dark); margin-bottom: .9rem; font-size: 1rem; line-height: 1.7; }
.legal ul { padding-left: 1.3rem; margin-bottom: 1rem; }
.legal a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.legal .back { display: inline-flex; align-items: center; gap: .5rem; color: var(--forest); font-weight: 600; margin-bottom: 2.5rem; font-size: .92rem; }
.legal .back:hover { color: var(--orange); }

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .about-grid, .partners .wrap, .contact-card, .eigentum-grid { grid-template-columns: 1fr; }
  .sponsor-grid { grid-template-columns: 1fr; }
  .testimonial-inner { grid-template-columns: 1fr; }
  .testimonial-photo img { max-width: 200px; }
  .testimonial-body .mark { top: -1.6rem; font-size: 5rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-photo { max-width: 420px; margin-inline: auto; }
  .hero-photo::before { inset: -10px 10px 10px -10px; }
  .portrait { max-width: 340px; margin-inline: auto; }
  .portrait::before { inset: 10px -10px -10px 10px; }
  .grid-services { grid-template-columns: 1fr; }
  .hero-meta { grid-template-columns: 1fr; }
  .contact-detail { margin-top: 1rem; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 1.4rem;
    position: absolute; top: 74px; left: 0; right: 0; background: var(--paper);
    padding: 1.8rem var(--gut); border-bottom: 1px solid var(--grey-smoke);
  }
  .footer-top { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
}
