/* style.css */

/* -------------------------------------------------------------------
   BASIS-STYLING
------------------------------------------------------------------- */
body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  background: #121212;
  color: #fff;
  /* Padding unten für den fixierten Footer/Player */
  padding-bottom: 80px; 
}

/* -------------------------------------------------------------------
   HEADER & NAVIGATION
------------------------------------------------------------------- */
header {
  background: #1E1E1E;
  padding: 15px 30px;
}
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 25px;
}
nav a {
  color: #fff;              
  text-decoration: none;    
  font-weight: bold;
}
nav a:hover {
  color: #FF6F61;           
}

/* -------------------------------------------------------------------
   HERO (Für pages/home.html)
------------------------------------------------------------------- */
.hero {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #121212, #1E1E1E);
}
.hero h1 {
  margin: 0;
  font-size: 2rem;
  color: #FF6F61;
}
.hero p {
  margin: 15px 0;
  font-size: 1.1rem;
}
.play {
  background: #00BFFF;
  border: none;
  padding: 15px 30px;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  color: #121212;
}

/* -------------------------------------------------------------------
   CONTENT CONTAINER (Wird dynamisch geladen)
------------------------------------------------------------------- */
#content-container {
  padding: 30px;
}

/* Styles für den Standard-Content (z.B. pages/home.html) */
.content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}
.left {
  flex: 1;
}
.left ul {
  list-style: none;   
  padding: 0;
}
.left ul li {
  margin-bottom: 10px;
}
.left ul li:nth-child(1)::before {
  content: "💬 ";     
}
.left ul li:nth-child(2)::before {
  content: "🎵 ";     
}
.left a {
  color: #fff;        
  text-decoration: none;
}
.left a:hover {
  color: #00BFFF;
}
.right {
  width: 25%;         
  min-width: 250px; 
  text-align: left;
  background: #202020;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}
h2 {
  color: #00BFFF;
  margin-top: 0;
}

/* -------------------------------------------------------------------
   FOOTER & MODERNER PLAYER
------------------------------------------------------------------- */
footer {
  background: #1E1E1E;
  position: fixed; 
  bottom: 0;       
  width: 100%;
  box-sizing: border-box; 
  z-index: 1000; 
  
  /* NEUE FLEXBOX FÜR DEN PLAYER */
  height: 80px; 
  display: flex; 
  align-items: center; 
  padding: 0 30px; 
}

/* Footer-Text (Impressum etc.) wird über dem Player positioniert */
footer p {
    position: absolute;
    left: 30px;
    top: -15px; 
    font-size: 0.8em;
    opacity: 0.5;
    margin: 0;
    padding: 0;
}
footer a {
  color: #fff;        
  text-decoration: none;
}
footer a:hover {
  color: #00BFFF;
}


/* Haupt-Wrapper des Players */
.player-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* 1. COVER & SONG INFO */
.player-info {
  display: flex;
  align-items: center;
  flex: 1; 
}
#cover-art {
  /* Größe wird im HTML inline überschrieben (80x80) */
  width: 50px;
  height: 50px;
  background: #303030; 
  border-radius: 4px;
  margin-right: 15px;
  overflow: hidden;
}
#cover-art img {
  width: 100%;
  height: 100%;
  /* WICHTIG: Sorgt dafür, dass das Bild die Box füllt (mit Beschnitt) */
  object-fit: cover; 
}
#current-song-info {
  line-height: 1.4;
}
#current-song-info .title {
  font-weight: bold;
  color: #fff;
  font-size: 1.1em;
}
#current-song-info .artist {
  color: #aaa;
  font-size: 0.9em;
}

/* 2. PLAYER CONTROLS (Play/Pause Button) */
.player-controls {
  display: flex;
  justify-content: center;
  flex: 1;
}
.player-controls button {
  background: none;
  border: 2px solid #00BFFF; 
  color: #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.2em;
  cursor: pointer;
  transition: background-color 0.2s;
  padding: 0;
  margin: 0 10px;
}
.player-controls button:hover {
  background: #00BFFF;
  color: #121212;
}

/* 3. VOLUME CONTROL */
.volume-control {
  display: flex;
  align-items: center;
  justify-content: flex-end; 
  flex: 1; 
  min-width: 150px; 
}
.volume-control span {
  margin-right: 8px;
  font-size: 1.2em;
}
#volume-slider {
  width: 100px;
  -webkit-appearance: none;
  height: 5px;
  background: #555;
  border-radius: 5px;
  cursor: pointer;
}
/* Styling für den Lautstärke-Regler (Thumb) */
#volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #FF6F61; 
}

/* -------------------------------------------------------------------
   SICHTBARKEITS-NOTFALL-REGELN (Anti-Verschwinden-Fix)
------------------------------------------------------------------- */
.player-info {
    display: flex !important; 
    min-height: 80px;
    align-items: center;
}
#cover-art, #current-song-info {
    /* WICHTIG: Erzwingt die Sichtbarkeit der Metadaten-Container */
    display: block !important; 
    visibility: visible !important;
    opacity: 1 !important;
}

.welcome-box {
    /* Fügt einen leichten Rahmen hinzu */
    border: 1px solid #ccc; 
    /* Abstand um den Inhalt */
    padding: 20px; 
    /* Abgerundete Ecken */
    border-radius: 8px; 
    /* Optional: Hintergrundfarbe für Hervorhebung */
    background-color: #202020; 
    /* Abstand nach unten */
    margin-bottom: 25px;
}
.news-image {
    max-width: 100%; /* Passt die Bildbreite an den Container an */
    height: auto;
    max-height: 200px; /* Begrenzt die Höhe */
    display: block;
    margin-bottom: 10px;
    border-radius: 4px;
}

<style>
  /* Bestehende Navigation-Button-Styles */
  .facebook-share-btn {
      display: inline-block !important; 
      padding: 8px 12px !important;
      background-color: #3b5998 !important; 
      color: white !important; 
      font-weight: bold !important; 
      border-radius: 4px !important; 
      text-decoration: none !important;
      font-size: 0.9em !important;
      margin: 0 !important; 
      text-align: center;
      cursor: pointer;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }
  /* 🛑 NEUES STYLING FÜR DEN BUTTON IM PLAYER */
  .player-share-btn {
      margin-left: 10px !important; 
      padding: 6px !important;
      font-size: 0.7em !important;
      /* Macht ihn rund und klein */
      width: 40px; 
      height: 40px; 
      border-radius: 50% !important; 
      display: flex !important;
      align-items: center;
      justify-content: center;
      text-transform: uppercase;
      font-weight: bold;
  }
  </style>
