:root {
    --mainorange: #F59F29;
}

/* Grundlayout */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

body {
    font-family: Arial, sans-serif;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: url('../assets/background_leinwand.png');
    background-size: cover;       /* Bild skaliert, sodass es den gesamten Bildschirm abdeckt */
    background-repeat: repeat-y;  /* <- nur vertikal wiederholen */
    background-position: top center;  /* Bild wird zentriert angezeigt */
}

/* Navigation oben */
body .navbar {
    background-color: #333;
    padding: 1% 2%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 5%;
    width: 100%;
}

.logo img {
    height: 40px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.nav-links a {
    position: relative;
    display: inline-block;
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    z-index: 1;
}

/* Parallelogramm-Effekt mit Scale-Animation */
.nav-links a::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: orange;
    transform: skew(-20deg) scaleX(0); /* gestaucht */
    transform-origin: center; /* von links aus skalieren */
    z-index: -1;
    transition: transform 0.3s ease;
}

.nav-links a:hover::before {
    transform: skew(-20deg) scaleX(0.85); /* volle Breite */
}

/* Aktiver Link: Parallelogramm dauerhaft sichtbar */
.nav-links a.active::before {
    transform: skew(-20deg) scaleX(0.85);
    height: 100%;
}

/* Optional: gleiche Positionierung wie bei Hover */
.nav-links a.active {
    position: relative;
    color: black;
    z-index: 1;
}


h1 {
    font-family: "Roboto", sans-serif;
    font-weight: 900;
    font-style: normal;
    font-size: 3em;
    float: left;
    margin-left: 24px;
}