:root {
    --schriftfarbe: #2B2B2B;
    --colorfree: #6eff6e;
    --colorreserved: #ffff76;
    --coloroccupied: #ff2f2f;
    --colorfreegradient: linear-gradient(45deg, #22ff22 0%, #6eff6e 50%);
    --colorreservedgradient: linear-gradient(45deg, #eeee00 0%, #ffff76 50%);
    --coloroccupiedgradient: linear-gradient(45deg, #cb3939 0%, #ff2f2f 50%);
}
body {
	margin: 0;
    font-family: Verdana, Geneva, sans-serif;
    color: var(--schriftfarbe);
	font-size: 14px;
}
a {
	color: #d7b300;
	text-decoration: none;
	white-space: nowrap;
}
a:hover {
	color: #ffd611;
	text-decoration: underline;
}

#reservation-content {
    margin: auto;
}

.plan-display {
    margin: auto;
    width: fit-content;
}
.planerror {
    font-size: 18px;
}

.buttonrow {
    margin-bottom: 20px;
    text-align: center;
}
.button {
    display: inline-block;
    margin: 0 5px 20px 5px;
    background-color: #ffd611;
    border: none;
    border-radius: 4px;
    transition: all .2s;
    cursor: pointer;
}
.button:first-child {
    margin-left: 0;
}
.button:last-child {
    margin-right: 0;
}
.button.send-button .buttontext, .button.back-button .buttontext {
    color: var(--schriftfarbe);
}
.button.current-level .buttontext {
    color: var(--schriftfarbe);
}
.button:hover {
    background-color: #ffe772;
}
.button .buttonlink {
    text-decoration: none;
    outline: 0;
    text-transform: none;
    padding: 10px 17px;
    display: block;
}
.buttontext {
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: 0.5px;
    font-family: Verdana, Geneva, sans-serif;
    font-style: normal;
    font-weight: 700;
    color: #777777; /*#2b2b2b;*/
}
/* Boxen */
.legendtable{
    display: table;
    margin: 20px auto;
    border: 5px dotted var(--schriftfarbe);
    padding: 5px;
}
.legendtablerow {
    display: table-row;
}
.legend {
    width: 30px;
    height: 30px;
    display: inline-block;
    margin-right: 20px;
    position: relative;
}
.legendtablecell{
    display: flex;
    align-items: center;
    padding: 5px;
}
.box {
    position: absolute;
    cursor: default;
}
.box, .legend {
    border: 1px solid var(--schriftfarbe);
    background-color: var(--coloroccupied); /* Standardmäßig rot für belegt */
    background-image: var(--coloroccupiedgradient);
}
.box.box-free {
    cursor: pointer;
}
.box.box-free, .legend.box-free {
    background-color: var(--colorfree);
    background-image: var(--colorfreegradient);
}
.box.box-free:hover {
    background-color: var(--colorfree);
    background-image: var(--colorfreegradient);
    cursor: pointer;
}
.box.box-reserved, .legend.box-reserved {
    background-color: var(--colorreserved);
    background-image: var(--colorreservedgradient);
}
.box_relative_div {
    position: relative;
    width: 100%;
    height: 100%;
}
.box_size, .box_ident {
    font-size: 9px;
    font-family: Verdana, Geneva, sans-serif;
    position: absolute;
    width: 100%;
    text-align: center;
    color: black;
    font-weight: bold;
}
.box_size {
    top: 0px;
}
.box_ident {
    bottom: 0px;
}
.res-info-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.window-blocker {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 99999;
    display: none;
}
#reservation-form-display {
    max-width: 800px;
    margin:auto;
}
.reservation-form-title {
    margin: 20px auto 20px auto;
    width: fit-content;
    font-weight: bold;
}
/* Formular-Styling */
.reservation-form {
    display: flex;
    flex-direction: column;
    border-radius: 10px;
}

.reservation-form input[type="text"],
.reservation-form input[type="email"],
.reservation-form input[type="tel"],
.form-select {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 14px;
}

.reservation-form input[type="text"]:focus,
.reservation-form input[type="email"]:focus,
.reservation-form input[type="tel"]:focus,
.form-select:focus {
    outline: none;
    border-color: #ffd611;
    box-shadow: 0 0 5px rgba(255, 214, 17, 0.5);
}
.res-form-checkbox-label {
    margin-bottom: 15px;
}

.reservation-form input.formerror, .res-form-checkbox-label.formerror:after {
    outline: none;
    border-color: #ff0000;
    box-shadow: 0 0 5px rgb(255 17 17 / 50%);
}
#errorbox {
    outline: none;
    box-shadow: 0 0 5px rgb(255 17 17 / 50%);
    border: 1px solid #ff0000;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 14px;
    color: #ff0000;
}

/* Verstecke die eigentliche Checkbox */
input[type="checkbox"] {
    display: none;
}

/* Stil für das Label neben der Checkbox */
input[type="checkbox"] + label {
    margin-left: 25px;
    position: relative;
    cursor: pointer;
}

/* Pseudo-Element :after für die individuelle Darstellung der Checkbox */
input[type="checkbox"] + label:after {
    content: "";
    position: absolute;
    left: -25px;
    top: 1px;
    width: 1em;
    height: 1em;
    border: 1px solid #ccc;
    border-radius: 3px;
    background-color: #fff;
    /* Füge das Inline-SVG hier ein */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Crect width='16' height='16' rx='2' fill='%23fff'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 100%;
}

/* Zeige das Pseudo-Element, wenn die Checkbox ausgewählt ist */
input[type="checkbox"]:checked + label:after {
    opacity: 1;
    /* Füge den Haken hinzu */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Crect width='16' height='16' rx='2' fill='%23ffd611'/%3E%3Cpath d='M4.5 8.5l2 2 4-4' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.form-row {
    display: flex;
    justify-content: space-between;
}
@media (max-width: 550px) {
    .form-row {
        flex-direction: column;
    }
}
.form-row-cell {
    flex: 1;
    display: flex;
}
.form-row-cell-firstname {
    flex: 1;
    display: flex;
    margin-right: 10px;
}
.form-row-cell-plz {
    flex: 0.5;
    display: flex;
    margin-right: 10px;
}