/* Main Styles für LumiVitae - gemeinsame Stile für alle Geräte */

:root {
  --primary-color: #0078b4;
  --secondary-color: #f5f8fa;
  --accent-color: #FFC107;
  --gold-color: #e6b800;
  --text-color: #333;
  --light-text: #fff;
  --light-bg: #f9f9f9;
  --border-color: #ddd;
  --border-radius: 8px;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  --gradient-primary: linear-gradient(135deg, #0078b4 0%, #005a87 100%);
  --dark-bg: #000;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333;
  margin: 0;
  padding: 0;
  position: relative;
  overflow-x: hidden;
  background-color: #030b35; /* Dunkler Hintergrund für Bereiche außerhalb der Bilder */
}

/* Container für Inhalte mit teilweise transparentem Hintergrund */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background-color: transparent;
  border-radius: 8px;
  box-shadow: none;
}

section {
  padding: 15px 0 10px;
  margin-bottom: 5px;
  background-color: transparent !important;
}

/* Hintergrund-Video */
#background-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0.2;
}

/* Bubbles Animation Effekt */
.bubbles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.bubble {
  position: absolute;
  bottom: -20px;
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  opacity: 0.7;
  animation: rise-small 20s infinite linear;
  box-shadow: 0 0 3px rgba(255, 255, 255, 0.5);
}

.bubble::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 2px;
  height: 2px;
  background: rgba(255, 255, 255, 1);
  border-radius: 50%;
  transform: scale(0.8);
}

.bubble:nth-child(even) {
  width: 5px;
  height: 5px;
  animation-duration: 15s;
  background: rgba(255, 255, 255, 0.9);
}

.bubble:nth-child(3n) {
  width: 3px;
  height: 3px;
  animation-duration: 12s;
  background: rgba(255, 255, 255, 0.95);
}

.bubble:nth-child(5n) {
  width: 10px;
  height: 10px;
  animation-duration: 25s;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.6);
}

@keyframes rise-small {
  0% {
    transform: translateY(0) translateX(0) scale(0.5);
    opacity: 0;
  }
  5% {
    opacity: 0.9;
  }
  95% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-1000px) translateX(var(--tx)) scale(0.1);
    opacity: 0;
  }
}

/* Hero Section - Gemeinsame Stile */
.hero-section {
  text-align: center;
  position: relative;
}

.hero-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  font-weight: 700;
  color: white;
}

/* Special Title über dem More Information Button */
.special-title {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.8rem;
  color: white;
  text-align: center;
  margin-bottom: 2rem;
  font-weight: normal;
  letter-spacing: 1px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  display: block;
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* Allgemeine Video-Container Stile */
.video-container {
  margin: 0 auto 25px;
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  max-width: 1000px;
  background-color: #000;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.video-title-overlay {
  position: absolute;
  top: 30%;
  left: 0;
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  background: transparent;
  pointer-events: none;
  padding: 15px 0;
}

.video-title-overlay .hero-title,
.video-title-overlay .section-title {
  color: white;
  text-shadow: 
    2px 2px 6px rgba(0, 0, 0, 0.9),
    0 0 30px rgba(0, 0, 0, 0.8),
    0 0 5px rgba(0, 0, 0, 0.9),
    1px 1px 0 #000,
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000;
  margin: 0;
  padding: 0 20px;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.video-title-overlay .hero-title {
  font-size: 2.8rem;
}

.video-title-overlay .section-title {
  font-size: 2.5rem;
}

.video-title-overlay .section-title:after {
  display: none;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer Stile */
footer {
  background-color: #0b1a2a;
  padding: 30px 0;
  color: #ccc; /* Standardtextfarbe im Footer */
  text-align: center;
}

footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

#language-selector-container {
  margin-bottom: 20px;
  color: white; /* Farbe für das Label "Sprache wählen:" */
  display: flex;
  flex-direction: column;
  align-items: center;
}

#language-label {
  margin-bottom: 10px;
  font-size: 0.9em;
}

/* Container für Flaggen und Dropdown */
.language-selector-inner {
  display: flex;
  align-items: center;
  gap: 15px; /* Abstand zwischen Flaggen und Dropdown */
}

/* Container für die verfügbaren Flaggen */
#available-flags {
  display: flex;
  gap: 8px; /* Abstand zwischen den Flaggen */
}

/* Allgemeines Styling für Flaggen-Spans */
#available-flags span {
  font-size: 1.6em; /* Größe der Flaggen-Emojis */
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0.6; /* Standard-Opazität leicht reduziert */
}

/* Styling für unterstützte, klickbare Flaggen */
#available-flags span.supported-language:hover {
  transform: scale(1.15); /* Stärkerer Hover-Effekt für klickbare */
  opacity: 1;
}

/* Styling für nicht unterstützte Flaggen */
#available-flags span.unsupported-language {
  cursor: not-allowed;
  opacity: 0.3; /* Deutlich reduzierte Opazität */
}

#available-flags span.unsupported-language:hover {
  transform: none; /* Kein Hover-Effekt für nicht unterstützte */
  opacity: 0.3;
}

/* Styling für die aktuell ausgewählte Flagge */
#available-flags span.current-language-flag {
  opacity: 1; /* Volle Opazität für die aktuelle Flagge */
  transform: scale(1.1); /* Leicht vergrößert */
  border-bottom: 2px solid var(--accent-color); /* Kleine Hervorhebung unten */
  padding-bottom: 2px;
}

/* Das eigentliche Select-Element (Dropdown) */
.language-select, /* Klasse statt ID verwenden, falls nötig */
#language-select-dropdown {
  display: inline-block; /* Macht es sichtbar */
  color: #333; /* Dunkler Text */
  padding: 6px 10px; /* Padding anpassen */
  border: 1px solid rgba(255, 255, 255, 0.3); /* Passender Rand zum Footer */
  border-radius: 20px; /* Abgerundet wie der alte Button */
  background-color: rgba(255, 255, 255, 0.1); /* Hintergrund wie Button */
  cursor: pointer;
  font-size: 0.9em;
  -webkit-appearance: none; /* Standard-Aussehen entfernen (Safari/Chrome) */
  -moz-appearance: none;    /* Standard-Aussehen entfernen (Firefox) */
  appearance: none;         /* Standard-Aussehen entfernen */
  background-image: url('data:image/svg+xml;utf8,<svg fill="white" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>'); /* Eigener Pfeil */
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 30px; /* Platz für den Pfeil */
  color: white; /* Textfarbe im Dropdown auf weiß setzen */
}

/* Styling für die Optionen im Dropdown */
.language-select option,
#language-select-dropdown option {
  color: #333; /* Textfarbe der Optionen */
  background-color: white; /* Hintergrund der Optionen */
}

footer a {
  color: #4a90e2; /* Standard-Linkfarbe im Footer */
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #FFC107; /* Hervorhebungsfarbe beim Hover */
  text-decoration: underline;
}

.footer-content p {
  margin: 5px 0;
  font-size: 14px;
}

.footer-product-text {
  font-size: 12px;
  color: #b2b2b2;
}

.social-icons {
  margin-bottom: 25px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-icons a {
  color: white; /* Farbe der SVG-Icons */
  transition: transform 0.3s ease;
}

.social-icons a:hover {
  transform: scale(1.1); /* Leichter Zoom-Effekt beim Hover */
}

.social-icons svg {
  width: 32px;
  height: 32px;
}

.affiliate-link {
  margin-top: 15px;
}

.affiliate-link a {
  color: #FFC107;
  font-size: 0.9em;
  text-decoration: underline;
}

/* Allgemeine Text-Stile */
p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1rem;
  line-height: 1.3;
  color: white;
}

.text-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

/* Allgemeine Link-Stile */
a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--gold-color);
}

/* Website-Link Stil - generische Version */
.website-link {
  text-align: center;
  margin: 20px auto;
  width: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.website-link a {
  display: inline-block;
  padding: 8px 16px;
  background-color: transparent;
  color: white;
  text-decoration: none;
  border: 2px solid white;
  border-radius: 30px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.website-link a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* AI-Features Styles */
.ai-features li {
  display: flex;
  align-items: center;
}

.ai-features li i {
  color: var(--accent-color);
  margin-right: 10px;
}

/* Studien-Sektion */
.studies-section {
  margin-top: 0;
  padding-top: 0;
}

.studies-section .container {
  padding-top: 0;
}

.studies-content {
  margin-top: 0;
  padding-top: 15px;
}

/* Abstand zwischen Features und Power Section verringern */
.power-section {
  margin-top: 0;
  padding-top: 0;
}

.power-section .container {
  padding-top: 20px;
}

/* AI Assistant Styles - Allgemein */
.ai-assistant-box {
  background: linear-gradient(135deg, rgba(0, 40, 80, 0.85) 0%, rgba(0, 20, 60, 0.95) 100%);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-box {
  background: rgba(0, 30, 60, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 25px;
  color: white;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

/* AI Form Elemente */
.ai-form {
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 15px;
}

.ai-select, .ai-input {
  width: 100%;
  padding: 10px 15px;
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.2);
  color: white;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.ai-select:focus, .ai-input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.25);
  background: rgba(0, 0, 0, 0.3);
}

.ai-select option {
  background: #001e3c;
  color: white;
}

.ai-button {
  background: var(--accent-color);
  color: #000;
  border: none;
  border-radius: 30px;
  padding: 10px 20px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.ai-button:hover:not(:disabled) {
  background: var(--gold-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.ai-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* AI Toggle Button */
.ai-toggle-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: var(--accent-color);
  color: #000;
  border: none;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.ai-toggle-button:hover {
  background: var(--gold-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.ai-toggle-button i {
  margin-right: 8px;
}

/* AI Antwort und Frage Boxen */
.question-box, .response-box {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 15px;
  color: white;
  max-height: 300px;
  overflow-y: auto;
}

.question-box {
  font-weight: bold;
  border-left: 3px solid var(--accent-color);
}

.response-box {
  border-left: 3px solid var(--primary-color);
  white-space: pre-line;
  font-size: 0.95rem;
}

.placeholder-text {
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
  text-align: center;
}

/* Verbesserte Warteanimation Styles */

/* Container für Such- und Wartetexte */
#mainSearchContainer,
#followUpSearchContainer {
    margin-top: 20px;
    padding: 10px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.1);
    display: none; /* Wird von JS gesteuert */
    text-align: center; /* Zentriert Inline-Block Elemente */
    min-height: 80px; /* Platz für beide Zeilen */
}

/* Suchnachricht (Typewriter) */
.search-message {
    position: relative;
    height: 1.5em;
    margin: 0 auto 10px auto; /* Zentriert in der Box */
    font-size: 1.2rem;
    font-weight: normal;
    letter-spacing: 0.5px;
    color: transparent; /* Text im Hauptelement ausblenden */
}

/* Animiertes Pseudo‑Element  */
.search-message::after {
    content: attr(data-text);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    overflow: hidden;
    color: white;
    border-right: 3px solid white; /* Cursor */
    animation: typewriter-center 4s steps(30) infinite, blink-cursor 1s step-end infinite;
}

@keyframes typewriter-center {
    0%   { width: 0; }
    40%  { width: 30%; }      /* Läuft nur bis ca. 30 % */
    40.01% { width: 30%; }    /* Kurze Pause */
    100% { width: 0; }        /* Zurücksetzen */
}

@keyframes blink-cursor {
    from, to { border-color: transparent; }
    50% { border-color: white; }
}

/* Wartetext (Zufällig) unter der Suchnachricht */
.waiting-text {
    padding: 0 10px; /* Etwas seitlicher Abstand */
    margin: 0 auto; /* Zentrierung */
    color: var(--accent-color); /* Gelbe Akzentfarbe */
}

.waiting-text-content {
    display: inline-block; /* Zentriert durch parent text-align */
    white-space: normal; /* Erlaube Umbrüche */
    text-align: center;
    color: var(--accent-color); /* Gelbe Akzentfarbe */
    font-size: 1.1em;
    margin-bottom: 10px;
    animation: none; /* Keine eigene Animation hier */
    border: none; /* Kein Cursor */
}

/* Punkte-Animation */
.waiting-animation {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 5px auto 0 auto; /* Weniger Abstand nach oben */
  gap: 6px;
}

.waiting-animation .dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-color);
  border-radius: 50%;
  display: inline-block;
  margin: 0 3px;
  opacity: 0;
  animation: pulse-fade 1.4s infinite ease-in-out both; /* 'both' hält den Endzustand */
  animation-delay: 0s; /* Standard-Delay, wird in JS überschrieben */
}

@keyframes pulse-fade {
  0% { opacity: 0; }
  50% { opacity: 1; }
  100% { opacity: 0; }
}

/* Modernere Punkteanimation */
.waiting-animation {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 15px auto;
  gap: 6px;
}

.waiting-animation .dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-color);
  border-radius: 50%;
  display: inline-block;
  margin: 0 3px;
  opacity: 0;
  animation: pulse-fade 1.4s infinite ease-in-out;
}

@keyframes pulse-fade {
  0% { opacity: 0; }
  50% { opacity: 1; }
  100% { opacity: 0; }
}

/* Container für Warteanimation */
#mainSearchContainer {
  margin-top: 20px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.1);
  display: none;
  text-align: center;
}

/* AI Disclaimer */
.ai-disclaimer {
  margin-top: 20px;
  padding: 15px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  font-style: italic;
  line-height: 1.4;
  text-align: justify;
}

/* Folge-Fragen Bereich */
.follow-up-section {
  margin-top: 20px;
}

.follow-up-input {
  width: 100%;
  padding: 10px 15px;
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.2);
  color: white;
  font-size: 0.95rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.follow-up-button {
  background: var(--accent-color);
  color: #000;
  border: none;
  border-radius: 30px;
  padding: 8px 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.follow-up-button:hover {
  background: var(--gold-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Scroll Indicator Stile */
.mobile-scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.scroll-text {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: white;
  margin-bottom: 10px;
  font-weight: normal;
  letter-spacing: 1px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.arrow-down {
  animation: bounce 2s infinite;
  color: white;
  font-size: 1.2rem;
}

/* Arrow Bounce Animation */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Mobile Scroll Indicator Stile */

/* Entferne die Wellenlinie-Anpassungen */
.study-wave-separator {
  display: none;
}

/* ---- Überschreibe alte ID‑basierte Animation (Vermeidet Doppeltes) ---- */
#searchMessage {
    color: transparent !important; /* Statischer Text unsichtbar */
}

#searchMessage::before {
    content: none !important; /* Alte Animation komplett deaktivieren */
    display: none !important;
    animation: none !important;
    border: none !important;
}
/* -------------------------------------------------------------------- */