/* ─── 🟢 Farben ─────────────────────────────── */
:root {
  --accent: 170, 255, 60;          /* HAUPT ELEMENTE vorher: 180, 255, 60*/
  --link: 237, 255, 224;              /* GLOSSAR LINK */

  --aboveprimary: 125, 145, 140;   /* ÜBERTAGE (Karte), UNTERTAGE (Text). vorher: 159, 170, 162 */
  --abovesecondary: 40, 50, 50;    /* ÜBERTAGE (Lightbox) vorher: 30, 40, 40 */

  --underprimary: 60, 50, 60;      /* UNTERTAGE (Karte), ÜBERTAGE (Text) */
  --undersecondary: 45, 35, 40;    /* UNTERTAGE (Lightbox) */

  --kosmosprimary: 145, 155, 185;  /* KOSMOS (Karte) */
  --kosmossecondary: 80, 90, 115;   /* KOSMOS (Lightbox) vorher: 40, 40, 60*/

  --abstand: 1rem; /* Abstände auf der Seite */
}



/* Root-Fontsize definieren ––– Änderungen hier, übertragen sich auf alles andere */

/* authentic-sans-90.otf */
@font-face {
  font-family: 'CMM';
  src: url('CMMCodaNormalized-Proportional.woff') format('woff');
}
@font-face {
  font-family: 'CMM mono';
  src: url('CMMCodaNormalized-MonoSerif.woff') format('woff');
}


html {
  font-size: clamp(10px, 0.9vw, 16px); /* clamp beschreibt Mindest-, Optimal- und Maximal Schriftgröße */
  font-family: 'CMM', sans-serif;
  font-weight: normal;
  color: rgba(var(--accent));
  line-height: 1.5;
  width: 100vw;
  height: 100vh;
}

body {
  /* kein Text wird markiert */
  -webkit-user-select: none;  /* Chrome, Safari */
  -moz-user-select: none;     /* Firefox */
  -ms-user-select: none;      /* IE/Edge */
  user-select: none;          /* Standard */

  margin: 0;
  font-family: 'CMM', sans-serif;
  background: rgba(var(--kosmosprimary));
}

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: visible;    /* zeigt auf normalen Geräten richtig an */
  /* overflow: auto;       /* zeigt auf Tablet richtig an >> wichtig für Dragfunktion + Skalierung */
}

main {
  transform-origin: center center;
  transition: transform 0.1s ease;
  overflow: visible;
  cursor: grab;

  position: relative;
  width: 250vw;
  height: 250vh;
  transform-origin: center center;
  overflow: hidden;
}

.visible {
  display: block;
}

/* ─── 🟢 Typografie ─────────────────────────────── */ 

strong {
  font-weight: normal;
  letter-spacing: 0.05rem;
  -webkit-text-stroke-width: 0.085rem;
  color: rgba(var(--accent));
  padding-right: 1em;
}
.essay-fn strong {
  font-weight: normal;
  letter-spacing: 0.05rem;
  -webkit-text-stroke-width: 0.08rem;
  color: rgba(var(--accent));
  padding-right: 1em;
}
em {
  font-style: normal;
  font-family: 'CMM';
  letter-spacing: 0.05rem;
  -webkit-text-stroke-width: 0.085rem;
}
.essay-bib em, .essay-fn em {
  font-style: normal;
  font-family: 'CMM';
  letter-spacing: 0.05rem;
  -webkit-text-stroke-width: 0.08rem;
}




/* ─── 🟢 Scroll Indicator ─────────────────────────────── */

.linie {
  position: fixed;
  background-color: rgba(var(--accent)) !important;
  z-index: 100;
}
.oben {top: 10px; left: 20px; height: 0.075rem; width: calc(100% - 40px);background-color: rgba(var(--accent))}
.unten {bottom: 10px; left: 20px; height: 0.075rem; width: calc(100% - 40px);background-color: rgba(var(--accent))}
.links {left: 10px; top: 20px; width: 0.075rem; height: calc(100% - 40px);background-color: rgba(var(--accent))}
.rechts {right: 10px; top: 20px; width: 0.075rem; height: calc(100% - 40px);background-color: rgba(var(--accent))}

.scroll-marker {
  will-change: top, left;   /* hilft dem Browser, sich auf Animationen vorzubereiten */
  position: fixed;
  background-color: rgba(var(--accent)) !important;
  z-index: 50;
  pointer-events: none;
}

/* Oben & Unten: vertikale Marker */
.top, .bottom {
  width: 0.075rem;
  height: 30px;
}
.top {top: 0;}
.bottom {bottom: 0;}

/* Links & Rechts: horizontale Marker */
.left, .right {
  width: 30px;
  height: 0.075rem;
}
.left {left: 0;}
.right {right: 0;}



/* Linien innerhalb der Lightbox für Karten */
.lb-item.is-map .linie {
  position: absolute;
  background-color: rgba(var(--accent)) !important;
  z-index: 50;
}
.lb-item.is-map .linie.top {
  top: calc(10% - 10px);
  left: 10px;
  right: 10px;
  height: 1px;
  width: calc(100% - 20px);
}
.lb-item.is-map .linie.bottom {
  bottom: calc(10% - 10px);
  left: 10px;
  right: 10px;
  height: 1px;
  width: calc(100% - 20px);
}
.lb-item.is-map .linie.left {
  top: 10%;
  bottom: 10%;
  left: 0px;
  width: 1px;
  height: 80%;
}
.lb-item.is-map .linie.right {
  top: 10%;
  bottom: 10%;
  right: 0px;
  width: 1px;
  height: 80%;
}
/* Scrollmarker innerhalb der Map */
.lb-item.is-map .scroll-marker {
  position: absolute;
  background-color: rgba(var(--accent)) !important;
  z-index: 100;
  pointer-events: none;
  width: 10px;
  height: 10px;
}
/* Oben & Unten: vertikal bewegliche Marker */
.lb-item.is-map .scroll-marker.top {
  width: 1px;
  height: 30px;
  top: calc(10% - 10px);
}
.lb-item.is-map .scroll-marker.bottom {
  width: 1px;
  height: 30px;
  bottom: calc(10% - 10px);
}
/* Links & Rechts: horizontal bewegliche Marker */
.lb-item.is-map .scroll-marker.left,
.lb-item.is-map .scroll-marker.right {
  width: 30px;
  height: 1px;
}





/* ─── 🟢 Ebenen ─────────────────────────────── */
.layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;   /* vorher: vw */
  height: 100%;  /* vorher: vw */
  pointer-events: none;
  transition: all 0.3s ease;
}

/* ─── Content Blocks ─────────────────────────────── */
.content-block {
  position: absolute;
  width: 15rem;
  height: auto;
  display: inline-flex; /* passt sich automatisch der Größe des Inhalts an */
  cursor: pointer;
  pointer-events: auto;
  white-space: pre-line;
  transition: transform 0.3s, opacity 0.3s;
}
.content-block {
  opacity: 0;
  transition: opacity 0.8s ease;
}
.content-block.visible {
  opacity: 1;
}

.preview-image img{
  width: 100px;
}

/* ─── Preview Kopf ─────────────────────────────── */

.preview-table {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
  color: rgba(var(--accent));
  background: none;
  line-height: 1.2;
}
.preview-table:hover {
  background: rgba(var(--kosmossecondary));
}
.preview-table td {
  vertical-align: top; 
  padding: 2px 4px;
}
.table-title {
  border-top: 0.075rem solid rgba(var(--accent));
  border-left: 0.075rem solid rgba(var(--accent));
  border-right: 0.075rem solid rgba(var(--accent));
  border-bottom: none;
}
.table-space {
  border: none;
}
.table-zeit-geo {
  border-top: none;
  border-left: 0.075rem solid rgba(var(--accent));
  border-right: 0.075rem solid rgba(var(--accent));
  border-bottom: 0.075rem solid rgba(var(--accent));
}

.table-zeit-geo td {
  vertical-align: top;
  padding: 2px 4px;
}

.table-zeit,
.table-geo {
  vertical-align: top;
}

.table-zeit {
  text-align: left;
  white-space: normal;   /* erlaubt Zeilenumbruch bei langen Texten */
}

.table-geo {
  text-align: right;
  white-space: normal;  
  word-break: break-word; /* bricht lange Zahlenketten */
}




/* ─── Globale Zeit-Icons ─────────────────────────────── */
.zeit-icon {
  position: absolute;
  width: 25px;         
  height: 25px;
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none; 
  z-index: 25;
  display: block;
  margin: 0 auto;           /* Icon zentriert in der Zelle */
}

/* ─── Positionierung am Rand des Blocks  */
.zeit-icon.top-right {
  top: 0;
  right: 0;
}
.zeit-icon.top-left {
  top: 0;
  left: 0;
}
.zeit-icon.bottom-right {
  bottom: 0;
  right: 0;
}
.zeit-icon.bottom-left {
  bottom: 0;
  left: 0;
}



/* ─── 🟢 Referenz ─────────────────────────────── */

#layer-referenz {
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 80;
}
.meta-floating {
  position: absolute;
  font-size: 0.75em;
  max-width: 200px;
  white-space: pre-line;
  pointer-events: none;
  z-index: 70;
  background: rgba(var(--accent), 0.9);
  color: rgba(var(--link));
}
svg line {
  stroke: rgba(var(--accent), 0.7);
  stroke-width: 2;
  opacity: 0.6;
}





/* ─── 🟢 Buttons ─────────────────────────────── */

.ui-home button,
.ui-layer button,
.ui-nukleus button,
.ui-referenz button {
  background: none;
  border: none;
  color: rgba(var(--accent));
  cursor: pointer;
  transition: color 0.2s;
  position: relative;
  display: inline-block; 
  padding: 20px; /* 20px rundum */

  font-size: 1.75em;
  font-family: 'CMM mono', sans-serif;
  text-transform: uppercase;
}

/* Unterstreichung */
.ui-home button::after,
.ui-layer button::after,
.ui-nukleus button::after,
.ui-referenz button::after {
  content: "";
  position: absolute;
  left: 20px;                 /* padding links berücksichtigen */
  bottom: 10px;                /* Abstand zum Text, z.B. 4px */
  width: calc(100% - 40px);   /* Buttonbreite minus padding links + rechts */
  height: 0.075rem;
  background: currentColor;
  opacity: 0;                  /* Linie unsichtbar */
  transition: opacity 0.2s ease;
}

.ui-referenz button::after {
  bottom: 45px; 
}

.ui-home button:hover::after,
.ui-layer button:hover::after,
.ui-nukleus button:hover::after,
.ui-referenz button:hover::after,
.ui-home button.active::after,
.ui-layer button.active::after,
.ui-nukleus button.active::after,
.ui-referenz button.active::after  {
  opacity: 1;
}




/* Unterstreichung für Nuklei*/

.nukleus-list-item::after,
.ui-nukleus #nukleus-options button::after {
  content: "";
  position: absolute;
  left: 0;                      
  bottom: -10px;                
  width: 100%;     
  height: 0.075rem;
  background: currentColor;
  opacity: 0;                  /* Linie unsichtbar */
  transition: opacity 0.2s ease;
}

.nukleus-list-item:hover::after,
.ui-nukleus #nukleus-options button:hover::after,
.nukleus-list-item.active::after,
.ui-nukleus #nukleus-options button.active::after {
  opacity: 1;                  /* Linie erscheint */
}


/* Hauptbutton unterstreichen, wenn ein Nukleus aktiv ist */
.ui-nukleus.has-active-nukleus #nukleus-main::after {
  content: "";
  position: absolute;
  left: 20px;
  bottom: 10px;
  width: calc(100% - 40px);
  height: 0.075rem;
  background: currentColor;
  opacity: 1; /* sichtbar */
  transition: opacity 0.2s ease;
}








/* ─── 📍 Allgemeine UI-Container-Positionierung ─────────────── */
.ui-home,
.ui-layer,
.ui-nukleus,
.ui-referenz,
.nukleus {
  position: fixed;
  z-index: 60;
}

/* ─── 🔵 Einzelpositionen ─────────────────────────────── */

.ui-uebertage {
  top: 35%;  /* war vorher: 35vh */
  left: 12%;
  transform: translateX(-50%);
}
.ui-untertage {
  bottom: 35%;  /* war vorher: 35vh */
  left: 12%;
  transform: translateX(-50%);
}
.ui-kosmos {
  top: 50%;
  left: 2%;
  transform: translateY(-50%);
}

.ui-nukleus {
  top: 0;
  right: 0;
}
.ui-referenz {
  bottom: 0;
  right: 0;
}
.ui-home {
  top: 0;
  left: 0;
}

.close-button {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 60;
  background: none;
  border: none;
  color: rgba(var(--accent));
  padding: 20px;
  cursor: pointer;
}

/* Nukleus-Menü (rechte Mitte) */
.nukleus {
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  padding: 0;
}

/* Filter-Optionen im Nukleus-Menü */
#nukleus-options {
  display: flex;
  flex-direction: column-reverse;
  flex-wrap: wrap;
  gap: 0.5em;
  padding: 20px;

  align-items: flex-end; /* horizontale Ausrichtung rechts */
  justify-content: flex-start; /* optional, falls Startpunkt oben */
}
#nukleus-options.collapsed {
  display: none;
}
.ui-nukleus #nukleus-options button {
  padding: 0;
  margin-bottom: 12px;  /* Abstand der Buttuns */
}




/* ─── Control Buttons ─────────────────────────────── */
/* ─── Gemeinsames Control-Panel ───────────────── */
.controls-bottom {
  position: fixed;
  bottom: 15px;
  left: 15px;
  display: flex;
  align-items: center;   /* vertikal zentriert */
  gap: 50px;             /* Abstand zwischen Audio- und Zoom-Steuerung */
  z-index: 20;
  flex-wrap: nowrap;     /* alles in einer Reihe */
}

/* ─── Audio Controls ────────────────────────────── */
#audio-controls,
.zoom-controls {
  display: flex;
  align-items: center;   /* vertikal ausrichten */
  gap: 10px;
}

/* ─── Buttons vereinheitlichen ─────────────────── */
#audio-controls button,
.zoom-controls button {
  display: inline-flex;      /* Flex für Vertikale Zentrierung */
  align-items: center;
  justify-content: center;   /* Text mittig */
  height: 25px;
  padding: 0 6px;            /* horizontaler Abstand */
  border: none;
  border-radius: 0;          
  background-color: transparent;
  color: rgba(var(--accent));
  cursor: pointer;
  line-height: 1;             /* verhindert vertikale Verschiebung */
}

/* Volume Slider */
#volume-slider {
  width: 100px;
  accent-color: rgba(var(--accent));
  vertical-align: middle; /* mit Buttons ausrichten */
}
input[type=range] {
  appearance: none;
  width: 100%;
  height: 0.075rem;
  background-color: rgba(var(--accent));
}
input[type=range]:focus {
  outline: none;
}
input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  background-color: rgba(var(--accent));
  width: 10px;
  height: 10px;
  border-radius: 50%;
  cursor: pointer;
}
input[type=range]::-moz-range-thumb {
  background-color: rgba(var(--accent));
  border: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  cursor: pointer;
}


/* Zoom Controls */
.zoom-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.75em;
  font-family: 'CMM mono', sans-serif;
  text-transform: uppercase;
}
#zoom-in, #zoom-out {
  padding-top: 2px;
  padding-bottom: 0;
  font-size: 1.75rem;
  font-family: 'CMM mono', sans-serif;
  text-transform: uppercase;
}
 #mute-button {
  padding-top: 2px;
  padding-bottom: 0;
  font-size: 1.75rem;
  font-family: 'CMM mono', sans-serif;
  text-transform: uppercase;
}


/* ─── Sprachauswahl  */

.controls-bottom .lang-switcher {
  display: flex;
  align-items: center;
  gap: 10px;
}

.controls-bottom .lang-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 25px;
  padding: 0 6px;
  border: none;               /* Standard: kein Border */
  border-radius: 0;           /* Eckig */
  background-color: transparent;
  color: rgba(var(--accent));
  cursor: pointer;
  font-family: 'CMM mono', sans-serif;
  text-transform: uppercase;
  transition: background-color 0.2s, transform 0.1s;
  text-decoration: none;
}

.controls-bottom .lang-switcher a:hover,
.controls-bottom .lang-switcher a:active {
  background-color: rgba(var(--accent), 0.15);
  transform: scale(1.05);
}




/* ─── Sprachbuttons wie UI-Buttons ───────────────────────────── */
.intro-step .lang-switcher a {
  background: none;
  border: none;
  color: rgba(var(--accent));
  cursor: pointer;
  transition: color 0.2s, transform 0.1s;
  position: relative;
  display: inline-block; 
  padding: 20px;              /* wie UI-Buttons */
  font-size: 1.75em;          /* wie UI-Buttons */
  font-family: 'CMM mono', sans-serif;
  text-transform: uppercase;
  text-decoration: none;
}

/* Unterstreichung wie bei UI-Buttons */
.intro-step .lang-switcher a::after {
  content: "";
  position: absolute;
  left: 20px;                  /* padding berücksichtigen */
  bottom: 10px;                /* Abstand zum Text */
  width: calc(100% - 40px);    /* Breite minus padding */
  height: 0.075rem;
  background: currentColor;
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* Hover- und aktive Zustände */
.intro-step .lang-switcher a:hover::after,
.intro-step .lang-switcher a:active::after,
.intro-step .lang-switcher a.active::after {
  opacity: 1;
}

/* Optional: kleine Hover-Skalierung wie bisher */
.intro-step .lang-switcher a:hover,
.intro-step .lang-switcher a:active {
  transform: scale(1.05);
}



/* ─── 🟢 Lightbox Home + Intro ─────────────────────────────── */

#lightbox-intro {
  display: flex !important; 
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  z-index: 61;
  margin: 10px;
}

#lightbox-content-inner, 
#lightbox-home-inner, 
#lightbox-intro-inner {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  pointer-events: all;
  color: rgba(var(--accent));
}

#lightbox-home-inner .lb-col-center,
#lightbox-intro-inner .lb-col-center {
  background-color: rgba(var(--kosmossecondary));
  display: flex;
  flex-direction: column;
  flex: 7;
  gap: 5px;
  position: relative;
}

#lightbox-home .lightbox-body,
#lightbox-intro .lightbox-body {
  position: fixed;
  overflow: hidden;
  width: 100%;
}
#lightbox-home .lightbox-body .lb-col-center,
#lightbox-intro .lightbox-body .lb-col-center {
  overflow-y: auto;
  border: 1px solid rgba(var(--accent));
  box-sizing: border-box;
}
#lightbox-intro .lightbox-body .lb-col-center {
  align-items: center;
  justify-content: center;
}
#lightbox-home .lightbox-body .lb-col-center {
  align-items: start;
  justify-content: start;
}
#lightbox-home .lightbox-body .lb-col-center .close-button,
#lightbox-intro .lightbox-body .lb-col-center .close-button {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 60;
  background: none;
  border: none;
  color: rgba(var(--accent));
  padding: 10px 10px; /* kleiner als vorher, optional */
  cursor: pointer;
  font-family: 'CMM mono', sans-serif;
  text-transform: uppercase;
}



.lightbox-home-text {
  padding: 10px;
  width: calc(100% - 20px);
}
.lightbox-intro-text {
  padding: 0 10%;
}
#lightbox-home-inner h1,
#lightbox-intro-inner h1 {
  text-indent: 0;
  padding-left: 0;
  text-align: center;

  font-size: 1.75em;
  font-family: 'CMM mono', sans-serif;
  text-transform: uppercase;

  /* -webkit-text-stroke-width: 0.1rem;
  letter-spacing: 0.015em; */
}
.lightbox-intro-text h1 {
  margin-top: 0;
  margin-bottom: 2.5rem;
}


/* Team Tabelle */
.team-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2.5em;
  vertical-align: top;
}
.team-table td {
  vertical-align: top;
}
.team-table td p {
  text-indent: 0;
  vertical-align: top;
}
.team-table .link a { 
  color: rgba(var(--link)); 
  text-decoration: none; 
}
.team-table .link a:hover { 
  text-decoration: underline; 
}

tbody tr:first-child > td.name,
tbody tr:nth-child(2) > td.position {
  width: 50%;
  padding-bottom: 1rem;
}
tbody tr:first-child > td.link,
tbody tr:nth-child(2) > td.schwerpunkt {
  width: 50%;
}
.beschreibung {
  padding-top: 1rem;
}



/* Logos */
.logos-section {
  text-align: center;
}
.logos-section h1 {
  margin-bottom: 2.5em;
  -webkit-text-stroke-width: 0.085rem;
  letter-spacing: 0.015em;
}
.logos {
  margin: 5em 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 50px;
}
.logos img {
  max-height: 60px;
  object-fit: contain;
  max-width: 30%;
}
#logo-3 {
  max-width: 60%;
}
#logo-1 {
  max-width: 40%;
  max-height: 75px;
}



/* ─── 🟢 Lightbox Intro ─────────────────────────────── */

.intro-step {
  text-align: center; 
  width: 100%;
}
#intro-step-text p {
  text-align: center; 
}

/* Eingeblendet */
#lightbox-intro.visible {
  opacity: 1;
  visibility: visible;
}

/* Ausblenden */
#lightbox-intro.fade-out {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-intro-text p {
  text-indent: 0;
}

.word {
  opacity: 0;
  display: inline-block;
  transition: opacity 0.5s ease-in;
}
.word.visible {
  opacity: 1;
}
.enter {
  cursor: pointer;
  font-size: 1.75em;
  font-family: 'CMM mono', sans-serif;
  text-transform: uppercase;
  margin-top: 1.5em;
}






/* ----------------- Content ----------------- */

.lightbox-modules {
  overflow-y: hidden;
  height: 100%;
}




/* ─── 🟢 Lightbox Content + Home ─────────────────────────────── */
/* 251015 */

.lightbox {
  display: none;        /* standardmäßig verstecken */
  flex-direction: column;
  position: fixed;
  top: 10px; 
  left: 10px;
  width: calc(100vw - 20px);
  height: calc(100vh - 20px);
  z-index: 61;
  overflow: hidden;
  justify-content: center;
  background-color: transparent;

  font-family: 'CMM', sans-serif;
  line-height: 1.5;
  border-radius: 2px;
}

/* Landscape-only */
@media (orientation: portrait) {
  .lightbox {
    display: none;
  }
}




/* ─── 🟢 Lightbox Bereiche ─────────────────────────────── */
.lightbox-header, .lightbox-footer {
  display: flex;
  position: fixed;  
  left: 10px;
  right: 10px;
  z-index: 39;    /* über Body-Inhalt */
  gap: 10px; 
  height: calc(2.75rem + 10px);
  font-family: 'CMM mono', sans-serif;
  text-transform: uppercase;
}
.lightbox-header {
  top: 10px;
  align-items: start; /* sorgt dafür, dass alle Grid-Elemente oben ausgerichtet sind */ 
  padding: 10px 10px 0 10px; 
}
.lightbox-body {
  display: flex;
  gap: 10px;
  align-items: stretch;
  flex: 1;
  height: calc(100% - 5.5rem - 40px); /* war vorher: 100vh */
  overflow-y: auto; /* ← hier das Scrollen */
  scroll-snap-type: y mandatory; 
  scroll-behavior: smooth;
  scroll-snap-align: center;
  padding: 0 10px;
  top: calc(2.75rem + 20px);
  position: relative;
}
.lb-texte {
  position: absolute;
  top: 25%;
  height: calc(100% - 5.5rem - 40px);
  width: 100%;
  display: flex;
  pointer-events: none; /* optional, wenn Texte "durchklickbar" sein sollen */
}
.lightbox-footer {
  bottom: 10px;
  align-items: end; /* 🔹 sorgt dafür, dass alle Grid-Elemente oben ausgerichtet sind */ 
  padding: 0 10px 10px 10px; 
}




/* ─── Lightbox Header ─────────────────────────────── */
.lightbox-footer {
  height: calc(2.5em + 10px); /* 10px unten + Textzeile */
}
.lb-back-button {
  display: flex;
  flex: 5;
  align-items: left;
  justify-content: flex-start;
  background: none;
  border: none;
  color: rgba(var(--accent));
  cursor: pointer;
  transition: color 0.2s, transform 0.1s;
  position: relative;
  /* display: inline-flex; */
  text-decoration: none;
}
/* Text separat behandeln */
.lb-back-button span {
  position: relative;
  display: inline-block;
}
/* Unterstreichung */
.lb-back-button span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 0.075rem;
  background: currentColor;
  opacity: 0;
  transition: opacity 0.2s ease;
}
/* Hover-Effekt */
.lb-back-button:hover span::after {
  opacity: 1;
}

.lb-title {
  display: flex;
  flex: 13;
  text-align: left;
  border-top: 0.075rem solid;
  border-left: 0.075rem solid;
  border-right: 0.075rem solid;
  height: calc(2.5em + 10px);
  align-items: flex-start;
  padding-left: 5px;
  padding-top: 3px;
}


/* ─── Lightbox Footer ─────────────────────────────── */

/* Footer-Gruppen in die richtigen Spalten setzen */
.footer-join-1 {
  display: flex;
  flex: 5;
  /*grid-template-columns: 2fr 3fr; /* zeit (1), georef (2) */
  border-bottom: 0.075rem solid;
  border-left: 0.075rem solid;
  border-right: 0.075rem solid;
  align-items: flex-end;
  height: calc(2.5em + 10px);
}

.footer-join-2 {
  display: flex;
  flex: 13;
  /*grid-template-columns: 11fr 2fr; /* copyright (3), year (4) */
  border-bottom: 0.075rem solid;
  border-left: 0.075rem solid;
  border-right: 0.075rem solid;
  align-items: flex-end;
  height: calc(2.5em + 10px);
}
.footer-join-3 {
  display: flex;
  flex: 5; 
}
.lb-footer-georeference,
.lb-footer-year {
  text-align: right;
  padding-right: 5px;
  padding-bottom: 2px;
  display: flex;
}
.lb-footer-zeit,
.lb-footer-copyright {
  text-align: left;
  padding-left: 5px;
  padding-bottom: 2px;
  display: flex;
}
.lb-footer-zeit {
  flex: 2;
}
.lb-footer-copyright {
  flex: 10;
}




/* ─── Lightbox Body ─────────────────────────────── */

/* Rasterbreiten */
.lb-col-left, .lb-col-right {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: visible; /* keine eigenen Scrollbars */
  padding-bottom: 10px;
  flex: 5; 
  height: 100%; 
}

/* gleiche Proportionen wie 5fr 13fr 5fr */
.lb-col-center { 
  flex: 13; 
  display: flex;
  flex-direction: column;
  overflow-y: visible;
  overflow-x: visible;
  scroll-snap-type: y mandatory; /* Scroll Snap für Items */
  scroll-behavior: smooth;
  align-items: center;            /* Zentrierung horizontal */
  height: 100%; 
  padding: 0;
}
.lb-col-center .lb-item {
  scroll-snap-align: center;
  flex-shrink: 0;
  min-height: 50%;
  display: flex;
  width: 100%;
  height: 80%;
  top: 10%;
  margin-bottom: 50%;
}
.lb-col-center .lb-item:not(.is-imagegroup) {
  justify-content: center;
  align-items: center; 
}


/* Scrollbereiche */
.lb-col-left,
.lb-col-right {
  overflow-y: visible;        /* keine eigene Scrollbar */
  pointer-events: none;       /* Scroll-Ereignisse NICHT abfangen */
}
.lb-col-left > *,
.lb-col-right > * {
  pointer-events: auto;       /* Inhalte weiterhin klickbar */
}

/* Alle Bilder */
.lb-item img{
border-radius: 2px;
}

/* Alle Bilder außer Karten und Panorama */
.lb-item:not(.is-map) img, .lb-item:not(.is-panorama) img {
  max-width: 100%;
  max-height: 100%;  /* war vorher: 80vh */
  object-fit: contain;
}

.lb-col-left .item-description,
.lb-col-right .lb-nukleus-text {
  position: static;
  transform: none;
  width: inherit;
  color: rgba(var(--accent));
  overflow-y: auto;
  /*margin-top: 120%; */
  height: 50%;
  max-height: 50%;
  padding: 5px 10px;
  pointer-events: auto;
}

.nukleus-text {
  display: none;
}

.lb-counter {
position: absolute;
  top: 25%;
  right: 10px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 9999;
  height: 50%;
}
.lb-counter .dot {
  width: 1px;
  height: 80px;
  background: rgba(var(--accent), 0.2);
  transition: background 0.3s;
}
.lb-counter .dot.active {
  background: rgba(var(--accent), 1);
}





/* ─── 🟢 Lightbox: Nukleus ─────────────────────────────── */
.lightbox-nukleus {
  position: absolute;
  width: 25%;   /* vorher: vw */
  top: 20px;   
  right: 20px;
}
.lb-nukleus-list {
  display: flex;
  flex: 5;
  flex-direction: column-reverse; /* gleiche Reihenfolge wie #nukleus-options */
  gap: 0.5em;                     /* Abstand zwischen Buttons */
  justify-content: flex-end;
  flex-wrap: wrap;
  align-items: flex-end;         /* horizontale Ausrichtung links */
  text-align: right;                /* optional für Text */
  
}
.nukleus-list-item {
  background: none;
  border: none;
  color: rgba(var(--accent));
  cursor: pointer;
  transition: color 0.2s;
  position: relative;
  display: inline-block; 
  margin-bottom: 10px;

  font-family: 'CMM mono', sans-serif;
  text-transform: uppercase;
  font-size: inherit;
}


.lb-nukleus-text {
  color: rgba(var(--accent));
}


/* ─── 🟢 Lightbox: Glossar ─────────────────────────────── */
.glossar-popup {
  position: absolute;
  background: rgba(var(--accent));
  border: 0.075rem solid rgba(var(--accent));
  padding: 5px;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
  z-index: 38;
  width: auto;
  max-width: 300px;
  height: auto;
  pointer-events: none; /* stört Hover nicht */
}
.glossar-term {
  color: rgba(var(--link));
}





/* ─── 🟢 Lightbox: Module ─────────────────────────────── */

/*  Modulbasis  */
.lb-item {
  position: relative;
}


/* ─── Lightbox: Bildgruppe ─────────────────────────────── */
/* Container: 13 Spalten, 5px Abstand */
.is-imagegroup {
  position: inherit;
  width: 100%;
  height: calc(100% - 20px) !important;
  margin-top: 10px;
  margin-bottom: 10px;
}

.imagegroup-container {
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  gap: 5px;
  width: 100%;
  align-items: start;
  justify-items: center;
  grid-auto-rows: auto; /* Wichtig: Zeilenhöhe passt sich Bildhöhe an */
  overflow-y: scroll;
}

.imagegroup-image {
  opacity: 0;
  transition: opacity 3s ease;
  will-change: opacity;
  display: none;
  width: 100%;
  height: auto;
}

.imagegroup-image.active{
  display: block;       /* sichtbar machen */
  opacity: 1;
}

.imagegroup-image img {
  width: 100%;
  height: auto;
  display: block;
}




/* ─── 🟢 Lightbox: Vimeo Video ─────────────────────────────── */

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Verhältnis */
}
.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}




/* ─── 🟢 Lightbox: Slider ─────────────────────────────── */


.swiper-wrapper-shell {
  width: 100%;
  max-width: 100%;
  overflow: hidden;      /* verhindert Observer-Endlos-Resize */
  display: block;
}

.mySwiper {
  width: 100% !important;
  max-width: 100% !important;
}

.mySwiper .swiper-wrapper,
.mySwiper .swiper-slide {
  width: 100% !important;
  max-width: 100% !important;
}


.swiper {
  position: relative;
  aspect-ratio: 3 / 2; /* 2400 : 1600 Verhältnis */
  width: 100%;          /* vorher: vw */
  /* max-width: 1200px;    /* begrenzt die Größe auf große Screens */
  margin: 0 auto;       /* zentriert horizontal */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 1px;
}

.lb-item .swiper {
  position: relative;
}

/* ─── Swiper Wrapper ─── */
.swiper-wrapper {
  display: flex;
}

/* ─── Swiper Slides ─── */
.swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── Bilder ─── */
.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* füllt die Fläche, ohne das Seitenverhältnis zu brechen */
  object-position: center;
  display: block;
}
.swiper-slide img {
  opacity: 0;
  transition: opacity 0.4s ease;
}
.swiper-slide img.loaded {
  opacity: 1;
}
#lb-footer-year,
#lb-footer-copyright,
#lb-footer-zeit,
#lb-footer-georeference,
#lb-title,
.item-description {
  transition: opacity 0.25s ease;
}


/* ─── Pagination (Bullets) ─── */
.mySwiper .swiper-pagination {
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
  height: 0.075rem;       /* Höhe der Balken */
  display: flex;     /* Flex für gleichmäßige Verteilung */
  padding: 0;
  margin: 0;
  background: transparent;
}
.mySwiper .swiper-pagination-bullet {
  flex: 1 1 auto;     /* alle Bullets gleich breit */
  margin: 0;           /* kein Gap */
  background: rgba(var(--accent));
  height: 100%;
  border-radius: 0;    /* eckig */
  transition: background 0.3s;
}
.mySwiper .swiper-pagination-bullet-active {
  background: rgba(var(--accent));    /* aktive Slide hervorheben */
}





/* ─── 🟢 Lightbox: Link ─────────────────────────────── */
.lb-item.is-link {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.link-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
}
.link-iframe {
  width: 100%;
  border: none;
}




/* ─── 🟢 Lightbox: PDF ─────────────────────────────── */
.pdf-preview-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.pdf-preview-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}




/* ─── 🟢 Lightbox: Map  ─────────────────────────────── */

.lb-item.is-map {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.map-wrapper {
  width: 100%;
  height: 80%;
  cursor: grab;
  overflow: hidden;
  position: relative;
    background-color: rgba(var(--accent), 0.2);

  margin: 10px;

}

.draggable-map {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: top left;
  user-select: none;
  touch-action: none;
  
  opacity: 0; /* fadein js */
  transition: opacity 2s ease;
}

/* Nur Karten-Bilder */
.lb-item.is-map img {
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  object-fit: none;
  position: absolute;
  top: 0;
  left: 0;
  user-select: none;
  touch-action: none;
  cursor: grab; /* optional: zeigt Draggable an */
}



/* ─── 🟢 Lightbox: Panorama ─────────────────────────────── */
.lb-item.is-panorama {
  width: 100%;
  height: 100%; 
  position: relative;
  overflow: hidden;
}

.panorama-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.draggable-panorama {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;   /* volle Höhe des Containers */
  width: auto;    /* Breite proportional */
  transform-origin: top left;
  transition: transform 0.1s linear; /* sanftes Scrollen */
  user-select: none;
  touch-action: none;
}

.lb-item.is-panorama img {
  width: auto;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: fill;
  position: absolute;
  top: 0;
  left: 0;
  user-select: none;
  touch-action: none;
}

.panorama-slider {
  position: absolute;
  bottom: 10px;
  left: 10px;
  width: calc(100% - 20px) !important;
  z-index: 15;
}








/* ─── 🟢 Lightbox: Audio ─────────────────────────────── */
.lb-hidden-audio {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  pointer-events: none !important;
}

.audio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 20;
}
.audio-play-btn {
    display: flex; /* wichtig für Zentrierung */
    justify-content: center;
    align-items: center;
    
    padding: 0;
    color: rgba(var(--accent));
    background: rgba(var(--accent), 0);
    border: 0.075rem solid rgba(var(--accent));
    cursor: pointer;
    transition: background 0.3s;

    width: 100px;
    height: 100px;
    border-radius: 50%;

    /* Animation: pulsieren */
    animation: pulse 5s infinite;
    opacity: 0; /* initial unsichtbar */
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
}
/* Fade-In/Out über Klasse */
.audio-play-btn.visible {
    opacity: 1;
}
.audio-play-btn.hidden {
    opacity: 0;
}
.audio-play-btn:hover {
    background: rgba(var(--accent), 0.2); /* darken für RGBA */
}



/* ─── 🟢 Lightbox: Essay ─────────────────────────────── */

.is-essay {
  width: 100%;
  padding: 2em 0;           /* prüfen */
}



/* Sanfter Übergang */
.lb-item.is-essay .essay-main,
.lb-item.is-essay .essay-fn {
  transition: background-color 0.6s ease;
}

.lb-item.is-essay .essay-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;        /* Höhe festlegen */
  max-height: 100%;    /* oder vh: z.B. 80vh */
  overflow: hidden;    /* verhindert, dass Inhalt rausfällt */
  box-sizing: border-box;
  padding: 1em 0;           /* prüfen */
}

.lb-item.is-essay .essay-body {
  display: grid;
  grid-template-columns: 9fr 4fr; /* fix: Spalte bleibt auch leer sichtbar */
  gap: 1px;
  flex: 1;
  height: 100%;
  overflow: hidden;
  border-radius: 1px;
}

.lb-item.is-essay .essay-fn {
  overflow-y: auto;
  max-height: 100%;
  padding: 15px;
  font-size: 0.8em;
}

.lb-item.is-essay .essay-content {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  max-height: 100%;
}

.lb-item.is-essay .essay-main {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 15px;
  font-size: 1.15em;
  line-height: 1.6;
  letter-spacing: -0.01em;
}


.lb-item.is-essay .essay-main,
.lb-item.is-essay .essay-fn {
  transition: background-color 0.3s ease;
  scroll-behavior: smooth;
}
.essay-main, .essay-fn {
  transition: background-color 0.3s ease;  /* Farbe der Ebene */
}



.lb-item.is-essay .essay-main h1, h1 {
  font-size: inherit;
  font-weight: inherit;
  text-align: left;
  margin-top: 5em;
  margin-bottom: 5em;
  padding-left: 5em;
  letter-spacing: 0.05rem;
  -webkit-text-stroke-width: 0.085rem;
}
.lb-item.is-essay .essay-main h2, h2 {
  font-size: inherit;
  font-weight: inherit;
  text-align: left;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  padding-left: 5em;
  /* -webkit-text-stroke-width: 0.085rem;
  letter-spacing: 0.015em; */
}


.lb-item.is-essay .essay-main p, .nukleus-text p, p {
  text-indent: 5em;
  margin: 0;
}
/* kein Einzug beim ersten Absatz oder nach Überschriften */
.lb-item.is-essay .essay-main p:first-of-type,
.lb-item.is-essay .essay-main h1 + p, 
h1 + p,
.nukleus-text p:first-child,
.lb-item.is-essay .essay-main h2 + p, 
h2 + p {
  text-indent: 0;
}


.footnote-ref {
  text-decoration: none;
  color: rgba(var(--accent));
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  letter-spacing: 0.05rem;
  -webkit-text-stroke-width: 0.1rem;
  font-size: 0.8em;;
}
.lb-item.is-essay .essay-main ul,
.lb-item.is-essay .essay-main ol {
  padding-left: 5em;
}

.lb-item.is-essay .essay-bib ul,
.lb-item.is-essay .essay-fn ul {
  list-style: none;
  margin: 0;
  padding: 0;
  padding-top: 5px;
}
.lb-item.is-essay .essay-bib ul {
  border-top: 0.075rem solid;
}
.lb-item.is-essay .essay-bib li,
.lb-item.is-essay .essay-fn li {
  margin-bottom: 0.75em;
}
.lb-item.is-essay .essay-bib li {
  text-indent: -1.5rem;
  padding-left: 1.5rem;
}

/* ─── Essay Scrollbars ─────────────────────────────── */
.essay-main,
.essay-fn {
  overflow-y: scroll;
  scrollbar-width: thin;                  /* Für Firefox */
  scrollbar-color: rgba(var(--accent), 0.7) rgba(var(--accent), 0.1);
  scroll-behavior: smooth;
}
.essay-main::-webkit-scrollbar,
.essay-fn::-webkit-scrollbar {
  width: 8px;
}
.essay-main::-webkit-scrollbar-track,
.essay-fn::-webkit-scrollbar-track {
  background: rgba(var(--accent), 0.1);   /* Hintergrund der Spur */
  border-radius: 8px;
}
.essay-main::-webkit-scrollbar-thumb,
.essay-fn::-webkit-scrollbar-thumb {
  background-color: rgba(var(--accent), 0.5); /* Farbe des Scroll-Balkens */
  border-radius: 8px;
  transition: background-color 0.3s ease;
}
.essay-main::-webkit-scrollbar-thumb:hover,
.essay-fn::-webkit-scrollbar-thumb:hover {
  background-color: rgba(var(--accent), 1); /* kräftiger beim Hover */
}

/* Firefox */
.essay-main,
.essay-fn {
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--accent), 1);
}



/* Mobile: Spalten untereinander */
@media (max-width: 900px) {
  .lb-item.is-essay .essay-body {
    grid-template-columns: 1fr;
  }
  .lb-item.is-essay .essay-fn {
    border-right: none;
    border-top: 0.075rem solid rgba(var(--accent));
    padding-top: 1em;
  }
}









/* 🟢🟢🟢 Optimierung für Ausstellung 🟢🟢🟢 */

