* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  display: flex;
  height: 100vh;
  background-color: #121212;
  color: #e0e0e0;
  background-image: url('../assets/assets_DND/LandingPage/m2-res_1080p-ezgif.com-video-to-webp-converter.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Vollbild-Video-Hintergrund */
.bg-video {
    position: fixed;
  top: 0;
  left: var(--video-shift); /* ← hier justierst du die Verschiebung */
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -2;
  pointer-events: none;
    
 /* position: fixed;
 /* inset: 0;
 /* width: 100vw;
  height: 100vh;
  object-fit: cover;
  object-position: 30% center; /* 50% = Mitte, 70–80% = mehr nach rechts */
 /* z-index: -2;          /* hinter allem */
 /* pointer-events: none; /* blockiert keine Klicks */
}

/* Optional: leichte Abdunklung für bessere Lesbarkeit */
.bg-scrim {
  position: fixed;
  inset: 0;
  background: radial-gradient(1200px 800px at 50% 20%, rgba(0,0,0,.25), rgba(0,0,0,.55));
  z-index: -1;
}

/* Bewegungsreduktion respektieren */
@media (prefers-reduced-motion: reduce) {
  .bg-video { display: none; } /* Fallback: body-Background greift */
}

nav {
  width: 300px;
  background-color: rgba(20, 20, 20, 0.9);
  padding: 1rem;
  padding-right: 2rem; /* <--- das ergänzt */
  overflow-y: auto;
  border-right: 1px solid #333;
  height: 100vh; /* hier hinzufügen */
}

nav strong {
  font-size: 1.2rem;
  display: block;
  margin-bottom: 1rem;
}

nav a {
  display: block;
  margin-bottom: 0.5rem;
  color: #90caf9;
  text-decoration: none;
  transition: 0.2s;
  white-space: nowrap; /* verhindert Umbruch */
}

nav a:hover {
  color: #bbdefb;
  text-decoration: underline;
}

#content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;    /* wichtig für sticky */
  padding: 2rem;
  overflow: hidden; /* Scroll nur im sessionText */
  background-color: rgba(18, 18, 18, 0.85);
  backdrop-filter: blur(4px);
  border-left: 1px solid #333;

  max-width: 1000px;
  margin-left: 0;    /* linksbündig */
  margin-right: auto; /* rechts „offen“ */
  line-height: 1.6;
  word-wrap: break-word;
}

#header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background-color: rgba(18, 18, 18, 0.85);
  padding: 0.5rem 2rem;
  border-bottom: 1px solid #333;
  z-index: 10;
}

#header h2 {
  flex-grow: 1;
  margin: 0 1rem;
  font-size: 1.8rem;
  color: #ffcc80;
  text-align: center;
}

#header button {
  background: none;
  border: none;
  color: #90caf9;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1.2;
  text-align: center;
  user-select: none;
  width: 200px;
  padding: 0.2rem 0.5rem;
}

#header button:disabled {
  color: #555;
  cursor: default;
}

#header button span {
  display: block;
  font-size: 0.75rem;
  color: #bbdefb;
  margin-top: 0.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#sessionContent {
  flex-grow: 1;
  overflow-y: auto;
  margin-top: 1rem;
}

#menuHeader {
  position: sticky;
  top: 0;
  background-color: rgba(20, 20, 20, 0.95);
  padding-bottom: 0.5rem;
  z-index: 5;
}

#menuHeader a {
  display: block;
  margin-bottom: 0.5rem;
  color: #ffa726;
  text-decoration: none;
  font-weight: bold;
}

#menuHeader a:hover {
  color: #ffcc80;
  text-decoration: underline;
}

h2 {
  color: #ffcc80;
}

p {
  line-height: 1.6;
}
