﻿body { margin:0; font-family:Arial,sans-serif; background:#fff; color:#000; }

/* === Header === */
.header {
  display: flex;
  align-items: center;           
  justify-content: space-between; 
  background: blue;
  color: #fff;
  padding: 15px 20px;
}

.header-left {
  display: flex;
  align-items: center;
}

.header-logo {
  width: 120px; /* Bild vergrÃ¶ÃŸert */
  height: auto;
}

.header-title-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-grow: 1;
}

.header-title {
  font-size: 1.8em;
  font-weight: bold;
  margin: 0;
}

/* Navigation unter Ãœberschrift */
.header-nav {
  margin-top: 8px;
}

.header-nav a {
  color:#fff;
  text-decoration:none;
  font-weight:bold;
  margin: 0 10px;
}

.header-nav a:hover { text-decoration:underline; }

/* ZurÃ¼ck-Button rechts oben */
.header-right form input[type=button] {
  font-size: 16px; 
  font-weight: bold; 
  background:#fff; 
  color:blue;
  border:none; 
  padding:8px 16px; 
  cursor:pointer; 
  border-radius:5px;
}

.header-right form input[type=button]:hover { background:#ddd; }

/* === Galerie & Video === */
h2 { margin:20px 0 10px 0; text-align:center; }

.gallery { display:flex; flex-wrap:wrap; gap:20px; justify-content:center; padding:10px; }
figure, ziel { text-align:center; margin:0; }

figure img, ziel img { width:100%; max-width:500px; height:auto; display:block; margin:0 auto;
  border-radius:0; box-shadow:0 0 5px rgba(0,0,0,0.2); cursor:pointer; transition: transform 0.3s; }
figure img:hover, ziel img:hover { transform: scale(1.03); }

figcaption, zielcaption { margin-top:8px; font-size:14px; color:#000; }

video { width:100%; max-width:800px; display:block; margin:0 auto 30px auto; border-radius:5px; box-shadow:0 0 10px rgba(0,0,0,0.3); }

/* === Lightbox Overlay === */
.lightbox-overlay {
  position: fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.9);
  display: none; justify-content:center; align-items:center; z-index:9999; 
}
.lightbox-overlay img { max-width:90%; max-height:90%; border-radius:5px; box-shadow:0 0 20px #000; cursor:zoom-out; }

.lightbox-nav {
  position:absolute; top:50%; transform:translateY(-50%);
  background: rgba(255,255,255,0.3); border:none; color:#000; font-size:2.5em; padding:5px 10px;
  cursor:pointer; border-radius:5px; z-index:10000;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.7); }
.lightbox-nav.prev { left:10px; }
.lightbox-nav.next { right:10px; }

/* === Fixierte Ordner-Navigation === */

.folder-nav {
    position: sticky;       /* Bleibt beim Scrollen sichtbar */
    top: 0px;              /* Abstand vom oberen Rand (Header-Höhe) */
    z-index: 999;
    text-align: center;
    background-color: blue; /* Blau wie Header */
    padding: 10px 0;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
	
	/* Verhindert Umbruch der Links */
    white-space: nowrap;
    overflow-x: auto;    /* Bei vielen Links horizontal scrollen */
    -webkit-overflow-scrolling: touch; /* sanftes Scrollen auf Mobilgeräten */
	
}

.folder-nav a {
	display: inline-block; /* wichtig für white-space nowrap */
    margin: 0 10px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    padding: 5px 12px;
    border-radius: 3px;
    transition: background-color 0.3s, transform 0.2s;
}

.folder-nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

#back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 10000;
    display: none; /* zuerst unsichtbar */
    background-color: blue;
    color: white;
    border: none;
    padding: 12px 18px;
    font-size: 20px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    transition: opacity 0.3s, transform 0.3s;
}

#back-to-top:hover {
    background-color: #0057a3;
    transform: scale(1.1);
}





  .container {
    max-width: 90%;
    margin: 40px auto;
    background: #fff;
    padding: 25px 35px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 12px;
  }
  p {
    margin: 15px 0;
    text-align: justify;
  }
  .highlight {
    background-color: #e6f0ff;
    padding: 10px;
    border-left: 4px solid #004c99;
    margin: 20px 0;
  }
  a.map-link {
    color: #004c99;
    text-decoration: none;
    font-weight: bold;
  }
  a.map-link:hover {
    text-decoration: underline;
  }




  .highlight {
    background-color: #e6f0ff;
    padding: 10px;
    border-left: 4px solid #004c99;
    margin: 20px 0;
  }
  
/* === Mobile Optimierung === */
@media (max-width:768px) {
  .header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: center;
  }

  .header-title { font-size: 1.5em; }

  .header-right form input[type=button] { font-size:14px; padding:6px 12px; }

  .header-title-container { flex-grow: 1; align-items: center; }

  .header-nav { margin-top:15px; }

  .gallery { gap:10px; padding:5px; }
  .gallery > a, .gallery > figure, .gallery > ziel { flex: 1 1 calc(50% - 10px); box-sizing:border-box; }
  video { max-width:100%; }
  
  .folder-nav {
      top: 0px; /* mehr Abstand bei kleinerem Header */
      padding: 8px 0;
  }
  .folder-nav a {
      margin: 0px 8px;
      padding: 4px 8px;
      font-size: 14px;
  }
}

