/* Gemeinsame Styles für Header, Navigation, Main-Layout und Footer */
body { margin: 0; font-family: Arial, sans-serif; color: #333; }
/*Galerie und Logout*/

.folder-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}
.folder-buttons a {
  display: inline-block;
  padding: 10px 20px;
  background: #f8f8f8;
  color: #333;
  text-decoration: none;
  border-radius: 6px;
}
.folder-buttons a:hover {
  background: #e2e2e2;
}
/* Neues: Buttons genauso stylen */
.folder-buttons button {
  display: inline-block;
  padding: 10px 20px;
  background: #f8f8f8;
  color: #333;
  text-decoration: none; /* wirkt nicht bei button, schadet aber nicht */
  border: none;          /* Default‑Border entfernen */
  border-radius: 6px;
  cursor: pointer;
}
.folder-buttons button:hover {
  background: #e2e2e2;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
}
.file-item {
  background: #f8f8f8;
  padding: 15px;
  border-radius: 6px;
  text-align: center;
}
.file-item img,
.file-item video {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 2px solid #ccc;
  cursor: pointer;
}
.file-item span {
  display: block;
  margin-top: 8px;
  font-size: 0.85em;
  color: #666;
  word-break: break-all;
}
.pagination {
  margin-top: 30px;
  text-align: center;
}
.pagination a {
  margin: 0 5px;
  padding: 8px 14px;
  background: linear-gradient(135deg, #6e8efb, #a777e3);
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
}
.pagination a:hover {
  background: linear-gradient(135deg, #5d7ded, #986ed8);
}
/* Controls Container */
.controls {
  margin: 30px 0 15px;
  text-align: center;
}

/* Schönes Button‑Design */
.controls button {
  margin: 0 10px;                     /* Gleichmäßiger Abstand */
  padding: 0.75em 1.5em;              /* Etwas luftiger */
  font-size: 1rem;                    /* Lesbare Schriftgröße */
  
  background: linear-gradient(135deg, #6e8efb, #a777e3);
  color: #fff;                        /* Weißer Text */
  border: none;                       /* Kein Standard‑Border */
  border-radius: 8px;                 /* Weiche Ecken */
  
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;                    /* Hand‑Cursor */
  
  transition: 
    background 0.3s ease, 
    transform 0.1s ease, 
    box-shadow 0.2s ease;
}

/* Hover‑Effekt */
.controls button:hover {
  background: linear-gradient(135deg, #5d7ded, #986ed8);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

/* Aktiv‑Zustand */
.controls button:active {
  transform: translateY(0);
  box-shadow: 0 3px 4px rgba(0, 0, 0, 0.1);
}

/* Fokus‑Zustand (Barrierefreiheit) */
.controls button:focus {
  outline: 2px solid #a777e3;
  outline-offset: 2px;
}
/*--------------------------------*/

.download {
  margin: 30px 0 15px;
  text-align: center;
}

/* Schönes Button‑Design */
.download button {
  margin: 0 10px;                     /* Gleichmäßiger Abstand */
  padding: 0.75em 1.5em;              /* Etwas luftiger */
  font-size: 1rem;                    /* Lesbare Schriftgröße */
  display: inline-block;
  
  background: linear-gradient(135deg, #6e8efb, #a777e3);
  color: #fff;                        /* Weißer Text */
  border: none;                       /* Kein Standard‑Border */
  border-radius: 8px;                 /* Weiche Ecken */
  
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;                    /* Hand‑Cursor */
  
  transition: 
    background 0.3s ease, 
    transform 0.1s ease, 
    box-shadow 0.2s ease;
}

/* Hover‑Effekt */
.download button:hover {
  background: linear-gradient(135deg, #5d7ded, #986ed8);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

/* Aktiv‑Zustand */
.download button:active {
  transform: translateY(0);
  box-shadow: 0 3px 4px rgba(0, 0, 0, 0.1);
}

/* Fokus‑Zustand (Barrierefreiheit) */
.download button:focus {
  outline: 2px solid #a777e3;
  outline-offset: 2px;
}

/*---------------------------------*/

#downloadForm {
  text-align: center;
  margin-top: 10px;
}
#downloadForm button {
  padding: 10px 15px;
  font-size: 1rem;
  margin-top: 10px;
}
/*Galerie und Logout Ende*/
header { position: fixed; top: 0; left: 0; width: 100%; background: rgba(255,255,255,0.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 2px 4px rgba(0,0,0,0.1); z-index: 1000; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; height: 60px; position: relative; }
.logo img { display: block; height: 60px; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; }
nav li { margin-left: 20px; }
nav a { text-decoration: none; color: #333; font-weight: bold; }
nav a.logout {
  color: #e63946;        
  font-weight: bold;     
}
nav a.logout:hover {
  color: #c62828;   
}
.menu-toggle { display: none; background: none; border: none; font-size: 1.5em; cursor: pointer; }
main { padding-top: 60px; padding-bottom: 80px; }
.hero { background: url('/images/hero.jpg') center/cover no-repeat; height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hero-logo { height: 200px; margin-bottom: 20px; }
.hero h1 { font-size: 3em; color: #000; text-shadow: 0 2px 4px rgba(0,0,0,0.5); margin: 0; text-align: center; }
section { padding: 60px 20px; }
.intro, .mission, .sponsors-teaser, .downloads-intro { max-width: 800px; margin: 0 auto; text-align: center; }
.intro h2, .mission h2, .sponsors-teaser h2, .downloads-intro h2 { margin-bottom: 20px; }
.intro p, .mission p, .sponsors-teaser p, .downloads-intro p { line-height: 1.6; }
.file-list { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
footer { background: #f8f8f8; padding: 40px 20px; }
.footer-container { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; }
.footer-section { margin-bottom: 20px; }
.footer-section h4 { margin-bottom: 10px; }
.footer-section ul { list-style: none; padding: 0; }
.footer-section li { margin-bottom: 8px; }
.footer-section a { text-decoration: none; color: #333; }
.footer-section a:hover { text-decoration: underline; }
.social-icons img { vertical-align: middle; margin-right: 8px; height: 24px; }
/* Ausgewählte Thumbnails hervorheben */
.file-item.selected {
  outline: 3px solid #007bff;
  background: rgba(0, 123, 255, 0.1);
}

/* Kontextmenü unterdrücken (wichtig für Mobile long‑press) */
.file-item img,
.file-item video {
  -webkit-touch-callout: none !important;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none !important;
}

/* im Auswahlmodus Link-Klicks deaktivieren, damit Auswahl funktioniert */
.select-mode .file-item a {
  pointer-events: none;
}

/* Mauszeiger über Thumbnails deutlich machen */
.file-item {
  cursor: pointer;
}

copyright { text-align: center; font-size: 0.9em; color: #666; margin-top: 20px; }
@media (max-width: 768px) {
  .container { justify-content: space-between; }
  nav ul { display: none; flex-direction: column; background: rgba(255,255,255,0.9); position: absolute; top: 60px; left: 0; width: 100%; }
  nav ul.open { display: flex; }
  nav li { margin: 10px 0; text-align: center; }
  .menu-toggle { display: block; }
  .footer-container { flex-direction: column; align-items: center; }
  .footer-section { width: 100%; text-align: center; }
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* bis 480 px: nur 2 Spalten */
@media (max-width: 480px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}