/* Grundlegendes Design & Schrift */
body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #1a1a1b;
    color: #eeeeee;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Logout-Leiste oben rechts - per absoluter Position aus dem Flex-Layout raus */
.user-bar {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 14px;
    color: #aaa;
    z-index: 50;
}

.user-bar a {
    color: #4da3ff;
    text-decoration: none;
    margin-left: 5px;
}

.user-bar a:hover {
    text-decoration: underline;
}

/* Hauptlayout: Flexbox fuer zentrierte Anordnung */
body > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
}

/* Titel-Bereich: volle Breite, zentriert */
.title {
    width: 100%;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 10px;
}

.title h1 {
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 5px 0;
    text-transform: uppercase;
    letter-spacing: -1px;
    color: #ffffff;
    text-shadow: 0px 5px 15px rgba(0, 0, 0, 0.5);
}

.title h2 {
    font-size: 22px;
    margin: 0;
    color: #4da3ff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Allgemeine Ueberschriften */
h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
}

h2 {
    font-size: 24px;
    margin-top: 10px;
    margin-bottom: 15px;
    color: #4da3ff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sportart-Container (Volley links, Fussball rechts) */
.links, .rechts {
    flex: 0 1 600px;
    min-width: 320px;
    max-width: 700px;
    background: #262627;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Tabellen-Styling */
table {
    width: 100% !important;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: transparent;
}

.resultate {
    border: none;
}

th {
    background-color: #333334;
    color: #4da3ff;
    padding: 12px 8px;
    font-size: 14px;
    text-transform: uppercase;
    border-bottom: 2px solid #444;
}

td {
    padding: 10px 8px;
    border-bottom: 1px solid #333;
    font-size: 15px;
}

tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.03);
}

tr:hover {
    background-color: rgba(77, 163, 255, 0.1);
}

th[colspan="2"], th[colspan="7"] {
    background-color: #3d3d3e;
    color: #ffffff;
    font-size: 16px;
    padding: 15px;
}

/* Speichern-Button unten */
.button {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

input[type="submit"], input[type="reset"] {
    background-color: #4da3ff;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
}

input[type="submit"]:hover, input[type="reset"]:hover {
    background-color: #357abd;
    transform: scale(1.05);
}

/* Eingabefelder fuer Resultate */
input[type="text"], 
input[size="1"] {
    background-color: #333334;
    border: 1px solid #444;
    color: #ffffff;
    padding: 4px;
    text-align: center;
    border-radius: 4px;
    font-family: 'Segoe UI', sans-serif;
    font-size: 14px;
    transition: all 0.2s ease;
    outline: none;
}

input[type="text"]:focus, 
input[size="1"]:focus {
    border-color: #4da3ff;
    background-color: #3d3d3e;
    box-shadow: 0 0 5px rgba(77, 163, 255, 0.5);
}

td input {
    max-width: 40px;
}

input[type="password"] {
    background-color: #333334;
    border: 1px solid #444;
    color: #ffffff;
    border-radius: 4px;
    outline: none;
}

input[type="password"]:focus {
    border-color: #4da3ff;
    box-shadow: 0 0 5px rgba(77, 163, 255, 0.5);
}
