/*

Theme Name: Pro &ndash; Child Theme
Theme URI: https://theme.co/pro/
Author: Themeco
Author URI: https://theme.co/
Description: Make all of your modifications to Pro in this child theme.
Version: 1.0.0
Template: pro

*/


/* =============================================================================
   Referenz-Navigation
   ============================================================================= */

.referenz-nav-prev,
.referenz-nav-next {
    position: relative;
    display: inline-block;
    text-decoration: none;
}

.referenz-nav-prev:hover,
.referenz-nav-next:hover {
    cursor: none;
    opacity: 0.8;
}

.referenz-hover-preview {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: none;
}

.referenz-hover-preview.show {
    opacity: 1;
}

.referenz-hover-preview img {
    display: block;
    width: 160px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}


/* =============================================================================
   Multi-Step Kontaktformular
   ============================================================================= */

/* --- Formular-Reset: CF7 generiert <p>-Tags die das Layout stören --- */
.wpcf7-form .fieldset-cf7mls > p {
    margin: 0;
    padding: 0;
}

/* --- Abstand zwischen unterschiedlichen Eingabefeldern --- */
.wpcf7-form .fieldset-cf7mls > p + p {
    margin-top: 40px;
}

/* --- Radio-Buttons als 2x2 Grid --- */
.haerz-select-01 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    margin-top: 20px;
}

.haerz-select-01 .wpcf7-list-item {
    margin: 0;
    position: relative;
    background: #fff;
    border-radius: 5px;
    border: 1px solid transparent;
    transition: border-color 0.2s ease;
}

/* Radio-Button unsichtbar über gesamte Fläche strecken */
.haerz-select-01 input[type="radio"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    margin: 0;
    cursor: pointer;
    z-index: 1;
}

/* Label-Text klickbar machen (Step 1 hat keine <label>-Wrapper) */
.haerz-select-01 .wpcf7-list-item-label {
    display: block;
    padding: 18px 20px;
    text-align: center;
    cursor: pointer;
    font-size: 15px;
}

/* Hover */
.haerz-select-01 .wpcf7-list-item:hover {
    border-color: #dedede;
}

/* Ausgewählter Zustand */
.haerz-select-01 input[type="radio"]:checked + .wpcf7-list-item-label {
    font-weight: 700;
}

.haerz-select-01 .wpcf7-list-item:has(input[type="radio"]:checked) {
    border-color: #dedede;
}

/* --- Textfelder --- */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
    width: 100%;
    border: 1px solid transparent;
    padding: 18px 20px;
    font-size: 15px;
    background: #fff;
    outline: none;
    border-radius: 5px;
    -webkit-appearance: none;
    transition: border-color 0.2s ease;
}

.wpcf7 input[type="text"]:hover,
.wpcf7 input[type="email"]:hover,
.wpcf7 input[type="tel"]:hover,
.wpcf7 textarea:hover,
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 textarea:focus {
    border-color: #dedede;
}

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
    color: #333;
    opacity: 1;
}

/* --- Multi-Step Navigation (Pfeile) --- */
.cf7mls-btns {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 48px;
    padding: 0;
}

.cf7mls-btns .cf7mls_next.action-button,
.cf7mls-btns .cf7mls_back.action-button {
    margin: 0;
    padding: 0;
}


/* Wenn nur Next-Button da ist (Step 1): nach rechts schieben */
.cf7mls-btns:not(:has(.cf7mls_back)) {
    justify-content: flex-end;
}

.cf7mls_back,
.cf7mls_next {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0;
    padding: 10px;
    line-height: 1;
    color: #000;
}

/* Loader-Bild im Button verstecken */
.cf7mls_next img {
    display: none !important;
}

/* Pfeil-Icons via CSS */
.cf7mls_back::before,
.cf7mls_next::before {
    font-size: 40px;
    line-height: 40px;
    font-weight: 700;
    color: #000;
    display: block;
    width: 100%;
    transition: opacity 0.2s ease;
}

.cf7mls_back::before {
    content: "\2190";
}

.cf7mls_next::before {
    content: "\2192";
    text-align: end;
}

.cf7mls_back:hover::before,
.cf7mls_next:hover::before {
    opacity: 0.6;
}

/* --- Submit Button (letzter Step) --- */
.wpcf7 input[type="submit"] {
    background: #000;
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 15px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.wpcf7 input[type="submit"]:hover {
    opacity: 0.8;
}

/* --- Button/Pfeil Anpassung generell --- */
.cf7mls_next.action-button,
.cf7mls_back.action-button {
    background-color: transparent
}

/* --- Responsive --- */
@media (max-width: 600px) {
    .haerz-select-01 {
        grid-template-columns: 1fr;
    }

    .haerz-select-01 .wpcf7-list-item:nth-child(odd) {
        border-right: none;
    }
}

form {
    margin-bottom: 15px;
}