/**
 * CA Quick Check V2 - Styles
 * Basierend auf dem Original-Design des alten Plugins
 */

/* ============================================
   GRUNDLEGENDE STYLES
   ============================================ */

.caqc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
}

/* ============================================
   QUICK CHECK WRAPPER
   ============================================ */

.QuickCheckWrapper,
.caqc-question-wrapper {
    color: #e11e00;
    font-size: 18px;
    margin-bottom: 50px;
    line-height: 28px;
    font-weight: 100;
    width: 100%;
    float: left;
}

.QuickCheckWrapper .frageNr,
.caqc-question-wrapper .frageNr {
    font-size: 28px;
    float: left;
    height: 95px;
    width: 4%;
    font-weight: bold;
    color: #e11e00;
}

.QuickCheckWrapper .frageText,
.caqc-question-wrapper .frageText {
    float: left;
    width: 62%;
    padding-right: 15px;
}

.QuickCheckWrapper .caqc-slider-wrapper,
.caqc-question-wrapper .caqc-slider-wrapper {
    float: left;
    width: 33%;
}

/* ============================================
   BUTTONS - KATEGORIE-AUSWAHL
   ============================================ */

.QuickCheckWrapperButton,
.caqc-category-buttons {
    margin-bottom: 30px;
    display: flex;
    /*gap: 15px;*/
    flex-wrap: wrap;
}

.QuickCheckButton,
.caqc-category-btn {
    width: 100%;
    font-size: 30px;
    color: #fff;
    height: 75px;
    padding-top: 27px;
    padding-left: 25px;
    position: relative;
    background: rgb(225, 30, 0);
    background: linear-gradient(180deg, rgba(225, 30, 0, 1) 0%, rgba(171, 23, 0, 1) 100%);
    border: none;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.QuickCheckButton:hover,
.caqc-category-btn:hover {
    background: rgb(255, 255, 255);
    color: #E11E00;
    cursor: pointer;
}

.QuickCheckButton.aktiv,
.caqc-category-btn.active {
    background: rgb(255, 255, 255);
    color: #E11E00;
}

/* ============================================
   NAVIGATION BUTTONS
   ============================================ */

.fortsetztenButton,
.zurueckButton,
.caqc-nav-btn {
    width: 100%;
    background-color: #E11E00;
    font-size: 22px;
    color: #fff;
    height: 75px;
    padding-top: 27px;
    position: relative;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.fortsetztenButton:hover,
.zurueckButton:hover,
.caqc-nav-btn:hover {
    background-color: #ab1700;
}

.quickCheckLine,
.caqc-divider {
    height: 10px;
    background-color: #E11E00;
    width: 100%;
    margin: 20px 0 0 0;
    clear: both;
}

/* ============================================
   ERGEBNIS-BEREICH
   ============================================ */

.QuickCheckErgebnisWrapper,
.caqc-result-wrapper {
    margin-bottom: 100px;
}

.headlineErgebnis,
.caqc-result-headline {
    color: #e11e00;
    font-size: 38px;
    border-bottom: 1px solid #e11e00;
    width: 100%;
    height: 36px;
    line-height: 26px;
    margin-left: 15px;
    margin-right: 15px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 10px;
}

.headlineErgebnis span,
.caqc-result-headline .caqc-score {
    font-size: 70px;
    color: #E11E00;
    font-weight: bold;
    margin-top: -10px;
}

.copyErgebnis,
.caqc-result-summary {
    font-size: 14px;
    line-height: 20px;
    margin-top: 20px;
    color: #555555;
}

.ergebnisFragenWrapper,
.caqc-results-questions {
    margin-top: 30px;
}

.summeErgebniss,
.caqc-total-score {
    font-size: 70px;
    color: #E11E00;
    line-height: 97px;
    font-weight: bold;
    text-align: right;
}

/* ============================================
   EINZELNE FRAGEN-ERGEBNISSE
   ============================================ */

.ergebnisFrage,
.caqc-question-result {
    font-size: 14px;
    color: #555555;
    float: left;
    min-height: 100px;
    margin-bottom: 40px;
    padding-right: 20px;
}

.ergebnisFrage .frageNr,
.caqc-question-result .frageNr {
    color: #E11E00;
}

.titleErgebnis,
.caqc-result-title {
    color: #E11E00;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 16px;
}

.beschreibungErgebnis,
.caqc-result-description {
    margin-bottom: 20px;
    line-height: 1.6;
}

.ergebnisZahl,
.caqc-score-display {
    font-size: 16px;
    color: #E11E00;
    font-weight: bold;
    margin-top: -17px;
    margin-bottom: 2px;
}

/* ============================================
   ERGEBNIS-BAR (SKILLBAR)
   ============================================ */

.ergebnisBar,
.caqc-progress-bar {
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.ergebnisBar .sb_bar,
.caqc-progress-bar .caqc-bar-fill {
    height: 100%;
    background-color: #e11e00;
    border-radius: 5px;
    transition: width 0.5s ease;
}

.sb_label {
    font-size: 12px;
}

/* ============================================
   ANSPRECHPARTNER
   ============================================ */

.ansprechpartnerErgebnis,
.caqc-contact-info {
    font-size: 12px;
    line-height: 16px;
    color: #555555;
    margin-top: 20px;
}

.ansprechpartnerErgebnis a,
.caqc-contact-info a {
    color: #555555;
    text-decoration: underline;
}

.ansprechpartnerErgebnis a:hover,
.caqc-contact-info a:hover {
    color: #e11e00;
}

/* ============================================
   ICONS UND EMPFEHLUNGEN
   ============================================ */

.iconErgebnis,
.caqc-recommendation {
    float: left;
    width: 100%;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
}

.iconErgebnis a,
.caqc-recommendation a {
    color: #555555;
    text-decoration: underline;
}

.iconErgebnis a:hover,
.caqc-recommendation a:hover {
    color: #e11e00;
}

.beschreibungIconErgebnis,
.caqc-recommendation-icon {
    width: 45px;
    min-width: 45px;
    margin-right: 20px;
}

.beschreibungIconErgebnis img,
.caqc-recommendation-icon img {
    width: 100%;
    height: auto;
}

.beschreibungIconCopyErgebnis,
.caqc-recommendation-text {
    flex: 1;
}

/* ============================================
   LISTEN
   ============================================ */

ul.qu-ch-ul,
.caqc-list {
    margin: 0;
    padding: 0 0 0 10px;
}

ul.qu-ch-ul li,
.caqc-list li {
    margin: 0;
    padding: 0;
    list-style-type: square;
    color: #e11e00;
}

ul.qu-ch-ul li span,
.caqc-list li span {
    color: #555555;
}

/* ============================================
   FORMULAR
   ============================================ */

.caqc-form {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 5px;
    margin-top: 30px;
    border: 1px solid #e0e0e0;
}

.caqc-form-title {
    color: #e11e00;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.caqc-form-row {
    margin-bottom: 20px;
}

.caqc-form-row label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.caqc-form-row input[type="text"],
.caqc-form-row input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.caqc-form-row input[type="text"]:focus,
.caqc-form-row input[type="email"]:focus {
    border-color: #e11e00;
    outline: none;
    box-shadow: 0 0 5px rgba(225, 30, 0, 0.3);
}

.caqc-checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.caqc-checkbox-row input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: #e11e00;
}

.caqc-checkbox-row label {
    font-weight: normal;
    font-size: 14px;
    line-height: 1.4;
}

.caqc-submit-btn {
    background: linear-gradient(180deg, rgba(225, 30, 0, 1) 0%, rgba(171, 23, 0, 1) 100%);
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.caqc-submit-btn:hover {
    background: linear-gradient(180deg, rgba(171, 23, 0, 1) 0%, rgba(140, 18, 0, 1) 100%);
}

.caqc-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* ============================================
   POPUP / MODAL
   ============================================ */

.caqc-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.caqc-popup {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.caqc-popup-title {
    color: #e11e00;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
}

.caqc-popup-text {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

.caqc-popup-note {
    font-size: 14px;
    color: #888;
    font-style: italic;
}

.caqc-popup-close {
    background: #e11e00;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    margin-top: 20px;
}

.caqc-popup-close:hover {
    background: #ab1700;
}

/* ============================================
   FEHLER UND ERFOLG MELDUNGEN
   ============================================ */

.caqc-message {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}

.caqc-message-error {
    background: #ffe6e6;
    border: 1px solid #e11e00;
    color: #c00;
}

.caqc-message-success {
    background: #e6ffe6;
    border: 1px solid #28a745;
    color: #155724;
}

/* ============================================
   ERGEBNIS LOGO
   ============================================ */

p.qu-ch-ergebnis,
.caqc-result-label {
    font-size: 3.5em;
    text-align: left;
    color: #e11e00;
    font-weight: bold;
    float: right;
    margin-left: 30px;
    margin-top: 45px;
    margin-bottom: 0px;
}

p.qu-ch-ergebnis-text,
.caqc-result-intro {
    font-size: 2em;
    line-height: 1.2em;
    text-align: center;
    color: #e11e00;
    margin: 30px 0 0;
}

/* ============================================
   SONSTIGES
   ============================================ */

.sonderTrenner {
    height: 30px;
    width: 100%;
}

.mobile {
    display: none;
}

.desktop {
    display: block;
}

/* ============================================
   LOADING SPINNER
   ============================================ */

.caqc-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #e11e00;
    border-radius: 50%;
    animation: caqc-spin 1s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes caqc-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media only screen and (min-device-width: 1024px) and (max-device-width: 1085px) {
    .headlineErgebnis,
    .caqc-result-headline {
        font-size: 32px;
    }
}

@media only screen and (min-device-width: 768px) and (max-device-width: 1023px) {
    .headlineErgebnis,
    .caqc-result-headline {
        height: 35px;
    }
    
    .headlineErgebnis span,
    .caqc-result-headline .caqc-score {
        font-size: 55px;
        margin-top: -5px;
    }
}

@media only screen and (max-width: 980px) {
    p.qu-ch-ergebnis,
    .caqc-result-label {
        font-size: 3em;
        margin: 5% 0 0;
        text-align: center;
    }
    
    .QuickCheckButton,
    .caqc-category-btn {
        font-size: 24px;
        height: 65px;
        padding-top: 22px;
    }
}

@media only screen and (max-width: 767px) {
    .quickCheckWrapper,
    .caqc-container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .headlineErgebnis,
    .caqc-result-headline {
        font-size: 24px;
        height: unset;
        float: left;
        margin-bottom: 20px;
        width: 95%;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .headlineErgebnis span,
    .caqc-result-headline .caqc-score {
        font-size: 36px;
        margin-top: 10px;
        margin-bottom: 10px;
    }
    
    .ergebnisFrage,
    .caqc-question-result {
        padding-right: 0;
    }
    
    .beschreibungIconCopyErgebnis,
    .caqc-recommendation-text {
        width: 80%;
    }
    
    .beschreibungIconErgebnis,
    .caqc-recommendation-icon {
        width: 15%;
        max-width: 65px;
        margin-right: 0px;
        padding-right: 15px;
    }
    
    .mobile {
        display: block;
    }
    
    .desktop {
        display: none;
    }
    
    .ergebnisBarMobile {
        width: 100%;
        float: left;
    }
    
    .titleErgebnis,
    .caqc-result-title {
        width: 100%;
        float: left;
        padding-right: 15px;
    }
    
    .ergebnisZahl,
    .caqc-score-display {
        font-size: 12px;
        margin-top: 0px;
    }
    
    .beschreibungErgebnis,
    .caqc-result-description {
        margin-bottom: 20px;
        float: left;
        margin-top: 20px;
    }
    
    .QuickCheckWrapper .frageNr,
    .caqc-question-wrapper .frageNr {
        height: 10px;
    }
    
    .irs--round.irs-with-grid {
        margin-top: 15px;
    }
    
    .sonderTrenner {
        height: 0px;
        width: 100%;
    }
    
    .quick-check-logo {
        padding-bottom: 50px;
    }
    
    p.qu-ch-ergebnis,
    .caqc-result-label {
        margin: 20px 0 0;
    }
    
    p.qu-ch-ergebnis-text,
    .caqc-result-intro {
        margin: 30px 0 20px !important;
    }
    
    .qu-ch-ergebnis {
        margin: 0;
        text-align: center;
    }
    
    .qu-ch-ergebnis-text {
        margin: 30px 0 20px;
    }
    
    .QuickCheckButton,
    .caqc-category-btn {
        font-size: 20px;
        height: 55px;
        padding-top: 18px;
    }
    
    .caqc-form {
        padding: 20px;
    }
    
    .caqc-popup {
        padding: 25px;
    }
    
    .caqc-popup-title {
        font-size: 22px;
    }
}

@media only screen and (min-device-width: 320px) and (max-device-width: 630px) {
    .headlineErgebnis span,
    .caqc-result-headline .caqc-score {
        margin-top: 15px;
        margin-left: 25px;
    }
}

/* ============================================
   ION RANGE SLIDER ANPASSUNGEN
   ============================================ */

.irs--round .irs-bar {
    background-color: #e11e00;
}

.irs--round .irs-handle {
    border-color: #e11e00;
}

.irs--round .irs-from,
.irs--round .irs-to,
.irs--round .irs-single {
    background-color: #e11e00;
}

.irs--round .irs-from::before,
.irs--round .irs-to::before,
.irs--round .irs-single::before {
    border-top-color: #e11e00;
}

/* ============================================
   GRID LAYOUT (für Kompatibilität mit VC)
   ============================================ */

.vc_row {
    display: flex;
    flex-wrap: wrap;
}

.vc_col-sm-2 {
    width: 16.666%;
}

.vc_col-sm-4 {
    width: 33.333%;
}

.vc_col-sm-8 {
    width: 66.666%;
}

.vc_col-sm-10 {
    width: 83.333%;
}

.vc_col-sm-12 {
    width: 100%;
}

@media only screen and (max-width: 767px) {
    .vc_col-sm-2,
    .vc_col-sm-4,
    .vc_col-sm-8,
    .vc_col-sm-10 {
        width: 100%;
    }
}

/* ============================================
   CLEARFIX
   ============================================ */

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}
