/* =========================================================
   arcus / dein_finanzgutachter – OnePager
   Design nach STYLEGUIDE.md (Navy / Peach / Raleway)
   ========================================================= */

/* Raleway lokal gehostet (Variable Font) – kein Google-Fonts-Aufruf (DSGVO) */
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/raleway-variable.woff2') format('woff2');
}

:root {
  /* Farbpalette aus dem Styleguide */
  --white:  #FEFEFE;
  --peach:  #FBB7AA;
  --navy:   #023262;
  --lightblue: #97CEF7;
  --mauve:  #B186B3;
  --slate:  #3A5870;

  /* Abgeleitete Töne */
  --navy-900: #021f3d;
  --navy-700: #023262;
  --ink:      #10243f;
  --muted:    #5b6b80;
  --line:     #e4e9f0;
  --peach-soft: #fde6e0;

  --maxw: 1120px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px -20px rgba(2, 50, 98, .35);
  --shadow-sm: 0 8px 24px -12px rgba(2, 50, 98, .30);
  --font: "Raleway", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 { font-weight: 800; line-height: 1.12; letter-spacing: -0.01em; color: var(--navy); margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 900; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.section { padding: clamp(56px, 9vw, 110px) 0; }
.section--tint { background: #f6f8fb; }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }

.eyebrow {
  display: inline-block;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mauve);
  margin-bottom: 16px;
}
.section--navy .eyebrow { color: var(--peach); }

.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.section--navy .lead { color: rgba(255,255,255,.82); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font); font-weight: 800; font-size: 1rem;
  padding: 15px 28px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  text-align: center; line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--peach); color: var(--navy); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: #ffc8bd; }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-900); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.section--navy .btn--ghost { color: var(--white); border-color: rgba(255,255,255,.6); }
.btn--light { background: var(--white); color: var(--navy); }
.btn--block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(254,254,254,.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; color: var(--navy); font-size: 1.15rem; letter-spacing: -.02em; }
.brand .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--peach); display: inline-block; }
.nav-links { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-weight: 700; font-size: .96rem; color: var(--ink); white-space: nowrap; }
.nav-links a:hover { color: var(--mauve); }
.nav-login-item { display: none; } /* Desktop: durch Header-Button abgedeckt; nur im Mobil-Menü sichtbar */
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .btn { padding: 11px 18px; font-size: .9rem; white-space: nowrap; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--navy); border-radius: 3px; margin: 5px 0; transition: .25s; }

/* ---------- Dropdown (Leistungen) ---------- */
.has-dropdown { position: relative; }
.has-dropdown > a .caret { font-size: .7em; margin-left: 2px; transition: transform .2s ease; display: inline-block; }
.has-dropdown:hover > a .caret, .has-dropdown:focus-within > a .caret { transform: rotate(180deg); }
.dropdown {
  list-style: none; margin: 0; padding: 8px;
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(6px);
  min-width: 220px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow-sm); z-index: 60;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.dropdown::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; } /* Hover-Brücke */
.dropdown li { margin: 0; }
.dropdown a { display: block; padding: 10px 14px; border-radius: 9px; font-size: .92rem; font-weight: 700; color: var(--ink); white-space: nowrap; }
.dropdown a:hover { background: var(--peach-soft); color: var(--navy); }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}

/* ---------- Hero ---------- */
.hero { background: linear-gradient(165deg, #fff 0%, var(--peach-soft) 100%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: clamp(48px, 7vw, 90px) 0; }
.hero h1 span { color: var(--mauve); }
.hero .lead { margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; color: var(--muted); font-weight: 700; font-size: .92rem; }
.hero-trust .pill { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .star { color: var(--peach); }
.hero-media { position: relative; }
.hero-media img { border-radius: 26px; box-shadow: var(--shadow); width: 100%; object-fit: cover; aspect-ratio: 4/5; }
.hero-badge {
  position: absolute; left: -18px; bottom: 26px; background: var(--navy); color: #fff;
  padding: 14px 18px; border-radius: 16px; box-shadow: var(--shadow); max-width: 220px;
  font-weight: 800; font-size: .9rem; line-height: 1.3;
}
.hero-badge small { display: block; color: var(--peach); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
.hero-media img.hero-award {
  position: absolute; bottom: 26px; right: 18px; z-index: 2;
  width: 110px; height: auto; aspect-ratio: auto;
  border-radius: 0; box-shadow: none; object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(2,50,98,.3));
}
@media (max-width: 560px) { .hero-media img.hero-award { width: 90px; bottom: 20px; right: 12px; } }

/* ---------- Logos / proof strip ---------- */
.proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.proof-row { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; justify-content: center; padding: 22px 0; color: var(--slate); font-weight: 700; font-size: .95rem; }
.proof-row span { display: inline-flex; align-items: center; gap: 10px; }
.proof-row .sep { color: var(--peach); font-weight: 800; }
.proof-row .proof-item img { height: 26px; width: auto; }

/* ---------- Pain / Empathy ---------- */
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.pain-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.pain-card .ico { font-size: 1.6rem; margin-bottom: 10px; }

/* ---------- Gutachten / Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.step { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 30px; position: relative; }
.step .num { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--peach); color: var(--navy); font-weight: 900; font-size: 1.2rem; margin-bottom: 16px; }
.step h3 { margin-bottom: 8px; }
.step p { color: rgba(255,255,255,.78); margin: 0; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; }
.about-media img { border-radius: 22px; box-shadow: var(--shadow); aspect-ratio: 4/5; object-fit: cover; }
.about-values { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 12px; }
.about-values li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.about-values li::before { content: "✓"; color: var(--mauve); font-weight: 900; }

/* ---------- Leistungen ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 44px; }
.svc-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .2s ease; }
.svc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.svc-card .ico { width: 52px; height: 52px; border-radius: 14px; background: var(--peach-soft); color: var(--navy); display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 16px; }
.svc-card h3 { margin-bottom: 8px; }
.svc-card p { color: var(--muted); margin: 0; font-size: .98rem; }

/* ---------- Akkordeon (Detail-Aufklappen auf Leistungs-Unterseiten) ---------- */
.acc-list { display: grid; gap: 14px; margin-top: 8px; }
.acc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow .2s ease; }
.acc[open] { box-shadow: var(--shadow); }
.acc > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 22px 26px; }
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary:hover .acc-title { color: var(--mauve); }
.acc-ico { width: 46px; height: 46px; flex: 0 0 auto; border-radius: 12px; background: var(--peach-soft); display: grid; place-items: center; font-size: 1.35rem; }
.acc-head { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.acc-title { font-weight: 800; font-size: 1.15rem; line-height: 1.2; color: var(--navy); }
.acc-sub { font-size: .82rem; font-weight: 600; color: var(--muted); margin-top: 2px; }
.acc-arrow { flex: 0 0 auto; color: var(--mauve); font-size: 1.1rem; transition: transform .2s ease; }
.acc[open] .acc-arrow { transform: rotate(180deg); }
.acc-body { padding: 2px 26px 26px; }
.acc-body p { color: var(--muted); font-size: 1rem; margin: 0 0 12px; }
.acc-body p:last-child { margin-bottom: 0; }

/* ---------- Lead Magnet ---------- */
.lead-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.lead-info { background: var(--mauve); color: #fff; padding: clamp(32px, 5vw, 56px); }
.lead-info h2 { color: #fff; }
.lead-info ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.lead-info li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.lead-info li::before { content: "★"; color: var(--navy); }
.lead-form { background: #fff; padding: clamp(32px, 5vw, 56px); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 7px; color: var(--navy); }
.field input[type="text"], .field input[type="email"] {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 1rem; color: var(--ink); transition: border .15s ease;
}
.field input:focus { outline: none; border-color: var(--mauve); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .85rem; color: var(--muted); margin: 6px 0 20px; }
.consent input { margin-top: 4px; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--mauve); }
.consent a { color: var(--mauve); text-decoration: underline; }
.form-note { font-size: .78rem; color: var(--muted); margin-top: 14px; }
.form-success { display: none; background: var(--peach-soft); border: 1.5px solid var(--peach); border-radius: var(--radius-sm); padding: 20px; font-weight: 700; color: var(--navy); }
.form-success.show { display: block; }

/* ---------- Final CTA ---------- */
.cta-final { text-align: center; }
.cta-final .btn { margin: 6px; }
.cta-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.75); padding: 56px 0 32px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.site-footer h4 { color: #fff; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 16px; }
.site-footer a { color: rgba(255,255,255,.75); }
.site-footer a:hover { color: var(--peach); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.social-row { display: flex; gap: 14px; margin-top: 14px; }
.social-row a { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; color: #fff; font-weight: 800; transition: background .2s; }
.social-row a:hover { background: var(--peach); color: var(--navy); }
.social-row svg { width: 20px; height: 20px; fill: currentColor; display: block; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .82rem; }

/* ---------- Nach-oben-Button (links mittig, fixiert) ---------- */
.to-top {
  position: fixed; left: 0; top: 50%; z-index: 80;
  transform: translateY(-50%) translateX(-110%);
  width: 48px; height: 48px; border: 0; cursor: pointer;
  background: var(--peach); color: var(--navy);
  border-radius: 0 14px 14px 0; box-shadow: var(--shadow-sm);
  display: grid; place-items: center; font-size: 1.5rem; line-height: 1;
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, transform .25s ease, background .2s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(-50%) translateX(0); }
.to-top:hover { background: #ffc8bd; }
@media (max-width: 560px) { .to-top { width: 42px; height: 42px; font-size: 1.3rem; } }

/* ---------- Legal pages ---------- */
.legal { max-width: 820px; margin: 0 auto; padding: 60px 24px 90px; }
.legal h1 { margin-bottom: 8px; }
.legal h2 { font-size: 1.4rem; margin-top: 2em; }
.legal .back { display: inline-block; margin-bottom: 30px; font-weight: 700; color: var(--mauve); }
.placeholder { background: #fff6cc; border: 1px dashed #d6b400; border-radius: 8px; padding: 2px 8px; font-weight: 700; color: #8a6d00; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-media { order: -1; max-width: 420px; }
  .pain-grid, .steps, .svc-grid, .lead-wrap, .footer-grid { grid-template-columns: 1fr; }
  .nav-links, .nav-cta .btn--ghost { display: none; }
  .nav-login-item { display: block; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: flex-start; position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; padding: 18px 24px; gap: 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm);
  }
  /* Untermenü auf Mobil immer eingerückt sichtbar (kein Hover) */
  .nav.open .has-dropdown { width: 100%; }
  .nav.open .has-dropdown > a .caret { display: none; }
  .nav.open .dropdown {
    position: static; transform: none; opacity: 1; visibility: visible; pointer-events: auto;
    box-shadow: none; border: 0; background: transparent; min-width: 0;
    padding: 10px 0 0 16px; margin-top: 4px; border-left: 2px solid var(--line);
  }
  .nav.open .dropdown::before { display: none; }
  .nav.open .dropdown a { padding: 7px 0; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .hero-actions .btn, .lead-form .btn { width: 100%; justify-content: center; }
}
