/* Allgemeine Stile */
body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Header-Balken */
header {
    width: 100%;
    background-color: #007bff;
    color: #fff;
    text-align: center;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

header h1 {
    margin: 0;
    font-size: 28px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Überschrift h2 */
h2 {
    text-align: center;
    color: #333;
    font-size: 24px;
    margin: 20px 0 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Formular-Styling (für Login-Seite und Buchungsseite) */
form {
    width: 100%;
    max-width: 800px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box; /* Stellt sicher, dass Padding in Breite einbezogen wird */
    padding: 20px; /* Einheitliches Padding mit Grid */
}

form.buchungen-form {
    /* padding: 20px; Einheitliches Padding mit Grid */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}


input[type="datetime-local"],
input[type="time"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    background-color: #fff;
    color: #333;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Login-Formular mit schmalerem Padding */
form:not(.buchungen-form) {
    max-width: 400px;
    padding: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
    width: 100%;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

input[type="submit"],
button[type="submit"] {
    width: 100%;
    max-width: 300px;
    height: 60px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

input[type="submit"]:hover,
button[type="submit"]:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

button[name="action"][value="logout"] {
    background-color: #dc3545;
}

button[name="action"][value="logout"]:hover {
    background-color: #c82333;
}

/* Grid-Styling (Ersatz für Tabelle) */
.grid-container {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px; /* Einheitliches Padding mit Formular */
    box-sizing: border-box; /* Stellt sicher, dass Padding in Breite einbezogen wird */
    display: grid;
   
}

.grid-zeit {
     grid-template-columns: 2fr 8fr 8fr 4fr;
}

.grid-header {
    display: contents;
}

.grid-header > div {
    background-color: #f4f4f4;
    font-weight: bold;
    color: #333;
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.grid-row {
    display: contents;
}

.grid-row > div {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

/* .grid-row:nth-child(even) > div {
    background-color: #f9f9f9;
} */

.grid-row:hover > div {
    background-color: #f1f1f1;
    transition: background-color 0.3s ease;
}

.grid-buchungen {
    white-space: pre-wrap;
    color: #007bff;
    line-height: 1.2;
}

.grid-buchungen br {
    display: block;
    margin: 2px 0;
}

/* Responsive Design */
@media (max-width: 600px) {
    header h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
        margin: 15px 0;
    }

    form {
        padding: 15px;
    }

    form.buchungen-form {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    input[type="text"],
    input[type="password"] {
        padding: 10px;
        font-size: 14px;
    }

    input[type="submit"],
    button[type="submit"] {
        height: 50px;
        font-size: 14px;
        max-width: 90%;
    }

    /* Responsive Grid (Kartenansicht)
    .grid-container {
        padding: 15px;
        display: block;
    }

    .grid-header {
        display: none;
    }

    .grid-row {
        display: block;
        margin-bottom: 10px;
        border: 1px solid #ddd;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .grid-row > div {
        display: block;
        text-align: right; 
        border-bottom: none;
        position: relative;
        padding: 12px 15px 12px 50%;
    }

    .grid-row > div:before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 20%;
        padding-left: 15px;
        font-weight: bold;
        text-align: left;
    }

    .grid-row > div:last-child {
        border-bottom: 0;
    } */
}