/* 
 * BUNKERBANDITS Theme - Developed by Dennis Joest
 */
/* ===== Final Optimiert: index.css mit News-Ticker und detaillierten Kommentaren ===== */

/* ============================================= */
/* 📄 WRAPPER DER STARTSEITE */
/* ============================================= */

.page-wrapper.home-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-wrapper.home-page>main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: auto;
  width: 100%;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  text-align: center;
}

.viewport-center {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
}

.viewport-center .content-container {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.content-container {
  margin-bottom: 0;
}

/* ============================================= */
/* ✨ WILLKOMMENS-TEXTE */
/* ============================================= */

.welcome-text {
  color: var(--color-text-white);
  font-size: 32px;
  font-weight: normal;
  margin-top: 0;
  margin-bottom: 0.1em;
}

.band-name {
  font-size: 52px;
  font-weight: 800;
  color: var(--color-brand-orange);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin-top: 0;
  margin-bottom: 0.1em;
}

.description {
  font-size: 24px;
  margin: 5px 0;
  line-height: 1.4;
}

.orange-text {
  color: var(--color-brand-orange);
  font-weight: 700;
}

.vertical-slogan {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Alles zentral ausrichten */
  margin: 15px auto 0 auto;
  /* Container zentriert, Inhalt linksbündig */
  gap: 0;
  /* Gap is managed by line-height/margins in script */
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.1;
}

.vertical-slogan span:nth-child(2) {
  position: relative;
  left: 1.6em;
  /* Verdoppelte Versetzung nach rechts */
}

.vertical-slogan span:nth-child(3) {
  position: relative;
  left: 3.6em;
  /* Verdoppelte Versetzung nach rechts */
}

.follow-text {
  font-size: 20px;
  color: var(--color-brand-orange);
  /* Akzentfarbe für Aufforderungen */
  font-style: italic;
  margin-top: 10px;
}

/* ============================================= */
/* 📰 NEWS-TICKER STYLES */
/* ============================================= */

/* ▶️ Äußerer Container des News-Tickers */
.news-ticker-outer {
  width: 100%;
  max-width: 850px;
  margin: 15px auto 5px auto;
  padding: 5px 10px;
  display: flex;
  /* horizontal anordnen */
  align-items: center;
  /* vertikal mittig ausrichten */
  background: rgba(0, 0, 0, 0.28);
  /* halbtransparenter Hintergrund */
  border-radius: 10px;
  /* abgerundete Ecken */
  overflow: hidden;
  /* nichts außerhalb anzeigen */
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  font-size: 1rem;
}

/* ▶️ "News:" Label links */
.news-label {
  flex-shrink: 0;
  /* Größe fixiert, schrumpft nicht */
  margin-right: 10px;
  /* Abstand zum Track */
  display: flex;
  align-items: center;
  /* Text mittig */
  font-weight: bold;
  color: var(--color-brand-orange);
  /* Geändert auf Brand-Variable */
  font-size: 16px;
  /* ✨ blinkt nur bei jedem Start des Loops */
  animation: blink-once 10s linear infinite;
}

/* ▶️ Wrapper für die scrollenden Meldungen */
.news-scroll-wrapper {
  flex-grow: 1;
  /* nimmt restliche Breite ein */
  overflow: hidden;
  /* Text außerhalb abschneiden */
  position: relative;
  display: flex;
  align-items: center;
  /* Text vertikal mittig */
  white-space: nowrap;
  /* alles in einer Zeile */
}

/* ▶️ Die bewegte Spur mit allen Meldungen */
.news-track {
  display: inline-flex;
  /* Inhalte inline nebeneinander */
  align-items: center;
  padding-left: 100%;
  /* startet rechts außerhalb des sichtbaren Bereichs */
  animation: scroll-left 10s linear infinite;
  /* Animation für horizontales Scrollen */
}

/* ▶️ Einzelne Meldung */
.news-text {
  display: inline-flex;
  align-items: center;
  /* vertikal mittig */
  font-weight: 600;
  font-size: 16px;
  color: #ffe5c3;
  /* Spezielle Ticker-Farbe beibehalten für Kontrast */
  margin-right: 10px;
  /* Abstand zum Trenner */
  line-height: 1.4;
  white-space: nowrap;
  /* Text bleibt in einer Zeile */
}

/* ▶️ Trenner nach jeder Meldung */
.news-text::after {
  content: "|";
  /* senkrechter Strich */
  margin-left: 10px;
  /* Abstand zum Text */
  color: var(--color-brand-orange);
  /* Trenner in Markenfarbe */
}

/* ▶️ letzter Eintrag ohne Trenner */
.news-text:last-child::after {
  content: "";
}

/* ▶️ Links innerhalb des Tickers */
.news-text a {
  margin-left: 0.3em;
}

/* ============================================= */
/* 🔄 KEYFRAMES FÜR ANIMATIONEN */
/* ============================================= */

/* horizontales Scrollen */
@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}

/* Blinken des Labels nur zu Beginn des Loops */
@keyframes blink-once {
  0% {
    opacity: 1;
  }

  3% {
    opacity: 0;
  }

  6% {
    opacity: 1;
  }

  9% {
    opacity: 0;
  }

  12% {
    opacity: 1;
  }

  100% {
    opacity: 1;
  }
}

/* ============================================= */
/* 📱📲💻🖥 RESPONSIVE BREAKPOINTS – 5 STUFEN BASIS */
/* ============================================= */

/* 📱 1. XS – Kleine Smartphones */
@media (max-width: 480px) {
  .page-wrapper.home-page>main {
    min-height: auto;
    justify-content: flex-start;
    padding-top: 210px;
  }

  .viewport-center {
    padding: 0;
    /* keine zusätzliche Polsterung */
  }

  .band-name {
    font-size: 35px;
  }

  .welcome-text {
    font-size: 22px;
  }

  .description {
    font-size: 18px;
  }

  .follow-text {
    font-size: 14px;
  }

  .news-ticker-outer {
    max-width: 90%;
    margin: 20px auto;
    padding: 5px;
    font-size: 0.9rem;
  }

  .news-label {
    font-size: 14px;
    margin-right: 6px;
  }

  .news-text {
    font-size: 14px;
  }

  /* 📱 Slogan-Anpassung für kleine Handys */
  .vertical-slogan {
    font-size: 1.6rem;
  }

  .vertical-slogan span:nth-child(1) {
    position: relative;
    left: -0.8em;
    /* "laut..." ein Stück nach links */
  }

  .vertical-slogan span:nth-child(2) {
    position: relative;
    left: 0;
    /* "lebendig..." ist mittig */
  }

  .vertical-slogan span:nth-child(3) {
    position: relative;
    left: 0.8em;
    /* "unvergesslich..." ein Stück nach rechts */
  }
}

/* 📱 2. S – Normale Smartphones */
@media (min-width: 481px) and (max-width: 768px) {
  .page-wrapper.home-page>main {
    min-height: auto;
    justify-content: flex-start;
    padding-top: 210px;
  }

  .viewport-center {
    padding: 0;
  }

  .band-name {
    font-size: 40px;
  }

  .news-ticker-outer {
    max-width: 95%;
    margin: 20px auto;
    padding: 6px 8px;
    font-size: 1rem;
  }

  .news-label {
    font-size: 15px;
    margin-right: 8px;
    font-weight: bold;
  }

  .news-text {
    font-size: 15px;
  }

  /* 📱 Slogan-Anpassung für normale Handys */
  .vertical-slogan {
    font-size: 1.8rem;
  }

  .vertical-slogan span:nth-child(1) {
    position: relative;
    left: -0.8em;
  }

  .vertical-slogan span:nth-child(2) {
    position: relative;
    left: 0;
  }

  .vertical-slogan span:nth-child(3) {
    position: relative;
    left: 0.8em;
  }
}

/* 📲 3. M – Tablets */
@media (min-width: 769px) and (max-width: 1024px) {
  /* keine speziellen Anpassungen nötig */
}

/* 💻 4. L – Laptops / kleine Desktops */
@media (min-width: 1025px) and (max-width: 1440px) {
  /* keine speziellen Anpassungen nötig */
}

/* 🖥 5. XL – Große Bildschirme / 4K */
@media (min-width: 1441px) {
  /* keine speziellen Anpassungen nötig */
}