/* CLAUDE: Contact Form 7 Styling */
/* CLAUDE: Anpassbar: Farben in base.css Variablen ändern */

/* CLAUDE: Formular-Container */
.wpcf7 {
    /* CLAUDE: Max-Breite für bessere Lesbarkeit */
    max-width: 600px;
}

/* CLAUDE: Formular-Intro Text */
.wpcf7 .form-intro {
    /* CLAUDE: Einleitungstext-Styling */
    margin-bottom: var(--lhi-spacing-lg, 2rem);
    color: var(--lhi-color-text, #3B2A1A);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* CLAUDE: Label-Styling */
.wpcf7 label {
    /* CLAUDE: Block-Display für volle Breite */
    display: block;
    margin-bottom: var(--lhi-spacing-md, 1.5rem);
    color: var(--lhi-color-text, #3B2A1A);
    font-weight: 500;
}

/* CLAUDE: Input-Felder */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="number"],
.wpcf7 input[type="url"],
.wpcf7 select,
.wpcf7 textarea {
    /* CLAUDE: Einheitliches Styling für alle Eingabefelder */
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    margin-top: 0.5rem;
    border: 2px solid var(--lhi-color-accent, #C19A6B);
    border-radius: 4px;
    background: var(--lhi-color-background, #F6F4EF);
    color: var(--lhi-color-text, #3B2A1A);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* CLAUDE: Focus-State für Inputs */
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="number"]:focus,
.wpcf7 input[type="url"]:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
    /* CLAUDE: Hervorhebung bei Fokus */
    outline: none;
    border-color: var(--lhi-color-primary, #7C4A21);
    box-shadow: 0 0 0 3px rgba(124, 74, 33, 0.15);
}

/* CLAUDE: Textarea-Höhe */
.wpcf7 textarea {
    /* CLAUDE: Mindesthöhe für Nachrichtenfeld */
    min-height: 150px;
    resize: vertical;
}

/* CLAUDE: Select-Dropdown */
.wpcf7 select {
    /* CLAUDE: Pfeil-Icon für Dropdown */
    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='%233B2A1A' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

/* CLAUDE: Checkbox/Datenschutz-Akzeptanz */
.wpcf7 .wpcf7-acceptance {
    /* CLAUDE: Flexbox für Checkbox-Ausrichtung */
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: var(--lhi-spacing-md, 1.5rem) 0;
}

.wpcf7 .wpcf7-acceptance input[type="checkbox"] {
    /* CLAUDE: Größere Checkbox für Touch */
    width: 20px;
    height: 20px;
    margin-top: 0.2rem;
    flex-shrink: 0;
    accent-color: var(--lhi-color-primary, #7C4A21);
}

.wpcf7 .wpcf7-acceptance .wpcf7-list-item-label {
    /* CLAUDE: Text-Styling für Datenschutz */
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--lhi-color-text-light, #5a4a3a);
}

.wpcf7 .wpcf7-acceptance a {
    /* CLAUDE: Link-Styling im Datenschutz */
    color: var(--lhi-color-primary, #7C4A21);
    text-decoration: underline;
}

/* CLAUDE: Submit-Button */
.wpcf7 input[type="submit"] {
    /* CLAUDE: Prominenter CTA-Button */
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--lhi-color-primary, #7C4A21);
    color: var(--lhi-color-light, #F6F4EF);
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.wpcf7 input[type="submit"]:hover {
    /* CLAUDE: Hover-State für Button */
    background-color: var(--lhi-color-text, #3B2A1A);
}

.wpcf7 input[type="submit"]:active {
    /* CLAUDE: Active-State für Button */
    transform: translateY(1px);
}

/* CLAUDE: Erfolgsmeldung */
.wpcf7 .wpcf7-response-output {
    /* CLAUDE: Basis-Styling für Meldungen */
    margin: var(--lhi-spacing-md, 1.5rem) 0;
    padding: 1rem;
    border-radius: 4px;
    font-size: 0.95rem;
}

.wpcf7 form.sent .wpcf7-response-output {
    /* CLAUDE: Erfolgs-Styling */
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
    /* CLAUDE: Fehler-Styling */
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* CLAUDE: Validierungs-Fehler einzelner Felder */
.wpcf7 .wpcf7-not-valid-tip {
    /* CLAUDE: Feldspezifische Fehlermeldung */
    display: block;
    margin-top: 0.5rem;
    color: var(--lhi-color-cta, #8F2330);
    font-size: 0.85rem;
}

.wpcf7 .wpcf7-not-valid {
    /* CLAUDE: Fehlerhafte Felder markieren */
    border-color: var(--lhi-color-cta, #8F2330);
}

/* CLAUDE: Spinner während Versand */
.wpcf7 .wpcf7-spinner {
    /* CLAUDE: Lade-Animation */
    margin-left: 1rem;
}

/* ========================================
   CLAUDE: FORMULAR CARD WRAPPER
   ======================================== */

/* CLAUDE: Card-Wrapper für Formular-Bereich (visuell abheben) */
.lhi-form-card {
    /* CLAUDE: Weißer Hintergrund für Kontrast */
    background-color: #FFFFFF;
    /* CLAUDE: Abgerundete Ecken passend zur Kontakt-Card */
    border-radius: 12px;
    /* CLAUDE: Dezenter Rahmen */
    border: 1px solid var(--wp--preset--color--porous-stone, #DCD7CE);
    /* CLAUDE: Linke Akzentlinie (konsistent mit Kontakt-Card) */
    border-left: 4px solid var(--wp--preset--color--heritage-gold, #8a6b3f);
    /* CLAUDE: Subtiler Schatten für Tiefe */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    /* CLAUDE: Innenabstand */
    padding: 2rem;
    /* CLAUDE: Transition für Hover */
    transition: box-shadow 0.2s ease;
}

/* CLAUDE: Hover-Effekt für Card */
.lhi-form-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* CLAUDE: Formular-Titel innerhalb der Card */
.lhi-form-card__title {
    /* CLAUDE: Kein Margin oben */
    margin-top: 0;
    /* CLAUDE: Abstand nach unten */
    margin-bottom: 1.5rem;
    /* CLAUDE: Schriftgröße */
    font-size: 1.5rem;
    /* CLAUDE: Gewicht */
    font-weight: 700;
    /* CLAUDE: Farbe */
    color: var(--wp--preset--color--dark-umber, #3B2A1A);
}

/* CLAUDE: CF7 innerhalb der Card soll volle Breite nutzen */
.lhi-form-card .wpcf7 {
    max-width: 100%;
}

/* CLAUDE: Responsive Anpassungen */
@media (max-width: 600px) {
    .lhi-form-card {
        /* CLAUDE: Weniger Padding auf Mobile */
        padding: 1.25rem;
    }

    .lhi-form-card__title {
        font-size: 1.25rem;
    }

    .wpcf7 input[type="submit"] {
        /* CLAUDE: Volle Breite auf Mobile */
        width: 100%;
    }
}
