/* === Modal-Anfrage (TerminAnfrageModal) === */
.modal-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 9999;
    top: 0; left: 0; width: 100%; height: 100%;
    padding: 1em;
    background-color: rgba(0,0,0,0.5);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal-box {
    background: #fff;
    padding: 2em;
    border-radius: 10px;
    max-width: 700px;
    width: 100%;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    animation: fadeInUp 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
.modal-box h2 {
    margin-top: 0;
    font-size: 1.5em;
    margin-bottom: 1em;
}
.modal-close {
    position: absolute;
    top: 10px; right: 15px;
    background: none;
    border: none;
    font-size: 1.8em;
    cursor: pointer;
    color: #444;
}

/* === Modal-Formfelder === */
#terminAnfrageForm input:not([type="checkbox"]),
#terminAnfrageForm select,
#terminAnfrageForm textarea {
    width: 100%;
    padding: 1em;
    font-size: 1em;
    margin-bottom: 1.2em;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
#terminAnfrageForm input:focus,
#terminAnfrageForm select:focus,
#terminAnfrageForm textarea:focus {
    border-color: #0077cc;
    box-shadow: 0 0 0 3px rgba(0,119,204,0.15);
    outline: none;
}
#terminAnfrageForm select {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='gray' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 0.5em center;
    background-size: 2em;
    padding-right: 3em;
}
#terminAnfrageForm textarea {
    resize: vertical;
    min-height: 100px;
}
.checkbox-label {
    display: block;
    font-size: 0.95em;
    line-height: 1.5;
    margin-bottom: 1.5em;
}
.checkbox-label input[type="checkbox"] {
    margin-right: 0.6em;
    transform: scale(1.1);
    cursor: pointer;
}
#terminAnfrageForm button[type="submit"] {
    display: block;
    margin: 2em auto 0;
    width: 100%;
    max-width: 400px;
    padding: 1.1em 1.5em;
    background: #ffcb05;
    color: #000;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1em;
    text-transform: uppercase;
    transition: background 0.3s ease;
}

#terminAnfrageForm button[type="submit"]:hover {
    background: rgb(179, 143, 2);
}


#formularErfolg {
    display: none;
    margin-top: 1em;
    color: green;
    font-weight: bold;
    text-align: center;
}

/* === Responsive === */
@media (max-width: 500px) {
    .modal-box {
        padding: 1.2em;
        max-height: 85vh;
    }
    .modal-box h2 {
        font-size: 1.3em;
    }
}
/* Überschreibe das .training-formular-Background im Modal */
.modal-box .modal-form {
  background: transparent;
  padding: 0;
  border-radius: 0;
}