/* ========== DESIGN-VARIABLEN ========== */

:root {
  /* Dark theme (default) – High-Contrast */
  --bg-dark: #000000;
  --bg-dark-alt: #000000;
  --card-dark: #000000;
  --border-dark: #ffffff;

  --text-main-dark: #ffffff;
  --text-soft-dark: #ffffff;   /* keine Grautöne mehr */
  --text-muted-dark: #ffffff;

  /* Light theme – invertiert, ebenfalls High-Contrast */
  --bg-light: #ffffff;
  --bg-light-alt: #ffffff;
  --card-light: #ffffff;
  --border-light: #000000;

  --text-main-light: #000000;
  --text-soft-light: #000000;
  --text-muted-light: #000000;

  /* Accent – Lila */
  --accent: #8080ff;      /* r128 g128 b255 */
  --accent-soft: #8080ff; /* gleiche Farbe, nur Alias */
}

/* ========== RESET & BASIS ========== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  font-size: 15.5px;   /* FEINER! */
}

img {
  display: block;
}

/* Standard: Dark Theme */

body {
  background: var(--bg-dark);
  color: var(--text-main-dark);
}

/* Layout helper */

.container {
  width: 90%;
  max-width: 900px;
  margin: 0 auto;
}

/* ========== HEADER ========== */

.site-header {
  background: #000000;
  border-bottom: 1px solid var(--border-dark);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--accent); /* Beste Sicht in Lila */
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
}

.logo-img {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  object-fit: contain;
}

/* NAV */

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav a {
  color: var(--accent);  /* Navigationslinks in Lila */
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.9;
}

.nav a:hover {
  opacity: 1;
}

/* ========== HERO ========== */

.hero {
  padding: 4.5rem 0 3.5rem;
  background: var(--bg-dark); /* tiefschwarz */
}

.hero-inner {
  display: flex;
  align-items: center;
  min-height: 40vh;
}

.hero h1 {
  font-size: clamp(2.5rem, 4vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.hero-sub {
  font-size: 1rem;
  margin-top: 0.7rem;
  margin-bottom: 1rem;
  color: var(--text-main-dark);
  max-width: 34rem;
}

.hero-text {
  max-width: 36rem;
  margin-bottom: 2rem;
  color: var(--text-main-dark);
}

/* ========== BUTTONS ========== */

/* Erster Button: wie Link ohne Kapsel (HC-Look) */
.btn {
  display: inline-block;
  background: transparent;
  border: none;
  color: var(--accent);
  padding: 0;
  margin-right: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
}

.btn:hover {
  text-decoration: underline;
}

/* Zweiter Button: Vision Lab / Tools mit Lila-Rahmen */
.btn.ghost {
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 0.5rem 1.2rem;
  color: var(--accent);
}

/* ========== SECTIONS ========== */

.section {
  padding: 3.2rem 0;
  background: var(--bg-dark);  /* überall schwarz */
}

.section.alt {
  background: var(--bg-dark);  /* kein anderer Ton */
}

.section h2 {
  font-size: 1.8rem;
  margin-bottom: 1.3rem;
}

.section p {
  max-width: 45rem;
  margin-bottom: 0.8rem;
}

/* ========== LISTS ========== */

.list {
  margin: 0.8rem 0 1.5rem;
  padding-left: 1.2rem;
}

.list li {
  margin-bottom: 0.35rem;
}

/* ========== CARDS ========== */

.cards {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.card {
  background: var(--card-dark);  /* schwarz */
  border-radius: 14px;
  border: 1px solid var(--border-dark);  /* weißer Rand */
  padding: 1.4rem 1.5rem;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

/* Hinweis-Karte ohne Grün, nur Weiß/Schwarz */
.card.note {
  background: #000000;
  border-left: 3px solid #ffffff;   /* weiß im Dark Mode */
}

/* ========== EXPERIMENTS NOTE ========== */

.experiments-note {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.experiments-note a {
  color: var(--accent);
  text-decoration: none;
}

.experiments-note a:hover {
  text-decoration: underline;
}

/* ========== VIDEO GRID ========== */

.video-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.video-embed {
  margin-top: 0.8rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-dark);
  background: #000;
}

.video-embed iframe {
  width: 100%;
  height: 220px;  /* unverändert */
  border: none;
}

/* ========== CONTACT ========== */

.contact-email a {
  color: var(--accent);
  text-decoration: none;
  font-size: 1.05rem;
}

.contact-email a:hover {
  text-decoration: underline;
}

/* ========== FOOTER ========== */

.site-footer {
  border-top: 1px solid var(--border-dark);
  background: #000000;
  padding: 1.4rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-main-dark); /* kein Grau mehr */
}

.footer-social {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-main-dark);
}

.footer-social a {
  text-decoration: none;
  color: var(--accent);
}

.footer-social a:hover {
  text-decoration: underline;
}

/* ========== GLOBAL LINKS ========== */

a {
  color: var(--accent);   /* Standard-Lila */
}

/* ========== LIGHT THEME (System-Preference) ========== */

@media (prefers-color-scheme: light) {
  body {
    background: var(--bg-light);
    color: var(--text-main-light);
  }

  .site-header {
    background: #ffffff;
    border-bottom-color: var(--border-light);
  }

  .logo {
    color: var(--accent);       /* auch im Light Mode lila */
  }

  .nav a {
    color: var(--accent);
  }

  .hero {
    background: #ffffff;
  }

  .hero-sub {
    color: var(--text-main-light);
  }

  .hero-text {
    color: var(--text-main-light);
  }

  .btn {
    color: var(--accent);
  }

  .btn.ghost {
    border-color: var(--accent);
    color: var(--accent);
  }

  .section {
    background: var(--bg-light);
  }

  .section.alt {
    background: var(--bg-light-alt);
  }

  .card {
    background: var(--card-light);
    border-color: var(--border-light);
  }

  .card.note {
    background: #ffffff;
    border-left-color: #000000;  /* im Light Mode schwarz */
  }

  .video-embed {
    border-color: var(--border-light);
  }

  .site-footer {
    background: #ffffff;
    border-top-color: var(--border-light);
    color: var(--text-main-light);   /* jetzt schwarz statt grau */
  }

  .footer-social {
    color: var(--text-main-light);
  }

  a {
    color: var(--accent);
  }
}

/* ========== RESPONSIVE ========== */

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero-inner {
    min-height: auto;
    padding-top: 1rem;
  }

  .video-embed iframe {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .video-embed iframe {
    height: 180px;
  }
}

/* ========== VIDEO ARCHIVE GRID ========== */
.video-archive {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.video-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.15s ease;
}
.video-card:hover { opacity: 0.85; }
.video-card .thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #111;
}
.video-card .vc-body { padding: 0.9rem 1.1rem 1.1rem; }
.video-card .vc-title { font-weight: 600; line-height: 1.35; }
.video-card .vc-meta { font-size: 0.8rem; opacity: 0.7; margin-top: 0.35rem; }

/* ========== PORTRAIT (SHORTS) EMBEDS ========== */
.video-embed.portrait {
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}
.video-embed.portrait iframe {
  height: auto;
  aspect-ratio: 9 / 16;
}
/* Side-by-side shelf for featured shorts on the homepage */
.video-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.video-row .card {
  flex: 1 1 300px;
  max-width: 390px;
  margin-top: 0;
}

/* ========== VIDEO LIST (ARCHIVE INDEX) ========== */
.video-list { list-style: none; padding-left: 0; margin-top: 1.5rem; }
.video-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.2rem 1.25rem;
  padding: 0.55rem 0;
}
.video-list a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  line-height: 1.4;
}
.video-list a:hover { text-decoration: underline; }
.video-list .vl-meta {
  opacity: 0.6;
  font-size: 0.85rem;
  white-space: nowrap;
}
