/* Musik Video Generator – Homepage. Farben wie im Programm (hell). */
:root {
  --paper: #eef2f6;      /* Hintergrund wie im Programm */
  --card: #ffffff;
  --ink: #1b2533;
  --muted: #5d6a7a;
  --line: #d6dee7;
  --blue: #1f6aa5;       /* MVG-Blau */
  --blue-dark: #185889;
  --blue-soft: #e4eef8;
  --beat: #e0a53f;       /* Beat-Striche */
  --radius: 14px;
  --wrap: 1120px;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--beat); outline-offset: 3px; border-radius: 8px; }
code { font-family: Consolas, "Cascadia Mono", monospace; font-size: .92em; background: var(--blue-soft); padding: 1px 6px; border-radius: 5px; }

h1, h2, h3 { margin: 0; line-height: 1.08; font-variation-settings: "wdth" 118; }
h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -.01em; margin-bottom: 40px; }
h3 { font-size: 23px; font-weight: 750; margin-bottom: 10px; }

/* Buttons */
.btn {
  display: inline-block; background: var(--blue); color: #fff; text-decoration: none;
  font-weight: 700; padding: 14px 24px; border-radius: 10px; transition: background .15s;
}
.btn:hover { background: var(--blue-dark); }
.btn.small { padding: 8px 16px; font-size: 15px; }
.btn.big { padding: 17px 30px; font-size: 18px; }

/* Kopfzeile */
.top {
  max-width: var(--wrap); margin: 0 auto; padding: 22px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-weight: 750; font-size: 18px; }
.brand img { border-radius: 8px; }
.top-links { display: flex; align-items: center; gap: 26px; }
.top-links a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 15px; }
.top-links a:not(.btn):hover { color: var(--ink); }

main > section { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* Kopfbereich */
.hero { padding-top: 56px !important; padding-bottom: 110px !important; }
.hero h1 {
  font-size: clamp(54px, 9.5vw, 128px); font-weight: 900; letter-spacing: -.035em; line-height: .92;
  font-variation-settings: "wdth" 125; max-width: 10ch;
}
.lead { font-size: 20px; color: var(--muted); max-width: 36em; margin: 28px 0 32px; }
.hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero-meta { color: var(--muted); font-size: 15px; }

/* Die Spur: Clips rasten auf den Beats ein */
.track {
  position: relative;
  margin: 64px 0 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px 14px; box-shadow: 0 18px 40px -24px rgba(27, 37, 51, .35);
}
.track-head { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.track-song { font-weight: 700; color: var(--ink); }
.track-song::before { content: "♫"; color: var(--blue); margin-right: 8px; }
.track-clips { position: relative; height: 96px; z-index: 2; }
.clip {
  position: absolute; top: 0; bottom: 0; padding: 0 2px; background-size: cover; background-position: center;
  background-clip: content-box; border-radius: 8px;
  animation: snap .55s cubic-bezier(.2, 1.4, .4, 1) both;
}
@keyframes snap { from { transform: translateY(-46px); opacity: 0; } to { transform: none; opacity: 1; } }
.track-wave {
  position: relative; height: 70px; margin-top: 10px; display: flex; align-items: center; gap: 2px;
}
.track-wave span { flex: 1; background: #b9cfe4; border-radius: 2px; min-height: 3px; }
.track-wave i {
  position: absolute; top: -106px; bottom: 0; width: 2px; margin-left: -1px; background: var(--beat);
  opacity: .8; border-radius: 1px; z-index: 1;
}
.track figcaption { font-size: 14px; color: var(--muted); margin-top: 12px; }

/* So geht's: eine Spur nach unten, jeder Schritt sitzt auf einem Strich */
.steps { padding-bottom: 110px !important; }
.step {
  display: grid; grid-template-columns: 96px minmax(0, .8fr) minmax(0, 2fr); gap: 32px; align-items: start;
  padding: 40px 0; border-top: 2px solid var(--line); position: relative;
}
.step:last-child { border-bottom: 2px solid var(--line); }
.step::before {
  content: ""; position: absolute; top: -2px; left: 0; width: 64px; height: 4px; background: var(--beat); border-radius: 2px;
}
.step-mark { display: flex; flex-direction: column; gap: 4px; }
.step-no { font-size: 56px; font-weight: 900; line-height: 1; color: var(--blue); font-variation-settings: "wdth" 125; }
.step-name { font-size: 15px; color: var(--muted); font-weight: 600; }
.step-text p { margin: 0; color: var(--muted); }
.shot {
  border-radius: 12px; border: 1px solid var(--line); background: var(--card);
  box-shadow: 0 14px 30px -20px rgba(27, 37, 51, .4);
}

/* Funktionen */
.features { padding-bottom: 110px !important; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 56px; margin: 0; }
.feature-list div { padding-left: 18px; border-left: 3px solid var(--blue); }
.feature-list dt { font-weight: 750; font-size: 19px; margin-bottom: 4px; }
.feature-list dd { margin: 0; color: var(--muted); }

/* Download */
.download {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center;
  background: var(--blue); color: #fff; border-radius: 22px; padding: 56px !important; margin-bottom: 70px !important;
  max-width: calc(var(--wrap) - 48px) !important;
}
.download h2 { margin-bottom: 18px; }
.download p { color: #d9e7f4; margin: 0 0 28px; max-width: 32em; }
.download code { background: rgba(255, 255, 255, .16); color: #fff; }
.download .btn { background: #fff; color: var(--blue); }
.download .btn:hover { background: var(--blue-soft); }
.download-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; font-size: 15px; color: #d9e7f4; }
.download-facts strong { display: block; color: #fff; font-size: 16px; }

/* Fußzeile */
.foot {
  max-width: var(--wrap); margin: 0 auto; padding: 26px 24px 40px; display: flex; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 15px;
}
.foot p { margin: 0; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* Schmale Bildschirme */
@media (max-width: 900px) {
  .step { grid-template-columns: 1fr; gap: 16px; }
  .step-mark { flex-direction: row; align-items: baseline; gap: 14px; }
  .step-no { font-size: 44px; }
  .download { grid-template-columns: 1fr; gap: 32px; padding: 34px 26px !important; margin: 0 16px 50px !important; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .top { padding: 16px; }
  .top-links a:not(.btn) { display: none; }
  main > section { padding: 0 16px; }
  .hero { padding-top: 28px !important; padding-bottom: 70px !important; }
  .lead { font-size: 18px; }
  .track { margin-top: 40px; padding: 14px 12px 10px; }
  .track-clips { height: 54px; }
  .track-wave { height: 46px; }
  .track-wave i { top: -64px; }
  .feature-list { grid-template-columns: 1fr; gap: 26px; }
  .foot { padding: 22px 16px 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .clip { animation: none; }
  html { scroll-behavior: auto; }
}
@media (max-width: 640px) {
  .brand { font-size: 16px; white-space: nowrap; }
  .brand img { width: 28px; height: 28px; }
}

/* Beispielvideo (lädt YouTube erst nach Klick) */
.example { padding-bottom: 110px !important; }
.video {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  background: var(--ink); box-shadow: 0 18px 40px -24px rgba(27, 37, 51, .45);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-start {
  position: absolute; inset: 0; width: 100%; border: 0; cursor: pointer; color: #fff; font: inherit;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: linear-gradient(rgba(27, 37, 51, .08), rgba(27, 37, 51, .45)), url(assets/poster.jpg) center / cover;
}
.video-play {
  width: 88px; height: 88px; border-radius: 50%; background: var(--blue); position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: transform .15s;
}
.video-play::after {
  content: ""; position: absolute; left: 35px; top: 26px;
  border-left: 28px solid #fff; border-top: 18px solid transparent; border-bottom: 18px solid transparent;
}
.video-start:hover .video-play { transform: scale(1.07); }
.video-start:focus-visible { outline: 3px solid var(--beat); outline-offset: -6px; }
.video-label { font-weight: 750; font-size: 20px; }
.video-note { font-size: 14px; opacity: .85; }
@media (max-width: 640px) {
  .video-play { width: 64px; height: 64px; }
  .video-play::after { left: 25px; top: 18px; border-left-width: 20px; border-top-width: 14px; border-bottom-width: 14px; }
  .video-label { font-size: 17px; }
  .video-note { display: none; }
}

/* Handy: oben rechts MVG Mobil statt Download (die Windows-Version läuft dort ohnehin nicht) */
.only-mobile { display: none !important; }
@media (max-width: 640px) {
  .only-desktop { display: none !important; }
  .only-mobile { display: inline-block !important; }
}
