html, body {
  margin: 0;
  padding: 0;
}

h1 {
  margin: 0;
  padding: 0;
  font-size: clamp(0.6rem, 5vw, 2.5rem);
}

/* Hintergrundbereich */
.start_main_hintergrund {
  background-color: #f5f0e6;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  display: block;
  text-align: center;
}

/* Hauptbereich */
.start_main {
  position: relative;
  top: 0;
  text-align: center;
}

/* Laut.fm Songanzeige */
#api_lfm_current_song1 {
  font-size: 20px;
  font-weight: bold;
  margin: 0;
  padding: 0;
}

#api_lfm_song_live {
  font-size: clamp(0.5rem, 2vw, 1.5rem);
  font-weight: bold;
}

/* Container für die oberen Boxen */
.start_container_box {
  position: relative;
  width: 98vw;
  max-width: 1200px;
  height: 6.9em;
  padding: 0 6px;
}

/* Begrüßungsbox */
.start_box1 {
  position: absolute;
  top: 10px;
  right: 23px;
  width: 10%;
  height: 50px;
  border: 2px solid blue;
  padding: 0 6px;
  background-color: lightblue;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
}

/* Logout-Button */
.start_box2 {
  position: absolute;
  top: 60px;
  right: 13px;
  width: 10%;
  height: 50px;
  background-color: transparent;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
}

/* SONGTEXT-BOX – korrigiert */
.start_box3 {
  position: absolute;
  top: 10px;
  left: 10px;        /* GANZ LINKS */
  width: 55%;        /* genug Platz für Songtext */
  height: 86px;
  padding: 0 6px;
  border: 2px solid blue;
  background-color: lightblue;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
}

/* LIVE-Box */
.start_box4 {
  position: absolute;
  top: 10px;
  left: calc(55% + 34px);   /* 55% Breite + Abstand */
  width: 18%;
  height: 86px;
  border: 2px solid blue;
  padding: 0 6px;
  background-color: lightblue;
  text-align: center;
  display: grid;
  place-items: center;
  border-radius: 10px;
}

/* DJ-Bild Box */
.start_box5 {
  position: absolute;
  top: 10px;
  left: calc(55% + 18% + 58px); /* Box3 + Box4 + Abstand */
  width: 7%;
  height: 86px;
  border: 2px solid blue;
  padding: 0 6px;
  background-color: lightblue;
  text-align: center;
  display: grid;
  place-items: center;
  border-radius: 10px;
}

/* Blink-Effekt */
.blink {
  animation: blink-animation 2s steps(2, start) infinite;
}

@keyframes blink-animation {
  50% {
    opacity: 0;
  }
}

/* Buttons */
.start_myButton {
  position: absolute;
  background-color: #f1c100;
  color: black;
  right: 9.5%;
  width: 100%;
  height: 30px;
  border: medium solid #784911;
  border-radius: 5px;
  text-align: center;
  font-size: 16px;
  cursor: pointer;
}

.start_myButton:hover {
  background-color: #ffda44;
}

/* ----------------------------- */
/*   NEUE LAUFSCHRIFT-LOGIK     */
/* ----------------------------- */

#song-container {
  width: 100%;
  height: 28px;
  overflow: hidden;
  white-space: nowrap;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

#song-text {
    display: inline-block;
    font-size: 28px;
    line-height: 34px;
    white-space: nowrap;
    transition: transform 0.3s ease;
}

/* Wenn Text zu lang ist → Lauftext */
.marquee {
    animation: marquee 12s linear infinite;
}

@keyframes marquee {
    0%   { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Wenn Text passt → zentriert */
.static-text {
    width: 100%;
    text-align: center;
}
