:root {
  --fg: #ffffff;
  --bg-image: url('../img/background.jpg');
  --footer-font-size: clamp(10px, 1.0vw, 13px);
}

@media (max-width: 768px) {
  :root {
    --footer-font-size: clamp(12px, 3.2vw, 14px);
  }
}

html { scrollbar-gutter: auto; }

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  overflow-x: hidden;
  font-family: Poppins, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--fg);
  background-color: #0b0f1a;
  background-image: var(--bg-image);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;

  font-weight: 200;
}

.site-header, .site-footer {
  position: fixed;
  left: 0; right: 0;
}
.site-header { top: 0; }
.site-footer { bottom: 0; }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(12px, 2vw, 20px) clamp(16px, 4vw, 40px);
  background: transparent;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  padding: 10px clamp(16px, 4vw, 40px) 8px;
  background:
    linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)),
    linear-gradient(to top, rgba(0,0,0,0.35), rgba(0,0,0,0));
  backdrop-filter: blur(3px);
}

.brand {
  text-decoration: none;
  color: #fff;
  font-weight: 100;
  font-size: clamp(18px, 2.2vw, 24px);
  letter-spacing: 1px;
}
.brand-strong { 
    font-weight: 600; 
    font-size: clamp(22px, 2.4vw, 28px);
    letter-spacing: 0.5px;
}

.center-stage {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 0 2vw;
}

.content-box {
  display: grid;
  place-items: center;
  width: min(90vw, 560px);
  aspect-ratio: 1 / 1;

}
.content-box i {
  font-size: clamp(40px, 8vw, 60px);
}

#offlineWrapper {
  display: none;              /* per JS auf flex gesetzt */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(8px, 2vw, 12px);
}

#offline-message {
  font-weight: 400;
}
.impressum-link {
  color: #fff;
  text-decoration: none;
  font-size: clamp(14px, 1.8vw, 16px);
}
.impressum-link:hover { 
  text-decoration: underline; 
}

.service-times {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}

.service-times p,
.footer-bar p {
  margin: 0;
  font-size: var(--footer-font-size);
  font-weight: 300;
  line-height: 1.35;
}

.service-times span,
.footer-bar span {
  font-weight: 300;
}

.service-time {
  margin: 0;
  font-weight: 300;
  letter-spacing: 0.5px;
}

.service-label {
  font-weight: 400;
  margin-right: 6px;
}

.service-value {
  font-weight: 200;
}

.footer-bar {
  width: 100%;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 10px;
  margin-top: 10px;
  text-align: center;
}

.footer-address {
  margin: 0;
  font-size: var(--footer-font-size);
  font-weight: 300;
  opacity: 0.8;
  letter-spacing: 0.5px;
}

.address-value {
  font-weight: 300;
}

#controlWrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#playButton {
  width: 100px;
  height: 100px;
  border: 2px solid white;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  background-color: rgba(0,0,0,0.12);
}

.player-icon {
  width: 66px;
  height: 66px;
  overflow: visible;
}

.icon-triangle {
  fill: #fff;
  stroke: #fff;
  stroke-width: 5;
  stroke-linejoin: round;
  paint-order: stroke fill;
  transform-origin: 50% 50%;
  transition: opacity 220ms ease, transform 260ms ease;
}

.bars {
  opacity: 0;
  transform-origin: 50% 50%;
  transform: translateX(2px) scale(0.55);
  transition: opacity 200ms ease, transform 280ms ease;
}

.bar {
  fill: #fff;
  transform-box: fill-box;
  transform-origin: center;
}

#playButton.is-playing .icon-triangle {
  opacity: 0;
  transform: scale(0.72);
}

#playButton.is-playing .bars {
  opacity: 1;
  transform: translateX(2px) scale(1);
}

.equalizing .b1 { animation: eq1 2200ms infinite ease-in-out; }
.equalizing .b2 { animation: eq2 2500ms infinite ease-in-out; }
.equalizing .b3 { animation: eq3 2050ms infinite ease-in-out; }
.equalizing .b4 { animation: eq4 2350ms infinite ease-in-out; }
.equalizing .b5 { animation: eq5 2600ms infinite ease-in-out; }

@keyframes eq1 {
  0%, 100% { transform: scaleY(0.68); }
  24% { transform: scaleY(1.08); }
  49% { transform: scaleY(0.56); }
  73% { transform: scaleY(0.92); }
}

@keyframes eq2 {
  0%, 100% { transform: scaleY(0.56); }
  19% { transform: scaleY(0.9); }
  51% { transform: scaleY(0.72); }
  77% { transform: scaleY(1.04); }
}

@keyframes eq3 {
  0%, 100% { transform: scaleY(0.82); }
  18% { transform: scaleY(1.14); }
  46% { transform: scaleY(0.72); }
  71% { transform: scaleY(1.22); }
}

@keyframes eq4 {
  0%, 100% { transform: scaleY(0.62); }
  27% { transform: scaleY(0.98); }
  58% { transform: scaleY(0.52); }
  83% { transform: scaleY(0.86); }
}

@keyframes eq5 {
  0%, 100% { transform: scaleY(0.52); }
  22% { transform: scaleY(0.84); }
  47% { transform: scaleY(0.66); }
  79% { transform: scaleY(0.96); }
}

#volumeContainer {
  position: relative;
  margin-top: clamp(12px, 2.5vw, 24px);
}

#volumeIcon {
  font-size: clamp(16px, 2.2vw, 22px);
  color: white;
  cursor: pointer;
}

#volumeSlider {
  position: absolute;
  top: clamp(28px, 3vw, 40px);
  left: 50%;
  transform: translateX(-50%) scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
  padding: clamp(4px, 0.8vw, 8px);
  width: clamp(120px, 20vw, 220px);
  display: flex;
  justify-content: center;
}

#volumeContainer.open #volumeSlider {
  transform: translateX(-50%) scaleY(1);
}

#volumeRange {
  --track-h: clamp(1px, 0.2vw, 2px);
  --thumb-size: clamp(10px, 1.2vw, 14px);

  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: var(--thumb-size);
  background: transparent;
}

/* WebKit */
#volumeRange::-webkit-slider-runnable-track {
  width: 100%;
  height: var(--track-h);
  background: white;
  border-radius: 3px;
}
#volumeRange::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  height: var(--thumb-size);
  width: var(--thumb-size);
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  margin-top: calc((var(--track-h) - var(--thumb-size)) / 2);
}

/* Firefox */
#volumeRange::-moz-range-track {
  width: 100%;
  height: var(--track-h);
  background: white;
  border: none;
  border-radius: 3px;
}
#volumeRange::-moz-range-thumb {
  height: var(--thumb-size);
  width: var(--thumb-size);
  background: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

@media (hover: none) and (pointer: coarse) {
  #volumeContainer {
    display: none !important;
  }
}
