:root{
  --bg:#B70D20;              /* Vorgabe */
  --text:#fff;
  --muted:#ffe4e7;
  --card:#b30c1f;            /* leicht dunkler als bg */
  --ink:#120406;             /* sehr dunkles Rotbraun für Linien/Schatten */
  --radius:14px;
  --maxw:1440px;            /* Vorgabe: maximale Seitenbreite */
}

h1 {
    text-align: center;
}

/* Grundlayout */
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial;
  /* background:var(--bg); */
  color:var(--text);

  /* dynamischer Verlauf */
 background: linear-gradient(180deg, #4a0008, #B70D20);
  background-attachment: fixed; /* erzeugt den "Parallax"-Effekt */
}

@keyframes gradientScroll {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.container{width:min(var(--maxw), 92%); margin-inline:auto}

/* Navbar (sticky am Seitenanfang) */
.navbar{
  position:sticky; top:0; z-index:10;
  background:rgba(0,0,0,.18);
  backdrop-filter:saturate(1.4) blur(6px);
  border-bottom:1px solid #ffffff33;
}
.nav-inner {
  display: flex;
  justify-content: center;  /* Alles mittig ausrichten */
  padding: 14px 0;
}

.nav-list {
  display: flex;flex-wrap:wrap;          /* <-- wichtig: erlaubt Umbruch */
  justify-content:center;  /* zentriert auch bei 2+ Zeilen */
  gap:18px 22px;            /* mehr Abstand zwischen den Reitern */
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
    display:block;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(14px, 1.6vw + 0.2rem, 25px); /* skaliert zwischen 14px und 25px */
  padding:8px 12px;
  border-radius: 10px;
  transition: background 0.2s;
}

.nav-list a:hover,
.nav-list a:focus {
  background: #ffffff22;
  outline: none;
}
.brand{
  color:#fff; text-decoration:none; font-weight:700; letter-spacing:.2px;
}

.brand img {
  height: 40px;   /* gewünschte Höhe des Logos */
  width: auto;    /* damit Seitenverhältnis stimmt */
  display: block; /* verhindert extra Abstand unten */
}

.nav-list{display:flex; gap:18px; list-style:none; margin:0; padding:0}
.nav-list a{
  color:#fff; text-decoration:none; font-weight:600; font-size:15px;
  padding:8px 10px; border-radius:10px;
}
.nav-list a:hover, .nav-list a:focus{background:#ffffff22; outline:none}

/* Abschnitte */
.section{padding:36px 0}

.section-title{
  margin:0 0 16px;
  font-size: clamp(22px, 2.4vw, 32px);
  text-transform: uppercase;
  letter-spacing:.6px;
  border-left:6px solid #ffffffcc;
  padding-left:12px;
}

.home-section .lead {
  text-align: center;
  max-width: 1200px;   /* damit die Zeilen nicht zu breit werden */
  margin: 0 auto;     /* mittig zentrieren */
}

.lead{max-width:60ch; color:var(--muted); line-height:1.5}

.home-logo {
  text-align: center;
  margin-bottom: 20px;
}

.home-logo img {
  max-width: 400px; /* gewünschte Größe */
  width: 100%;
  height: auto;
  display: inline-block;
}

/* Video-Grid – mittig, responsiv */
.video-grid {
  display:grid; 
  gap:16px;
  grid-template-columns: repeat(3, 1fr); /* Desktop jetzt 3 Spalten */
  justify-items:center;
}

/* Karten / Thumbnails */
.card{
  width:100%; 
  max-width: 480px;          /* größer – passt besser zu 3 Spalten */
  background:var(--card);
  border:1px solid #ffffff2a;
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease; /* sanfter Übergang */
}

.card:hover {
  transform: scale(1.03); /* leicht größer */
  box-shadow:0 12px 40px rgba(0,0,0,.35); /* stärkerer Schatten */
}

.card button{all:unset; display:block; cursor:pointer}

.thumb-wrap{position:relative; aspect-ratio:16/9; background:#000}

.thumb-wrap img{width:100%; height:100%; object-fit:cover; display:block}

.play-badge{
  position:absolute; right:10px; bottom:10px;
  padding:6px 10px; border-radius:999px;
  background:rgba(0,0,0,.55); color:#fff; font-weight:700; font-size:13px;
  border:1px solid #ffffff33;
}

.card-body{padding:10px 12px}

.card-meta{margin:6px 0 0; font-weight:700}

.card-title{margin:0; color:#fff; opacity:.9; font-size:14px; font-weight: 400;}

/* Modal */
.modal[hidden]{display:none}
.modal{position:fixed; inset:0; z-index:100}
.modal-backdrop{position:absolute; inset:0; background:rgba(0,0,0,.7); backdrop-filter: blur(2px)}
.modal-dialog{
  position:relative; width:min(1080px, 92%); margin:6vh auto; background:#000;
  border-radius:16px; border:1px solid #ffffff33; overflow:hidden;
  box-shadow: 0 14px 60px rgba(0,0,0,.6);
}
.modal-close{
  position:absolute; top:8px; right:10px;
  width:40px; height:40px; border-radius:10px;
  background:#111; color:#fff; border:1px solid #ffffff33;
  font-size:26px; line-height:36px; text-align:center;
}
.player-slot{aspect-ratio:16/9; width:100%; background:#000}

/* Footer */
.site-footer{border-top:1px solid #ffffff33; margin-top:28px; padding:18px 0 40px; color:#fff}

/* Fokus */
.card:focus-within, .card button:focus{outline:2px solid #fff; outline-offset:2px}

/* Scroll-Offset für sticky Navbar */
.section{scroll-margin-top: 76px}

/* Breakpoints */
@media (max-width: 1200px){
  .video-grid{grid-template-columns: repeat(3, 1fr)}
}
@media (max-width: 900px){
  .video-grid{grid-template-columns: repeat(2, 1fr)}
  .nav-inner{ padding:12px 0; }
  .nav-list{ gap:14px 16px; }
  .nav-list a{ font-size: clamp(14px, 2.2vw + .1rem, 20px); padding:8px 10px; }
}
@media (max-width: 640px){
    .nav-inner{ padding:10px 0; }
  .nav-list{ gap:10px 12px; }
  .nav-list a{ font-size: 16px; padding:6px 10px;  }
  .nav-inner{flex-wrap:wrap; gap:6px}
  .video-grid{grid-template-columns: 1fr} /* Vorgabe: Mobile genau 1 Video pro Zeile */
  .video-grid{
    grid-template-columns: 1fr;
    justify-items: stretch;   /* statt center */
  }
  .card{
    max-width: none;          /* Begrenzung entfernen */
    width: 100%;
  }
}