/* style.css – One Pager modern dark */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;700&display=swap');

:root {
  --bg: #0d0d0d;
  --text: #f4f4f4;
  --accent: #00ffd1;
  --muted: #888;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-family: 'Poppins', sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

header {
  position: fixed;
  width: 100%;
  background: #111;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 999;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

header h1 {
  color: var(--accent);
  font-size: 1.4rem;
}

nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: 0.3s;
}

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

section {
  padding: 6rem 2rem 4rem;
  max-width: 1000px;
  margin: auto;
}

section h2 {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

section p,
section li {
  color: var(--text);
  opacity: 0.9;
}

ul {
  list-style: none;
  padding-left: 0;
}

ul li {
  margin-bottom: 1rem;
}

.button {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: #000;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  transition: 0.3s;
}

.button:hover {
  background: #00e2b5;
}

footer {
  text-align: center;
  padding: 3rem 2rem 2rem;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 4rem;
  border-top: 1px solid #333;
}

#start {
  padding-top: 10rem; /* damit es nicht hinter dem Header hängt */
}


#media {
  padding-top: 6rem;
}

.video-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.video-frame {
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
  background: #000;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.video-frame:hover {
  transform: scale(1.03);
  box-shadow: 0 0 20px var(--accent);
}

.video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Handy-Rahmen (für Hochkant) */
.video-frame.phone {
  width: 250px;
  height: 500px;
  border: 8px solid #222;
  border-radius: 40px;
}

/* Monitor-Rahmen (für Querformat) */
.video-frame.monitor {
  height: 100%;
  width: 100%;
  object-fit: contain;
  max-width: 640px;
  aspect-ratio: 16 / 9;
  border: 12px solid #333;
  border-radius: 10px;
  position: relative;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-frame.monitor::before {
  content: '';
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 15px;
  background: #222;
  border-radius: 8px;
}

#video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#video-overlay.hidden {
  display: none;
}

.overlay-content {
  position: relative;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
}

#overlay-video {
  width: 100%;
  height: auto;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(0,0,0,0.7);
  object-fit: contain;
}

.close-btn {
  position: absolute;
  top: -50px;
  right: 0;
  font-size: 2rem;
  color: var(--accent);
  cursor: pointer;
  user-select: none;
}

@media (max-width: 600px) {
  .close-btn {
    top: -30px;
    right: -10px;
    font-size: 1.5rem;
  }
}

.email-box {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.2rem;
  color: var(--accent);
  flex-wrap: wrap;
}

.button.small {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  transform: translateY(-10px);
}

.copy-message {
  opacity: 0;
  margin-left: 1rem;
  color: limegreen;
  font-weight: 500;
  transition: opacity 0.3s ease-in-out;
}

.copy-message.visible {
  opacity: 1;
}

/* --- Mobile Optimierung --- */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  nav {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  nav a {
    font-size: 0.95rem;
    margin-left: 0;
  }

  section {
    padding: 4rem 1rem 3rem;
  }

  section h2 {
    font-size: 1.8rem;
  }

  .button {
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
  }

  .email-box {
    flex-direction: column;
    align-items: flex-start;
    font-size: 1rem;
    gap: 0.5rem;
  }

  .button.small {
    font-size: 0.8rem;
    transform: none;
  }

  .copy-message {
    margin-left: 0;
  }

  /* Handy-Video besser skalieren */
  .video-frame.phone {
    width: 160px;
    height: 320px;
    border-width: 6px;
    border-radius: 28px;
  }

  /* Monitor-Video korrekt skalieren */
  .video-frame.monitor {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    border-width: 8px;
    border-radius: 10px;
  }

  .video-frame.monitor::before {
    width: 60px;
    height: 12px;
    bottom: -18px;
  }

  #overlay-video {
    width: 100%;
    height: auto;
    max-height: 85vh;
  }
}
