/* ================== Responsive Layout für Partnerschaft Chemnitz–Timbuktu e.V. ================== */
/* index.css - aktualisiert am 22.10.2025 - Mikka Fritz */

/* Grundlayout */
* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.4;
    padding-top: 70px; /* Höhe der fixierten Navbar */
}

/* Header */
.header {
    background-color: #fff;
    text-align: center;
    padding: -1px 0;
   margin-bottom: 0px; /* Abstand zum Content */
}

/* Logo im Header */
.header .logo {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Bannerbereich */
.banner {
    width: 100%;
    height: 500px;
    background-image: url('/bild/banner-pct.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    position: relative;
}

.banner h1 {
    margin: 0;
    padding: 20px;
    background-color: rgba(221, 159, 48, 0.2);
}

/* ================== NAVIGATION ================== */
.navbar {
    background: linear-gradient(45deg, #DD9F30, #D47945);
    box-shadow:
        inset 0 4px 6px rgba(255,255,255,0.2),
        inset 0 -4px 6px rgba(0,0,0,0.2);
    padding: 19px 0;
    text-align: center;
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    font-size: 19px;
}

/* Checkbox-Hack-Steuerelement */
.nav-toggle,
.nav-toggle-label {
    display: none;
}

/* Desktop-Navigation */
.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.navbar li {
    margin: 0 15px;
    position: relative;
}
.navbar a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    transition: color 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.6), -1px -1px 1px rgba(255,255,255,0.2);
}
.navbar a:hover, .navbar a.active {
    color: #94231F;
}

/* Submenu */
.navbar ul li ul {
    display: none;
    position: absolute;
    top: 100%; left: 0;
    background: linear-gradient(45deg, #F4C96F, #EFA070); /* hellere Farbtöne */

    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border-radius: 0 0 6px 6px;
    margin: 0px; padding: 6;
    list-style: none;
    min-width: 250px;             /* oder mehr, je nach Bedarf */
    white-space: nowrap;
    text-align: left;       /* Linksbündige Textausrichtung */
}

.navbar ul li:hover > ul {
    display: block;
}
.navbar ul li ul li a {
    display: block;
    padding: 10px 15px;
    color: white;
    text-transform: none;
    width: 100%;    
     } 

/* ================== GALLERY ================== */

.gallery-container {
  width: 100%;
  max-width: 1500px;
  padding: 20px;
  /* border: 0.3px solid #ddd; */
  box-sizing: border-box;
  background: #fff;
  border-radius: 5px;
  text-align: center;
}

.gallery {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
    justify-content: center;
}

.gallery img {
  width: 100%;
  max-width: 600px;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.3s ease;
    justify-content: center;
}

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

.gallery-page {
  display: none;
}

.gallery-page.active {
  display: flex;
  justify-content: center;
  width: 100%;
}

.gallery-controls {
  margin-top: 6px;
   margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

button {
  background: linear-gradient(45deg, #DD9F30, #D47945);;
  border: none;
  color: white;
  padding: 10px 18px;
  font-size: 1em;
  border-radius: 2px;
  cursor: pointer;
}

button:disabled {
  background: #ccc;
  cursor: not-allowed;
}


/* ================== HAMBURGER-MENÜ FÜR MOBILE ================== */
@media (max-width: 768px) {
  

  /* Checkbox sichtbar, aber unsichtbar */
  .nav-toggle {
      display: block;
      position: absolute;
      top: 20px;
      right: 25px;
      width: 35px;
      height: 35px;
      opacity: 0;
      z-index: 1201;
      cursor: pointer;
  }

  /* Hamburger-Label sichtbar */
  .nav-toggle-label {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      position: absolute;
      top: 20px;
      right: 25px;
      width: 35px;
      height: 26px;
      cursor: pointer;
      z-index: 1200;
  }

  .nav-toggle-label span {
      display: block;
      height: 4px;
      width: 100%;
      background: black;
      border-radius: 2px;
      transition: 0.3s;
  }

  /* Ausgangszustand: Menü versteckt */
  .navbar ul {
      display: none;
      flex-direction: column;
      background: linear-gradient(45deg, #DD9F30, #D47945);
      position: absolute;
      top: 70px;
      left: 0;
      width: 100%;
      text-align: center;
      padding: 20px 0;
      box-shadow: 0 4px 8px rgba(0,0,0,0.2);
      z-index: 1000;
  }

  /* Wenn Checkbox aktiv → Menü offen */
  .nav-toggle:checked ~ ul {
      display: flex;
  }

  /* Animation Hamburger → X */
  .nav-toggle:checked + .nav-toggle-label span:nth-child(1) {
      transform: rotate(45deg) translate(7px, 7px);
  }
  .nav-toggle:checked + .nav-toggle-label span:nth-child(2) {
      opacity: 0;
  }
  .nav-toggle:checked + .nav-toggle-label span:nth-child(3) {
      transform: rotate(-45deg) translate(8px, -8px);
  }

  /* Mobile Dropdowns */
  .navbar ul li ul {
      position: static;
      background: rgba(255,255,255,0.1);
      box-shadow: none;
      border-radius: 0;
      margin: 10px 0;
  }
  .navbar ul li ul li a {
      text-align: center;
      border-bottom: 1px solid rgba(255,255,255,0.2);
  }
}

/* ================== CONTAINER u. SPALTEN ================== */
.container {
    width: 95%;
    max-width: 1560px;
    margin: 10px auto;
    background-color: white;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.single-column-section {
    padding: 20px;
    background-color: #fdfdfd;
    border: 1px solid #ddd;
    margin-bottom: 30px;
    text-align: center;
}
.single-column-section h2 { color: #203689; margin-top: 0; }
.single-column-section img {
    max-width: 100%;
    height: auto;
    margin: 15px auto;
    display: block;
}

.single-column-section-left {
    padding: 20px;
    background-color: #fdfdfd;
    border: 1px solid #ddd;
    margin-bottom: 30px;
    text-align: left;
}

.single-column-section-left-or {
    padding: 1px;
    background-color: #fdfdfd;
    margin-bottom: 30px;
    margin-top: 50px;
    text-align: left;
}
.single-column-section-left h2 { color: #203689; margin-top: 0; }
.single-column-section img {
    max-width: 100%;
    height: auto;
    margin: 15px auto;
    display: block;
}
/* Zwei- und Dreispaltige Layouts */
.two-column-layout, .three-column-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}
.two-column-layout .column, .three-column-layout .column {
    flex: 1;
    background-color: #fdfdfd;
    border: 1px solid #ddd;
    padding: 15px;
    text-align: center;
}
.two-column-layout .column img,
.three-column-layout .column img {
    max-width: 500px;
    height: auto;
}

/* Dreispaltige Sonderklasse */
.three-column-layout .column_aw {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100%;
    padding: 2px;
    margin-top: 50px;
}
.three-column-layout .column_aw img {
    max-width: 80%;
    height: 130px;
    object-fit: contain;
    display: block;
}
.three-column-layout img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    color: #777;
    font-size: 0.9em;
    margin-top: 30px;
}

/* Responsive Anpassungen */
@media (max-width: 600px) {
    .banner { height: auto; background-size: contain; padding: 6px 0; }
    .three-column-layout .column { flex-basis: 100%; }
}
@media (max-width: 768px) {
  .three-column-layout .column img {
    max-width: 100%;
    height: auto;
  }
  /* Grundsätzliches für responsive Bilder */
img {
  max-width: 100%; /* Bild kann nie größer als Container */
  height: auto;    /* Erhält das Seitenverhältnis */
  display: block;  /* Vermeidet unerwünschte Inline-Lücke */
}

/* Spezifische Regel für Bilder in bestimmten Elementen, falls nötig */
.my-responsive {
  max-width: 100%; /* Bild passt sich dem Container an */
  height: auto;    /* Erhält das Seitenverhältnis */
}
}