/* ==========================================================================
   Benedikt Anhaus — Immobilien & Finanzen
   Handcodiertes Design-System (ohne Page-Builder, ohne Framework)
   ========================================================================== */

:root {
  --c-dark: #131109;
  --c-dark-2: #1c1810;
  --c-gold: #c9a227;
  --c-gold-soft: #e2c56a;
  --c-paper: #f7f4ec;
  --c-paper-2: #efeadf;
  --c-ink: #25221b;
  --c-muted: #6e6759;
  --c-line: rgba(201, 162, 39, .38);
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --maxw: 1180px;
  --radius: 4px;
  --shadow: 0 18px 50px rgba(19, 17, 9, .16);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--c-ink);
  background: var(--c-paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--c-gold); color: #14120a; }

/* ---------- Typografie ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--c-dark);
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: .01em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.25rem; font-weight: 500; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: var(--c-gold);
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--c-gold); }
.lead { font-size: 1.15rem; color: var(--c-muted); max-width: 62ch; }
.on-dark h1, .on-dark h2, .on-dark h3 { color: #f5f1e4; }
.on-dark .lead { color: #b9b2a0; }

/* ---------- Layout-Helfer ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem); }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section.on-dark { background: var(--c-dark); color: #e9e4d6; }
.section.tint { background: var(--c-paper-2); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 5vw, 3.2rem); }
.center .section-head { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.7rem;
  font-weight: 600; font-size: .98rem; text-decoration: none;
  border: 1px solid transparent; border-radius: var(--radius);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn-gold { background: var(--c-gold); color: #16130a; }
.btn-gold:hover { background: var(--c-gold-soft); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(201,162,39,.35); }
.btn-ghost { border-color: var(--c-line); color: var(--c-gold-soft); background: transparent; }
.btn-ghost:hover { border-color: var(--c-gold); background: rgba(201,162,39,.08); transform: translateY(-2px); }
.btn-dark { background: var(--c-dark); color: #f3efe2; }
.btn-dark:hover { background: #2b2517; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(19,17,9,.28); }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }

/* ---------- Topbar ---------- */
.topbar {
  position: relative; z-index: 60;
  background: var(--c-dark); color: #cfc8b4;
  font-size: .86rem;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 40px; }
.topbar a { color: #e7e0cc; text-decoration: none; display: inline-flex; align-items: center; gap: .45rem; }
.topbar a:hover { color: var(--c-gold-soft); }
.topbar svg { width: .95em; height: .95em; color: var(--c-gold); }
.topbar .tb-right { display: flex; gap: 1.4rem; }
.tb-action {
  background: var(--c-gold); color: #16130a !important; font-weight: 600;
  padding: .15rem .8rem; border-radius: 999px;
}
.tb-action:hover { background: var(--c-gold-soft); }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(19,17,9,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201,162,39,.25);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; }
.brand img { height: 46px; width: auto; }
.brand .brand-name {
  font-family: var(--font-display); font-size: 1.18rem; font-weight: 700;
  color: #f3efe2; line-height: 1.1; letter-spacing: .02em;
}
.brand .brand-sub { display: block; font-family: var(--font-body); font-size: .68rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--c-gold); }
.main-nav ul { display: flex; gap: 1.9rem; list-style: none; padding: 0; }
.main-nav a {
  position: relative; text-decoration: none; color: #ddd6c2;
  font-size: .95rem; font-weight: 500; padding: .35rem 0;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; background: var(--c-gold);
  transform: scaleX(0); transform-origin: left; transition: transform .22s ease;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: #fff; }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav-cta { display: inline-flex; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--c-line);
  border-radius: var(--radius); padding: .5rem .65rem; color: var(--c-gold-soft);
}
.nav-toggle svg { width: 22px; height: 22px; display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 78% -10%, rgba(201,162,39,.20), transparent 60%),
    radial-gradient(700px 500px at 8% 110%, rgba(201,162,39,.10), transparent 55%),
    var(--c-dark);
  color: #ece6d5;
}
.hero .wrap {
  display: grid; grid-template-columns: 1.15fr .85fr;
  align-items: center; gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(4rem, 9vw, 7.5rem);
}
.hero-logo { width: min(360px, 80%); margin-bottom: 2rem; filter: drop-shadow(0 10px 30px rgba(0,0,0,.5)); }
.hero h1 { color: #f6f2e6; }
.hero h1 em { font-style: normal; color: var(--c-gold-soft); }
.hero .lead { color: #bdb5a1; margin-top: 1.3rem; }
.hero-figure { position: relative; }
.hero-figure img {
  border-radius: 6px; border: 1px solid rgba(201,162,39,.35);
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
}
.hero-figure::after {
  content: ""; position: absolute; inset: -14px 14px 14px -14px;
  border: 1px solid rgba(201,162,39,.28); border-radius: 6px; pointer-events: none;
}
.hero-scroll {
  position: absolute; left: 50%; bottom: 1.2rem; transform: translateX(-50%);
  color: #9a917c; font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; text-decoration: none;
}
.hero-scroll:hover { color: var(--c-gold-soft); }

/* ---------- Karten (Privat / Gewerbe) ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.4rem, 3.5vw, 2.6rem); }
.card-lift {
  position: relative; border-radius: 6px; overflow: hidden;
  background: #fff; box-shadow: var(--shadow);
  border: 1px solid rgba(37,34,27,.07);
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card-lift:hover { transform: translateY(-6px); box-shadow: 0 26px 60px rgba(19,17,9,.22); }
.card-lift .card-img { aspect-ratio: 16/10; overflow: hidden; }
.card-lift .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card-lift:hover .card-img img { transform: scale(1.05); }
.card-body { padding: clamp(1.4rem, 3vw, 2.1rem); display: flex; flex-direction: column; gap: .8rem; flex: 1; }
.card-body h3 { font-size: 1.45rem; }
.card-body p { color: var(--c-muted); font-size: .98rem; }
.card-body .card-foot { margin-top: auto; padding-top: 1rem; }
.textlink {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; color: #8a6d14; text-decoration: none;
}
.textlink svg { width: 1em; height: 1em; transition: transform .2s ease; }
.textlink:hover svg { transform: translateX(4px); }

/* ---------- Feature-Leiste ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.2rem, 3vw, 2rem); }
.feature { padding: 1.6rem 1.4rem; border: 1px solid rgba(201,162,39,.22); border-radius: 6px; background: rgba(255,255,255,.03); }
.feature svg { width: 30px; height: 30px; color: var(--c-gold); margin-bottom: .9rem; }
.feature h3 { font-size: 1.08rem; margin-bottom: .45rem; }
.feature p { font-size: .92rem; color: #b3ab97; }

/* ---------- Tippgeber-Teaser ---------- */
.teaser {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.teaser img { border-radius: 6px; box-shadow: var(--shadow); border: 1px solid rgba(201,162,39,.3); }
.premium-list { list-style: none; padding: 0; margin-top: 1.4rem; display: grid; gap: .55rem; }
.premium-list li { display: flex; gap: .7rem; align-items: baseline; color: #d9d2bf; }
.premium-list strong { color: var(--c-gold-soft); font-variant-numeric: tabular-nums; min-width: 5.2ch; }

/* ---------- Kontakt-Strip ---------- */
.callstrip {
  display: grid; grid-template-columns: auto 1fr auto; gap: clamp(1.4rem, 4vw, 3rem);
  align-items: center;
  background: var(--c-dark-2); border: 1px solid rgba(201,162,39,.3);
  border-radius: 6px; padding: clamp(1.4rem, 4vw, 2.6rem);
}
.callstrip img { width: min(300px, 38vw); border-radius: 4px; }
.callstrip .num {
  font-family: var(--font-display); font-size: clamp(1.5rem, 3.6vw, 2.3rem);
  color: var(--c-gold-soft); text-decoration: none; letter-spacing: .02em;
}
.callstrip .num:hover { color: #fff; }
.callstrip p { color: #b3ab97; font-size: .95rem; margin-top: .3rem; }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.4rem, 3.5vw, 2.4rem); }
.member { background: #fff; border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid rgba(37,34,27,.07); }
.member img { aspect-ratio: 3/3.6; object-fit: cover; width: 100%; }
.member .member-body { padding: 1.5rem 1.5rem 1.7rem; }
.member h3 { font-size: 1.25rem; }
.member .role { color: #8a6d14; font-size: .86rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin: .3rem 0 .9rem; }
.member a { display: inline-flex; align-items: center; gap: .45rem; color: var(--c-muted); text-decoration: none; font-size: .93rem; margin-right: 1rem; margin-top: .25rem; }
.member a:hover { color: #8a6d14; }
.member svg { width: .95em; height: .95em; color: var(--c-gold); }

/* ---------- Formulare ---------- */
.form-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.form-card { background: #fff; border-radius: 6px; box-shadow: var(--shadow); border: 1px solid rgba(37,34,27,.07); padding: clamp(1.6rem, 4vw, 2.6rem); }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: .4rem; }
.field label .req { color: #a3132c; }
.field input, .field select, .field textarea {
  width: 100%; padding: .78rem .95rem; font: inherit; color: var(--c-ink);
  background: #fbfaf6; border: 1px solid #d9d3c3; border-radius: var(--radius);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--c-gold); box-shadow: 0 0 0 3px rgba(201,162,39,.18);
}
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.checkbox { display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; color: var(--c-muted); }
.checkbox input { width: 1.15rem; height: 1.15rem; margin-top: .15rem; accent-color: var(--c-gold); flex: none; }
.checkbox a { color: #8a6d14; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .85rem; color: var(--c-muted); margin-top: 1rem; }
.form-error { color: #a3132c; font-size: .92rem; font-weight: 600; margin-bottom: 1rem; }
.contact-facts { display: grid; gap: 1.1rem; }
.fact { display: flex; gap: 1rem; align-items: flex-start; }
.fact svg { width: 22px; height: 22px; color: var(--c-gold); flex: none; margin-top: .15rem; }
.fact strong { display: block; font-size: .95rem; }
.fact span, .fact a { color: var(--c-muted); font-size: .93rem; text-decoration: none; }
.fact a:hover { color: #8a6d14; }

/* ---------- Steps (Tippgeber) ---------- */
.steps { counter-reset: step; display: grid; gap: 1.1rem; margin-top: 1.8rem; }
.step { position: relative; padding: 1.3rem 1.5rem 1.3rem 4.4rem; background: #fff; border: 1px solid rgba(37,34,27,.08); border-radius: 6px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 1.3rem; top: 1.15rem;
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--c-gold);
}
.step h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.step p { font-size: .95rem; color: var(--c-muted); }
.conditions { background: var(--c-paper-2); border: 1px solid rgba(37,34,27,.08); border-radius: 6px; padding: clamp(1.4rem, 4vw, 2.2rem); }
.conditions h3 { margin-bottom: .8rem; }
.conditions ul { padding-left: 1.2rem; color: var(--c-muted); font-size: .96rem; display: grid; gap: .5rem; }

/* ---------- Rechtstexte ---------- */
.legal { max-width: 780px; }
.legal h2 { margin-top: 2.2rem; font-size: 1.35rem; }
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { margin-top: 1.4rem; font-size: 1.08rem; }
.legal p, .legal li { color: var(--c-muted); font-size: .97rem; }
.legal p { margin-top: .7rem; }
.legal ul, .legal ol { padding-left: 1.3rem; margin-top: .6rem; display: grid; gap: .35rem; }
.legal a { color: #8a6d14; }
.legal .stand { font-size: .85rem; color: #9a917c; font-style: italic; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-dark); color: #b3ab97; font-size: .92rem; }
.site-footer .wrap { padding-block: 3rem 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr 1fr; gap: 2rem; margin-bottom: 2.4rem; }
.site-footer img { height: 52px; width: auto; margin-bottom: 1rem; }
.site-footer h4 {
  font-family: var(--font-body); font-size: .78rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--c-gold);
  margin-bottom: .9rem;
}
.site-footer ul { list-style: none; padding: 0; display: grid; gap: .45rem; }
.site-footer a { color: #cfc8b4; text-decoration: none; }
.site-footer a:hover { color: var(--c-gold-soft); }
.footer-bottom {
  border-top: 1px solid rgba(201,162,39,.2); padding-top: 1.4rem;
  display: flex; flex-wrap: wrap; gap: .8rem 2rem; justify-content: space-between;
  font-size: .84rem; color: #8d8672;
}
.footer-bottom .cookie-note { display: inline-flex; align-items: center; gap: .45rem; }
.footer-bottom svg { width: 1em; height: 1em; color: var(--c-gold); }

/* ---------- Cookie-/Datenschutz-Hinweis ---------- */
.privacy-hint {
  position: fixed; left: 50%; bottom: 1.2rem; transform: translate(-50%, 140%);
  z-index: 90; width: min(680px, calc(100vw - 2rem));
  background: #fffdf7; color: var(--c-ink);
  border: 1px solid var(--c-line); border-radius: 8px;
  box-shadow: 0 20px 60px rgba(19,17,9,.3);
  padding: 1rem 1.2rem; display: flex; gap: 1rem; align-items: center;
  transition: transform .4s ease; font-size: .9rem;
}
.privacy-hint.show { transform: translate(-50%, 0); }
.privacy-hint svg { width: 26px; height: 26px; color: var(--c-gold); flex: none; }
.privacy-hint p { flex: 1; }
.privacy-hint a { color: #8a6d14; white-space: nowrap; }
.privacy-hint button {
  background: var(--c-dark); color: #f3efe2; border: 0; border-radius: var(--radius);
  padding: .55rem 1.1rem; font-weight: 600; font-size: .88rem;
}
.privacy-hint button:hover { background: #2b2517; }

/* ---------- 404 / Danke ---------- */
.state-page { text-align: center; padding-block: clamp(5rem, 12vw, 9rem); }
.state-page .code { font-family: var(--font-display); font-size: clamp(4rem, 14vw, 8rem); font-weight: 900; color: var(--c-gold); line-height: 1; }
.state-page p { color: var(--c-muted); max-width: 46ch; margin: 1rem auto 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-figure { max-width: 560px; }
  .features { grid-template-columns: 1fr 1fr; }
  .teaser { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .callstrip { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(19,17,9,.98); border-bottom: 1px solid rgba(201,162,39,.25);
    display: none; padding: 1rem 0 1.4rem;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: .2rem; padding-inline: 1.4rem; }
  .main-nav a { display: block; padding: .8rem 0; font-size: 1.05rem; }
  .nav-toggle { display: inline-flex; }
  .nav-cta { display: none; }
}
@media (max-width: 640px) {
  .duo, .team { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar .tb-right span.hide-s { display: none; }
  .topbar .wrap { flex-wrap: wrap; padding-block: .35rem; gap: .2rem 1rem; }
  .privacy-hint { flex-direction: column; align-items: stretch; text-align: left; gap: .8rem; }
  .privacy-hint button { width: 100%; }
  .hero-scroll { display: none; }
}

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