/* =========================================================
   G&G Autozentrum GmbH – style.css
   Überarbeitete Version:
   - Premium Schwarz/Gold Design
   - responsive für Handy/Tablet/PC
   - kleiner runder WhatsApp-Button UNTEN RECHTS
   ========================================================= */

:root {
  --bg: #050505;
  --bg-soft: #090909;
  --card: #111111;
  --card-2: #171717;
  --gold: #d9aa4f;
  --gold-light: #f2d48a;
  --text: #ffffff;
  --muted: #bdbdbd;
  --line: #2b2415;
  --green: #25D366;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

/* Header / Navigation */
.topbar,
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.94);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 16px 5vw;
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
  color: var(--gold-light);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 50%;
}

nav {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  color: #eeeeee;
  font-size: 14px;
}

nav a:hover {
  color: var(--gold-light);
}

.admin {
  border: 1px solid var(--gold);
  padding: 10px 16px;
  border-radius: 5px;
}

/* Hero */
.hero {
  min-height: 620px;
  background:
    linear-gradient(90deg, #050505 0%, rgba(0,0,0,.78) 48%, rgba(0,0,0,.22)),
    radial-gradient(circle at 70% 50%, rgba(217,170,79,.16), transparent 46%);
  display: flex;
  align-items: center;
  padding: 5vw;
}

.hero__content {
  max-width: 820px;
}

.hero-logo {
  width: 280px;
  max-width: 80%;
  display: block;
  margin-bottom: 30px;
  border-radius: 10px;
  box-shadow: 0 0 50px rgba(217, 170, 79, 0.18);
}

h1 {
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1;
  margin: 0 0 18px;
}

h2 {
  margin-top: 0;
}

.slogan {
  font-size: clamp(20px, 2.4vw, 34px);
  color: #eeeeee;
  line-height: 1.3;
}

/* Buttons */
.actions,
.filters {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn,
button {
  display: inline-block;
  text-decoration: none;
  border: 1px solid var(--gold);
  background: transparent;
  color: white;
  padding: 14px 22px;
  border-radius: 5px;
  font-weight: 700;
  cursor: pointer;
}

.btn.gold,
button,
.filters button {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #080808;
}

.btn:hover,
button:hover {
  filter: brightness(1.08);
}

/* Layout */
.searchbox,
.cars,
.split,
.contact,
.benefits {
  padding: 42px 5vw;
}

.searchbox {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

.filters input,
.filters select,
.contact input,
.contact textarea,
.admin-form input,
.admin-form textarea,
.admin-form select,
.file-label {
  background: #090909;
  color: white;
  border: 1px solid #3a2a10;
  border-radius: 5px;
  padding: 14px;
  min-width: 190px;
}

.section-title {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-title span {
  height: 1px;
  background: var(--line);
  flex: 1;
}

/* Fahrzeugkarten */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.car,
.car-card,
.empty-card {
  background: linear-gradient(180deg, var(--card-2), #0b0b0b);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.car .photo {
  height: 190px;
  background: linear-gradient(135deg, #191919, #050505);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

.car img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.car-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  background: #080808;
}

.car-card h3 a {
  text-decoration: none;
}

.empty-card {
  padding: 28px;
  grid-column: 1 / -1;
}

.car-body {
  padding: 18px;
}

.price {
  color: var(--gold-light);
  font-size: 22px;
  font-weight: 800;
}

.price.big {
  font-size: 34px;
}

.meta {
  color: var(--muted);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

/* Vorteile / Über uns */
.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: #090909;
}

.benefits article {
  border: 1px solid var(--line);
  padding: 28px;
}

.benefits b {
  color: var(--gold);
  font-size: 20px;
}

.split {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  border-top: 1px solid var(--line);
}

.split p,
.contact p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.about-list {
  margin-top: 14px;
  padding-left: 20px;
  line-height: 1.9;
}

.about-list li {
  color: #f5f5f5;
}

.about-list li::marker {
  color: var(--gold);
}

/* Kontakt */
.contact form,
.admin-form {
  display: grid;
  gap: 14px;
  max-width: 720px;
}

.contact textarea,
.admin-form textarea {
  min-height: 140px;
}

/* Meldungen */
.notice {
  margin: 40px 5vw;
  padding: 24px;
  border: 1px solid var(--gold);
  border-radius: 10px;
  background: #0f0f0f;
}

.success {
  border: 1px solid #207c3a;
  background: #092512;
  color: #b9f7c7;
  padding: 14px;
  border-radius: 8px;
}

.error {
  border: 1px solid #8a2727;
  background: #2b0f0f;
  color: #ffd2d2;
  padding: 14px;
  border-radius: 8px;
}

/* Fahrzeugdetail */
.vehicle-page {
  padding: 42px 5vw;
}

.back {
  display: inline-block;
  color: var(--gold-light);
  margin-bottom: 24px;
  text-decoration: none;
}

.vehicle-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, .7fr);
  gap: 32px;
  align-items: start;
}

.vehicle-gallery,
.vehicle-info,
.vehicle-desc {
  background: #0d0d0d;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
}

.main-vehicle-img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
  border-radius: 8px;
  background: #050505;
}

.thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow: auto;
}

.thumbs img {
  width: 110px;
  height: 80px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}

.specs {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 10px 14px;
  margin: 24px 0;
}

.specs dt {
  color: var(--muted);
}

.specs dd {
  margin: 0;
  color: #ffffff;
}

.vehicle-desc {
  margin-top: 28px;
  line-height: 1.7;
}

.equipment {
  columns: 2;
  line-height: 1.9;
}

/* Admin */
.file-label input {
  display: block;
  margin-top: 10px;
  padding: 0;
  border: 0;
}

.login-form {
  max-width: 420px;
}

.admin-list {
  display: grid;
  gap: 15px;
  margin-top: 25px;
}

.admin-item {
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: 8px;
  background: #111111;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.admin-list article {
  display: grid;
  grid-template-columns: 80px 1fr auto auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  padding: 14px;
  border-radius: 8px;
  background: #111111;
}

.admin-list img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}

.btn.danger,
.danger {
  border-color: #8a2727;
  background: #2b0f0f;
  color: #ffd2d2;
}

input[type=file] {
  color: #dddddd;
}

/* Footer & Rechtliches */
footer,
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 5vw;
  color: var(--muted);
}

footer a,
.site-footer a {
  color: var(--muted);
  margin-right: 14px;
}

.legal,
.admin-page {
  padding: 50px 5vw;
  max-width: 1100px;
  margin: auto;
}

.legal {
  line-height: 1.7;
}

.legal h1,
.legal h2 {
  color: var(--gold-light);
}

.note {
  color: var(--gold-light);
}

/* =========================================================
   WhatsApp Floating Button
   UNTEN RECHTS, klein, rund, auch auf Handy.
   Funktioniert mit class="whatsapp" UND class="wa-float".
   ========================================================= */

a.whatsapp,
a.wa-float,
.whatsapp,
.wa-float {
  position: fixed !important;
  right: 22px !important;
  left: auto !important;
  bottom: 22px !important;
  top: auto !important;

  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
  max-width: 56px !important;
  min-height: 56px !important;
  max-height: 56px !important;

  padding: 0 !important;
  margin: 0 !important;
  border-radius: 50% !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  background: #111111 !important;
  border: 2px solid var(--gold) !important;
  box-shadow: 0 0 20px rgba(217, 170, 79, 0.38) !important;
  z-index: 99999 !important;

  overflow: hidden !important;
  text-decoration: none !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  white-space: nowrap !important;
}

/* SVG-Logo im Button */
a.whatsapp svg,
a.wa-float svg,
.whatsapp svg,
.wa-float svg {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  max-width: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  display: block !important;
  fill: var(--green) !important;
  color: var(--green) !important;
}

/* Alten Text ausblenden, falls noch vorhanden */
a.whatsapp span,
a.wa-float span,
.whatsapp span,
.wa-float span {
  display: none !important;
}

/* Alte Pseudo-Icons deaktivieren */
a.whatsapp::before,
a.whatsapp::after,
a.wa-float::before,
a.wa-float::after,
.whatsapp::before,
.whatsapp::after,
.wa-float::before,
.wa-float::after {
  content: none !important;
  display: none !important;
}

/* Responsive */
@media (max-width: 900px) {
  .vehicle-hero {
    grid-template-columns: 1fr;
  }

  .equipment {
    columns: 1;
  }

  .admin-list article {
    grid-template-columns: 70px 1fr;
  }

  .admin-list article a,
  .admin-list article form {
    grid-column: 2;
  }

  .hero-logo {
    width: 210px;
  }
}

@media (max-width: 760px) {
  .topbar,
  .site-header {
    align-items: flex-start;
    gap: 12px;
    flex-direction: column;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  nav {
    gap: 12px;
    flex-wrap: wrap;
  }

  nav a {
    font-size: 15px;
  }

  .hero {
    min-height: 520px;
  }

  .split {
    display: block;
  }

  .filters input,
  .filters select,
  .filters button,
  .contact input,
  .contact textarea {
    width: 100%;
  }

  .section-title {
    font-size: 18px;
  }

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

  a.whatsapp,
  a.wa-float,
  .whatsapp,
  .wa-float {
    right: 16px !important;
    left: auto !important;
    bottom: 16px !important;

    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;

    padding: 0 !important;
    margin: 0 !important;
    border-radius: 50% !important;
    font-size: 0 !important;
    line-height: 0 !important;
  }

  a.whatsapp svg,
  a.wa-float svg,
  .whatsapp svg,
  .wa-float svg {
    width: 25px !important;
    height: 25px !important;
    min-width: 25px !important;
    max-width: 25px !important;
    min-height: 25px !important;
    max-height: 25px !important;
  }

  footer,
  .site-footer {
    padding-bottom: 78px !important;
  }
}
nav .admin {
  display: none !important;