/* ===============================
   PROJECTS WRAPPER
================================ */
.projects-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px 120px;
}

/* ===============================
   PROJECT GRID (ÜBERSICHT)
================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

/* ===============================
   PROJECT CARD
================================ */
.project-card {
  text-decoration: none;
  color: inherit;
}

.project-card-image {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--bg-section);
}

.card-image {
  width: 100%;
  height: auto;
  display: none;
}

body:not(.light) .card-dark {
  display: block;
}

body.light .card-light {
  display: block;
}

/* FALLBACK */
.project-card-fallback {
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px;
  min-height: 160px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover .project-card-image,
.project-card:hover .project-card-fallback {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}

/* ===============================
   ✅ FLOATING BACK BUTTON
   IDENTISCH ZUM THEME BUTTON
================================ */
.projects-back-button {
  position: fixed;
  left: 16px;
  bottom: calc(var(--footer-h) + 16px);

  width: 52px;
  height: 52px;
  border-radius: 50%;

  background: var(--bg-section);
  border: 1px solid var(--border);
  color: var(--text);

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 26px;
  font-weight: 600;
  line-height: 1;

  text-decoration: none;
  cursor: pointer;

  z-index: 2000;

  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  transition: transform 0.2s ease, background 0.2s ease;
}

.projects-back-button:hover {
  transform: translateX(-2px);
  background: var(--bg-card);
}

/* ===============================
   MOBILE
================================ */
@media (max-width: 600px) {
  .projects-wrapper {
    padding: 60px 16px 120px;
  }
}
/* ===============================
   VIDEO GRID
================================ */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

/* ===============================
   VIDEO CARD
================================ */
.video-card {
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}

/* RESPONSIVE IFRAME */
.video-embed {
  position: relative;
  padding-top: 56.25%; /* 16:9 */
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* TEXT */
.video-info {
  padding: 20px;
}

.video-info h3 {
  margin: 0 0 8px;
}

.video-info p {
  margin: 0;
  opacity: 0.8;
}

/* MOBILE */
@media (max-width: 600px) {
  .video-grid {
    gap: 24px;
  }
}