
/* Stilregeln für REMNANT und TRACE */
.remnant,
.trace {
  display: inline-block;
  padding: 0.2em 0.6em;
  margin: 0.2em 0;
  font-weight: bold;
  font-family: 'Courier Prime', monospace;
  font-size: 1em;
  letter-spacing: 0.05em;
  border: 1px solid var(--neon-green);
  border-radius: 4px;
  background-color: rgba(0, 255, 0, 0.1);
  color: var(--neon-green);
  white-space: nowrap;
}


/* ==== Erweiterte Responsive CSS (mit Tablet-Zwischenbereich) ==== */


/* === Tablet-Zwischenbereich (600px bis 899px) === */
@media only screen and (min-width: 600px) and (max-width: 899px) {
  .text-container {
    padding: 30px;
    max-width: 90%;
  }

  .text-box {
    font-size: 1.1rem;
  }

  .bild-container {
    top: 50px;
    max-height: 60vh;
  }

  .kapitel-überschrift {
    font-size: 1.8rem;
  }

  header h1 {
    font-size: 3.2rem;
  }

  .vorlese-button {
    font-size: 1rem;
    padding: 8px 14px;
  }
}


/* ==== Einheitliche CSS mit exakt gleicher Wirkung wie mobile.css + desktop.css ==== */

/* === Desktop (ab 768px) === */
@media only screen and (min-width: 768px) {
@font-face {
  font-family: 'Bebas Neue';
  src: url('fonts/BebasNeue-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}


@font-face {
  font-family: 'Courier Prime';
  src: url('fonts/CourierPrime-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}


:root {
  --neon-green: #00ff00;
  --black: #000000;
}

html {
  scroll-behavior: smooth;
}

/* === Allgemeines Layout === */
body, html {
  background: var(--black);
  color: var(--neon-green);
  font-family: 'Courier Prime', monospace;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  padding-top: 0;
}

/* === Header === */
header {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  background: url('img/header.jpg') no-repeat center center;
  background-size: cover;
  border-bottom: 2px solid var(--neon-green);
  text-align: center;
  position: relative;
}

header h1 {
  font-size: 7em;
  font-family: 'Bebas Neue', monospace;
  text-shadow: 0 0 10px var(--neon-green);
  letter-spacing: 8px;
  margin: 0;
  animation: pulse 7s infinite;
}

 @keyframes pulse {
      0%, 100% { text-shadow: 0 0 5px var(--neon-green); }
      50% { text-shadow: 0 0 20px var(--neon-green); }
    }

/* === Navigation Allgemein === */
nav ul {
  list-style: none;
  padding: 1rem;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

nav ul li a {
  color: var(--neon-green);
  text-decoration: none;
  white-space: nowrap;
  padding: 0.3em 0.6em;
  border-radius: 4px;
  transition: background 0.2s;
}

nav ul li a:hover {
  background: rgba(255, 255, 255, 0.1);
}

nav.kapitel-übersicht img {
  display: none !important;
}

/* === Kapitel Layout === */
.kapitel {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  align-items: flex-start;
  margin: 100px 0 200px;
  padding: 60px 20px 100px;
  min-height: 120vh;
}

.kapitel-überschrift {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--black);
  font-size: 1.4em;
  color: var(--neon-green);
  text-align: left;
  margin: 0;
  padding: 30px 0;
  border-bottom: 2px solid var(--neon-green);
}

.kapitel-überschrift {
  width: 122%;
  max-width: none;              /* falls gesetzt war */
  padding: 30px 60px 30px 40px; /* ⬅️ links weniger Platz */
  margin-left: -40px;           /* ⬅️ zieht den ganzen Block nach links */
  box-sizing: border-box;
}



.kapitel-überschrift::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background-color: var(--neon-green);
}

/* === Text & Bild Container === */
.bild-container,
.text-container {
  flex: 1 1 45%;
}

.bild-container {
  position: sticky;
  top: 80px;
  margin-left: 30px;
  z-index: 2;
}

.bild-container img {
  width: 90%;
  height: auto;
  display: block;
}

.text-container {
  position: relative;
  width: 100%;
  display: flex;
  align-items: flex-start;
  overflow: visible;
}

.text-box {
  position: sticky;
  top: 0;
  align-self: flex-start;
  background: var(--black);
  color: var(--neon-green);
  font-size: 1.35em;
  width: 70%;
  max-width: 800px;
  padding: 10px 90px 0 60px;
 
  scrollbar-width: none;
}

.text-box::-webkit-scrollbar {
  display: none;
}

/* === Vorlese-Button === */
.vorlese-button {
  position: absolute;
  top: 50px;
  right: 20px;
  background: transparent;
  border: 2px solid var(--neon-green);
  color: var(--neon-green);
  font-size: 16px;
  padding: 5px 8px;
  border-radius: 5px;
  cursor: pointer;
  z-index: 5;
}

.vorlese-button:hover {
  background: var(--neon-green);
  color: var(--black);
}

/* === Kapitel-Übersicht === */
nav.kapitel-übersicht {
  max-height: 80vh;
  overflow-y: auto;
  padding: 20px;
}

nav.kapitel-übersicht ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 0;
}

nav.kapitel-übersicht ul li {
  flex: 0 0 auto;
}

nav.kapitel-übersicht ul li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 220px;
  background: var(--black);
  border: 2px solid var(--neon-green);
  border-radius: 10px;
  text-decoration: none;
  color: var(--neon-green);
  padding: 15px;
  box-sizing: border-box;
  transition: transform 0.2s ease, background 0.3s ease;
}

nav.kapitel-übersicht ul li a:hover {
  transform: scale(1.02);
  background-color: rgba(0, 255, 0, 0.1);
}

nav.kapitel-übersicht ul li a img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

nav.kapitel-übersicht ul li a span {
  font-size: 1.1em;
  font-weight: bold;
  text-shadow: 1px 1px 5px black;
  text-align: center;
}

nav.kapitel-übersicht ul li::after {
  display: block;
  margin-top: 8px;
  text-align: center;
  color: var(--neon-green);
  font-size: 1em;
  font-family: 'Courier Prime', monospace;
  text-shadow: 1px 1px 5px black;
}

/* === Kapitel-Bezeichnungen durch :nth-child === */
nav.kapitel-übersicht ul li:nth-child(1)::after {
  content: "Kapitel 1";
}

nav.kapitel-übersicht ul li:nth-child(2)::after {
  content: "Kapitel 2";
}

nav.kapitel-übersicht ul li:nth-child(3)::after {
  content: "Protokoll 7-34A";
}

nav.kapitel-übersicht ul li:nth-child(4)::after {
  content: "Kapitel 3";
}

nav.kapitel-übersicht ul li:nth-child(5)::after {
  content: "Protokoll 7-39D";
}

nav.kapitel-übersicht ul li:nth-child(6)::after {
  content: "Kapitel 4";
}

nav.kapitel-übersicht ul li:nth-child(7)::after {
  content: "Protokoll 7-42C";
}

nav.kapitel-übersicht ul li:nth-child(8)::after {
  content: "Kapitel 5";
}

nav.kapitel-übersicht ul li:nth-child(9)::after {
  content: "Kapitel 6";
}

nav.kapitel-übersicht ul li:nth-child(10)::after {
  content: "Kapitel 7";
}

nav.kapitel-übersicht ul li:nth-child(11)::after {
  content: "Protokoll 7-58F";
}

nav.kapitel-übersicht ul li:nth-child(12)::after {
  content: "Kapitel 8";
}

nav.kapitel-übersicht ul li:nth-child(13)::after {
  content: "Kapitel 9";
}

nav.kapitel-übersicht ul li:nth-child(14)::after {
  content: "Kapitel 10";
}

nav.kapitel-übersicht ul li:nth-child(15)::after {
  content: "Kapitel 11";
}

nav.kapitel-übersicht ul li:nth-child(16)::after {
  content: "Kapitel 12";
}

nav.kapitel-übersicht ul li:nth-child(17)::after {
  content: "Kapitel 0";
}

nav.kapitel-übersicht ul li:nth-child(18)::after {
  content: "Protokoll 7-73C";
}

nav.kapitel-übersicht ul li:nth-child(19)::after {
  content: "Kapitel 13";
}

nav.kapitel-übersicht ul li:nth-child(20)::after {
  content: "Kapitel 14";
}

nav.kapitel-übersicht ul li:nth-child(21)::after {
  content: "Kapitel 15";
}

nav.kapitel-übersicht ul li:nth-child(22)::after {
  content: "Kapitel 16";
}

nav.kapitel-übersicht ul li:nth-child(23)::after {
  content: "Kapitel 17";
}


nav.kapitel-übersicht ul li:nth-child(24)::after {
  content: "Kontakt  Datenschutz  Impressum";
}



/* === Sound Button === */
.sound-button {
  background: var(--black);
  border: 2px solid var(--neon-green);
  color: var(--neon-green);
  font-family: 'Courier Prime', monospace;
  font-size: 16px;
  padding: 7px 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s ease;
}

.sound-button:hover {
      background: rgba(0, 0, 0, 0.15);
      box-shadow: 0 0 20px var(--neon-green);
      transform: scale(1.05);
}

.sound-button:focus {
  outline: none;
  box-shadow: 0 0 5px var(--neon-green);
}

.sound-button-banner {
  position: fixed;
  top: 20px;
  left: 140px;
  z-index: 1;
}

.sound-button-banner .button-container {
  display: flex;
  align-items: center;
  gap: 10px;
}


/* === Protokolle === */
.protokoll {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: black;
  padding: 0;
}

.protokoll-box {
  background: black;
  border: 2px solid #00ff00;
  padding: 20px;
  max-width: 600px;
  text-align: left;
  box-shadow: 0px 0px 15px rgba(0, 255, 0, 0.5);
}

.protokoll-box h3 {
  color: #00ff00;
  text-align: center;
  font-size: 1.5em;
  margin-bottom: 15px;
}

.protokoll-box code {
  font-size: 1.1em;
  color: #00ff00;
  display: block;
  padding: 5px 0;
}

.protokoll-box button {
  display: block;
  margin: 20px auto;
  padding: 10px 20px;
  font-size: 1em;
  background: #00ff00;
  color: black;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

.protokoll-box button:hover {
  background: #00cc00;
}

/* === Protokoll Button Stil === */
.protokoll-button {
  width: 100%;
  text-align: center;
  margin: 0 0 0 0;
 line-height: normal;
}

.protokoll-button button {
  width: 100%;
  background: rgba(0, 255, 0, 0.2);
  color: #00ff00;
  border: 2px solid #00ff00;
  padding: 20px;
  font-size: 1.5em;
  cursor: pointer;
  backdrop-filter: blur(5px);
  text-transform: uppercase;
  font-weight: bold;
  transition: 0.3s ease-in-out;
}

.protokoll-button button:hover {
  background: rgba(0, 255, 0, 0.5);
  color: black;
}

/* === Terminal Text Stil === */
#protokoll-text {
  font-family: 'Courier Prime', monospace;
  color: #00ff00;
  text-align: left;
  padding: 20px;
  white-space: pre-line;
  line-height: 1.8;
  font-size: 1.9em;
}


/* === Hauptnavigation (Slide-in) === */
#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 400px;
  background: var(--black);
  border-bottom: 2px solid var(--neon-green);
  transform: translateY(-100%);
  transition: transform 0.4s ease-in-out;
  z-index: 1000;
  padding: 60px 20px 30px;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
  overflow-y: auto;
}

#main-nav.open {
  transform: translateY(0);
}

#main-nav ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  justify-content: center;
  gap: 2.5rem;
  padding: 0;
  margin: 0 auto;
  list-style: none;
  max-width: 1000px;
}

#main-nav li a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 150px;
  padding: 10px;
  background-size: cover;
  background-position: center;
  border: 2px solid var(--neon-green);
  border-radius: 8px;
  color: var(--neon-green);
  font-size: 0;
  font-family: 'Courier Prime', monospace;
  font-weight: bold;
  transition: transform 0.3s;
}

#main-nav li a:hover {
  transform: scale(1.05);
}

#main-nav li a img {
  width: 100%;
  max-width: 150px;
  height: auto;
  border-radius: 3px;
}

/* === Back-to-top Buttons === */
.back-to-top,
.back-to-top-fixed {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  display: none;
  background: var(--black);
}

.back-to-top a,
.back-to-top-fixed {
  color: var(--neon-green);
  text-decoration: none;
  border: 2px solid var(--neon-green);
  padding: 10px 20px;
  font-family: 'Courier Prime', monospace;
  font-size: 1em;
  border-radius: 5px;
  transition: background 0.3s ease, color 0.3s ease;
}

.back-to-top a:hover,
.back-to-top-fixed:hover {
  background: var(--neon-green);
  color: var(--black);
}

/* === Footer === */
footer {
  padding: 20px;
  background: var(--black);
  border-top: 2px solid var(--neon-green);
  text-align: center;
}

.hamburger-menu.fixed-clone {
  position: fixed;
  top: 20px;
  left: 50px;
  z-index: 5000;
  background: var(--black);
  border: 2px solid var(--neon-green);
  color: var(--neon-green);
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  display: none;
}

body.menu-open .hamburger-menu.fixed-clone {
  display: block;
}

body.menu-open::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  opacity: 0.7; /* abdunkeln auf 10% */
  z-index: 900; /* unter dem Menü (#main-nav: z-index 1000), über allem anderen */
  pointer-events: none;
}

body.menu-open .scroll-button.fixed-clone {
  display: block;
}

.menu-scroll-indicator {
  position: fixed;
  left: 20px;
  z-index: 3000;
  font-size: 1.8em;
  color: var(--neon-green);
  background: var(--black);
  border: 2px solid var(--neon-green);
  padding: 6px 12px;
  border-radius: 5px;
  cursor: pointer;
  box-shadow: 0 0 5px #00ff00;
  user-select: none;
  display: none;
}

.menu-scroll-indicator.top {
  top: 100px;
}

.menu-scroll-indicator.bottom {
  bottom: 400px;
}

body.menu-open .menu-scroll-indicator {
  display: block;
}


.button-container.horizontal {
  display: flex;
  align-items: center;
  gap: 50px;
}

/* Der MNEMOSYNE-Button: Anfangs unsichtbar */
.mnemosyne-floating {
  font-family: 'Courier Prime', monospace;
  font-size: 1em;
  background: black;
  color: #00ff00;
  border: 2px solid #00ff00;
  border-radius: 6px;
  padding: 8px 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

/* Sichtbar, sobald gescrollt wurde */
.mnemosyne-floating.visible {
  opacity: 1;
  pointer-events: auto;
}


.mnemosyne-floating:hover {
  background: var(--neon-green);
  
  box-shadow: 0 0 20px var(--neon-green);
  transform: scale(1.05);
}

.mnemosyne-floating:active {
  transform: scale(0.95);
}

/* 🖥️ Desktop: Button komplett ausblenden */
#mnemo-float-mobile {
  display: none !important;
}



/* ==================================
   🎨 Wichtig auch für desktop css übernehmen
================================== */

.terminal {
  position: relative;
  overflow: hidden;
  background: black;
  border: 1px solid #00ff00;
  border-left-width: 4px;
  padding: 15px 20px;
  margin: 20px 0;
  font-size: 1rem;
  color: #00ff00;
  font-family: 'Courier Prime', monospace;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(0, 255, 0, 0.1) 5px,
    rgba(0, 255, 0, 0.1) 5px,
    transparent 50px,
    transparent 100px
  );
  animation: scanlinesMove 10s linear infinite;
}


.terminal.alert {
  background-color: #300;       /* dunkles Rot */
  border: 1px solid #f00;       /* leuchtend roter Rand */
  padding: 1em;
  color: #fdd;                  /* heller Text */
  box-shadow: 0 0 10px #f00;    /* optional: leuchtender Effekt */
}

body.no-scroll {
  overflow: hidden;
}

@keyframes scanlinesMove {
  0% {
    background-position-y: -50px;
  }
  100% {
    background-position-y: 50px; /* feste Strecke, unabhängig von .terminal-Höhe */
  }
}





/* ab hier für mobile */





.protokoll-content {
  margin-top: 0;
  
  padding-left: 1em;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}











.typed-output {
  min-height: 150px;
}


.protokoll-content .terminal {
  margin-top: 0;
}


.typed-output {
  max-width: 95%;
  font-size: 1.3em;
  padding: 0 1em 0 1em; /* oben/rechts/unten/links → kein padding oben und unten */
  line-height: 2.6;
  margin: 0 auto;
  text-align: left !important;
}






/* verhindert terminal bild fehler */

.protokoll-content .terminal {
  margin-top: 0;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
  background-image: none;
  background-color: rgba(0, 0, 0, 0.7); /* leicht durchscheinend */
}

/* verhindert terminal bild fehler */



.protokoll-close,
.protokoll-jetzt-button {
  width: 100%;
  background: rgba(0, 255, 0, 0.2);
  color: #00ff00;
  border: 2px solid #00ff00;
  padding: 20px;
  font-size: 1.5em;
  cursor: pointer;
  backdrop-filter: blur(5px);
  text-transform: uppercase;
  font-weight: bold;
  transition: 0.3s ease-in-out;
  text-align: center;
  display: block;
  margin: 0 auto;
}


.kapitel {
  position: relative;
  z-index: 20;
}

.hamburger-menu,
.sound-button-banner,
.mnemosyne-floating {
  z-index: 5;
}

.protokoll-content,

.text-box,
.protokoll-button {
  position: relative;
  z-index: 30;
}

.typed-output,
.protokoll-close {
  display: block;
  max-width: 100%; 
  margin: 0 auto;
  box-sizing: border-box;
}




.protokoll-content-wrapper {
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.protokoll-button,
.protokoll-content {
  width: 100%;
}



.protokoll-button button,
.protokoll-jetzt-button,
.protokoll-close {
  width: 100%;
  max-width: none;
  padding: 20px;
  font-size: 1.5em;
  border: 2px solid var(--neon-green);
  box-sizing: border-box;
  text-align: center;
  margin: 0;
}

.protokoll-button,
.protokoll-content {
  padding: 0;
  margin: 0 auto;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  
}


.bild-container,
.bild-container img {
  pointer-events: none; /* verhindert Blockieren */
}


.kapitel {
  position: relative;      /* nicht absolute/fixed */
  z-index: auto !important;
  pointer-events: auto;    /* oder none, wenn nichts darin klickbar sein muss */
}

.kapitel .bild-container img {
  pointer-events: none;
}

header h1 a {
  color: var(--neon-green);
  text-decoration: none;
  display: inline-block;
}

header h1 a:hover {
  text-shadow: 0 0 15px var(--neon-green);
}













/* Ab hier......komplett anderes scrollverhalten */







.kapitel {
  background-attachment: fixed;
  background-position: left center;
  background-repeat: no-repeat;
  background-size: 50%;
}



#kapitel0  { background-image: url('img/kapitel_0.jpg'); }
#kapitel1  { background-image: url('img/kapitel_1.jpg'); }
#kapitel2  { background-image: url('img/kapitel_2.jpg'); }
#kapitel3  { background-image: url('img/kapitel_3.jpg'); }
#kapitel4  { background-image: url('img/kapitel_4.jpg'); }
#kapitel5  { background-image: url('img/kapitel_5.jpg'); }
#kapitel6  { background-image: url('img/kapitel_6.jpg'); }
#kapitel7  { background-image: url('img/kapitel_7.jpg'); }
#kapitel8  { background-image: url('img/kapitel_8.jpg'); }
#kapitel9  { background-image: url('img/kapitel_9.jpg'); }
#kapitel10 { background-image: url('img/kapitel_10.jpg'); }
#kapitel11 { background-image: url('img/kapitel_11.jpg'); }
#kapitel12 { background-image: url('img/kapitel_12.jpg'); }
#kapitel13 { background-image: url('img/kapitel_13.jpg'); }
#kapitel14 { background-image: url('img/kapitel_14.jpg'); }
#kapitel15 { background-image: url('img/kapitel_15.jpg'); }
#kapitel16 { background-image: url('img/kapitel_16.jpg'); }
#kapitel17 { background-image: url('img/kapitel_17.jpg'); }



.bild-container {
  visibility: hidden;
  pointer-events: none;
}

.bild-container img {
  opacity: 0;
}

.kapitel {
  margin: 0 0 0;   /* hier könnte auch 10px 0 10px stehen */
  padding: 10px 
  
}


.text-box {
  margin-bottom: 100px; /* oder 2rem, 10vh, etc. */
}

html {
  scroll-behavior: smooth;
  
}





/* === Optimierung für große Bildschirme === */

@media screen and (min-width: 1200px) {
  .kapitel {
    padding-left: clamp(40vw, 50vw, 55vw); /* Bild links, Text rechts */
    padding-right: clamp(30px, 5vw, 80px);
  }

  .text-box {
    margin-left: 0;
    margin-right: auto;
    padding-left: clamp(20px, 3vw, 60px);
    padding-right: clamp(20px, 4vw, 90px);
    max-width: clamp(800px, 80vw, 1400px);
    width: 100%;
  }
}

/* Ab sehr großen Screens ab 1800px nochmal etwas anpassen */
@media screen and (min-width: 1800px) {
  .kapitel {
    padding-left: 55vw;
    padding-right: 10vw;
  }

  .text-box {
    padding-left: 60px;
    padding-right: 90px;
    max-width: clamp(1000px, 70vw, 1400px);
  }
}






.neon-button {
  background: rgba(0, 0, 0, 0.15);
  color: #00ff00;
  border: 2px solid #00ff00;
  padding: 10px 20px;
  font-size: 1.2em;
  font-family: 'Courier Prime', monospace;
  text-transform: uppercase;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s ease-in-out;
  backdrop-filter: blur(5px);
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
  border-radius: 5px;
}

.neon-button:hover {
  background: rgba(0, 255, 0, 0.15);
  
}

.neon-button:active {
  transform: scale(0.95);
}



/* === Hamburger Menü === */
.hamburger-menu {
  position: fixed;
  top: 20px;
  left: 50px;

  background: rgba(0, 0, 0, 0.15);
  border: 2px solid var(--neon-green);
  color: var(--neon-green);
  font-family: 'Courier Prime', monospace;
  font-size: 20px;         /* etwas kleiner */
  padding: 6px 10px;       /* kompakter */
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s ease;
  z-index: 10001;
}

.hamburger-menu:hover {
  
      background: rgba(0, 255, 0, 0.15);
      box-shadow: 0 0 20px var(--neon-green);
      transform: scale(1.05);
}





.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin: 10px 0;
}

.footer-links a {
  color: var(--neon-green);
  text-decoration: none;
  font-size: 1.1em;
}

.footer-links a:hover {
  text-decoration: underline;
}





}

/* === Mobile (bis 767px) === */
@media only screen and (max-width: 767px) {
@font-face {
  font-family: 'Bebas Neue';
  src: url('fonts/BebasNeue-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Courier Prime';
  src: url('fonts/CourierPrime-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}




* {
  box-sizing: border-box;
}


/* ==================================
   🎨 GRUNDLAYOUT
================================== */
body {
  background: black;
  color: #00ff00;
  font-family: 'Courier Prime', monospace;
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 1.75;
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.center-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* ==================================
   🧠 TYPO & HEADINGS
================================== */
header {
  padding: 20px;
  text-align: center;
  border-bottom: 2px solid #00ff00;
}

header h1 {
  font-size: 6rem;
  font-family: 'Bebas Neue', monospace;
  text-shadow: 0 0 10px var(--neon-green);
  letter-spacing: 8px;
  animation: pulse 7s infinite;
  margin: 0;
}


 @keyframes pulse {
      0%, 100% { text-shadow: 0 0 5px var(--neon-green); }
      50% { text-shadow: 0 0 20px var(--neon-green); }
    }

h2.kapitel-überschrift {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

/* ==================================
   🔗 NAVIGATION
================================== */
nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  gap: 1.5rem;
  padding: 1rem;
  margin: 0;
}

nav ul li a {
  color: #00ff00;
  text-decoration: none;
  padding: 0.3em 0.6em;
  transition: background 0.2s;
}

nav ul li a:hover {
  background: rgba(255,255,255,0.1);
}


/* ==================================
   🖼 KAPITEL-BEREICH
================================== */
.bild-und-text {
  position: relative;
  min-height: 250vh; /* Text kann mehr Raum einnehmen */
  overflow: visible; /* Verhindert, dass der Text über den Container hinaus sichtbar ist */
}

.bild-und-text img {
  position: sticky;
  top: 0px;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  z-index: 1;
}

.bild-und-text .text {
  position: relative;
  z-index: 0;
  background: rgba(0, 0, 0, 0.85);
  padding: 40px;
  color: #00ff00;
  max-width: 800px;
  margin: 0 auto;
  border-left: 3px solid #00ff00;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
}

@media (max-width: 768px) {
  .bild-und-text .text {
    padding: 1px;
    font-size: 1.5rem;
  }

  header h1 {
    font-size: 2.5rem;
  }

  body {
    font-size: 14px;
  }
}



/* ==================================
   🟩 BUTTONS & INTERACTION
================================== */
button, .vorlese-button, .hamburger-menu {
  touch-action: manipulation;
  min-height: 44px;
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
}


button:hover {
  box-shadow: 0 0 10px #00ff00;
}

.back-to-top {
  margin-top: 40px;
  text-align: center;
}

.back-to-top a {
  display: inline-block;
  background: black;
  color: #00ff00;
  border: 2px solid #00ff00;
  padding: 10px 25px;
  font-size: 1.1em;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.4);
}

.back-to-top a:hover {
  background: #00ff00;
  color: black;
  box-shadow: 0 0 15px #00ff00;
}

/* Protokoll-Button */
.protokoll-button {
 
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: -100px;  /* oder weniger */
  margin-bottom: 100px;  /* oder weniger */

}

.protokoll-button button {
  background: black;
  color: #00ff00;
  border: 3px solid #00ff00;
  font-family: 'Courier Prime', monospace;
  font-size: 1.3em;
  padding: 15px 30px;
  
  cursor: pointer;
  text-transform: uppercase;
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.4);
  transition: all 0.3s ease-in-out;
  position: relative;
  overflow: hidden;
margin-top: -100px;  /* oder weniger */
margin-bottom: 100px;  /* oder weniger */


}

.protokoll-button button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(0, 255, 0, 0.1);
  transition: left 0.5s ease;
  z-index: 0;
}

.protokoll-button button:hover::before {
  left: 0;
}

.protokoll-button button:hover {
  background: #00ff00;
  color: black;
  box-shadow: 0 0 20px #00ff00;
  z-index: 1;
}

/* ==================================
   🔊 SOUND BUTTON
================================== */
.sound-button-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 20px;
  background: black;
  border-bottom: 2px solid #00ff00;
  
  position: fixed;
  top: 0;
  z-index: 9999;
}

.button-container {
  display: flex;
  padding-left: 25px; /* oder 2rem */
  align-items: center;
  ustify-content: space-between; /* statt gap */
  position: relative; /* notwendig für absolute Positionierung des Buttons */
}

.hamburger-menu {
  background: black;
  color: #00ff00;
  border: 2px solid #00ff00;
  font-family: 'Courier Prime', monospace;
  font-size: 0.9em;
  padding: 0.6px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 8px rgba(0, 255, 0, 0.3);
  min-width: auto;
  width: auto;
  display: flex;
  align-items: center;
}

.hamburger-menu:hover {
  background: #00ff00;
  color: black;
  box-shadow: 0 0 15px #00ff00;
}



.sound-button {
  background: black;
  color: #00ff00;
  border: 2px solid #00ff00;
  font-family: 'Courier Prime', monospace;
  font-size: 1.1em;
  padding: 11px 15px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  
  min-width: auto; /* falls gesetzt war */
  margin-right: 20px; /* Fügt Abstand zum nächsten Element (Vorlese-Button) hinzu */
  width: auto;     /* optional: fixierte Breite z.B. 100px */

}

.sound-button:focus {
  outline: none;
  background: #00ff00;
  color: black;
  box-shadow: 0 0 15px #00ff00;
}

.vorlese-button {
  background: black;
  color: #00ff00;
  border: 2px solid #00ff00;
  font-family: 'Courier Prime', monospace;
  font-size: 1.0em;
  padding: 13px 15px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 8px rgba(0, 255, 0, 0.3);
  min-width: auto; /* falls gesetzt war */
  width: auto;     /* optional: fixierte Breite z.B. 100px */

}

.sound-button:hover, .vorlese-button:hover {
  background: #00ff00;
  color: black;
  box-shadow: 0 0 15px #00ff00;
}

/* ==================================
   📜 SECTION-ANIMATION
================================== */
section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
  margin: clamp(20px, 4vh, 60px) 0;
}

section.kapitel {
  scroll-padding-top: 60px;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==================================
   📦 FOOTER
================================== */
footer {
  padding: 20px;
  text-align: center;
  border-top: 2px solid #00ff00;
}

.kapitel {
  position: relative;
  min-height: 10vh; /* oder mehr */
  margin-bottom: 20px;
}

.bild-wrapper {
  position: sticky;
  top: 0px;
  z-index: 1;
}

.bild-wrapper img {
  width: 100%;
  max-height: 100vh;
  object-fit: cover;
  display: block;
  border-bottom: 2px solid #00ff00;
  box-shadow: 0 2px 20px rgba(0, 255, 0, 0.3);
}

.text-wrapper {
  position: relative;
  z-index: 0;
  background: rgba(0, 0, 0, 0.85);
  padding: 40px;
  color: #00ff00;
  max-width: 800px;
  margin: 0 auto;
  border-left: 3px solid #00ff00;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
}
body, html {
  margin: 0;
  padding: 0;
}

.bild-container {
  position: sticky;
  top: 60px;
  z-index: 1;
  height: 100vh;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
}

.bild-container img {
  width: 100%;
  height: 100%;
  max-width: 100vw;
  object-fit: cover;
  display: block;
  
}


.text-container {
  position: relative;
  z-index: 0;
  background: rgba(0, 0, 0, 0.85);
  color: #00ff00;
  max-width: none;
  margin: 0 auto;
  border-left: none;
  border-radius: 8px;
  box-shadow: none;
  padding: 60px 20px;
}

.kapitel {
  position: relative;
}


#iframe-overlay {
  position: fixed;
  inset: 0;
  background: black;
  z-index: 1000;
  display: none;
  justify-content: center;
  align-items: center;
}

#iframe-container {
  width: 90%;
  height: 90%;
  box-shadow: 0 0 20px #00ff00;
}



.vorlese-button.active {
  position: fixed;
  top: 20px;
  z-index: 100;
  background: #00ff00;
  color: black;
  border: 2px solid black;
  box-shadow: 0 0 10px #00ff00;
}

#floating-vorlese-button {
  position: fixed;
  top: 10px;
  right: 20px;
  z-index: 10000;
  display: none;
  background: black;
  color: #00ff00;
  border: 2px solid #00ff00;
  padding: 11px 15px;
  font-family: 'Courier Prime', monospace;
  font-size: 1.1em;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
  transition: all 0.3s ease;
}

#floating-vorlese-button:hover {
  background: #00ff00;
  color: black;
  box-shadow: 0 0 15px #00ff00;
}

@media (max-width: 500px) {
  .button-container {
    flex-direction: column;
    align-items: flex-start;
  }
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

.header-fullwidth {
  position: relative;
  width: 100%;
  height: 100vh; /* oder 120vh, wie du willst */
  background-image: url('img/header.jpg');
  background-size: cover; /* extra breit */
  background-position: center;
  background-repeat: no-repeat;
  background-color: black; /* Fallback */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #00ff00;
  text-align: center;
  border-bottom: none;
  padding: 40px 20px;
  z-index: 0;
}

@media (max-width: 768px) {
  .hamburger-menu {
    margin-left: 0px;
    position: fixed;
    top: 10px;
    left: 30px;
    z-index: 10000;
  }

  .sound-button-banner {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
  }

  nav#main-nav {
    position: fixed;
    top: 60px;
    bottom: 0; /* <-- das ist neu! */
    z-index: 8000;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100%;
    background: black;
    border-top: 2px solid #00ff00;
    display: none;
    flex-direction: column;
    padding: 10px;
    overflow-y: auto;      /* <-- Scroll aktiv */
    scroll-behavior: smooth;
  }

  nav#main-nav.open {
    display: flex;
  }

  nav#main-nav ul {
    flex-direction: column;
    gap: 5px;
    padding: 1rem 0;
    margin: 20px;
    list-style: none;
    
  }

  nav#main-nav ul li {
    margin: 20px 0;
width: 100%;            /* volle Breite, z. B. innerhalb der Nav-Spalte */
max-width: 400px;       /* damit es nicht zu groß wird */
text-align: center;     /* zentriert den Text */
display: block;         /* statt inline-block – nutzt volle Breite */
  }
}

.kapitel-übersicht li a {
  display: flex;
  font-size: 1.5em;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  color: inherit;
  width: 100%; /* oder eine fixe Breite wie 320px */
  max-width: none; /* falls irgendwo eine max-width gesetzt ist */
  white-space: nowrap; /* verhindert Umbrüche */



}

.kapitel-übersicht li img {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  box-shadow: 0 0 3px rgba(0,0,0,0.4);
}


nav ul li a.protokoll-link {
  display: inline-block;
  background: black;
  color: #00ff00 !important;
  border: 2px solid #00ff00;
  padding: 25px 50px;
  font-size: 1.5em;
  border-radius: 6px;
  text-decoration: none !important;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.4);
  font-family: 'Courier Prime', monospace;
  margin: 20px 0;


}

nav ul li a.protokoll-link:hover {
  background: #00ff00;
  color: black !important;
  text-decoration: none;
  box-shadow: 0 0 15px #00ff00;
}

nav ul li a.protokoll-link:hover::before {
  left: 0;
}

nav ul li a.protokoll-link:hover {
  background: #00ff00;
  color: black;
  box-shadow: 0 0 20px #00ff00;
}

.button-container.horizontal {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Mobiles "M"-Button-Styling */
.mnemosyne-floating {
  font-size: 1.5em;
  font-family: 'Bebas Neue', monospace;
  font-weight: bold;
  background: black;
  color: #00ff00;
  border: 2px solid #00ff00;
  border-radius: 6px;
  padding: 10px 14px;
  opacity: 1;
  pointer-events: auto !important;
  transition: opacity 0.4s ease;
}

/* Sichtbar beim Scrollen */
.mnemosyne-floating.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Nur in Mobile: Button-Text "M" */
@media (max-width: 767px) {
  #mnemo-float {
    display: none;
  }

  #mnemo-float-mobile {
    display: inline-flex;
  }
}

@media (min-width: 768px) {
  #mnemo-float-mobile {
    display: none;
  }

  #mnemo-float {
    display: inline-flex;
  }
}

#mnemo-float-mobile {
  position: fixed;
  top: 10px;
  right: 30px;
  z-index: 10000;
  background: black;
  color: #00ff00;
  border: 2px solid #00ff00;
  font-family: 'Bebas Neue', monospace;
  font-size: 1.4em;
  border-radius: 6px;
  padding: 3px 14px;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
  transition: opacity 0.4s ease;
  opacity: 1;
  pointer-events: none;
  text-decoration: none; /* wichtig für <a> */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}


#mnemo-float-mobile.visible {
  opacity: 1;
  pointer-events: auto;
}

.hero-bg {
  background: url('img/hintergrund_start-mobile.jpg') center top / contain no-repeat;
  background-color: var(--black);
  height: 100vh;              /* nimmt volle Bildschirmhöhe ein */
  width: 100%;
  position: fixed;            /* bleibt oben "angedockt" */
  top: 0;
  left: 0;
  z-index: -1;                /* hinter dem Inhalt */
}


main, .sticky-parent, .kapitel, .bild-container {
  overflow-x: visible;
}

@media (max-width: 768px) {
  .bild-container,
  .bild-wrapper {
    height: 60vh; /* z.B. 60% der Bildschirmhöhe auf kleinen Geräten */
  }

  .bild-container img,
  .bild-wrapper img {
  width: 85vw;
  max-width: 90vw;
  margin: 0 auto; /* zentriert das Bild */
  height: 85vw;
  object-fit: cover;
  border-radius: 0px; /* optional für etwas weichere Ränder */
}




/* ==================================
   🎨 Wichtig auch für desktop css übernehmen
================================== */

.terminal {
  position: relative;
  overflow: hidden;
  background: black;
  border: 1px solid #00ff00;
  border-left-width: 4px;
  padding: 15px 20px;
  margin: 20px 0;
  font-size: 1rem;
  color: #00ff00;
  font-family: 'Courier Prime', monospace;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(0, 255, 0, 0.3) 10px,
    rgba(0, 255, 0, 0.3) 10px,
    transparent 50px,
    transparent 100px
  );
  animation: scanlinesMove 10s linear infinite;
}


@keyframes scanlinesMove {
  0% {
    background-position-y: -50px;
  }
  100% {
    background-position-y: 50px; /* feste Strecke, unabhängig von .terminal-Höhe */
  }
}


.terminal.alert {
  background-color: #300;       /* dunkles Rot */
  border: 1px solid #f00;       /* leuchtend roter Rand */
  padding: 1em;
  color: #fdd;                  /* heller Text */
  box-shadow: 0 0 10px #f00;    /* optional: leuchtender Effekt */
}





.text-container {
  position: relative;
  z-index: 0;
  background: rgba(0, 0, 0, 0.85);
  color: #00ff00;
  max-width: 900px; /* füge das hinzu */
  width: 100%;
  margin: 0 auto;
  border-left: none;
  border-radius: 8px;
  box-shadow: none;
  padding: 60px 20px;
}

@media (max-width: 768px) {
  .text-container {
    max-width: 87vw;
    padding: 30px 10px;
  }
}

section.kapitel {
  margin-bottom: 10px;
  padding-bottom: 10px;
}

.text-container {
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.text-box {
  margin-bottom: 10px;
  padding-bottom: 10px;
}

section.kapitel + section.kapitel {
  margin-top: 10px;
}

.bild-und-text {
  position: relative;
  min-height: 100vh; /* mehr Raum für Text hinter dem Bild */
  overflow: visible;
}

.text-container {
  padding-bottom: 300px;
}

body.menu-open {
  position: fixed;
  width: 100%;

}

@media (max-width: 768px) {
  .text-container p {
    font-size: 0.95rem; /* kleiner z.B. 16px */
    line-height: 1.6;
  }
}

@media (max-width: 768px) {

  .terminal p {
    font-size: 0.8rem;
    line-height: 1.5;
  }
}

.kapitel .bild-container img {
  border-bottom: 2px solid #00ff00;
  box-shadow: 0 6px 10px rgba(0, 255, 0, 0.3); /* optional: leichtes Leuchten */
}

html, body {
  margin: 0;
  padding: 0;
  height: 100vh;         /* Ganz wichtig */
  overflow-x: hidden;    /* Falls mobile Safari zu weit scrollt */
  overscroll-behavior: contain; /* verhindert Gummi-Effekt */
  scroll-behavior: smooth;      /* schöneres Scrollen */
}






















.protokoll-content {
  margin-top: 0;
  
  padding-left: 1em;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}











.typed-output {
  min-height: 150px;
}


.protokoll-content .terminal {
  margin-top: 0;
}


.typed-output {
  max-width: 95%;
  font-size: 1.1em;
  padding: 2em 1em 2em 1em; /* oben/rechts/unten/links → kein padding oben und unten */
  line-height: 1.5;
  margin: 0 auto;
  text-align: left !important;
}



/* verhindert terminal bild fehler */

.protokoll-content .terminal {
  margin-top: 0;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
  background-image: none;
}

/* verhindert terminal bild fehler */






.protokoll-close,
.protokoll-jetzt-button {
  width: 100%;
  background: rgba(0, 255, 0, 0.2);
  color: #00ff00;
  border: 2px solid #00ff00;
  padding: 20px;

  font-family: 'Courier Prime', monospace;
  font-size: 1.3em;
  padding: 15px 30px;


  
  cursor: pointer;
  backdrop-filter: blur(5px);
  text-transform: uppercase;
 
  transition: 0.3s ease-in-out;
  text-align: center;
  display: block;
  margin: 0 auto;
}



.typed-output,
.protokoll-close {
  display: block;
  max-width: 100%; 
  margin: 0 auto;
  box-sizing: border-box;
}




.protokoll-content-wrapper {
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.protokoll-button,
.protokoll-content {
  width: 100%;
}





.protokoll-button,
.protokoll-content {
  padding: 0;
  margin: 0 auto;
  width: 100%;
  max-width: 85%;
  box-sizing: border-box;
}






/* nur in mobile */



.protokoll-content-wrapper {
  position: relative;
}


.protokoll-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  z-index: 10;
  background: black;
  max-width: 900px;
  padding: 5em 1em 2em;
  box-shadow: 0 0 20px #00ff00;
  border: 2px solid #00ff00;
 
}

body.protokoll-aktiv .bild-container,
body.protokoll-aktiv .text-container {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.4s ease;
}


body.protokoll-aktiv {
  overflow: hidden;
  height: 100vh;
}

/* .protokoll-content zentrieren und begrenzen */
.protokoll-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 90vh;
  overflow-y: auto;
}








.menu-scroll-indicator {
  display: none !important;
}


header h1 a {
  color: var(--neon-green);
  text-decoration: none;
  display: inline-block;
}

header h1 a:hover {
  text-shadow: 0 0 15px var(--neon-green);
}





.site-footer {
  padding: 1rem;
  text-align: center;
  background-color: #111;
  color: #ccc;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin: 0.5rem 0;
}

.footer-links a {
  color: var(--neon-green);
  text-decoration: none;
  font-size: 1rem;
}

.footer-links a:hover {
  text-decoration: underline;
}

}




/* === Zusätzliche Optimierung für 1400px–1799px === */
@media screen and (min-width: 1400px) and (max-width: 1799px) {
  .text-container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 60px;
    padding-right: 60px;
  }

  .bild-container {
    top: 70px;
  }

  .kapitel-überschrift {
    font-size: 2rem;
  }
}


/* ========= Ergänzungen für bessere Responsivität ========= */

/* Bilder flexibel halten */
img, .bild-container img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Navigation flexibler */
nav.kapitel-übersicht ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
nav.kapitel-übersicht li {
  flex: 1 1 150px;
  max-width: 200px;
}

/* Textcontainer Optimierung */
.text-container {
  padding: 1rem;
  max-width: 800px;
  margin: auto;
}

@media (max-width: 600px) {
  .text-box {
    font-size: 1rem;
    padding: 1rem;
  }

  .floating-button-wrapper {
    right: 0.5rem;
    bottom: 0.5rem;
    transform: scale(0.9);
  }
}

/* Floating Button bleibt gut sichtbar */
.floating-button-wrapper {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 999;
}


/* ========== Verbesserungen für den mobilen Bereich ========== */

@media (max-width: 600px) {
  .text-box, .text-container, .text-box p {
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
  }

  .text-box {
    padding: 1rem;
    margin: 0 auto;
  }

  /* Stelle sicher, dass keine Texte über das Bild hinauslaufen */
  .bild-container, .bild-container img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
  }

  /* Floating Button nicht über dem Bild platzieren */
  .floating-button-wrapper {
    position: static;
    margin: 1rem auto;
    display: flex;
    justify-content: center;
    transform: none;
  }

  /* Optional: Abstand zwischen Button und Bildern/Text */
  .floating-button-wrapper + .bild-container,
  .bild-container + .floating-button-wrapper {
    margin-top: 1rem;
  }
}


/* ========== Korrektur: Text soll nicht breiter sein als das Kapitelbild ========== */

@media (max-width: 600px) {
  .kapitel-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
  }

  .kapitel-container img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  .kapitel-container .text-box {
    max-width: 100%;
    padding: 1rem;
    margin: 0 auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
  }

  /* Optional: Abstand zwischen Bild und Text verringern */
  .kapitel-container img + .text-box {
    margin-top: 0.5rem;
  }
}


/* ========== Präzise Korrektur: Text niemals breiter als Bild ========== */
.kapitel-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.kapitel-container .bild-container,
.kapitel-container .text-box {
  width: 100%;
  max-width: 600px;
  box-sizing: border-box;
  margin: 0 auto;
}

.kapitel-container .text-box {
  padding: 1rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

@media (max-width: 600px) {
  .kapitel-container .bild-container,
  .kapitel-container .text-box {
    max-width: 100%;
  }
}


/* ========== Verbesserungen für Mobile & Tablet-Ansicht ========== */
.kapitel {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  padding: 0;
  margin: 0;
}

.kapitel .bild-container,
.kapitel .text-container,
.kapitel .text-box {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.kapitel .text-container {
  padding: 1rem;
}

/* Protokoll-Button immer nach dem Kapitel, nie über Bild */
.protokoll-content-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 auto 2rem auto;
}

/* Bild zentriert und volle Breite */
.bild-container img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

/* Floating Button auf Mobile nicht überlagern */
.floating-button-wrapper {
  position: static !important;
  display: flex;
  justify-content: center;
  margin: 2rem auto;
}

/* Sicherheitsregel für alle Bildschirmgrößen */
@media (max-width: 1024px) {
  .text-container,
  .text-box {
    max-width: 100%;
    padding: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}


/* ========== Sticky Bild-Funktion wieder aktivieren ========== */
@media (min-width: 768px) {
  .bild-container {
    position: sticky;
    top: 0;
    z-index: 1;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
  }

  .bild-container img {
    max-height: 100%;
    object-fit: contain;
  }

  .kapitel {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
  }

  .text-container {
    flex: 1;
    max-width: 600px;
    overflow-y: auto;
    height: 100vh;
    padding: 2rem;
  }
}





/* Protokoll-Button */
.protokoll-button {
 
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 150px;  /* oder weniger */
  margin-bottom: 50px;  /* oder weniger */

}



@media only screen and (max-width: 767px) {
  .bild-container {
    position: sticky;
    top: 60px;
    visibility: visible;
    pointer-events: auto;
    z-index: 1;
  }

  .bild-container img {
    opacity: 1;
  }
}


.bild-container {
  visibility: visible !important;
  pointer-events: auto !important;
  position: sticky;
  top: 80px;
  z-index: 50;
  background: black;
}

.bild-container img {
  opacity: 1 !important;
}




@media (max-width: 767px) {
  .bild-container {
    position: sticky !important;
    top: 60px;
    z-index: 10;
    background: black;
  }

  .bild-container img {
    display: block;
    width: 100%;
    height: auto;
  }

  .kapitel {
    overflow: visible !important;
  }
}


@media (max-width: 767px) {
  .text-box {
    margin-top: 12.5rem !important;
    margin-bottom: 14rem !important;
  }
}






@media (max-width: 767px) {

  .bild-container {
    position: sticky;
    top: 60px; /* gleiche Höhe wie dein sound-button-banner */
    width: 100vw;
    height: 30vh;
    overflow: hidden;
    background: black;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
  }

  .bild-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
    transform-origin: top center;
  }


  






}





/* wenn schrumpf benötigt

.bild-container.sticky-active img {
    transform: scale(0.6); /* Nur das Bild wird kleiner */
  }

  /* Optional: Sanfte Übergänge für Sticky-Wechsel */
  .bild-container,
  .bild-container img {
    will-change: transform;
  }

*/



@media (max-width: 767px) {
  .bild-container {
    position: sticky;
    top: 60px; /* Höhe des Sound-Buttons */
    width: 100vw;
    height: 100vh;
    background: black;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;

    /* Stabilisierung für Edge/Chrome */
    backface-visibility: hidden;
    transform: translateZ(0);
    contain: layout paint;
  }

  .bild-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
    transform-origin: top center;
  }

  .bild-container.sticky-active img {
    transfAorm: scale(0.75); /* Bild wird kleiner */
  }

  /* Entferne das hier aus deinem Code! */
  /*
  .bild-container.sticky-active {
    transform: scale(...);  ❌ NICHT MEHR VERWENDEN!
    height: ...;            ❌ NICHT MEHR VERWENDEN!
  }
  */
}






