.galerie-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1rem 1rem 2rem 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.galerie-header h1 {
  margin: 0;
  font-size: 1.5rem;
}
.galerie-add-button {
  display: inline-block;
  font-size: 1.8rem;
  text-decoration: none;
  padding: 0.2rem 0.6rem;
  background: linear-gradient(to bottom, #ff0000, #000000);
  color: white;
  border-radius: 6px;
	border: 2px solid #000;
  font-weight: bold;
  transition: background 0.2s ease;
}
.news-add-button:hover {
  background-color: #002a80;
}
.galerie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
	max-width: 1320px; /* 3 × 220px + 2 × 20px Gap + Puffer */
  margin: 0 auto;
  padding: 0 20px;
	align-items: start; /* <— Wichtig */
	/*justify-content: center; fügt Zentrierung hinzu */
}
.galerie-grid.single-album {
  justify-content: center;
  grid-template-columns: repeat(1, 520px);
}
.galerie-album {
  background: #fff;
  border-radius: 10px;
	border: 1px solid #990000;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.galerie-album:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* Wenn erweitert */
.galerie-info.expanded {
  max-height: 2000px; /* beliebig groß */
}

/* Nur der obere Teil soll begrenzt sein */
.galerie-info-wrapper {
  display: flex;
  flex-direction: column;
  position: relative;
}

.galerie-info-text {
	padding: 0 5px 0 5px;
  max-height: 120px;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.galerie-info-text.expanded {
  max-height: 2000px;
}

/* Immer sichtbar */
.galerie-info-fixed {
	padding: 0 5px 0 5px;
  margin-top: 8px;
  color: #666;
}

/* Button */
.album-toggle-btn {
  text-align: center;
  margin-top: 6px;
  padding: 6px 12px;
  font-size: 0.85em;
  color: #FFF;
	border-top: 1px solid #000;
	border-bottom: 1px solid #000;
  background: linear-gradient(to top, #8b0000, #ff9999); /* dunkelrot zu hellrot */
  transition: opacity 0.3s ease;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
  z-index: 2;
  display: none;
}
.album-toggle-btn:hover {
  background-color: #dceeff;
}
.galerie-cover img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
	border-bottom: 1px solid #990000;
	aspect-ratio: 4 / 3;
}

.galerie-info {
  padding: 15px;
}

.galerie-info-text h3 {
	text-align: center;
  margin: 0 0 5px;
  font-size: 18px;
  color: #222;
}

.galerie-info-text h4 {
	margin: 4px 0;
  color: #555;
  font-size: 14px;
}

.galerie-info p {
  margin: 4px 0;
  color: #555;
  font-size: 12px;
}

.meta {
  font-style: italic;
	font-size: 12px;
  color: #777;
}

.views {
  font-size: 12px;
  color: #999;
}

.zeitleiste {
	display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 20px;
	justify-content: space-evenly;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; /* iOS smooth scroll */
	margin: 30px 0;
}

.jahr-button {
	font-size: 14px;
  background: #eee;
  color: #333;
  padding: 8px 14px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.jahr-button:hover {
  background-color: #007BFF;
  color: white;
}

.jahresgruppe {
	padding: 0;
	padding-bottom: 30px;
  margin-bottom: 60px;
}

.jahresgruppe h2 {
  font-size: 14px;
  text-align: center;
	border-radius: 9px 9px 0 0;
  margin: 0 0 10px;
  color: #FFF;
  padding-bottom: 6px;
}

@media (min-width: 600px) {
  .galerie-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .galerie-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
/* Für kleinere Bildschirme – z. B. iPhones */
@media (max-width: 600px) {
  .galerie-grid.single-album {
    grid-template-columns: repeat(1, 320px);
  }
}

.zeitleiste {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  padding: 10px;
  background: #f4f4f4;
  border-bottom: 2px solid #ccc;
}
.zeitleiste a {
  flex: 0 0 auto;
  padding: 8px 12px;
  background: #990000;
  color: white;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}
.zeitleiste a:hover {
  background: #cc0000;
}
.scroll-top-button {
  position: fixed;
  bottom: 30px;
  right: 50%;             /* zentriert an rechter Bildschirmhälfte */
  transform: translateX(200px); /* nach rechts von der Mitte verschoben */
  width: 45px;
  height: 45px;
  background-color: rgba(153, 0, 0, 0.85); /* #990000 mit Transparenz */
  color: white;
  font-size: 24px;
  text-align: center;
  line-height: 45px;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 9999;
}

.scroll-top-button:hover {
  background-color: rgba(153, 0, 0, 1); /* voll deckendes #990000 */
  transform: translateX(200px) scale(1.1); /* skalieren beim Hover */
}
.admin-bar {
	margin: 0;
	display: flex;
	justify-content: space-between;
	border: 1px solid #990000;
	border-radius: 0 0 9px 9px;
	background: #990000;
}
.admin-bar .edit {
	text-align: left;
	padding: 5px 5px 5px 10px;
	font-size: 12px;
	text-decoration: none;
}

.admin-bar .delete {
	text-align: right;
	padding: 5px 10px 5px 5px;
	font-size: 12px;
	text-decoration: none;
}