/* Allgemeine Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
}

.main-container {
    display: flex;
    justify-content: space-between;
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    gap: 20px;
}

.konfigurator-container {
    display: flex;
    flex-wrap: nowrap;
    overflow: visible; /* Wichtig für Sticky */
    gap: 20px; /* Fügt einen Abstand von 20px zwischen den Containern hinzu */

}


/* Linke Seite: Eingabebereich */
.input-section {
    flex: 1 1 60%;
}

.input-container {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

.input-container h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #555;
}

.input-container label {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
    color: #666;
}

.input-container input, 
.input-container select, 
.input-container textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    box-sizing: border-box;
}


.konfigurator-row {
    display: flex;
    align-items: center; /* Vertikale Ausrichtung der Labels und Felder */
    gap: 15px; /* Abstand zwischen den Spalten */
    flex-wrap: nowrap; /* Keine Zeilenumbrüche */
}

.konfigurator-column {
    display: flex;
    flex-direction: column; /* Vertikale Anordnung von Label und Input */
    flex: 1; /* Teilt den Platz gleichmäßig, falls keine spezifische Breite angegeben */
    min-width: 0; /* Verhindert Mindestbreitenprobleme */
}


.fensterreinigung-footer-content {
    display: none; /* Standardmäßig versteckt */
    padding: 15px;
    border-top: 1px solid #ccc;
    background-color: #fff;
    overflow-y: auto;
    max-height: 50vh;
}


.fensterreinigung-footer-content.show {
    display: block; /* Anzeigen, wenn geöffnet */
}


/* Spaltenbreiten */
.kon-column-3 {
    flex: 0 0 25%; /* 3 von 12 Spalten */
    max-width: 25%;
}

.kon-column-9 {
    flex: 0 0 75%; /* 9 von 12 Spalten */
    max-width: 75%;
}

/* Responsive Ansicht: PLZ und Ort untereinander */
@media (max-width: 768px) {
    .konfigurator-row {
        flex-wrap: wrap; /* Zeilenumbruch für mobile Geräte */
    }

    .kon-column-3,
    .kon-column-9 {
        flex: 0 0 100%; /* Volle Breite */
        max-width: 100%; /* Volle Breite */
    }
}

/* Rechte Seite: Zusammenfassung */
.summary-section {
    flex: 1 1 40%;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 20px;
    height: fit-content;
    max-height: 90vh;
    overflow-y: auto;
}

/* Sticky Footer */
.fensterreinigung-sticky-footer {
    display: none; /* Standardmäßig versteckt */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1); /* Schatten */
    border-top: 1px solid #ccc;
    z-index: 1000;
    padding: 10px 20px;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

/* Sticky-Footer Header */
.fensterreinigung-footer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    cursor: pointer;
}

.fensterreinigung-footer-header .footer-left {
    display: flex;
    flex-direction: column;
}

.fensterreinigung-footer-header .footer-left .total-label {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.fensterreinigung-footer-header .footer-left .total-subtext {
    font-size: 12px;
    color: #555;
}

.fensterreinigung-footer-header .footer-center .swipe-handle {
    width: 40px;
    height: 5px;
    background-color: #ccc;
    border-radius: 3px;
    margin: auto;
}

.fensterreinigung-footer-header .footer-right {
    font-size: 16px;
    font-weight: bold;
    color: #e74c3c;
}

/* Sticky-Footer Content */
.fensterreinigung-footer-content {
    display: none; /* Standardmäßig versteckt */
    padding: 15px;
    background-color: #fff;
    border-top: 1px solid #ccc;
    overflow-y: auto;
    max-height: 50vh; /* Maximale Höhe */
}

.fensterreinigung-footer-content.show {
    display: block; /* Sichtbar, wenn geöffnet */
}

/* Inhalt im Sticky-Footer */
.fensterreinigung-footer-content p {
    font-size: 14px;
    margin: 5px 0;
    color: #555;
}

.fensterreinigung-footer-content .total-amount {
    font-size: 16px;
    font-weight: bold;
    color: #e74c3c;
    text-align: right;
}

/* Mobile Ansicht */
@media (max-width: 768px) {
    .summary-section {
        display: none !important; /* Sicherstellen, dass sie ausgeblendet bleibt */
    }

    .fensterreinigung-sticky-footer {
        display: block !important; /* Sichtbar auf Mobilgeräten */
        flex-direction: column;
        align-items: center;
    }
}


.agb-button {
    width: 100%;
    padding: 12px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease;
}

.agb-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.agb-button:hover:not(:disabled) {
    background-color: #388E3C; /* Dunklerer Grünton beim Hover */
}

/* POPUP */
/* Modal-Overlay */
.konfigurator-modal {
    display: none; /* Versteckt das Modal standardmäßig */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4); /* Halbtransparenter Hintergrund */
}


/* Überschrift im Modal */
.konfigurator-modal-content h5 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

/* Text im Modal */
.konfigurator-modal-content p {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #666;
}

/* Button im Modal */
.konfigurator-modal-content button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

.konfigurator-modal-content button:hover {
    background-color: #45a049;
}

/* Erfolgspopup */
#konfigurator-success-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.konfigurator-modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.konfigurator-modal-content button:hover {
    background: #0056b3;
}

/* Allgemeine Anpassung für Checkboxen */
.checkbox-container {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.checkbox-container input[type="checkbox"] {
    margin-right: 10px; /* Abstand zwischen Checkbox und Text */
    width: 20px; /* Standardgröße der Checkbox */
    height: 20px;
    cursor: pointer;
}

.checkbox-container label {
    margin: 0; /* Entferne zusätzlichen Abstand */
    cursor: pointer; /* Macht den gesamten Bereich klickbar */
}
