/* ===== 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: calc(100vh - 144px - 100px);
  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: #fff;
  font-size: 32px;
  font-weight: normal;
  margin-bottom: 0.2em;
}

.band-name {
  font-size: 52px;
  font-weight: 800;
  color: #ff5e00;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin-top: 0;
}

.description {
  font-size: 24px;
  margin: 10px 0;
  line-height: 1.6;
}

.follow-text {
  font-size: 20px;
  color: #ff5e00;
  font-style: italic;
  margin-top: 10px;
}

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

/* ▶️ Äußerer Container des News-Tickers */
.news-ticker-outer {
  width: 100%;
  max-width: 700px;                    /* begrenzt Breite */
  margin: 40px auto 8px auto;          /* zentriert mit Abstand */
  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: #ff6b35;
  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;
  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: #ff6b35;
}
/* ▶️ letzter Eintrag ohne Trenner */
.news-text:last-child::after {
  content: "";
}

/* ============================================= */
/* 🔄 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: calc(100vh - 144px - 94px);
    justify-content: center;
  }
  .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; }
}

/* 📱 2. S – Normale Smartphones */
@media (min-width: 481px) and (max-width: 768px) {
  .page-wrapper.home-page > main {
    min-height: calc(100vh - 144px - 94px);
    justify-content: center;
  }
  .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;
  }
}

/* 📲 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 */
}
