/* Basis: CSS-Variablen & Farbsystem */
:root {
  --wbg: #fcf8e2;
  --imgshadow: rgba(0,0,0,0.2);
  --textareabg:rgba(255, 255, 255, 0.293)0;
  --textareafg:black;
  --bgm:rgba(184, 240, 240, 0.541)0;
    --kbtn: rgb(30, 134, 127);

    --bg: #ffffff;
    --fg: #0f172a;           /* Slate-900 */
    --f: #4e2424;           /* Slate-900 */
    --muted: #475569;        /* Slate-600 */
    --border: #9cc0ef;       /* Slate-200 */
    --primary: #2563eb;      /* Blue-600 */
    --primary-contrast: #ffffff;
    --card: #5861e4a1;
    --shadow: 0 4px 16px rgba(0,0,0,.07);
    --white: #b8f0f0;
    --light-grey: #edf0f1;
    --violet: #655be1;
    --dark-violet: #5146e1;
    --black: #010203;
  }
  .container.header-inner, .site-header {
    
  --bgm:rgba(184, 240, 240, 0)0;
    position: relative;
    padding: 20px;
    border-radius: 0px;
    background: transparent; /* wirklich transparent */
    border: none; /* keine Umrandung */
    box-shadow: none; /* kein Schatten */
    
    color: #f0f0f000; /* Textfarbe bleibt sichtbar */
  }
  
  .dark {
    --f: #ffffff;
  --imgshadow: rgba(255,255,255,0.1);
    --kbtn: rgba(20, 86, 91, 0.13);
  --wbg: #270401;
  --textareafg: white;
    --bgm: #150e29;
    --bg: #150e29df;
    --fg: #e5e7eb;           /* Gray-200 */
    --muted: #a3a3a3;        /* Gray-400 */
    --border: #006aff;       /* Gray-l800 */
    --primary: #60a5fa;      /* Blue-300 */
    --primary-contrast: #0b1220;
    --card: #0f172a;
    --white: #150e29df;
    --light-grey: #edf0f1;
    --violet: #655be1;
    --dark-violet: #5146e1;
    --black: #21232a;
  --textareabg:rgba(1, 32, 32, 0.541)0;
  }

  
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; overflow-x: hidden;  }
  body {
    margin: 0;
    z-index: 1;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Noto Sans", Arial, sans-serif;
    background: var(--bg);
    background-color: var(--wbg);
    background-size: cover;          /* skaliert das Bild, damit es die Seite füllt */
    background-position: center;     /* zentriert das Bild */
    background-repeat: no-repeat; 
    color: var(--fg);
    line-height: 0;
    overflow-x: hidden; 
  }
h1 {
  text-align: center;
  font-size: 2.5rem;
  margin: 2rem 0 1rem;
  position: relative;
}
h1::after {
  content: "";
  width: 100px;
  height: 4px;
  display: block;
  background: linear-gradient(90deg, #f59e0b, #ef4444);
  margin: 10px auto 0;
  border-radius: 4px;
}

/* ===== Filterleiste ===== */
.filter-bar {
  z-index: 49;
  display: flex;
  justify-content: center;
  align-items: center;  /* <---- das ist der wichtige Teil */
  gap: 15px;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.filter-btn {
  margin-top: 50px;
  background: white;
  border: 2px solid #ef4444;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  pointer-events: auto;
  font-size: 1rem;
  z-index: 49;
  transition: all 0.3s ease;
}
.filter-btn.active,
.filter-btn:hover {
  background: linear-gradient(90deg, #f59e0b, #ef4444);
  color: white;
  border-color: transparent;
}

/* ===== Galerie ===== */
.galleryy {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 0 20px 80px;
  max-width: 1400px;
  margin: auto;
}
/* Standard Gallery Item */
.galleryy-item {
  position: relative;
  overflow: hidden;
  border-radius: 0px;
  cursor: pointer;
  transform: translateY(40px);
  opacity: 0;
  transition: all 0.8s ease;
  /* kleiner Schatten unten */
  box-shadow: 0 4px 6px var(--imgshadow);
}
.galleryy-item.visible {
  transform: translateY(0);
  opacity: 1;
}
.galleryy-item img, .galleryy-item video {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.galleryy-item:hover img,
.galleryy-item:hover video {
  transform: scale(1.1);
  transition: all 1s ease-in-out; /* weicher Übergang */
}
.galleryy-item:hover img {
  filter: blur(15px); /* Weichzeichner-Effekt */
}
.overlayy {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0));
  color: goldenrod;
  padding: 25px 20px 15px;
  opacity: 0;
  transform: translateY(40%);
  transition: transform 0.4s ease, opacity 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 40%;
}

.galleryy-item:hover .overlayy {
  opacity: 1;
  transform: translateY(0);
}

.overlayy h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 8px 0;
  outline: greenyellow;
  line-height: 1.3;
}

.overlayy p {
  font-size: 1rem;
  font-weight: 300;
  opacity: 0.85;
  line-height: 1.4;
  color: white;
  margin: 0;
}


/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: all 0.4s ease;
  z-index: 999;
  flex-direction: column;
}
.lightbox.active {
  opacity: 1; visibility: visible;
}
.lightbox img, .lightbox video {
  max-width: 90%;
  max-height: 70vh;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(0,0,0,0.6);
}
.captionn {
  position: relative;          /* bleibt unter dem Bild */
  display: block;
  color: #fff;
  font-size: 1.2rem;
  text-align: center;
  max-width: 90%;
  margin: 20px auto 0;         /* Abstand oben + zentriert */
  line-height: 1.5;
  word-wrap: break-word;       /* lange Wörter umbrechen */
  overflow-wrap: break-word;
  padding: 15px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.lightbox img,
.lightbox video {
  max-width: 90%;
  max-height: 65vh;  /* kleiner gemacht, damit Platz für Text bleibt */
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(0,0,0,0.6);
}

.close-button {
  position: absolute;
  top: 20px; right: 30px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  transition: 0.3s;
}
.close-button:hover { color: #f59e0b; }
/* Standard-Stil für Nav-Buttons */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  color: white;
  cursor: pointer;
  padding: 10px;
  transition: 0.3s;
  user-select: none;
}
.nav-btn:hover { color: #f59e0b; }
.prev-btn { left: 30px; }
.next-btn { right: 30px; }

/* Standard-Stil für Slideshow-Button */
.slideshow-btn {
  margin-top: 20px;
  background: linear-gradient(90deg, #f59e0b, #ef4444);
  color: white;
  border: none;
  padding: 10px 25px;
  font-size: 1rem;
  border-radius: 25px;
  cursor: pointer;
  transition: 0.3s;
}
.slideshow-btn:hover { opacity: 0.8; }

/* ==========================
   Custom Select Style
   ========================== */
   .category-filter {
    height: 40px;
    z-index: 40;
    margin-top: 50px;
    width: 180px; /* nicht die volle Breite */
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 6px;
    border: 2px solid #555;
    background-color: var(--bg);
    color: var(--fg);
    appearance: none; /* Pfeil ausblenden für modernes Styling */
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: 0.2s;
  }
  

.category-filter:hover {
  border-color: #888;
}

.category-filter:focus {
  outline: none;
  border-color: #555;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

/* Optional: Dropdown-Optionen anpassen */
.category-filter option {
  padding: 8px;
  font-size: 16px;
}

/* Mobile: Pfeile unten nebeneinander */
@media (max-width: 768px) {
  .prev-btn, .next-btn {
    position: fixed;      /* fixiert am Viewport */
    bottom: 20px;         /* Abstand vom unteren Rand */
    font-size: 2rem;      /* ggf. kleiner auf Handy */
    top: auto;            /* top zurücksetzen */
    z-index: 1000;        /* über dem Inhalt */
    transform: translateX(-50%); /* zentriert an ihrer left-Position */
  }
  .category-filter {
    margin-top: 1px;
  }
  .prev-btn { left: 25%; }   /* links unten */
  .next-btn { left: 75%; }   /* rechts unten */
}

#imgBox, 
#videoBox {
  opacity: 0;
  transition: opacity 0.4s ease;
  display: none;
}

#imgBox.active,
#videoBox.active {
  opacity: 1;
  display: block;
}
