/* Schriftarten */
@font-face {
    font-family: 'Gloria Hallelujah';
    src: url('/fonts/gloria-hallelujah-v21-latin-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Patrick Hand';
    src: url('/fonts/patrick-hand-v23-latin-regular.woff2') format('woff2');
}

/* Allgemeine Stile */
body {
    font-family: 'Patrick Hand', cursive, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    box-sizing: border-box;
    background-color: #f9f9f9;
    color: #333;
    text-align: center; /* Zentriert den gesamten Hauptinhalt */
}

header {
    font-family: 'Gloria Hallelujah', cursive;
    text-align: center;
    margin: 20px 0;
    transition: margin-left 0.5s ease;
    position: relative; /* Wichtig für Verschiebung */
    z-index: 10; /* Überlagerung sicherstellen */
}

.sidebar-open header {
    margin-left: 250px; /* Verschiebung bei geöffneter Sidebar */
}

.center-logo {
    display: block;
    margin: 0 auto;
    max-width: 400px;
    width: 100%;
    height: auto;
}

/* Container */
.container {
    padding: 20px;
    box-sizing: border-box;
    flex: 1;
    transition: margin-left 0.5s ease;
    text-align: center; /* Zentriert den Inhalt */
}

.sidebar-open .container {
    margin-left: 250px; /* Verschiebung bei Sidebar */
}

/* Überschriften */
h1, h2, h3 {
    text-align: center; /* Zentriert alle Überschriften */
    margin: 0 0 15px; /* Standardabstand unten */
    line-height: 1.3;
    color: #333;
}

/* Texte */
p {
    text-align: center; /* Zentriert Texte */
    margin: 0 auto 15px; /* Standardabstand unten */
    line-height: 1.6; /* Zeilenhöhe für bessere Lesbarkeit */
    word-wrap: break-word; /* Zeilenumbruch bei langen Wörtern */
    max-width: 800px; /* Begrenzung der Breite */
}

/* Sidebar */
.sidebar {
    width: 250px;
    position: fixed;
    z-index: 10;
    top: 0;
    left: -250px;
    height: 100vh;
    background-color: #4E342E;
    overflow-y: auto;
    padding-top: 60px;
    transition: left 0.5s ease;
    color: white;
}

.sidebar.open {
    left: 0; /* Sidebar sichtbar */
}

.sidebar a {
    padding: 10px 15px;
    text-decoration: none;
    font-size: 20px;
    color: #fff;
    display: block;
    transition: color 0.3s ease;
}

.sidebar a:hover {
    color: #ccc;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.sidebar ul ul {
    display: none;
    padding-left: 20px;
}

.sidebar ul li:hover > ul {
    display: block;
}

.sidebar ul ul li {
    padding: 10px;
    font-size: 18px;
}

/* Sidebar Schließen-Button */
.sidebar-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.sidebar-close:hover {
    color: #ccc;
}

/* Hamburger-Menü */
.sidebar-toggle {
    position: fixed;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 30px;
    cursor: pointer;
    z-index: 15;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: none;
    border: none; /* Entfernt jegliche Umrandung */
    padding: 0; /* Entfernt zusätzliche Abstände */
}

.sidebar-toggle span {
    display: block;
    width: 100%;
    height: 5px;
    background: #4E342E;
    border-radius: 3px; /* Runde Kanten */
    transition: all 0.3s ease;
}

.sidebar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.sidebar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.sidebar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Verberge Hamburger-Menü, wenn Sidebar offen ist */
.sidebar.open ~ .sidebar-toggle {
    display: none;
}

/* Hauptinhalt */
.main-content {
    padding: 20px;
    transition: margin-left 0.5s ease;
    text-align: center; /* Zentriert den gesamten Hauptinhalt */
}

.sidebar-open .main-content {
    margin-left: 250px;
}

/* Spielerbox */
.player {
    display: flex; /* Flexbox für Bild und Text */
    align-items: flex-start;
    gap: 15px; /* Abstand zwischen Bild und Text */
    margin-bottom: 20px;
    padding: 15px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    justify-content: center; /* Zentriere die Box-Inhalte */
    text-align: center;
}

.player-photo {
    width: 150px;
    height: 150px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.player-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center; /* Zentriert Spielertext */
    max-width: 800px;
}

.player h3 {
    font-size: 1.5em;
    color: #333;
    margin: 0 0 10px;
    text-align: center; /* Überschrift zentriert */
}

/* Spielerbox ohne Bild */
.player.no-photo .player-content {
    text-align: center; /* Zentriert Texte ohne Bild */
}

.player.no-photo .player-photo {
    display: none; /* Kein Bild anzeigen */
}

/* Footer */
footer {
    background-color: #4E342E;
    color: white;
    text-align: center;
    padding: 10px 0;
    width: 100%;
    font-size: 14px;
    position: relative;
    transition: margin-left 0.5s ease;
    box-sizing: border-box;
    z-index: 1;
}

.sidebar-open footer {
    margin-left: 250px;
}

/* Footer-Inhalt */
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

.footer-left a,
.footer-right a {
    color: white;
    text-decoration: none;
    margin-right: 15px;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-left a:hover,
.footer-right a:hover {
    color: #ccc;
}

.footer-right img {
    width: 24px;
    height: 24px;
    margin-left: 10px;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.footer-right a:hover img {
    transform: scale(1.1);
}

.footer-copyright {
    font-size: 12px;
    margin-top: 5px;
    color: #ccc;
}

/* Formulare - Allgemeine Stile */
.form-style {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background-color: #f4f4f4;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-family: 'Patrick Hand', cursive;
}

.form-group {
    margin-bottom: 15px;
    text-align: center; /* Zentriert Formularüberschriften */
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4E342E;
    box-shadow: 0 0 5px rgba(78, 52, 46, 0.5);
}
.submit-btn {
    background-color: #4E342E;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #3E2723;
}

/* Verbesserte Tabelle - Allgemeine Stile */
.styled-table {
    width: 90%; /* Breite der Tabelle */
    margin: 20px auto; /* Zentrierung der Tabelle */
    border-collapse: collapse; /* Entfernt Doppellinien zwischen Zellen */
    font-family: 'Patrick Hand', cursive;
    font-size: 16px;
    background-color: #fff;
    text-align: center; /* Text innerhalb der Tabelle zentrieren */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Tieferer Schatten */
    border-radius: 10px; /* Abgerundete Ecken */
    overflow: hidden; /* Schneidet Überschüsse ab */
    border: 2px solid #4E342E; /* Dickere Rahmenlinie */
}

.styled-table caption {
    font-size: 1.8em; /* Größere Schriftgröße */
    margin: 15px 0; /* Abstand zur Tabelle */
    color: #4E342E; /* Farbe der Überschrift */
    font-weight: bold;
    text-align: center;
    text-transform: uppercase; /* Großbuchstaben */
}

.styled-table thead tr {
    background-color: #4E342E; /* Kopfzeilen-Hintergrundfarbe */
    color: white; /* Kopfzeilen-Schriftfarbe */
    font-weight: bold;
    font-size: 18px; /* Kopfzeilen-Schriftgröße */
    text-transform: uppercase; /* Kopfzeilen in Großbuchstaben */
}

.styled-table th,
.styled-table td {
    padding: 15px; /* Mehr Abstand in den Zellen */
    border: 1px solid #ddd; /* Rahmen zwischen Zellen */
    vertical-align: middle; /* Vertikale Zentrierung */
}

.styled-table tbody tr {
    border-bottom: 1px solid #ddd; /* Unterstrich für Zeilen */
    transition: background-color 0.3s ease; /* Weicher Hover-Effekt */
}

.styled-table tbody tr:nth-child(even) {
    background-color: #f9f9f9; /* Helle Hintergrundfarbe für gerade Zeilen */
}

.styled-table tbody tr:nth-child(odd) {
    background-color: #fff; /* Standardfarbe für ungerade Zeilen */
}

.styled-table tbody tr:hover {
    background-color: #f1f1f1; /* Hover-Effekt für Zeilen */
    cursor: pointer; /* Zeigeränderung bei Hover */
}

.styled-table tbody td {
    text-align: center; /* Text zentrieren */
    font-size: 16px; /* Lesbare Schriftgröße */
}

.styled-table tfoot {
    background-color: #f4f4f4; /* Hintergrundfarbe für Fußzeile */
    font-weight: bold;
    text-align: right;
    color: #4E342E;
}

.styled-table tfoot td {
    padding: 15px;
    border-top: 2px solid #4E342E; /* Obere Linie für die Fußzeile */
}

/* Responsive Anpassung für Mobilgeräte */
@media (max-width: 768px) {
    .styled-table {
        font-size: 14px; /* Kleinere Schrift für Mobilgeräte */
    }

    .styled-table caption {
        font-size: 1.5em; /* Kleinere Überschrift */
    }

    .styled-table th,
    .styled-table td {
        padding: 10px; /* Weniger Polsterung */
    }
}/* --- Popup zentriert, fest über dem Footer, fade-in/out --- */
#popup {
    position: fixed;
    bottom: 80px; /* Abstand vom unteren Bildschirmrand (z. B. Footerhöhe + etwas Puffer) */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 360px;
    background-color: rgba(0, 0, 0, 0.5); /* Hintergrunddunkelung */
    display: flex;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#popup.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background-color: #fffaf4;
    padding: 16px;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
    animation: popupFadeIn 0.4s ease forwards;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-height: 80vh;
    overflow: auto;
}

.popup-content.hide {
    animation: popupFadeOut 0.4s ease forwards;
}

.popup-content img {
    max-height: 360px;
    width: auto;
    height: auto;
    border-radius: 10px;
    object-fit: contain;
    margin-bottom: 10px;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes popupFadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

.popup-ticket-button {
    background-color: #4E342E;
    color: white;
    padding: 10px 20px;
    font-size: 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-top: 10px;
}

.popup-ticket-button:hover {
    background-color: #3E2723;
    transform: scale(1.05);
}

.popup-close {
    position: absolute;
    top: 6px;
    right: 8px;
    background: #f9f9f9;
    border: 1.5px solid #4E342E;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 16px;
    color: #4E342E;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.popup-close:hover {
    transform: scale(1.1);
}.review-callout {
    background-color: #fff3e0;
    border-left: 6px solid #4E342E;
    padding: 20px;
    margin: 40px auto;
    max-width: 600px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.review-callout h3 {
    margin-bottom: 10px;
    color: #4E342E;
    font-size: 1.4em;
}

.review-callout p {
    font-size: 1em;
    color: #333;
}

.review-button {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 18px;
    background-color: #4E342E;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.review-button:hover {
    background-color: #3E2723;
    transform: scale(1.05);
}/* Kompakteres Styling für das Rezensionsformular */
#review-form {
    max-width: 600px;
    margin: 10px auto;
    padding: 8px 12px;
    background-color: #fefefe;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    font-size: 0.9em;
}

#review-form .form-group {
    margin-bottom: 8px;
    text-align: left;
}

#review-form label {
    font-size: 0.95em;
    display: block;
    margin-bottom: 3px;
}

#review-form input[type="text"],
#review-form textarea {
    padding: 5px 8px;
    font-size: 0.95em;
    width: 100%;
    box-sizing: border-box;
}

#review-form textarea {
    min-height: 70px;
}

#review-form .submit-btn {
    padding: 6px 12px;
    font-size: 0.95em;
}