/* === Reset & Grundlayout === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
              url('/hintergrund.jpg') no-repeat center center fixed;
  background-size: cover;
  color: #f0f0f0;
  transition: all 0.3s ease;
}

/* === Hauptlayout === */
.layout {
  display: flex;
  min-height: 100vh;
  gap: 1rem;
  padding: 1rem;
  transition: all 0.3s ease;
}

/* === Sidebar === */
.sidebar {
  background-color: #11111de0;
  color: white;
  border-radius: 2rem;
  width: 236px;
  min-width: 130px;
  min-height: 90vh;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease;
  margin-top: 5.152rem;
  z-index: 1000;
}

/* Wenn Sidebar eingeklappt ist */
.layout.sidebar-collapsed .sidebar {
  width: 0;
  min-width: 0;
  transform: translateX(-100%);
  overflow: hidden;
  padding: 0;
}

.sidebar.collapsed {
  transform: translateX(-280px);
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-nav a {
  color: #66ccff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  transition: background 0.3s;
}

.sidebar-nav a:hover {
  background-color: #6f6f6f;
}

.sidebar-logo img {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
  border: 16px solid #6f6f6f;
  background-color: #6f6f6f;
}

.sidebar-bottom img {
  width: 100%;
  border-radius: 1rem;
  margin-top: 2rem;
  border: 16px solid #6f6f6f; 
  background-color: #6f6f6f;
}

/* Toggle Button für Sidebar */
.sidebar-toggle {
  position: fixed;
  top: 1rem;
  left: 1rem;
  background: #66ccff;
  border: none;
  z-index: 1000;
  cursor: pointer;
  padding: 0.25rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.sidebar-toggle img {
  width: 228px;
  height: 40px;
}

/* === Hauptinhalt === */
.main-content {
  flex: 1;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2rem;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
  max-width: 100%;
  margin: 0 auto;
  transition: all 0.3s ease;
}

/* === Sektionen === */
section {
  background: #11111de0;
  padding: 2rem;
  border-radius: 2rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  margin-bottom: 3rem;
  transition: transform 0.3s ease;
}

section:hover {
  transform: translateY(-5px);
}

h1, h2 {
  color: #66ccff;
  margin-bottom: 1rem;
}

/* === Galerie === */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.grid img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.gallery-image {
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
  cursor: pointer;
  border-radius: 8px;
}

.gallery-image:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  filter: brightness(1.1);
  z-index: 2;
}

/* === Formular === */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input, textarea, button {
  padding: 0.75rem;
  border-radius: 6px;
  border: none;
  font-size: 1rem;
}

input, textarea {
  background: #222;
  color: #fff;
}

button {
  background-color: #66ccff;
  color: #000;
  font-weight: bold;
  cursor: pointer;
}

button:hover {
  background-color: #33bbee;
}

/* === Footer === */
footer {
  text-align: center;
  margin-top: 4rem;
  color: #777;
  font-size: 0.9rem;
}

/* === Hero Section === */
.hero {
  text-align: center;
  margin-bottom: 2rem;
}

.hero .highlight {
  color: #66ccff;
}

.subheading {
  font-size: 1.25rem;
  color: #ccc;
}

/* === Intro & Mission === */
.intro p,
.mission p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.features ul {
  list-style: none;
  padding-left: 0;
}

.features li {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
}

.features li::before {
  content: "✔️";
  position: absolute;
  left: 0;
}
/*******************/
/* Lightbox Styles */
.lightbox {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 1000;
}

.lightbox-img {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 8px;
}

.lightbox.hidden {
  display: none;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: white;
  opacity: 0.6;
  cursor: pointer;
  user-select: none;
  padding: 0 1rem;
  z-index: 1001;
}

.lightbox-arrow:hover {
  opacity: 1;
}

.lightbox-arrow.left {
  left: 2vw;
}

.lightbox-arrow.right {
  right: 2vw;
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 2.5rem;
  color: white;
  cursor: pointer;
  opacity: 0.6;
  z-index: 1002;
  transition: transform 0.2s ease;
}

.lightbox-close:hover {
  opacity: 1;
  transform: scale(1.2);
}

.pdf-container {
  width: 100%;
  height: 80vh; /* 80% der Bildschirmhöhe */
}

.pdf-container embed {
  width: 100%;
  height: 100%;
  border: none;
}

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

.gallery-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1.5rem;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  padding: 1rem;
  text-align: center;
  color: #f0f0f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  text-decoration: none;
}

.gallery-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(102, 204, 255, 0.5);
}

.gallery-card img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 1rem;
  background: white;
  border-radius: 50%;
  padding: 0.5rem;
}

.gallery-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: #66ccff;
}

.gallery-card p {
  font-size: 0.9rem;
  color: #ccc;
  flex-grow: 1;
}
/* === Media Queries für mobile Responsivität === */
/* === Media Queries für mobile Responsivität === */
/* === Media Queries für mobile Responsivität === */
/* === Media Queries für mobile Responsivität === */
/* === Media Queries für mobile Responsivität === */
/* === Media Queries für mobile Responsivität === */
/* === Media Queries für mobile Responsivität === */
/* === Media Queries für mobile Responsivität === */
@media (max-width: 480px) {
  html, body {
    height: auto;
    overflow-x: hidden;
  }

  .layout {
    flex-direction: column;
    padding: 0.5rem;
    gap: 0.2rem;
    min-height: auto;
  }

  .sidebar {
    position: fixed;
    width: 90%;
    min-height: auto;
    border-radius: 0.1rem;
    padding: 0.075rem;
    margin-top: 0.1rem;
  }

  .sidebar nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 Spalten */
    gap: 0.15rem;
    justify-items: stretch;
  }

  .sidebar-nav a {
    display: block;
    text-align: center;
  }

  .sidebar-bottom img {
    display: none;
  }

  .sidebar-toggle {
    display: none;
  }

  .main-content {
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
    max-width: 100%;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero .subheading {
    font-size: 0.9rem;
  }

  .features h2 {
    font-size: 1.1rem;
  }

  .features li {
    font-size: 0.9rem;
  }

  .pdf-container {
    height: 60vh; /* Weniger Platz auf kleinen Bildschirmen */
  }

  .sidebar.collapsed {
  transform: translateY(-100%);
  pointer-events: none;
}

}



