/* Nur spezifische Count-Elemente ausblenden (wenn vorhanden) */

.course-lesson-count,
.course-students-count,
.course-lessons,
.course-students,
.lp-course .course-lesson,
.lp-course .course-students,
.learn-press .course-lesson,
.learn-press .course-students,
.course-duration,           /* Dauer ausblenden */
.lesson-duration {           /* Dauer ausblenden */
  display: none !important;
}

/* WP-Login Links ausblenden */
a[href*="wp-login.php"],
a[href*="wp-admin"] {
  display: none !important;
}

/* WooCommerce Checkout responsive für mobile */
@media (max-width: 768px) {
    .woocommerce .col2-set {
        display: block !important; /* Spalten untereinander */
    }

    .woocommerce .col-1,
    .woocommerce .col-2 {
        width: 100% !important;  /* volle Breite */
        float: none !important;
        margin-bottom: 20px;     /* Abstand zwischen den Bereichen */
    }
}

/* ============================================

   💬 Kontaktformular Styling (WPCF7)

============================================ */

/* Formularcontainer */
.wpcf7 {
    max-width: 600px;
    margin: 0 auto;
    padding: 28px 30px;
    background-color: #fbf6ed !important;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    text-align: left;
    transition: box-shadow 0.3s ease;
}

.wpcf7:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Labels */
.wpcf7 label {
    display: block;
    margin-top: 15px;
    margin-bottom: 6px;
    font-weight: 600;
    color: #2c2c2c;
    font-size: 15px;
}

/* Eingabefelder */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d8d8d8;
    border-radius: 6px;
    background-color: #fff !important;
    font-size: 15px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus {
    border-color: #89907c;
    box-shadow: 0 0 0 3px rgba(137,144,124,0.15);
    outline: none;
}

/* Textarea */
.wpcf7 textarea {
    height: 120px !important; /* Fix: erzwingt kleinere Höhe */
    min-height: 120px !important;
    resize: vertical;
}

/* Checkbox + Datenschutzerklärung */
.wpcf7-acceptance {
    display: flex;
    align-items: center;
    margin-top: 18px;
    margin-left: -10px;
    font-size: 14px;
    color: #444;
}

/* Text rechts neben der Checkbox */
.wpcf7-acceptance span {
    margin-left: 10px;
    display: inline-block;
    position: relative;
    top: -1px;
}

/* Checkbox-Styling */
.wpcf7-acceptance input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
    accent-color: #89907c;
    cursor: pointer;
    border: 1px solid #bbb;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    transition: box-shadow 0.2s ease, transform 0.15s ease;
}

/* Hover- & Fokus-Effekt */
.wpcf7-acceptance input[type="checkbox"]:hover {
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

.wpcf7-acceptance input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(137,144,124,0.25);
}

/* Button */
.wpcf7 p {
    text-align: left;
    margin-top: 15px;
}

.wpcf7 input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    background-color: #89907c !important;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.15s ease;
    line-height: 1;
}

.wpcf7 input[type="submit"]:hover {
    background-color: #7a806e !important;
    transform: translateY(-2px);
}

/* ============================================

   📱 Mobile Optimierung

============================================ */
@media (max-width: 500px) {
    .wpcf7 {
        padding: 20px 15px;
    }

    .wpcf7 label {
        font-size: 14px;
    }

    .wpcf7 input[type="submit"] {
        width: 100%;
    }

    .wpcf7-acceptance {
        font-size: 13px;
        line-height: 1.3;
        align-items: flex-start;
    }
}

/* Entfernt die 3 Punkte (MaxCoach Canvas) nur, wenn diese ID existiert */
#page-open-components {
    display: none !important;
}