/* =========================================================
   von Busch – Drucker-Leasing & Reparatur Landingpage
   Design-Tokens: offizielle vonbusch.digital Brand-Tokens
   (Quelle: Base.astro, AutomaticCSS – VON-1748)
   ========================================================= */

:root {
  --c-primary:        #00b4e1;   /* offiziell: --primary (Cyan) */
  --c-primary-dark:   #009dc8;   /* Cyan dunkel (Hover) */
  --c-accent:         #ffff43;   /* offiziell: --action (Gelb CTA) */
  --c-accent-dark:    #d4d400;   /* Gelb dunkel (Hover/Ticks) */
  --c-ink:            #0f0f14;   /* offiziell: --base (Dunkelster Text) */
  --c-body:           #373749;   /* offiziell: --base-dark */
  --c-muted:          #6e6e91;   /* offiziell: --base-medium */
  --c-line:           #e2e8ee;
  --c-bg:             #ffffff;
  --c-bg-alt:         #f5f8fb;
  --c-bg-dark:        #0f0f14;   /* offiziell: --base (Dunkle Sections + Footer) */
  --c-white:          #ffffff;

  --radius:           14px;
  --radius-sm:        10px;
  --shadow:           0 10px 30px rgba(15, 61, 99, 0.10);
  --shadow-sm:        0 4px 14px rgba(15, 61, 99, 0.08);
  --maxw:             1140px;
  --font:             'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--c-body);
  background: var(--c-bg);
  line-height: 1.6;
  font-size: 17px;
}

h1, h2, h3 { color: var(--c-ink); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.15rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.15rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p  { margin: 0 0 1rem; }
a  { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 780px; }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; font-weight: 600; font-size: 1rem; line-height: 1;
  padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .12s ease, background .2s ease, box-shadow .2s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--c-accent); color: #1a1204; border-color: var(--c-accent); }
.btn-primary:hover { background: var(--c-accent-dark); border-color: var(--c-accent-dark); }
.btn-outline { background: transparent; color: var(--c-primary); border-color: var(--c-primary); }
.btn-outline:hover { background: var(--c-primary); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.24); }
.btn-lg { padding: 1rem 1.85rem; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; }
.btn-header { padding: .6rem 1.15rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-line);
}
.header-inner { display: flex; align-items: center; gap: 1.25rem; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; color: var(--c-ink); }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-grid; place-items: center; width: 36px; height: 36px;
  background: var(--c-primary); color: #fff; border-radius: 9px; font-size: .95rem; font-weight: 800;
}
.brand-name { font-size: 1.15rem; letter-spacing: -0.01em; }
.main-nav { display: flex; gap: 1.4rem; margin-left: auto; }
.main-nav a { color: var(--c-body); font-weight: 500; font-size: .98rem; }
.main-nav a:hover { color: var(--c-primary); text-decoration: none; }
.btn-header { margin-left: .25rem; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.nav-toggle span { width: 24px; height: 2px; background: var(--c-ink); border-radius: 2px; transition: .2s; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, #eef4fa 0%, #f8fbfe 55%, #ffffff 100%);
  padding: clamp(2.5rem, 6vw, 5rem) 0;
  border-bottom: 1px solid var(--c-line);
}
.hero-grid { display: grid; grid-template-columns: 1.35fr .85fr; gap: 2.5rem; align-items: center; }
.eyebrow, .section-eyebrow {
  text-transform: uppercase; letter-spacing: .08em; font-size: .8rem;
  font-weight: 700; color: var(--c-accent-dark); margin: 0 0 .75rem;
}
.hero-copy .lead { font-size: 1.18rem; color: var(--c-body); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .85rem; margin: 1.6rem 0 1.4rem; }
.hero-trust { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .4rem .9rem; }
.hero-trust li { color: var(--c-ink); font-weight: 500; font-size: .97rem; }
.hero-card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.8rem;
}
.hero-card h2 { font-size: 1.35rem; }
.hero-card p { color: var(--c-muted); font-size: .98rem; }
.hero-card-note { font-size: .82rem; margin-top: .9rem; margin-bottom: 0; }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section-alt { background: var(--c-bg-alt); }
.section-title { text-align: center; margin-bottom: 2.5rem; }
.section-eyebrow { text-align: center; }
.section-eyebrow.light, .section-title.light { color: #fff; }
.section-title.light { opacity: .98; }
.section-note { text-align: center; color: var(--c-muted); margin-top: 2rem; font-size: .97rem; }

/* ---------- Card grids ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card, .offer-card, .service-card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow-sm);
}
.card h3, .offer-card h3, .service-card h3 { margin-bottom: .4rem; }
.card p, .offer-card p, .service-card p { color: var(--c-body); margin-bottom: 0; }
.card-icon {
  display: inline-grid; place-items: center; width: 46px; height: 46px; margin-bottom: 1rem;
  background: #eef4fa; color: var(--c-primary); border-radius: 12px; font-size: 1.3rem; font-weight: 700;
}
.offer-card { display: flex; flex-direction: column; position: relative; }
.offer-featured { border-color: var(--c-accent); box-shadow: var(--shadow); }
.badge {
  position: absolute; top: -12px; right: 18px; background: var(--c-accent); color: #1a1204;
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  padding: .3rem .7rem; border-radius: 999px;
}
.ticks { list-style: none; padding: 0; margin: 1rem 0 1.4rem; flex: 1; }
.ticks li { padding-left: 1.5rem; position: relative; margin-bottom: .5rem; color: var(--c-body); }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--c-accent-dark); font-weight: 700; }

/* ---------- Dark section ---------- */
.section-dark { background: var(--c-bg-dark); }
.section-dark .service-card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); }
.section-dark .service-card h3 { color: #fff; }
.section-dark .service-card p { color: rgba(255,255,255,.82); }
.section-dark .center { margin-top: 2.5rem; }

/* ---------- Steps ---------- */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.steps li { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.step-num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: .9rem;
  background: var(--c-primary); color: #fff; border-radius: 50%; font-weight: 800;
}
.steps h3 { margin-bottom: .35rem; }
.steps p { color: var(--c-body); margin-bottom: 0; font-size: .97rem; }

/* ---------- FAQ ---------- */
.faq details {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-sm);
  padding: 1.1rem 1.3rem; margin-bottom: .8rem;
}
.faq summary { cursor: pointer; font-weight: 600; color: var(--c-ink); list-style: none; position: relative; padding-right: 2rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: -2px; font-size: 1.4rem; color: var(--c-accent-dark); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .8rem 0 0; color: var(--c-body); }

/* ---------- CTA / Formular ---------- */
.section-cta { background: var(--c-bg-alt); }
.cta-intro { text-align: center; color: var(--c-body); max-width: 46em; margin: 0 auto 2.2rem; }
.lead-form {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 2rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { margin-bottom: 1.1rem; display: flex; flex-direction: column; }
.field label { font-weight: 600; font-size: .92rem; color: var(--c-ink); margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--c-ink);
  padding: .75rem .85rem; border: 1px solid var(--c-line); border-radius: var(--radius-sm);
  background: #fdfefe; transition: border-color .15s ease, box-shadow .15s ease; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(15,61,99,.12);
}
.field textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: .65rem; align-items: flex-start; font-size: .92rem; color: var(--c-body); margin: .3rem 0 1.3rem; }
.consent input { margin-top: .25rem; flex-shrink: 0; }
.form-status { text-align: center; margin: 1rem 0 0; font-weight: 600; min-height: 1.2em; }
.form-status.ok { color: #1a7f3c; }
.form-status.err { color: #c0392b; }
.direct-contact { text-align: center; margin-top: 2rem; color: var(--c-muted); }
.contact-lines { font-weight: 600; color: var(--c-ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-bg-dark); color: rgba(255,255,255,.8); padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; align-items: start; }
.brand-footer .brand-name { color: #fff; }
.brand-footer .brand-mark { background: #fff; color: var(--c-primary); }
.footer-tagline { margin-top: .9rem; max-width: 32em; font-size: .95rem; }
.footer-nav, .footer-legal { display: flex; flex-direction: column; gap: .6rem; }
.site-footer a { color: rgba(255,255,255,.82); font-size: .95rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 2rem; padding-top: 1.2rem; font-size: .85rem; }
.footer-bottom p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .cards-3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .main-nav, .btn-header { display: none; }
  .nav-toggle { display: flex; }
  .site-header.nav-open .main-nav {
    display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--c-line); padding: 1rem 20px; gap: 1rem; margin: 0;
  }
  .cards-3, .steps, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .hero-trust { grid-template-columns: 1fr; }
  .lead-form { padding: 1.4rem; }
  .hero-cta .btn { flex: 1 1 100%; }
}
