/* =========================================================
   AutoCheck – KFZ-Gutachten · Stylesheet
   ========================================================= */

:root {
  --navy-900: #0a2347;
  --navy-800: #0d2c59;
  --navy-700: #143a72;
  --blue: #1f6fd0;
  --blue-dark: #1559ad;
  --blue-light: #57a0e8;
  /* Akzentfarbe = metallisches Blau (Logo-Stil, ersetzt das frühere Orange) */
  --accent: #1f6fd0;
  --accent-dark: #1559ad;
  --steel: #4d6b94;
  --green: #22c55e;

  /* Chrome-/Metallic-Verläufe (Logo-Look) */
  --grad-blue: linear-gradient(135deg, #3b8fe6 0%, #1f6fd0 46%, #124a93 100%);
  --grad-chrome: linear-gradient(180deg, #ffffff 0%, #dcebfb 30%, #9fc2e6 70%, #6f9bcb 100%);

  --ink: #0f172a;
  --muted: #5b6b82;
  --line: #e6ebf3;
  --bg: #ffffff;
  --bg-alt: #f3f7fc;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, .06);
  --shadow: 0 14px 40px rgba(15, 23, 42, .10);
  --shadow-lg: 0 30px 70px rgba(10, 26, 48, .22);

  --container: 1180px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Poppins", var(--font-body);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -.02em; color: var(--navy-900); }

/* generic line-icon styling */
.ico { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }

.section { padding: clamp(64px, 9vw, 110px) 0; }
.section--alt { background: var(--bg-alt); }

.section__head { max-width: 680px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section__title { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 700; }
.section__sub { margin-top: 14px; color: var(--muted); font-size: 1.06rem; }

.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue-dark); margin-bottom: 14px;
  padding: 6px 14px; border-radius: 999px; background: rgba(37, 99, 235, .09);
}
.eyebrow--light { color: #bcd4ff; background: rgba(255, 255, 255, .1); }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--navy-900); color: #fff; padding: 12px 18px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--blue); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-head); font-weight: 600; font-size: .97rem;
  padding: 12px 22px; border-radius: 999px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  white-space: nowrap;
}
.btn .ico { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .ico { transform: translateX(3px); }
.btn:focus-visible { outline: 3px solid var(--btn-focus-ring, var(--navy-900)); outline-offset: 2px; }
.hero, .cta-band, .nf { --btn-focus-ring: #ffffff; }

.btn--primary { background: linear-gradient(135deg, #1f6fd0 0%, #1559ad 46%, #124a93 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), 0 10px 24px rgba(21, 89, 173, .38); }
.btn--primary:hover { background: linear-gradient(135deg, #1a5fb8 0%, #124a93 55%, #0e3f80 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), 0 14px 30px rgba(21, 89, 173, .5); }

.btn--ghost { background: rgba(255,255,255,.08); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
.btn--ghost:hover { background: rgba(255,255,255,.16); }

.btn--light { background: #fff; color: var(--navy-900); }
.btn--light:hover { background: #eef3fb; }

.btn--lg { padding: 15px 28px; font-size: 1.02rem; }
.btn--block { width: 100%; }

/* ---------- Topbar ---------- */
.topbar { background: var(--navy-900); color: #c8d6ec; font-size: .85rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 42px; gap: 16px; }
.topbar__left, .topbar__right { display: flex; align-items: center; gap: 20px; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; transition: color .2s; }
.topbar__item:hover { color: #fff; }
.topbar .ico { width: 15px; height: 15px; color: var(--accent); }
.topbar__badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent); color: #fff; font-weight: 600;
  padding: 4px 11px; border-radius: 999px; font-size: .8rem;
}
.topbar__badge .ico { color: #fff; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: #ffffff;
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s, border-color .25s;
}
.header.is-scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 20px; }

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__logo { height: 56px; width: auto; display: block; }
/* Footer: Logo auf hellem „Schild", damit es auf dunklem Grund lesbar bleibt */
.brand__plate { display: inline-grid; place-items: center; padding: 9px 14px; background: #fff; border-radius: 14px; box-shadow: var(--shadow-sm); }
.brand--footer .brand__logo { height: 46px; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav__link {
  font-family: var(--font-head); font-weight: 500; font-size: .96rem; color: #2a3b54;
  padding: 9px 13px; border-radius: 9px; transition: color .2s, background .2s;
}
.nav__link:hover, .nav__link.is-active { color: var(--blue); background: rgba(37,99,235,.07); }
.nav__cta { margin-left: 8px; color: #fff; }
.nav__cta:hover { color: #fff; }

.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; color: var(--navy-900); }
.nav-toggle svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; margin: 0 auto; }
.nav-toggle__close { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #eaf1fb; background: radial-gradient(120% 120% at 80% -10%, var(--navy-700) 0%, var(--navy-900) 55%); overflow: hidden; }
.hero__glow { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(420px 420px at 88% 18%, rgba(87,160,232,.30), transparent 70%),
    radial-gradient(520px 520px at 10% 90%, rgba(31,111,208,.34), transparent 70%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; padding: clamp(56px, 8vw, 96px) 0; }
.hero__title { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 800; color: #fff; }
.hero__title span { color: var(--blue-light); }
.hero__lead { margin-top: 20px; font-size: clamp(1.05rem, 2vw, 1.2rem); color: #c4d3ea; max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__usps { display: flex; flex-wrap: wrap; gap: 18px 26px; margin-top: 34px; color: #cfe0f7; font-size: .96rem; }
.hero__usps li { display: inline-flex; align-items: center; gap: 8px; }
.hero__usps .ico { width: 18px; height: 18px; color: var(--green); }

.hero__visual { display: flex; justify-content: center; }
.hero__illustration { width: 100%; max-width: 480px; filter: drop-shadow(0 30px 60px rgba(0,0,0,.35)); animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Stats ---------- */
.stats { margin-top: -38px; position: relative; z-index: 5; }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 32px 24px;
}
.stat { text-align: center; padding: 8px; position: relative; }
.stat:not(:last-child)::after { content: ""; position: absolute; right: -9px; top: 18%; height: 64%; width: 1px; background: var(--line); }
.stat__num { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.8rem, 3.2vw, 2.5rem); color: var(--navy-900); line-height: 1; }
.stat__num span { color: var(--blue); }
.stat__label { margin-top: 8px; color: var(--muted); font-size: .95rem; }

/* ---------- Cards (Leistungen) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #d3e0f3; }
.card__icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(31,111,208,.14), rgba(87,160,232,.16)); color: var(--blue); margin-bottom: 18px; }
.card__icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card__title { font-size: 1.2rem; font-weight: 600; margin-bottom: 9px; }
.card p { color: var(--muted); font-size: .98rem; }

.soforthilfe__cta { text-align: center; margin-top: 36px; }

/* ---------- Steps (Ablauf) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 24px; box-shadow: var(--shadow-sm); }
.step__num { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
  background: var(--navy-900); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; margin-bottom: 16px; }
.step__title { font-size: 1.12rem; font-weight: 600; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .96rem; }
.steps .step:not(:last-child)::after {
  content: ""; position: absolute; top: 54px; right: -16px; width: 32px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 12px);
}

/* ---------- Features (Warum) ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { display: flex; gap: 16px; padding: 26px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature__icon { flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 12px; background: rgba(34,197,94,.12); color: var(--green); }
.feature__icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature__title { font-size: 1.08rem; font-weight: 600; margin-bottom: 5px; }
.feature p { color: var(--muted); font-size: .95rem; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: 50px; align-items: center; }
.about__card {
  position: relative; background: linear-gradient(150deg, var(--navy-700), var(--navy-900)); color: #fff;
  border-radius: var(--radius-lg); padding: 44px 38px; box-shadow: var(--shadow-lg); overflow: hidden;
}
.about__card::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(87,160,232,.34), transparent 70%); }
.about__big-icon { width: 56px; height: 56px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 22px; }
.about__quote { font-family: var(--font-head); font-size: 1.4rem; font-weight: 600; line-height: 1.4; }
.about__author { margin-top: 18px; color: #b9ccec; }
.about__content .section__title { text-align: left; }
.about__content > p { color: var(--muted); margin-top: 16px; }
.checklist { margin: 24px 0 28px; display: grid; gap: 12px; }
.checklist li { display: flex; align-items: center; gap: 11px; font-weight: 500; }
.checklist .ico { color: var(--green); width: 20px; height: 20px; flex: none; }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.reviewcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow-sm); }
.review__stars { color: #f5a623; letter-spacing: 3px; font-size: 1.15rem; margin-bottom: 14px; }
.review blockquote { color: #33415c; font-size: 1rem; }
.review figcaption { margin-top: 20px; display: flex; flex-direction: column; }
.review figcaption strong { color: var(--navy-900); font-family: var(--font-head); }
.review figcaption span { color: var(--muted); font-size: .9rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 14px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 20px 22px; font-family: var(--font-head); font-weight: 600; color: var(--navy-900);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__chevron { width: 22px; height: 22px; fill: none; stroke: var(--blue); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; transition: transform .25s var(--ease); }
.faq__item[open] .faq__chevron { transform: rotate(180deg); }
.faq__body { padding: 0 22px 20px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--navy-900), var(--navy-700)); color: #fff; padding: clamp(48px, 7vw, 76px) 0; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 300px at 85% 0%, rgba(87,160,232,.28), transparent 70%); }
.cta-band__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta-band p { color: #c9d8ef; margin-top: 8px; }
.cta-band__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.contact__info { display: grid; gap: 16px; }
.contact__item { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
a.contact__item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.contact__ico { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: rgba(37,99,235,.1); color: var(--blue); }
.contact__ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact__item span:last-child { display: flex; flex-direction: column; line-height: 1.4; }
.contact__item strong { font-family: var(--font-head); color: var(--navy-900); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }

/* form */
.contact__form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: .9rem; margin-bottom: 7px; color: var(--navy-900); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; font-size: .98rem; color: var(--ink); background: #fbfcfe; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37,99,235,.12); background: #fff; }
.field input:invalid:not(:placeholder-shown), .field textarea:invalid:not(:placeholder-shown) { border-color: #ef4444; }

.checkbox { display: flex; gap: 11px; align-items: flex-start; font-size: .9rem; color: var(--muted); margin: 6px 0 18px; }
.checkbox input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--blue); flex: none; }
.checkbox a { color: var(--blue); text-decoration: underline; }

.form__note { margin-top: 14px; font-size: .94rem; text-align: center; min-height: 1.2em; }
.form__note.is-success { color: var(--green); font-weight: 600; }
.form__note.is-error { color: #ef4444; font-weight: 600; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: #aebfd8; padding: 64px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.brand--footer { color: #fff; margin-bottom: 16px; }
.footer__about { font-size: .95rem; max-width: 340px; }
.footer__col h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer__col ul { display: grid; gap: 11px; font-size: .95rem; }
.footer__col a { transition: color .2s; }
.footer__col a:hover { color: #fff; }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: .9rem; }
.footer__legal { display: flex; gap: 22px; }
.footer__legal a:hover { color: #fff; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 50px; height: 50px; border-radius: 50%; background: var(--grad-blue); color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 26px rgba(21,89,173,.5);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .3s var(--ease);
}
.to-top svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--accent-dark); transform: translateY(-3px); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Section scroll offset (sticky header) ---------- */
section[id] { scroll-margin-top: 96px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__lead { margin-left: auto; margin-right: auto; }
  .hero__actions, .hero__usps { justify-content: center; }
  .hero__visual { order: -1; }
  .hero__illustration { max-width: 380px; }
  .cards, .features, .reviews { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps .step:not(:last-child)::after { display: none; }
  .about { grid-template-columns: 1fr; }
  .about__content .section__title { text-align: center; }
  .contact { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2)::after { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 980px) {
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 84vw);
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; padding: 90px 22px 30px; box-shadow: -20px 0 60px rgba(10,26,48,.2);
    transform: translateX(105%); transition: transform .35s var(--ease); z-index: 95;
  }
  .nav.is-open { transform: translateX(0); }
  .nav__link { padding: 13px 14px; font-size: 1.05rem; border-radius: 10px; }
  .nav__cta { margin: 10px 0 0; text-align: center; }
  .nav-toggle { display: grid; place-items: center; }
  .header.nav-open .nav-toggle__open { display: none; }
  .header.nav-open .nav-toggle__close { display: block; }
  body.nav-open { overflow: hidden; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(10,26,48,.5); opacity: 0; visibility: hidden; transition: opacity .3s; z-index: 94; }
  .nav-backdrop.is-open { opacity: 1; visibility: visible; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .topbar__item--hide-sm { display: none; }
  .cards, .features, .reviews, .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 8px; padding: 24px 14px; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .cta-band__inner { flex-direction: column; text-align: center; }
  .cta-band__actions { justify-content: center; }
  .contact__form { padding: 24px 20px; }
}

/* ---------- Legal pages ---------- */
.legal { padding: clamp(48px, 8vw, 90px) 0; }
.legal__back { display: inline-block; color: var(--blue); font-weight: 600; font-family: var(--font-head); margin-bottom: 20px; }
.legal__back:hover { text-decoration: underline; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 8px; }
.legal h2 { font-size: 1.25rem; margin: 34px 0 10px; }
.legal p, .legal li { color: #33415c; }
.legal__list { list-style: disc; padding-left: 22px; display: grid; gap: 6px; margin-top: 8px; }
.legal__hint { background: #eef5fc; border: 1px solid #cfe0f2; color: #143a72; border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm); padding: 16px 18px; margin: 20px 0 10px; font-size: .95rem; }
.legal__hint code { background: rgba(20,58,114,.1); padding: 1px 6px; border-radius: 5px; font-size: .9em; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__illustration { animation: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* =========================================================
   Landingpage – Vereinfachungen
   ========================================================= */
.hero__inner--center { grid-template-columns: 1fr; gap: 0; text-align: center; max-width: 820px; margin-inline: auto; }
.hero__inner--center .hero__lead { margin-left: auto; margin-right: auto; }
.hero__inner--center .hero__actions,
.hero__inner--center .hero__usps { justify-content: center; }

.cards--simple { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .cards--simple { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards--simple { grid-template-columns: 1fr; } }


.contact__info--center { max-width: 540px; margin: 0 auto; }
.contact-cta { text-align: center; margin-top: 32px; }

.footer--slim { padding: 30px 0; }
.footer--slim .footer__bottom { margin-top: 0; padding-top: 0; border-top: none; }
@media (max-width: 600px) { .footer--slim .footer__bottom { flex-direction: column; text-align: center; } }

/* ---------- Referenzen / Galerie ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gallery__item { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.gallery__item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.gallery__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: #eef5fc; }
.gallery__img.is-placeholder { object-fit: contain; }
.gallery__cap { padding: 14px 18px 18px; display: grid; gap: 5px;
  font-family: var(--font-head); font-weight: 600; color: var(--navy-900); font-size: .98rem; }
.gallery__cap span { font-family: var(--font-body); font-weight: 400; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.gallery__item { position: relative; }
.gallery__item.is-klickbar { cursor: zoom-in; }
.gallery__item.is-klickbar:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.gallery__badge {
  position: absolute; top: 12px; right: 12px;
  background: rgba(10, 35, 71, .82); color: #fff;
  font-family: var(--font-head); font-weight: 600; font-size: .8rem;
  padding: 4px 10px; border-radius: 999px; pointer-events: none;
}
.gallery__hint { margin-top: 26px; text-align: center; color: var(--muted); font-size: .92rem; }
.gallery__hint code { background: rgba(31,111,208,.08); color: var(--blue-dark); padding: 1px 7px; border-radius: 6px; font-size: .92em; }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .gallery { grid-template-columns: 1fr; } }

/* ---------- Lade-Vorschau (Splash) ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 1000;
  display: none;                 /* ohne JS niemals sichtbar -> blockiert die Seite nie */
  place-items: center;
  background: #ffffff;
  transition: opacity .5s ease, visibility .5s ease;
}
.js .preloader { display: grid; }
.preloader__logo {
  width: min(240px, 62vw); height: auto;
  animation: preloaderPulse 1.2s ease-in-out infinite;
}
.preloader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes preloaderPulse {
  0%, 100% { transform: scale(.95); opacity: .65; }
  50%      { transform: scale(1);   opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .preloader__logo { animation: none; }
  .preloader { transition: none; }
}

/* ---------- Formular-CTA, Header-Buttons, Marken-Zeile ---------- */
.header__actions { display: flex; align-items: center; gap: 10px; }
.btn--dark { background: var(--navy-900); color: #fff; box-shadow: 0 8px 20px rgba(10,35,71,.28); }
.btn--dark:hover { background: var(--navy-800); box-shadow: 0 12px 26px rgba(10,35,71,.36); }

/* „Benzel" als eigene Zeile über der Hero-Überschrift */
.hero__brand { display: block; color: var(--blue-light); }

/* Kontakt-CTA: zwei Buttons zentriert, umbrechend */
.contact-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 32px; }

/* Kompakte Button-Labels auf kleinen Screens */
.nowrap { white-space: nowrap; }
.u-only-sm { display: none; }
@media (max-width: 600px) {
  .u-hide-sm { display: none; }
  .u-only-sm { display: inline; }
  /* Auf dem Handy im Header nur der Formular-Button – Telefon steht im Hero */
  .header__phone { display: none; }
}

/* ---------- Mobile: deutlich mehr Abstand zum Rand für ALLE Texte ---------- */
@media (max-width: 600px) {
  /* großzügiger Seitenrand für alle Sektionen */
  .container { padding-left: 18px; padding-right: 18px; }

  /* Die Hero-Spalte muss schrumpfen dürfen. Ohne min-width:0 zieht der lange,
     nicht umbrechende Button-Text („Schaden / Bewertung anmelden") die
     Grid-Spalte auf ~347px auf – auf 320/360px-Handys wird dann rechts
     alles abgeschnitten. */
  .hero__inner > * { min-width: 0; }
  /* Lange CTA-Labels dürfen umbrechen statt über den Rand zu ragen.
     Der kurze Header-Button bleibt bewusst einzeilig. */
  .btn { max-width: 100%; }
  .hero__actions .btn, .contact-cta .btn { white-space: normal; text-align: center; }

  /* Überschrift so groß wie möglich, aber das längste Wort
     („Fahrzeugbewertungen") behält auf jeder Breite Luft zum Rand. */
  .hero__title { font-size: clamp(1.15rem, calc((100vw - 48px) / 11.9), 2.05rem); line-height: 1.22; }
  /* Fließtext als schmalere, zentrierte Spalte → klarer Abstand zum Rand */
  .hero__lead { font-size: 0.98rem; max-width: 290px; line-height: 1.6; }
  .hero__inner { padding-top: 44px; padding-bottom: 44px; }
}

/* Sehr schmale Handys: Eyebrow-Pille darf nicht über den Rand laufen */
@media (max-width: 380px) {
  .eyebrow { font-size: .76rem; letter-spacing: .08em; padding-left: 12px; padding-right: 12px; }
}

/* ---------- Bildergalerie (mehrere Fotos je Referenz) ---------- */
.lb { position: fixed; inset: 0; z-index: 1200; background: rgba(6, 18, 38, .92); display: grid; place-items: center; padding: 20px; }
.lb__buehne { position: relative; width: min(1000px, 100%); display: grid; justify-items: center; gap: 14px; }
.lb__bild { max-width: 100%; max-height: 74vh; border-radius: var(--radius-sm); background: #0a2347; }
.lb__fuss { color: #dbe7f7; font-size: .95rem; text-align: center; margin: 0; }
.lb__zaehler { color: #9fb8d8; }
.lb__zu, .lb__pfeil {
  background: rgba(255, 255, 255, .12); color: #fff; border-radius: 999px;
  width: 46px; height: 46px; font-size: 1.6rem; line-height: 1;
  display: grid; place-items: center; cursor: pointer;
  transition: background .2s var(--ease);
}
.lb__zu:hover, .lb__pfeil:hover { background: rgba(255, 255, 255, .24); }
.lb__zu:focus-visible, .lb__pfeil:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
/* Bedienelemente am Bildschirmrand – unabhängig vom Bildformat immer gleich */
.lb__zu { position: fixed; top: 14px; right: 14px; z-index: 2; }
.lb__pfeil { position: fixed; top: 50%; transform: translateY(-50%); z-index: 2; }
.lb__pfeil--zurueck { left: 12px; }
.lb__pfeil--vor { right: 12px; }
@media (max-width: 600px) {
  .lb__pfeil { width: 40px; height: 40px; }
  .lb__bild { max-height: 64vh; }
}

/* ---------- Interner Bereich: Referenzen verwalten ---------- */
.vw { padding: 40px 0 72px; background: var(--bg-alt); min-height: 70vh; }
.vw__titel { font-family: var(--font-head); font-size: clamp(1.5rem, 4vw, 2.1rem); color: var(--navy-900); margin: 0 0 10px; }
.vw__lead { color: var(--muted); line-height: 1.65; margin: 0 0 24px; }
.vw__kopf { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.vw__kopf .vw__titel { margin: 0; }
.vw__abmelden { background: none; color: var(--blue-dark); font-weight: 600; font-size: .95rem; text-decoration: underline; cursor: pointer; }

.vw__karte { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 24px; margin-bottom: 24px; }
.vw__h2 { font-family: var(--font-head); font-size: 1.15rem; color: var(--navy-900); margin: 0 0 18px; }

.vw__label { display: block; font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--navy-900); margin: 16px 0 6px; }
.vw__karte > .vw__label:first-child, .vw__karte form > .vw__label:first-child { margin-top: 0; }
.vw__pflicht { color: var(--blue-dark); }
.vw__feld {
  width: 100%; font: inherit; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.vw__feld:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
textarea.vw__feld { resize: vertical; line-height: 1.55; }
.vw__feld--datei { padding: 10px 12px; }
.vw__mini-hinweis { color: var(--muted); font-size: .85rem; margin: 7px 0 0; }
.vw__check { display: flex; align-items: center; gap: 9px; margin: 14px 0 20px; color: var(--muted); font-size: .92rem; }
.vw__check input { width: 18px; height: 18px; }

.vw__vorschau { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 4px; }
.vw__vorschau-bild { width: 84px; height: 84px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); }

.vw__karte .btn { margin-top: 22px; }
.vw__fehler { color: #b42318; font-size: .92rem; margin: 14px 0 0; }
.vw__hinweis { color: var(--muted); font-size: .86rem; line-height: 1.6; }
.vw__status { margin: 16px 0 0; font-size: .93rem; line-height: 1.55; padding: 12px 14px; border-radius: var(--radius-sm); }
.vw__status--info { background: rgba(31, 111, 208, .08); color: var(--blue-dark); }
.vw__status--erfolg { background: rgba(34, 197, 94, .12); color: #15803d; }
.vw__status--fehler { background: rgba(180, 35, 24, .09); color: #b42318; }

.vw__leer { color: var(--muted); margin: 0; }
.vw__zeile { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.vw__zeile:first-child { border-top: none; padding-top: 0; }
.vw__mini { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); flex: none; background: var(--bg-alt); }
.vw__zeile-text { display: grid; gap: 3px; min-width: 0; flex: 1; }
.vw__zeile-text strong { font-family: var(--font-head); font-size: .98rem; color: var(--navy-900); }
.vw__zeile-text span { color: var(--muted); font-size: .86rem; line-height: 1.45; }
.vw__loeschen { background: none; color: #b42318; font-weight: 600; font-size: .9rem; text-decoration: underline; cursor: pointer; flex: none; align-self: center; }
.vw__loeschen:disabled { color: var(--muted); cursor: default; text-decoration: none; }
@media (max-width: 520px) {
  .vw__karte { padding: 18px; }
  .vw__zeile { flex-wrap: wrap; }
  .vw__loeschen { margin-left: auto; }
}

/* ---------- Unfallschaden-Abschnitt ---------- */
.vorteile { max-width: 820px; margin-inline: auto; }
.vorteile__titel {
  font-family: var(--font-head); font-weight: 700; color: var(--navy-900); text-align: center;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem); margin: clamp(44px, 6vw, 68px) 0 22px;
}
.checklist--zwei { grid-template-columns: repeat(2, 1fr); gap: 14px 34px; margin: 0; }
/* Häkchen oben halten, damit zweizeilige Punkte sauber ausgerichtet sind */
.checklist--zwei li { align-items: flex-start; }
.checklist--zwei .ico { margin-top: 2px; }
@media (max-width: 720px) { .checklist--zwei { grid-template-columns: 1fr; } }

/* Hinführende Frage über der Kernaussage auf der dunklen Karte */
.about__frage { color: #b9ccec; margin-bottom: 10px; }

/* Hinweiskasten („Kleiner Schaden?") – ruhiger als eine weitere Karte */
.hinweis {
  max-width: 820px; margin: clamp(40px, 5vw, 60px) auto 0;
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue);
  border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow-sm);
}
.hinweis__titel { font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; color: var(--navy-900); margin: 0 0 8px; }
.hinweis p { color: var(--muted); margin: 0; }

/* QR-Code-Bereich in der Verwaltung */
.vw__qr { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: start; }
.vw__qr-bild { width: 200px; height: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.vw__qr-text > p { color: var(--muted); margin: 0 0 12px; line-height: 1.6; }
.vw__qr-text > p strong { color: var(--navy-900); }
.vw__qr-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.vw__qr-knoepfe .btn { margin-top: 0; }
@media (max-width: 560px) {
  .vw__qr { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .vw__qr-knoepfe { justify-content: center; }
}

/* ---------- Farbschema & Druck ---------- */
:root { color-scheme: light; }

@media print {
  .preloader, .header__actions, .hero__glow, .hero__actions, .contact-cta, .skip-link { display: none !important; }
  .header { position: static; box-shadow: none; }
  .hero { background: #fff !important; color: #000; }
  .hero__title, .hero__title span, .hero__brand { color: #000 !important; }
  .hero__lead, .hero__usps { color: #222 !important; }
  .eyebrow, .eyebrow--light { color: #000 !important; background: none !important; border: 1px solid #999; }
  .footer, .footer--slim { background: #fff !important; color: #000 !important; }
  .section { padding: 18px 0; }
  .card, .contact__item, .gallery__item { break-inside: avoid; box-shadow: none; border: 1px solid #ccc; }
  .gallery { display: none; }              /* Platzhalter-Kacheln haben auf Papier keinen Wert */
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; word-break: break-all; }
}
