body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
}

h1, h2 {
    color: #333;
    margin: 10px 0;
}

label {
    font-size: 14px;
    color: #555;
}

input, select {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}



/* Wrapper für die Hauptstruktur */
.konfigurator-wrapper {
    display: flex;
    justify-content: space-between;
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    gap: 20px;
}

/* Linke Spalte */
.konfigurator-left {
    flex: 1 1 60%;
}

/* Rechte Spalte */
.konfigurator-right {
    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;
}

/* Reinigungsumfang */
.konfigurator-section {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ececec;
    border-radius: 8px;
    background-color: #fdfdfd;
}

.konfigurator-section h2 {
    margin-bottom: 15px;
    color: #444;
    font-size: 18px;
}

/* Sicherstellen, dass alle Eingabeelemente die volle Breite ausfüllen */
.konfigurator-column input,
.konfigurator-column select,
.konfigurator-column textarea {
    display: block; /* Stellt sicher, dass sie Blockelemente sind */
    width: 100%; /* Volle Breite der Spalte */
    padding: 10px; /* Einheitliches Padding */
    margin: 0; /* Entfernt unnötige Außenabstände */
    border: 1px solid #ccc; /* Standardrahmen */
    border-radius: 4px; /* Abgerundete Ecken */
    box-sizing: border-box; /* Berücksichtigt Padding und Border in der Breite */
    font-size: 14px; /* Einheitliche Schriftgröße */
}

.konfigurator-row {
    display: flex;
    gap: 15px; /* Abstand zwischen den Spalten */
    flex-wrap: wrap; /* Aktiviert Zeilenumbruch */
}

.konfigurator-column {
    flex: 1; /* Gleiche Breite */
    min-width: 0; /* Keine Mindestbreite */
}

/* Desktop-Ansicht: PLZ 3/12, Ort 9/12 */
.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%;
}

/* Mobile-Ansicht: PLZ und Ort untereinander */
@media (max-width: 768px) {
    .kon-column-3, .kon-column-9 {
        flex: 0 0 100%; /* Volle Breite */
        max-width: 100%; /* Volle Breite */
    }
}


/* Sicherstellen, dass jede Spalte korrekt skaliert */
.konfigurator-column {
    flex: 1 1 48%; /* Spalten teilen sich den verfügbaren Platz gleichmäßig */
    min-width: 200px; /* Mindestbreite für kleinere Geräte */
    box-sizing: border-box; /* Berücksichtigt Padding und Border */
}

/* Volle Breite auf mobilen Geräten */
@media (max-width: 768px) {
    .konfigurator-column {
        flex: 1 1 100%; /* Spalten nehmen die volle Breite ein */
    }
}


.reinigungsumfang-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    width: calc(20% - 10px); /* 5 Icons pro Reihe */
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reinigungsumfang-item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border: 2px solid transparent;
    border-radius: 8px;
    margin-bottom: 8px;
}

.reinigungsumfang-item input[type="checkbox"] {
    display: none; /* Checkbox verstecken */
}

.reinigungsumfang-item input[type="checkbox"]:checked + label img {
    border-color: #4CAF50;
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.5);
    transform: scale(1.1);
}

.reinigungsumfang-item p {
    font-size: 14px;
    color: #555;
    margin: 0;
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
    .konfigurator-wrapper {
        flex-direction: column;
    }

    .konfigurator-left, .konfigurator-right {
        width: 100%;
    }

    .reinigungsumfang-item {
        width: calc(33.33% - 10px); /* 3 Icons pro Reihe auf Mobile */
    }

    .reinigungsumfang-item img {
        width: 40px;
        height: 40px;
    }
}

/* Sticky-Footer-Menü */
.konfigurator-sticky-footer {
    display: none; /* Standardmäßig versteckt */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #ccc;
    z-index: 1000;
}

.footer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    cursor: pointer;
}

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

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

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

.konfigurator-footer-content {
    display: none;
    padding: 20px;
    border-top: 1px solid #ccc;
    background-color: #f9f9f9;
}

.konfigurator-footer-content.show {
    display: block;
}
/* Sticky-Footer-Menü Details */
.konfigurator-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); /* Leichter Schatten */
    border-top: 1px solid #ccc;
    z-index: 1000;
    padding: 10px 20px;
    border-top-left-radius: 15px; /* Abgerundete Ecken links */
    border-top-right-radius: 15px; /* Abgerundete Ecken rechts */
}

.konfigurator-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 */
}

.konfigurator-footer-content.show {
    display: block; /* Anzeigen, wenn sichtbar */
}

.footer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

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

.footer-header .total-amount {
    font-size: 14px;
    font-weight: bold;
    color: #e74c3c;
}

.footer-header .toggle-icon {
    font-size: 16px;
    color: #555;
    transform: rotate(0);
    transition: transform 0.3s ease;
}

.footer-header .toggle-icon.open {
    transform: rotate(180deg);
}

/* Mobile Ansicht */
@media (max-width: 768px) {
    .konfigurator-sticky-footer {
        display: block; /* Anzeigen auf Mobilgeräten */
    }

    .konfigurator-right {
        display: none; /* Rechte Spalte ausblenden */
    }
}



/* Sicherstellen, dass Eingabefelder die volle Breite ausfüllen */
.konfigurator-column input,
.konfigurator-column select,
.konfigurator-column textarea {
    width: 100%; /* Volle Breite der Spalte */
    padding: 10px; /* Einheitliches Padding */
    border: 1px solid #ccc; /* Standardrahmen */
    border-radius: 4px; /* Abgerundete Ecken */
    box-sizing: border-box; /* Berücksichtigt Padding im Layout */
    font-size: 14px; /* Einheitliche Schriftgröße */
}

/* Für kleinere Bildschirme */
@media (max-width: 768px) {
    .konfigurator-column {
        flex: 1 1 100%; /* Spalten nehmen die gesamte Breite ein */
        margin-bottom: 15px; /* Abstand zwischen den Feldern */
    }
}

/* Checkbox-Container */
.checkbox-container {
    display: flex;
    align-items: flex-start; /* Vertikale Ausrichtung */
    gap: 10px; /* Abstand zwischen Checkbox und Text */
    margin-bottom: 15px; /* Abstand nach unten */
}

.checkbox-container label {
    font-size: 14px;
    color: #555;
    line-height: 1.5; /* Zeilenhöhe für besseren Textfluss */
    cursor: pointer; /* Zeiger zeigt an, dass es klickbar ist */
}

.checkbox-container input[type="checkbox"] {
    margin: 0; /* Kein zusätzlicher Abstand */
    width: 16px; /* Standardgröße der Checkbox */
    height: 16px;
    cursor: pointer; /* Zeiger zeigt an, dass es klickbar ist */
}

/* Fokus-Styling */
.checkbox-container input[type="checkbox"]:focus {
    outline: 2px solid #007BFF;
    outline-offset: 2px;
}

/* Link-Styling innerhalb der AGB-Checkbox */
.checkbox-container label a {
    color: #007BFF;
    text-decoration: underline;
}

.checkbox-container label a:hover {
    text-decoration: none; /* Unterstreichung beim Hover entfernen */
    color: #0056b3; /* Dunklere Farbe beim Hover */
}

/* Checkbox-Container */
.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
}

.checkbox-container label {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    cursor: pointer;
}

.checkbox-container input[type="checkbox"] {
    margin: 0;
    width: 16px;
    height: 16px;
    border: 2px solid #4CAF50;
    border-radius: 3px;
    background-color: #fff;
    cursor: pointer;
    appearance: none;
    transition: all 0.3s ease;
}

.checkbox-container input[type="checkbox"]:checked {
    background-color: #4CAF50;
    border-color: #4CAF50;
    box-shadow: 0 0 4px rgba(76, 175, 80, 0.6);
}

.checkbox-container input[type="checkbox"]:focus {
    outline: 2px solid #4CAF50;
    outline-offset: 2px;
}

.checkbox-container label a {
    color: #4CAF50;
    text-decoration: underline;
}

.checkbox-container label a:hover {
    text-decoration: none;
    color: #388E3C;
}

/* Angebot-Button (AGB-Button-Stil) */
.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 */
}

.konfigurator-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.konfigurator-modal-content {
    background-color: #fff;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.konfigurator-modal-content h5 {
    margin-bottom: 10px;
    font-size: 18px;
    color: #333;
}

.konfigurator-modal-content p {
    margin-bottom: 20px;
    font-size: 14px;
    color: #555;
}

.konfigurator-modal-content button {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
}

.konfigurator-modal-content button:hover {
    background-color: #388E3C;
}
