/* ============================================
   Globale Stile
============================================ */
html,
body {
  overflow-x: hidden;
}

body {
  background: linear-gradient(to right, #002147, #003366);
  color: #fff;
  margin: 0;
  font-family: "Josefin Sans", sans-serif;
  font-weight: 400;
  font-style: normal;
}

/* Überschriften */
h1,
h2,
h3 {
  font-family: "Josefin Sans", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ============================================
   Navigation
============================================ */
.navbar-custom {
  background: rgba(0, 0, 0, 0.2);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  padding: 12px 0;
  transition: all 0.3s ease-in-out;
}

.navbar-custom .nav-link {
  color: #86b7fe;
  font-weight: 500;
  padding: 10px 15px;
  transition: color 0.3s ease-in-out, background 0.3s ease-in-out;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
  color: #86b7fe;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
}

.logo-img {
  height: 50px;
  width: auto;
  border-radius: 5px;
  transition: transform 0.3s ease-in-out;
}

.logo-img:hover {
  transform: scale(1.1);
}

/* ============================================
   Hero-Bereich
============================================ */
.hero-section {
  position: relative;
  width: 100%;
  height: 90vh;
  overflow: hidden;
}

.hero-img {
  height: 90vh;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.animated-title {
  font-size: 3.5rem;
  font-weight: 700;
  text-transform: uppercase;
  background: linear-gradient(135deg, #007bff, #0044cc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 2px 2px 8px rgba(255, 255, 255, 0.2);
  animation: fade-in 2s ease-out forwards, slide-in 1.5s ease-in-out forwards;
}

.animated-subtitle {
  font-size: 1.8rem;
  font-weight: 400;
  color: #86b7fe;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
  animation: fade-in 2s ease-in-out forwards 1s;
}

/* Animationen */
@keyframes fade-in {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes slide-in {
  0% {
    transform: translateY(-20px);
  }

  100% {
    transform: translateY(0);
  }
}

/* ============================================
   Über uns Sektion (#about)
============================================ */
/* Über uns Sektion (#about) */
/* Über uns Sektion (#about) */
#about {
  background: linear-gradient(to right, #002147, #003366);
  color: #fff;
  padding: 60px 0;
}

#about .col-lg-6 {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

#about .col-lg-6.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Bild-Animation */
#about .image-container img {
  width: 100%;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

#about .col-lg-6.visible .image-container img {
  opacity: 1;
  transform: scale(1);
}

#about .col-lg-6.visible .image-container img {
  opacity: 1;
  transform: scale(1);
}

#about .image-container:hover img {
  transform: scale(1.05);
}

/* Feature-Liste */
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 20px;
}

.feature-item {
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  color: #86b7fe;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.feature-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-item i {
  font-size: 1.5rem;
  margin-right: 10px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #86b7fe;
  border-bottom: 3px solid #86b7fe;
  display: inline-block;
  padding-bottom: 5px;
}

.section-description {
  font-size: 1.1rem;
  color: #eee;
  line-height: 1.6;
}

.btn-primary {
  background: #86b7fe;
  border: none;
  font-weight: bold;
  padding: 12px 20px;
  transition: background 0.3s ease;
}

.btn-primary:hover {
  background: #2300e6;
}

/* ============================================
   Call-to-Action Sektion (#cta)
============================================ */
#cta {
  position: relative;
  background: linear-gradient(to right, #002147, #003366);
  padding: 80px 0;
  color: #fff;
  text-align: center;
  overflow: visible;
  opacity: 0;
  transition: opacity 1s ease-out;
  min-height: 400px;
}

#cta.visible {
  opacity: 1;
}

.cta-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  /* Wellen nicht abschneiden */
  /* z-index: -1 entfernt */
}

.wave-svg {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

/* Container nach vorne bringen */
.container {
  position: relative;
  z-index: 2;
  /* Über den Wellen */
}

/* Buttons-Animation */
#cta .social-btn {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

#cta.visible .social-btn {
  opacity: 1;
  transform: translateY(0);
  animation: bounceIn 0.5s ease-out forwards;
}

.wave-svg .wave-1 {
  fill: linear-gradient(90deg, #86b7fe, #4a90e2);
  fill-opacity: 0.4;
}

.wave-svg .wave-2 {
  fill: linear-gradient(90deg, #4a90e2, #1e90ff);
  fill-opacity: 0.3;
}

.wave-svg .wave-3 {
  fill: linear-gradient(90deg, #1e90ff, #4682b4);
  fill-opacity: 0.2;
}

@keyframes bounceIn {
  0% {
    transform: translateY(50px);
  }

  60% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0);
  }
}

/* ============================================
   Fahrzeuge Sektion (#cars)
============================================ */
#cars {
  background: linear-gradient(to right, #002147, #003366);
}

.car-img {
  height: 500px;
  object-fit: cover;
  border-radius: 10px;
}

/* ============================================
   Kontakt Sektion (#contact)
============================================ */
#contact {
  background: linear-gradient(to right, #002147, #003366);
  color: #fff;
  padding: 60px 0;
}

.contact-info li {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.contact-info i {
  color: #86b7fe;
  margin-right: 8px;
}

.contact-info a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease-in-out;
}

.contact-info a:hover {
  color: #ffdd57;
  text-decoration: underline;
}

.map-container {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.map-embed {
  width: 100%;
  height: 250px;
  border: 0;
}

form .form-control {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

form .form-control:focus {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ffdd57;
}

form .btn-primary {
  background: #86b7fe;
  border: none;
  font-size: 1.1rem;
}

form .btn-primary:hover {
  background: #2300e6;
}

/* ============================================
   Footer
============================================ */
.footer {
  background: linear-gradient(to right, #000428, #004e92);
  color: #fff;
  padding: 40px 0;
  font-size: 1rem;
}

.footer-logo {
  width: 120px;
  height: auto;
  border-radius: 5px;
}

.social-icons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.social-link {
  color: #fff;
  font-size: 1.8rem;
  transition: transform 0.3s ease-in-out, color 0.3s ease-in-out;
}

.social-link:hover {
  transform: scale(1.2);
  color: #2300e6;
}

.footer-link {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease-in-out;
}

.footer-link:hover {
  color: #ffdd57;
}

.footer hr {
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  margin: 20px 0;
}

/* ============================================
   Cookie-Banner
============================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  text-align: center;
  padding: 20px;
  font-size: 1rem;
  z-index: 9999;
  display: none;
}

.cookie-banner p {
  margin: 0;
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.5;
}

.cookie-banner a {
  color: #ffdd57;
  text-decoration: underline;
}

.cookie-banner a:hover {
  color: #fff;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
}

.cookie-buttons .btn {
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  border: none;
}

.cookie-buttons .btn-success {
  background: #28a745;
  color: #fff;
}

.cookie-buttons .btn-success:hover {
  background: #218838;
}

.cookie-buttons .btn-danger {
  background: #dc3545;
  color: #fff;
}

.cookie-buttons .btn-danger:hover {
  background: #c82333;
}

/* ============================================
   Scroll-to-Top Button
============================================ */
.scroll-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  cursor: pointer;
  z-index: 1000;
}

.scroll-top:hover {
  background: #0056b3;
}

.scroll-top.show {
  display: flex;
  opacity: 1;
  transform: scale(1);
}

.scroll-top.hide {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
}

/* ============================================
   Ankauf-Bereich
============================================ */
.bg-image-header {
  position: relative;
  background: url("./img/car-bg.webp") center/cover no-repeat;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  text-transform: uppercase;
  text-shadow: 2px 2px 5px rgba(255, 255, 255, 0.6);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-subtitle {
  font-size: 1.4rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
  text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.4);
}

.btn-lg {
  font-size: 1.2rem;
  padding: 12px 24px;
  font-weight: 600;
}

.ankauf-form .form-control {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.ankauf-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.ankauf-form .form-control:focus {
  background: rgba(255, 255, 255, 0.3);
  border-color: #00cc66;
}

.ankauf-form .btn-primary {
  background: #00cc66;
  border: none;
  font-size: 1.1rem;
}

.ankauf-form .btn-primary:hover {
  background: #00994d;
}

/* ============================================
   Datenschutz
============================================ */
.privacy-section {
  background: rgba(255, 255, 255, 0.9);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-left: 5px solid #007bff;
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.privacy-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.privacy-section h2 {
  font-size: 1.6rem;
  color: #007bff;
  display: flex;
  align-items: center;
}

.privacy-section h2 i {
  margin-right: 10px;
  font-size: 1.8rem;
}

.custom-header {
  padding-top: 7rem !important;
  padding-bottom: 3rem;
}

/* ============================================
   Responsive Design
============================================ */
@media (max-width: 768px) {
  .animated-title {
    font-size: 1.5rem;
  }

  .animated-subtitle {
    font-size: 1.4rem;
  }

  .hero-overlay {
    padding: 10px;
  }

  .section-title {
    font-size: 2rem;
  }

  .cta-title {
    font-size: 2rem;
  }

  .cta-text {
    font-size: 1rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .btn-lg {
    font-size: 1rem;
    padding: 10px 20px;
  }

  .privacy-section h2 {
    font-size: 1.01rem;
  }

  .fw-bold {
    font-size: 1.1rem;
  }

  #about .col-lg-6 {
    transform: translateY(30px);
  }

  #about .image-container img {
    transform: scale(0.95);
  }

  #cta .social-buttons a {

    width: 50%;
    margin-bottom: 10px;
  }

  #cars .card img {
    height: 150px;
  }

  .navbar-collapse {
    background: rgba(0, 0, 0, 0.9);
    padding: 10px;
    border-radius: 5px;
  }

  .navbar-nav {
    text-align: center;
  }

  .navbar-nav .nav-item {
    margin-bottom: 10px;
  }

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

  .image-container {
    margin-top: 30px;
  }

  .social-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .map-embed {
    height: 200px;
  }

  .footer {
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }
}