/* ===== SCHRIFTEN (self-hosted, DSGVO-konform) ===== */
/* Poppins – Header, Wasserzeichen, Bildbeschreibung */
@font-face { font-family:'Poppins'; font-style:normal; font-weight:300; font-display:swap;
  src:url('../fonts/poppins-v24-latin-300.woff2') format('woff2'); }
@font-face { font-family:'Poppins'; font-style:normal; font-weight:400; font-display:swap;
  src:url('../fonts/poppins-v24-latin-regular.woff2') format('woff2'); }
@font-face { font-family:'Poppins'; font-style:normal; font-weight:500; font-display:swap;
  src:url('../fonts/poppins-v24-latin-500.woff2') format('woff2'); }
@font-face { font-family:'Poppins'; font-style:normal; font-weight:700; font-display:swap;
  src:url('../fonts/poppins-v24-latin-700.woff2') format('woff2'); }

/* Inter – Menü, Fließtext, Standard */
@font-face { font-family:'Inter'; font-style:normal; font-weight:300; font-display:swap;
  src:url('../fonts/inter-v20-latin-300.woff2') format('woff2'); }
@font-face { font-family:'Inter'; font-style:normal; font-weight:400; font-display:swap;
  src:url('../fonts/inter-v20-latin-regular.woff2') format('woff2'); }
@font-face { font-family:'Inter'; font-style:normal; font-weight:500; font-display:swap;
  src:url('../fonts/inter-v20-latin-500.woff2') format('woff2'); }

/* ===== RESET & BASIS ===== */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
/* REPLACE */
html, body { width:100%; height:100dvh; overflow:hidden; }
body {
  background:#1a1a1a;
  font-family:'Inter', Arial, sans-serif;
  color:#fff;
  user-select:none;
}

/* ===== HERO ===== */
.hero {
  position:relative;
  width:100%;
  height:100dvh;
  overflow:hidden;
  cursor:zoom-in;
}

/* ===== SLIDES ===== */
.slide-track {
  display:flex;
  width:100%;
  height:100%;
  transition:none;
}
.slide {
  flex:0 0 100%;
  width:100%;
  height:100%;
  position:relative;
}
.slide-bg {
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.slide-placeholder {
  width:100%;
  height:100%;
  display:block;
}

/* ===== AP4: 2-BILD-WORKFLOW (ersetzt die alte Blur-Box aus AP2) =====
   Pro Slide eingebettet -> slidet mit dem jeweiligen Bild mit.
   bg-crop:   grosser, SCHARFER Ausschnitt aus dem sauberen bg-Streifen.
              Deckt den kompletten eingebrannten Wasserzeichen-Bereich
              sicher und vollstaendig ab (Sicherheitsebene).
   desc-blur: kleinere, GEBLURTE Box (derselbe bg-Streifen, nur mit
              filter:blur). Exakt textbreite + 10px breit (wird von
              galerie.js per Range-API berechnet). Nur darin liegt die
              Bildbeschreibung.
   Alle Positionswerte werden von galerie.js layout() gesetzt, relativ
   zum Slide (object-fit:cover wird exakt nachgerechnet). */
.bg-crop {
  position:absolute;
  left:0;
  overflow:hidden;
  pointer-events:none;
  z-index:10;
}
.bg-crop img {
  position:absolute;
  display:block;
  max-width:none;
}
.desc-blur {
  position:absolute;
  left:0;
  overflow:hidden;
  pointer-events:none;
  z-index:10;
}
.desc-blur img {
  position:absolute;
  display:block;
  max-width:none;
  filter:blur(8px);
}
.desc {
  font-family:'Poppins', sans-serif;
  position:absolute;
  left:1%;
  display:flex;
  align-items:center;
  font-weight:700;
  letter-spacing:0.18em;
  color:#fff;
  text-shadow:0 1px 6px rgba(0,0,0,0.91);
  pointer-events:none;
  white-space:nowrap;
  z-index:11;
}

/* Lupen-Icon: dezenter Hinweis "Bild antippen für Vollbild-Ansicht",
   sitzt einen Buchstabenabstand hinter der Beschreibung. Gleicher
   Linienstil wie die Pfeil-Buttons der Steuerung (stroke, kein Hintergrund). */
.desc-lupe {
  position:absolute;
  fill:none;
  stroke:rgba(255,255,255,0.85);
  stroke-width:1.6;
  stroke-linecap:round;
  filter:drop-shadow(0 1px 4px rgba(0,0,0,0.85));
  cursor:pointer;
  pointer-events:auto;
  z-index:12;
  transition:stroke 0.2s, transform 0.2s;
}
.desc-lupe:hover {
  stroke:#fff;
  transform:scale(1.12);
}

/* ===== STEUERUNG (unten mittig) ===== */
.controls {
  position:absolute;
  bottom:3%;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  align-items:center;
  gap:18px;
  z-index:20;
  background: rgba(0,0,0,0.35);
  justify-content: center;
}
.btn-nav {
  width:38px;
  height:38px;
  border:none;
  background:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}
.btn-nav:hover svg {
  stroke:rgba(255,255,255,1);
}
.btn-nav svg {
  width:56px;
  height:14px;
  fill:none;
  stroke:rgba(255,255,255,0.6);
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
  transition:stroke 0.2s;
}

/* ===== FORTSCHRITTSANZEIGE ===== */
.progress-wrap {
  position:relative;
  flex-shrink:0;
}
#progressSvg {
  opacity:0;
  transition:opacity 0.3s ease;
}
.controls {
  opacity:0;
  transition:opacity 0.3s ease;
}
.progress-wrap svg.ring {
  position:absolute;
  top:0; left:0;
  width:100%; height:100%;
  transform:rotate(-90deg);
}
.progress-wrap svg.ring circle.track {
  fill:none;
  stroke:rgb(210,210,210);
  stroke-width:3;
}
.progress-wrap svg.ring circle.fill {
  fill:none;
  stroke:#063971;
  stroke-width:3;
  stroke-linecap:round;
  transition:stroke-dashoffset 0.1s linear;
}
.progress-logo {
  position:absolute;
  top:50%; left:50%;
  transform:translate(-50%,-50%);
}

/* ===== POPUP ===== */
.popup-overlay {
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.88);
  z-index:100;
  display:none;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.popup-overlay.active { display:flex; }

/* Äußerer, antiker Rahmen in Hell/Weiß (statt Gold) - simuliert per
   CSS-Gradient ein plastisches, geschnitztes Profil, kein Bild-Asset nötig. */
.popup-rahmen {
  position:relative;
  padding:clamp(10px, 2.2vw, 24px);
  background:linear-gradient(135deg,#e8e6df,#fdfdfb 20%,#d8d5cc 45%,#ffffff 60%,#cac7bd 80%,#f0eee8);
  box-shadow:
    0 8px 24px rgba(0,0,0,0.45),
    inset 0 0 0 3px rgba(255,255,255,0.6),
    inset 0 0 0 6px rgba(140,138,128,0.35);
  cursor:default;
  max-width:92vw;
  max-height:88vh;
}
.popup-rahmen::before {
  content:'';
  position:absolute;
  inset:6px;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,0.5), inset 0 0 10px rgba(120,118,108,0.3);
  pointer-events:none;
}
.popup-frame {
  position:relative;
  padding:clamp(6px, 1.2vw, 14px);
  background:#1a1a1a;
  box-shadow:inset 0 0 12px rgba(0,0,0,0.6);
}
.popup-frame img,
.popup-frame .popup-placeholder {
  display:block;
  max-width:min(86vw, 1400px);
  max-height:74vh;
  width:auto;
  height:auto;
}
.popup-placeholder {
  width:min(140vh, 86vw);
  aspect-ratio:16/9;
  display:flex;
  align-items:center;
  justify-content:center;
}
.popup-placeholder span {
  font-size:1.2rem;
  color:rgba(255,255,255,0.2);
  letter-spacing:0.2em;
}

/* Museums-Schild: helles Schildchen unten mittig am Rahmen, zeigt die
   Bildbeschreibung der aktuellen Sprache. */
.popup-schild {
  position:absolute;
  left:50%;
  bottom:clamp(-22px, -2.6vw, -17px);
  transform:translateX(-50%);
  background:#faf9f5;
  border:1px solid #d8d4c8;
  padding:7px 22px;
  box-shadow:0 3px 10px rgba(0,0,0,0.35);
  white-space:nowrap;
  max-width:80vw;
  overflow:hidden;
  text-overflow:ellipsis;
}
.popup-schild span {
  font-family:'Poppins', sans-serif;
  font-weight:500;
  font-size:clamp(10px, 1.3vw, 13px);
  letter-spacing:0.12em;
  color:#3a3a36;
  text-transform:uppercase;
}

.popup-close {
  position:absolute;
  top:-16px; right:-16px;
  width:32px; height:32px;
  background:#063971;
  border:2px solid rgba(255,255,255,0.2);
  border-radius:50%;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:101;
}
.popup-close svg {
  width:12px; height:12px;
  stroke:#fff; stroke-width:2.5;
  stroke-linecap:round; fill:none;
}

/* ===== ARCHIV-POPUP: Titel-Etikett oben am Rahmen (Gegenstück zum Schild unten) ===== */
.archiv-titel {
  position:absolute;
  left:50%;
  top:clamp(-22px, -2.6vw, -17px);
  transform:translateX(-50%);
  background:#faf9f5;
  border:1px solid #d8d4c8;
  padding:7px 22px;
  box-shadow:0 3px 10px rgba(0,0,0,0.35);
  white-space:nowrap;
  z-index:5;
}
.archiv-titel span {
  font-family:'Inter', sans-serif;
  font-weight:500;
  font-size:clamp(10px, 1.3vw, 13px);
  letter-spacing:0.12em;
  color:#3a3a36;
  text-transform:uppercase;
}

/* ===== ARCHIV-POPUP: Navigationspfeile INNERHALB des Beschreibungs-Schilds ===== */
.archiv-schild {
  display:flex;
  align-items:center;
  gap:16px;
}
.archiv-nav-inline {
  border:none;
  background:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:4px;
  flex-shrink:0;
}
.archiv-nav-inline svg {
  width:24px; height:10px;
  fill:none;
  stroke:#3a3a36;
  stroke-width:5.2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

/* ===== SLIDE-ANIMATION ===== */
.slide-track.animating {
  transition:transform 0.5s cubic-bezier(0.4,0,0.2,1);
}

/* ===== BILDNUMMER ===== */
.nav-num {
  font-family:'Segoe UI', Arial, sans-serif;
  font-weight:300;
  color:rgba(255,255,255,0.75);
  letter-spacing:0.05em;
  min-width:1.8em;
  text-align:center;
  text-shadow:0 1px 4px rgba(0,0,0,0.7);
}

/* ===== SPLASH-SCREEN (Logo-Intro beim Laden) ===== */
#splashScreen {
  position:fixed;
  inset:0;
  background:#000;
  z-index:9999999;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:clamp(10px, 2.4vw, 22px);
  /* sofort sichtbar – kein JS-Warten mehr nötig */
}
#splashScreen.splash-ausblenden {
  display:none; /* sofort weg, kein Fade */
}
#splashLogo {
  height:clamp(70px, 18vw, 160px);
  width:auto;
}
.splash-title {
  font-family:'Poppins', sans-serif;
  font-size:clamp(13px, 2.8vw, 22px);
  font-weight:300;
  letter-spacing:0.1em;
  color:rgba(255,255,255,0.85);
  white-space:nowrap;
  opacity:0;
  transition:opacity 0.2s ease;
}
.splash-title.font-bereit {
  opacity:1;
}
.splash-pv {
  color:#063971;
  font-weight:400;
}

/* Ladebalken-Zeile unter dem Titel */
.splash-bar-zeile {
  display:flex;
  align-items:center;
  gap:8px;
  opacity:0;
  transition:opacity 0.2s ease;
}
.splash-bar-zeile.font-bereit {
  opacity:1;
}
.splash-bar-label {
  font-family:'Poppins', sans-serif;
  font-size:clamp(10px, 1.8vw, 14px);
  font-weight:300;
  color:rgba(255,255,255,0.45);
  white-space:nowrap;
}
.splash-bar-track {
  /* Breite wird per JS auf die Breite von .splash-title gesetzt */
  height:3px;
  background:rgba(255,255,255,0.12);
  border-radius:2px;
  overflow:hidden;
}
.splash-bar-fill {
  height:100%;
  width:0%;
  background:#063971;
  border-radius:2px;
  transition:width 0.3s ease;
}

/* ===== HEADER ===== */
#siteHeader {
  position:fixed;
  top:0; left:0;
  width:100%;
  z-index:50;
  display:flex;
   display:flex;
  align-items:flex-start;
  padding:8px 1%;
  flex-wrap:nowrap;
}
#siteHeader::before {
  content:'';
  position:absolute;
  top:0px;
  left:0;
  width:100%;
  height:100%;
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  background:rgba(0,0,0,0.20);
  z-index:-1;
}
#headerLogo {
  height:clamp(100px, 25vw, 160px);
  width:auto;
  flex-shrink:0;
  position:relative;
  z-index:999999;
}
.header-inner {
  display:flex;
  align-items:center;
  padding:0 0 0 clamp(0px, 2vw, 12px);
  min-width:0;
  margin-top:clamp(4px, 0.8vw, 8px);
}
.header-title {
  font-family:'Poppins', sans-serif;
  font-size:clamp(16px, 4.5vw, 22px);
  font-weight:300;
  letter-spacing:0.1em;
  color:rgba(255,255,255,0.85);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.header-pv {
  color:#063971;
  font-weight:400;
}

/* ===== KOMBINIERTE LEISTE: Nav-Links (Desktop) ===== */
.nav-links {
  display:flex;
  align-items:center;
  gap:clamp(10px, 2vw, 24px);
  flex:1;
}

.nav-links-left { justify-content:flex-end; padding-right:clamp(8px, 1.5vw, 16px); }
.nav-links-right { justify-content:flex-start; padding-left:clamp(8px, 1.5vw, 16px); }

.nav-link {
  font-family:'Inter', sans-serif;
  font-size:clamp(11px, 2.4vw, 20px);
  font-weight:300;
  letter-spacing:0.08em;
  color:rgba(255,255,255,0.75);
  text-decoration:none;
  transition:color 0.2s;
  white-space:nowrap;
}
.nav-link:hover { color:#fff; }
.nav-link-grau {
  color:rgba(255,255,255,0.3) !important;
  pointer-events:none;
}
.nav-lang {
  font-family:'Inter', sans-serif;
  font-size:clamp(11px, 2.4vw, 20px);
  font-weight:300;
  color:rgba(255,255,255,0.4);
  letter-spacing:0.08em;
  white-space:nowrap;
}
.nav-lang a {
  font-size:inherit;
  color:rgba(255,255,255,0.75);
  text-decoration:none;
  transition:color 0.2s;
}
.nav-lang a:hover { color:#fff; }
.lang-active {
  color:#fff !important;
  font-weight:400 !important;
}

/* Controls-Mitte (Steuerung) */
.controls-mitte {
  display:flex;
  align-items:center;
  gap:18px;
  flex-shrink:0;
}

/* Hamburger (nur Mobile) */
.hamburger {
  display:none;
  border:none;
  background:none;
  cursor:pointer;
  padding:8px;
  flex-shrink:0;
}
.hamburger svg {
  width:24px; height:18px;
  fill:none;
  stroke:rgba(255,255,255,0.75);
  stroke-width:2;
  stroke-linecap:round;
}
.hamburger:hover svg { stroke:#fff; }

/* Overlay hinter Hamburger-Menü */
.hamburger-overlay {
  position:fixed;
  inset:0;
  z-index:199;
  display:none;
  cursor:default;
}
.hamburger-overlay.offen { display:block; }

/* Hamburger-Menü (von unten) */
.hamburger-menu {
  position:fixed;
  bottom:0; left:0;
  width:100%;
  z-index:200;
  transform:translateY(100%);
  transition:transform 0.3s cubic-bezier(0.4,0,0.2,1);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  background:rgba(0,0,0,0.85);
  cursor:default;
}
.hamburger-menu.offen {
  transform:translateY(0);
}
.hamburger-menu-inhalt {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:20px;
  padding:32px 24px;
}
.hamburger-nav-link {
  font-family:'Inter', sans-serif;
  font-size:clamp(16px, 5vw, 24px);
  font-weight:300;
  letter-spacing:0.1em;
  color:rgba(255,255,255,0.85);
  text-decoration:none;
  transition:color 0.2s;
}
.hamburger-nav-link:hover { color:#fff; }
.hamburger-lang {
  font-family:'Inter', sans-serif;
  font-size:clamp(14px, 4vw, 20px);
  font-weight:300;
  color:rgba(255,255,255,0.4);
  letter-spacing:0.1em;
}
.hamburger-lang a {
  color:rgba(255,255,255,0.75);
  text-decoration:none;
}
.hamburger-lang a:hover { color:#fff; }

/* Mobile: Hamburger zeigen, Nav-Links verstecken */
@media (max-width:640px) {
  .nav-links { display:none; }
  .hamburger { display:flex; }
}