/* =========================================================
   wunschauto.jetzt — Design Tokens
   Konzept: automobile Präzision statt Startup-Klischee.
   Asphalt + Papier als Basis, Amber (Blinker/Bordinstrument)
   und Routenblau als Akzente. Fließtext-Grotesk (Inter) trifft
   auf eine breite, selbstbewusste Headline-Type (Archivo
   Expanded) — angelehnt an Typenschilder und Kennzeichen.
   ========================================================= */

:root {
  --asphalt: #1b1e24;
  --asphalt-soft: #262b33;
  --asphalt-line: #383f4a;

  --paper: #eef0ec;
  --paper-alt: #e3e6de;
  --card: #ffffff;

  --amber: #e8a33c;
  --amber-dark: #c97f1f;
  --amber-tint: #fbe8c8;

  --route: #35507a;
  --route-soft: #4a6690;

  --ink: #21242a;
  --ink-soft: #5b6068;
  --ink-faint: #8b9098;
  --paper-text: #edeef0;
  --paper-text-soft: #b7bcc4;

  --line: #d7dad2;
  --line-dark: #3a4048;

  --radius-sharp: 4px;
  --radius-soft: 14px;
  --radius-pill: 999px;

  --shadow-card: 0 16px 34px -16px rgba(20, 22, 26, 0.28);
  --shadow-soft: 0 6px 16px -8px rgba(20, 22, 26, 0.18);

  --font-display: "Archivo Expanded", "Arial Narrow", sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;

  --content-width: 1080px;
}

/* =========================================================
   RESET / BASE
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--ink);
}

p {
  margin: 0 0 14px;
  color: var(--ink-soft);
}

a {
  color: inherit;
}

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

:focus-visible {
  outline: 3px solid var(--route);
  outline-offset: 2px;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  background: var(--asphalt);
  padding: 16px 0;
}

.header-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--paper-text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.logo-mark {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.header-nav {
  display: flex;
  gap: 28px;
}

.header-nav a {
  color: var(--paper-text-soft);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.header-nav a:hover {
  color: var(--amber);
}

.header-cta {
  background: var(--amber);
  color: var(--asphalt);
  padding: 10px 10px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.15s ease;
}

.header-cta:hover {
  background: #f2b452;
  transform: translateY(-1px);
}

@media (max-width: 760px) {
  .header-nav { display: none; }
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;
  background-color: var(--asphalt);
  background-image: url('img/hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  padding-top: 56px;
  padding-bottom: 64px;
height: 350px;
}

.hero-route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.7;
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-route path {
  fill: none;
  stroke: var(--route-soft);
  stroke-width: 1.6;
  stroke-dasharray: 6 8;
}

.hero-route .route-live {
  stroke: var(--amber);
  stroke-width: 2;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: draw-route 2.4s ease-out 0.2s forwards;
}

.hero-route circle {
  fill: var(--amber);
  opacity: 0;
  animation: pin-in 0.5s ease-out forwards;
}

.hero-route circle:nth-of-type(1) { animation-delay: 0.5s; }
.hero-route circle:nth-of-type(2) { animation-delay: 1.3s; }
.hero-route circle:nth-of-type(3) { animation-delay: 2.3s; }

@keyframes draw-route {
  to { stroke-dashoffset: 0; }
}

@keyframes pin-in {
  from { opacity: 0; transform: scale(0.3); }
  to { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-route .route-live { stroke-dashoffset: 0; }
  .hero-route circle { opacity: 1; animation: none; }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}

.hero-kicker-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.hero-dial {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.hero-kicker-row span {
  color: var(--paper-text-soft);
  font-size: 0.95rem;
}

.hero h1 {
  color: var(--paper-text);
  font-size: clamp(1.5rem, 4.4vw, 2.3rem);
  max-width: 45ch;
}

/* Textbox: startet im Herobereich, ragt bewusst zu rund zwei
   Dritteln in die folgende Section hinein (per translateY,
   damit der Effekt unabhängig von der Textlänge stabil bleibt). */
.hero-bridge {
  position: relative;
  z-index: 3;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 0;
}

.hero-overlay {
  transform: translateY(-33.3333%);
  background: var(--card);
  border-radius: var(--radius-soft);
  box-shadow: var(--shadow-card);
  padding: 36px 40px 34px;
}

.hero-overlay .hero-eyebrow {
  color: var(--route);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 10px;
}

.hero-overlay h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  margin-bottom: 12px;
}

.hero-overlay p {
  margin-bottom: 22px;
  font-size: 1.02rem;
}

.hero-specs {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  margin-bottom: 22px;
}

.hero-spec-value {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink);
  display: block;
}

.hero-spec-label {
  font-size: 0.84rem;
  color: var(--ink-faint);
}

.hero-overlay-cta {
  display: inline-block;
  background: var(--amber);
  color: var(--asphalt);
  text-decoration: none;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  transition: background 0.15s ease, transform 0.15s ease;
}

.hero-overlay-cta:hover {
  background: #f2b452;
  transform: translateY(-1px);
}

@media (max-width: 720px) {
  .hero-overlay { padding: 28px 24px 26px; }
  .hero-specs { gap: 20px; }
.hero-overlay {
  transform: translateY(-50.0%);
  background: var(--card);
  border-radius: var(--radius-soft);
  box-shadow: var(--shadow-card);
  padding: 25px;
  max-width: 640px;
margin-top:90px;
}
}

/* Platz, damit der Inhalt nach der Textbox nicht kollidiert.
   Der Wert hier ist nur ein Fallback für den ersten Moment vor dem
   Laden von script.js — die tatsächliche Höhe wird per JavaScript
   passend zur tatsächlichen Kartenhöhe gesetzt (siehe script.js). */
.bridge-spacer {
  height: clamp(180px, 26vw, 320px);
}

/* =========================================================
   von mir wegen höhe des versteckten elements
   ========================================================= */
element.style {
    height: 188px;
}

/* =========================================================
   FORM SECTION
   ========================================================= */

.form-section {
  max-width: 760px;
  margin: 0 auto 20px;
  padding: 0 24px 60px;
}

.section-heading {
  margin-bottom: 34px;
}

.section-index {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--route);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
margin-top:15px;
}

.section-index .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
}

.section-heading h2 {
  font-size: clamp(1.35rem, 2.3vw, 1.7rem);
  margin-bottom: 6px;
}

.section-heading p {
  margin: 0;
  max-width: 56ch;
}

fieldset {
  border: none;
  margin: 0;
  padding: 0;
}

.fahrzeug-block {
  background: var(--card);
  padding: 22px 24px 24px;
  margin-bottom: 18px;
  border-radius: var(--radius-soft);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.fahrzeug-block h3 {
  font-size: 1.02rem;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--route);
  margin-bottom: 4px;
}

label {
  display: block;
  margin-top: 14px;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--ink);
}

label > select,
label > input {
  font-weight: 400;
}

select, input {
  width: 100%;
  padding: 12px 14px;
  margin-top: 6px;
  border-radius: var(--radius-sharp);
  border: 1px solid #c9cdc4;
  background: var(--card);
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

select:focus, input:focus {
  border-color: var(--route);
  box-shadow: 0 0 0 3px rgba(53, 80, 122, 0.14);
}

select[multiple] {
  height: 132px;
}

/* Farbauswahl: klickbare Swatches + entfernbare Chips darunter */
.color-picker {
  margin-top: 6px;
}

.color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.swatch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  border-radius: var(--radius-pill);
  border: 1.5px solid #c9cdc4;
  background: var(--card);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.swatch:hover {
  border-color: var(--route-soft);
}

.swatch.is-selected {
  border-color: var(--route);
  background: rgba(53, 80, 122, 0.08);
  box-shadow: 0 0 0 2px rgba(53, 80, 122, 0.15);
}

.swatch-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.18);
}

.field-hint {
  font-weight: 400;
  font-size: 0.86rem;
  color: var(--ink-faint);
  margin-top: 2px;
}

.row {
  display: flex;
  gap: 18px;
}

.row .col {
  flex: 1;
}

@media (max-width: 560px) {
  .row { flex-direction: column; gap: 0; }
}

.add-button {
  background: transparent;
  color: var(--route);
  border: 1.5px dashed var(--route-soft);
  padding: 13px 20px;
  border-radius: var(--radius-soft);
  cursor: pointer;
  font-size: 0.98rem;
  font-weight: 600;
  width: 100%;
  margin-bottom: 26px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.add-button:hover {
  background: rgba(53, 80, 122, 0.06);
  border-color: var(--route);
}

.remove-button {
  background: transparent;
  color: #b23b3b;
  border: none;
  padding: 8px 0 0;
  margin-top: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.privacy-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--amber-tint);
  border-radius: var(--radius-soft);
  padding: 16px 18px;
  margin: 26px 0 30px;
}

.privacy-note svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.privacy-note p {
  margin: 0;
  color: var(--ink);
  font-size: 0.94rem;
}

.privacy-note strong {
  color: var(--ink);
}

.submit-button {
  background: var(--asphalt);
  color: var(--paper-text);
  padding: 16px;
  border-radius: var(--radius-pill);
  border: none;
  width: 100%;
  font-size: 1.06rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.submit-button:hover {
  background: #2a2f37;
  transform: translateY(-1px);
}

.submit-button:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

.submit-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-top: 12px;
}

.form-status {
  text-align: center;
  font-size: 0.92rem;
  margin-top: 14px;
  min-height: 1.2em;
}

.form-status.is-error {
  color: #b23b3b;
}

/* =========================================================
   STEPS SECTION
   ========================================================= */

.steps-section {
  background: var(--paper-alt);
  padding: 70px 0;
}

.steps-header {
  max-width: var(--content-width);
  margin: 0 auto 44px;
  padding: 0 24px;
  max-width: 620px;
}

.steps-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 12px;
}

.steps {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step {
  background: var(--card);
  padding: 28px 26px;
  border-radius: var(--radius-soft);
  box-shadow: var(--shadow-soft);
  border-top: 3px solid var(--amber);
}

.step-number {
  font-family: var(--font-display);
  color: var(--route);
  font-size: 1.7rem;
  display: block;
  margin-bottom: 14px;
}

.step h3 {
  font-family: var(--font-body);
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  margin: 0;
  font-size: 0.96rem;
}

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

@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
}

/* =========================================================
   BENEFITS SECTION (dunkles Band für Rhythmuswechsel)
   ========================================================= */

.benefits-section {
  background: var(--asphalt);
  padding: 76px 0;
}

.benefits-grid {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.benefits-copy h2 {
  color: var(--paper-text);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-bottom: 18px;
  max-width: 14ch;
}

.benefits-copy p {
  color: var(--paper-text-soft);
  max-width: 52ch;
}

.closing-line {
  color: var(--amber);
  font-weight: 700;
  font-size: 1.08rem;
  margin-top: 18px;
}

.benefits-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.benefits-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-dark);
  font-size: 0.98rem;
}

.benefits-list li:first-child {
  padding-top: 0;
}

.benefits-list li > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.benefits-list strong {
  color: var(--paper-text);
  font-size: 1.02rem;
}

.benefits-list span {
  color: var(--paper-text-soft);
  line-height: 1.5;
}

.benefits-list svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 4px;
}

.benefits-list svg path {
  stroke: var(--amber);
}

@media (max-width: 860px) {
  .benefits-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  background: var(--asphalt);
  padding: 28px 0 32px;
  border-top: 1px solid var(--line-dark);
}

.footer-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-inner p {
  margin: 0;
  color: var(--ink-faint);
  font-size: 0.86rem;
}

.footer-links {
  display: flex;
  gap: 22px;
}

.footer-links a {
  color: var(--paper-text-soft);
  text-decoration: none;
  font-size: 0.86rem;
}

.footer-links a:hover {
  color: var(--amber);
}

/* =========================================================
   DANKE PAGE
   ========================================================= */

.confirmation-section {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px 80px;
  text-align: left;
}

.confirmation-card {
  background: var(--card);
  border-radius: var(--radius-soft);
  box-shadow: var(--shadow-card);
  padding: 40px 40px 36px;
}

.confirmation-card h2 {
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.confirmation-steps {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.confirmation-steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.confirmation-steps span {
  font-family: var(--font-display);
  color: var(--amber-dark);
  font-weight: 700;
  flex-shrink: 0;
}

@media (max-width: 620px) {
  .confirmation-card { padding: 30px 26px 28px; }
}
