/* Academy Search */
#academy { padding: 0px; }

.academy-section .academy-header {
  position: relative;
  width: 100vw;               /* echte Viewport-Breite */
  left: 50%;
  margin-left: -50vw;         /* zentriert den 100vw-Container */
  overflow: hidden;
}

/* Headergrafik: 360 px Freiraum oben bleibt erhalten, Bild bleibt unverändert */
.academy-section .academy-header img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.academy-section {
  padding-top: 0;     /* entfernt das Padding oberhalb des Headers */
}

.academy-search { text-align: center; margin-bottom: 1em; }
#video-search {
  width: 80%; max-width: 400px;
  padding: 0.5em 1em;
  margin-top: 1em;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 0.5em;
}

/* Video-Grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 1em;
}

/* Video-Card */
.video-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 0.5em;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.video-card img {
  width: 100%;
  object-fit: cover;
}
.video-card .info {
  padding: 0.75em;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.video-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5em;
  color: #333;
}
.video-card video {
  width: 100%;
  margin-bottom: 10px;
}
.video-card a.download {
  margin-top: auto;
  padding: 0.5em;
  background: #001742;
  color: #fff;
  text-decoration: none;
  border-radius: 0.25em;
  text-align: center;
}
.video-card a.download:hover {
  background: #218838;
}

/* Container für jedes Video + Beschreibung */
.academy-item {
  margin-bottom: 2em;       /* Abstand zwischen den Tutorials */
  text-align: left;         /* alle Texte linksbündig */
}

/* Responsives Video-Embed (16:9) */
.video-embed {
  position: relative;
  padding-bottom: 56.25%;   /* 16:9 Verhältnis */
  height: 0;
  overflow: hidden;
  margin-bottom: 0.5em;     /* etwas Abstand zum Text */
}
.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 12px;
}

/* Beschreibung unter jedem Video */
.video-card .video-desc {
  text-align: left;      /* Linksbündig */
  margin: 1em 0 2em;   /* etwas Abstand oben und unten */
  font-size: 0.9rem;     /* etwas kleinere Schrift */
  color: #555;           /* dezentes Grau */
}