/*
 Theme Name:   Kadence Child
 Theme URI:    https://www.echtepferde.com
 Description:  Ehrliches Child Theme für Müllers echte Pferde
 Author:       Urs Zeier
 Template:     kadence
 Version:      1.0.0
*/

/* Erzeugt weiches Scrollen bei Anchor-Links */
html {
    scroll-behavior: smooth;
}

/* ====================================================
   FOOTER-WECHSLER FÜR POLYLANG (ALLE VARIANTEN)
   ==================================================== 
*/

/* Wenn DEUTSCH aktiv ist -> Verstecke das englische Widget */
html[lang*="de"] .footer-en,
body.lang-de .footer-en,
body.de .footer-en {
    display: none !important;
}

/* Wenn ENGLISCH aktiv ist -> Verstecke das deutsche Widget */
html[lang*="en"] .footer-de,
body.lang-en .footer-de,
body.en .footer-de {
    display: none !important;
}

/* ====================================================
   Header Sprachwahl – Premium Edition (Scharf & Knackig)
   ==================================================== */

/* Container perfekt ausrichten */
.mueller-lang-switcher {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important; 
    gap: 14px !important;           
    margin-right: 15px !important;
}

/* Basis-Design für die Sprach-Links */
.mueller-lang-switcher .lang-link {
    text-decoration: none !important;
    font-weight: 500 !important;          /* Bleibt fest für absolute Ruhe im Header */
    text-transform: uppercase !important;
    font-size: 11px !important; 
    letter-spacing: 0.15em !important;     
    color: #2C2520 !important; 
    opacity: 0.6 !important;              /* HOCHGESETZT: Von 0.35 auf 0.6 für knackig scharfe Buchstaben */
    position: relative !important;
    transition: color 0.3s ease, opacity 0.3s ease !important;
}

/* Hover-Effekt für die inaktive Sprache */
.mueller-lang-switcher .lang-link:hover {
    opacity: 0.9 !important;
    color: #F7630C !important; 
}

/* Design für die aktuell aktive Sprache */
.mueller-lang-switcher .lang-link.is-active {
    color: #C5A059 !important; 
    opacity: 1 !important;                
}

/* Der subtile Trennstrich zwischen den Sprachen */
.mueller-lang-switcher .lang-link:not(:last-child)::after {
    content: "" !important;
    position: absolute !important;
    right: -8px !important;               
    top: 2px !important;
    bottom: 2px !important;
    width: 1px !important;
    background-color: #2C2520 !important;
    opacity: 0.45 !important;             /* HOCHGESETZT: Von 0.2 auf 0.45 – jetzt eine feine, scharfe Nadel-Linie */
    pointer-events: none !important;
}

/* ==============================
   Müllers Hofpost / Footer Signup
   ============================== */

/* Gemeinsamer Hofpost-Container */
.ep-hofpost-footer {
    max-width: 680px;
    margin: 0 auto 72px;
    padding: 42px 48px 46px;
    text-align: center;
    background: rgba(255, 255, 255, 0.42);
    border: 1px solid rgba(196, 153, 78, 0.42);
    border-radius: 2px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.035);
}

/* Titel */
.ep-hofpost-footer h2,
.ep-hofpost-footer h3 {
    margin: 0 0 12px;
    font-size: 28px;
    line-height: 1.25;
    font-weight: 600;
}

/* Beschreibung */
.ep-hofpost-footer p {
    max-width: 560px;
    margin: 0 auto 26px;
    font-size: 16px;
    line-height: 1.55;
    color: #4f4a44;
}

/* Fluent Form */
.ep-hofpost-footer .fluentform {
    max-width: 560px;
    margin: 0 auto;
}

/* Formulargruppen */
.ep-hofpost-footer .ff-el-group {
    margin-bottom: 14px !important;
}

/* Eingabefelder */
.ep-hofpost-footer input[type="email"],
.ep-hofpost-footer input[type="text"] {
    width: 100%;
    height: 44px !important;
    min-height: 44px !important;
    padding: 10px 14px !important;
    font-size: 15px !important;
    border-radius: 3px !important;
}

/* Checkbox-Zeile */
.ep-hofpost-footer .ff-el-form-check {
    max-width: 560px;
    margin: 2px auto 18px !important;
    padding: 0 !important;
    text-align: left;
}

/* Checkbox-Text */
.ep-hofpost-footer .ff-el-form-check-label {
    font-size: 14px !important;
    line-height: 1.45 !important;
    color: #4f4a44;
}

/* Checkbox selbst */
.ep-hofpost-footer input[type="checkbox"] {
    transform: scale(0.9);
    margin-right: 8px !important;
}

/* Submit Button Wrapper */
.ep-hofpost-footer .ff_submit_btn_wrapper {
    max-width: 560px;
    margin: 0 auto !important;
}

/* Button */
.ep-hofpost-footer .ff-btn-submit,
.ep-hofpost-footer .ff-btn {
    width: 100% !important;
    display: block !important;
    min-height: 46px !important;
    border-radius: 4px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em;
}

/* ==============================
   Sprachsteuerung DE / EN
   ============================== */

/* Standard: Deutsch sichtbar, Englisch versteckt */
.ep-hofpost-form-en {
    display: none !important;
}

/* Englisch: Deutsch verstecken */
html[lang^="en"] .ep-hofpost-form-de {
    display: none !important;
}

/* Englisch: Englisch zeigen */
html[lang^="en"] .ep-hofpost-form-en {
    display: block !important;
}

/* Deutsch: Sicherheit */
html[lang^="de"] .ep-hofpost-form-de {
    display: block !important;
}

html[lang^="de"] .ep-hofpost-form-en {
    display: none !important;
}

/* ==============================
   Mobile Optimierung
   ============================== */

@media (max-width: 768px) {
    .ep-hofpost-footer {
        max-width: 100%;
        width: 100%;
        margin: 0 0 40px;
        padding: 28px 16px 32px;
        border-radius: 0;
    }

    .ep-hofpost-footer h2,
    .ep-hofpost-footer h3 {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .ep-hofpost-footer p {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 20px;
    }

    .ep-hofpost-footer .fluentform,
    .ep-hofpost-footer .ff-el-form-check,
    .ep-hofpost-footer .ff_submit_btn_wrapper {
        max-width: 100%;
        width: 100%;
    }

    .ep-hofpost-footer .ff-el-form-check {
        margin: 2px 0 16px !important;
    }

    .ep-hofpost-footer .ff-el-form-check-label {
        font-size: 13px !important;
        line-height: 1.5 !important;
    }

    .ep-hofpost-footer .ff-btn-submit,
    .ep-hofpost-footer .ff-btn {
        font-size: 15px !important;
        min-height: 48px !important;
    }
}

/* --- Footer-Optimierung für Mobilgeräte --- */
@media (max-width: 767px) {
    
    /* Reihe 1: Das Copyright bekommt eine eigene Zeile */
    .copyright-footer-row3 {
        flex-basis: 100% !important;
        width: 100% !important;
        text-align: center !important;
    }

    /* Reihe 2: "Alle Rechte vorbehalten" bekommt eine eigene Zeile */
    .copyright-footer-row2 {
        flex-basis: 100% !important;
        width: 100% !important;
        text-align: center !important;
    }

    /* Reihe 3: Impressum & Datenschutz bleiben elegant nebeneinander */
    .copyright-footer-row1 {
        flex-basis: auto !important;
        width: auto !important;
        white-space: nowrap !important; /* Verhindert, dass ein Wort in sich umbricht */
        margin: 0 1px !important; /* Sorgt für den perfekten Abstand zwischen den beiden Links */
    }
}



/* hell gold: #C5A059  dunkel gold: A37F3D dunkelbraun: 2C2520 orange: F7630C*/