/* ============================================================
   KLANG IMMOBILIEN — Corporate Stylesheet
   Brand: Kormann & Lang · Immobilien-Ankauf
   Register: Classic / Trust (navy + gold, serif display)
   ============================================================ */

:root {
  /* — Palette — */
  --navy:        #14233b;  /* Tiefblau — Vertrauen, Beständigkeit */
  --navy-deep:   #0d1828;  /* Footer / dunkle Flächen */
  --gold:        #b08a3e;  /* Messinggold — Wertigkeit */
  --gold-light:  #c8a55a;  /* Hover / Akzentlinien */
  --sand:        #f4f1ea;  /* Warmes Off-White — Flächen */
  --paper:       #ffffff;
  --ink:         #1c2330;  /* Fließtext */
  --ink-soft:    #5a6473;  /* Sekundärtext */
  --line:        #e3ddd1;  /* Trennlinien */
  --line-dark:   #243752;

  /* — Type — */
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* — Layout — */
  --maxw: 1180px;
  --gap: clamp(1.5rem, 4vw, 4rem);
  --radius: 2px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* — Type scale — */
.t-eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold);
}
.t-display {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.04;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  letter-spacing: -0.01em;
}
.t-headline {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.1;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
}
.t-slogan {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  color: var(--gold);
}
.t-body { font-size: 1.02rem; color: var(--ink-soft); }
.t-lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-soft); line-height: 1.7; }
.t-caption { font-size: 0.8rem; letter-spacing: 0.04em; color: var(--ink-soft); }

/* ============================================================
   LOGO
   ============================================================ */
.logo { display: inline-flex; align-items: center; gap: 0.6rem; }
.logo svg { display: block; flex-shrink: 0; }
.logo .word {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  line-height: 1;
}
.logo .word b { font-weight: 600; }
.logo .word .imm { color: var(--gold); font-weight: 500; }
.logo .sub {
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 3px;
}
.logo--light .word { color: var(--paper); }
.logo--light .sub { color: rgba(255,255,255,0.55); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.nav-links { display: flex; gap: 2rem; align-items: center; list-style: none; }
.nav-links a {
  font-size: 0.92rem; font-weight: 500; color: var(--navy);
  position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1.5px; background: var(--gold);
  transition: width 0.28s ease;
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }
.nav-links a[aria-current="page"] { color: var(--gold); }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 600; font-size: 0.9rem;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--navy);
  background: var(--navy); color: var(--paper);
  transition: all 0.25s ease; cursor: pointer;
}
.btn:hover { background: var(--gold); border-color: var(--gold); }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--paper); border-color: var(--navy); }
.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--navy); font-weight: 700; }
.btn--gold:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--navy); }
.btn--light { border-color: rgba(255,255,255,0.4); background: transparent; color: var(--paper); }
.btn--light:hover { background: var(--paper); color: var(--navy); border-color: var(--paper); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: 0.3s; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; background: var(--navy); color: var(--paper);
  overflow: hidden;
}
.hero-resonance {
  position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; padding-block: clamp(4.5rem, 12vw, 8.5rem); }
.hero .t-display { color: var(--paper); max-width: 14ch; }
.hero .t-display em { font-style: italic; color: var(--gold-light); font-weight: 400; }
.hero .t-lead { color: rgba(255,255,255,0.78); max-width: 46ch; margin-top: 1.4rem; }
.hero-actions { display: flex; gap: 1rem; margin-top: 2.4rem; flex-wrap: wrap; }
.hero-eyebrow { margin-bottom: 1.4rem; }

/* ============================================================
   SECTION SHELLS
   ============================================================ */
.section { padding-block: clamp(3.5rem, 9vw, 7rem); }
.section--sand { background: var(--sand); }
.section--navy { background: var(--navy); color: var(--paper); }
.section--navy .t-headline { color: var(--paper); }
.section--navy .t-body, .section--navy .t-lead { color: rgba(255,255,255,0.75); }
.section-head { max-width: 60ch; margin-bottom: 3rem; }
.section-head .t-eyebrow { display: block; margin-bottom: 0.9rem; }
.section-head.center { margin-inline: auto; text-align: center; }

/* — Grids — */
.grid { display: grid; gap: 1.6rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* — Cards — */
.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(20,35,59,0.45); border-color: var(--gold); }
.card .num {
  font-family: var(--display); font-size: 2.2rem; color: var(--gold);
  font-weight: 500; line-height: 1; margin-bottom: 0.8rem; display: block;
}
.card .icon { color: var(--gold); margin-bottom: 1.1rem; }
.card h3 { font-family: var(--display); font-size: 1.45rem; font-weight: 600; margin-bottom: 0.6rem; color: var(--navy); }
.card.on-navy { background: var(--navy-deep); border-color: var(--line-dark); }
.card.on-navy h3 { color: var(--paper); }
.card.on-navy .t-body { color: rgba(255,255,255,0.72); }

/* — Stat strip — */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; text-align: center; }
.stat .big { font-family: var(--display); font-size: clamp(2.4rem,5vw,3.4rem); color: var(--gold); font-weight: 500; line-height: 1; }
.stat .lbl { font-size: 0.82rem; letter-spacing: 0.04em; color: var(--ink-soft); margin-top: 0.5rem; }
.section--navy .stat .lbl { color: rgba(255,255,255,0.6); }

/* — Split feature — */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4.5rem); align-items: center; }
.split--reverse > :first-child { order: 2; }

/* — Process steps — */
.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 1.6rem;
  padding: 1.8rem 0; border-top: 1px solid var(--line); align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step .step-no {
  font-family: var(--display); font-size: 1.5rem; color: var(--gold);
  font-weight: 600; width: 3rem; height: 3rem; border: 1.5px solid var(--gold);
  border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
}
.step h3 { font-family: var(--display); font-size: 1.4rem; color: var(--navy); margin-bottom: 0.3rem; font-weight: 600; }

/* — List ticks — */
.ticks { list-style: none; display: grid; gap: 0.9rem; }
.ticks li { display: grid; grid-template-columns: auto 1fr; gap: 0.8rem; align-items: start; color: var(--ink); }
.ticks svg { color: var(--gold); margin-top: 4px; flex-shrink: 0; }

/* — Quote — */
.quote { max-width: 52ch; }
.quote p { font-family: var(--display); font-style: italic; font-size: clamp(1.5rem,3vw,2.1rem); line-height: 1.35; color: var(--navy); }
.section--navy .quote p,
.on-navy .quote p,
.card.on-navy .quote p { color: var(--paper); }
.quote cite { display: block; margin-top: 1.4rem; font-style: normal; font-size: 0.9rem; letter-spacing: 0.05em; color: var(--ink-soft); }
.section--navy .quote cite,
.on-navy .quote cite,
.card.on-navy .quote cite { color: rgba(255,255,255,0.6); }

/* — CTA band — */
.cta-band { background: var(--navy); color: var(--paper); text-align: center; }
.cta-band .t-headline { color: var(--paper); }
.cta-band .t-slogan { margin-block: 1rem 2rem; }

/* ============================================================
   FORMS
   ============================================================ */
.form-grid { display: grid; gap: 1.3rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--navy); letter-spacing: 0.02em; }
.field input, .field textarea, .field select {
  font-family: var(--body); font-size: 0.98rem; color: var(--ink);
  padding: 0.85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); transition: border-color 0.2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176,138,62,0.12);
}
.field textarea { resize: vertical; min-height: 130px; }
.field--row { grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; font-size: 0.86rem; color: var(--ink-soft); align-items: start; }
.consent input { margin-top: 4px; }

/* ============================================================
   CONTACT / INFO BLOCKS
   ============================================================ */
.info-row { display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.info-row:last-child { border-bottom: 0; }
.info-row .ic { color: var(--gold); margin-top: 2px; }
.info-row strong { display: block; color: var(--navy); font-size: 0.95rem; margin-bottom: 2px; }

/* — Team — */
.person { text-align: left; }
.person .avatar {
  aspect-ratio: 4/5; background: var(--navy); border-radius: var(--radius);
  display: grid; place-items: center; margin-bottom: 1.1rem; position: relative; overflow: hidden;
}
.person .avatar .mono {
  font-family: var(--display); font-size: 3.6rem; color: var(--gold); font-weight: 500;
}
.person h3 { font-family: var(--display); font-size: 1.5rem; color: var(--navy); font-weight: 600; }
.person .role { color: var(--gold); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; margin-bottom: 0.7rem; }

/* ============================================================
   LEGAL / TEXT PAGES
   ============================================================ */
.legal { padding-block: clamp(3rem,8vw,5.5rem); }
.legal .wrap { max-width: 800px; }
.legal h1 { font-family: var(--display); font-size: clamp(2.2rem,5vw,3rem); color: var(--navy); font-weight: 500; margin-bottom: 0.5rem; }
.legal h2 { font-family: var(--display); font-size: 1.4rem; color: var(--navy); margin: 2.4rem 0 0.7rem; font-weight: 600; }
.legal h3 { font-size: 1.02rem; color: var(--navy); margin: 1.5rem 0 0.4rem; font-weight: 700; }
.legal p, .legal li { color: var(--ink-soft); margin-bottom: 0.7rem; font-size: 0.97rem; line-height: 1.75; }
.legal ul { padding-left: 1.3rem; margin-bottom: 1rem; }
.legal a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.legal .meta { color: var(--ink-soft); font-size: 0.85rem; margin-bottom: 2.5rem; }
.legal hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

/* — Page hero (sub pages) — */
.page-hero { background: var(--navy); color: var(--paper); }
.page-hero .wrap { padding-block: clamp(3rem,8vw,5rem); }
.page-hero .t-display { color: var(--paper); font-size: clamp(2.2rem,5vw,3.4rem); }
.page-hero .t-lead { color: rgba(255,255,255,0.78); max-width: 50ch; margin-top: 1rem; }
.breadcrumb { font-size: 0.8rem; letter-spacing: 0.05em; color: rgba(255,255,255,0.5); margin-bottom: 1rem; }
.breadcrumb a:hover { color: var(--gold-light); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.7); padding-block: clamp(3rem,7vw,4.5rem) 2rem; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line-dark); }
.footer-col h4 { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.1rem; font-weight: 600; }
.footer-col ul { list-style: none; display: grid; gap: 0.6rem; }
.footer-col a { font-size: 0.92rem; color: rgba(255,255,255,0.7); transition: color 0.2s; }
.footer-col a:hover { color: var(--gold-light); }
.footer-brand .t-body { color: rgba(255,255,255,0.6); font-size: 0.92rem; margin-top: 1rem; max-width: 34ch; }
.footer-signature { font-family: var(--display); font-style: italic; color: var(--gold-light); margin-top: 1.2rem; font-size: 1.05rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 2rem; flex-wrap: wrap; gap: 1rem; font-size: 0.84rem; }
.footer-bottom a:hover { color: var(--gold-light); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2,1fr); gap: 2rem 1rem; }
  .split { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .nav-links {
    position: fixed; inset: 76px 0 auto 0; background: var(--paper);
    flex-direction: column; gap: 0; padding: 1rem 1.5rem 2rem;
    border-bottom: 1px solid var(--line); transform: translateY(-120%);
    transition: transform 0.35s ease; box-shadow: 0 20px 30px -20px rgba(0,0,0,0.2);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { width: 100%; border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border-bottom: 0; padding-top: 0.8rem; }
  .nav-links a { display: block; padding: 0.9rem 0; }
  .nav-toggle { display: block; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .field--row { grid-template-columns: 1fr; }
  .nav .btn { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
