/* Reset und Grundlagen */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #dc2626;
  --primary-hover: #b91c1c;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --bg-light: #f9fafb;
  --white: #ffffff;
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-medium: rgba(0, 0, 0, 0.15);
  --border-radius: 12px;
  --transition: all 0.3s ease;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
  opacity: 1;
  transition: opacity 0.5s ease;
  padding-top: 60px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px var(--shadow-light);
  z-index: 1000;
  transition: var(--transition);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-family: Caprasimo;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23dc2626' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")
    repeat;
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 1rem;
  line-height: 1.1;
  letter-spacing: -1px;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-block;
  background: var(--primary-color);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
  box-shadow: 0 10px 40px rgba(220, 38, 38, 0.3);
  transform: translateY(0);
}

.cta-button:hover {
  background: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 15px 50px rgba(220, 38, 38, 0.4);
}

/* Services Section */
.services {
  padding: 80px 0;
  background: var(--white);
}

.services h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 3rem;
  letter-spacing: -0.5px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 30px var(--shadow-light);
  text-align: center;
  transition: var(--transition);
  border: 1px solid #f3f4f6;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), #ef4444);
  transition: left 0.5s ease;
}

.service-card:hover::before {
  left: 0;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px var(--shadow-medium);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.service-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-light);
  line-height: 1.6;
}

/* About Section */
.about {
  padding: 80px 0;
  background: var(--bg-light);
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}

.about-text p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.feature {
  color: var(--primary-color);
  font-weight: 500;
  font-size: 1rem;
}

.about-image {
  font-size: 8rem;
  text-align: center;
  opacity: 0.8;
}

/* Hours Section */
.hours {
  padding: 80px 0;
  background: var(--white);
}

.hours h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 3rem;
  letter-spacing: -0.5px;
}

.hours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.hours-item {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 30px var(--shadow-light);
  text-align: center;
  border: 2px solid #f3f4f6;
  transition: var(--transition);
}

.hours-item:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
}

.day {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.time {
  color: var(--primary-color);
  font-weight: 500;
  font-size: 1rem;
}

/* Map Section */
.map-section {
  padding: 80px 0;
  background: var(--bg-light);
}

.map-section h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 3rem;
  letter-spacing: -0.5px;
}

#map {
  height: 400px;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 40px var(--shadow-medium);
  margin-bottom: 2rem;
  overflow: hidden;
  z-index: 1;
}

.directions {
  text-align: center;
}

.directions-btn {
  display: inline-block;
  background: var(--primary-color);
  color: var(--white);
  padding: 0.8rem 2rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  box-shadow: 0 5px 20px rgba(220, 38, 38, 0.3);
}

.directions-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(220, 38, 38, 0.4);
}

/* Contact Section */
.contact {
  padding: 80px 0;
  background: var(--white);
}

.contact h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 3rem;
  letter-spacing: -0.5px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.contact-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 30px var(--shadow-light);
  text-align: center;
  transition: var(--transition);
  border: 1px solid #f3f4f6;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px var(--shadow-medium);
}

.contact-card .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.contact-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.contact-card p {
  color: var(--text-light);
  line-height: 1.6;
}

/* Footer */
footer {
  background: #1f2937;
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--white);
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-section p {
  color: #9ca3af;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

footer a:hover {
  color: var(--white) !important;
}

footer p:last-child {
  text-align: center;
  color: #6b7280;
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  .header-content {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .contact-info {
    align-items: center;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .services,
  .about,
  .hours,
  .map-section,
  .contact,
  .gallery {
    padding: 60px 0;
  }

  .services h2,
  .about-text h2,
  .hours h2,
  .map-section h2,
  .contact h2,
  .gallery h2 {
    font-size: 2rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-card {
    padding: 1.5rem;
  }

  #map {
    height: 300px;
  }

  .carousel-wrapper {
    height: 300px;
  }

  .carousel-nav {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .carousel-nav.prev {
    left: 10px;
  }

  .carousel-nav.next {
    right: 10px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .cta-button {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }

  .service-card {
    padding: 1.2rem;
  }

  .service-icon {
    font-size: 2.5rem;
  }

  .about-image {
    font-size: 6rem;
  }
}

/* Custom Leaflet Marker Animation */
.custom-marker {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Image Carousel */
.gallery {
  padding: 80px 0;
  background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
}

.gallery h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 3rem;
  letter-spacing: -0.5px;
}

.carousel-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 20px 60px var(--shadow-medium);
}

.carousel-wrapper {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius);
}

.carousel-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 1.1rem;
  text-align: center;
  padding: 2rem;
}

.carousel-placeholder .icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.2rem;
  color: var(--text-dark);
  z-index: 2;
}

.carousel-nav:hover {
  background: var(--white);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 5px 20px var(--shadow-medium);
}

.carousel-nav.prev {
  left: 20px;
}

.carousel-nav.next {
  right: 20px;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d1d5db;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.carousel-dot.active {
  background: var(--primary-color);
  transform: scale(1.2);
}

.carousel-dot:hover {
  background: var(--primary-color);
  opacity: 0.7;
}

/* Scroll Animations */
.slide-up {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease;
}

.slide-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Loading Animation */
body {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Enhanced Hover Effects */
.service-card,
.contact-card,
.hours-item {
  cursor: pointer;
}

/* Focus States für Accessibility */
.cta-button:focus,
.directions-btn:focus {
  outline: 3px solid rgba(220, 38, 38, 0.3);
  outline-offset: 2px;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Legal */
.impressum-container {
  max-width: 700px;
  margin: 2rem auto;
  padding: 1.5rem 2rem;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: "Inter", Arial, sans-serif;
  color: #333;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  line-height: 1.6;
}

.impressum-container h2 {
  color: #dc2626; /* Das kräftige Rot vom Kiosk */
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}

.impressum-container h3 {
  color: #444;
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  border-bottom: 2px solid #dc2626;
  padding-bottom: 0.3rem;
}

.impressum-container p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.impressum-container a {
  color: #dc2626;
  text-decoration: none;
  transition: color 0.3s ease;
}

.impressum-container a:hover,
.impressum-container a:focus {
  color: #9b1c1c;
  text-decoration: underline;
}
