/* style.css */
:root {
    --primary: #93b946;
    --secondary: #ffffff;
    --dark: #333333;
    --light: #f9f9f9;
    --font-head: 'Almendra', serif;
    --font-body: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--dark);
    background: var(--light);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px;
}

.site-header {
    background: var(--primary);
    color: var(--secondary);
    display: flex;
    flex-direction: column; /* Stapelt Logo und Navigation */
    align-items: center; /* Zentriert die Inhalte horizontal */
    justify-content: center; /* Zentriert die Inhalte vertikal */
    padding: 4px 0; /* Macht den Header größer */
}

.logo {
    display: block;
    margin: 0 auto; /* Zentriert das Logo horizontal */
    max-width: 100%; /* Verhindert Verzerrung bei kleineren Bildschirmen */
    height: auto; /* Beibehaltung des Seitenverhältnisses */
}

.logo-main {
    max-width: 150px; /* Maximale Breite für kleinere Geräte */
    height: auto; /* Beibehaltung des Seitenverhältnisses */

}

.header-container {
    display: flex;
    flex-direction: column; /* Stapelt Logo und Navigation vertikal */
    align-items: center; /* Zentriert die Inhalte horizontal */
    text-align: center; /* Zentriert den Text */
    padding: 1px 2px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--secondary);
    font-size: 50px;
}

.main-nav {
    display: flex;
    gap: 16px;
    flex-wrap: wrap; /* Navigation bricht bei kleineren Bildschirmen */
    justify-content: center; /* Zentriert die Navigation */
    margin-top: 16px; /* Abstand zwischen Logo und Navigation */
}

.main-nav a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
}

.header-contact {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 8px 0;
}

.header-contact a {
    color: var(--secondary);
    text-decoration: none;
    font-size: 14px;
}

/* Hero-Sektion */
.hero {
    position: relative;
    background: url('./bilder/Sonnen Untergang.jpg') center calc(50% - 40px)/cover no-repeat;
    height: 580px; /* Standardhöhe */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.4); /* Halbtransparenter Hintergrund */
    padding: 32px; /* Standard-Padding */
    text-align: center;
    color: #fff;
}

.hero h1 {
    font-family: var(--font-head);
    font-size: 48px; /* Standard-Schriftgröße */
    line-height: 1.2;
}

.hero h1 span {
    color: var(--primary);
}

.btn {
    display: inline-block;
    background: var(--primary);
    color: var(--secondary);
    padding: 12px 24px; /* Größe des Buttons */
    margin-top: 16px;
    text-decoration: none;
    border-radius: 5px;
}

.services h2,
.gallery h2,
.contact h2 {
    font-family: var(--font-head);
    text-align: center;
    margin-bottom: 16px;
    color: var(--primary);
}

.service-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.service-card {
    background: #fff;
    padding: 16px;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.service-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 5px;
}

.gallery-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.gallery-grid img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
}

.contact-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr 1fr;
    align-items: start;
}

.contact-grid iframe {
    width: 100%;
    height: 250px;
    border: 0;
    border-radius: 5px;
}

.site-footer {
    background: var(--dark);
    color: #fff;
    padding: 16px 0;
    text-align: center;
}

.footer-nav a {
    color: #fff;
    margin: 0 16px;
    text-decoration: none;
}

/* Intro-Text unter "Unsere Leistungen" */
.intro-text {
    text-align: center;
    font-size: 16px;
    color: var(--dark);
    margin-bottom: 24px; /* Abstand zum Service-Grid */
    line-height: 1.6;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    .main-nav {
        display: none;
        flex-direction: column;
        gap: 8px;
        margin-top: 16px;
    }
    .main-nav.active {
        display: flex;
    }
    .hero {
        height: 400px; /* Reduzierte Höhe für kleinere Bildschirme */
    }
    .hero-overlay {
        padding: 16px; /* Weniger Padding für das Overlay */
    }
    .hero h1 {
        font-size: 32px; /* Kleinere Schriftgröße für die Überschrift */
    }
    .btn {
        padding: 8px 16px; /* Kleinere Buttons */
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) {
    .header-container {
        flex-direction: row; /* Logo und Navigation nebeneinander */
        justify-content: space-between; /* Platz zwischen Logo und Navigation */
        text-align: left; /* Text linksbündig */
    }

    .logo-main {
        max-width: 180px; /* Größere Breite für größere Bildschirme */
    }
}

/* Bildergalerie */
.image-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Dynamische Spalten für Handy und Desktop */
  gap: 15px; /* Abstand zwischen Bildern */
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin: 30px auto; /* Zentriert die Galerie */
}

.image {
  width: 100%; /* Passt sich der Spaltenbreite an */
  height: 200px; /* Einheitliche Höhe */
  position: relative;
  overflow: hidden;
  margin-top: 15px;
}

.image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease; /* Smooth Zoom-Effekt */
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease; /* Smooth Overlay-Effekt */
}

.image:hover img {
  transform: scale(1.1); /* Zoom-Effekt beim Hover */
}

.image:hover .image-overlay {
  opacity: 1; /* Overlay sichtbar beim Hover */
}

/* Filter-Buttons */
.panel_content {
  text-align: center;
  margin-top: 50px;
  padding: 10px;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap; /* Passt sich an kleinere Bildschirme an */
  justify-content: center;
  gap: 10px; /* Abstand zwischen Buttons */
}

.filter-buttons button {
  padding: 10px 20px;
  margin: 5px;
  border: none;
  color: #595b61; /* Textfarbe */
  border-radius: 5px;
  cursor: pointer;
  background-color: #f0f0f0; /* Standard-Hintergrundfarbe */
  transition: background-color 0.3s ease;
}

.filter-buttons button:hover {
  background-color: #a9d158; /* Hover-Hintergrundfarbe */
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  margin-bottom: 20px;
}

.page-btn {
  padding: 8px 16px;
  margin: 0 5px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-btn:hover {
  background-color: #b3ad00;
}

.page-btn:focus {
  outline: none;
}

.page-btn.active {
  background-color: #0056b3;
}

/* Responsivität */
@media (max-width: 768px) {
  .image-container {
      grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* Kleinere Spaltenbreite für Handy */
      gap: 10px;
  }

  .image {
      height: 150px; /* Kleinere Höhe für Handy */
  }

  .filter-buttons {
      flex-direction: column; /* Buttons untereinander auf kleinen Bildschirmen */
      gap: 5px;
  }
}

/* Kontaktseite */
.contact h1 {
  text-align: center; /* Zentriert den Text */
  margin-bottom: 20px; /* Abstand nach unten */
}

.contact-grid {
  display: flex;
  flex-direction: column; /* Inhalte untereinander anordnen */
  gap: 20px;
  align-items: center; /* Zentriert die Inhalte */
}

.contact-info {
  font-size: 18px; /* Etwas größere Schrift */
  line-height: 1.8;
  text-align: center; /* Zentriert den Text */
}

.visitenkarte {
  margin-top: 20px;
  max-width: 90%; /* Größere Breite */
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-form {
  width: 100%; /* Passt sich der Breite an */
  max-width: 600px; /* Maximale Breite */
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form label {
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.contact-form button {
  background-color: var(--primary);
  color: var(--secondary);
  padding: 12px 24px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #a9d158;
}

/* Zentriert die Karte */
.map-wrapper {
  display: flex;
  justify-content: center; /* Horizontale Zentrierung */
  align-items: center; /* Vertikale Zentrierung */
  height: 100%; /* Nimmt die volle Höhe des Containers ein */
}

.map-wrapper iframe {
  width: 100%; /* Karte nimmt die volle Breite ein */
  max-width: 700px; /* Maximale Breite der Karte */
  height: 500px; /* Höhe der Karte */
  border: 0;
  border-radius: 10px; /* Abgerundete Ecken */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Schatten für ein modernes Design */
}

/* Kontaktinformationen */
.header-contact a,
.contact-info p {
  font-size: 16px; /* Standardgröße für Desktop */
  line-height: 1.6;
  display: flex;
  align-items: center; /* Symbole und Text auf einer Linie */
  gap: 8px; /* Abstand zwischen Symbol und Text */
}

.header-contact a {
  text-decoration: none;
  color: var(--secondary);
}

.contact-info p a {
  color: inherit; /* Gleiche Farbe wie der Text */
  text-decoration: none;
}

/* Anpassungen für die Handy-Ansicht */
@media (max-width: 768px) {
  .header-contact a,
  .contact-info p {
    font-size: 14px; /* Kleinere Schriftgröße für Handy */
    line-height: 1.4;
    gap: 6px; /* Weniger Abstand zwischen Symbol und Text */
  }

  .header-contact {
    flex-direction: column; /* Elemente untereinander anordnen */
    gap: 12px; /* Abstand zwischen den Links */
  }

  .contact-info p {
    text-align: center; /* Zentriert die Kontaktinformationen */
  }
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Platz zwischen den Elementen */
  gap: 16px; /* Abstand zwischen den Elementen */
}

.logo-right {
  display: none; /* Standardmäßig ausgeblendet */
}

@media (min-width: 1024px) {
  .logo-right {
    display: block; /* Nur in der Webansicht anzeigen */
  }
}

.page-wrapper {
  width: 100%;           /* nimmt immer die volle Breite ein */
  max-width: 1920px;     /* begrenzt die Seite auf 1920 px */
  margin: 0 auto;        /* zentriert ihn horizontal */
}


@media (min-width: 2561px) {
  .page-wrapper {
    max-width: 2560px;   /* ab hier auf 2560px limitiert */
  }
}
