html {
  scroll-behavior: smooth;
}

.main-nav {
  position: sticky;
  top: 0;
  background-color: white;
  z-index: 1000;
  padding: 15px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.main-nav ul {
  display: flex;
  gap: 20px;
  justify-content: center;
  list-style: none;
}

.main-nav a {
  text-decoration: none;
  color: #0072B2;
  font-weight: bold;
  transition: color 0.2s;
}

.main-nav a:hover {
  color: #005b8a;
}

/* === Reset & Basis === */
{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #333;
  background-color: #fff;
  background-image: url('parallax-texture.png');
  background-attachment: fixed;
  background-size: cover;
  background-repeat: repeat;
  background-position: center;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* === Hero Section === */
.hero {
  background: url('Hintergrund Bild Maler.jpg') center/cover no-repeat;
  color: white;
  padding: 120px 20px;
  text-align: center;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4); /* dunkles Overlay für bessere Lesbarkeit */
  z-index: 1;
}

.hero .hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 20px;
  margin-bottom: 30px;
}

.cta-button {
  display: inline-block;
  background-color: #0072B2;
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #005b8a;
}

/* === Abschnitte === */
section {
  margin: 60px 0;
}

h2 {
  font-size: 32px;
  color: #0072B2;
  color: #0072B2;
  margin-bottom: 30px;
  text-align: center;
}

/* === Galerie === */
.gallery .lightbox-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 60px;
}

.gallery figure {
  margin-bottom: 40px;
  text-align: center;
}

.gallery img {
  width: 100%;
  max-width: 500px;
  border-radius: 4px;
  transition: transform 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.02);
}

.gallery figcaption {
  margin-top: 12px;
  padding: 12px 16px;
  background-color: #f4f4f4;
  border-left: 4px solid #0072B2;
  font-style: italic;
  font-size: 16px;
  color: #444;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.lightbox-wrapper {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 4px;
  padding: 10px;
  cursor: pointer;
}

.lightbox-wrapper:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  background-color: #fafafa;
}

/* === Bewertungen === */
.testimonials blockquote {
  background-color: #f9f9f9;
  padding: 20px;
  margin-bottom: 20px;
  border-left: 4px solid #0072B2;
}

.testimonials footer {
  margin-top: 10px;
  font-weight: bold;
}

/* === Kontaktformular === */
.contact form {
  max-width: 600px;
  margin: 20px auto;
}

.contact input,
.contact textarea {
   width: 100%;
  max-width: 500px;
  padding: 15px 20px;
  font-size: 16px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.contact button {
  background-color: #0072B2;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact button:hover {
  background-color: #005b8a;
}

/* === Footer === */
footer {
  background-color: #f0f0f0;
  padding: 20px;
  text-align: center;
  font-size: 14px;
}

/* === Responsive === */
@media (min-width: 768px) {
  .gallery figure {
    display: flex;
    align-items: center;
    gap: 30px;
    text-align: left;
  }

  .gallery img {
    flex: 1;
  }

  .gallery figcaption {
    flex: 1;
  }

  .service {
    flex: 0 0 40%;
  }
}

/* === Fade-in für Formularmeldung === */
#formular-meldung {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

#formular-meldung.visible {
  opacity: 1;
}

/* === Lightbox-Stil === */
.lightbox-overlay {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.lightbox-overlay img {
  max-width: 95%;
  max-height: 95vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: none;
}

.lightbox-overlay.active {
  display: flex;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* === Services Slider === */
.services-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 20px;
  padding-bottom: 20px;
  scroll-behavior: smooth;
}

.services-slider::-webkit-scrollbar {
  display: none;
}

.service {
  flex: 0 0 80%;
  scroll-snap-align: center;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 320px;
  min-width: 280px;
  margin: 0 auto;
}

.service img {
  width: 100%;
  max-width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 15px;
}

.service h3 {
  color: #ff6b6b;
  font-size: 20px;
  margin: 10px 0 5px;
  color: #0072B2;
}

.service p {
  font-size: 14px;
  margin-bottom: 15px;
  line-height: 1.5;
  padding: 0 5px;
}

.service .cta-button {
  margin-top: auto;
}

/* Einheitliche Bildgrößen */
img {
  width: 100%;
  max-width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
}

/* Farbige Abschnitte */
section:nth-of-type(even) {
  background-color: #f9f9f9;
}

/* === Icon-Styling für Leistungen === */
.icon-wrapper {
  margin-bottom: 10px;
}
.icon {
  width: 40px;
  height: 40px;
  stroke: #0072B2;
  stroke-width: 2;
  
}

/* === Zurück-nach-oben Button === */

/* Stylischer Scroll-to-Top Button */
#scrollTopBtn {
  position: fixed;
  bottom: 100px;
  right: 20px;
  background-color: #0072B2;
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 999;
}

#scrollTopBtn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#scrollTopBtn:hover {
  background-color: #005b8a;
}


/* Stylischer Scroll-to-Top Button mit SVG */
#scrollTopBtn {
  position: fixed;
  bottom: 80px;
  right: 24px;
  background-color: rgba(0, 191, 166, 0.9);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#scrollTopBtn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#scrollTopBtn:hover {
  background-color: #005b8a;
}

.icon-arrow-bold {
  width: 24px;
  height: 24px;
  fill: #fff; stroke: none;
  stroke-width: 2;
  
}


.cta-button:hover,
.contact button:hover {
  box-shadow: 0 6px 18px rgba(0, 114, 178, 0.3);
  transform: translateY(-2px);
}


/* === Warum wir Sektion === */
.why-us-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.why-us-text {
  flex: 1;
  text-align: left;
}

.why-us-features {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.feature {
  background-color: #f4f4f4;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0, 114, 178, 0.2);
}

.feature-icon {
  font-size: 36px;
  margin-bottom: 10px;
  display: block;
}

@media (min-width: 768px) {
  .why-us-grid {
    flex-direction: row;
    align-items: center;
  }

  .why-us-text {
    padding-right: 40px;
  }
}


/* === Team Sektion === */
.team-section {
  background-color: #f9f9f9;
  padding: 60px 20px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.team-member {
  text-align: center;
  background-color: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.team-member:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 114, 178, 0.2);
}

.team-photo {
  width: 150px;
  height: 150px;
  background-size: cover;
  background-position: center;
  border-radius: 50%;
  margin: 0 auto 20px auto;
}


/* === Kontaktbereich im Grid mit Karte === */
.kontakt-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.kontakt-info {
  flex: 1;
}

.map-container {
  flex: 1;
  min-height: 400px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

@media (min-width: 992px) {
  .kontakt-grid {
    flex-direction: row;
    align-items: flex-start;
  }

  .kontakt-info, .map-container {
    width: 50%;
  }

  .map-container iframe {
    height: 100%;
  }
}


/* === Optimiertes Kontakt-Grid === */
.kontakt-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 30px;
}

.kontakt-info {
  flex: 1;
  padding-right: 20px;
}

.map-container {
  flex: 1;
  min-height: 400px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

@media (min-width: 992px) {
  .kontakt-grid {
    flex-direction: row;
    align-items: flex-start;
  }

  .kontakt-info,
  .map-container {
    width: 50%;
  }

  .map-container iframe {
    height: 100%;
  }
}


.map-container iframe {
  border: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
}


.map-container {
  flex: 1;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  pointer-events: auto;
}
