/*
================================================================================
                        ANGEBOTSANFRAGE STYLES
================================================================================

Farbschema:
- Primary: #0d6efd (Professionelles Blau für primäre Aktionen und Hervorhebungen)
- Dark: #0C0C0C (Fast Schwarz für Text, Überschriften und dunkle Oberflächen)
- Light Gray: #D6D6D6 (Für Rahmen, gedämpften Text und inaktive Zustände)
- White: #FFFFFF (Hintergründe, Karten, Formularfelder)
- Success: #198754 (Professionelles Grün für Erfolgszustände)

================================================================================
                        HEADER STYLES
================================================================================
*/

#stickyNav {
    display: flex;
    align-items: center;
    z-index: 2000;
}

#stickyNav .container-fluid {
    display: flex;
    align-items: center;
    z-index: 2001;
}

#stickyNav .col-2,
#stickyNav .col-4,
#stickyNav .col-5 {
    display: flex;
    align-items: center;
}

#stickyNav .navbar-nav {
    align-items: center;
}

#stickyNav .navbar-toggler {
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-toggler-desktop-hide {
    display: none !important;
}

#logo-lg-header {
    max-height: 6vh !important;
    height: auto;
    width: auto;
}

/*
================================================================================
                        GRUNDLEGENDES LAYOUT
================================================================================
*/

body {
    background: linear-gradient(135deg, #D6D6D6 0%, #FFFFFF 100%);
    min-height: 100vh;
    padding: 0;
}

/*
================================================================================
                        FORM CONTAINER
================================================================================
Hauptcontainer für das gesamte Angebotsformular mit modernem Design
*/

.form-container {
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #D6D6D6;
}

.form-container h1 {
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

/*
================================================================================
                        FORTSCHRITTSBALKEN
================================================================================
Visueller Indikator für den Formularfortschritt mit animierten Übergängen
*/

.progress-container {
    position: relative;
    margin-bottom: 2rem;
}

.progress {
    width: 100%;
    height: 8px;
    border-radius: 10px;
    background-color: #D6D6D6;
    appearance: none;
    border: none;
}

.progress::-webkit-progress-bar {
    background-color: #D6D6D6;
    border-radius: 10px;
}

.progress::-webkit-progress-value {
    background: var(--blue);
    border-radius: 10px;
    transition: width 0.6s ease;
}

.progress::-moz-progress-bar {
    background: var(--blue);
    border-radius: 10px;
}

.progress-bar-visual {
    position: absolute;
    top: 0;
    left: 0;
    height: 8px;
    background: var(--blue);
    border-radius: 10px;
    transition: width 0.6s ease;
    pointer-events: none;
}

/*
================================================================================
                        SCHRITT-LABELS FÜR FORTSCHRITT
================================================================================
*/

.step-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.8rem;
}

.step {
    color: #D6D6D6;
    font-weight: 500;
    transition: color 0.3s ease;
}

.step.active {
    color: #0d6efd;
    font-weight: 700;
}

.step.completed {
    color: #0d6efd;
    font-weight: 700;
}

/*
================================================================================
                        FORMULAR-SCHRITTE
================================================================================
Steuerung der Sichtbarkeit und Animation der einzelnen Formularschritte
*/

.form-step {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/*
================================================================================
                        SCHRITT-HEADER
================================================================================
Header-Bereich für jeden Formularschritt mit Titel und Beschreibung
*/

.step-header {
    margin-bottom: 2rem;
    text-align: center;
}

.step-header h3 {
    font-family: 'Poppins', sans-serif;
    color: #0C0C0C;
    margin-bottom: 0.5rem;
}

.step-header p {
    font-size: 1.1rem;
    margin-bottom: 0;
    color: #D6D6D6;
}

/*
================================================================================
                        SERVICE-KARTEN
================================================================================
Auswählbare Karten für die verschiedenen Dienstleistungen mit Hover-Effekten
*/

.service-card {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.service-card:hover {
    border-color: #0d6efd;
    box-shadow: 0 6px 12px rgba(13, 110, 253, 0.15);
    transform: translateY(-2px);
}

.service-card.selected {
    border-color: #0d6efd;
    background: linear-gradient(135deg, #0d6efd 0%, #0bb2fb 100%);
    color: white;
    box-shadow: 0 8px 16px rgba(13, 110, 253, 0.25);
}

/*
================================================================================
                        SERVICE-KARTEN LOGOS
================================================================================
Logo-Bereich innerhalb der Service-Karten mit Zustandsabhängiger Anzeige
*/

.service-card .service-logo {
    margin-bottom: 1rem;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.service-card .service-logo img {
    width: 80%;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.service-card .logo-default {
    display: block;
}

.service-card .logo-selected {
    display: none;
}

.service-card.selected .logo-default {
    display: none;
}

.service-card.selected .logo-selected {
    display: block;
}

/*
================================================================================
                        SERVICE-KARTEN TEXT
================================================================================
*/

.service-card h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.service-card p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0;
}

.service-card.selected p {
    opacity: 1;
}

/*
================================================================================
                        FORMULAR-STEUERELEMENTE
================================================================================
Grundlegende Styling für alle Formulareingaben und Labels
*/

.form-label {
    margin-bottom: 0.5rem;
}

fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

fieldset legend {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    padding: 0;
    width: auto;
}

.form-control, .form-select {
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control::placeholder {
    color: #D6D6D6;
}

.form-control:focus, .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/*
================================================================================
                        CHECKBOX-EINGABEN
================================================================================
Spezielle Styling für Checkboxen mit verbesserter Sichtbarkeit
*/

.form-check-input {
    margin-top: 0.25rem;
    transform: scale(1.2);
    border-radius: 4px;
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-check-label {
    margin-left: 0.5rem;
    cursor: pointer;
}

.form-check-label i {
    margin-right: 0.5rem;
}

/*
================================================================================
                        SERVICE-OPTIONEN
================================================================================
Dynamisch ein-/ausblendbare Optionen für ausgewählte Services
*/

.service-options {
    display: none;
}

.service-options.active {
    display: block !important;
    animation: fadeIn 0.5s ease-in-out;
}

.service-options h5 {
    font-family: 'Poppins', sans-serif;
    border-bottom: 2px solid #0d6efd;
    padding-bottom: 0.5rem;
}

/*
================================================================================
                        OBJEKT-KARTEN
================================================================================
Karten für einzelne Immobilienobjekte mit Entfernen-Funktionalität
*/

.object-card {
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #D6D6D6;
    position: relative;
}

.object-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.object-card-title {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    font-weight: 600;
}

/*
================================================================================
                        OBJEKT ENTFERNEN BUTTON
================================================================================
*/

.remove-object-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #dc3545;
    background: transparent;
    color: #dc3545;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.remove-object-btn:hover {
    background: #dc3545;
    color: white;
    transform: scale(1.1);
}

/*
================================================================================
                        FORMULAR-NAVIGATION
================================================================================
Navigation zwischen den einzelnen Formularschritten
*/

.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
}

/*
================================================================================
                        BUTTONS
================================================================================
Grundlegendes Styling für alle Buttons im Formular
*/

.btn {
    border-radius: 25px;
    padding: 0.7rem 2rem;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0bb2fb 100%);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.3);
}

.btn-secondary {
    background: #6c757d;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

/*
================================================================================
                        ÜBERSICHT-STYLING
================================================================================
Styling für die finale Übersicht aller eingegebenen Daten
*/

.overview-card {
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #D6D6D6;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.overview-card h5 {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 1.25rem;
}

.overview-card h5 i {
    margin-right: 0.5rem;
}

/*
================================================================================
                        ÜBERSICHT-EINTRÄGE
================================================================================
Einzelne Datenzeilen in der Übersicht
*/

.overview-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.overview-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.overview-label {
    min-width: 140px;
    flex-shrink: 0;
}

.overview-value {
    text-align: right;
    flex-grow: 1;
    margin-left: 1rem;
}

/*
================================================================================
                        ÜBERSICHT-SERVICES UND BADGES
================================================================================
*/

.overview-services {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.overview-badge {
    background: linear-gradient(135deg, #0d6efd 0%, #0bb2fb 100%);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

#overview-content .card-header {
    background: var(--blue);
    color: #FFFFFF;
    border-radius: 15px 15px 0 0 !important;
    font-weight: 600;
}

#overview-content .list-group-item {
    border: none;
    padding: 0.75rem 1.25rem;
}

#overview-content .badge {
    background: var(--blue);
    color: #FFFFFF;
}

/*
================================================================================
                        FORMULAR-VALIDIERUNG
================================================================================
Styling für Validierungszustände der Formulareingaben
*/

.form-control.is-invalid,
.form-select.is-invalid {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
    background-image: none !important;
}

.form-select.is-invalid {
    background-image: var(--bs-form-select-bg-image), none !important;
}

.form-control.is-valid,
.form-select.is-valid {
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
    background-image: none !important;
}

.form-select.is-valid {
    background-image: var(--bs-form-select-bg-image), none !important;
}

.invalid-feedback {
    margin-top: 0.25rem;
}

/*
================================================================================
                        BENACHRICHTIGUNGEN
================================================================================
Styling für verschiedene Arten von Benachrichtigungen und Alerts
*/

.alert {
    border-radius: 10px;
    border: none;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.alert-success {
    border: 2px solid #198754;
}

.alert-danger {
    border: 2px solid #dc3545;
}

.alert-info {
    border: 2px solid #0d6efd;
}

/*
================================================================================
                        ERFOLGSMELDUNG
================================================================================
Styling für die finale Erfolgsmeldung nach dem Absenden des Formulars
*/

.success-message {
    text-align: center;
    padding: 3rem 2rem;
    border-radius: 15px;
    border: 2px solid #198754;
}

.success-message i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.success-message h3 {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 1rem;
}

/*
================================================================================
                        LADEANIMATION
================================================================================
Animierter Ladeindikator für asynchrone Aktionen
*/

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #FFFFFF;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/*
================================================================================
                        RESPONSIVE DESIGN
================================================================================
Anpassungen für verschiedene Bildschirmgrößen und Geräte
*/

/*
================================================================================
                        DESKTOP (AB 1025PX)
================================================================================
*/
@media (min-width: 1025px) {
    #stickyNav .navbar-toggler {
        display: none !important;
    }
    
    .form-container {
        padding: 2.5rem;
    }
    
    .service-card .card {
        height: 100%;
    }
}

/*
================================================================================
                        TABLET/MOBILE ALLGEMEIN (MAX 1024PX)
================================================================================
*/
@media (max-width: 1024px) {
    .form-container {
        margin: 1.5rem;
    }
    
    .service-card .card {
        margin-bottom: 1rem;
    }
}

/*
================================================================================
                        TABLET SPEZIFISCH (769PX - 1024PX)
================================================================================
*/
@media (min-width: 769px) and (max-width: 1024px) {
    .form-container h1 {
        font-size: 2.2rem;
    }
    
    .step-labels {
        font-size: 0.75rem;
    }
}

/*
================================================================================
                        MOBILE SPEZIFISCH (MAX 768PX)
================================================================================
*/
@media (max-width: 768px) {
    .form-container {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .form-container h1 {
        font-size: 2rem;
    }
    
    .step-labels {
        font-size: 0.7rem;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /*
    ============================================================================
                        MOBILE PORTRAIT (MAX 576PX)
    ============================================================================
    */
    @media (max-width: 576px) {
        .form-container {
            padding: 1rem;
        }
        
        .step-labels .step {
            font-size: 0.6rem;
        }
        
        .objekt-form {
            padding: 1rem;
        }
    }
}
