.header-balken {
    width: calc(100vw - 16px);
    height: 50vh;
    display: flex;
    flex-direction: column;
    margin: 8px 8px 10% 8px;
  }
  
  /* Haupt-Container, der beide Bereiche umschließt */
  .content-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
  }
  
  .kurz-text {
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--dunkelbraun);
    text-align: center;
    margin: 0;
    flex: 1;
    line-height: 1.2;
    display: flex;
    align-items: flex-end;
  }
  
  /* Der umschließende Kasten für das Login */
  #login-bereich {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh; /* Zentriert die Login-Box optisch auf der Seite */
  }
  
  /* Die eigentliche Box, in der die Eingabefelder liegen */
  .login-box {
    width: 100%;
    max-width: 400px; /* Verhindert, dass die Felder zu breit werden */
    display: flex;
    flex-direction: column; /* Stapelt Inputs und Button untereinander */
    gap: 15px; /* Erzeugt automatisch Abstand zwischen den Elementen */
  }
  
  /* Die Eingabefelder (E-Mail und Passwort) */
  #email-feld,
  #passwort-feld {
    width: 100%;
    height: 30px;
    box-sizing: border-box; /* Wichtig, damit Padding das Feld nicht verzerrt */
    border: none;
    background-color: var(--rosa-transparent);
    color: var(--dunkelbraun);
  }
  
  /* Der Login-Absende-Button */
  #login-button {
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    background-color: var(--beige);
    color: var(--dunkelbraun);
    border: none;
    height: 20px;
  }
  
  #login-button:hover {
    background-color: var(--beige);
    color: var(--rosa);
    font-weight: bold;
  }
  
  /* Die rote Supabase-Fehlermeldung */
  #fehler-anzeige {
    color: #ff0000; /* Standardmäßig rot für Fehler */
    margin: 10px 0 0 0;
    font-size: 0.9rem;
  }
  
  /* 3. GESCHÜTZTER BEREICH (Sichtbar, wenn eingeloggt) */
  
  /* Der umschließende Container für den geschützten Inhalt */
  #geschuetzter-bereich {
    width: 100%;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .kurz-text-intern {
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--dunkelbraun);
    text-align: center;
    margin: 0;
    flex: 1;
}
  /* Der Container um das PDF-Fenster herum */
  .pdf-anzeige-container {
    width: 100%;
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  
  .pdf-download-btn {
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--beige);
    background-color: var(--rosa);
    text-decoration: none;
    text-align: center;
    padding: 20px 32px;
    border-radius: 12px;
    transition: background-color 0.2s ease, transform 0.2s ease;
    width: 100%;
    max-width: 400px;
  }
  
  .pdf-download-btn:hover {
    background-color: var(--hellbraun);
    transform: scale(1.02);
  }
  
  /* Das eingebettete PDF (iframe) */
  #pdf-embed {
    display: block;
    width: 100%;
    height: 80vh; /* Nutzt 80% der verfügbaren Bildschirmhöhe zum Lesen */
    min-height: 600px; /* Verhindert, dass das PDF auf Tablets/Handys zu klein wird */
    border: none; /* Entfernt den hässlichen Standard-Rahmen des Browsers */
    box-sizing: border-box;
  }
  
  .video-gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 240px));
    gap: 1rem;
    margin: 1.5rem 0;
    justify-content: center;
  }
  @media (max-width: 1200px) { .video-gallery-grid { grid-template-columns: repeat(3, minmax(0, 180px)); } }
  @media (max-width: 720px)  { .video-gallery-grid { grid-template-columns: repeat(2, minmax(0, 180px)); } }
  @media (max-width: 480px)  { .video-gallery-grid { grid-template-columns: 1fr; max-width: 280px; margin-left: auto; margin-right: auto; } }
  
  .video-card {
    background: #111;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  }
  .video-card video { width: 100%; aspect-ratio: 9/16; object-fit: cover; display: block; background: #000; }
  .video-card-footer { display: flex; align-items: center; justify-content: space-between; padding: 0.5rem 0.7rem; background: #fff; }
  .video-card-name {
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 0.75rem;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 60%;
  }
  
  .video-download-btn {
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--beige);
    background: var(--rosa);
    padding: 0.3rem 0.55rem;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
  }
  
  .video-download-btn:hover {
    background: var(--hellbraun);
    transform: scale(1.05);
  }
  /* Der Ausloggen-Button */
  .logout-button {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
  #logout-button {
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: bold;
    font-size: 1rem;
    color: var(--beige);
    background-color: var(--hellbraun);
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.2s ease, transform 0.2s ease;
  }
  
  #logout-button:hover {
    background-color: var(--dunkelbraun);
    transform: scale(1.03);
  }

  @media (max-width: 900px) {
    .header-balken {
      height: 45vh;
    }
  
    .kurz-text {
      font-size: 1.3rem;
    }
  
    .login-box {
      max-width: 360px;
    }
  
    #geschuetzter-bereich {
      min-height: 70vh;
    }
  
    .kurz-text-intern {
      font-size: 1.3rem;
    }
  
    .pdf-download-btn {
      font-size: 1.05rem;
      padding: 18px 28px;
      max-width: 360px;
    }
  
    #pdf-embed {
      height: 75vh;
      min-height: 500px;
    }
  
    .video-card-name {
      font-size: 0.7rem;
    }
  }

  @media (max-width: 600px) {
    .header-balken {
      width: calc(100vw - 16px);
      height: auto;
      margin: 8px 8px 6% 8px;
    }
  
    .kurz-text {
      font-size: 1rem;
    }
  
    .login-box {
      max-width: 320px;
      gap: 12px;
      padding: 0 16px;
    }
  
    #email-feld,
    #passwort-feld {
      height: 34px;
    }
  
    #login-button {
      height: 34px;
      font-size: 0.95rem;
    }
  
    #fehler-anzeige {
      font-size: 0.85rem;
      text-align: center;
      padding: 0 16px;
    }
  
    #geschuetzter-bereich {
      min-height: 70vh;
      padding: 0 16px;
    }
  
    .kurz-text-intern {
      font-size: 1.1rem;
    }
  
    .pdf-anzeige-container {
      margin: 20px 0;
      gap: 12px;
    }
  
    .pdf-download-btn {
      font-size: 1rem;
      padding: 16px 20px;
      max-width: 100%;
    }
  
    #pdf-embed {
      height: 65vh;
      min-height: 380px;
    }
  
    .video-card-name {
      font-size: 0.68rem;
    }
  
    .video-download-btn {
      font-size: 0.7rem;
      padding: 0.25rem 0.45rem;
    }
  
    #logout-button {
      font-size: 0.95rem;
      padding: 10px 20px;
    }
  }