@import url('https://fonts.googleapis.com/css2?family=Tinos:ital,wght@0,400;0,700;1,400;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Work+Sans:ital@0;1&display=swap');

/* ========== BASIS ========== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Work Sans', sans-serif;
  background: #121212;
  color: #e0e0e0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
h1, h2, h3 {
  font-family: 'Tinos', serif;
  font-weight: 700;
  color: #e52421;
  margin-bottom: 1rem;
}
p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* ========== HEADER + BURGER (NEU ANGEPASST) ========== */
header {
  background: #1e1e1e;
  border-bottom: 1px solid #333;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.nav-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo-small {
  height: 46px;
  width: auto;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: #e0e0e0;
  text-decoration: none;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  transition: 0.3s ease;
}

nav a:hover {
  background-color: #cc0000;
  color: white;
}

.burger {
  display: none; /* Standardmäßig versteckt auf Desktop */
  font-size: 28px;
  cursor: pointer;
  color: white;
  padding: 0.5rem;
  z-index: 1001;
  margin-left: auto;
}

/* ========== HERO ========== */
.hero {
  background: #1a1a1a;
  text-align: center;
  padding: 5rem 1rem 4rem;
  width: 100%;
}
.logo-hero {
  height: auto;
  max-width: 100%;
  max-height: 360px;
  display: block;
  margin: 0 auto 1rem;
  animation: fadeInUp 1s ease forwards;
}
.logo-name {
  height: auto;
  max-width: 80%;
  display: block;
  margin: 2rem auto 0;
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.6s;
  animation-fill-mode: forwards;
}

/* ========== SECTIONS ========== */
section {
  max-width: 1000px;
  margin: auto;
  padding: 4rem 1.5rem;
}
.button-link {
  display: inline-block;
  background-color: transparent;
  border: 2px solid rgb(229, 36, 33);
  color: rgb(229, 36, 33);
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
}
.button-link:hover {
  background-color: transparent;
  color: #ffffff;
  text-decoration: underline;
}

/* ========== FORMULARE ========== */
form {
  margin-top: 2rem;
  background: #1c1c1c;
  padding: 2rem;
  border-radius: 8px;
}
form fieldset {
  border: none;
  margin-bottom: 2rem;
}
form legend {
  font-size: 1.2rem;
  font-weight: 600;
  color: rgb(229, 36, 33);
  margin-bottom: 0.5rem;
}
form label {
  display: block;
  margin: 1rem 0 0.3rem;
  font-weight: 500;
}
form input[type="text"],
form input[type="email"],
form textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #444;
  border-radius: 6px;
  background: #1e1e1e;
  color: #e0e0e0;
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
  box-sizing: border-box;
}
form textarea {
  min-height: 130px;
}
/* ========== BURGER MENU RESPONSIVE ========== */
@media (max-width: 768px) {
  /* Navigation auf Mobile verstecken */
  .nav-wrapper ul {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    background: #1e1e1e;
    position: absolute;
    top: 65px;
    right: 20px;
    padding: 1rem;
    border-radius: 10px;
  }

  /* Wenn .show Klasse gesetzt ist, anzeigen */
  .nav-wrapper ul.show {
    display: flex !important;
    z-index: 9999;
  }

  /* Burger-Button auf Mobile anzeigen */
  .burger {
    display: block !important;
  }

  .logo-hero {
    height: 260px;
  }

  .logo-name {
    height: 120px;
  }
}

/* ========== ANIMATION ========== */
.fade {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade.visible {
  opacity: 1;
  transform: translateY(0);
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== FOOTER ========== */
footer {
  background: #1e1e1e;
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  color: #ccc;
}

/* ========== FOOTER-LINKS ========== */
.footer-links {
  background-color: #121212;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: #888;
}
.footer-links a {
  color: #888;
  text-decoration: none;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}
.footer-links a:hover {
  color: #e52421;
}
.footer-links span {
  color: #555;
}
/* ===== Popup Design ===== */
.popup-container {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  display: none;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 9999;
}
.popup {
  position: relative;
  top: 50px;
  background-color: #1e1e1e;
  padding: 2.5rem 2rem 2rem;
  border-radius: 8px;
  border: 2px solid #e52421;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
  max-width: 360px;
  width: 90%;
  color: #fff;
  text-align: center;
  z-index: 10001;
}
.popup p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}
.popup button {
  display: block;
  width: 100%;
  margin: 0.5rem auto;
  background: #cc0000;
  border: none;
  padding: 0.7rem 1.2rem;
  border-radius: 6px;
  color: white;
  font-weight: 600;
  cursor: pointer;
}
.popup .back-arrow {
  position: absolute;
  bottom: 12px;
  left: 16px;
  font-size: 0.9rem;
  cursor: pointer;
  color: #999;
  font-weight: 500;
}
.popup .back-arrow:hover {
  color: #e52421;
}

/* ========== CUSTOM MODALS (Admin z. B.) ========== */
.custom-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.custom-modal.hidden {
  display: none;
}
.custom-modal-content {
  background: #1e1e1e;
  padding: 2rem;
  border-radius: 10px;
  border: 2px solid #cc0000;
  max-width: 400px;
  width: 90%;
  color: #e0e0e0;
  text-align: center;
}
.custom-modal-content h3 {
  color: #e52421;
  margin-bottom: 1rem;
}
.custom-modal-content input {
  width: 100%;
  margin: 0.6rem 0;
  padding: 0.7rem;
  background: #121212;
  border: 1px solid #333;
  border-radius: 6px;
  color: white;
}
.custom-modal-content button {
  margin-top: 1rem;
  width: 100%;
}

/* Kontaktformular Popup */
#contact-popup input[type="text"],
#contact-popup input[type="email"] {
  width: 100%;
  padding: 0.7rem;
  margin-bottom: 1rem;
  background: #121212;
  border: 1px solid #333;
  border-radius: 6px;
  color: white;
}

/* Zentriert fixiert */
.fixed-center {
  position: fixed !important;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Link-Stile */
.link-muted {
  color: #e52421;
  text-decoration: none;
  transition: color 0.3s ease;
}
.link-muted:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Impressum & Datenschutz Links */
.impressum-link, .datenschutz-link {
  color: #e52421;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}
.impressum-link:hover,
.datenschutz-link:hover {
  color: #ffffff;
  text-decoration: underline;
}
/* ========== BURGER & NAVIGATION (RESPONSIVE) ========== */
.burger {
  display: block;
  font-size: 28px;
  cursor: pointer;
  color: white;
  padding: 0.5rem;
  z-index: 1001;
}

/* Mobile Menü (standardmäßig versteckt) */
.nav-links {
  display: none;
  position: absolute;
  top: 70px;
  right: 20px;
  background: #1e1e1e;
  padding: 1rem;
  border-radius: 10px;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 0 12px rgba(0,0,0,0.5);
  z-index: 1000;
}
.nav-links.show {
  display: flex;
}
.nav-links a {
  color: #e0e0e0;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;
}
.nav-links a:hover {
  background-color: #cc0000;
  color: white;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
}
.nav-links li {
  margin-bottom: 0.4rem;
}

/* Menü-Header im Burger-Menü */
.menu-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid #333;
  margin-bottom: 0.8rem;
}
.menu-logo {
  height: 30px;
  width: auto;
}
.menu-title {
  font-weight: 600;
  color: #e52421;
  font-size: 1rem;
}

/* ========== FOOTER LINKS ========== */
.footer-links {
  background-color: #121212;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: #888;
}
.footer-links a {
  color: #888;
  text-decoration: none;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}
.footer-links a:hover {
  color: #e52421;
}
.footer-links span {
  color: #555;
}

.section-space {
  margin-top: 2rem;
}

/* ========== MSV Checkbox Design ========== */
/* MSV Checkbox Design – Kreis mit X bei Aktivierung */
.msv-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  margin: 0.5rem 0;
  font-family: 'Work Sans', sans-serif;
  font-size: 1rem;
  color: #e0e0e0;
  position: relative;
  padding-left: 30px;
  user-select: none;
  line-height: 1.4;
  min-height: 20px;
}

.msv-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.msv-checkbox span {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 16px;
  width: 16px;
  background-color: #1e1e1e;
  border: 2px solid #e52421;
  border-radius: 50%;
  display: inline-block;
}

/* Nur wenn aktiv: roter Kreis mit weißem X */
.msv-checkbox input:checked + span {
  background-color: #e52421;
}

.msv-checkbox input:checked + span::after {
  content: "✕";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px;
  font-weight: 400;
  color: white;
  line-height: 1;
}

/* Hover-Effekt */
.msv-checkbox:hover span {
  box-shadow: 0 0 6px rgba(229, 36, 33, 0.6);
  transform: scale(1.05);
}

/* Mehrfachauswahl-Box */
select[multiple] {
  width: 100%;
  max-height: 150px;
  background: #1e1e1e;
  color: white;
  border: 2px solid #e52421;
  padding: 0.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow-y: auto;
}

/* Fahrzeuganzahl Container */
.vehicle-count-container {
  margin-top: 1rem;
}

.vehicle-count-container label {
  display: block;
  margin-bottom: 0.2rem;
  color: #e0e0e0;
}

.vehicle-count-container input {
  width: 100%;
  padding: 0.4rem;
  margin-bottom: 1rem;
  background: #1a1a1a;
  color: white;
  border: 1px solid #444;
  border-radius: 6px;
}

/* Fahrzeugfeld */
.fahrzeug-input {
  width: 80px;
  padding: 0.3rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  background: #1e1e1e;
  color: white;
}

.fahrzeug-input:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Fahrzeugreihen-Anzeige */
.vehicle-row {
  display: flex;
  align-items: center;
  margin-bottom: 0.8rem;
  gap: 1rem;
}

.vehicle-row label {
  flex: 1;
  color: #e0e0e0;
}

/* Checkbox-Zeile */
.checkrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
}

/* Header volle Breite & Abstand außen */
.nav-container.full-width {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.nav-left,
.nav-right {
  flex-shrink: 0;
}

.nav-wrapper {
  flex-grow: 1;
  display: flex;
  justify-content: center;
}

.site-header {
  background-color: #111;
  padding: 10px 20px;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
}

.logo-left {
  display: flex;
  align-items: center;
}

.header-logo {
  height: 40px;
  max-height: 60px;
}

.menu-right {
  display: flex;
  align-items: center;
}

.burger-menu {
  font-size: 28px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}
/* Neue Klasse für Fehlerhafte Felder */
.error-field {
  border: 2px solid red !important;
  background-color: #2a0000 !important;
}

/* Optionale Hervorhebung bei aktiver Anzahl */
.active-input {
  background-color: #333 !important;
  border-color: #777 !important;
}
