/* Root-Level für Variablen */
:root {
    --primary-color: #4CAF50;
    --primary-hover-color: #45a049;
    --reserved-color: red;
    --background-color: #f9f9f9;
    --text-color: #fff;
    --border-color: #ccc;
    --font-family: 'Arial', sans-serif;
}

/* Panel Styling */
.reservation-container {
    max-width: 600px;
    margin: auto;
    padding: 20px;
    border-radius: 8px;
    background-color: #101010;
    color: var(--text-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    font-family: var(--font-family);
    text-align: left;
}

.reservation-container h1 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: var(--primary-color);
}


/* Formular Styling */
#reservation-form label {
    display: block;
    margin: 10px 0 5px;
    font-weight: bold;
    color: var(--text-color);
}

#reservation-form input,
#reservation-form select,
#reservation-form button {
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1em;
    width: 100%;
    box-sizing: border-box;
    background-color: #ffffff; /* Einheitlicher Hintergrund */
    color: #000000; /* Einheitlicher Text */
    font-family: var(--font-family); /* Einheitliche Schrift */
}

#reservation-form select {
    appearance: none; /* Entfernt Standard-Browser-Styling */
    background-image: url('data:image/svg+xml;charset=UTF-8,%3Csvg xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 10 10"%3E%3Cpath fill="none" stroke="%23000" stroke-width="1.5" d="M1 3l4 4 4-4"/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    padding-right: 30px; /* Platz für den Dropdown-Pfeil */
}

#reservation-form input[type="date"],
#reservation-form input[type="time"] {
    -webkit-appearance: none; /* Entfernt Standard-Browser-Styling auf iOS */
    -moz-appearance: none;
    appearance: none;
}

.input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.placeholder-label {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    color: #aaa;
    pointer-events: none;
    transition: all 0.2s ease;
}

.input-wrapper input:focus + .placeholder-label,
.input-wrapper input:not(:placeholder-shown) + .placeholder-label {
    top: -10px;
    font-size: 0.8rem;
    color: var(--primary-color);
}

#reservation-form button {
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
}

#reservation-form button:hover {
    background-color: var(--primary-hover-color);
}

/* Datenschutzerklärung Hinweis */
.privacy-text {
    font-size: 0.8rem;
    color: var(--text-color);
    margin-top: 15px;
    text-align: center;
}

.privacy-text a {
    color: var(--primary-color);
    text-decoration: none;
}

.privacy-text a:hover {
    text-decoration: underline;
}

/* Kapazitätsbalken */
.capacity-bar {
    display: none; /* Standardmäßig ausgeblendet */
    margin-top: 20px;
}

.capacity-bar.hidden {
    display: none; /* Balken bleibt unsichtbar, wenn es versteckt wird */
}

/* Der füllende Balken */
.capacity-bar .bar {
    width: 100%;
    background-color: #e0e0e0; /* Grauer Hintergrund */
    border-radius: 5px;
    height: 20px; /* Höhe des Balkens */
}

.capacity-bar .fill {
    height: 100%; /* Füllhöhe des Balkens */
    background-color: green; /* Standardfarbe */
    width: 0%; /* Startbreite 0% */
    border-radius: 5px;
}

/* Der Text für die Prozentzahl */
.capacity-bar .percentage-text {
    margin-top: 10px;
    font-size: 14px;
    text-align: center;
}

#popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgb(41, 37, 37);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    padding: 20px;
    z-index: 1000;
    max-width: 400px;
    text-align: center;
}

#popup-message {
    margin-bottom: 15px;
    font-size: 16px;
}

#popup-close {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#popup-close:hover {
    background-color: var(--primary-hover-color);
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

/* Zusätzliche Styles für Mobilgeräte */
@media (max-width: 768px) {
    #reservation-form input,
    #reservation-form select,
    #reservation-form button {
        font-size: 1rem;
        padding: 12px;
    }

    #reservation-form select {
        padding-right: 35px; /* Platz für Dropdown-Pfeil */
    }
}
