/*
 * PFAFI TERMIN STYLESHEET (V27 - Final Color Match)
 * Pfad: /beratung/style.css
 */

/* GLOBAL RESET */
* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --pf-green: #42A546;
    --pf-green-dark: #2e7d32;
    --pf-gold: #C5B358;
    --pf-bg: #f8fafc;
    --pf-text: #1e293b;
    --pf-border: #cbd5e1;
    --pf-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* SCROLLBAR HIDING */
html,
body,
.left-pane,
.right-pane,
.split-container {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* LAYOUT */
html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #fff;
    color: var(--pf-text);
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.eyebrow,
.option-text,
.cta-button,
.question-label,
.quote,
.modal-title,
.success-title {
    font-family: 'Lato', sans-serif;
}

/* SPLIT CONTAINER */
.split-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    height: 100dvh;
    overflow: hidden;
}

.left-pane {
    padding: 20px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
}

.right-pane {
    background-color: #f0fdf4;
    border-left: 1px solid var(--pf-border);
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
}

.logo {
    position: absolute;
    top: 40px;
    right: 60px;
    width: 180px;
    height: auto;
    z-index: 10;
    object-fit: contain;
}

/* FORM WRAPPER */
.form-wrapper {
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
    position: relative;
    padding-top: 20px;
}

.back-btn {
    position: absolute;
    top: -5px;
    left: 0;
    font-size: 15px;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: 0.2s;
    opacity: 0;
    pointer-events: none;
    font-weight: 500;
    padding: 10px 10px 10px 0;
    z-index: 20;
}

.back-btn.visible {
    opacity: 1;
    pointer-events: all;
}

.back-btn:hover {
    color: var(--pf-text);
}

.progress-container {
    width: 100%;
    height: 6px;
    background: #f1f5f9;
    border-radius: 3px;
    margin-bottom: 25px;
    margin-top: 25px;
}

.progress-bar {
    height: 100%;
    background: var(--pf-gold);
    width: 25%;
    transition: width 0.5s ease;
    border-radius: 3px;
}

.slides-wrapper {
    position: relative;
    min-height: 420px;
    width: 100%;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
    opacity: 0;
    transform: translateX(30px);
    pointer-events: none;
    padding: 2px;
}

.slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
}

.slide.prev {
    transform: translateX(-30px);
    opacity: 0;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 13px;
    font-weight: 700;
    color: var(--pf-green);
    margin-bottom: 10px;
    display: block;
}

h1 {
    margin: 0;
    font-size: 34px;
    line-height: 1.15;
    font-weight: 900;
    color: #111;
    margin-bottom: 15px;
}

.subline {
    font-size: 18px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 30px;
    font-weight: 400;
}

/* CARDS & SLIDER */
.option-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    touch-action: manipulation;
}

.option-card:hover,
.option-card:active {
    border-color: var(--pf-green);
    background: #f8fff9;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(66, 165, 70, 0.08);
}

/* NEU: Selected State für Karten (wie Hover) */
.option-card.selected {
    border-color: var(--pf-green);
    background: #f8fff9;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(66, 165, 70, 0.08);
}

.option-icon {
    font-size: 26px;
}

.option-text {
    font-weight: 700;
    font-size: 18px;
    color: #1e293b;
    margin-bottom: 2px;
}

.option-sub {
    font-size: 14px;
    color: #64748b;
    display: block;
}

.question-label {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    display: block;
    color: #111;
}

/* --- CHIP & SLIDER (V27 UPDATED) --- */
.range-wrapper {
    position: relative;
    padding: 20px 0 30px 0;
    margin-bottom: 20px;
    width: 100%;
}

/* CHIP DESIGN - Updated */
.range-display-text {
    display: table;
    margin: 0 auto 30px auto;
    
    /* Hintergrund: Exakt wie die rechte Spalte */
    background-color: #f0fdf4; 
    
    /* Schrift: Dunkles Brand-Grün für Kontrast */
    color: var(--pf-green-dark); 
    
    font-family: 'Lato', sans-serif;
    font-weight: 900;
    
    /* Schriftgröße auf 20px reduziert */
    font-size: 20px; 
    
    padding: 12px 28px;
    border-radius: 50px;
    
    /* Subtiler Schatten */
    box-shadow: 0 4px 15px rgba(66, 165, 70, 0.15); 
    transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s;
}

.slider-container {
    position: relative;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

input[type=range] {
    -webkit-appearance: none;
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent;
    cursor: pointer;
    z-index: 10;
    margin: 0;
    opacity: 0;
}

.track-bg {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 99px;
    transform: translateY(-50%);
    z-index: 1;
}

.track-fill {
    position: absolute;
    top: 50%;
    left: 0;
    width: 0%;
    height: 6px;
    background: var(--pf-gold);
    border-radius: 99px;
    transform: translateY(-50%);
    z-index: 2;
    transition: width 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-dots {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    z-index: 3;
    pointer-events: none;
    padding: 0 2px;
}

.dot {
    width: 16px;
    height: 16px;
    background: #fff;
    border: 3px solid #cbd5e1;
    border-radius: 50%;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.dot.active {
    background: #fff;
    border-color: var(--pf-gold);
    transform: scale(1.3);
    box-shadow: 0 0 0 4px rgba(197, 179, 88, 0.2);
}

.dot.current {
    background: var(--pf-gold);
    border-color: var(--pf-gold);
    transform: scale(1.6);
}

.btn-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn-option {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 18px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    font-size: 15px;
    color: #475569;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    /* Flexbox für Icons */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-option-icon {
    font-size: 32px;
    line-height: 1;
    margin-bottom: 2px;
}

.btn-option:hover,
.btn-option:active {
    border-color: var(--pf-green);
    color: var(--pf-green);
    background: #f8fff9;
}

/* INPUTS */
.form-grid {
    display: grid;
    gap: 18px;
}

.input-group {
    position: relative;
}

.input-field {
    width: 100%;
    padding: 18px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 16px;
    outline: none;
    transition: 0.2s;
    background: #fff;
    font-family: 'Roboto', sans-serif;
    color: #1e293b;
    -webkit-appearance: none;
    appearance: none;
}

.input-field:focus {
    border-color: var(--pf-green);
    box-shadow: 0 0 0 4px rgba(66, 165, 70, 0.1);
}

.input-label {
    position: absolute;
    left: 16px;
    top: 18px;
    color: #94a3b8;
    pointer-events: none;
    transition: 0.2s;
    font-size: 16px;
}

.input-field:focus~.input-label,
.input-field:not(:placeholder-shown)~.input-label,
.input-field.has-value~.input-label {
    top: -9px;
    left: 12px;
    background: #fff;
    padding: 0 5px;
    font-size: 12px;
    color: var(--pf-green);
    font-weight: 700;
}

select.input-field {
    background-image: none;
}

.cta-button {
    width: 100%;
    background: var(--pf-green);
    color: white;
    border: none;
    padding: 22px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
    transition: 0.2s;
    margin-top: 15px;
    box-shadow: 0 10px 20px -5px rgba(66, 165, 70, 0.4);
    -webkit-appearance: none;
}

.cta-button:hover {
    background: #368a3b;
    transform: translateY(-2px);
}

/* FOOTER */
.disclaimer {
    font-size: 12px;
    text-align: center;
    color: #94a3b8;
    margin-top: 15px;
}

.trust-link {
    cursor: pointer;
    text-decoration: underline;
    color: #94a3b8;
    transition: color 0.2s;
}

.trust-link:hover {
    color: var(--pf-green);
}

/* --- SUCCESS MODAL --- */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    padding: 20px;
}

.success-modal.open {
    opacity: 1;
    pointer-events: all;
}

.success-box {
    background: #fff;
    width: 100%;
    max-width: 800px;
    border-radius: 24px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 2fr 3fr;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-modal.open .success-box {
    transform: scale(1);
}

/* Links: Success Grüne Spalte */
.s-left {
    background: var(--pf-green);
    color: #fff;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.s-icon-big {
    font-size: 60px;
    margin-bottom: 20px;
    display: block;
    animation: pop 0.6s;
}

.s-headline {
    font-size: 32px;
    font-weight: 900;
    line-height: 1.1;
    margin: 0 0 15px 0;
    color: #fff;
    font-family: 'Lato', sans-serif;
}

.s-sub {
    font-size: 18px;
    opacity: 0.9;
    line-height: 1.5;
}

/* Rechts: Action Steps */
.s-right {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.s-steps-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
    font-weight: 700;
    margin-bottom: 20px;
}

.s-step-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.s-step-icon {
    width: 36px;
    height: 36px;
    background: #f0fdf4;
    color: var(--pf-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    font-size: 16px;
}

.s-step-text strong {
    display: block;
    color: #1e293b;
    font-size: 18px;
    margin-bottom: 4px;
}

.s-step-text p {
    margin: 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.4;
}

.s-phone-box {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-top: 10px;
}

.s-phone-nr {
    font-family: 'Lato', sans-serif;
    font-size: 26px;
    font-weight: 900;
    color: #1e293b;
    display: block;
    margin: 5px 0;
}

.s-phone-label {
    font-size: 13px;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}


/* RIGHT PANE */
.trust-content {
    max-width: 500px;
    padding-top: 80px;
}

.expert-box {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.portrait {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 20px;
    border: 3px solid #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.expert-info h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 900;
    color: #0f172a;
}

.expert-info span {
    font-size: 14px;
    color: var(--pf-green);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quote {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.6;
    color: #334155;
    margin-bottom: 30px;
    font-style: italic;
}

.usp-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.usp-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 16px;
    color: #334155;
}

.check-icon {
    width: 22px;
    height: 22px;
    background: var(--pf-green);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.testimonial-slider {
    position: relative;
    height: 200px;
    margin-top: 20px;
}

.t-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    pointer-events: none;
}

.t-slide.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.t-bubble {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
}

.t-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 30px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #fff;
}

.t-stars {
    color: #fbbf24;
    margin-bottom: 10px;
    font-size: 16px;
}

.t-text {
    font-size: 15px;
    line-height: 1.6;
    color: #334155;
    margin-bottom: 0;
    font-style: italic;
}

.t-author {
    margin-top: 20px;
    margin-left: 30px;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.honig {
    display: none;
}

/* TRUST MODAL & BADGE */
.trust-badge {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid #f1f5f9;
}

.trust-badge:hover {
    transform: scale(1.1);
    border-color: var(--pf-green);
}

.trust-icon {
    font-size: 24px;
}

.trust-badge::before {
    content: "Datenschutz & Ablauf";
    position: absolute;
    right: 70px;
    background: #1e293b;
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: 0.2s;
    transform: translateX(10px);
}

.trust-badge:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(5px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.modal-box {
    background: #fff;
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    padding: 40px;
    position: relative;
    transform: translateY(30px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-overlay.open .modal-box {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    color: #64748b;
    transition: 0.2s;
}

.modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.modal-title {
    font-size: 24px;
    font-weight: 900;
    margin-top: 0;
    margin-bottom: 20px;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.trust-point {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.tp-icon {
    width: 40px;
    height: 40px;
    background: #f0fdf4;
    color: var(--pf-green);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.tp-content h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
}

.tp-content p {
    margin: 0;
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}

.modal-btn {
    width: 100%;
    background: var(--pf-green);
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
}

.modal-btn:hover {
    background: var(--pf-green-dark);
}

/* MODAL LINKS */
.modal-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
}

.modal-link-item {
    font-size: 13px;
    color: #94a3b8;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
    padding-bottom: 1px;
    letter-spacing: 0.3px;
}

.modal-link-item:hover {
    color: var(--pf-green);
    border-bottom-color: var(--pf-green);
}

/* Dot Separator */
.modal-links a:first-child::after {
    content: "•";
    color: #cbd5e1;
    margin-left: 10px;
    display: inline-block;
}

/* MOBILE RESPONSIVE FIX (V16 - No Overlap) */
@media(max-width: 900px) {

    /* ZWINGENDES RESET für das Layout */
    html, body {
        overflow-x: hidden !important; 
        overflow-y: auto !important; /* Wichtig: Scrollen erlauben */
        height: auto !important;
        width: 100%;
        position: static; /* Positionierung resetten */
    }

    /* Grid auflösen */
    .split-container { 
        display: flex; /* Flexbox statt Grid ist auf Handy oft stabiler */
        flex-direction: column; /* Ganz wichtig: Untereinander */
        height: auto !important; 
        width: 100%;
        overflow: visible;
        position: static;
    }

    /* Container Resets */
    .left-pane, .right-pane {
        width: 100%;
        max-width: 100%;
        height: auto !important; /* Wichtig: Inhalt bestimmt Höhe */
        overflow: visible !important;
        position: relative !important; /* Damit z-index funktioniert */
        display: block; /* Flexbox Logik aus Desktop entfernen */
    }

    /* Abstände anpassen */
    .left-pane { 
        padding: 80px 20px 40px 20px; /* Oben Platz für Logo lassen */
        background: #fff;
        z-index: 2; /* Formular liegt oben */
    }
    
    .right-pane { 
        padding: 40px 20px 80px 20px; 
        border-left: none; 
        border-top: 1px solid var(--pf-border); 
        background-color: #f8fafc;
        z-index: 1;
    }

    /* Logo Mobile Position */
    .logo { 
        top: 20px; 
        right: 20px; 
        width: 120px; 
        position: absolute;
    }

    /* Formular Wrapper */
    .form-wrapper { 
        padding-top: 10px; 
        width: 100%;
    }
    
    /* Back Button */
    .back-btn { top: -15px; }
    
    /* Typografie Anpassungen */
    h1 { font-size: 26px; }
    .subline { font-size: 16px; margin-bottom: 25px; }
    
    /* Buttons untereinander */
    .btn-grid { grid-template-columns: 1fr; } 
    
    /* Trust Slider Höhe */
    .testimonial-slider { height: 280px; }
    
    /* Badge & Modal */
    .trust-badge { bottom: 20px; right: 20px; width: 50px; height: 50px; }
    .trust-badge::before { display: none; }
    .modal-box { padding: 30px 20px; width: 90%; max-height: 90vh; overflow-y: auto; }
    
    /* Success Modal Mobile */
    .success-box { grid-template-columns: 1fr; max-height: 85vh; overflow-y: auto; }
    .s-left { padding: 30px 20px; }
    .s-right { padding: 30px 20px; }
    .s-headline { font-size: 24px; }
    .s-phone-nr { font-size: 22px; }
}