/**
 * Lichtbote Kontaktformular - CSS Styling & Theme-Isolation (v1.1.0)
 * 
 * Farbschema & Gestaltung:
 * - Schriftart: Aufrechte EB Garamond der Website ("EB+Garamond" / eb-garamond-v30-latin-800)
 * - Radikale Anti-Kursiv-Sicherung: font-style: normal !important & font-synthesis: none !important
 * - Allgemeine Schriftgröße (auch in allen Feldern & Platzhaltern): 20px
 * - Allgemeine Schriftfarbe (auch in allen Feldern & Platzhaltern): Braun (#784503), Fett (700)
 * - Labels: Türkis (#1DC1B8), 22px, Fett (700)
 * - Standard-Rahmen: Türkis (#1DC1B8)
 * - Fehler-Rahmen & Fehlertext: Rot (#B03B3B), 20px, Fett (700)
 * - Gültig-Rahmen & Button & Erfolgsbox: Grün (#2F9E44)
 * - Eckenradius konsequent: 25px
 * - 100% responsiv (keine starren Breitenbeschränkungen)
 */

/* ==========================================================================
   0. Radikale Anti-Kursiv-Sicherung
   Verknüpft ausschliesslich die aufrechten (nicht-kursiven) EB-Garamond-Dateien
   des Website-Systems und sperrt jegliche Kursiv-Darstellung.
   ========================================================================== */
@font-face {
    font-family: 'Lichtbote-Garamond-Upright';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/wp-content/uploads/2025/04/eb-garamond-v30-latin-regular.woff2') format('woff2'),
         url('/wp-content/uploads/2025/04/eb-garamond-v30-latin-regular.woff') format('woff');
}

@font-face {
    font-family: 'Lichtbote-Garamond-Upright';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/wp-content/uploads/2025/04/eb-garamond-v30-latin-800.woff2') format('woff2'),
         url('/wp-content/uploads/2025/04/eb-garamond-v30-latin-800.woff') format('woff');
}

@font-face {
    font-family: 'Lichtbote-Garamond-Upright';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('/wp-content/uploads/2025/04/eb-garamond-v30-latin-800.woff2') format('woff2'),
         url('/wp-content/uploads/2025/04/eb-garamond-v30-latin-800.woff') format('woff');
}

/* Selbst wenn ein Browser oder Plugin italic anfordert, wird die aufrechte Datei geladen */
@font-face {
    font-family: 'Lichtbote-Garamond-Upright';
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
    src: url('/wp-content/uploads/2025/04/eb-garamond-v30-latin-800.woff2') format('woff2'),
         url('/wp-content/uploads/2025/04/eb-garamond-v30-latin-800.woff') format('woff');
}

/* ==========================================================================
   1. Grundlegendes Reset & Kompromisslose Anti-Kursiv-Regel
   ========================================================================== */
#lichtbote-kontaktformular-wrapper.lb-kf-wrapper,
#lichtbote-kontaktformular-wrapper.lb-kf-wrapper *,
#lichtbote-kontaktformular-wrapper.lb-kf-wrapper *::before,
#lichtbote-kontaktformular-wrapper.lb-kf-wrapper *::after {
    box-sizing: border-box !important;
    font-family: 'Lichtbote-Garamond-Upright', 'EB+Garamond', sans-serif !important;
    font-style: normal !important;
    font-synthesis: none !important;
    font-synthesis-style: none !important;
    font-variation-settings: "ital" 0 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#lichtbote-kontaktformular-wrapper.lb-kf-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto;
    padding: 0;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #784503 !important;
    line-height: 1.5 !important;
}

/* ==========================================================================
   2. Formular-Struktur & Gruppenabstände
   ========================================================================== */
#lichtbote-kontaktformular-wrapper .lb-kf-form {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}

#lichtbote-kontaktformular-wrapper .lb-kf-field-group {
    width: 100% !important;
    margin: 0 0 24px 0 !important;
    padding: 0 !important;
    position: relative;
    display: block !important;
}

/* ==========================================================================
   3. Labels (Betreff, E-Mail-Adresse, Name, Nachricht)
   - Schriftfarbe: Türkis (#1DC1B8)
   - Schriftgröße: 22px
   - Schriftgewicht: Fett (700)
   - Nicht kursiv
   ========================================================================== */
#lichtbote-kontaktformular-wrapper .lb-kf-label {
    display: block !important;
    margin: 0 0 8px 10px !important;
    padding: 0 !important;
    font-family: 'Lichtbote-Garamond-Upright', 'EB+Garamond', sans-serif !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    font-style: normal !important;
    color: #1DC1B8 !important; /* Türkis */
    line-height: 1.3 !important;
    text-align: left !important;
    cursor: pointer;
}

/* ==========================================================================
   4. Eingabefelder (Inputs, Select, Textarea)
   - Schriftfarbe: Braun (#784503)
   - Schriftgröße: 20px
   - Schriftgewicht: Fett (700)
   - Nicht kursiv
   ========================================================================== */
#lichtbote-kontaktformular-wrapper input.lb-kf-input,
#lichtbote-kontaktformular-wrapper select.lb-kf-input,
#lichtbote-kontaktformular-wrapper textarea.lb-kf-input,
#lichtbote-kontaktformular-wrapper .lb-kf-input {
    display: block !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    font-family: 'Lichtbote-Garamond-Upright', 'EB+Garamond', sans-serif !important;
    font-size: 20px !important;
    font-weight: 700 !important; /* Fett */
    font-style: normal !important; /* Strikt nicht kursiv */
    font-synthesis: none !important;
    color: #784503 !important; /* Braun */
    -webkit-text-fill-color: #784503 !important;
    opacity: 1 !important;
    background-color: #FFFFFF !important;
    border: 2px solid #1DC1B8 !important; /* Standard: Türkis */
    border-radius: 25px !important; /* Eckenradius 25px */
    padding: 14px 22px !important;
    line-height: 1.4 !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color 0.25s ease, background-color 0.25s ease !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

#lichtbote-kontaktformular-wrapper .lb-kf-input:focus {
    outline: none !important;
    color: #784503 !important;
    -webkit-text-fill-color: #784503 !important;
    font-style: normal !important;
    font-weight: 700 !important;
    box-shadow: 0 0 0 2px rgba(29, 193, 184, 0.25) !important;
}

/* Placeholder Styling: Ebenfalls exakt 20px, Braun (#784503), Fett (700) und NICHT kursiv */
#lichtbote-kontaktformular-wrapper .lb-kf-input::placeholder {
    font-family: 'Lichtbote-Garamond-Upright', 'EB+Garamond', sans-serif !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    font-style: normal !important;
    font-synthesis: none !important;
    color: #784503 !important;
    -webkit-text-fill-color: #784503 !important;
    opacity: 1 !important;
}

#lichtbote-kontaktformular-wrapper .lb-kf-input::-webkit-input-placeholder {
    font-family: 'Lichtbote-Garamond-Upright', 'EB+Garamond', sans-serif !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    font-style: normal !important;
    font-synthesis: none !important;
    color: #784503 !important;
    -webkit-text-fill-color: #784503 !important;
    opacity: 1 !important;
}

#lichtbote-kontaktformular-wrapper .lb-kf-input::-moz-placeholder {
    font-family: 'Lichtbote-Garamond-Upright', 'EB+Garamond', sans-serif !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    font-style: normal !important;
    font-synthesis: none !important;
    color: #784503 !important;
    opacity: 1 !important;
}

#lichtbote-kontaktformular-wrapper .lb-kf-input:-ms-input-placeholder {
    font-family: 'Lichtbote-Garamond-Upright', 'EB+Garamond', sans-serif !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    font-style: normal !important;
    color: #784503 !important;
    opacity: 1 !important;
}

/* ==========================================================================
   5. Spezielles Styling für Betreff-Auswahlfeld (Select)
   ========================================================================== */
#lichtbote-kontaktformular-wrapper .lb-kf-select-wrapper {
    position: relative !important;
    width: 100% !important;
}

#lichtbote-kontaktformular-wrapper select.lb-kf-select {
    cursor: pointer !important;
    padding-right: 52px !important;
    font-family: 'Lichtbote-Garamond-Upright', 'EB+Garamond', sans-serif !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    font-style: normal !important;
    color: #784503 !important;
    -webkit-text-fill-color: #784503 !important;
    /* Eleganter SVG Dropdown-Pfeil in Türkis (#1DC1B8) */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='10' viewBox='0 0 18 10'%3E%3Cpath fill='none' stroke='%231DC1B8' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round' d='M2 2l7 6 7-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 22px center !important;
    background-size: 16px 9px !important;
}

/* Optionen im Dropdown-Menü */
#lichtbote-kontaktformular-wrapper select.lb-kf-select option {
    font-family: 'Lichtbote-Garamond-Upright', 'EB+Garamond', sans-serif !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    font-style: normal !important;
    color: #784503 !important;
    background-color: #FFFFFF !important;
    padding: 10px !important;
}

#lichtbote-kontaktformular-wrapper select.lb-kf-select option[value=""][disabled] {
    color: #784503 !important;
    font-weight: 700 !important;
    font-style: normal !important;
    opacity: 1 !important;
}

/* ==========================================================================
   6. Spezielles Styling für Textarea (Mehrzeiliges Eingabefeld)
   ========================================================================== */
#lichtbote-kontaktformular-wrapper textarea.lb-kf-textarea {
    min-height: 170px !important;
    resize: vertical !important;
    border-radius: 25px !important;
    padding-top: 18px !important;
    font-family: 'Lichtbote-Garamond-Upright', 'EB+Garamond', sans-serif !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    font-style: normal !important;
    color: #784503 !important;
    -webkit-text-fill-color: #784503 !important;
}

/* ==========================================================================
   7. Validierungs-Zustände (Fehler = Rot, Gültig = Grün)
   ========================================================================== */

/* Ungültig / Fehlerhaft */
#lichtbote-kontaktformular-wrapper .lb-kf-input.lb-kf-is-invalid {
    border-color: #B03B3B !important; /* Rot */
}

#lichtbote-kontaktformular-wrapper .lb-kf-input.lb-kf-is-invalid:focus {
    box-shadow: 0 0 0 2px rgba(176, 59, 59, 0.25) !important;
}

#lichtbote-kontaktformular-wrapper .lb-kf-select.lb-kf-is-invalid {
    /* Roter SVG Dropdown-Pfeil bei Fehler */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='10' viewBox='0 0 18 10'%3E%3Cpath fill='none' stroke='%23B03B3B' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round' d='M2 2l7 6 7-6'/%3E%3C/svg%3E") !important;
}

/* Gültig / Erfolgreich geprüft */
#lichtbote-kontaktformular-wrapper .lb-kf-input.lb-kf-is-valid {
    border-color: #2F9E44 !important; /* Grün */
}

#lichtbote-kontaktformular-wrapper .lb-kf-input.lb-kf-is-valid:focus {
    box-shadow: 0 0 0 2px rgba(47, 158, 68, 0.25) !important;
}

#lichtbote-kontaktformular-wrapper .lb-kf-select.lb-kf-is-valid {
    /* Grüner SVG Dropdown-Pfeil bei gültiger Auswahl */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='10' viewBox='0 0 18 10'%3E%3Cpath fill='none' stroke='%232F9E44' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round' d='M2 2l7 6 7-6'/%3E%3C/svg%3E") !important;
}

/* ==========================================================================
   8. Fehlermeldungen unter den Feldern
   - Schriftfarbe: Rot (#B03B3B)
   - Schriftgröße: 20px
   - Schriftgewicht: Fett (700)
   - Nicht kursiv
   ========================================================================== */
#lichtbote-kontaktformular-wrapper .lb-kf-error {
    display: none;
    margin: 8px 0 0 12px !important;
    padding: 0 !important;
    font-family: 'Lichtbote-Garamond-Upright', 'EB+Garamond', sans-serif !important;
    font-size: 20px !important;
    font-weight: 700 !important; /* Fett */
    font-style: normal !important; /* Nicht kursiv */
    color: #B03B3B !important; /* Rot */
    line-height: 1.35 !important;
    text-align: left !important;
}

#lichtbote-kontaktformular-wrapper .lb-kf-error.lb-kf-visible {
    display: block !important;
}

#lichtbote-kontaktformular-wrapper .lb-kf-general-error {
    margin: 15px 0 !important;
    padding: 12px 20px !important;
    background-color: rgba(176, 59, 59, 0.08) !important;
    border: 2px solid #B03B3B !important;
    border-radius: 25px !important;
    text-align: center !important;
}

/* ==========================================================================
   9. Sende-Schaltfläche (Button)
   - Beschriftung: „Nachricht senden“
   - Hintergrundfarbe: Grün (#2F9E44), auch beim Hover
   - Schriftfarbe: Weiss (#FFFFFF)
   - Schriftgröße: 20px
   - Schriftgewicht: Fett (700)
   - Nicht kursiv
   - Eckenradius: 25px
   ========================================================================== */
#lichtbote-kontaktformular-wrapper .lb-kf-submit-group {
    width: 100% !important;
    margin: 30px 0 0 0 !important;
    padding: 0 !important;
    text-align: left !important;
}

#lichtbote-kontaktformular-wrapper button.lb-kf-btn,
#lichtbote-kontaktformular-wrapper .lb-kf-btn {
    display: inline-block !important;
    font-family: 'Lichtbote-Garamond-Upright', 'EB+Garamond', sans-serif !important;
    font-size: 20px !important;
    font-weight: 700 !important; /* Fett */
    font-style: normal !important; /* Nicht kursiv */
    color: #FFFFFF !important; /* Weiss */
    -webkit-text-fill-color: #FFFFFF !important;
    background-color: #2F9E44 !important; /* Grün */
    border: 2px solid #2F9E44 !important;
    border-radius: 25px !important; /* Eckenradius 25px */
    padding: 14px 40px !important;
    line-height: 1.4 !important;
    text-align: center !important;
    text-decoration: none !important;
    cursor: pointer !important;
    outline: none !important;
    box-shadow: none !important;
    transition: opacity 0.2s ease, filter 0.2s ease !important;
}

/* Hintergrund bleibt auch beim Darüberfahren mit der Maus (Hover) Grün (#2F9E44) */
#lichtbote-kontaktformular-wrapper button.lb-kf-btn:hover,
#lichtbote-kontaktformular-wrapper button.lb-kf-btn:focus,
#lichtbote-kontaktformular-wrapper button.lb-kf-btn:active,
#lichtbote-kontaktformular-wrapper .lb-kf-btn:hover,
#lichtbote-kontaktformular-wrapper .lb-kf-btn:focus,
#lichtbote-kontaktformular-wrapper .lb-kf-btn:active {
    background-color: #2F9E44 !important; /* Strikt Grün */
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    border-color: #2F9E44 !important;
    font-style: normal !important;
    font-weight: 700 !important;
    outline: none !important;
    opacity: 0.96 !important;
}

#lichtbote-kontaktformular-wrapper .lb-kf-btn:disabled {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
}

/* ==========================================================================
   10. Erfolgsmeldung
   - Exakt zweizeilig:
     „Die Nachricht wurde erfolgreich übermittelt.“
     „Vielen Dank für die Kontaktaufnahme.“
   - Hintergrundfarbe: Grün (#2F9E44)
   - Schriftfarbe: Weiss (#FFFFFF)
   - Schriftgröße: 20px
   - Schriftgewicht: Fett (700)
   - Nicht kursiv
   - Textausrichtung: Zentriert
   - Eckenradius: 25px
   - Rahmenfarbe: Grün (#2F9E44)
   ========================================================================== */
#lichtbote-kontaktformular-wrapper .lb-kf-success-message {
    display: none;
    width: 100% !important;
    background-color: #2F9E44 !important; /* Grün */
    border: 2px solid #2F9E44 !important; /* Grün */
    border-radius: 25px !important; /* 25px */
    color: #FFFFFF !important; /* Weiss */
    -webkit-text-fill-color: #FFFFFF !important;
    font-family: 'Lichtbote-Garamond-Upright', 'EB+Garamond', sans-serif !important;
    font-size: 20px !important;
    font-weight: 700 !important; /* Fett */
    font-style: normal !important; /* Nicht kursiv */
    text-align: center !important;
    padding: 32px 24px !important;
    margin: 20px 0 !important;
    box-sizing: border-box !important;
}

#lichtbote-kontaktformular-wrapper .lb-kf-success-message p {
    margin: 6px 0 !important;
    padding: 0 !important;
    font-family: 'Lichtbote-Garamond-Upright', 'EB+Garamond', sans-serif !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    font-style: normal !important;
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    line-height: 1.5 !important;
    text-align: center !important;
}

/* ==========================================================================
   11. Unsichtbares Sicherheitsfeld (Honeypot)
   - Vollständig unsichtbar für Menschen
   - Nicht über Tab erreichbar
   ========================================================================== */
#lichtbote-kontaktformular-wrapper .lb-kf-hp {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    overflow: hidden !important;
    z-index: -100 !important;
    pointer-events: none !important;
}
