* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --accent: #a755ff;
    --white: #ffffff;
    --black: #000000;
}

/* UNIVERSAL */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1.5rem;
    height: 6%;
    background: #0d0018;
    color: #ffffff;

    background: rgba(0, 0, 0, 0.2); /* sehr leichtes Schwarz */
    backdrop-filter: blur(12px);     /* das verschmilzt es mit dem BG */
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    box-shadow: 0 0 25px rgba(0,0,0,0.45);

    z-index: 1000;
}

.background-video {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    filter: saturate(0.8) contrast(1.05);
}

video::-webkit-media-controls {
    display:none !important;
}

.background-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(
        circle at top,
        rgba(122,0,255,0.18),
        rgba(0,0,0,0.5) 60%
      );
    z-index: -1;
    pointer-events: none;
}

body {
    margin: 0;
    padding: 0;
    position: relative;
    overflow: hidden;

    background-image: url("images/background_web.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

footer {
    margin-top: 10rem;
}

@media (max-width: 600px) {
    .background-video {
      display: none;
    }
    .background-overlay {
      background-image: url("images/background_web.png");
    }
}

.hero {
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-nav {
    padding: 0;
    position: absolute;
    display: flex;
    align-items: center;
    left: clamp(3.5rem, 6vw, 6rem);
    gap: clamp(0.9rem, 2vw, 1.6rem);
}

.main-nav a {
    margin-left: 0.2rem;
    font-size: 0.8rem;
    color: white;
    text-align: center;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #e8ddff;
    text-shadow: 0 0 6px rgba(122,0,255,0.7);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    text-decoration: none;
}

.main-nav a:hover {
    color:#a755ff;
}

.main-nav a.active {
    color: var(--accent);
    text-shadow: 0 0 8px rgba(122,0,255,0.9);
    font-weight: 600;
}
  
.main-nav a.active:hover {
    color: var(--accent);
}

.main-nav a.active::after {
    content: "";
    display: block;
    margin: 0 auto;
    width: 60%;
    height: 2px;
    background: var(--accent);
    border-radius: 999px;
    margin-top: 4px;
    box-shadow: 0 0 6px rgba(122,0,255,0.8);
}

/* Checkbox verstecken */
.nav-toggle {
    display: none;
  }
  
  /* Burger-Icon (Desktop: hidden) */
  .burger {
    display: none;
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 20px;
    cursor: pointer;
    z-index: 1100;
  }
  
  .burger span {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: #e8ddff;
    border-radius: 999px;
    box-shadow: 0 0 6px rgba(122,0,255,0.7);
    transition: 0.2s ease;
  }
  
  .burger span:nth-child(1) { top: 0; }
  .burger span:nth-child(2) { top: 9px; }
  .burger span:nth-child(3) { bottom: 0; }
  
  /* Burger wird zum X im Open-State */
  .nav-toggle:checked + .burger span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .nav-toggle:checked + .burger span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle:checked + .burger span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
  
  /* MOBILE */
  @media (max-width: 600px) {
    .burger { display: block; }
  
    .main-nav {
      position: fixed;
      top: 6%;     /* oder z.B. 60px wenn dein Header fix 60px hoch ist */
      left: 0;
      width: 100vw;
  
      display: flex;
      flex-direction: column;
      gap: 0.9rem;
  
      padding: 1rem 1.2rem;
      background: rgba(0,0,0,0.75);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border-bottom: 1px solid rgba(232,221,255,0.08);
  
      transform: translateY(-120%);
      transition: transform 0.25s ease;
      z-index: 1050;
    }
  
    /* nav öffnet sich */
    .nav-toggle:checked + .burger + .main-nav {
      transform: translateY(0);
    }
  
    .main-nav a {
      margin-left: 0;
      font-size: 1.05rem;
      text-align: left;
    }
  }

/* Logo-Bild */
.logo-img {
    margin-left: -0.75rem;
    padding-right: 1rem;
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(122,0,255,0.7));
}

/* HOME (index.html) */

/* MP3-PLAYER */
.player-box {
    width: min(70vw, 520px);
    aspect-ratio: 2 / 3;

    background-image: url("images/mp3player_trnsp.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
}

.player-controls {
    position: absolute;
    inset: 0;
}

/* MP3-PLAYER BUTTONS */
.player-button {
    position: absolute;
    width: 10%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: transparent;
    font-size: 1.0rem;
    cursor: pointer;
}

#prev   { bottom: 42.9%; left: 27.75%; }
#play   { width: 11.3%; aspect-ratio: 1 / 1; bottom: 42.25%; left: 44.4%; }
#next   { bottom: 42.9%; right: 27.75%; }

.player-button:hover {
    animation: pulse 0.9s infinite alternate;

}
@keyframes pulse {
    0% {
        box-shadow: 0 0 8px rgba(122, 0, 255, 0.3);
    }
    100% {
        box-shadow: 0 0 14px rgba(122, 0, 255, 0.7);
        transform: scale(1.08);
    }
}

.player-button:active {
    transform: scale(0.92);
    background: rgba(122, 0, 255, 0.08);
    box-shadow: 0 0 8px rgb(122, 0, 255, 0.5);
}

/* MP3-PLAYER SCREEN */
.player-screen {
    position: absolute;
    bottom: 55.6%;
    left: 33.2%;
    width: 35%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

/* PROGRESS BAR */
#progress {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    outline: none;
    cursor: pointer;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.6);
}

/* THUMB */
#progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #857da8;
    box-shadow: 0 0 10px rgba(122, 0, 255, 0.9);
    cursor: pointer;
}

/* TITLE */
#track-title {
    margin-bottom: 7.1rem;
    font-size: 0.8rem;
    color: white;
    text-align: center;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #e8ddff;
    text-shadow: 0 0 6px rgba(122,0,255,0.7);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}   

/* ============================= */
/* MP3 PLAYER – MOBILE TWEAKS */
/* ============================= */
@media (max-width: 600px) {
    .player-box {
        width: 88vw;          /* almost full width on phone */
        max-width: 380px;     /* avoid huge player on big phones */
        margin-top: 5.5rem;   /* space under fixed header */
    }

    .player-screen {
        width: 35%;
        left: 32.7%;
        bottom: 56%;
        gap: 0.4rem;
    }

    #track-title {
        margin-bottom: 4.4rem;
        font-size: 0.8rem;
        letter-spacing: 0.06em;
    }

    #progress {
        height: 5px;
    }
}


/* Volume */
.main-volume {
    position: fixed;
    bottom: 0.6rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 900;
  
    display: flex;
    align-items: center;
    gap: 0.8rem;
  
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(10px);
  
    border: 1px solid rgba(232,221,255,0.08);
    box-shadow: 0 0 18px rgba(122,0,255,0.25);

    width: auto;
    inline-size: fit-content;
    max-width: none;
}
  
#main-volume-slider {
    width: 180px;
    height: 4px;
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255,255,255,0.18);
    border-radius: 999px;
    cursor: pointer;
}
  
#main-volume-slider::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #857da8;
    box-shadow: 0 0 8px rgba(122,0,255,0.8);
}
  
#main-volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #857da8;
    border: none;
    box-shadow: 0 0 8px rgba(122,0,255,0.8);
}
  
.main-vol-icon {
    width: 20px;
    height: 20px;
    cursor: pointer;
    user-select: none;
    transition: 0.15s ease;
    filter: drop-shadow(0 0 4px rgba(122,0,255,0.4));
    flex: 0 0 20px;   /* nimmt immer exakt 20px Platz, schrumpft nicht */
    display: block;   /* kein baseline/inline-shift */
    margin: 0;
    padding: 0;
}

.main-vol-icon:hover{
    transform: scale(1.08);
    text-shadow: 0 0 8px rgba(122,0,255,0.8);
}
  
.main-vol-value {
    font-size: 0.8rem;
    min-width: 3.2ch;
    text-align: right;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #e8ddff;
    text-shadow: 0 0 6px rgba(122,0,255,0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
  
/* Mobile kleiner */
@media (max-width: 600px) {
    .main-volume {
      bottom: 1.2rem;
      padding: 0.6rem 0.9rem;
    }
    #main-volume-slider {
      width: 130px;
    }
}

