/* =====================================================================
   i-Project Reparaturservice – Design-System
   Blau/Weiß, Marke #2061B7 · Akzent #281A39
   ===================================================================== */

:root {
  --blue:        #2061B7;
  --blue-dark:   #164a8f;
  --blue-deep:   #103a72;
  --ink:         #281A39;   /* dunkler Marken-Akzent */
  --ink-soft:    #4a4356;
  --white:       #ffffff;
  --bg:          #f5f8fc;   /* heller Blauton für Sektionen */
  --bg-tint:     #eef3fa;
  --line:        #dde6f1;
  --success:     #00b67a;   /* Wertgarantie / Trust */
  --amber:       #c77700;
  --amber-bg:    #fff4e0;

  --radius:      14px;
  --radius-sm:   10px;
  --shadow:      0 1px 2px rgba(16,58,114,.06), 0 8px 24px rgba(16,58,114,.08);
  --shadow-lg:   0 12px 40px rgba(16,58,114,.16);
  --maxw:        1140px;
  --font-display:'Manrope', system-ui, sans-serif;
  --font-body:   'Inter', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p  { margin: 0 0 1rem; }
a  { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-block; font-family: var(--font-display); font-weight: 700;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: .75rem;
}
.muted { color: var(--ink-soft); }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  padding: .85rem 1.6rem; border-radius: var(--radius-sm); border: 2px solid transparent;
  cursor: pointer; transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); color: var(--white); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-ghost:hover { background: var(--bg-tint); color: var(--blue-dark); }
.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  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: .65rem; font-family: var(--font-display); font-weight: 800; color: var(--ink); font-size: 1.1rem; }
.brand img { height: 40px; width: auto; }
.brand span b { color: var(--blue); }
.site-header .brand { color: var(--blue); }
.nav-links { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  color: var(--ink); padding: .5rem .7rem; border-radius: 8px;
}
.nav-links a:hover { background: var(--bg); color: var(--blue); }
.nav-links a.active { color: var(--blue); }
.nav-cta { margin-left: .5rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .2s; }

@media (max-width: 940px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--white); border-bottom: 1px solid var(--line); padding: 12px 16px 20px;
    gap: 2px; box-shadow: var(--shadow); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .8rem .6rem; }
  .nav-cta { margin: .5rem 0 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(32,97,183,.14), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--white) 100%);
  padding: clamp(32px, 4vw, 56px) 0 clamp(40px, 6vw, 72px);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero .hero-grid { align-items: start; }
.hero h1 span { color: var(--blue); }
.hero p.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }
.trust-row { display: flex; flex-wrap: wrap; gap: 18px 28px; margin-top: 2rem; }
.trust-item { display: flex; align-items: center; gap: .55rem; font-weight: 600; font-size: .92rem; color: var(--ink); }
.trust-item svg { flex: none; }
.hero-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 8px;
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Generic sections ---------- */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section.tint { background: var(--bg); }
.section.ink { background: var(--ink); color: #e9e6f0; }
.section.ink h1, .section.ink h2, .section.ink h3 { color: #fff; }
.section-head { max-width: 60ch; margin-bottom: 2.5rem; }
.section-head.center { margin-left: auto; margin-right: auto; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--bg-tint); color: var(--blue); margin-bottom: 14px;
}
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--ink-soft); font-size: .96rem; margin: 0; }

/* repair category card with price hint */
.cat-card .price-hint { margin-top: 14px; font-family: var(--font-display); font-weight: 700; color: var(--blue); font-size: .95rem; }

/* ---------- Steps / numbered ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 8px; }
.step .num {
  font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: var(--white);
  background: var(--blue); width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center; margin-bottom: 12px;
}
.step h3 { font-size: 1.05rem; }
.step p { color: var(--ink-soft); font-size: .94rem; margin: 0; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #fff; border-radius: var(--radius); padding: clamp(28px, 5vw, 48px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-banner h2 { color: #fff; margin: 0; }
.cta-banner p { color: rgba(255,255,255,.85); margin: .35rem 0 0; }
.cta-banner .btn-primary { background: #fff; color: var(--blue); }
.cta-banner .btn-primary:hover { background: var(--bg); color: var(--blue-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfc9d8; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer a { color: #cfc9d8; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: .55rem; font-size: .95rem; }
.footer-brand p { font-size: .95rem; color: #b4adc2; max-width: 32ch; }
.footer-social { display: flex; gap: 12px; margin-top: 1rem; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 9px; background: rgba(255,255,255,.08);
  display: grid; place-items: center; color: #fff;
}
.footer-social a:hover { background: var(--blue); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .85rem; color: #9a93ab;
}
.footer-bottom a { color: #9a93ab; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Page hero (sub pages) ---------- */
.page-hero { background: var(--bg); padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.page-hero h1 { margin-bottom: .4rem; }
.page-hero p { color: var(--ink-soft); font-size: 1.1rem; max-width: 60ch; margin: 0; }

/* ---------- Prose ---------- */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 2.2rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .5rem; }

/* ---------- Info / contact ---------- */
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 1.1rem; }
.info-list .ico { color: var(--blue); flex: none; margin-top: 2px; }
.info-list b { display: block; font-family: var(--font-display); }

.badge-soft {
  display: inline-flex; align-items: center; gap: .5rem; background: var(--bg-tint);
  color: var(--blue-dark); font-weight: 700; font-size: .85rem; padding: .4rem .8rem;
  border-radius: 999px; font-family: var(--font-display);
}

/* =====================================================================
   Reparatur-Formular (Stepper)
   ===================================================================== */
.repair-form { font-family: var(--font-body); }
.repair-form .rf-head { padding: 22px 24px 0; }
.repair-form .rf-head h3 { font-size: 1.25rem; margin-bottom: .2rem; }
.repair-form .rf-head p { color: var(--ink-soft); font-size: .92rem; margin: 0; }
.rf-body { padding: 18px 24px 24px; }

.rf-field { margin-bottom: 16px; }
.rf-field label {
  display: block; font-family: var(--font-display); font-weight: 700; font-size: .9rem;
  margin-bottom: 6px; color: var(--ink);
}
.rf-field select, .rf-field input, .rf-field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: .7rem .8rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white); transition: border-color .15s ease, box-shadow .15s ease;
}
.rf-field select:focus, .rf-field input:focus, .rf-field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(32,97,183,.15);
}
.rf-field select:disabled { background: var(--bg); color: #9aa3b2; cursor: not-allowed; }
.rf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .rf-row { grid-template-columns: 1fr; } }

.price-box {
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--bg-tint); border: 1.5px solid var(--blue); border-radius: var(--radius-sm);
  padding: 14px 16px; margin: 4px 0 18px;
}
.price-box.show { display: flex; }
.price-box .pb-label { font-size: .85rem; color: var(--ink-soft); font-family: var(--font-display); font-weight: 700; }
.price-box .pb-value { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--blue); }

.term-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.term-toggle button {
  font-family: var(--font-display); font-weight: 700; font-size: .92rem; cursor: pointer;
  padding: .75rem .6rem; border-radius: var(--radius-sm); border: 1.5px solid var(--line);
  background: var(--white); color: var(--ink); transition: .15s;
}
.term-toggle button.active { border-color: var(--blue); background: var(--bg-tint); color: var(--blue-dark); }

.spontan-hint {
  display: none; background: var(--amber-bg); border: 1px solid #f0d8a8; color: var(--amber);
  border-radius: var(--radius-sm); padding: 12px 14px; font-size: .9rem; margin-bottom: 14px;
}
.spontan-hint.show { display: block; }

.opening-hours {
  display: none; background: var(--bg-tint); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 14px; font-size: .9rem;
}
.opening-hours.show { display: block; }
.opening-hours b { font-family: var(--font-display); display: block; margin-bottom: 6px; color: var(--ink); }
.opening-hours .oh-row { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; color: var(--ink-soft); }
.opening-hours .oh-row span:last-child { color: var(--ink); font-weight: 600; white-space: nowrap; }

.rf-success, .rf-error { display: none; padding: 20px 24px; border-radius: var(--radius-sm); margin: 4px 24px 24px; }
.rf-success { background: #e7f8f1; border: 1px solid #b6e8d4; color: #0a7a55; }
.rf-error   { background: #fdeaea; border: 1px solid #f3c2c2; color: #b3261e; }
.rf-success.show, .rf-error.show { display: block; }
.rf-success h3 { color: #0a7a55; }

.rf-note { font-size: .8rem; color: var(--ink-soft); margin-top: 10px; }
