/* ===========================================
   Datei: header.css
   Pfad: ausgabe_006/css/header.css
   Zweck: Layout für das MR-Logo, Schriftzug, Adventure-Titel & Musikbutton
   =========================================== */

.site-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0.8em 1.2em;
  background: rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 10;
  gap: 1.2em;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.2em;
  font-family: 'Montserrat', sans-serif;
  position: relative;
}

.logo-link {
  text-decoration: none;
}

.logo-mr {
  font-size: 3.2em;
  font-weight: bold;
  color: #cc3333;
  padding: 0.03em 0.06em;
  background: #111;
  border-radius: 4px;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 12px #8b000088;
}

.schrift-block {
  color: #aa3333;
  font-size: 0.68em;
  font-weight: 600;
  letter-spacing: 0.05em;
  transform-origin: center;
}

.schrift-block.oben {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  margin-right: 0.05em;
}

.schrift-block.unten {
  writing-mode: vertical-rl;
  margin-left: 0.05em;
}

.schrift-block.fan {
  position: absolute;
  top: 5.0em;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75em;
  color: #aa3333;
  opacity: 0.9;
  z-index: 3;
}

/* Adventure-Titel im Header */
.adventure-title {
  flex: 1 1 auto;
  align-self: center;
  margin: 0 2.2em 0 2.0em;
  font-family: 'UnifrakturCook', 'Cinzel Decorative', 'Cormorant Garamond', 'Montserrat', serif;
  font-size: 3.0em;
  color: #cc0000;
  letter-spacing: 0.04em;
  text-shadow:
    1px 1px 7px #000a,
    0 0 8px #ff0035,
    2px 2px 0px #44000a;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  transition: font-size 0.2s, color 0.2s;
}

/* Responsive Titel: bei schmalen Screens kleiner und mit Umbruch */
@media (max-width: 950px) {
  .adventure-title {
    font-size: 1.25em;
    margin: 0 0.8em;
    white-space: normal;
    text-align: center;
  }
}
@media (max-width: 600px) {
  .adventure-title {
    font-size: 1em;
    margin: 0 0.2em;
    line-height: 1.2;
    padding: 0.1em 0;
  }
}

/* Musik-Button */
.sound-button-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
}

.musik-btn {
  background: #330000;
  border: 2px solid #cc4444;
  color: #ff6666;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 1.4em;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 0 8px #cc4444aa;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
}

/* Aktiver Zustand: Musik läuft (blutrot) */
.musik-btn.is-playing {
  background: #990010;
  color: #fff;
  border-color: #ff3333;
  box-shadow: 0 0 14px #ff3333;
}

/* Pausiert: Musik gestoppt (blaugrau) */
.musik-btn.is-paused {
  background: #3a4150;
  color: #d2dbe7;
  border-color: #6a748a;
  box-shadow: 0 0 8px #55607799;
}

/* Nicht verfügbar: Musik fehlt (grau/leer) */
.musik-btn.is-unavailable {
  background: #888;
  color: #eee;
  border-color: #aaa;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.6;
}

.musik-btn:hover:not(.is-unavailable) {
  filter: brightness(1.08) contrast(1.06);
  box-shadow: 0 0 18px #ff6666cc;
}

.musik-btn:focus {
  outline: 2px solid #ff8888;
  outline-offset: 2px;
}

/* Icon im Button zentrieren */
#musik-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-size: 1.35em;
  height: 1.2em;
}
