/**
 * form-messages.css
 * -----------------------------
 * Styles für Formular-Statusmeldungen
 */

/* Gemeinsame Basis für Erfolgs- und Fehlermeldungen */
.form-message {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    animation: slideDown 0.4s ease-out;
}

/* Erfolgsmeldung */
.success-message {
    background-color: #e8f5e9;
    border-left: 4px solid var(--color-success);
}

.success-icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: var(--color-success);
}

/* Fehlermeldung */
.error-message {
    background-color: #ffebee;
    border-left: 4px solid var(--color-error);
}

.error-icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: var(--color-error);
}

/* Schließen-Button */
.close-btn {
    padding: 8px 16px;
    background-color: transparent;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.2s;
}

.close-btn:hover {
    background-color: #f5f5f5;
}

/* Feldvalidierung */
.form-group .error-message {
    background-color: transparent;
    border-left: none;
    box-shadow: none;
    font-size: 14px;
    color: var(--color-error);
    text-align: left;
    padding: 5px 0 0;
    margin: 0;
    display: block;
    animation: none;
}

.form-group input.invalid,
.form-group textarea.invalid {
    border-color: var(--color-error);
}

/* Honeypot-Feld komplett ausblenden */
.honeypot-field {
    display: none;
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    visibility: hidden;
    height: 0;
    width: 0;
    overflow: hidden;
    z-index: -1;
}

/* Footer Legal Links Styling */
.footer-legal h3 {
    margin-bottom: var(--spacing-lg);
    position: relative;
    color: var(--color-white);
    font-size: var(--font-size-lg);
    text-transform: uppercase;
    font-weight: 600;
}

.footer-legal h3::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--color-primary);
}

.footer-legal ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-legal ul li {
    margin-bottom: var(--spacing-md);
}

.footer-legal ul li a {
    color: var(--color-white);
    text-decoration: none;
    transition: all .3s ease;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    padding: .5rem 0;
    position: relative;
    display: inline-block;
}

.footer-legal ul li a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .3s ease;
}

.footer-legal ul li a:hover {
    color: var(--color-primary);
}

.footer-legal ul li a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Responsive Anpassungen für den Footer */
@media (max-width: 768px) {
    .footer-legal {
        text-align: center;
    }
    
    .footer-legal h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Fade-Out Animation */
.fade-out {
    animation: fadeOut 0.5s forwards;
}

/* Styling für Checkbox-Gruppe */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    min-width: 200px;
}

.checkbox-item input[type="checkbox"],
input[type="checkbox"]#privacy-consent {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 2px solid #333;
    border-radius: 3px;
    outline: none;
    position: relative;
    cursor: pointer;
    background-color: white;
    transition: all 0.2s ease;
    padding: 0;
}

.checkbox-item input[type="checkbox"]:checked,
input[type="checkbox"]#privacy-consent:checked {
    background-color: #333;
    border-color: #333;
}

.checkbox-item input[type="checkbox"]:checked::after,
input[type="checkbox"]#privacy-consent:checked::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    top: 1px;
    left: 4px;
    transform: rotate(45deg);
}

.checkbox-item input[type="checkbox"]:focus,
input[type="checkbox"]#privacy-consent:focus {
    box-shadow: 0 0 0 2px rgba(51, 51, 51, 0.2);
}

.checkbox-item label {
    font-weight: normal;
    cursor: pointer;
    margin-bottom: 0;
}

/* Responsive Anpassung */
@media (max-width: 768px) {
    .checkbox-group {
        flex-direction: column;
        gap: 8px;
    }
    
    .checkbox-item {
        min-width: 100%;
    }
}

/* Animationen */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Orange Farbe mit roter Farbe ersetzen */
.stars i {
    filter: drop-shadow(0 0 3px rgba(227, 30, 36, 0.4)) !important; /* Verwende #e31e24 in rgba */
}

/* Styling für Telefon-Links */
.info-content a[href^="tel:"],
.info-content a[href^="mailto:"],
.footer-contact a[href^="tel:"],
.footer-contact a[href^="mailto:"] {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.info-content a[href^="tel:"]:hover,
.info-content a[href^="mailto:"]:hover,
.footer-contact a[href^="tel:"]:hover,
.footer-contact a[href^="mailto:"]:hover {
    color: var(--color-primary);
} 