/* Ankündigungsleiste */
.announcement-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: #4a5a70;
  color: #fff;
  padding: 6px 0;
  font-size: 0.85rem;
  overflow: hidden;
  z-index: 1000;
  text-align: center;
}

.announcement-text {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: ticker 30s linear infinite;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Reset & Grundlayout */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f7f7f7;
  color: #222;
  line-height: 1.5;
}

body [lang="ar"] {
  font-family: 'Shehrazade New', serif;
}

/* Landingpage Container - FÜR FOOTER KORRIGIERT */
.tahawi-landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Zentriert den Inhalt vertikal */
  align-items: center;
  padding: 4rem 1rem 1rem 1rem;
  box-sizing: border-box;
  position: relative;
}

/* Inhalt - FLEXIBEL FÜR FOOTER */
.tahawi-content {
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1; /* Nimmt verfügbaren Platz ein */
}

/* Hero-Bereich - KOMPAKTER */
.hero {
  width: 100%;
  margin: 0 auto 1rem;
  text-align: center;
}

/* Logo - AUF 500px BREITE BEGRENZT */
.hero .logo {
  display: block;
  margin: 0 auto 0.8rem;
  max-width: 500px; /* Gleiche Maximalbreite wie Content */
  width: 100%;
  height: auto;
}

/* Untertitel - KOMPAKTER */
.subtitle {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 1rem;
  line-height: 1.4;
  text-align: center;
  color: #333;
}

/* Beschreibungstext - KOMPAKTER */
.hero .description {
  text-align: justify;
  line-height: 1.5;
  margin: 0 auto 1.2rem;
  width: 100%;
  font-size: 0.95rem;
}

/* Divider - UNTERSCHEIDBARER */
.divider {
  width: 100%;
  height: 1px;
  background: #ddd;
  margin: 1.2rem 0;
}

/* Buttons - KORRIGIERTE BREITE */
.btn {
  display: block;
  max-width: 500px; /* Gleiche Breite wie der Container */
  width: 100%;
  text-align: center;
  padding: 10px 16px;
  border-radius: 8px;
  background: #4a5a70;
  color: #fff;
  font-weight: 500;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  margin: 0 auto 1rem auto; /* Zentriert den Button */
  font-size: 0.95rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  box-sizing: border-box; /* Wichtig für korrekte Breitenberechnung */
}

.btn:hover {
  background-color: #3a4a60;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Newsletter - KOMPAKTER */
.newsletter {
  width: 100%;
  margin: 0 auto;
}

.newsletter h3 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  color: #333;
  font-weight: 500;
}

.newsletter-fields {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.newsletter input[type="email"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 0.95rem;
  box-sizing: border-box;
}

.newsletter-error {
  font-size: 0.9rem;
  color: #d32f2f;
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: #ffebee;
  border-radius: 6px;
  border-left: 4px solid #d32f2f;
}

.btn-newsletter {
  width: 100%;
  padding: 10px 16px;
  border-radius: 6px;
  background: #4a5a70;
  color: #fff;
  font-weight: 500;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.btn-newsletter:hover {
  background-color: #3a4a60;
}

.privacy {
  display: flex;
  align-items: flex-start;
  font-size: 0.8rem;
  color: #555;
  margin-top: 0.4rem;
  text-align: left;
  line-height: 1.4;
}

.privacy input[type="checkbox"] {
  margin-right: 0.5rem;
  margin-top: 0.1rem;
}

.newsletter-confirmation {
  font-size: 0.85rem;
  color: #4a5a70;
  margin-top: 0.5rem;
  padding: 0.4rem;
  background: #f0f5ff;
  border-radius: 4px;
}

/* Footer - AM BODEN FIXIERT */
footer {
  width: 100%;
  text-align: center;
  padding: 1rem 0;
  font-size: 0.8rem;
  color: #444;
  margin-top: auto; /* Schiebt Footer nach unten */
  position: relative;
  z-index: 10;
}

.footer-content {
  position: relative;
  z-index: 2;
}

footer a {
  color: #444;
  text-decoration: none;
  transition: color 0.2s ease;
}

footer a:hover {
  color: #2c3e50;
  text-decoration: underline;
}

/* Footer-Logo Positionierung anpassen */
.footer-logo {
  position: absolute;
  bottom: 60%; /* Höher positioniert */
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 120px;
  background: url('nuqush-logo.png') no-repeat center center;
  background-size: contain;
  opacity: 0.1;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1;
}

footer:hover .footer-logo {
  opacity: 0.2;
}

/* Popups */
.popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2000;
}

.popup.open {
  display: flex;
  opacity: 1;
}

.popup-content {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  position: relative;
  transform: translateY(-10px);
  transition: transform 0.3s ease;
}

.popup.open .popup-content {
  transform: translateY(0);
}

.popup-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  color: #666;
  transition: color 0.2s ease;
}

.popup-close:hover,
.popup-close:focus {
  color: #000;
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
  .tahawi-landing {
    padding: 3.5rem 1rem 1rem 1rem;
  }
  
  .hero .logo {
    max-width: 220px;
  }
  
  .subtitle {
    font-size: 1rem;
  }
  
  .hero .description {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .tahawi-landing {
    padding: 3rem 0.8rem 0.8rem 0.8rem;
  }
  
  .announcement-bar {
    font-size: 0.8rem;
    padding: 5px 0;
  }
  
  .hero .logo {
    max-width: 200px;
    margin-bottom: 0.6rem;
  }
  
  .subtitle {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
  }
  
  .hero .description {
    font-size: 0.85rem;
    text-align: left;
    margin-bottom: 1rem;
  }
  
  .divider {
    margin: 1rem 0;
  }
  
  .btn, .btn-newsletter {
    padding: 8px 12px;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
  }
  
  .newsletter h3 {
    font-size: 1rem;
    margin-bottom: 0.6rem;
  }
  
  footer {
    font-size: 0.75rem;
    padding: 0.8rem 0;
  }
  
  .footer-logo {
    width: 100px;
    height: 100px;
    bottom: 35%;
  }
  
  .privacy {
    font-size: 0.75rem;
  }
}

@media (max-width: 360px) {
  .footer-logo {
    width: 80px;
    height: 80px;
  }
  
  .privacy {
    font-size: 0.7rem;
  }
  
  footer {
    font-size: 0.7rem;
  }
}