/* TYPO3 Form Styling - direkte CSS-Klassen ohne Build-Prozess */

/* Formular Container */
.frame-type-form_formframework {
    max-width: 42rem;
    margin-top: 2rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
    padding: 2rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background-color: #ffffff;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

/* Form Groups */
.form-group {
    margin-bottom: 1rem;
}

/* Labels */
.form-label, .frame-type-form_formframework label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

/* Text Inputs, Textareas, Selects */
.form-control,
.frame-type-form_formframework input[type="text"],
.frame-type-form_formframework input[type="email"],
.frame-type-form_formframework input[type="tel"],
.frame-type-form_formframework input[type="number"],
.frame-type-form_formframework input[type="date"],
.frame-type-form_formframework textarea,
.frame-type-form_formframework select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    font-size: 1rem;
    line-height: 1.5;
}

.form-control:focus,
.frame-type-form_formframework input:focus,
.frame-type-form_formframework textarea:focus,
.frame-type-form_formframework select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* File Upload */
.frame-type-form_formframework input[type="file"] {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.frame-type-form_formframework input[type="file"]::file-selector-button {
    margin-right: 1rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.375rem;
    background-color: #eff6ff;
    color: #1d4ed8;
    font-weight: 600;
    cursor: pointer;
}

.frame-type-form_formframework input[type="file"]::file-selector-button:hover {
    background-color: #dbeafe;
}

/* Submit Button */
.btn-primary,
.frame-type-form_formframework button[type="submit"],
.frame-type-form_formframework input[type="submit"] {
    background-color: #2563eb;
    color: white;
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary:hover,
.frame-type-form_formframework button[type="submit"]:hover,
.frame-type-form_formframework input[type="submit"]:hover {
    background-color: #1d4ed8;
}

.btn-primary:focus,
.frame-type-form_formframework button[type="submit"]:focus,
.frame-type-form_formframework input[type="submit"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

/* Fehlermeldungen */
.has-error .form-control,
.has-error input,
.has-error textarea,
.has-error select {
    border-color: #ef4444;
}

.help-block.error,
.error-message {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Erfolgsmeldung */
.alert-success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

/* Erforderliche Felder */
.required::after {
    content: " *";
    color: #ef4444;
}

/* Textarea */
.frame-type-form_formframework textarea {
    min-height: 8rem;
    resize: vertical;
}

/* Checkbox und Radio */
.frame-type-form_formframework input[type="checkbox"],
.frame-type-form_formframework input[type="radio"] {
    width: auto;
    margin-right: 0.5rem;
}

/* Spezielle Ausrichtung nur fuer das Kontaktformular (kontaktzumDRC-2535) */
/* Direktes Targeting des <form>-Tags per bekannter HTML-ID */
form#kontaktzumDRC-2535 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    margin-left: 1.5rem;
    margin-right: 1.5rem;

}

@media (min-width: 768px) {
    form#kontaktzumDRC-2535 {
        padding-left: 3rem;
        padding-right: 3rem;
        margin-left: 3rem;
        margin-right: 3rem;
    }
}

@media (min-width: 1280px) {
    form#kontaktzumDRC-2535 {
        padding-left: 5rem;
        padding-right: 5rem;
        margin-left: 5rem;
        margin-right: 5rem;
    }
}

