@keyframes glow {
  0% { text-shadow: 0 0 5px #9370DB, 0 0 10px #9370DB; }
  50% { text-shadow: 0 0 15px #9370DB, 0 0 30px #9370DB; }
  100% { text-shadow: 0 0 5px #9370DB, 0 0 10px #9370DB; }
}

/* Global – Standardseiten (Textfarbe dunkler Lila) */
body {
  margin: 0;
  background-color: #0a0a0a;
  color: #9370DB;
  font-family: 'Inter', sans-serif;
}

/* Override für Impressum, AGB und Datenschutzerklärung */
body.legal {
  color: #ffffff;
  font-family: Arial, sans-serif;
}

body.legal h1, 
body.legal h2, 
body.legal h3 {
  animation: none;
  font-family: Arial, sans-serif;
}

/* ---------- Header ---------- */
header {
  background-color: #111;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Obere Zeile als Grid mit drei Spalten */
.header-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

/* Logo in der ersten Spalte (linksbündig) */
.header-logo {
  grid-column: 1;
  text-align: left;
}

/* Banner in der mittleren Spalte (zentriert) */
.header-banner {
  grid-column: 2;
  text-align: center;
}

/* Leere rechte Spalte als Platzhalter */
.header-right {
  grid-column: 3;
}

/* Skalierung der Bilder */
.header-logo img {
  width: 7vw;
  min-width: 20px;
  height: auto;
}

.header-banner img {
  display: block;
  width: 10vw;
  min-width: 100px;
  max-width: 300px;
  height: auto;
}

/* Untere Zeile: Navigation linksbündig */
.header-bottom {
  display: flex;
  justify-content: flex-start;
}

.header-bottom nav {
  display: flex;
  gap: 1rem;
}

/* Textfarbe für die Navigation im Header auf #9370DB gesetzt */
.header-bottom nav a {
  color: #9370DB;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.header-bottom nav a:hover {
  background-color: #222;
}

/* Stilregeln für aktive Navigationslinks */
.header-bottom nav a.active {
  background-color: #222;
  position: relative;
  font-weight: bold;
  box-shadow: 0 0 8px rgba(147, 112, 219, 0.4);
}

/* Unterstrich-Effekt für aktiven Navigationspunkt */
.header-bottom nav a.active::after {
  content: '';
  position: absolute;
  left: 15%;
  bottom: 0;
  width: 70%;
  height: 2px;
  background-color: #9370DB;
  animation: glow 2s infinite alternate;
}

/* Navigation in der unteren Zeile */
.header-bottom nav {
  display: flex;
  gap: 1rem;
}

/* Banner – zentriert im Header */
.banner {
  text-align: center;
}

.banner img {
  display: block;
  margin: 0 auto;
  width: 20vw;
  min-width: 100px;
  max-width: 300px;
  width: 180px;
  height: auto;
}

/* ---------- Main ---------- */
main {
  padding: 2rem;
  max-width: 900px;
  margin: auto;
}

/* ---------- Footer ---------- */
footer {
  background-color: #111;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* Logo im Footer skalierend zur Bildschirmgröße */
.footer-logo img {
  width: 5vw;
  min-width: 20px;
  height: auto;
}

.footer-links {
  display: flex;
  flex-direction: column;  /* Links im Footer übereinander stapeln */
  text-align: right;
}

/* Footer-Links ebenfalls auf #9370DB gesetzt */
.footer-links a {
  color: #9370DB;
  text-decoration: none;
  margin: 0.3rem 0;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* ---------- Social Links ---------- */
.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: 1rem;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-weight: 600;
}

.social-links a[href*="tiktok"] {
  background-color: #010101;
  color: #ffffff;
}

.social-links a[href*="instagram"] {
  background-color: #833ab4;
  color: #ffffff;
}

.social-links a[href*="x.com"] {
  background-color: #000000;
  color: #ffffff;
}

.social-links a:hover {
  opacity: 0.7;
}

/* ---------- Überschriften ---------- */
h1, h2, h3 {
  font-family: 'Orbitron', sans-serif;
  /* Überschriftenfarbe auf #9370DB gesetzt */
  color: #9370DB;
  /* Global keinen Glow-Effekt */
  animation: none;
}

h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

/* Glow-Effekt ausschließlich auf der Hauptseite (index.php) – Body bekommt dazu die Klasse "home" */
body.home h1 {
  animation: glow 3s infinite alternate;
}

/* ---------- Intro Animation ---------- */
#intro {
  /* Entferne fixed, damit es im normalen Flow zwischen Header und Footer steht */
  margin: 2rem auto;
  padding: 3rem 1rem;
  text-align: center;
  font-size: 2.7rem;
  color: #9370DB;
  font-family: 'Orbitron', sans-serif;
  max-width: 800px;
}

/* ---------- Newsletter-Formular ---------- */
form.newsletter-form {
  max-width: 400px;
  margin: auto;
  padding: 2rem;
  text-align: center;
}

form.newsletter-form input[type="text"],
form.newsletter-form input[type="email"] {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

form.newsletter-form label {
  display: block;
  margin-bottom: 1rem;
}

form.newsletter-form button {
  padding: 0.8rem 1.5rem;
  background-color: #9370DB;
  border: none;
  border-radius: 4px;
  color: #0a0a0a;
  cursor: pointer;
  font-weight: bold;
}

form.newsletter-form button:hover {
  opacity: 0.8;
}