/* Riegel Marketing Funnel - Corporate Design Styling */

.riegel-funnel-wrapper {
    max-width: 1200px;
    margin: 2em auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 32px #0057ff22;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.riegel-funnel-header {
    display: flex;
    align-items: flex-start;
    padding: 0 3em 1.5em 3em;
    border-bottom: 1px solid #f0f0f0;
    background: #f5f7fa;
    border-radius: 18px 18px 0 0;
    flex-wrap: wrap;
    min-height: 170px;
}

.riegel-funnel-header-img {
    width: 160px;
    height: 160px;
    border-radius: 16px;
    object-fit: cover;
    margin-right: 2.5em;
    margin-top: 0;
    margin-left: 0;
    box-shadow: 0 2px 12px #0057ff22;
    flex-shrink: 0;
    display: block;
}

.riegel-funnel-header-content {
    flex: 1;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding-top: 1.2em;
}

.riegel-funnel-header-content h2 {
    color: #0057FF;
    font-size: 1.6em;
    font-weight: 800;
    margin: 0 0 0.2em 0;
    letter-spacing: -1px;
    text-align: left;
}

.riegel-funnel-header-content .riegel-funnel-subline {
    color: #222;
    font-size: 1.1em;
    font-weight: 500;
    margin-bottom: 0.5em;
    margin-top: 0.2em;
    text-align: left;
}

.riegel-funnel-headline {
    color: #222;
    font-size: 1.6em;
    font-weight: 700;
    margin-bottom: 0.2em;
    margin-top: 0;
    text-align: left;
}

.riegel-funnel-header-content p {
    color: #444;
    font-size: 1.05em;
    margin: 0;
    text-align: left;
}

.riegel-funnel-main {
    width: 100%;
    padding: 2.5em 3em 3em 3em;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
}

.riegel-funnel-intro {
    margin-bottom: 2em;
    text-align: center;
}

.riegel-funnel-intro h1 {
    color: #222;
    font-size: 2.1em;
    font-weight: 700;
    margin-bottom: 0.3em;
}

.riegel-funnel-intro p {
    color: #444;
    font-size: 1.15em;
    margin: 0;
}

.funnel-progress {
    height: 10px;
    background: #e5e5e5;
    border-radius: 5px;
    margin-bottom: 2em;
    width: 100%;
    overflow: hidden;
}

.funnel-progress-bar {
    height: 100%;
    background: #0057FF;
    border-radius: 5px;
    transition: width 0.3s;
    width: 16.6%;
}

.funnel-step {
    display: none;
    width: 100%;
    text-align: center;
}

.funnel-step.active { 
    display: block; 
}

.funnel-type-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2em;
    margin: 2.5em auto 1em auto;
    flex-wrap: wrap;
    max-width: 90%;
    width: 90%;
}

.funnel-type-grid.bg-immobilientyp {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    margin: 2.5em auto 1em auto;
    max-width: 900px;
    width: 100%;
}

.funnel-type-grid.bg-immobilientyp::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    border-radius: 18px;
    z-index: 0;
}

.funnel-type-grid.bg-immobilientyp > * {
    position: relative;
    z-index: 1;
}

.funnel-type-btn {
    background: #0057FF;
    color: #fff;
    border: none;
    border-radius: 16px;
    padding: 2em 1.5em 1.5em 1.5em;
    font-size: 1.2em;
    font-weight: 600;
    width: 180px;
    box-shadow: 0 2px 12px #0057ff22;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: background 0.2s, transform 0.2s;
    outline: none;
}

.funnel-type-btn:hover {
    background: #003fa3;
    color: #fff;
    transform: translateY(-4px) scale(1.04);
}

.funnel-type-btn:focus {
    outline: 3px solid #0057FF;
    outline-offset: 2px;
    background: #003fa3;
    color: #fff;
}

.funnel-type-btn svg {
    width: 64px;
    height: 64px;
    margin-bottom: 0.7em;
    fill: #fff;
    background: #0057FF;
    border-radius: 12px;
    box-shadow: 0 2px 8px #0057ff33;
    padding: 8px;
}

.funnel-type-btn.bg-immobilientyp {
    background-image: url('bg-immobilientyp.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.funnel-type-btn.bg-immobilientyp::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,20,40,0.55);
    z-index: 0;
}

.funnel-type-btn.bg-immobilientyp > * {
    position: relative;
    z-index: 1;
}

.funnel-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.funnel-form-group {
    margin-bottom: 1.5em;
}

.funnel-form-group label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: 600;
    color: #222;
}

.funnel-form-group input,
.funnel-form-group select,
.funnel-form-group textarea {
    width: 100%;
    padding: 1em;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1em;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.funnel-form-group input:focus,
.funnel-form-group select:focus,
.funnel-form-group textarea:focus {
    outline: none;
    border-color: #0057FF;
}

.funnel-form-row {
    display: flex;
    gap: 1em;
    margin-bottom: 1.5em;
}

.funnel-form-row .funnel-form-group {
    flex: 1;
    margin-bottom: 0;
}

.funnel-submit-btn {
    background: #0057FF;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 1.2em 2em;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
    margin-top: 1em;
}

.funnel-submit-btn:hover {
    background: #003fa3;
}

.funnel-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.funnel-success {
    text-align: center;
    padding: 2em;
    background: #f0f8ff;
    border-radius: 12px;
    border: 2px solid #0057FF;
}

.funnel-success h2 {
    color: #0057FF;
    margin-bottom: 1em;
}

.funnel-error {
    color: #0057FF;
    background: #f0f8ff;
    padding: 1em;
    border-radius: 8px;
    margin-bottom: 1em;
    border: 1px solid #0057FF;
}

/* Responsive Design */
@media (max-width: 900px) {
    .riegel-funnel-wrapper { 
        max-width: 100vw; 
        margin: 1em;
    }
    .riegel-funnel-header, .riegel-funnel-main { 
        padding: 1em; 
    }
    .riegel-funnel-header-img { 
        width: 100%; 
        height: auto; 
        margin-right: 0; 
        margin-bottom: 1em; 
        border-radius: 16px; 
        max-width: 320px; 
        display: block; 
        margin-left: auto; 
        margin-right: auto; 
    }
    .riegel-funnel-header { 
        flex-direction: column; 
        align-items: center; 
        text-align: center; 
        min-height: unset; 
    }
    .riegel-funnel-header-content { 
        min-width: 0; 
        width: 100%; 
        padding-top: 0; 
        display: flex; 
        flex-direction: column; 
        align-items: center; 
        justify-content: center; 
    }
    .riegel-funnel-header-content h2, .riegel-funnel-headline { 
        font-size: 1.2em; 
        text-align: center; 
    }
    .riegel-funnel-header-content .riegel-funnel-subline { 
        font-size: 1em; 
        text-align: center; 
    }
    .riegel-funnel-header-content p { 
        text-align: center; 
    }
    .funnel-type-grid {
        flex-direction: column;
        gap: 1em;
        margin: 2em auto 1em auto;
        max-width: 100%;
        width: 100%;
        align-items: center;
    }
    .funnel-type-btn {
        margin: 0 auto;
    }
    .funnel-form-row { 
        flex-direction: column; 
        gap: 0.5em; 
    }
    .funnel-type-grid.bg-immobilientyp::before {
        background: transparent !important;
    }
}

@media (max-width: 600px) {
    .riegel-funnel-header-img { 
        width: 100%; 
        max-width: 180px; 
        height: auto; 
    }
    .riegel-funnel-main { 
        padding: 0.5em; 
    }
    .funnel-type-grid {
        flex-direction: column;
        gap: 1.2em;
        align-items: center;
    }
    .funnel-type-btn {
        width: 90vw !important;
        max-width: 420px !important;
        min-width: 0;
        margin: 0 auto;
        box-sizing: border-box;
        border-radius: 18px;
        font-size: 1.1em;
        padding: 2em 0 1.5em 0;
    }
    .funnel-type-btn svg {
        width: 56px;
        height: 56px;
    }
    .funnel-form-group input,
    .funnel-form-group select,
    .funnel-form-group textarea {
        padding: 0.8em;
    }
    #open-appointment-calendar {
        font-size: 0.98em !important;
        padding: 0.6em 1em !important;
        max-width: 260px !important;
        margin: 1em auto !important;
        display: block;
    }
}

/* Corporate Design Riegel Immobilien */
.riegel-funnel-header, .riegel-funnel-header-content, .funnel-step, .riegel-funnel-main, .funnel-intro, .funnel-type-grid, .funnel-form, .funnel-form-group, .funnel-row, .funnel-step-illustration {
    background: #f5f7fa !important;
    box-shadow: none !important;
}
.riegel-funnel-header-img, .funnel-step-illustration, .funnel-type-btn svg {
    background: #f5f7fa !important;
    box-shadow: 0 2px 12px #0057ff22 !important;
}
.funnel-type-btn, .calendar-slot-btn, .funnel-next, .funnel-submit-btn {
    background: #0057FF !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 2px 8px #0057ff22 !important;
}
.funnel-type-btn:hover, .calendar-slot-btn:hover, .funnel-next:hover, .funnel-submit-btn:hover {
    background: #003fa3 !important;
}
.funnel-type-btn:focus, .calendar-slot-btn:focus, .funnel-next:focus, .funnel-submit-btn:focus {
    outline: 3px solid #0057FF !important;
    outline-offset: 2px !important;
}
.funnel-progress, .funnel-progress-bar {
    background: #e5e5e5 !important;
    border-radius: 5px !important;
}
.funnel-progress-bar {
    background: #0057FF !important;
}
.funnel-step-illustration svg, .funnel-type-btn svg {
    fill: #0057FF !important;
}
.funnel-step-illustration, .funnel-type-btn svg {
    border-radius: 12px !important;
}
.funnel-row input:focus, .funnel-row textarea:focus, .funnel-row select:focus {
    border-color: #0057FF !important;
    box-shadow: 0 0 0 3px rgba(0, 87, 255, 0.1) !important;
}
.funnel-error {
    background: #f0f8ff !important;
    color: #0057FF !important;
    border: 1px solid #0057FF !important;
}
.funnel-success-message {
    background: #d4edda !important;
    color: #155724 !important;
    border: 1px solid #c3e6cb !important;
}
/* Entferne alle lila Farben, falls noch irgendwo vorhanden */
[class*="purple"], [style*="purple"], [style*="#a259ff"], [style*="#8000ff"], [style*="#6c63ff"], [style*="#b388ff"], [style*="#c77dff"], [style*="#e0b3ff"] {
    background: #f5f7fa !important;
    color: #0057FF !important;
    border-color: #0057FF !important;
} 