/* ─── RESET & TOKENS ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:       #0d1117;
  --ink-2:     #2c3441;
  --muted:     #6b7280;
  --line:      #e8e5df;
  --bg:        #f9f8f5;
  --surface:   #ffffff;
  --navy:      #0c2340;
  --navy-mid:  #1a3a5c;
  --gold:      #9e7e3f;
  --gold-lt:   #c4a05a;
  --shadow-sm: 0 2px 12px rgba(12,35,64,.06);
  --shadow-md: 0 12px 40px rgba(12,35,64,.10);
  --shadow-lg: 0 32px 80px rgba(12,35,64,.13);
  --r:         16px;
  --max:       1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.8rem, 6vw, 5.2rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 3.5vw, 3.4rem); font-weight: 500; }
h3 { font-size: 1.25rem; font-weight: 600; }

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

/* ─── LAYOUT HELPERS ─────────────────────────────────────────── */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.section { padding: 88px 0; }
.eyebrow {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.rule {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 16px 0 28px;
}

/* ─── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 3px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all .22s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 8px 24px rgba(12,35,64,.28); }
.btn-primary:hover { background: var(--navy-mid); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-gold { background: var(--gold); color: #fff; box-shadow: 0 8px 24px rgba(158,126,63,.3); }
.btn-gold:hover { background: var(--gold-lt); color: #fff; }

/* ─── NAVIGATION ─────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(249,248,245,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.nav {
  max-width: var(--max); margin: 0 auto; padding: 0 28px;
  height: 68px; display: flex; align-items: center;
  justify-content: space-between; gap: 32px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 600; flex-shrink: 0; }
.brand:hover { text-decoration: none; color: var(--navy); }
.brand-mark {
  width: 36px; height: 36px; border-radius: 2px;
  background: var(--navy); display: grid; place-items: center;
  color: #fff; font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem; font-weight: 600; letter-spacing: 0.04em; flex-shrink: 0;
}
.brand-text { font-size: 0.92rem; letter-spacing: 0.01em; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 0.88rem; color: var(--ink-2); }
.nav-links a { color: var(--ink-2); transition: color .18s; }
.nav-links a:hover { color: var(--gold); text-decoration: none; }
.nav-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-pill {
  font-size: 0.84rem; padding: 7px 16px; border-radius: 2px;
  font-weight: 500; color: var(--navy); border: 1px solid var(--line);
  background: var(--surface); transition: all .18s;
}
.nav-pill:hover { border-color: var(--navy); text-decoration: none; color: var(--navy); }
.nav-pill.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; color: var(--ink); font-size: 1.5rem; line-height: 1; }

/* ─── HERO ───────────────────────────────────────────────────── */
.hero { padding: 100px 0 80px; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; top: -120px; right: -100px;
  width: 680px; height: 680px; border-radius: 50%;
  background: radial-gradient(circle, rgba(158,126,63,.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 28px;
  display: grid; grid-template-columns: 1fr 360px; gap: 60px; align-items: center;
}
.hero-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.hero-eyebrow span { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.hero-eyebrow::before { content: ''; display: block; width: 28px; height: 1px; background: var(--gold); }
.hero h1 { margin-bottom: 24px; max-width: 780px; color: var(--navy); }
.hero-sub { font-size: 1.1rem; color: var(--muted); max-width: 600px; line-height: 1.7; margin-bottom: 38px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 32px 28px; box-shadow: var(--shadow-lg); position: relative;
}
.hero-card::before {
  content: ''; position: absolute; top: 0; left: 28px; right: 28px;
  height: 2px; background: linear-gradient(90deg, var(--gold), var(--gold-lt));
  border-radius: 0 0 2px 2px;
}
.hero-card-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.hero-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; color: var(--navy); margin-bottom: 18px; }
.hero-card ul { list-style: none; display: grid; gap: 10px; }
.hero-card li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; color: var(--ink-2); line-height: 1.5; }
.hero-card li::before { content: ''; display: block; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); margin-top: 7px; flex-shrink: 0; }

/* ─── INTRO ──────────────────────────────────────────────────── */
.intro-section { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); padding: 64px 0; }
.intro-section p { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.5rem, 2.8vw, 2.2rem); font-weight: 400; line-height: 1.45; color: var(--navy); max-width: 960px; }

/* ─── SERVICES ───────────────────────────────────────────────── */
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 28px 24px; box-shadow: var(--shadow-sm); transition: box-shadow .25s, transform .25s; position: relative; overflow: hidden; }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card-num { font-family: 'Cormorant Garamond', serif; font-size: 2.2rem; font-weight: 400; color: var(--line); position: absolute; top: 18px; right: 20px; line-height: 1; }
.card h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: 12px; }
.card p { font-size: 0.9rem; color: var(--muted); line-height: 1.65; }

/* ─── APPROACH ───────────────────────────────────────────────── */
.approach-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: start; }
.steps { display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: none; }
.step-num { font-family: 'Cormorant Garamond', serif; font-size: 2rem; font-weight: 400; color: var(--gold); line-height: 1; padding-top: 2px; }
.step h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: 8px; }
.step p { font-size: 0.9rem; color: var(--muted); line-height: 1.65; }

/* ─── PROFILE ────────────────────────────────────────────────── */
.profile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.info-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px 22px; box-shadow: var(--shadow-sm); }
.info-block h3 { font-family: 'DM Sans', sans-serif; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.info-block p, .info-block address { font-size: 0.92rem; color: var(--ink-2); line-height: 1.6; font-style: normal; }

/* ─── BLOG ───────────────────────────────────────────────────── */
#latestPosts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ─── CTA BAND ───────────────────────────────────────────────── */
.cta-band { background: var(--navy); color: #fff; padding: 88px 0; position: relative; overflow: hidden; }
.cta-band::before { content: 'Q'; position: absolute; right: -20px; top: 50%; transform: translateY(-50%); font-family: 'Cormorant Garamond', serif; font-size: 28rem; font-weight: 500; color: rgba(255,255,255,.03); line-height: 1; pointer-events: none; user-select: none; }
.cta-inner { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 60px; align-items: center; }
.cta-band .eyebrow { color: var(--gold-lt); }
.cta-band h2 { font-size: clamp(2rem, 4vw, 3.4rem); color: #fff; margin-bottom: 20px; }
.cta-band p { font-size: 1rem; color: rgba(255,255,255,.7); line-height: 1.7; margin-bottom: 28px; }
.cta-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r); padding: 28px 26px; backdrop-filter: blur(8px); }
.cta-card ul { list-style: none; display: grid; gap: 10px; }
.cta-card li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; color: rgba(255,255,255,.8); line-height: 1.5; }
.cta-card li::before { content: ''; display: block; width: 5px; height: 5px; border-radius: 50%; background: var(--gold-lt); margin-top: 7px; flex-shrink: 0; }

/* ─── CONTACT ────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.contact-copy h2 { color: var(--navy); margin-bottom: 16px; }
.contact-copy p { font-size: 0.95rem; color: var(--muted); line-height: 1.7; }
.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 36px 32px; box-shadow: var(--shadow-lg); display: grid; gap: 18px; }
label { display: grid; gap: 6px; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-2); }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; font: 400 0.94rem/1.5 'DM Sans', sans-serif; color: var(--ink); background: var(--bg); transition: border-color .18s, box-shadow .18s; -webkit-appearance: none; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(12,35,64,.08); background: var(--surface); }
textarea { resize: vertical; }
.check-row { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; }
.check-row { cursor: pointer; }
.check-row input[type="checkbox"] {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; padding: 0; margin: 1px 0 0;
  border: 1.5px solid var(--ink-2); border-radius: 4px;
  background: var(--surface) center / 14px 14px no-repeat;
  cursor: pointer; transition: background-color .15s, border-color .15s, box-shadow .15s;
}
.check-row input[type="checkbox"]:hover { border-color: var(--navy); }
.check-row input[type="checkbox"]:focus-visible { box-shadow: 0 0 0 3px rgba(12,35,64,.18); }
.check-row input[type="checkbox"]:checked {
  background-color: var(--navy); border-color: var(--navy);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.check-row:has(input:checked) span { color: var(--ink); }
.contact-form .check-row.needs-check input[type="checkbox"] { border-color: #b42318; box-shadow: 0 0 0 3px rgba(180,35,24,.12); }
.contact-form button[type="submit"] { transition: background-color .2s, border-color .2s, transform .08s, opacity .2s; }
.contact-form button[type="submit"]:active { transform: scale(.98); }
.contact-form button[type="submit"].is-sending { opacity: .7; cursor: wait; }
.contact-form button[type="submit"].is-sent { background: #2f6b45; border-color: #2f6b45; color: #fff; }
.contact-form button[type="submit"].is-error { background: #9b2c2c; border-color: #9b2c2c; color: #fff; }
.check-row span { font-size: 0.85rem; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted); line-height: 1.5; }
.form-note { font-size: 0.82rem; color: var(--muted); }

/* ─── LEGAL ──────────────────────────────────────────────────── */
.legal-section { max-width: 820px; }
.legal-section h1 { font-size: clamp(2rem, 3.5vw, 2.8rem); color: var(--navy); margin-bottom: 8px; }
.legal-section h2 { font-size: 1.05rem; font-family: 'DM Sans', sans-serif; font-weight: 600; letter-spacing: 0; color: var(--navy); margin-top: 2rem; margin-bottom: 0.6rem; }
.legal-section p, .legal-section li { font-size: 0.9rem; color: var(--muted); line-height: 1.7; margin-bottom: 0.7rem; }
.legal-section ul { padding-left: 1.2rem; }

/* ─── FOOTER ─────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding: 40px 0 52px; }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 0 28px; display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.footer strong { font-size: 0.92rem; }
.footer p, .footer address { font-size: 0.85rem; color: var(--muted); line-height: 1.6; font-style: normal; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--gold); }

/* ─── FLOAT BUTTON ───────────────────────────────────────────── */
.float-btn { position: fixed; right: 24px; bottom: 24px; z-index: 9000; background: var(--navy); color: #fff; border: none; border-radius: 3px; padding: 14px 22px; font: 600 0.85rem/1 'DM Sans', sans-serif; letter-spacing: 0.04em; cursor: pointer; box-shadow: 0 12px 36px rgba(12,35,64,.28); transition: all .2s; display: flex; align-items: center; gap: 8px; }
.float-btn:hover { background: var(--navy-mid); transform: translateY(-2px); }
.float-btn svg { width: 16px; height: 16px; }

/* ─── MODAL ──────────────────────────────────────────────────── */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(12,35,64,.55); z-index: 99999; align-items: center; justify-content: center; padding: 24px; backdrop-filter: blur(4px); }
.modal-overlay.open { display: flex; }
.modal-box { background: var(--surface); width: 100%; max-width: 760px; max-height: 90vh; overflow-y: auto; border-radius: var(--r); padding: 40px; position: relative; }
.modal-close { position: sticky; top: 0; float: right; margin: -14px -14px 0 0; z-index: 5; width: 40px; height: 40px; border-radius: 999px; background: var(--surface); box-shadow: 0 2px 10px rgba(12,35,64,.12); border: none; font-size: 1.6rem; cursor: pointer; color: var(--muted); line-height: 1; }
.modal-close:hover { color: var(--ink); }
.modal-box h2 { font-size: 1.8rem; color: var(--navy); margin-bottom: 8px; }
.modal-box .sub { font-size: 0.92rem; color: var(--muted); margin-bottom: 28px; }
.form-section-title { font-family: 'DM Sans', sans-serif; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin: 24px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.modal-form { display: grid; gap: 14px; }
.modal-form label { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); gap: 5px; }
.modal-form input, .modal-form select, .modal-form textarea { font-size: 0.92rem; padding: 11px 13px; border-radius: 6px; background: var(--bg); }
.modal-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; }
#directValuationResult { display: none; margin: 16px 0; padding: 20px; background: var(--bg); border-radius: 10px; font-family: 'Cormorant Garamond', serif; font-size: 2rem; color: var(--navy); text-align: center; }

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-inner, .approach-grid, .contact-grid, .cta-inner { grid-template-columns: 1fr; }
  .hero::before { display: none; }
  .cards-grid, .profile-grid, #latestPosts { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; flex-direction: column; align-items: flex-start; }
  .nav-links.open { display: flex; position: absolute; top: 68px; left: 12px; right: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 24px; box-shadow: var(--shadow-lg); z-index: 200; gap: 18px; }
  .nav-toggle { display: block; }
  .hero { padding: 72px 0 60px; }
  .hero-card { max-width: 480px; }
}
@media (max-width: 600px) {
  .cards-grid, .profile-grid, #latestPosts { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.6rem; }
  .contact-form { padding: 24px 20px; }
  .modal-box { padding: 28px 20px; }
  .footer-inner { flex-direction: column; gap: 24px; }
  .nav { padding: 0 18px; }
}

#directValuationResult.qsvm-result {
  display:block;
  margin:20px 0;
  padding:22px;
  background:#f7f7f4;
  border:1px solid rgba(184,146,74,.28);
  border-radius:14px;
  font-family:inherit;
  font-size:1rem;
  font-weight:400;
  text-align:left;
}
.qsvm-range { font-family:'Cormorant Garamond',serif; font-size:2rem; line-height:1.1; color:var(--navy); margin:4px 0 14px; font-weight:700; }
.qsvm-meta { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:14px; }
.qsvm-badge { padding:6px 10px; border-radius:999px; background:#fff; border:1px solid rgba(10,35,66,.14); font-size:.78rem; font-weight:600; }
.qsvm-drivers { margin:10px 0 0; padding-left:18px; color:#4d5560; }
.qsvm-note { margin-top:14px; font-size:.78rem; line-height:1.5; color:#68717c; }

/* ─── EINZELSEITEN (seit Aufteilung der Startseite) ──────────── */
/* Kurze Seiten: Fußzeile sitzt trotzdem am unteren Rand */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
/* Startseite zeigt nur den Einstieg, ohne langes Scrollen */
[data-page="home"] .hero { padding: 72px 0 64px; }
/* aktueller Menüpunkt */
.nav-links a.active { color: #fff !important; box-shadow: inset 0 -2px 0 rgba(255,255,255,.7); padding-bottom: 3px; }
.footer { padding: 32px 0 36px; }
.footer-links a { white-space: nowrap; }
/* Unterseiten etwas kompakter als die alten Bänder der langen Startseite */
[data-page] main > .section { padding: 56px 0; }
.about-lead { font-size: 1.15rem; line-height: 1.6; color: var(--ink-2); max-width: 62ch; margin: 0 0 32px; }
@media (max-width: 960px) { .nav-toggle { margin-left: auto; } }

/* ─── SERVICES: Reiter und Produktstatus ─────────────────────── */
.svc-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 0 24px; }
.svc-tabs button { background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 10px 16px; font: 500 0.95rem/1.2 inherit; color: var(--muted); cursor: pointer; }
.svc-tabs button:hover { color: var(--ink); }
.svc-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--navy); }
.svc-panel[hidden] { display: none; }
.svc-status { display: inline-block; margin-bottom: 12px; padding: 3px 9px; border-radius: 4px; font-size: 0.75rem; font-weight: 600; line-height: 1.4; border: 1px solid var(--line); background: var(--bg); color: var(--ink-2); }
.svc-status--live { background: #e7f1ea; border-color: #b9d6c2; color: #24543a; }
.svc-status--pilot { background: #eaf0f6; border-color: #c4d2e1; color: #24405f; }
.svc-status--dev { background: #f6f1e6; border-color: #e2d6b8; color: #6b5420; }
.svc-link { display: inline-block; margin-top: 12px; font-size: 0.88rem; font-weight: 600; }
.svc-note { margin-top: 20px; font-size: 0.86rem; color: var(--muted); max-width: 90ch; }
[data-page="services"] main > .section { padding: 40px 0 36px; }
[data-page="services"] .rule { margin: 12px 0 20px; }
[data-page="services"] .svc-note { max-width: none; margin-top: 16px; }
