/* 1. Lokalen Quicksand-VariableFont einbinden */
@font-face {
  font-family: "Quicksand";
  src: url("fonts/Quicksand-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
small {
  font-size: 1rem;
}
/* 2. Globale Schriftart und Grundlayout */
html,
body {
  font-family: "Quicksand", system-ui, sans-serif;
  overflow-x: hidden;
  background: #181818;
  margin: 0;
  padding: 0;
  color: #fff;
}

/* 3. Standard-Links im Text: immer weiß und unterstrichen */
a {
  color: #fff;
  text-decoration: underline;
  font-family: "Quicksand", system-ui, sans-serif;
  transition: color 0.2s;
}

/* 4. Kopfzeile */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: rgba(24, 24, 24, 0.97);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10000;
  padding: 0 32px;
  box-sizing: border-box;
  border-bottom: 1px solid #222;
}
.logo {
  color: #fff;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  user-select: none;
  font-family: "Quicksand", system-ui, sans-serif;
}
.header-links {
  display: flex;
  gap: 28px;
}
.header-links a {
  color: #fff;
  text-decoration: none;
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
  position: relative;
  padding: 4px 0;
  cursor: pointer;
  font-family: "Quicksand", system-ui, sans-serif;
}
.header-links a:hover,
.header-links a:focus {
  color: #00cfff;
  text-decoration: underline;
}
/* Platz für den Header schaffen */
.header-space {
  height: 56px;
  width: 100%;
}

/* Masonry-Grid */
.masonry {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 16px;
  box-sizing: border-box;
}
.masonry-item .image-link {
  display: block;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  outline: none;
  height: 100%;
  min-height: 0;
}
.masonry-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  transition: transform 0.4s cubic-bezier(0.4, 1.6, 0.4, 1), filter 0.3s;
  will-change: transform;
}
.masonry-item .image-link:hover img,
.masonry-item .image-link:focus img {
  transform: scale(1.06);
  filter: brightness(0.95);
}
.masonry-item .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s;
  border-radius: 8px;
  pointer-events: none;
}
.masonry-item .video-title {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-title {
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.3s;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  pointer-events: none;
  padding: 0 16px;
  text-align: center;
  font-family: "Quicksand", system-ui, sans-serif;
}
.masonry-item .image-link:hover .overlay,
.masonry-item .image-link:focus .overlay {
  background: rgba(0, 0, 0, 0.3);
}
.masonry-item .image-link:hover .video-title,
.masonry-item .image-link:focus .video-title {
  opacity: 1;
}

/* Video- und Text-Overlay */
.video-modal,
.text-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-modal[style*="display: none"],
.text-modal[style*="display: none"] {
  pointer-events: none;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}
.video-modal-content,
.text-modal-content {
  position: relative;
  z-index: 1;
  background: none;
  border-radius: 12px;
  padding: 0;
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.video-wrapper {
  width: 80vw;
  max-width: 800px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}
.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  border-radius: 12px;
}
.text-content {
  background: #1a1a1a;
  color: #fff;
  padding: 40px;
  border-radius: 12px;
  max-width: 700px;
  max-height: 80vh;
  overflow-y: auto;
  width: 70vw;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  font-family: "Quicksand", system-ui, sans-serif;
}
.text-content h2 {
  margin-top: 0;
  font-size: 2.2rem;
  color: #00cfff;
  font-family: "Quicksand", system-ui, sans-serif;
}
.text-content p {
  line-height: 1.6;
  font-size: 1.1rem;
  font-family: "Quicksand", system-ui, sans-serif;
}

/* Responsive Design */
@media (max-width: 900px) {
  small {
    font-size: 0.5rem;
  }
  .header {
    padding: 0 10px;
    height: 80px;
  }
  .header-space {
    height: 48px;
  }
  .logo {
    font-size: 1.05rem;
  }
  .header-links a {
    font-size: 0.5rem;
  }
  .masonry {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 8px;
  }
  .video-wrapper {
    width: 98vw;
    max-width: 98vw;
  }
  .masonry-item .video-title {
    font-size: 1.2rem;
    padding: 0 6px;
  }
  .text-content {
    width: 90vw;
    padding: 20px;
  }
}
@media (max-width: 500px) {
  .header-links {
    gap: 14px;
  }
  .logo {
    font-size: 0.95rem;
  }
}

/* DSGVO Zwei-Klick-Overlay */
.video-consent-overlay {
  position: absolute;
  inset: 0;
  background: rgba(24, 24, 24, 0.96);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  border-radius: 12px;
  padding: 32px 16px;
  text-align: center;
}
.video-consent-overlay p {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 20px;
  margin-top: 0;
  font-family: "Quicksand", system-ui, sans-serif;
}
.video-consent-btn {
  background: #00cfff;
  color: #181818;
  border: none;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 12px 28px;
  cursor: pointer;
  transition: background 0.2s;
  font-family: "Quicksand", system-ui, sans-serif;
}
.video-consent-btn:hover,
.video-consent-btn:focus {
  background: #0099bb;
  color: #fff;
}
