/* Formular-Container */
.formular-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #f9f9f9;
}

.formular-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #2365B2;
}

.formular-container input[type="text"],
.formular-container input[type="email"],
.formular-container input[type="tel"],
.formular-container textarea,
.formular-container select,
.formular-container input[type="date"],
.formular-container input[type="number"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.formular-container input[type="checkbox"],
.formular-container input[type="radio"] {
    margin-right: 10px;
    vertical-align: middle;
}

.formular-container input[type="submit"] {
    background: linear-gradient(90deg, #2365B2, #67BF6F);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.formular-container input[type="submit"]:hover {
    background: linear-gradient(90deg, #1a4d8c, #5aa862);
}

.formular-container .section-title {
    border-top: 1px dashed #ccc;
    padding-top: 5px;
    margin-top: 15px;
    margin-bottom: 15px;
    color: #2365B2;
}

.formular-container .radio-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.formular-container .radio-group input[type="radio"] {
    margin-top: -8px;
}

.formular-container .checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.formular-container .checkbox-group input[type="checkbox"] {
    margin-top: -8px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.modal-content {
    background-color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 40px 20px 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    width: 80%;
    max-width: 500px;
    max-height: 300px;
    overflow-y: auto;
}

.modal-content ul {
    list-style-type: none;
    padding: 0;
}

.modal-content ul li {
    padding: 10px;
    border-bottom: 1px solid #ccc;
    cursor: pointer;
}

.modal-content ul li:hover {
    background-color: #f1f1f1;
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

/* Profil Shortcode */
.benutzer-form-profile {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.benutzer-form-profile h2 {
    color: #2365B2;
    text-align: left;
    margin-bottom: 20px;
    border-bottom: 1px dashed #ccc;
}

.benutzer-form-profile h3 {
    color: #2365B2;
    margin-top: 20px;
    margin-bottom: 10px;
}

.benutzer-form-profile ul {
    list-style: none;
    padding: 0;
}

.benutzer-form-profile li {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 5px;
    background-color: #fff;
}

.benutzer-form-profile strong {
    font-weight: bold;
}

/* Form Overview Shortcode */
.benutzer-form-overview {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.benutzer-form-overview h2 {
    color: #2365B2;
    text-align: left;
    margin-bottom: 20px;
    border-bottom: 1px dashed #ccc;
}

.benutzer-form-overview .form-list {
    list-style: none;
    padding: 0;
}

.benutzer-form-overview .form-list li {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 5px;
    background-color: #fff;
}

.benutzer-form-overview .form-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.benutzer-form-overview .form-name {
    font-weight: bold;
    color: #333;
}

.benutzer-form-overview .form-count a {
    display: inline-block;
    padding: 5px 10px;
    background-color: #2365B2;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    cursor: pointer;
}

.benutzer-form-overview .form-header {
    color: #2365B2;
    margin-top: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 5px;
    background-color: #fff;
    display: none;
}

/* Slide-Effekt für Formulare */
.form-slide {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease-out;
    margin-bottom: 10px;
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 10px;
    display: none;
}

.form-slide.open {
    max-height: 1000px;
    transition: max-height 0.3s ease-in;
    display: block;
}

/* Toggle für Detailinformationen im Profil */
.benutzer-form-profile .toggle-info a {
    display: inline-block;
    padding: 5px 10px;
    background-color: #2365B2;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
}

.benutzer-form-profile .verlauf-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Fehleranzeige für Pflichtfelder (erst nach Absenden) */
.formular-container input:required,
.formular-container select:required,
.formular-container textarea:required {
    border: 1px solid #ccc; /* Standard-Grenze */
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

/* Falls ein Pflichtfeld nach Absenden leer bleibt, wird es rot */
.formular-container input.invalid,
.formular-container select.invalid,
.formular-container textarea.invalid {
    border-color: red;
    background-color: #ffe6e6;
}
