/* Autoverleih Kopf – Website
   Farben aus dem Betrieb: Kopf-Blau, Tiefblau, Kiesgrau, weiße Fahrzeuge.
   Eine Schriftfamilie, Rollen über Gewicht, Breite und Größe. */

:root {
  --blau:    #0a67d0;   /* Flächenfarbe, Buttons, Links */
  --signal:  #0080ff;   /* Logo-Blau, nur als Akzent */
  --tief:    #0b1b2b;   /* dunkle Bänder und Text */
  --kies:    #ededea;   /* Seitengrund */
  --papier:  #ffffff;
  --linie:   #d6d7d3;
  --linie2:  #e6e7e3;
  --grau:    #5d6670;   /* Nebentext */

  --kante:   10px;      /* Karten */
  --kante-s: 6px;       /* Knöpfe, Felder */
  --spalte:  1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }

body {
  margin: 0;
  background: var(--kies);
  color: var(--tief);
  font-family: Archivo, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; }
h1 { font-size: clamp(40px, 6.2vw, 78px); font-stretch: 112%; letter-spacing: -0.03em; }
h2 { font-size: clamp(28px, 3.6vw, 42px); }
h3 { font-size: 20px; }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }
a { color: var(--blau); text-underline-offset: 3px; }
img, svg, video { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--blau); outline-offset: 3px; }

.inhalt { max-width: var(--spalte); margin: 0 auto; padding: 0 28px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--papier); padding: 12px 18px; border-radius: var(--kante-s); }

/* ---------- Knöpfe ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  border: 0; border-radius: var(--kante-s);
  font: inherit; font-weight: 700; font-size: 16px;
  text-decoration: none; cursor: pointer;
  transition: background .12s ease;
}
.btn--blau   { background: var(--blau); color: #fff; }
.btn--blau:hover { background: #0a57ad; color: #fff; }
.btn--dunkel { background: var(--tief); color: #fff; }
.btn--dunkel:hover { background: #09293f; color: #fff; }
.btn--gross  { min-height: 56px; font-size: 17px; }

.iconbtn {
  display: none; width: 48px; height: 48px; flex: none;
  align-items: center; justify-content: center;
  border: 1px solid var(--linie); border-radius: var(--kante-s);
  background: var(--papier); color: var(--tief); cursor: pointer;
}
.iconbtn svg { width: 22px; height: 22px; }

/* ---------- Kopfleiste ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: var(--papier); border-bottom: 1px solid var(--linie); }
.topbar__inner { max-width: var(--spalte); margin: 0 auto; padding: 12px 28px; display: flex; align-items: center; gap: 28px; }
.topbar__logo img { height: 46px; }
.topbar__nav { display: flex; gap: 26px; margin-right: auto; font-weight: 600; font-size: 16px; }
.topbar__nav a { color: var(--tief); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.topbar__nav a:hover { border-bottom-color: var(--blau); }
.topbar__actions { display: flex; align-items: center; gap: 12px; }
.phone { display: inline-flex; align-items: center; gap: 9px; color: var(--tief); text-decoration: none; font-weight: 700; }
.phone svg { width: 19px; height: 19px; color: var(--blau); }

/* ---------- Kopfbereich ---------- */
.hero { position: relative; min-height: min(72vh, 620px); display: flex; align-items: flex-end; background: var(--tief); overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(11,27,43,.88) 0%, rgba(11,27,43,.62) 42%, rgba(11,27,43,.1) 78%);
}
.hero__text { position: relative; z-index: 1; max-width: var(--spalte); width: 100%; margin: 0 auto; padding: 120px 28px 64px; color: #fff; }
.hero__text h1 { max-width: 14ch; }
.hero__text p { margin-top: 20px; max-width: 46ch; font-size: clamp(17px, 1.6vw, 20px); color: #d8e3ee; }

/* ---------- Anfrageband ---------- */
.buchung { background: var(--papier); border-bottom: 1px solid var(--linie); }
.buchung__inner { max-width: var(--spalte); margin: 0 auto; padding: 18px 28px; display: grid; grid-template-columns: 1.6fr 1fr 1fr auto; gap: 16px; align-items: end; }
.feld { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--grau); min-width: 0; }
.feld input, .feld select, .feld textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1px solid var(--linie); border-radius: var(--kante-s);
  background: var(--papier); color: var(--tief);
  font: inherit; font-size: 16px; font-weight: 500;
}
.feld textarea { min-height: 96px; resize: vertical; }
.feld input:hover, .feld select:hover, .feld textarea:hover { border-color: #b9bcb6; }
.feld input:focus, .feld select:focus, .feld textarea:focus { border-color: var(--blau); }

/* ---------- Faktenzeile ---------- */
.fakten { background: var(--papier); border-bottom: 1px solid var(--linie); }
.fakten__inner { display: flex; flex-wrap: wrap; gap: 0 32px; padding-top: 16px; padding-bottom: 16px; font-size: 15px; color: var(--grau); }
.fakten p { margin: 4px 0; padding-right: 32px; border-right: 1px solid var(--linie2); }
.fakten p:last-child { border-right: 0; padding-right: 0; }
.fakten__bewertung { display: flex; align-items: center; gap: 8px; color: var(--tief); font-weight: 600; }
.sterne { display: inline-flex; gap: 2px; color: var(--signal); }
.sterne svg { width: 15px; height: 15px; }

/* ---------- Blöcke ---------- */
.block { padding: 84px 0; }
.block--dunkel { background: var(--tief); color: #fff; }
.block--blau { background: var(--blau); color: #fff; }
.blockkopf { max-width: 52ch; margin-bottom: 36px; }
.blockkopf p { margin-top: 12px; color: var(--grau); font-size: 18px; }
.blockkopf--dunkel p { color: #c3d3e2; }

/* ---------- Reiter ---------- */
.reiter { display: flex; flex-wrap: wrap; gap: 4px 22px; border-bottom: 1px solid var(--linie); margin-bottom: 18px; }
.reiter__knopf {
  border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 16px; font-weight: 600; color: var(--grau);
  padding: 10px 0 12px; margin-bottom: -1px;
  border-bottom: 2px solid transparent;
}
.reiter__knopf span { color: #9aa1a8; font-weight: 500; }
.reiter__knopf:hover { color: var(--tief); }
.reiter__knopf.is-active { color: var(--tief); border-bottom-color: var(--blau); }
.reiter__knopf.is-active span { color: var(--blau); }
.zaehler { font-size: 15px; color: var(--grau); margin-bottom: 20px; }

/* ---------- Fahrzeugkarten ---------- */
.flotte { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.karte {
  display: flex; flex-direction: column; text-align: left;
  background: var(--papier); border: 1px solid var(--linie); border-radius: var(--kante);
  padding: 0; font: inherit; color: inherit; cursor: pointer; overflow: hidden;
  transition: border-color .12s ease;
}
.karte:hover { border-color: var(--blau); }
.karte.is-hidden { display: none; }
.karte__bild { position: relative; aspect-ratio: 4 / 3; background: #f4f5f2; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--linie2); }
.karte__bild img { width: 100%; height: 100%; object-fit: cover; }
.karte__bild--leer { background: repeating-linear-gradient(135deg, #f4f5f2 0 12px, #eff1ed 12px 24px); }
.marke { position: absolute; top: 10px; left: 10px; background: var(--signal); color: var(--tief); border-radius: 4px; padding: 3px 9px; font-size: 12px; font-weight: 700; }
.karte__text { display: flex; flex-direction: column; gap: 10px; padding: 16px 16px 18px; flex: 1; }
.karte__name { font-size: 19px; font-weight: 700; line-height: 1.2; }
.karte__art { font-size: 14px; color: var(--grau); margin-top: -6px; }

.datenblatt { display: flex; flex-direction: column; border-top: 1px solid var(--linie2); }
.datenblatt__zeile { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--linie2); font-size: 14px; color: var(--grau); }
.datenblatt .wert { color: var(--tief); font-weight: 600; }

.balken { display: block; height: 4px; background: var(--linie2); border-radius: 2px; overflow: hidden; }
.balken__fuell { display: block; height: 100%; background: var(--signal); }

.karte__fuss { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding-top: 6px; }
.preis { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.preis small { display: block; font-size: 13px; font-weight: 500; color: var(--grau); letter-spacing: 0; }
.mehr { font-size: 15px; font-weight: 600; color: var(--blau); padding-bottom: 3px; }
.karte:hover .mehr { text-decoration: underline; }

.fussnote { margin-top: 24px; font-size: 14px; color: var(--grau); }
.leer { background: var(--papier); border: 1px dashed var(--linie); border-radius: var(--kante); padding: 32px; color: var(--grau); }

/* ---------- Besondere Fahrzeuge ---------- */
.besondere { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gross {
  display: flex; flex-direction: column; text-align: left;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); border-radius: var(--kante);
  padding: 0; font: inherit; color: #fff; cursor: pointer; overflow: hidden;
  transition: background .12s ease;
}
.gross:hover { background: rgba(255,255,255,.12); }
.gross--haupt { grid-column: span 2; }
.gross__bild { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10; padding: 18px; background: rgba(255,255,255,.04); }
.gross--haupt .gross__bild { aspect-ratio: 16 / 9; }
.gross__bild img { width: 100%; height: 100%; object-fit: contain; }
.gross__text { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 4px; }
.gross__name { font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; letter-spacing: -0.02em; }
.gross--haupt .gross__name { font-size: clamp(26px, 3vw, 38px); }
.gross__preis { color: #c3d3e2; font-size: 15px; }

/* ---------- Über uns ---------- */
.ueber { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.ueber__bild { margin: 0; }
.ueber__bild img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 28%; border-radius: var(--kante); }
.ueber__bild figcaption { margin-top: 10px; font-size: 14px; color: var(--grau); }
.ueber__text h2 { margin-bottom: 16px; max-width: 18ch; }
.ueber__text p { max-width: 62ch; }
.punkte { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.punkte li { padding: 12px 0 12px 26px; border-top: 1px solid var(--linie); position: relative; }
.punkte li::before { content: ""; position: absolute; left: 0; top: 21px; width: 10px; height: 2px; background: var(--blau); }

/* ---------- Kontakt ---------- */
.kontakt { display: grid; grid-template-columns: 5fr 6fr; gap: 56px; align-items: start; }
.kontakt__text h2 { margin-bottom: 14px; }
.kontakt__text p { color: #dbe7f5; max-width: 46ch; }
.kontakt a { color: #fff; }
.kontakt__telefon { display: inline-block; margin: 18px 0 20px; font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; letter-spacing: -0.02em; text-decoration: none; }
.kontakt__telefon:hover { text-decoration: underline; }
.kontakt__adresse { font-size: 16px; }

.anfrage { background: var(--papier); color: var(--tief); border-radius: var(--kante); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.zweispaltig { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.zustimmung { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--grau); }
.zustimmung input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--blau); }
.zustimmung a { color: var(--blau); }
.falle { position: absolute; left: -9999px; }
.meldung { margin: 0; padding: 12px 16px; border-radius: var(--kante-s); font-weight: 600; font-size: 15px; }
.meldung--ok { background: #e4f3ea; color: #10512f; }
.meldung--fehler { background: #fbe9e9; color: #7d1d1d; }

/* ---------- Fußbereich ---------- */
.fuss { background: var(--papier); border-top: 1px solid var(--linie); padding: 40px 0; }
.fuss__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; }
.fuss img { height: 64px; }
.fuss nav { display: flex; flex-wrap: wrap; gap: 20px; margin-right: auto; font-size: 15px; font-weight: 600; }
.fuss nav a { color: var(--tief); text-decoration: none; }
.fuss nav a:hover { text-decoration: underline; }
.fuss p { margin: 0; font-size: 14px; color: var(--grau); }

/* ---------- Detailfenster ---------- */
dialog.fenster { width: min(1060px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: var(--kante); overflow: auto; color: var(--tief); background: var(--papier); }
dialog.fenster::backdrop { background: rgba(11,27,43,.6); }
.modal__close { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--linie); border-radius: var(--kante-s); background: var(--papier); cursor: pointer; z-index: 2; }
.modal__grid { display: grid; grid-template-columns: 6fr 5fr; gap: 32px; padding: 24px; }
.gallery__main { aspect-ratio: 4 / 3; background: #f4f5f2; border: 1px solid var(--linie2); border-radius: var(--kante-s); display: flex; align-items: center; justify-content: center; padding: 12px; color: var(--grau); font-size: 14px; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 10px; overflow-x: auto; }
.gallery__thumbs button { width: 88px; height: 66px; flex: none; padding: 0; border: 1px solid var(--linie); border-radius: var(--kante-s); background: #f4f5f2; overflow: hidden; cursor: pointer; }
.gallery__thumbs button[aria-current="true"] { border-color: var(--blau); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.fenster h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 6px; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--grau); margin: 0 0 4px; }

.tariffs { display: flex; flex-direction: column; gap: 8px; margin: 20px 0; border: 0; padding: 0; }
.tariffs legend { font-size: 14px; font-weight: 600; color: var(--grau); margin-bottom: 8px; padding: 0; }
.tariff { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 10px 16px; border: 1px solid var(--linie); border-radius: var(--kante-s); background: var(--papier); font: inherit; text-align: left; cursor: pointer; }
.tariff[aria-pressed="true"] { border-color: var(--blau); background: #f2f7fe; }
.tariff__dot { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2px solid #a8b0b8; background: #fff; }
.tariff[aria-pressed="true"] .tariff__dot { border: 5px solid var(--blau); }
.tariff b { font-weight: 600; }
.tariff__price { margin-left: auto; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }

.summary { background: var(--tief); color: #fff; border-radius: var(--kante-s); padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.summary b { display: block; font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.summary small { color: #c3d3e2; }
.summary .btn { background: var(--signal); color: var(--tief); }
.summary .btn:hover { background: #2e97ff; }

.modal__specs { padding: 0 24px 26px; }
.modal__specs dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; margin: 0; }
.modal__specs div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--linie2); }
.modal__specs dt { color: var(--grau); font-size: 15px; }
.modal__specs dd { margin: 0; font-weight: 600; }
.hint { color: var(--grau); font-size: 14px; }

/* ---------- Schmale Bildschirme ---------- */
@media (max-width: 1080px) {
  .flotte { grid-template-columns: repeat(2, 1fr); }
  .besondere { grid-template-columns: repeat(2, 1fr); }
  .gross--haupt { grid-column: span 2; }
  .ueber, .kontakt, .modal__grid { grid-template-columns: 1fr; gap: 32px; }
  .buchung__inner { grid-template-columns: 1fr 1fr; }
  .buchung .btn { grid-column: span 2; }
  .modal__specs dl { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .inhalt, .topbar__inner, .buchung__inner, .hero__text { padding-left: 18px; padding-right: 18px; }
  .topbar__inner { gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .topbar__logo img { height: 38px; }
  .topbar__nav { display: none; }
  .topbar__nav.is-open { display: flex; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--papier); border-bottom: 1px solid var(--linie); padding: 8px 18px 16px; }
  .topbar__nav.is-open a { padding: 13px 0; border-bottom: 1px solid var(--linie2); }
  .topbar__actions { margin-left: auto; gap: 8px; }
  .phone__number { display: none; }
  .phone { width: 48px; height: 48px; justify-content: center; border: 1px solid var(--linie); border-radius: var(--kante-s); }
  .iconbtn { display: inline-flex; }

  .hero { min-height: 0; }
  .hero__text { padding-top: 72px; padding-bottom: 40px; }
  .hero::after { background: linear-gradient(180deg, rgba(11,27,43,.55) 0%, rgba(11,27,43,.86) 60%, rgba(11,27,43,.92) 100%); }

  .buchung__inner { grid-template-columns: 1fr; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
  .buchung .btn { grid-column: span 1; }

  .fakten__inner { flex-direction: column; gap: 0; }
  .fakten p { border-right: 0; padding-right: 0; }

  .block { padding: 52px 0; }
  .blockkopf { margin-bottom: 24px; }
  .blockkopf p { font-size: 16px; }
  .reiter { flex-wrap: nowrap; overflow-x: auto; gap: 18px; }
  .reiter__knopf { white-space: nowrap; }
  .flotte, .besondere, .zweispaltig, .modal__specs dl { grid-template-columns: 1fr; }
  .gross--haupt { grid-column: span 1; }

  .anfrage { padding: 20px; }
  dialog.fenster { width: 96vw; }
  .modal__grid { padding: 16px; gap: 22px; }
  .modal__specs { padding: 0 16px 20px; }
  .summary { flex-direction: column; align-items: stretch; }
  .summary .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Einzelne Fahrzeugseite, falls jemand das Fenster direkt aufruft */
.einzelseite { position: relative; background: var(--papier); border: 1px solid var(--linie); border-radius: var(--kante); margin-top: 16px; }

/* Platzhalter-Silhouette, wenn ein Fahrzeug noch kein Foto hat */
.placeholder { width: 56%; max-height: 120px; color: #c3cbd4; }
.gross .placeholder { width: 42%; color: rgba(255,255,255,.35); }
.tariff__note { display: block; color: var(--grau); font-size: 13px; }

/* Rechenaufgabe im Kontaktformular */
.rechenaufgabe input { max-width: 180px; }
.rechenaufgabe small { font-size: 13px; font-weight: 400; color: var(--grau); }

/* ---------- Rechtstexte: Impressum und Datenschutz ---------- */
.rechtstext { max-width: 760px; }
.rechtstext h1 { font-size: clamp(32px, 4.4vw, 48px); margin-bottom: 14px; }
.rechtstext h2 { font-size: 21px; margin: 38px 0 10px; padding-top: 18px; border-top: 1px solid var(--linie); }
.rechtstext h2:first-of-type { margin-top: 28px; }
.rechtstext p { max-width: 68ch; }
.vorspann { font-size: 18px; color: var(--grau); max-width: 60ch; }
.rechtstext a { color: var(--blau); }

.rechtstabelle { width: 100%; border-collapse: collapse; margin: 4px 0 0; }
.rechtstabelle th { text-align: left; font-weight: 500; color: var(--grau); font-size: 15px; vertical-align: top; padding: 9px 20px 9px 0; width: 36%; border-bottom: 1px solid var(--linie2); }
.rechtstabelle td { padding: 9px 0; border-bottom: 1px solid var(--linie2); font-weight: 600; }

/* Fehlende Pflichtangabe sichtbar machen, statt eine Lücke zu lassen */
.offen { background: #fbe9e9; color: #a3231f; font-weight: 600; padding: 1px 7px; border-radius: 4px; }
.hinweis { font-size: 15px; color: var(--grau); }
.stand { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--linie); font-size: 14px; color: var(--grau); }

@media (max-width: 560px) {
  .rechtstabelle, .rechtstabelle tbody, .rechtstabelle tr, .rechtstabelle th, .rechtstabelle td { display: block; width: auto; }
  .rechtstabelle th { border-bottom: 0; padding: 10px 0 0; }
  .rechtstabelle td { padding-top: 2px; }
}
