/* ==================== BASE STYLES ==================== */
body {
  margin: 0;
  padding: 0 0px;
  background: var(--bg-dark);
  color: var(--text-light);
  font-family: var(--font-main);
  line-height: 1.6;
}

h1, h2, h3 {
  color: var(--text-light);
}

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: #6bb3ff;
}

/* ==================== HEADER ==================== */
.header {
  width: 100%;
  padding: 20px 40px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  background: rgba(10, 13, 18, 0.6);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(77, 163, 255, 0.15);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo {
  height: 55px;
  filter: drop-shadow(0 0 8px rgba(77, 163, 255, 0.4));
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-blue);
  letter-spacing: 1px;
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.nav {
  padding-right: 40px;
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}


.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(77, 163, 255, 0.1);
  transition: all var(--transition);
}

.social-link:hover {
  background: rgba(77, 163, 255, 0.2);
  transform: scale(1.1);
}

.social-link img {
  width: 40px;
  height: 40px;
}

.social-icon {
  width: 40px;
  height: 40px;
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==================== HERO SECTION ==================== */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 60px;
}

/* HERO VIDEO – optimiert für Loop + Performance */
.hero-video {
  position: absolute;
  top: 0;
  left: 0;  
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background-color: #000;
  filter: brightness(0.55); /* dunkelt Video leicht ab */
  transition: opacity 0.6s ease-out;
}

/* Cinematic Overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.35),
    rgba(0,0,0,0.65)
  );
  z-index: 1;
}

/* TEXT */
.hero-text {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--text-light);
}

/* 3D TITEL */
.hero-title {
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 800;
  line-height: 0.95;
  margin: 0;
  display: inline-block;

  /* 3D Effekt mit sanfter FPV-Wippe */
  transform: perspective(600px) translateZ(40px);
  animation: fpvTilt 5s ease-in-out infinite;
  text-shadow:
    0 2px 4px rgba(0,0,0,0.4),
    0 4px 10px rgba(0,0,0,0.35),
    0 8px 20px rgba(0,0,0,0.25);
}

.hero-title span {
  display: block;
  letter-spacing: 2px;
}

/* GLOW für das Highlight-Wort */
.hero-title .highlight {
  color: var(--primary-blue);
  text-shadow:
    0 0 10px rgba(77,163,255,0.7),
    0 0 20px rgba(77,163,255,0.5),
    0 0 40px rgba(77,163,255,0.3);
}

/* SUBTITLE */
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 20px 0;
  letter-spacing: 2px;
}

/* BUTTON */
.btn-primary {
  display: inline-block;
  padding: 12px 40px;
  background: var(--primary-blue);
  color: var(--bg-dark);
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  margin-top: 20px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(77,163,255,0.3);
  background: #6bb3ff;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.hero-actions .btn-primary,
.hero-actions .btn-secondary {
  margin-top: 0;
}

.btn-secondary {
  display: inline-block;
  padding: 12px 40px;
  background: var(--primary-blue);
  color: var(--bg-dark);
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-secondary:hover {
  color: var(--bg-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(77,163,255,0.3);
  background: #6bb3ff;
}

/* SCROLL INDICATOR */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.scroll-line {
  width: 2px;
  height: 40px;
  background: var(--primary-blue);
  animation: scroll-pulse 2s infinite;
}

@keyframes scroll-pulse {
  0%, 100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(10px);
  }
}

/* ==================== PARALLAX SECTION ==================== */
.parallax {
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center 50%;
  background-attachment: fixed;
}

.parallax .content {
  text-align: center;
  color: var(--text-light);
}

.parallax h2 {
  font-size: 2.5rem;
  margin: 0;
  line-height: 1.2;
}

/* ==================== PORTFOLIO PREMIUM LOOK ==================== */

/* Portfolio Section */
.portfolio {
  padding: 80px 40px;
  background: var(--bg-dark);
}

.portfolio h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

.portfolio p {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 40px;
}

/* ==================== MASONRY GRID ==================== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 36px;
  padding: 50px 40px;
  max-width: 1600px;
  margin: 0 auto;
  place-items: center;
}

@media (max-width: 900px) {
  .portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    max-width: 1100px;
  }
}

@media (max-width: 600px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }
}

/* Masonry Items */
.portfolio-item {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  background: #0f1115;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
  position: relative;
  text-align: center;

  /* Fade-In Start */
  opacity: 0;
  transform: translateY(30px);
}

/* Hover Effects */
.portfolio-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

/* Poster Image */
.portfolio-item > img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease, filter 0.4s ease;
}

.portfolio-video-container {
  position: relative;
  display: block;
  background: #000;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  width: 100%;
}

.portfolio-video,
.portfolio-video-poster {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.portfolio-video-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.portfolio-video-container .play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.portfolio-item:hover img {
  transform: scale(1.08);
  filter: brightness(0.75);
}

.portfolio-item:hover .portfolio-video-container img {
  transform: scale(1.08);
  filter: brightness(0.75);
}

/* Overlay Text */
.portfolio-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0));
  color: #fff;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.portfolio-item:hover .portfolio-info {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-info h3 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
}

.portfolio-info p {
  margin: 6px 0 0;
  font-size: 0.95rem;
  opacity: 0.85;
}

/* ==================== FADE-IN ANIMATION ==================== */
.portfolio-item.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* ==================== STAGGER ANIMATION ==================== */
.portfolio-item:nth-child(1) { transition-delay: 0.05s; }
.portfolio-item:nth-child(2) { transition-delay: 0.10s; }
.portfolio-item:nth-child(3) { transition-delay: 0.15s; }
.portfolio-item:nth-child(4) { transition-delay: 0.20s; }
.portfolio-item:nth-child(5) { transition-delay: 0.25s; }
.portfolio-item:nth-child(6) { transition-delay: 0.30s; }
.portfolio-item:nth-child(7) { transition-delay: 0.35s; }
.portfolio-item:nth-child(8) { transition-delay: 0.40s; }



/* ==================== INSTAGRAM SECTION ==================== */
.instagram-section {
  padding: 80px 40px;
  background: var(--bg-dark);
}

.instagram-section h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--text-light);
  margin-bottom: 60px;
}

.instagram-feed {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  max-width: 1200px;
  margin: 0 auto;
}

.instagram-post {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  display: block;
  aspect-ratio: 1;
  transition: transform var(--transition);
}

.instagram-post:hover {
  transform: scale(1.05);
}

.instagram-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(77, 163, 255, 0.9);
  color: var(--text-light);
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  pointer-events: none;
}

.instagram-fallback {
  text-align: center;
  padding: 60px 40px;
  background: rgba(77, 163, 255, 0.05);
  border-radius: var(--radius);
  border: 2px solid rgba(77, 163, 255, 0.2);
  max-width: 500px;
  margin: 0 auto;
}

.instagram-fallback h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.instagram-fallback p {
  color: var(--text-muted);
  margin: 15px 0;
}

.instagram-fallback code {
  background: rgba(77, 163, 255, 0.1);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  color: var(--primary-blue);
  font-size: 0.85rem;
}

/* Instagram Embed Container */
.instagram-embed-container {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.instagram-embed-container iframe {
  width: 100% !important;
  max-width: 500px;
  transition: all var(--transition);
}

/* ==================== LIGHTBOX ==================== */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
  flex-direction: column;
}

.lightbox.active {
  display: flex;
}

.lightbox-media {
  width: 96vw;
  height: 90vh;
  max-width: 96vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lightbox-video {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  background: #000;
  border-radius: var(--radius);
}

.lightbox-close,
.lightbox-fullscreen,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  color: var(--text-light);
  font-size: 2rem;
  cursor: pointer;
  user-select: none;
  transition: all var(--transition);
}

.lightbox-close {
  top: 20px;
  right: 30px;
}

.lightbox-fullscreen {
  top: 20px;
  right: 70px;
  font-size: 1.6rem;
}

.lightbox-close:hover {
  color: var(--primary-blue);
  transform: scale(1.2);
}

.lightbox-fullscreen:hover {
  color: var(--primary-blue);
  transform: scale(1.2);
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  padding: 20px;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  color: var(--primary-blue);
  transform: translateY(-50%) scale(1.3);
}

/* ==================== KONTAKT SECTION ==================== */
.contact {
  padding: 80px 40px;
  background: var(--bg-dark);
}

.contact h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: var(--text-light);
}

.contact-inner {
  max-width: 600px;
  margin: 0 auto;
}

.contact-text {
  margin-bottom: 40px;
}

.contact-text p {
  color: var(--text-muted);
  line-height: 1.6;
  margin: 15px 0;
}

.contact-note {
  font-size: 0.9rem;
  font-style: italic;
}

.contact-mail a {
  color: var(--primary-blue);
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.5px;
  text-shadow: 0 0 12px rgba(77, 163, 255, 0.4);
  transition: 0.3s ease;
}

.contact-mail a:hover {
  text-shadow: 0 0 18px rgba(77, 163, 255, 0.7);
}


/* ==================== CONTACT FORM ==================== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 12px 15px;
  background: rgba(77, 163, 255, 0.05);
  border: 1px solid rgba(77, 163, 255, 0.2);
  border-radius: var(--radius);
  color: var(--text-light);
  font-family: var(--font-main);
  transition: all var(--transition);
  font-size: 1rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  background: rgba(77, 163, 255, 0.1);
  border-color: var(--primary-blue);
  box-shadow: 0 0 10px rgba(77, 163, 255, 0.2);
}

.contact-form textarea {
  resize: vertical;
  font-family: var(--font-main);
}

.form-message {
  padding: 15px;
  border-radius: var(--radius);
  text-align: center;
  animation: slideIn 0.3s ease;
  background: rgba(77, 163, 255, 0.1);
}

/* Select Styling */
.contact-form select {
  appearance: none; /* Entfernt Browser-Standard */
  background: rgba(77, 163, 255, 0.05);
  border: 1px solid rgba(77, 163, 255, 0.2);
  color: var(--text-light);
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg fill='rgba(255,255,255,0.7)' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 45px; /* Platz für Pfeil */
}

/* Dropdown-Optionen mit höherem Kontrast */
.contact-form select option {
  background-color: #0f1115;
  color: #f5f7ff;
}

.contact-form select option:checked,
.contact-form select option:focus {
  background-color: #121826;
  color: #ffffff;
}

/* ==================== REVIEW BOX ==================== */
.review-box {
  margin-top: 36px;
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(77, 163, 255, 0.05);
  border: 1px solid rgba(77, 163, 255, 0.2);
}

.review-box h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.review-box p {
  margin: 0;
  color: var(--text-muted);
}

.review-btn {
  margin-top: 18px;
}

.review-share-row {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.review-share-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(77, 163, 255, 0.35);
  color: var(--text-light);
  font-size: 0.92rem;
  background: rgba(255, 255, 255, 0.02);
}

.review-share-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.2px;
}

.review-share-icon--wa {
  background: #25D366;
}

.review-share-icon--fb {
  background: #1877F2;
  font-size: 0.9rem;
  font-weight: 700;
}

.review-share-link:hover {
  border-color: var(--primary-blue);
}

.review-qr-wrap {
  margin: 18px 0 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.review-qr {
  width: 170px;
  height: 170px;
  border-radius: 10px;
  border: 1px solid rgba(77, 163, 255, 0.25);
  background: #fff;
  padding: 8px;
}

.review-qr-wrap figcaption {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ==================== FOOTER ==================== */
footer {
  background: rgba(10, 13, 18, 0.8);
  padding: 30px 40px;
  text-align: center;
  color: var(--text-muted);
  border-top: 1px solid rgba(77, 163, 255, 0.15);
}

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-weight: 600;
}

.footer-links a {
  color: var(--text-light);
}

.footer-links a:hover {
  color: var(--primary-blue);
}

.footer-links span {
  color: var(--text-muted);
}

/* ==================== LEGAL PAGES ==================== */
.legal-page {
  min-height: 100vh;
  background: var(--bg-dark);
  color: var(--text-light);
}

.legal-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 140px 24px 80px;
}

.legal-card {
  background: rgba(77, 163, 255, 0.06);
  border: 1px solid rgba(77, 163, 255, 0.2);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.legal-card h1 {
  margin-top: 0;
  margin-bottom: 18px;
}

.legal-card h2 {
  margin-top: 24px;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.legal-card p,
.legal-card li {
  color: var(--text-muted);
}

.legal-card ul {
  padding-left: 20px;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fpvShake {
  0%, 100% { transform: translate(0, 0) rotateZ(0deg); }
  25% { transform: translate(2px, -1px) rotateZ(0.5deg); }
  50% { transform: translate(-2px, 1px) rotateZ(-0.5deg); }
  75% { transform: translate(1px, 2px) rotateZ(0.3deg); }
}

/* Sanfte FPV-Wippe für Hero-Titel */
@keyframes fpvTilt {
  0% {
    transform: perspective(600px) translateZ(40px) rotateY(-6deg) rotateX(2deg);
  }
  50% {
    transform: perspective(600px) translateZ(40px) rotateY(6deg) rotateX(-2deg);
  }
  100% {
    transform: perspective(600px) translateZ(40px) rotateY(-6deg) rotateX(2deg);
  }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .hero {
    margin-top: 50px;
  }

  .hero-title {
    font-size: 2.5rem;
  }
  
  .grid {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .parallax h2 {
    font-size: 1.8rem;
  }
  
  .header {
    padding: 15px 20px;
  }
  
  .logo {
    height: 40px;
  }
  
  .brand-title {
    font-size: 0.85rem;
  }

  .portfolio h2,
  .contact h2 {
    font-size: 2rem;
  }

  .portfolio-grid {
    gap: 24px;
    padding: 36px 24px;
    max-width: 720px;
  }

  .portfolio-item {
    max-width: 100%;
  }

  .legal-container {
    padding-top: 120px;
  }

  .legal-card {
    padding: 22px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-primary {
    padding: 10px 25px;
    font-size: 0.9rem;
  }

  .btn-secondary {
    padding: 10px 25px;
    font-size: 0.9rem;
  }
  
  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    font-size: 16px;
  }
  
  .lightbox-prev,
  .lightbox-next {
    padding: 10px;
    font-size: 1.5rem;
  }

  .portfolio,
  .contact {
    padding: 40px 20px;
  }

  .portfolio-grid {
    gap: 20px;
    padding: 24px 16px;
    max-width: 100%;
  }

  .portfolio-info {
    padding: 16px;
  }

  .portfolio-info h3 {
    font-size: 1.15rem;
  }

  .portfolio-info p {
    font-size: 0.9rem;
  }
}
