﻿/* =============================================
   Crystal Dienste – Custom Styles
   Palette : rouge template #ed1b24 (--theme-color)
             + or logo #c8a84b (logo uniquement)
   Typo    : Poppins (titres) + Roboto (corps) — hérité de preset.css
   ============================================= */

/* ---- Header logo image ---- */
.logo img {
    height: auto !important;
    max-height: 58px !important;
    width: auto !important;
    max-width: none !important;
}

/* ---- Logo ---- */
.cf-logo-text {
    font-size: 24px;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -0.5px;
    line-height: 1;
}
.cf-logo-text span { color: #c8a84b; }   /* or uniquement pour la marque */

.cf-logo-footer {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    display: block;
}
.cf-logo-footer span { color: #c8a84b; } /* idem */

/* ---- Hero Section ---- */
.cf-hero {
    position: relative;
    overflow: hidden;
    background: url('../images/bg/1.jpg') center center / cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.cf-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(0,0,0,0.88) 45%, rgba(0,0,0,0.45) 100%);
}
.cf-hero-img-abs {
    position: absolute;
    bottom: 0;
    right: 8%;
    z-index: 2;
    height: 90%;
    pointer-events: none;
}
.cf-hero-img-abs img {
    height: 100%;
    width: auto;
    display: block;
    filter: drop-shadow(-20px 0 40px rgba(0,0,0,0.5));
}
.cf-hero-content {
    position: relative;
    z-index: 3;
    padding: 90px 0 80px;
}
.cf-hero-tag {
    display: inline-block;
    background: transparent;
    border: 1px solid var(--theme-color);
    color: #fff;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    padding: 7px 18px;
    border-radius: 3px;
    margin-bottom: 24px;
}
.cf-hero-title {
    font-size: 64px;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 24px;
}
.cf-hero-title span { color: var(--theme-color); }

.cf-hero-desc {
    font-size: 17px;
    font-family: 'Roboto', sans-serif;
    color: rgba(255,255,255,0.80);
    max-width: 560px;
    line-height: 1.75;
    margin-bottom: 36px;
}
.cf-hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.qu_btn_outline {
    background: transparent !important;
    border: 2px solid #fff !important;
    color: #fff !important;
    line-height: 56px !important;
}
.qu_btn_outline:hover {
    background: var(--theme-color) !important;
    border-color: var(--theme-color) !important;
    color: #fff !important;
}

/* ---- Hero Stats Bar ---- */
.cf-hero-stats {
    position: relative;
    z-index: 2;
    background: rgba(0,0,0,0.55);
    border-top: 1px solid rgba(255,255,255,0.12);
    padding: 32px 0;
}
.cf-stat { text-align: center; }
.cf-stat h3 {
    font-size: 40px;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    color: #fff;
    margin: 0 0 4px;
}
.cf-stat p {
    font-size: 13px;
    font-family: 'Roboto', sans-serif;
    color: rgba(255,255,255,0.70);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* ---- Contact form ---- */
.cf-contact-form { padding-bottom: 8px; }
.cf-form-desc {
    color: #5a6472;
    margin-bottom: 22px;
    font-size: 15px;
    line-height: 1.6;
}
.cf-submit-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 16px;
    width: 100%;
    padding: 0 24px;
    border: none;
    cursor: pointer;
}
.cf-submit-btn.is-loading { opacity: 0.65; cursor: wait; }
.cf-form-note {
    color: #7c8593;
    font-size: 12.5px;
    line-height: 1.55;
    margin: 12px 0 0;
}
.cf-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px; height: 1px;
    overflow: hidden;
}
.cf-form-status {
    display: none;
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14.5px;
    line-height: 1.55;
    border-left: 4px solid transparent;
}
.cf-form-status.is-ok {
    display: block;
    background: rgba(46,160,90,0.14);
    border-left-color: #2ea05a;
    color: #b8f0cd;
}
.cf-form-status.is-error {
    display: block;
    background: rgba(214,69,69,0.14);
    border-left-color: #d64545;
    color: #f8c5c5;
}
.cf-form-status.is-info {
    display: block;
    background: rgba(200,168,75,0.14);
    border-left-color: #c8a84b;
    color: #f0dfae;
}

/* ---- Map Placeholder ---- */
.cf-map-placeholder {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    padding: 24px;
    text-align: center;
    color: rgba(255,255,255,0.7);
}
.cf-map-placeholder i {
    font-size: 36px;
    color: var(--theme-color);
    display: block;
    margin-bottom: 12px;
}
.cf-map-placeholder p {
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    margin-bottom: 12px;
}

/* ---- Section contact — padding réduit (funfactArea retiré) ---- */
.appoinmentSection01 { padding: 100px 0 !important; }

/* ---- Kreditrechner — padding-bottom normal (plus de funfactArea) ---- */
.cf-rechner-section { padding-bottom: 100px !important; }

/* ---- Newsletter form inline ---- */
.SubsrcribeForm form {
    display: flex !important;
    gap: 12px;
    align-items: center;
}
.SubsrcribeForm form input[type="email"] {
    flex: 1 !important;
    margin-bottom: 0 !important;
}
.yikes-easy-mc-submit-button {
    background: var(--theme-color) !important;
    color: #fff !important;
    border: 2px solid var(--theme-color) !important;
    padding: 0 28px !important;
    height: 56px !important;
    line-height: 52px !important;
    border-radius: 4px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    font-family: 'Poppins', sans-serif !important;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}
.yikes-easy-mc-submit-button:hover {
    background: #c9161e !important;
    border-color: #c9161e !important;
}

/* ---- Scroll anchors ---- */
html { scroll-behavior: smooth; }
#leistungen, #ueber-uns, #prozess, #testimonials,
#kontakt, #kreditrechner, #anfrage { scroll-margin-top: 80px; }

/* ============================================
   Header nav — compact pour 7 items
   ============================================ */
.mainMenu { padding-left: 16px !important; }
.mainMenu ul li { margin-right: 18px !important; }
.mainMenu ul li a { font-size: 15px !important; }
.accessNav .qu_btn {
    margin-left: 16px !important;
    padding: 0 20px !important;
    font-size: 14px !important;
    height: 48px !important;
    line-height: 48px !important;
    white-space: nowrap;
}

/* ============================================
   Kreditrechner (simulateur de crédit)
   ============================================ */
.cf-rechner-section {
    padding: 100px 0 220px;
    background: #f7f8fc;
}

.cf-rechner-row { margin-top: 52px; align-items: flex-start; }

.cf-rechner-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px 36px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    border: 1px solid #eee;
}

.cf-form-group { margin-bottom: 32px; }
.cf-form-group:last-child { margin-bottom: 0; }

.cf-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.cf-label-row label {
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin: 0;
}
.cf-value-badge {
    background: var(--theme-color);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    padding: 4px 14px;
    border-radius: 20px;
    min-width: 90px;
    text-align: center;
}

/* Range slider */
.cf-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: #e0e0e0;
    outline: none;
    cursor: pointer;
}
.cf-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--theme-color);
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(237,27,36,0.35);
    cursor: pointer;
    transition: transform 0.15s;
}
.cf-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
.cf-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--theme-color);
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(237,27,36,0.35);
    cursor: pointer;
}
.cf-slider-minmax {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: #aaa;
    font-family: 'Roboto', sans-serif;
}

/* Carte résultats */
.cf-rechner-result {
    background: #fff;
    border-radius: 12px;
    padding: 40px 32px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.cf-result-label {
    font-size: 12px;
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #74777c;
    margin-bottom: 8px;
}
.cf-result-main {
    font-size: 52px;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    color: var(--theme-color);
    line-height: 1;
    margin-bottom: 28px;
}
.cf-result-details {
    width: 100%;
    margin-bottom: 8px;
}
.cf-result-item {
    display: flex;
    justify-content: space-between;
    padding: 11px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    color: #74777c;
}
.cf-result-item:last-child { border-bottom: none; }
.cf-result-item strong { color: #1a1a1a; font-weight: 600; }
.cf-result-disclaimer {
    font-size: 11px;
    color: #bbb;
    line-height: 1.5;
    margin-top: 12px;
    margin-bottom: 24px;
}
.cf-rechner-cta { width: 100%; text-align: center; }

/* ============================================
   Language switcher (DE / IT)
   ============================================ */
.cf-lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 18px;
    vertical-align: middle;
}
.cf-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 4px;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.75);
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.6px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}
.cf-lang-btn img {
    display: block;
    width: 20px;
    height: 14px;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.12);
}
.cf-lang-btn:hover {
    background: rgba(255,255,255,0.14);
    color: #fff;
    border-color: rgba(255,255,255,0.4);
}
.cf-lang-btn.active {
    background: #c8a84b;
    border-color: #c8a84b;
    color: #1a2b4a;
}
.cf-lang-btn.active img { box-shadow: 0 0 0 1px rgba(0,0,0,0.2); }

/* Mobile sidebar variant */
.cf-lang-switch-mobile {
    display: flex;
    margin: 0 0 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}
.cf-lang-switch-mobile .cf-lang-btn { padding: 7px 12px; font-size: 13px; }

/* ============================================
   Floating CTA → contact form
   ============================================ */
.cf-float-cta {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 24px;
    border-radius: 40px;
    background: #c8a84b;
    color: #1a2b4a !important;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 0 10px 26px rgba(26,43,74,0.32);
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}
.cf-float-cta i { font-size: 18px; }
.cf-float-cta:hover {
    background: #d9bb63;
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(26,43,74,0.42);
    color: #1a2b4a !important;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 991px) {
    .cf-hero-title { font-size: 44px; }
    .cf-hero-content { padding: 80px 0 60px; }
    .cf-hero-img-abs { display: none !important; }
    .cf-rechner-result { margin-top: 28px; }
}
@media (max-width: 575px) {
    .cf-hero-title { font-size: 34px; }
    .cf-hero-btns { flex-direction: column; }
    .cf-stat h3 { font-size: 30px; }
    .cf-rechner-card,
    .cf-rechner-result { padding: 28px 20px; }
    .cf-result-main { font-size: 40px; }
}
@media (max-width: 767px) {
    .cf-lang-switch { margin-right: 10px; }
    .cf-lang-btn span { display: none; }
    .cf-lang-switch-mobile .cf-lang-btn span { display: inline; }
    .cf-float-cta {
        right: 16px;
        bottom: 16px;
        padding: 13px 20px;
        font-size: 14px;
    }
}

/* Text inside .subTitle must not inherit the decorative bar style */
.subTitle .cf-sub-text {
    display: inline;
    width: auto;
    height: auto;
    background: none;
    margin: 0;
    top: 0;
}

/* FAQ question text must not inherit the +/- badge style */
.quAccordion .card .card-header h2 button span.cf-faq-q {
    position: static;
    display: inline;
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
    margin: 0;
    transform: none;
}
.quAccordion .card .card-header h2 button span.cf-faq-q:before,
.quAccordion .card .card-header h2 button span.cf-faq-q:after { display: none; }

/* Contact form footnote readability */
.appointment_form .cf-form-note { color: #7c8593; }

/* Language switcher on legal pages (light header) */
.cf-lang-switch-legal { margin-right: 14px; }
.cf-lang-switch-legal .cf-lang-btn {
    border-color: rgba(26,43,74,0.18);
    background: rgba(26,43,74,0.04);
    color: #5a6472;
}
.cf-lang-switch-legal .cf-lang-btn:hover {
    background: rgba(26,43,74,0.09);
    border-color: rgba(26,43,74,0.3);
    color: #1a2b4a;
}
.cf-lang-switch-legal .cf-lang-btn.active {
    background: #c8a84b;
    border-color: #c8a84b;
    color: #1a2b4a;
}
