
/* ============================================================
   BASIS
   ============================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  justify-content: center;
  background: #EEAECA;
  background: radial-gradient(circle, rgba(238, 174, 202, 1) 0%, rgba(148, 187, 233, 1) 100%);
}

body::after {
  content: "✦";
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 32px;
  color: #ffffff;
  opacity: 0.7;
}

html {
  /* scroll-behavior: smooth; */
  scroll-padding-top: 90px;
}

/* ============================================================
   ALBUM / HERO / CONTENT
   ============================================================ */
.album-title a {
  text-decoration: none;
  color: #6d6d6d;
}

.main-wrapper {
  height: 650px;
  max-width: 1920px;
  width: 100%;
}

.hero-section img {
  width: 100%;
  height: 650px;
  object-fit: cover;
  object-position: center 15%;
}

.content-section {
  border: 2px solid green;   /* DEBUG — убрать после проверки */
  padding: 50px 60px;
  margin-top: -110px;
  position: relative;
  z-index: 10;
  background-color: rgba(255, 255, 255, 0.75);
  border-radius: 20px 20px;
}

.album-title {
  font-size: 2rem;
  font-weight: 300;
  color: #6d6d6d;
  letter-spacing: 3px;
  margin-bottom: 30px;
  text-transform: uppercase;
  text-align: center;
}

/* ============================================================
   ALBUM CARDS
   ============================================================ */
.album-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.album-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.album-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent);
  z-index: 1;
}

.card-overlay {
  position: absolute;
  bottom: 25px;
  left: 0;
  right: 0;
  text-align: center;
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 2px;
  z-index: 2;
  text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.album-card:hover img {
  transform: scale(1.05);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer-section {
  background-color: transparent;
  text-align: center;
  padding: 20px 0 50px 0;
  clear: both;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.social-icons a {
  color: #0a0a0a;
  transition: color 0.3s;
  display: inline-block;
}

.social-icons a:hover {
  color: #555555;
}

.copyright {
  font-size: 0.75rem;
  color: #4e4c4c;
  letter-spacing: 1px;
  font-family: sans-serif;
}

/* ============================================================
   NINA-ADMIN.PHP
   ============================================================ */
.hover-warning-trigger {
  cursor: help;
  transition: all 0.3s ease;
}

.hover-warning-trigger:hover {
  background-color: rgba(255, 193, 7, 0.15) !important;
  border-color: #ffc107 !important;
  box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

@keyframes pulseWarn {
  0%   { opacity: 1; transform: scale(1); }
  50%  { opacity: 0.7; transform: scale(1.15); }
  100% { opacity: 1; transform: scale(1); }
}

.hover-indicator {
  display: inline-block;
  animation: pulseWarn 2s infinite;
}

.abteilung-block {
  border-top: 4px solid #dee2e6;
  padding-top: 20px;
  margin-top: 40px;
}

.abteilung-block.geburtstag-40    { border-top-color: #0d6efd; }
.abteilung-block.geburtstag-50    { border-top-color: #198754; }
.abteilung-block.geburtstag-60    { border-top-color: #dc3545; }
.abteilung-block.sonstiges-bilder { border-top-color: #6c757d; }

#lastPhotoInKat {
  background-color: #fff3cd;
  font-weight: bold;
  color: #664d03;
}

/* ============================================================
   NINA-GALERIE.PHP
   ============================================================ */
.nina-gallery-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0 20px 20px 20px;
  border-radius: 0 0 40px 40px;
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.25);
  position: relative;
  overflow: hidden;
}

.nina-gallery-hero::before {
  content: "";
  position: absolute;
  top: -50%; right: -10%;
  width: 400px; height: 400px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.nina-gallery-hero::after {
  content: "";
  position: absolute;
  bottom: -60%; left: -5%;
  width: 300px; height: 300px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

.nina-gallery-hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
  position: relative;
  z-index: 2;
}

.nina-gallery-hero p {
  position: relative;
  z-index: 2;
}

.cake-icon {
  font-size: 4.5rem;
  display: block;
  margin-bottom: 20px;
  animation: cakeFloat 3s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

@keyframes cakeFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

.nina-gallery-card {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  background: white;
}

.nina-gallery-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.nina-photo-wrapper {
  overflow: hidden;
  position: relative;
  background: #f8f9fa;
}

.nina-photo-wrapper img {
  transition: transform 0.6s ease;
}

.nina-gallery-card:hover .nina-photo-wrapper img {
  transform: scale(1.08);
}

.nina-photo-wrapper::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.2));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.nina-gallery-card:hover .nina-photo-wrapper::after {
  opacity: 1;
}

.nina-year-badge {
  background: rgba(255, 255, 255, 0.95);
  color: #764ba2;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(6px);
  z-index: 3;
}

.abteilung-header {
  padding-bottom: 12px;
  margin-bottom: 25px;
  border-bottom: 3px solid #e9ecef;
  position: relative;
}

.abteilung-header::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 80px;
  height: 3px;
}

.abteilung-header.color-primary::after   { background: #0d6efd; }
.abteilung-header.color-success::after   { background: #198754; }
.abteilung-header.color-danger::after    { background: #dc3545; }
.abteilung-header.color-secondary::after { background: #6c757d; }

.nina-empty-state {
  background: white;
  border-radius: 20px;
  padding: 60px 20px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.nina-empty-state i {
  font-size: 5rem;
  color: #cbd5e0;
  margin-bottom: 20px;
}

.stats-bar {
  background: transparent;
  border-radius: 16px;
  padding: 18px 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
  margin-bottom: 40px;
}

/* ============================================================
   CAROUSEL (neu)
   ============================================================ */
.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.carousel-viewport {
  overflow: hidden;
  flex: 1;
  padding: 10px 0;
}

.carousel-track {
  display: flex;
  gap: 24px;
  will-change: transform;
}

.album-slide {
  flex: 0 0 calc((100% - 48px) / 3);
  box-sizing: border-box;
}

.carousel-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, opacity 0.2s, transform 0.15s;
}

.carousel-arrow:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.05);
}

.carousel-arrow:active {
  transform: scale(0.95);
}

/* Мобильная адаптация: 1 карточка */
@media (max-width: 767px) {
  .album-slide {
    flex: 0 0 100%;
  }
  .carousel-arrow {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  .carousel-track {
    gap: 16px;
  }
}

/* Планшет: 2 карточки */
@media (min-width: 768px) and (max-width: 991px) {
  .album-slide {
    flex: 0 0 calc((100% - 24px) / 2);
  }
}

/* Klickbare Statistik-Badges */
.stats-badge-link {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.stats-badge-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  filter: brightness(1.1);
  text-decoration: none;
  color: #fff;
}

.stats-badge-link:active {
  transform: translateY(0);
}

/* SCROLL NACH OBEN */
#toTop {
position: fixed;
bottom: 2.5rem;
right: 2.5rem;
display: none;
background-color: transparent;
color: #4a5568;
padding: 0.75rem 1rem;
border-radius: 50%;
border: 2px solid #c0c8d0;
cursor: pointer;
font: 600 1.25rem/1.5rem "bell-mt-bold-italic";
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
transition: opacity 0.3s, transform 0.3s;
z-index: 1000;
}
#toTop:hover {
opacity: 1;
transform: scale(1.1);
}
#toTop.show {
display: block;
opacity: 0.8;
}

/* ============================================================
   DER LOADER ZWISCHEN DEN SEITEN DER WEBSITE
   ============================================================ */
.page-loader {
position: fixed;
inset: 0;
z-index: 9999;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 20px;
background: radial-gradient(circle, rgba(238, 174, 202, 1) 0%, rgba(148, 187, 233, 1) 100%);
transition: opacity 0.4s ease, visibility 0.4s ease;
}

.page-loader.is-hidden {
opacity: 0;
visibility: hidden;
pointer-events: none;
}

.page-loader__spinner {
width: 56px;
height: 56px;
border: 5px solid rgba(255, 255, 255, 0.35);
border-top-color: #ffffff;
border-radius: 50%;
animation: loaderSpin 0.9s linear infinite;
}

.page-loader__text {
color: #ffffff;
font-size: 0.95rem;
letter-spacing: 2px;
text-transform: uppercase;
opacity: 0.85;
margin: 0;
}
@keyframes loaderSpin {
to { transform: rotate(360deg); }
}
.nina-photo-wrapper img {
opacity: 0;
transition: opacity 0.5s ease;
}
.nina-photo-wrapper img.is-loaded {
opacity: 1;
}
/* ============================================================
   // DER LOADER ZWISCHEN DEN SEITEN DER WEBSITE
   ============================================================ */


