/* ===================================================================
   Kia EV2 – Förderung 2026 · Autohaus Degel
   =================================================================== */

:root {
  --red: #E4002B;
  --red-dark: #b5001f;
  --black: #0c0c0d;
  --near-black: #17181a;
  --grey-900: #1f2023;
  --grey-600: #5b5e66;
  --grey-300: #d8d9dc;
  --grey-100: #f4f4f5;
  --white: #ffffff;
  --radius: 14px;
  --max-width: 1080px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--grey-900);
  background: var(--white);
  line-height: 1.5;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
a { color: inherit; }
sup { font-size: .65em; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--red); color: #fff; padding: .6em 1em; z-index: 100;
}
.skip-link:focus { left: 0; }

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
  padding: .95em 1.8em;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background .15s ease, transform .1s ease;
}
.btn--primary { background: var(--red); color: #fff; clip-path: polygon(0 0, 100% 0, 94% 100%, 0% 100%); padding-right: 2.2em; }
.btn--primary:hover { background: var(--red-dark); }
.btn--block { display: block; width: 100%; text-align: center; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--black);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.topbar__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: .7rem 1.25rem;
}
.topbar__back,
.topbar__phone {
  display: inline-flex; align-items: center; gap: .45em;
  text-decoration: none;
  color: var(--grey-300);
  font-size: .82rem;
  font-weight: 600;
  padding: .4em .7em;
  margin: -.4em -.7em;
  border-radius: 6px;
  transition: background .15s ease, color .15s ease;
  white-space: nowrap;
}
.topbar__back svg,
.topbar__phone svg { width: 1em; height: 1em; flex-shrink: 0; color: var(--red); }
.topbar__back:hover,
.topbar__phone:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.topbar__logo { height: 32px; width: auto; flex-shrink: 0; }

@media (max-width: 640px) {
  .topbar__inner {
    flex-wrap: wrap;
    justify-content: space-between;
    row-gap: .5rem;
  }
  .topbar__back { font-size: .78rem; }
  .topbar__phone {
    order: 3;
    width: 100%;
    justify-content: center;
    padding-top: .6rem;
    margin-top: .1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--black) 0%, var(--near-black) 100%);
  color: #fff;
  padding: 2.5rem 1.25rem 3.5rem;
  overflow: hidden;
}
.hero__media { max-width: var(--max-width); margin: 0 auto 1.5rem; }
.hero__content { max-width: var(--max-width); margin: 0 auto; text-align: center; }

.hero .fineprint {
  max-width: var(--max-width);
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 1.8rem;
  padding: 0 1.25rem;
}

.badge {
  display: inline-flex; align-items: center; gap: .5em;
  border: 1px solid var(--red);
  color: #fff;
  padding: .4em .9em;
  font-size: .8rem;
  font-weight: 600;
  border-radius: 2px;
  margin-bottom: 1.2rem;
}
.badge__icon { width: 1.1em; height: 1.1em; color: var(--red); }

.hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  max-width: 20ch;
  margin-left: auto;
  margin-right: auto;
}
.hero__lead {
  max-width: 55ch;
  margin-left: auto;
  margin-right: auto;
  color: var(--grey-300);
  font-size: 1.05rem;
}
.hero__lead strong { color: #fff; }
.hero .btn { margin-top: 1rem; }

.img-caption {
  position: absolute;
  right: .6rem; bottom: .5rem;
  z-index: 3;
  font-size: .68rem;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.35);
  padding: .15em .5em;
  border-radius: 3px;
}

/* ---------- Image placeholders ---------- */
.img-placeholder {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 10px, rgba(255,255,255,0) 10px 20px),
    linear-gradient(135deg, #2a2b2e, #101113);
  border: 1px dashed rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  color: rgba(255,255,255,.55);
  font-size: .85rem;
  padding: 1rem;
}
.img-placeholder::before { content: attr(data-label); max-width: 28ch; }
.img-placeholder__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: inherit;
  z-index: 1;
}
.img-placeholder--hero { aspect-ratio: 1200 / 500; }
.img-placeholder--hero::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 2;
  border-radius: inherit;
  background: linear-gradient(to bottom, transparent 88%, rgba(12, 12, 13, 0.75) 100%);
}
.img-placeholder--card {
  aspect-ratio: 16 / 10;
  border: 1px dashed var(--grey-300);
  background: linear-gradient(135deg, var(--grey-100), #e9e9eb);
  color: var(--grey-600);
}

/* ---------- Sections generic ---------- */
main section { padding: 3.5rem 0; }
.section-lead { color: var(--grey-600); max-width: 60ch; }

/* ---------- Calculator ---------- */
.calculator { background: var(--grey-100); }
.calculator .section-inner { text-align: center; }
.calculator .section-lead { margin-left: auto; margin-right: auto; }
.calculator__card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}
.calculator__result { margin-bottom: 1.5rem; }
.calculator__amount {
  display: block;
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--red);
}
.calculator__tierLabel { color: var(--grey-600); font-size: .95rem; }

.calculator__slider {
  width: 100%;
  appearance: none;
  height: 6px;
  border-radius: 4px;
  background: var(--grey-300);
  margin: .5rem 0 .4rem;
}
.calculator__slider::-webkit-slider-thumb {
  appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--red);
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--red);
  cursor: pointer;
}
.calculator__slider::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--red);
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--red);
  cursor: pointer;
}
.calculator__scale {
  display: flex; justify-content: space-between;
  font-size: .75rem; color: var(--grey-600);
  margin-bottom: 1.2rem;
}
.calculator__scale span:first-child { text-align: left; }
.calculator__scale span:last-child { text-align: right; }
.calculator__note { font-size: .8rem; color: var(--grey-600); margin-bottom: 1.4rem; }

/* ---------- Fineprint ---------- */
.fineprint {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.2rem 1.25rem 0;
  font-size: .72rem;
  color: var(--grey-600);
}

/* ---------- Request / form section ---------- */
.request__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 800px) {
  .request__grid { grid-template-columns: 1fr; }
}

.chip-group {
  border: none; padding: 0; margin: 0 0 1.2rem;
  display: flex; flex-wrap: wrap; gap: .6rem;
}
.chip {
  border: 1.5px solid var(--grey-300);
  border-radius: 999px;
  padding: .5em 1em;
  font-size: .85rem;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:checked) {
  border-color: var(--red);
  background: rgba(228, 0, 43, 0.06);
  color: var(--red-dark);
  font-weight: 600;
}

.request-form .form-row { margin-bottom: 1rem; }
.request-form label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .35em; }
.request-form input[type="text"],
.request-form input[type="tel"],
.request-form input[type="email"],
.request-form textarea {
  width: 100%;
  padding: .7em .8em;
  border: 1.5px solid var(--grey-300);
  border-radius: 6px;
  font: inherit;
}
.request-form input:focus, .request-form textarea:focus {
  outline: none; border-color: var(--red);
}
.form-row--split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
@media (max-width: 480px) {
  .form-row--split { grid-template-columns: 1fr; }
}
.form-row--checkbox label {
  display: flex; gap: .6em; font-weight: 400; font-size: .82rem; color: var(--grey-600);
}
.form-row--checkbox input { margin-top: .2em; }
.form-row--checkbox a { color: var(--red-dark); text-decoration: underline; }

.request-form__status {
  margin-top: .8rem;
  font-size: .85rem;
  color: var(--red-dark);
  min-height: 1.2em;
}

/* ---------- Eligibility ---------- */
.eligibility { background: var(--grey-100); }
.eligibility__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
@media (max-width: 900px) {
  .eligibility__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .eligibility__grid { grid-template-columns: 1fr; }
}
.eligibility__card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.eligibility__icon { font-size: 1.8rem; margin-bottom: .5rem; }
.eligibility__card h3 { font-size: 1.02rem; }
.eligibility__card p { font-size: .88rem; color: var(--grey-600); margin: 0; }

/* ---------- CTA repeat ---------- */
.cta-repeat {
  background: linear-gradient(135deg, var(--black), var(--near-black));
  color: #fff;
  text-align: center;
}
.cta-repeat__inner p { color: var(--grey-300); margin-bottom: 1.4rem; }
.cta-repeat__phone { margin-top: 1rem; font-size: .9rem; }
.cta-repeat__phone a { color: #fff; text-decoration: underline; }

/* ---------- Legal footer ---------- */
.legal {
  background: var(--near-black);
  color: var(--grey-300);
  padding: 2.5rem 0 2rem;
  font-size: .78rem;
}
.legal h2 { color: #fff; font-size: 1.1rem; }
.legal h3 { color: #fff; font-size: .82rem; margin-top: 1.4rem; }
.legal a { color: var(--grey-300); text-decoration: underline; }
.legal__meta {
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; gap: .8em; flex-wrap: wrap;
}
