/* ==========================================
   XAXHI INDUSTRY – Strukturierte CSS-Datei
   ========================================== */


/* ------------------------------------------
   1. Reset & Grundstruktur
------------------------------------------ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


html, body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
  color: #111;
}


/* ------------------------------------------
   2. Header & Navigation
------------------------------------------ */

header {
  background-color: #111;
  color: #fff;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1000;
}

.logo {
  height: 60px;
}

.mobil-titel {
  display: none;
}

nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease-in-out;
}

nav a:hover,
nav a.active {
  text-decoration: underline;
  color: #e63946;
}


/* ------------------------------------------
   3. Hauptbereich
------------------------------------------ */

main {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}


/* ------------------------------------------
   4. Hero / Startseite
------------------------------------------ */

.hero {
  background: linear-gradient(to bottom right, #ffffff, #e9ecef);
  padding: 60px 40px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 20px;
  color: #333;
}


/* ------------------------------------------
   5. Sektionen allgemein
------------------------------------------ */

section {
  margin-bottom: 60px;
}

section h2 {
  font-size: 32px;
  margin-bottom: 20px;
  text-align: center;
}

section p {
  font-size: 18px;
  text-align: center;
}


/* ------------------------------------------
   6. Mitgliederliste
------------------------------------------ */

.mitgliederliste {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-bottom: 30px;
}

.mitgliederliste li {
  background-color: #111;
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.mitgliederliste li:hover {
  background-color: #444;
}


/* ------------------------------------------
   7. Mitglieder-Anzeige
------------------------------------------ */

.mitglied-anzeige {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.mitglied-anzeige img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.mitglied-info {
  max-width: 600px;
}

.mitglied-info h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.mitglied-info p {
  font-size: 18px;
  line-height: 1.6;
}


/* ------------------------------------------
   8. Galerie
------------------------------------------ */

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

.gallery-grid img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  aspect-ratio: 4 / 3;
  transition: transform 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.03);
}


/* ------------------------------------------
   9. Kontaktformular
------------------------------------------ */

.kontakt {
  background: #fff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.kontaktformular {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
  margin-top: 20px;
}

.kontaktformular label {
  font-weight: bold;
}

.kontaktformular input,
.kontaktformular textarea {
  padding: 14px;
  font-size: 16px;
  border-radius: 10px;
  border: 1px solid #ccc;
  transition: all 0.3s ease;
}

.kontaktformular input:focus,
.kontaktformular textarea:focus {
  border-color: #e63946;
  outline: none;
  box-shadow: 0 0 0 2px rgba(230,57,70,0.2);
}

.kontaktformular button {
  background-color: #111;
  color: #fff;
  padding: 14px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}

.kontaktformular button:hover {
  background-color: #333;
}


/* ------------------------------------------
   10. Footer
------------------------------------------ */

footer {
  background-color: #111;
  color: #fff;
  text-align: center;
  padding: 20px;
  margin-top: auto;
}


/* ------------------------------------------
   11. Responsive Design
------------------------------------------ */

/* Hamburger Menü (Mobil) */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  width: 26px;
  height: 3px;
  background-color: white;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Vollbild-Menü */
#fullscreen-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #111;
  color: white;
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 1000;
  transition: transform 0.4s ease;
}

#fullscreen-nav.show {
  display: flex;
}

#fullscreen-nav ul {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

#fullscreen-nav a {
  font-size: 28px;
  color: white;
  text-decoration: none;
  transition: color 0.2s ease;
}

#fullscreen-nav a:hover {
  color: #e63946;
}

/* Hamburger zu X */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 11px;
  position: relative;
}

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

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 11px;
  position: relative;
}


/* Mobil – unter 768px */
@media screen and (max-width: 768px) {
  .logo {
    display: none;
  }

  .mobil-titel {
    display: block;
    color: white;
    font-weight: bold;
    font-size: 18px;
    margin-left: auto;
  }

  .menu-toggle {
    display: flex;
  }

  nav {
    display: none;
  }

  .mitglied-anzeige {
    flex-direction: column;
  }

  .mitglied-anzeige img {
    width: 200px;
    height: 200px;
  }

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

/* Desktop – ab 769px */
@media screen and (min-width: 769px) {
  nav {
    display: flex !important;
    justify-content: flex-end;
    align-items: center;
  }

  nav ul {
    flex-direction: row;
    gap: 20px;
  }

  .menu-toggle {
    display: none;
  }

  #fullscreen-nav {
    display: none !important;
  }
}

/* --- Desktop Navigation sichtbar ab 769px --- */
@media screen and (min-width: 769px) {
  .desktop-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  .desktop-nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
  }

  .desktop-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
  }

  #fullscreen-nav,
  .menu-toggle {
    display: none;
  }
}

/* --- Mobile Navigation nur unter 768px --- */
@media screen and (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
}

.gallery-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}


.gallery-scroll img {
  flex: 0 0 auto;
  width: 250px;
  border-radius: 10px;
  scroll-snap-align: start;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.gallery-scroll img:hover {
  transform: scale(1.03);

}


.gallery-scroll::-webkit-scrollbar {
  height: 8px;
}

.gallery-scroll::-webkit-scrollbar-thumb {
  background-color: #aaa;
  border-radius: 4px;
}

