/* ===== BASIS-STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
  background-color: #fff;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #2c3e50;
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  width: 40px;
  height: auto;
}

.logo {
  color: white;
  font-size: 1.3rem;
  font-weight: 600;
}

.highlight {
  color: #3498db;
  font-weight: 700;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 25px;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  font-size: 1.1rem;
}

.nav-links li a:hover {
  color: #3498db;
}

.mobile-menu-icon {
  display: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  height: 80vh;
  background: url('AdobeStock_215228606.jpeg') center/cover no-repeat;
  display: flex;
  align-items: center;
  text-align: center;
  color: white;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  background-color: #3498db;
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-weight: 500;
}

.btn-primary:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ===== BILDERGALERIE MIT ZENTRIERTEM SWIPE ===== */
.top-banner {
  padding: 30px 0;
  background-color: #f5f5f5;
  position: relative;
}

.image-row {
  display: flex;
  gap: 15px;
  padding: 10px calc((100% - min(85vw, 400px)) / 2);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.image-row::-webkit-scrollbar {
  display: none;
}

.image-row img {
  scroll-snap-align: center;
  width: 85vw;
  max-width: 400px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  flex: 0 0 auto;
}

/* ===== SERVICES SECTION ===== */
.services {
  padding: 60px 0;
  background-color: #fff;
}

.services h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.2rem;
  color: #2c3e50;
  position: relative;
}

.services h2::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 4px;
  background: #3498db;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.service-subtitle {
  text-align: center;
  margin: 40px 0 20px;
  color: #3498db;
  font-size: 1.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.service-item {
  background: white;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: all 0.3s ease;
}

.service-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  display: block;
  line-height: 1;
}

.service-item h3 {
  margin-bottom: 15px;
  font-size: 1.2rem;
  color: #2c3e50;
}

.service-item p {
  color: #666;
  font-size: 0.95rem;
}

/* ===== ABOUT SECTION ===== */
.about {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.about h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2.2rem;
  color: #2c3e50;
  position: relative;
}

.about h2::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 4px;
  background: #3498db;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.about p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
}

.section-subtitle {
  text-align: center;
  margin: 50px 0 25px;
  font-size: 1.8rem;
  color: #2c3e50;
  position: relative;
}

.section-subtitle::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 3px;
  background: #3498db;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
}

.strengths-list {
  max-width: 700px;
  margin: 0 auto 40px;
  list-style: none;
}

.strengths-list li {
  margin-bottom: 20px;
  padding-left: 30px;
  position: relative;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #555;
}

.strengths-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #3498db;
  font-weight: bold;
  font-size: 1.2rem;
}

.conclusion-text {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
}

.conclusion-text strong {
  color: #2c3e50;
}

/* ===== CONTACT SECTION ===== */
.contact {
  padding: 80px 0;
  background-color: #fff;
}

.contact h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2.2rem;
  color: #2c3e50;
  position: relative;
}

.contact h2::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 4px;
  background: #3498db;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.contact p {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
  color: #555;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 30px;
  background: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #2c3e50;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3498db;
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

/* ===== IMPRESSUM ===== */
.impressum {
  padding: 80px 0;
  background-color: #f9f9f9;
  text-align: center;
}

.impressum h2 {
  color: #2c3e50;
  font-size: 2rem;
  margin-bottom: 30px;
  position: relative;
}

.impressum h2::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 3px;
  background: #3498db;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.impressum-content {
  max-width: 600px;
  margin: 0 auto;
}

.legal-notice {
  color: #555;
  margin-bottom: 40px;
  font-weight: 500;
}

.centered-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
}

.centered-block h3 {
  color: #2c3e50;
  font-size: 1.3rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.centered-block p {
  color: #555;
  margin: 0 0 5px 0;
  line-height: 1.8;
  text-align: center;
  width: 100%;
}

.divider-line {
  height: 1px;
  background: #e0e0e0;
  width: 100px;
  margin: 25px auto;
}

.impressum a {
  color: #3498db;
  text-decoration: none;
  transition: color 0.3s;
}

.impressum a:hover {
  color: #2980b9;
  text-decoration: underline;
}

/* MOBILE OPTIMIERUNG */
@media (max-width: 768px) {
  .impressum {
    padding: 50px 15px;
  }
  
  .divider-line {
    width: 80%;
  }
  
  .centered-block h3 {
    font-size: 1.2rem;
  }
  
  .centered-block p {
    font-size: 1rem;
  max-width: 100%;
  word-break: break-word;
  }
}

/* ===== FOOTER ===== */
.footer {
  background-color: #2c3e50;
  color: white;
  padding: 50px 0 30px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-info {
  flex: 1;
  min-width: 250px;
}

.footer-info p {
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.footer a {
  color: #3498db;
  text-decoration: none;
  transition: color 0.3s;
}

.footer a:hover {
  color: #2980b9;
}

.social-links {
  display: flex;
  gap: 20px;
}

.social-links a {
  color: white;
  font-size: 1.3rem;
  transition: color 0.3s;
}

.social-links a:hover {
  color: #3498db;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: #2c3e50;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    transition: left 0.3s;
  }

  .nav-links.active {
    left: 0;
  }

  .mobile-menu-icon {
    display: block;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }
}

/* Tablet Ansicht - 2 Bilder teilweise sichtbar */
@media (min-width: 768px) and (max-width: 1023px) {
  .image-row {
    padding: 10px calc((100% - min(90vw, 800px)) / 2);
  }
  
  .image-row img {
    width: 45vw;
  }
}

/* Desktop Ansicht - 4 Bilder zentriert */
@media (min-width: 1024px) {
  .image-row {
    justify-content: center;
    flex-wrap: wrap;
    overflow-x: visible;
    padding: 10px 0;
  }
  
  .image-row img {
    width: calc(25% - 15px);
    max-width: none;
  }
}

@media (max-width: 768px) {
  .hero {
    height: 70vh;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
  }

  .social-links {
    justify-content: center;
  }

  .impressum-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .logo {
    font-size: 1rem;
  }

  .hero {
    height: 60vh;
  }

  .hero h2 {
    font-size: 1.6rem;
  }

  .btn-primary {
    padding: 10px 20px;
  }

  .section-subtitle {
    font-size: 1.5rem;
  }

  .strengths-list li {
    font-size: 1rem;
    padding-left: 25px;
  }
}