/* ==========================================
   BASIS-STYLES (vorhanden, unverändert)
   ========================================== */

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: #0f172a;
  color: #e2e8f0;
  margin: 0;
  padding: 2rem;
}

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

h1 {
  color: #22d3ee;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.subtitle {
  color: #94a3b8;
  margin-bottom: 2rem;
}

.disclaimer {
  background: #334155;
  border-left: 4px solid #f59e0b;
  padding: 1rem;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
  color: #fcd34d;
  font-size: 0.95rem;
}

.download-section {
  margin-top: 2rem;
  text-align: center;
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: #22d3ee;
  color: #0f172a;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  transition: background 0.2s;
}

.btn:hover {
  background: #06b6d4;
}

.lang-btn {
  background: transparent;
  border: 1px solid #475569;
  color: #94a3b8;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.lang-btn:hover {
  background: #334155;
  color: #e2e8f0;
}

/* ==========================================
   NEUES LAYOUT: VIDEO + INFO NEBENEINANDER
   ========================================== */

/* Haupt-Container für Video und Info */
.main-content {
  display: flex;
  gap: 2rem;
  min-height: 75vh;            /* nimmt fast den ganzen Bildschirm ein */
  margin: 2rem 0;
}

/* Beide Boxen gleich groß */
/* Beide Boxen nebeneinander */
.video-box {
  flex: 0 0 auto;             /* Box passt sich der Breite des Videos an, statt 50% zu erzwingen */
  max-width: 350px;           /* Verhindert, dass das Video auf riesigen Bildschirmen zu gigantisch wird */
  background: #1e293b;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.info-box {
  flex: 1;                     /* Die Info-Box nimmt sich den restlichen Platz */
  background: #1e293b;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

/* Video füllt seine Box sauber aus */
.video-box video {
  width: 100%;
  height: auto;               /* Lässt das Video seine natürliche Hochformat-Form behalten */
  border-radius: 8px;
  display: block;
}

/* Inhalte der Info-Box scrollbar, falls zu lang */
.info-box {
  overflow-y: auto;
}

/* Sync-Inhalte flexibel gestalten */
#sync-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

#sync-title {
  color: #22d3ee;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  flex-shrink: 0;
}

#sync-text {
  line-height: 1.6;
  color: #cbd5e1;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

#sync-images {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  flex: 1;
  min-height: 0;
  margin-top: auto;           /* schiebt Bilder nach unten, wenn Platz */
  align-items: flex-start;
}

#sync-images img {
  max-width: 45%;
  border-radius: 8px;
  border: 1px solid #475569;
  cursor: zoom-in;
  transition: all 0.3s ease;
}

/* Expandierter Zustand */
#sync-images.has-expanded {
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
}

#sync-images.has-expanded img:not(.expanded) {
  display: none;
}

#sync-images img.expanded {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: zoom-out;
}

.github-section {
  background: #1e293b;
  border-radius: 12px;
  padding: 1.2rem 1.8rem;
  margin: 2rem 0;
  text-align: center;
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.6;
}

.github-section a {
  color: #22d3ee;
  text-decoration: none;
  font-weight: bold;
}

.github-section a:hover {
  color: #06b6d4;
  text-decoration: underline;
}

/* Responsives Verhalten für schmale Fenster */
@media (max-width: 768px) {
  .main-content {
    flex-direction: column;
    min-height: auto;
  }
  .video-box,
  .info-box {
    max-height: none;
    overflow-y: visible;
  }
}