/* ─── Lokale Fonts (DSGVO-konform, keine externen Verbindungen) ─── */
@font-face {
  font-family: 'Lato';
  src: url('fonts/lato-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lato';
  src: url('fonts/lato-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ─── Reset & Base ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --greige:    #8a8175;
  --anthrazit: #2e3033;
  --reinweiss: #ffffff;
  --hellgrau:  #f5f4f2;
  --linie:     #2e3033;
  --text:      #2e3033;
  --text-soft: #6b6762;
  --spacing-s: 1rem;
  --spacing-m: 2rem;
  --spacing-l: 4rem;
  --spacing-xl: 6rem;
  --max-width: 780px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--reinweiss);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ─── Header ─── */
.site-header {
  background: var(--reinweiss);
  border-bottom: 1px solid rgba(46, 48, 51, 0.1);
  padding: 2rem var(--spacing-m);
  text-align: center;
}

.site-header .brand {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--greige);
}

.site-header h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--anthrazit);
  margin-top: 0.4rem;
  letter-spacing: -0.01em;
}

.site-header .tagline {
  font-size: 1rem;
  color: var(--text-soft);
  margin-top: 0.5rem;
  font-weight: 400;
}

/* ─── Hero-Bereich ─── */
.hero {
  background: var(--hellgrau);
  padding: var(--spacing-xl) var(--spacing-m);
  text-align: center;
}

.hero h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--anthrazit);
  max-width: var(--max-width);
  margin: 0 auto 1.2rem;
  line-height: 1.3;
}

.hero p {
  font-size: 1.05rem;
  color: var(--text-soft);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ─── Fahrzeug-Sektion ─── */
.vehicle-section {
  padding: var(--spacing-xl) var(--spacing-m);
  max-width: var(--max-width);
  margin: 0 auto;
}

.vehicle-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--anthrazit);
  margin-bottom: 0.4rem;
}

.vehicle-section .vehicle-sub {
  font-size: 0.9rem;
  color: var(--greige);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--spacing-m);
}

.vehicle-divider {
  width: 40px;
  height: 1px;
  background: var(--greige);
  margin: 1rem 0 var(--spacing-m);
}

.highlights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.highlight-item {
  padding: 1.6rem 2rem;
  border: 1px solid rgba(46, 48, 51, 0.08);
  margin: -1px 0 0 -1px;
}

.highlight-item:first-child {
  margin-top: 0;
  margin-left: 0;
}

.highlight-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--anthrazit);
  margin-bottom: 0.3rem;
  letter-spacing: 0.01em;
}

.highlight-desc {
  font-size: 0.875rem;
  color: var(--text-soft);
  line-height: 1.6;
}

/* ─── Formular-Sektion ─── */
.form-section {
  background: var(--hellgrau);
  padding: var(--spacing-xl) var(--spacing-m);
}

.form-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.form-inner h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--anthrazit);
  margin-bottom: 0.4rem;
}

.form-sub {
  font-size: 0.875rem;
  color: var(--text-soft);
  margin-bottom: var(--spacing-m);
  line-height: 1.6;
}

/* Formular-Grid */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select {
  background: var(--reinweiss);
  border: 1px solid var(--linie);
  border-radius: 0;
  padding: 0.8rem 1rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}

input:focus,
select:focus {
  border-color: var(--greige);
}

input::placeholder {
  color: rgba(46, 48, 51, 0.3);
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a8175' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* ─── DSGVO-Checkbox ─── */
.dsgvo-group {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.dsgvo-group input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  border: 1px solid var(--linie);
  border-radius: 0;
  margin-top: 3px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background: var(--reinweiss);
  position: relative;
}

.dsgvo-group input[type="checkbox"]:checked {
  background: var(--anthrazit);
}

.dsgvo-group input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: 1px solid var(--reinweiss);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.dsgvo-group label {
  font-size: 0.8rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  color: var(--text-soft);
  line-height: 1.5;
}

.dsgvo-group label a {
  color: var(--anthrazit);
  text-decoration: underline;
}

/* ─── Submit-Button ─── */
.btn-submit {
  margin-top: var(--spacing-m);
  padding: 1rem 3rem;
  background: var(--greige);
  color: var(--reinweiss);
  border: none;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease;
  border-radius: 0;
  display: block;
  width: 100%;
}

.btn-submit:hover {
  background: var(--anthrazit);
}

.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ─── Status-Messages ─── */
.form-message {
  display: none;
  padding: 1.2rem 1.6rem;
  margin-top: 1.4rem;
  font-size: 0.9rem;
  line-height: 1.6;
  border-left: 2px solid var(--greige);
}

.form-message.success {
  display: block;
  background: rgba(138, 129, 117, 0.06);
  color: var(--anthrazit);
  border-color: var(--greige);
}

.form-message.error {
  display: block;
  background: rgba(180, 60, 60, 0.05);
  color: #7a2e2e;
  border-color: #b43c3c;
}

/* ─── Footer ─── */
.site-footer {
  padding: var(--spacing-l) var(--spacing-m);
  text-align: center;
  border-top: 1px solid rgba(46, 48, 51, 0.08);
}

.site-footer p {
  font-size: 0.8rem;
  color: var(--text-soft);
  letter-spacing: 0.03em;
}

.site-footer a {
  color: var(--text-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(107, 103, 98, 0.3);
}

/* ─── Responsive ─── */
@media (max-width: 640px) {
  :root {
    --spacing-l: 3rem;
    --spacing-xl: 4rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-group.full-width {
    grid-column: 1;
  }

  .highlights-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    padding: 1.6rem 1.2rem;
  }
}
