/*
body {
	background: #310404 url(https://i.ytimg.com/vi/wOvQAhzWCrM/maxresdefault.jpg) no-repeat center center fixed;
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	background-size: cover;
	font-family: 'Barlow', sans-serif;
}
*/
html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: Arial, sans-serif;
  background-color: #92278f; /* Bootstrap bg-light */
}

header {
	background: transparent !important;/* heller Bootstrap-Hintergrund */
  color: #212529; /* dunkle Schrift */
  padding: 0rem;
  text-align: center;
  flex-shrink: 0;
}
h1{
  font-size:2rem;
}

.bg-light{
  color:#e9ecef !important;
}

.navbar {
  background-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
	padding:0;
}

.navbar .nav-link {
  position: relative;
  padding-bottom: 4px;
}

.navbar .nav-link.active{
  font-weight: bold;
  color: #f1592a !important;
}
.lead {
  font-size: 1rem;
}
.page-body {
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0; /* wichtig */
  display: flex;
  flex-direction: column;
  padding-top: 0; /* oder die tatsächliche Höhe des headers */
  margin-top:0;
}
.container {
  flex: 0 0 auto;
	background: #fff;
}
.content {
	margin-top:0rem;
	margin-bottom:0rem;
}
.nav-link{
  color:black !important;
}
.nav-link:hover{
  color:grey !important;
}
.hero-area {
  flex: 1 1 auto;
  position: relative;
  overflow: hidden;
  width: 100%;
  background: #000;
  display: flex;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  opacity: 0;
  animation: pulseZoom 6s ease-in-out infinite alternate;
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.nav-divider {
  color: #ccc;
  padding: 0 10px;
  font-size: 1.2rem;
  display: inline-block;
}

@keyframes pulseZoom {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%) scale(0.9);
  color: white;
  text-align: center;
  font-size: 2.5rem;
  opacity: 0;
  z-index: 2;
  transition: all 0.5s ease;
}

.hero-text.animate {
  animation: heroBounce 6s ease forwards;
}

@keyframes heroBounce {
  0% {
    opacity: 0;
    transform: translate(-50%, -60%) scale(0.8);
  }
  20% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.0);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.05);
  }
  80% {
    transform: translate(-50%, -50%) scale(1.0);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.0);
  }
}

.hero-slide.active .hero-text {
  opacity: 1;
}

footer {
  color: #212529;
  padding: 1rem;
  text-align: center;
  flex-shrink: 0;
}

footer a {
  color: #000000;
}

/* Scrollbalken verschönern */
.page-body::-webkit-scrollbar {
  width: 8px;
}
.page-body::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 4px;
}
.page-body::-webkit-scrollbar-thumb:hover {
  background: #555;
}
.img-container{
  margin-top:1rem;
  margin-bottom:1rem;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.popup-content {
  background: white;
  padding: 0;
  border-radius: 0px;
  width: 100%;
  height: 100%;
  position: relative;
}

#close-popup-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1100; /* höher als der Popup-Container und die Karte */
  background: black;
  color: white;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 20px;
  text-align: center;
  cursor: pointer;
  font-weight: bold;
}

#popup-map{
  height: 100%;
}
.single-album-item {
  padding: 10px;
  cursor: pointer;
}

.single-album {
  display: flex;
  flex-direction: column;
  background: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  height: 100%;
}

.single-album img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  background-color: #eee; /* falls Bild mal nicht lädt */
}

.album-info {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px;
  text-align: center;
}

.album-info h5 {
  margin: 5px 0 2px 0;
  font-size: 16px;
  color: #333;
}

.album-info p {
  font-size: 14px;
  color: #777;
  margin: 2px 0;
}

.album-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid #ddd;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border-radius: 8px;
  background-color: #fff;
  transition: box-shadow 0.2s ease;
}

.album-card:hover {
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.album-card .album-img {
  height: 200px;
  object-fit: cover;
  width: 100%;
}

.album-card .album-body {
  padding: 0.75rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auf-karte-btn {
  margin-top: auto;
  margin-bottom: 0;
}

.row.row-gutter-half {
  margin-right: -0.5rem;
  margin-left: -0.5rem;
}
.row.row-gutter-half > [class^="col-"] {
  padding-right: 0.5rem;
  padding-left: 0.5rem;
}

.search-area {
  padding: 0 0.1rem;
  max-width: 1000px;
  margin: 0 auto;
}

.form-control {
  border-radius: 6px;
}

.fullscreen-map {
  height: 100vh;
  width: 100%;
}

/* Popup-Hülle entfernen */
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Der eigentliche Inhaltsblock */
.leaflet-popup-content {
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  max-width: none !important;
}

.leaflet-popup-tip-container {
  display: none !important;
}

.leaflet-popup-close-button{
  display:none;
}

.popup-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  max-height: 300px;
  overflow-y: auto;
  padding: 10px;
  box-sizing: border-box;
}

.popup-grid-item {
  background: #f9f9f9;
  padding: 10px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  font-size: 0.9rem;
  text-align: center;
}


.fullscreen-map-active {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  background: white;
}

.popup-wrapper {
	position: relative;
  top: 0;
  left: 0;
	width: 100%;
  height: 30vh;
  z-index: 2000;
  transition: height 0.3s ease;
	/*
  display: flex;
  justify-content: center;
  align-items: start;
	*/
}

.popup-wrapper.fullscreen {
  height: 100% !important;
}

/* Nur im Normalzustand */
#map-popup-wrapper {
	top: 0;
  left: 0;
  z-index: 2000;
  overflow: hidden;
}

/* Wenn geschlossen */
#map-popup-wrapper.closed {
  height: 0 !important;
}

/* Wenn fullscreen */
#map-popup-wrapper.fullscreen {
  top: 0 !important;
  height: 100% !important;
  z-index: 3000;
}

#searchContainer {
  transition: margin-top 0.3s ease;
}

.popup-overlay {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
}



.fullscreen-popup {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100% !important;
  z-index: 3000;
}

body.fullscreen-active {
  overflow: hidden;
}


.popup-overlay.fullscreen {
  height: 100% !important;
  top: 0 !important;
}


#fullscreen-btn {
  pointer-events: auto !important;
}

/* Smartphones hochkant */
@media (max-width: 480px) {
  /* CSS für kleine Phones */
}
@media (max-width: 575.98px) {

  .album-card .album-body {
    padding: 0.2rem;
  }

  .album-card {
    border-radius: 6px;
  }

  .album-card .album-img {
    height: 160px;
  }
}

/* Smartphones / kleine Tablets */
@media (max-width: 768px) {
  /* CSS für iPhone quer, kleine Tablets */
}

/* Normale Tablets */
@media (max-width: 1024px) {
  /* CSS für iPads hochkant/quer */
}

/* Laptops */
@media (max-width: 1440px) {
  /* CSS für kleinere Laptops */
}
