body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
}

.fa-info-circle {
    color: #0054ff;
}

.header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: #f4f4f9;
    border-bottom: 1px solid #ddd;
}

.header img {
    max-width: 200px;
    max-height: 200px;
}

h2 {
    text-align: center;
    margin: 1rem 0;
}

.seatplan {
    display: grid;
    gap: 5px;
    max-width: 80%;
    margin: 2rem auto;
}

.seat {
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.seat.reserved {
    background-color: #f44336;
    cursor: not-allowed;
}

.seat:hover:not(.reserved) {
    background-color: #4caf50;
}

iframe {
    width: 100%;
    height: 400px;
    border: none;
    margin-top: 1rem;
}

.reservation-button {
    display: inline-block;
    background-color: #4caf50;
    color: #fff;
    font-size: 1rem;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.reservation-button:hover {
    background-color: #45a049;
}

.reservation-button:active {
    background-color: #3e8e41;
}

.admin-link {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 14px;
}

.admin-link a {
    text-decoration: none;
    color: gray;
}

.admin-link a:hover {
    color: black;
}

.login-container {
    width: 300px;
    margin: 100px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
    text-align: center;
}

.login-container input {
    width: 90%;
    padding: 8px;
    margin: 5px 0;
}

.login-container button {
    width: 100%;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
}

.login-container .error {
    color: red;
}

/* Kachel-Navigation */
.admin-navigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

/* Farbige Kacheln */
.tile-reservations { background-color: #ff6b6b; } /* Rot */
.tile-events { background-color: #ffa502; } /* Orange */
.tile-seatplan { background-color: #2ed573; } /* Grün */
.tile-export { background-color: #1e90ff; } /* Blau */
.tile-settings { background-color: #5352ed; } /* Lila */
.tile-users { background-color: #ff4757; } /* Dunkelrot */

/* Inhalt */
.admin-content {
    margin-top: 20px;
    padding: 20px;
    background: #f4f4f4;
    border-radius: 10px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

/* Logout-Button */
.logout-button {
    display: block;
    margin-top: 20px;
    padding: 10px 15px;
    background: #333;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.logout-button:hover {
    background: #555;
}

.admin-tile {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Alles vertikal zentrieren */
    align-items: center;
    width: 140px;
    height: 140px;
    text-align: center;
    color: white;
    font-size: 16px;
    font-weight: bold;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
    gap: 6px; /* Abstand zwischen Icon & Text */
}

.admin-tile i {
    font-size: 34px; /* Etwas kleiner, aber sichtbar */
}

.admin-tile:hover {
    transform: scale(1.05);
}

/* Container für das Admin-Panel */
.admin-container {
    width: 100%;
    margin: auto;
    padding: 20px;
    background: #f4f4f4;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0);
}

/* Container für das Admin-Panel */
.outer-admin-container {
    width: 80%;
    margin: auto;
    padding: 20px;
    background: #f4f4f4;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

/* Titel-Styling */
h2 {
    text-align: center;
    margin-bottom: 20px;
}

/* Tabelle für eine saubere Anordnung */
.settings-table {
    width: 100%;
    border-collapse: collapse;
}

/* Labels der Formularfelder */
.setting-label {
    width: 30%;
    font-weight: bold;
    text-align: left;
    padding: 10px;
}

/* Eingabefelder */
.settings-input {
    width: 98%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

/* Erfolgsnachricht */
.success-msg {
    text-align: center;
    color: green;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Speichern-Button im Stil der "Einstellungen"-Kachel */
.save-button {
    background: #5352ed; /* Farbe der "Einstellungen"-Kachel */
    color: white;
    font-size: 18px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: block;
    width: 100%;
    margin-top: 20px;
    text-align: center;
}

.save-button:hover {
    background: #4645ce;
}

.admin-header {
    display: flex;
    justify-content: flex-end; /* Rechtsbündig ausrichten */
    align-items: center;
    padding: 10px 20px;
    background-color: #f4f4f9;
    border-bottom: 1px solid #ddd;
    gap: 10px; /* Abstand zwischen Text und Icon */
}

.welcome-text {
    font-size: 18px;
    font-weight: bold;
    text-align: right;
}

.logout-link {
    color: #d9534f;
    font-size: 20px;
    text-decoration: none;
}

.logout-link:hover {
    color: #c9302c;
}

.delete-button-veranstaltung {
    background-color: #dc3545;
    color: white;
    padding: 5px 10px;
    border: none;
    cursor: pointer;
}

.save-button-veranstaltung {
    background-color: #28a745;
    color: white;
    padding: 5px 10px;
    border: none;
    cursor: pointer;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    border: 0px solid #ddd;
    padding: 10px;
    text-align: left;
}

th {
    background-color: #f4f4f4;
}

input, select {
    width: 100%;
    padding: 5px;
    margin-top: 5px;
}

.sidebar table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.sidebar th, td {
    border: 1px solid #ddd;
    padding: 3px;
    text-align: left;
}

.sidebar th {
    background-color: #f4f4f4;
}

.sidebar input, select {
    width: 93%;
    padding: 2px;
    margin-top: 5px;
}


/*Sitzplan Layout*/
/* Sicherstellen, dass die Stühle rund bleiben */
.seat {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    text-align: center;
    font-size: 14px;
    border-radius: 50%; /* Perfekt runde Stühle */
    border: 1px solid black;
    background-color: #ddd; /* Gleiches Grau wie Stuhlblöcke */
    margin: 5px;
}

/* Exakte Zentrierung der oberen und unteren Sitzreihen */
.seat-row {
    display: flex;
    justify-content: center; /* Stühle exakt mittig anordnen */
    gap: 8px;
    width: 100%;
}

/* Sitzplätze links und rechts vertikal anordnen */
.seat-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

/* Tischzelle */
.table-space {
    background-color: #f0f0f0; /* Tischfarbe */
    height: 50px;
    min-width: 50px;
    border: none;
}

/* Runder Tisch */
.round-table {
    width: 100px; /* Größe des Tischs */
    height: 100px;
    background-color: #f0f0f0; /* Hintergrundfarbe anpassen */
    border: 1px solid black; /* Kontur */
    border-radius: 50%; /* Rund */
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%); /* Jetzt wirklich mittig! */
}

/* Container für Tisch + Stühle */
.round-table-container {
    position: relative;
    width: 220px; /* Je nach Anzahl Stühle größer */
    height: 220px;
}

/* Stühle für runden Tisch */
.round-seat {
    position: absolute;
    width: 30px;
    height: 30px;
    background-color: #ddd; /* Gleiches Grau wie Stuhlblöcke */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    border: 1px solid black;
}

/*Divier*/
.seat-section {
    width: 100%; /* Volle Breite nutzen */
    display: flex;
    justify-content: center; /* Inhalte mittig ausrichten */
    align-items: center;
}

.divider {
    width: 100%; /* NEU: Volle Breite nutzen */
    height: 40px; /* Standardhöhe */
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    text-align: center;
    border: 3px solid black;
}

/* Rundes Trennelement */
.divider.round {
    border-radius: 50px;
}

.info {
    margin-left: 100px;
}

.info h2 {
    margin-left: 0px;
}

@media (max-width: 768px) {
    .content {
        flex-direction: column; /* Stapelt .main und .sidebar untereinander */
    }

.info {
    margin-left: 0px !important;
}

    #details-frame {
        width: 250% !important; /* Stellt sicher, dass das iFrame maximal die Bildschirmbreite nutzt */
        height: auto; /* Automatische Höhe, je nach Inhalt */
        transform: scale(0.45); /* Skaliert das iFrame um 90% für bessere Darstellung */
        transform-origin: top left; /* Verhindert, dass die Skalierung es verschiebt */
        overflow: hidden; /* Verhindert unnötiges Scrollen */
        margin-bottom: -170px;
    }

    .main, sidebar {
        width: 100%; /* Volle Breite für beide Elemente */
    }

    .sidebar {
        margin-top: 0px;
}

    .admin-link {
        position: absolute;
        right: 10px;
        top: 10px;
    }

    .header {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}