/* Reset und Basis-Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #2c3e50;
  --secondary-color: #e67e22;
  --text-color: #333;
  --light-bg: #f5f6fa;
  --white: #ffffff;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
}

/* Header und Navigation */
.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 1.2rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.navbar.scroll-down {
  transform: translateY(-100%);
}

.navbar.scroll-up {
  transform: translateY(0);
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.logo img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

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

.logo h1 {
  color: var(--primary-color);
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: -0.5px;
  transition: color 0.3s ease;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--secondary-color);
}

.nav-links a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.hamburger span {
  width: 30px;
  height: 2px;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
  transform-origin: left;
}

.hamburger.active span:first-child {
  transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:last-child {
  transform: rotate(-45deg);
}

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("https://images.unsplash.com/photo-1555041469-a586c61ea9bc?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 0 1rem;
}

.hero-content {
  max-width: 800px;
}

.hero-content h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--secondary-color);
  color: var(--white);
  text-decoration: none;
  border-radius: 5px;
  margin-top: 2rem;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #d35400;
}

/* Services Section */
.services {
  padding: 5rem 5%;
  background-color: var(--light-bg);
}

.services h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.service-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.1);
}

.service-content {
  padding: 1.5rem;
  position: relative;
}

.service-icon {
  position: absolute;
  top: -25px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon i {
  color: var(--white);
  font-size: 1.5rem;
}

.service-content h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.service-content p {
  color: var(--text-color);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* About Section */
.about {
  padding: 5rem 5%;
}

.about h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

/* Gallery Section */
.gallery {
  padding: 5rem 5%;
  background-color: var(--light-bg);
}

.gallery h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

/* Contact Section */
.contact {
  padding: 5rem 5%;
  background-color: var(--light-bg);
}

.contact h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

.contact-container {
  display: flex;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.contact-info {
  flex: 0 0 500px; /* Feste Breite von 350px */
  background-color: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.contact-info h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.contact-info p {
  margin: 1rem 0;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 1rem;
  line-height: 1.4;
}

.contact-info i {
  color: var(--secondary-color);
  font-size: 1.2rem;
  width: 20px;
}

.map-container {
  flex: 1; /* Nimmt den restlichen verfügbaren Platz ein */
  height: 400px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.contact-form {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

.contact-form textarea {
  height: 150px;
  resize: vertical;
}

.submit-button {
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.submit-button:hover {
  background-color: #d35400;
}

@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
  }

  .contact-info {
    flex: none;
    width: 100%;
    max-width: 100%;
  }

  .map-container {
    height: 300px;
  }

  .logo img {
    width: 40px;
    height: 40px;
  }

  .logo h1 {
    font-size: 1.5rem;
  }
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 3rem 5% 1rem;
  margin-top: 5rem;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-info {
  flex: 1;
  min-width: 300px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-logo img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.footer-logo h3 {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.footer-info p {
  margin: 0.5rem 0;
  opacity: 0.9;
  line-height: 1.6;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .footer-logo img {
    width: 40px;
    height: 40px;
  }

  .footer-logo h3 {
    font-size: 1.3rem;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 6rem 2rem 2rem;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;
    transition: all 0.3s ease;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    font-size: 1.2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: slideIn 0.3s forwards;
  }

  @keyframes slideIn {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-links a:nth-child(1) {
    animation-delay: 0.1s;
  }
  .nav-links a:nth-child(2) {
    animation-delay: 0.2s;
  }
  .nav-links a:nth-child(3) {
    animation-delay: 0.3s;
  }
  .nav-links a:nth-child(4) {
    animation-delay: 0.4s;
  }
  .nav-links a:nth-child(5) {
    animation-delay: 0.5s;
  }

  .hamburger {
    display: flex;
  }

  .hero-content h2 {
    font-size: 2rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

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

  .service-card {
    max-width: 400px;
    margin: 0 auto;
  }
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: white;
}

.whatsapp-float .tooltip {
  position: absolute;
  right: 70px;
  background-color: #333;
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.whatsapp-float:hover .tooltip {
  opacity: 1;
}

/* References Section */
.references {
  padding: 5rem 5%;
  background-color: var(--light-bg);
}

.references h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

.references-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.reference-item {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.reference-item:hover {
  transform: translateY(-10px);
}

.before-after-slider {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
}

.before-image,
.after-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.before-image {
  z-index: 1;
  clip-path: inset(0 50% 0 0);
}

.after-image {
  z-index: 0;
}

.slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #fff;
  transform: translateX(-50%);
  z-index: 2;
  cursor: col-resize;
}

.slider-handle::before {
  content: "";
  position: absolute;
  width: 40px;
  height: 40px;
  background: #fff;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.slider-handle::after {
  content: "↔";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #333;
  font-size: 20px;
  font-weight: bold;
}

.slider-handle:active {
  background-color: #fff;
}

.slider-handle:active::before {
  background-color: #f0f0f0;
}

.reference-info {
  padding: 1.5rem;
}

.reference-info h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.reference-info p {
  color: var(--text-color);
  font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reference-item {
  animation: fadeIn 0.6s ease-out forwards;
  opacity: 0;
}

.reference-item:nth-child(2) {
  animation-delay: 0.2s;
}

.reference-item:nth-child(3) {
  animation-delay: 0.4s;
}

@media (max-width: 1200px) {
  .references-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .references-container {
    grid-template-columns: 1fr;
  }
}
