/* =========================
   BASIS
========================= */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 20px;
    background-color: #4A708B;
    color: #eee;

    display: flex;
    min-height: 100vh;
}

/* =========================
   LAYOUT
========================= */
.container {
    width: 90%;
    padding: 20px;
}

#massband {
    width: 10%;
    height: 100vh;
    background-color: #eec900;
    border-left: 2px solid #333;
    overflow-y: auto;
    position: relative;
}

/* =========================
   TYPO / ELEMENTE
========================= */
h1 {
    font-size: 28px;
}

a {
    color: #ff8c42;
    text-decoration: none;
}

a:hover {
    color: #ffa366;
}

button {
    width: 60%;
    padding: 18px;
    font-size: 15px;
    margin-bottom: 10px;
    border: none;
    cursor: pointer;
}

/* =========================
   NAV PFEIL
========================= */
.nav-pfeil {
    font-size: 80px;
    color: #fff;
    text-decoration: none;
}

/* =========================
   RATING BAR
========================= */
.rating-bar {
    display: flex;
    gap: 2px;
}

.rate-btn {
    flex: 1;
    padding: 15px 0;
    border: none;
    cursor: pointer;
    color: #000;
    font-weight: bold;
}

/* Farbverlauf */
.rate-btn:nth-child(1)  { background: #0066ff; }
.rate-btn:nth-child(2)  { background: #0099ff; }
.rate-btn:nth-child(3)  { background: #00ccff; }
.rate-btn:nth-child(4)  { background: #00ffcc; }
.rate-btn:nth-child(5)  { background: #00ff66; }
.rate-btn:nth-child(6)  { background: #66ff00; }
.rate-btn:nth-child(7)  { background: #ccff00; }
.rate-btn:nth-child(8)  { background: #ffcc00; }
.rate-btn:nth-child(9)  { background: #ff9900; }
.rate-btn:nth-child(10) { background: #ff3300; }
.rate-btn:nth-child(11) { background: #cc0000; }

/* =========================
   MASSBAND INHALT
========================= */
#massband .eintrag {
    padding: 8px 4px;
    font-size: 13px;
    color: #000;
    text-align: center;
    border-bottom: 1px solid #999;
    white-space: nowrap;
}

#massband .aktiv {
    background: #ffcc00;
    font-weight: bold;
}

/* Skalenlinien */
#massband::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 15px;
    height: 100%;
    background-image: repeating-linear-gradient(
        to bottom,
        #000 0px,
        #000 2px,
        transparent 2px,
        transparent 10px
    );
}

#massband::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 100%;
    background-image: repeating-linear-gradient(
        to bottom,
        #000 0px,
        #000 3px,
        transparent 3px,
        transparent 50px
    );
}

/* =========================
   MOBILE (HANDY)
========================= */
@media (max-width: 600px) {

    body {
        flex-direction: column;
        font-size: 18px;
    }

    .container {
        width: 100%;
        padding: 15px;
    }

    #massband {
        width: 100%;
        height: 60px;
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        border-left: none;
        border-top: 2px solid #333;
        
    }

    #massband .eintrag {
        flex: 0 0 auto;
        font-size: 80px;
        padding: 5px;
        border-bottom: none;
        border-right: 1px solid #999;
    }

    h1 {
        font-size: 24px;
    }

    button {
        width: 100%;
        font-size: 14px;
    }

    .nav-pfeil {
        font-size: 50px;
    }
}

#nach-oben {
    position: fixed;
    bottom: 20px;
    right: 12%;
    background: #333;
    color: #fff;
    padding: 10px 12px;
    border-radius: 6px;
    text-decoration: none;
    display: none;
    z-index: 1000;
}


