/*
 * Stylesheet:      table.css
 * Autoren:         Yannik Zentner/ MN 392213 ,Nils Herzig/ MN 393649 ,Marvin Heß/ MN 386261,Lasse John/ MN 391609 - TH-Lübeck Projektteam 3 im Modul Internet-Technologie
 * Erstellt:        20.10.2025
 * Beschreibung:    Table Styles für die Einsendeaufgabe 1
 */


/* Style fuer eine Tabelle - Marvin */
table {
    width: 100%;
    border-collapse: collapse;
    border-bottom: 3px solid maroon;
    border-left: hidden;
    border-right: hidden;
    box-shadow: 5px -5px 4px lightgray;
    background-color: maroon;
}

/*Schriftfarbe des Tabellenkopfes ist weiß, wird an th vererbt - Marvin*/
thead {
    color: white;
}

/*Hintergrundfarbe des Tabellenkopfes ist maroon - Marvin*/
th {
    background-color: maroon;
    text-align: left;
}

/*Hintergrundfarbe der Tabellenspalten ist dunkelgrau - Marvin*/
tr {
    background-color: darkgray;
}

/*Hintergrundfarbe der Tabellenspalten ist dunkelgrau, wenn eine Spaltenzahl ungerade ist - Marvin*/
tr:nth-child(odd) {
    background: lightgray;
}

/*Bei Mouseover wird der Hintergrund rot und die Schriftfarbe weiß - Marvin*/
tr:hover {
    background-color: red;
    color: white;
}

/*Farbe der Spaltenbegrenzung und abstand - Marvin*/
td {
    padding: 5px;
    border-left: 1px solid maroon;
    border-right: 1px solid maroon;
}

/*In der zweiten Reihe wird der erste Buchstabe fett geschrieben - Marvin*/
td:nth-child(2)::first-letter {
    font-weight: bold;
}
