/* ========================================
   MAIN PAGE STYLES - MODERN MINIMALIST VERSION
======================================== */

:root {
  --font-head: 'Montserrat Alternates', sans-serif;
  --font-body: 'Montserrat', sans-serif;
  
  /* Premium colors */
  --clr-dark: #1A2F2A;
  --clr-cream: #F8F6F3;
  --clr-light: #FEFDFB;
  --clr-sage: #7A8A72;
  --clr-gold: #BFA660;
  --clr-warm-gray: #8B7F77;
  
  /* Animations */
  --transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--clr-dark);
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--clr-light);
  position: relative;
}

/* Loading Screen - Minimal line animation */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--clr-dark);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1s ease-out;
}

.loading-screen.loaded {
  opacity: 0;
  pointer-events: none;
}

.loading-line {
  width: 100px;
  height: 1px;
  background: var(--clr-gold);
  position: relative;
  overflow: hidden;
}

.loading-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--clr-light);
  animation: loadingSlide 1.5s ease-in-out infinite;
}

@keyframes loadingSlide {
  to { left: 100%; }
}

/* Video Background */
.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.video-background video,
.video-background img {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%) scale(1.1);
  filter: blur(2px);
  opacity: 0.4;
}

/* Overlay for better text contrast */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 47, 42, 0.8);
  z-index: 2;
}

/* Language switcher - minimal */
.language-switcher {
  position: fixed;
  top: 2rem;
  right: 2rem;
  display: flex;
  gap: 0.3rem;
  z-index: 100;
  opacity: 0;
  animation: fadeIn 1s ease-out 0.5s forwards;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--clr-light);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  cursor: pointer;
  padding: 0.3rem 0.6rem;
  transition: var(--transition);
  opacity: 0.5;
  position: relative;
}

.lang-btn::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--clr-gold);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.lang-btn:hover,
.lang-btn.active {
  opacity: 1;
}

.lang-btn.active::after {
  transform: scaleX(1);
}

/* Main container */
.main-container {
  position: relative;
  z-index: 10;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

/* Static Text Section */
.static-text-container {
  text-align: center;
  margin-bottom: 5rem;
  opacity: 0;
  animation: fadeInUp 1s ease-out 1s forwards;
}

.main-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 100;
  letter-spacing: 4px;
  margin-bottom: 0.5rem;
  color: var(--clr-light);
  opacity: 0.9;
}

.main-subtitle {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 200;
  letter-spacing: 6px;
  color: var(--clr-gold);
  margin-bottom: 1.5rem;
}

.subtitle {
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  font-weight: 200;
  opacity: 0.7;
  letter-spacing: 2px;
}

/* Minimalist Navigation */
.minimal-nav {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  opacity: 0;
  animation: fadeIn 1s ease-out 1.5s forwards;
}

.nav-item {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--clr-light);
  position: relative;
  padding: 0.5rem;
  transition: var(--transition);
}

.nav-circle {
  width: 12px;
  height: 12px;
  border: 1px solid var(--clr-light);
  border-radius: 50%;
  margin-right: 1rem;
  transition: all 0.4s ease;
  background: transparent;
}

.nav-line {
  width: 0;
  height: 1px;
  background: var(--clr-gold);
  margin-right: 1rem;
  transition: width 0.4s ease;
  opacity: 0;
}

.nav-text {
  font-family: var(--font-head);
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  font-weight: 300;
  letter-spacing: 3px;
  transition: all 0.4s ease;
  opacity: 0.8;
}

.nav-description {
  position: absolute;
  left: calc(12px + 2rem);
  top: 2rem;
  font-size: 0.75rem;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.4s ease;
  font-style: italic;
  color: var(--clr-gold);
  white-space: nowrap;
}

/* Hover effects */
.nav-item:hover .nav-circle {
  background: var(--clr-gold);
  border-color: var(--clr-gold);
  transform: scale(1.2);
}

.nav-item:hover .nav-line {
  width: 60px;
  opacity: 1;
}

.nav-item:hover .nav-text {
  opacity: 1;
  transform: translateX(10px);
}

.nav-item:hover .nav-description {
  opacity: 0.8;
  transform: translateY(0);
}

/* Footer - minimal */
.minimal-footer {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 10;
  opacity: 0;
  animation: fadeIn 1s ease-out 2s forwards;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.social-links a {
  color: var(--clr-light);
  font-size: 1rem;
  transition: all 0.3s ease;
  opacity: 0.5;
}

.social-links a:hover {
  color: var(--clr-gold);
  opacity: 1;
  transform: translateY(-2px);
}

/* Phone number display on desktop */
@media (min-width: 769px) {
  .phone-link {
    position: relative;
  }
  
  .phone-link::after {
    content: '+49 0176 3638 5781';
    position: absolute;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--clr-dark);
    color: var(--clr-light);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 0.75rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(191, 166, 96, 0.3);
  }
  
  .phone-link::before {
    content: '';
    position: absolute;
    bottom: 140%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--clr-dark);
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .phone-link:hover::after,
  .phone-link:hover::before {
    opacity: 1;
  }
}

.copyright {
  font-size: 0.7rem;
  opacity: 0.3;
  letter-spacing: 1px;
}

/* Modal - minimal design */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
  animation: fadeIn 0.3s ease-out;
}

.modal-content {
  background: var(--clr-dark);
  border: 1px solid rgba(191, 166, 96, 0.3);
  border-radius: 0;
  padding: 3rem;
  width: 90%;
  max-width: 400px;
  position: relative;
  animation: fadeInScale 0.3s ease-out;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--clr-light);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.5;
}

.modal-close:hover {
  color: var(--clr-gold);
  opacity: 1;
}

.modal-content h3 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 300;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--clr-light);
  letter-spacing: 2px;
}

#loginForm {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#loginForm input {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--clr-light);
  padding: 0.8rem 0;
  font-family: var(--font-body);
  transition: all 0.3s ease;
}

#loginForm input:focus {
  outline: none;
  border-bottom-color: var(--clr-gold);
}

#loginForm button {
  background: transparent;
  color: var(--clr-gold);
  border: 1px solid var(--clr-gold);
  padding: 0.8rem;
  margin-top: 1rem;
  font-family: var(--font-head);
  font-weight: 300;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

#loginForm button:hover {
  background: var(--clr-gold);
  color: var(--clr-dark);
}

.login-note {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.75rem;
  opacity: 0.5;
  font-style: italic;
}

/* Animations */
@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .language-switcher {
    top: 1rem;
    right: 1rem;
  }
  
  .static-text-container {
    margin-bottom: 3rem;
  }
  
  .main-title {
    font-size: 1.8rem;
  }
  
  .main-subtitle {
    font-size: 2.5rem;
  }
  
  .subtitle {
    font-size: 0.9rem;
  }
  
  .minimal-nav {
    gap: 1.5rem;
  }
  
  .nav-description {
    display: none;
  }
  
  .minimal-footer {
    bottom: 1rem;
  }
  
  .video-background video,
  .video-background img {
    transform: translate(-50%, -50%) scale(1.2);
  }
}

/* Respect user's reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .video-background video {
    animation: none !important;
  }
}
