/* ========================================= */
/* 🚗 RentCar – Mahaini Autodienste (SW-Design mit farbigen Autos) */
/* ========================================= */

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #fff;
  color: #000;
}

/* Header */
.rentcar-header {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 60px 15px 50px;
}

.rentcar-header h1 {
  font-size: 32px;
  margin-bottom: 10px;
}

.rentcar-header p {
  font-size: 18px;
  opacity: 0.9;
}

/* Hauptbereich */
.rentcar-section {
  padding: 60px 20px;
  background: #fff;
}

.rentcar-section h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 40px;
  color: #000;
}

/* Fahrzeugkarten */
.car-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.car-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.car-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.car-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.car-card h3 {
  font-size: 22px;
  margin: 15px 0 5px;
  color: #000;
}

.car-card p {
  padding: 0 15px;
  font-size: 15px;
  color: #333;
}

.price {
  display: block;
  margin: 10px 0;
  font-weight: bold;
  color: #000;
}

.btn {
  display: inline-block;
  margin: 15px 0 25px;
  background: #000;
  color: #fff;
  padding: 10px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-3px);
  background: #333;
}

/* Kontaktbereich */
.rentcar-contact {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 60px 15px;
}

.rentcar-contact h2 {
  margin-bottom: 15px;
  font-size: 26px;
}

.rentcar-contact p {
  margin-bottom: 25px;
}

.contact-options {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.contact-btn {
  background: #000;
  color: white;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.contact-btn i {
  margin-right: 8px;
}

.contact-btn:hover {
  background: #333;
  transform: translateY(-2px);
}

/* Footer */
.rentcar-footer {
  background: #000;
  color: #ccc;
  text-align: center;
  padding: 25px 10px;
  font-size: 14px;
}

/* ========================================= */
/* 🧾 MODAL-FENSTER: Mietanfrageformular – kompakte Version */
/* ========================================= */

.rent-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

.rent-modal.active {
  display: flex;
}

.modal-content {
  background: #fff;
  color: #000;
  width: 95%;
  max-width: 580px;
  padding: 18px;
  border-radius: 8px;
  position: relative;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  animation: modalFade 0.25s ease;
  max-height: 90vh;
  overflow-y: auto;
  box-sizing: border-box;
}

@keyframes modalFade {
  from { opacity: 0; transform: translateY(-15px); }
  to { opacity: 1; transform: translateY(0); }
}

.close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 22px;
  color: #000;
  cursor: pointer;
  transition: color 0.3s ease;
}
.close:hover {
  color: #666;
}

/* Formularstruktur */
#rentForm { margin-top: 6px; }
.form-group { margin-bottom: 8px; }

.form-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.form-row .form-group {
  flex: 1;
  min-width: 120px;
}

label {
  display: block;
  font-weight: 500;
  margin-bottom: 3px;
  font-size: 13px;
  color: #000;
}

/* Kompakte Inputs */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="time"],
input[type="file"],
select {
  width: 100%;
  padding: 4px 6px;
  border: 1px solid #bbb;
  border-radius: 4px;
  font-size: 13px;
  background: #fafafa;
  transition: border-color 0.3s ease, background 0.3s ease;
  height: 28px;
  box-sizing: border-box;
}

input:focus,
select:focus {
  border-color: #000;
  background: #fff;
  outline: none;
}

input[type="file"] {
  background: #f9f9f9;
  border: 1px solid #aaa;
  padding: 3px;
  font-size: 12px;
  height: auto;
}

/* Submit-Button */
button[type="submit"].btn {
  width: 100%;
  margin-top: 10px;
  background: #000;
  color: #fff;
  font-weight: 600;
  border-radius: 20px;
  padding: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
}
button[type="submit"].btn:hover {
  background: #333;
  transform: translateY(-2px);
}

/* Scrollbar */
.modal-content::-webkit-scrollbar { width: 5px; }
.modal-content::-webkit-scrollbar-thumb {
  background-color: #444;
  border-radius: 3px;
}
.modal-content::-webkit-scrollbar-track {
  background: #eee;
}

/* ========================================= */
/* 📱 MOBILE FEINANPASSUNG – KOMPAKTER STIL */
/* ========================================= */
@media (max-width: 768px) {
  html, body { overflow-x: hidden; }

  .modal-content {
    width: 90%;
    max-width: 400px;
    padding: 16px;
    border-radius: 8px;
    max-height: 90vh;
  }

  .form-row {
    flex-direction: column;
    gap: 6px;
  }

  .form-group label {
    font-size: 12px;
  }

  input,
  select {
    font-size: 12px;
    padding: 4px 6px;
    height: 26px;
  }

  input[type="file"] {
    font-size: 11px;
    padding: 3px;
  }

  button[type="submit"].btn {
    font-size: 13px;
    padding: 9px;
  }

  .close {
    font-size: 24px;
    right: 10px;
    top: 8px;
  }
}




/* ========================================================= */
/* ✅ Erfolgs-Popup nach Anfrageabsendung                    */
/* ========================================================= */
.success-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 5000;
}

.success-popup.active {
  display: flex;
  animation: fadeIn 0.3s ease-in-out;
}

.popup-content {
  background: #fff;
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  max-width: 400px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.popup-content h2 {
  margin-bottom: 10px;
  color: #0b8e00;
}

.popup-content p {
  font-size: 16px;
  color: #333;
  margin-bottom: 20px;
}

.popup-content .btn {
  background: #000;
  color: white;
  border: none;
  border-radius: 25px;
  padding: 10px 25px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;
}

.popup-content .btn:hover {
  background: #333;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

