/* Movinto Brand Colors */
:root {
  --movinto-primary: #00C2CB;
  --movinto-primary-light: #5DE3E9;
  --movinto-primary-dark: #00949C;
  --movinto-bg-dark: #16344C;
  --movinto-bg-light: #FFFFFF;
  --movinto-accent-red: #FF5E42;
  --movinto-accent-yellow: #FFC745;
  --movinto-accent-green: #4AD991;
  --movinto-dark-darker: #0E2433;
  --movinto-gray-light: #F5F7FA;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Nunito', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Gradient Background */
.gradient-bg {
  background: linear-gradient(180deg, var(--movinto-bg-dark) 0%, var(--movinto-primary) 100%);
  min-height: 100vh;
  color: white;
}

/* Header Styles */
.header {
  position: relative;
  z-index: 50;
  width: 100%;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-small {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-brand {
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
}

/* Main Content */
.main-content {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 5rem 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}

/* Hero Section */
.hero-section {
  margin-bottom: 2rem;
}

.logo-large {
  width: 8rem;
  height: 8rem;
  margin: 0 auto 0;
}

.logo-glow {
  filter: drop-shadow(0 0 20px rgba(0, 194, 203, 0.3));
}

.brand-title {
  font-size: 3.75rem;
  font-weight: 700;
  color: white;
}

.tagline {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--movinto-primary-light);
  margin-bottom: 0.5rem;
}

.loading-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.5rem 0 3rem;
}

.loading-text {
  font-size: 1.125rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
}

.loading-dots::after {
  content: '';
  animation: dots 1.5s steps(5, end) infinite;
}

@keyframes dots {
  0%, 20% { content: ''; }
  40% { content: '.'; }
  60% { content: '..'; }
  80%, 100% { content: '...'; }
}

/* Description Section */
.description-section {
  max-width: 64rem;
  margin: 0 auto 3rem;
}

.description-main {
  font-size: 1.25rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.highlight {
  color: var(--movinto-primary-light);
  font-weight: 600;
}

.description-cta {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  font-weight: 200;
}

/* Newsletter Section */
.newsletter-section {
  max-width: 28rem;
  margin: 0 auto 4rem;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  position: relative;
}

.email-input {
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 1.125rem;
  font-family: 'Nunito', sans-serif;
  outline: none;
  transition: all 0.3s ease;
}

.email-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.email-input:focus {
  border-color: var(--movinto-primary);
  box-shadow: 0 0 0 2px rgba(0, 194, 203, 0.5);
}

.subscribe-btn {
  width: 100%;
  background: var(--movinto-accent-red);
  color: white;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1.125rem;
  font-family: 'Nunito', sans-serif;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.subscribe-btn:hover {
  background: rgba(255, 94, 66, 0.9);
  transform: translateY(-2px);
  filter: brightness(110%);
}

.subscribe-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.error-message {
  color: var(--movinto-accent-red);
  font-size: 0.875rem;
  margin-top: 0.5rem;
  text-align: left;
}

.success-message {
  display: none;
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(74, 217, 145, 0.2);
  border: 1px solid rgba(74, 217, 145, 0.3);
  border-radius: 0.75rem;
}

.success-message p {
  color: var(--movinto-accent-green);
  font-weight: 600;
}

/* Company Info */
.company-info {
  text-align: center;
}

.location {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Footer */
.footer {
  position: relative;
  z-index: 10;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.copyright {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-link {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--movinto-primary-light);
}

/* Modals (Impressum & Datenschutz) */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
}

.modal.open {
  display: flex;
}

.modal-dialog {
  width: 100%;
  max-width: 820px;
  max-height: 85vh;
  overflow: hidden;
  background: #ffffff;
  color: var(--movinto-dark-darker);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  position: relative;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 1rem 1.25rem 0.5rem 1.25rem;
  border-bottom: 1px solid #eef2f6;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--movinto-bg-dark);
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: #7a8794;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--movinto-primary-dark);
}

.modal-body {
  padding: 1rem 1.25rem 1.25rem 1.25rem;
  overflow: auto;
}

.legal-text h3 {
  margin-top: 1rem;
  margin-bottom: 0.25rem;
  font-size: 1.125rem;
  color: var(--movinto-bg-dark);
}

.legal-text h4 {
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
  font-size: 1rem;
  color: var(--movinto-bg-dark);
}

.legal-text p {
  margin: 0.25rem 0 0.5rem 0;
  color: #233647;
}

.legal-text a {
  color: var(--movinto-primary-dark);
  text-decoration: none;
}

.legal-text a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (min-width: 768px) {
  .brand-title {
    font-size: 4.5rem;
  }
  
  .tagline {
    font-size: 1.875rem;
  }
  
  .description-main {
    font-size: 1.5rem;
  }
  
  .description-cta {
    font-size: 1.25rem;
  }
  
  .footer-content {
    flex-direction: row;
  }
}

@media (min-width: 1024px) {
  .nav-content {
    padding: 0;
  }
}

/* Loading Animation Enhancement */
@media (prefers-reduced-motion: no-preference) {
  .logo-glow {
    animation: glow-pulse 3s ease-in-out infinite;
  }
  
  @keyframes glow-pulse {
    0%, 100% {
      filter: drop-shadow(0 0 20px rgba(0, 194, 203, 0.3));
    }
    50% {
      filter: drop-shadow(0 0 30px rgba(0, 194, 203, 0.5));
    }
  }
}
