:root {
  --bg: #f7f7f7;
  --text: #444;
  --muted: #8f8f8f;
  --white: #fff;
  --black: #0b0b0b;
  --ink: #1f1f1f;
  --panel: #242424;
  --line: rgba(255, 255, 255, 0.14);
  --soft-line: #e8e3df;
  --accent: #a725a8;
  --accent-dark: #861b88;
  --blue: #0051b8;
  --green: #248316;
  --paper: #f3eee9;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Poppins", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.75;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 92px 100%,
    linear-gradient(115deg, rgba(255, 255, 255, 0.08), transparent 42%),
    linear-gradient(180deg, #171717, #0b0b0b);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0.38;
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.22), transparent 5%),
    repeating-linear-gradient(100deg, rgba(255, 255, 255, 0.04) 0 7px, transparent 7px 23px);
  pointer-events: none;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) auto auto;
  grid-template-areas: "brand nav languages";
  align-items: center;
  gap: 0 clamp(18px, 3vw, 42px);
  padding: 18px clamp(24px, 9vw, 126px) 23px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.84);
  box-shadow: 0 2px 22px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(6px);
}

.brand {
  grid-area: brand;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 16px;
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 86px;
  height: 86px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.8);
}

.brand span {
  max-width: 180px;
  font-size: 14px;
  line-height: 1.25;
  text-transform: uppercase;
}

.nav {
  grid-area: nav;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 3vw, 34px);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
}

.nav a {
  position: relative;
  text-decoration: none;
}

.nav a::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.nav a:hover::after {
  transform: scaleX(1);
}

.languages {
  grid-area: languages;
  display: flex;
  align-items: center;
  gap: 8px;
}

.languages button {
  display: inline-grid;
  width: 42px;
  height: 32px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.languages button.active {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.45);
}

.flag {
  position: relative;
  display: block;
  width: 27px;
  height: 18px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.16);
}

.flag-ch {
  background: #d52b1e;
}

.flag-ch::before,
.flag-ch::after {
  position: absolute;
  left: 50%;
  top: 50%;
  content: "";
  background: #fff;
  transform: translate(-50%, -50%);
}

.flag-ch::before {
  width: 15px;
  height: 5px;
}

.flag-ch::after {
  width: 5px;
  height: 15px;
}

.flag-gb {
  background:
    linear-gradient(33deg, transparent 42%, #fff 42%, #fff 48%, #c8102e 48%, #c8102e 54%, #fff 54%, #fff 60%, transparent 60%),
    linear-gradient(147deg, transparent 42%, #fff 42%, #fff 48%, #c8102e 48%, #c8102e 54%, #fff 54%, #fff 60%, transparent 60%),
    linear-gradient(90deg, transparent 38%, #fff 38%, #fff 45%, #c8102e 45%, #c8102e 55%, #fff 55%, #fff 62%, transparent 62%),
    linear-gradient(0deg, transparent 34%, #fff 34%, #fff 43%, #c8102e 43%, #c8102e 57%, #fff 57%, #fff 66%, transparent 66%),
    #012169;
}

.flag-ua {
  background: linear-gradient(to bottom, #0057b7 0 50%, #ffd700 50% 100%);
}

.hero {
  position: relative;
  display: grid;
  min-height: 530px;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  justify-items: center;
  text-align: center;
  padding: clamp(110px, 15vw, 178px) clamp(24px, 10vw, 126px) clamp(92px, 11vw, 132px);
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.72)),
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.14), transparent 22%),
    repeating-linear-gradient(92deg, #5a514b 0 12px, #6a615b 12px 18px, #403936 18px 34px, #736960 34px 44px);
  filter: saturate(0.7);
}

.hero-content {
  max-width: 900px;
}

.hero h1 {
  max-width: 880px;
  margin: 0 auto 20px;
  color: var(--white);
  font-size: clamp(37px, 5vw, 58px);
  font-weight: 700;
  line-height: 1.16;
}

.lead {
  max-width: 800px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 600;
  line-height: 1.55;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
}

.hero .eyebrow {
  font-size: clamp(21px, 2.6vw, 30px);
  text-transform: none;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}

.button,
.contact-form button,
.cars a {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 14px 25px;
  border: 0;
  color: var(--white);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 3px;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.primary,
.contact-form button,
.cars a {
  background: var(--accent);
}

.primary:hover,
.contact-form button:hover {
  background: var(--accent-dark);
}

.secondary {
  background: rgba(0, 0, 0, 0.8);
}

.secondary:hover {
  background: var(--ink);
}

.benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0 clamp(24px, 10vw, 126px);
  background: transparent;
}

.benefits article {
  min-height: 330px;
  padding: clamp(32px, 5vw, 72px) clamp(24px, 4vw, 46px);
  border: 0;
  color: rgba(255, 255, 255, 0.66);
  text-align: center;
}

.benefits article:nth-child(1),
.benefits article:nth-child(3) {
  background: #1f1f1f;
}

.benefits article:nth-child(2) {
  background: #252525;
}

.benefits article:nth-child(4) {
  background: var(--paper);
  color: #222;
}

.benefits span,
.steps span {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--white);
  background: var(--accent);
  font-weight: 800;
}

.benefits h2,
.service-grid h3,
.cars h3,
.steps h3 {
  margin: 0 0 18px;
  color: inherit;
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 700;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.benefits h2 {
  font-size: clamp(21px, 2.1vw, 30px);
}

.benefits h2::after,
.section-heading h2::after,
.split h2::after,
.contact h2::after {
  display: block;
  width: 50px;
  height: 3px;
  margin: 22px auto 0;
  content: "";
  background: currentColor;
}

.benefits article:nth-child(1) h2::after,
.split h2::after {
  background: var(--blue);
}

.benefits article:nth-child(2) h2::after,
.section-heading h2::after {
  background: var(--green);
}

.benefits article:nth-child(3) h2::after,
.contact h2::after {
  background: var(--accent);
}

.benefits p,
.service-grid p,
.cars p,
.steps p,
.section-heading p,
.split p,
.contact p {
  margin: 0;
  color: inherit;
}

.split {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 6vw, 82px);
  align-items: center;
  padding: clamp(74px, 10vw, 118px) clamp(24px, 10vw, 126px);
  background: var(--white);
}

.split h2,
.section-heading h2,
.contact h2 {
  margin: 0;
  color: #4d4d4d;
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 700;
  line-height: 1.2;
}

.split h2::after,
.contact h2::after {
  margin-left: 0;
}

.split p:last-child {
  color: #666;
  font-size: 17px;
  font-weight: 500;
}

.split .eyebrow,
.section-heading .eyebrow,
.contact .eyebrow {
  color: #111;
  font-size: 15px;
  font-weight: 700;
}

.service-grid,
.cars,
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 0 clamp(24px, 10vw, 126px) clamp(70px, 9vw, 110px);
  background: var(--white);
}

.service-grid article,
.cars article,
.steps article {
  min-height: 230px;
  padding: 36px 32px;
  border: 1px solid var(--soft-line);
  background: #fafafa;
}

.service-grid h3,
.cars h3,
.steps h3 {
  color: #4a4a4a;
  font-size: 23px;
}

.service-grid p,
.cars p,
.steps p {
  color: #777;
  font-weight: 500;
}

.rental {
  background: var(--paper);
}

.section-heading {
  max-width: 820px;
  margin-inline: auto;
  padding: clamp(72px, 9vw, 112px) clamp(24px, 6vw, 60px) 36px;
  background: var(--paper);
  text-align: center;
}

.section-heading h2::after {
  margin-right: auto;
  margin-left: auto;
}

.section-heading p:last-child {
  color: #555;
  font-size: 17px;
  font-weight: 500;
}

.cars {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  background: var(--paper);
}

/* Ausgeblendete Fahrzeuge (nicht geloescht, nur unsichtbar) */
.cars article.car-hidden {
  display: none !important;
}

.cars article {
  display: flex;
  flex-direction: column;
  min-height: auto;
  padding: 0 0 22px;
  overflow: hidden;
  border: 0;
  background: var(--white);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.07);
}

.car-image {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 146px;
  place-items: center;
  margin-bottom: 22px;
  border: 0;
  color: rgba(255, 255, 255, 0.78);
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.64)),
    var(--car-image, url("demo-car.png")) center / cover,
    linear-gradient(110deg, #65615e, #2d2d2d);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: zoom-in;
  overflow: hidden;
}

.car-image::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.68));
  opacity: 0.95;
}

.car-image:hover::before,
.car-image:focus-visible::before {
  background: linear-gradient(180deg, rgba(167, 37, 168, 0.14), rgba(0, 0, 0, 0.72));
}

.car-image:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.car-image {
  isolation: isolate;
}

.car-image {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
}

.cars h3,
.cars p,
.cars strong,
.cars a {
  margin-right: 22px;
  margin-left: 22px;
}

.cars strong {
  display: block;
  /* schiebt Preis und Button ans Kartenende, damit sie ueber alle Karten auf gleicher Hoehe stehen */
  margin-top: auto;
  padding-top: 16px;
  margin-bottom: 18px;
  color: #111;
  font-size: 16px;
}

.cars a {
  width: calc(100% - 44px);
  background: var(--green);
}

.cars a:hover {
  background: #1e6e12;
}

.process {
  color: var(--white);
  background:
    linear-gradient(rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.86)),
    repeating-linear-gradient(100deg, #37322f 0 13px, #4c4540 13px 26px);
}

.process .section-heading {
  background: transparent;
}

.process .section-heading .eyebrow,
.process .section-heading h2 {
  color: var(--white);
}

.process .section-heading p:last-child,
.process .steps p {
  color: rgba(255, 255, 255, 0.68);
}

.process .steps {
  background: transparent;
}

.process .steps article {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(31, 31, 31, 0.95);
  text-align: center;
}

.process .steps article:nth-child(2) {
  background: rgba(40, 40, 40, 0.96);
}

.process .steps h3 {
  color: var(--white);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: clamp(30px, 6vw, 86px);
  align-items: start;
  padding: clamp(72px, 9vw, 112px) clamp(24px, 10vw, 126px);
  color: #1e1e1e;
  background: var(--white);
}

.contact p {
  color: #555;
  font-weight: 500;
}

address {
  margin: 24px 0 12px;
  font-style: normal;
  line-height: 1.55;
}

.contact-direct {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(150px, 0.55fr);
  gap: 22px;
  align-items: start;
  margin: 0 0 26px;
}

.contact-direct p {
  margin: 8px 0;
  line-height: 1.35;
}

.whatsapp-note {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #222;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.whatsapp-note img {
  width: min(176px, 100%);
  max-height: 176px;
  object-fit: contain;
}

.whatsapp-note span {
  max-width: 230px;
  line-height: 1.35;
}

.contact-form {
  display: grid;
  gap: 15px;
  padding: 30px;
  color: #222;
  background: var(--paper);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.08);
}

.contact .button.primary {
  width: fit-content;
  max-width: 100%;
}

.contact-form label {
  display: grid;
  gap: 7px;
  font-weight: 700;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid #d3cbc4;
  padding: 13px 14px;
  background: var(--white);
  color: #222;
  font: inherit;
}

/* Spam-Falle: fuer Besucher unsichtbar, Bots fuellen sie trotzdem aus */
.contact-form .form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contact-form .h-captcha {
  margin: 4px 0 2px;
}

.contact-form button[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.form-status {
  margin: 0;
  min-height: 1.2em;
  font-weight: 700;
}

.form-status[data-state="success"] {
  color: #1c7a3c;
}

.form-status[data-state="error"] {
  color: #b3261e;
}

.form-status[data-state="pending"] {
  color: #555;
}

/* Impressum / Datenschutz */
.legal {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(40px, 8vw, 90px) clamp(24px, 6vw, 46px);
  color: var(--text);
  background: var(--white);
  box-shadow: var(--shadow);
  line-height: 1.7;
}

.legal h1,
.legal h2,
.legal h3 {
  color: var(--ink);
}

.legal .eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.legal h1 {
  margin: 0 0 34px;
}

.legal h2 {
  margin: 46px 0 14px;
  padding-top: 22px;
  border-top: 2px solid var(--accent);
}

.legal h3 {
  margin: 30px 0 8px;
}

.legal p {
  margin: 0 0 14px;
}

.legal a {
  color: inherit;
}

.legal-date {
  margin-top: 26px;
  font-style: italic;
}

.footer .small a {
  color: inherit;
}

.footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 30px;
  align-items: center;
  padding: 44px clamp(24px, 10vw, 126px);
  color: var(--white);
  background: rgba(0, 0, 0, 0.88);
}

.footer img {
  width: 82px;
  height: 82px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.72);
}

.small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.modal-open {
  overflow: hidden;
}

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 4vw, 44px);
  background: rgba(0, 0, 0, 0.86);
}

.image-modal.open {
  display: flex;
}

.image-modal-content {
  width: min(1100px, 100%);
  color: var(--white);
}

.image-modal-content h2 {
  margin: 0 0 18px;
  color: var(--white);
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.15;
}

.image-modal-viewer {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 54px;
  gap: 14px;
  align-items: center;
}

.image-modal-frame {
  display: grid;
  min-height: min(66vh, 620px);
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.5)),
    linear-gradient(110deg, #65615e, #2d2d2d);
  box-shadow: var(--shadow);
}

.image-modal-frame img {
  display: block;
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
}

.image-modal-nav {
  display: grid;
  width: 54px;
  height: 70px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--white);
  background: rgba(0, 0, 0, 0.72);
  font-size: 48px;
  line-height: 1;
  cursor: pointer;
}

.image-modal-nav:hover,
.image-modal-nav:focus-visible {
  background: var(--accent);
  outline: none;
}

.image-modal-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(80px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.image-modal-thumbs button {
  min-height: 96px;
  border: 2px solid transparent;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.42)),
    var(--thumb-image) center / cover;
  cursor: pointer;
}

.image-modal-thumbs button.active,
.image-modal-thumbs button:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.image-modal-placeholder {
  display: grid;
  width: 100%;
  min-height: min(66vh, 620px);
  place-items: center;
  padding: 32px;
  color: var(--white);
  font-size: clamp(28px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: 3px;
  text-align: center;
  text-transform: uppercase;
}

.image-modal-close {
  position: fixed;
  top: 18px;
  right: 18px;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--white);
  background: rgba(0, 0, 0, 0.72);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.image-modal-close:hover,
.image-modal-close:focus-visible {
  background: var(--accent);
  outline: none;
}

@media (max-width: 1160px) {
  .site-header {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "nav"
      "languages";
    gap: 16px;
  }

  .nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .benefits,
  .service-grid,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .site-header {
    position: static;
    padding-bottom: 22px;
  }

  .brand img {
    width: 70px;
    height: 70px;
  }

  .nav {
    gap: 14px 20px;
    font-size: 13px;
  }

  .hero,
  .split,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 78px;
  }

  .benefits,
  .service-grid,
  .cars,
  .steps {
    grid-template-columns: 1fr;
  }

  .benefits article {
    min-height: 250px;
  }

  .contact-direct {
    grid-template-columns: minmax(220px, 1fr) minmax(140px, 0.55fr);
  }

  .footer {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 520px) {
  .topbar {
    display: grid;
    gap: 6px;
  }

  .brand {
    align-items: flex-start;
  }

  .hero-actions,
  .button,
  .contact-form button {
    width: 100%;
  }

  .contact-direct {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 22px;
  }

  .image-modal-viewer {
    grid-template-columns: 1fr;
  }

  .image-modal-nav {
    width: 100%;
    height: 44px;
    font-size: 34px;
  }

  .image-modal-prev {
    order: 2;
  }

  .image-modal-frame {
    order: 1;
  }

  .image-modal-next {
    order: 3;
  }

  .image-modal-thumbs {
    grid-template-columns: 1fr;
  }
}
