/**
 * EeC Kontakte - Frontend Styles
 * Design basierend auf enefco.eu
 */

/* ============================================
   Wrapper und Container
   ============================================ */

.eec-kontakte-wrapper {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

.eec-form-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

/* ============================================
   Titel und Untertitel
   ============================================ */

.eec-form-title {
    color: #7CB342;
    font-size: 1.8rem;
    margin: 0 0 10px 0;
    text-align: center;
    font-weight: 600;
}

.eec-form-subtitle {
    color: #666;
    text-align: center;
    margin: 0 0 30px 0;
    font-size: 1rem;
}

/* ============================================
   Meldungen
   ============================================ */

.eec-message {
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
}

.eec-message.eec-success {
    background-color: #E8F5E9;
    border: 1px solid #7CB342;
    color: #2E7D32;
}

.eec-message.eec-error {
    background-color: #FFEBEE;
    border: 1px solid #e53935;
    color: #C62828;
}

/* ============================================
   Formular-Sektionen
   ============================================ */

.eec-form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.eec-form-section:last-of-type {
    border-bottom: none;
}

.eec-section-title {
    color: #7CB342;
    font-size: 1.2rem;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.eec-section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background-color: #7CB342;
    border-radius: 2px;
}

/* ============================================
   Formular-Grid
   ============================================ */

.eec-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.eec-form-row:last-child {
    margin-bottom: 0;
}

.eec-form-group {
    display: flex;
    flex-direction: column;
}

.eec-form-group.eec-full-width {
    grid-column: 1 / -1;
}

/* ============================================
   Labels
   ============================================ */

.eec-form label {
    font-weight: 600;
    color: #444;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.eec-required {
    color: #e53935;
    margin-left: 3px;
}

/* ============================================
   Eingabefelder
   ============================================ */

.eec-form input[type="text"],
.eec-form input[type="email"],
.eec-form input[type="tel"],
.eec-form select,
.eec-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: #fafafa;
    box-sizing: border-box;
}

.eec-form input[type="text"]:focus,
.eec-form input[type="email"]:focus,
.eec-form input[type="tel"]:focus,
.eec-form select:focus,
.eec-form textarea:focus {
    outline: none;
    border-color: #7CB342;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(124, 179, 66, 0.1);
}

.eec-form input[type="text"]:hover,
.eec-form input[type="email"]:hover,
.eec-form input[type="tel"]:hover,
.eec-form select:hover,
.eec-form textarea:hover {
    border-color: #aaa;
}

.eec-form textarea {
    min-height: 100px;
    resize: vertical;
}

.eec-form select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237CB342' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.eec-form ::placeholder {
    color: #aaa;
}

/* ============================================
   Submit-Button
   ============================================ */

.eec-submit-section {
    text-align: center;
    margin-top: 30px;
}

.eec-submit-btn {
    background: linear-gradient(135deg, #7CB342, #689F38);
    color: #fff;
    border: none;
    padding: 16px 50px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(124, 179, 66, 0.4);
    font-family: inherit;
}

.eec-submit-btn:hover {
    background: linear-gradient(135deg, #689F38, #558B2F);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 179, 66, 0.5);
}

.eec-submit-btn:active {
    transform: translateY(0);
}

.eec-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   Hinweistext
   ============================================ */

.eec-form-note {
    text-align: center;
    color: #888;
    font-size: 0.85rem;
    margin-top: 20px;
}

.eec-form-note a {
    color: #7CB342;
    text-decoration: none;
}

.eec-form-note a:hover {
    text-decoration: underline;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 600px) {
    .eec-kontakte-wrapper {
        padding: 0 15px;
        margin: 20px auto;
    }
    
    .eec-form-card {
        padding: 25px;
    }
    
    .eec-form-row {
        grid-template-columns: 1fr;
    }
    
    .eec-form-title {
        font-size: 1.5rem;
    }
    
    .eec-submit-btn {
        width: 100%;
        padding: 14px 30px;
    }
}

/* ============================================
   Animationen
   ============================================ */

@keyframes eec-fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.eec-message {
    animation: eec-fadeIn 0.3s ease;
}

/* ============================================
   Validierung
   ============================================ */

.eec-form input:invalid:not(:placeholder-shown),
.eec-form select:invalid:not([value=""]) {
    border-color: #e53935;
}

.eec-form input:valid:not(:placeholder-shown),
.eec-form select:valid:not([value=""]) {
    border-color: #7CB342;
}
