/**
Theme Name: Astra-Child
Author: Armin Villiger
Author URI: https://www.mitim.ch
Description: Erweiterung des Astra Themes um die notwendigen Funktionen für die automatische Eintragung von Komitee-Mitgliedschaftseinträgen aus dem Formular in die Komitee-Liste
Version: 1.5.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mitim
Template: astra
*/
/* --- Allgemeine CF7-Formularanpassungen --- */
.wpcf7-form-control-wrap {
    /* für Label direkt hinter number Feldern */
    display: inline !important;
}

.wpcf7-form-control-wrap input:focus,
.wpcf7-form-control-wrap textarea:focus {
    background-color: var(--ast-comment-inputs-background-active);
}

/* Nummernfelder */
input.wpcf7-number,
input.wpcf7-validates-as-number {
    width: 4.0rem !important;
    margin-left: 3.0rem;
    height: 1.7rem;
}

/* Listenpunkte/Checkboxen block */
.wpcf7 .wpcf7-list-item {
    display: block;
}

/* --- Checkbox Styling --- */
.wpcf7 input[type=checkbox] {
    position: absolute;
    visibility: hidden;
    width: 30px;
    height: 30px;
    top: 0;
    left: 0;
}

/* Kasten hinter der Checkbox */
.wpcf7 input[type=checkbox] + span:before {
    display: block;
    position: absolute;
    content: '';
    height: 30px;
    width: 30px;
    top: 0;
    left: 0;
    border: 1px solid var(--ast-border-color);
    background-color: var(--ast-comment-inputs-background);
    box-sizing: border-box;
}

/* Haken für die Checkbox */
.wpcf7 input[type=checkbox] + span:after {
    display: block;
    position: absolute;
    content: '';
    height: 30px;
    width: 30px;
    top: 0;
    left: 0;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
    background-color: var(--ast-global-color-0);
    visibility: hidden;
}

/* Checkbox checked: Haken sichtbar machen */
.wpcf7 input[type=checkbox]:checked + span:after {
    visibility: visible;
}

/* Labels einrücken */
.wpcf7-list-item-label {
    margin-left: 30px !important;
    display: inline-block !important;
}

/* Ultimate Post Grid Farben mit Theme Farben von Astra überschreiben */
/* Filter-Buttons einfärben */
/* Hintergrundfarbe der Filter-Buttons */
body #wpupg-grid-komitee-filter-1 .wpupg-filter-item {
    background-color: var(--ast-global-color-0);
    color: var(--ast-global-color-3); /* gleiche Schriftfarbe wie Astra-Button */
	border-radius: var(--ast-border-radius, 4px); 
	font-family: var(--ast-button-font-family, inherit);
	/*font-family: var(--ast-button-font-family, var(--ast-global-font-family));*/ /* gleiche Schrift wie Astra-Button */
    font-weight: var(--ast-button-font-weight, 500); /* meist 600 bei Astra-Buttons */
    font-size: var(--ast-button-font-size, 1em);
}

body #wpupg-grid-komitee-filter-1 .wpupg-filter-item:hover,
body #wpupg-grid-komitee-filter-1 .wpupg-filter-item.wpupg-filter-item-active {
    background-color: var(--ast-global-color-3);
    color: var(--ast-global-color-0);
}

/* Innerhalb der Grid-Templates */
body .wpupg-template-komitee {
    color: var(--ast-global-color-0);
}
