/*
Theme Name: IQZ - Twenty Twenty-Four Child
Theme URI: https://example.com/twenty-twenty-four-child/
Description: IQZ Child-Theme für Twenty Twenty-Four
Author: Martin Busse - BUFA
Template: twentytwentyfour
Version: 1.0.0
*/

/* ---- Allgemein ---- */

/* !!!!!  Zeigt keine Wirkung !!!! */

/* 1. Standard Bootstrap 5 Override (falls :after/:before genutzt wird) */
#acceptance:checked + .form-check-label::before,
#acceptance:checked + label::before {
    background-color: #353990 !important;
    border-color: #353990 !important;
}

/* 2. Falls das Theme ein span/icon im Label verwendet */
#acceptance:checked + .form-check-label,
#acceptance:checked + label {
    color: inherit;
}

/* 3. Volle Abdeckung für nackte Checkboxen mit appearance: none */
#acceptance {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    width: 1.15em !important;
    height: 1.15em !important;
    border: 1px solid #ced4da !important;
    border-radius: 0.25em !important;
    outline: none !important;
    cursor: pointer !important;
    vertical-align: middle !important;
    margin-right: 0.5em !important;
    background-color: #fff !important;
}

/* Der Zustand beim Anklicken (Checked) */
#acceptance:checked {
    background-color: #353990 !important;
    border-color: #353990 !important;
    /* Weißer Haken als SVG */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M3.5 8.5l3 3 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 70% 70% !important; /* Skaliert den Haken optimal */
}

/* ---- Seminarübersicht Breite ---- */

.table-iqz {
	/*border: 2px solid #f00;*/
	width: 100%;
}

table.table-iqz {
  font-size: var(--wp--preset--font-size--medium);
  font-weight: 400;
}

/* ---- Seminarübersicht Dropdownboxen ---- */

#iqz_filter_form {
	/*border: 2px solid #f00;*/
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 10px;
    box-sizing: border-box;
}

#iqz_filter_form select[name="iqz_category"] {
    flex: 0 0 calc(40% - 7px);
    width: calc(40% - 7px);
    box-sizing: border-box;
}

#iqz_filter_form select[name="iqz_topic"] {
    flex: 0 0 calc(40% - 7px);
    width: calc(40% - 7px);
    box-sizing: border-box;
}

#iqz_filter_form #iqz_filter_reset_btn {
    flex: 0 0 calc(20% - 6px);
    width: calc(20% - 6px);
    box-sizing: border-box;
}

@media (max-width: 768px) {
    #iqz_filter_form select[name="iqz_category"],
    #iqz_filter_form select[name="iqz_topic"],
    #iqz_filter_form #iqz_filter_reset_btn {
        flex: 0 0 100%;
        width: 100%;
    }
}

/* ---- Seminardetails ---- */

/* Grundlegende Formatierung für alle Listenelemente */
.iqz-sidebar-list .iqz-sidebar-list-item,
.iqz-sidebar-list-full .iqz-sidebar-list-item {
    padding: 8px 10px;       /* Innenabstand für bessere Lesbarkeit */
    margin: 0;
}

/* Ungerade Zeilen (1, 3, 5, ...): Weißer Hintergrund */
.iqz-sidebar-list .iqz-sidebar-list-item:nth-child(odd),
.iqz-sidebar-list-full .iqz-sidebar-list-item:nth-child(odd) {
    background-color: #ffffff;
}

/* Gerade Zeilen (2, 4, 6, ...): Hellgrauer Hintergrund */
.iqz-sidebar-list .iqz-sidebar-list-item:nth-child(even),
.iqz-sidebar-list-full .iqz-sidebar-list-item:nth-child(even) {
    background-color: #f1f5f9;  /* Hellgrau */
}