/* Body styles */
body {
    background-image: url('./Assets/hintergrundschule.jpg');
    background-size: cover;
    display: flex;
    font-family: Arial, sans-serif;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* ADS Logo */
nav li img {
    height: auto;
    margin-bottom: 20px;
    margin-left: 15%;
    margin-right: 15%;
    margin-top: 35px;
    width: 70%;
}

/* Contentdiv */
.contentdiv1 {
    background-color: #9b2111;
    border-radius: 20px;
    bottom: 5%;
    color: white;
    height: 85%;
    margin: 20px;
    margin-right: 5%;
    opacity: 0.96;
    overflow: auto;
    padding: 20px;
    position: fixed;
    right: 0;
    top: 5%;
    width: 80%;
}

/* Flexcontainer */
.flex1 {
    align-items: center;
    display: flex;
    height: 100vh;
    justify-content: center;
    justify-self: center;
    margin-left: 5%;
    margin-right: 5%;
    width: 70%;
}

/* Flexboxcontainer */
.flexbox {
    align-items: center;
    display: flex;
    height: 100vh;
    justify-content: left;
    justify-self: center;
    margin-left: 15%;
    width: 100%;
}

/* Überschrift */
h1 {
    margin-bottom: 15%;
    margin-top: 30px;
    text-align: center;
}

/* link images */
.link-images {
    align-items: center;
    width: 100%;
    color: white;
    display: flex;
    font-size: 20px;
    font-weight: bold;
    gap: 10%;
    justify-content: center;
    margin: auto;
    text-align: center;
    text-decoration: underline;
}

/* link styles startpage */
.link-images a {
    color: white;
    text-decoration: none;
}

/* list styles */
ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

/* Navigationbar */
nav {
    align-items: center;
    background-color: #9b2111;
    border-radius: 0 25px 25px 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    left: 0; 
    overflow: hidden;
    position: fixed;
    width: 10%;
}

/* Navigation Links */
nav a {
    border-radius: 15px;
    display: block;
    font-size: 22px;
    margin: 10px auto;
    margin-top: 30px;
    padding: 14px 20px;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease, border 0.3s ease;
    width: 70%;
    color: white; /* ensure links stay white */
}

/* Link styles */
ul li a:hover {
    background-color: #7a0d0d;
    outline: 2px solid white;
    outline-offset: 2px;
    outline-style: border-radius 15px;
    color: white;
}

/* Move Impressum link to bottom */
#impressum {
    bottom: 3%;
    color: white;
    font-size: 12px;
    position: absolute;
    text-align: center;
    width: 100%;
}

/* Hamburger menu (hidden by default) */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    margin-left: 20px;
}

.hamburger div {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 2px;
}

/* Menu for mobile devices*/
@media (max-width: 768px) {
    #ADS {
        display: none;
    }
    
    .hamburger {
            display: flex;
        }

    nav {
        width: 100%;
        top: 0;
        height: 10%;
        flex-direction: row;
    }

    .contentdiv1 {
        margin: auto;
        width: 90%;
        justify-self: center;
        margin-top: 15%;
    }

    .flexbox {
        flex-direction: column;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }

    .link-images {
        flex-direction: column;
        gap: 20px;
    }
    
    #nav-links {
        display: none;
    }
}

/*Für Table z.B. Tickets */
table {
    width: 100%;
    border-collapse: collapse; /* Verhindert doppelte Borders */
    background-color: rgba(255, 255, 255, 0.8); /* Halbtransparentes Weiß */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Leichte Schatten für Tiefe */
}

th, td {
    padding: 12px; /* Innenabstand für Zellen */
    text-align: left; /* Text linksbündig */
    border: 1px solid rgba(0, 0, 0, 0.2); /* Halbdurchsichtige Border */
}

th {
    background-color: rgba(0, 123, 255, 0.2); /* Halbtransparentes Blau für den Kopf */
    font-weight: bold; /* Fettdruck für Kopfzeilen */
}

tr:nth-child(even) {
    background-color: rgba(240, 240, 240, 0.5); /* Halbtransparentes Grau für gerade Zeilen */
}

tr:hover {
    background-color: rgba(0, 123, 255, 0.3); /* Hover-Effekt für Zeilen */
}
