body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    display: flex;
    justify-content: center;
}

.konfigurator-container {
    display: flex;
    flex-direction: row;
    width: 90%; /* Maximal 90% Breite der Seite */
    margin: 20px auto;
    gap: 20px; /* Abstand zwischen den Containern */
}



.konfigurator-summary-container {
    flex: 0 0 40%; /* Die Zusammenfassung nimmt 40% der Breite ein */
    max-width: 40%; /* Maximale Breite */
    position: sticky;
    top: 20px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.konfigurator-summary-container h3 {
    margin-bottom: 10px;
    font-size: 18px;
    color: #333;
}


label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 14px;
}

/* Standard für Input, Select, Textarea und Buttons */
.konfigurator-form-container input,
.konfigurator-form-container select,
.konfigurator-form-container textarea,
.konfigurator-form-container button,
.konfigurator-modal-content select,
.konfigurator-modal-content button {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

/* Ausnahme für Checkboxen */
input[type="checkbox"] {
    width: auto; /* Verhindert, dass die Checkbox die volle Breite einnimmt */
    margin-right: 10px; /* Optional: Abstand zwischen Checkbox und Text */
}

/* Ausnahme für Labels mit Checkboxen */
label input[type="checkbox"] {
    display: inline-block; /* Stellt sicher, dass Checkboxen korrekt angezeigt werden */
    vertical-align: middle; /* Checkbox vertikal zentrieren */
}

input:focus, select:focus, textarea:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
    outline: none;
}

.konfigurator-checkbox-group {
    display: flex;
    flex-wrap: wrap; /* Ermöglicht Zeilenumbruch, falls der Platz nicht ausreicht */
    gap: 10px; /* Abstand zwischen den Checkboxen */
}

.konfigurator-checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    font-size: 14px;
    margin-bottom: 0; /* Entfernt zusätzlichen Platz darunter */
    white-space: nowrap; /* Verhindert Zeilenumbrüche innerhalb des Labels */
}

button {
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
}

button:hover {
    background-color: #45a049;
}

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

.konfigurator-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: #555;
}

.konfigurator-summary-total {
    font-weight: bold;
    margin-top: 20px;
    font-size: 16px;
    color: #e74c3c;
}


.konfigurator-service-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: start;
}

.konfigurator-service {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    width: 80px;
    text-align: center;
}

.konfigurator-service img {
    width: 30px;
    height: 30px;
    margin-bottom: 5px;
    border: 2px solid transparent;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.konfigurator-service img:hover {
    border-color: #4CAF50;
}

.konfigurator-service input[type="checkbox"]:checked + img {
    border-color: #4CAF50;
}



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


.konfigurator-modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
}

.konfigurator-modal-content h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.konfigurator-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .konfigurator-container {
        flex-direction: column;
        width: 95%;
        gap: 10px;
    }


}

.konfigurator-kacheln-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 10px; /* Reduzierter Abstand zwischen Kacheln */
    margin-top: 10px;
    flex-wrap: wrap; /* Erlaubt Umbruch auf kleineren Bildschirmen */
}

.konfigurator-kachel {
    flex: 1; /* Gleiche Breite für alle Kacheln */
    text-align: center;
    border: 2px solid #ccc;
    border-radius: 8px;
    padding: 10px; /* Reduzierter Innenabstand */
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #ffffff;
    min-width: calc(33.33% - 10px); /* Drei Kacheln in einer Zeile */
    max-width: 33.33%; /* Gleiche Breite für Desktop */
    height: 80px; /* Einheitliche, kleinere Höhe */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.konfigurator-kachel:hover {
    border-color: #4CAF50;
    background-color: #f9f9f9;
}

.konfigurator-kachel.selected {
    border-color: #4CAF50;
    background-color: #e8f5e9;
}

.konfigurator-kachel .highlight {
    font-size: 10px; /* Kleinere Schriftgröße */
    font-weight: bold;
    color: #4CAF50;
    margin-bottom: 3px; /* Kleinere Abstände */
    display: block;
}

.konfigurator-kachel-title {
    font-size: 12px; /* Reduzierte Schriftgröße */
    font-weight: bold;
    color: #333;
    margin-bottom: 3px;
}

.konfigurator-kachel p {
    font-size: 10px; /* Kleinere Schriftgröße für Beschreibung */
    color: grey;
    margin: 0;
}

/* Responsive Design: Handyansicht */
@media (max-width: 768px) {
    .konfigurator-kacheln-container {
        flex-direction: column; /* Stapelt die Kacheln vertikal */
        gap: 10px; /* Weniger Abstand zwischen Kacheln */
    }

    .konfigurator-kachel {
        min-width: 100%; /* Kacheln nehmen die volle Breite ein */
        max-width: 100%;
        height: auto; /* Passt sich an den Inhalt an */
        padding: 15px; /* Etwas mehr Platz auf mobilen Geräten */
    }
}


.konfigurator-weekdays {
    display: flex;
    flex-wrap: wrap;
    gap: 15px; /* Abstand zwischen den Tagen */
    justify-content: space-around; /* Zentriert die Tage horizontal */
}

.konfigurator-weekday {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    text-align: center;
    position: relative; /* Wichtig für die Ausrichtung */
}

.konfigurator-weekday input {
    position: absolute; /* Macht die Checkbox unsichtbar */
    opacity: 0;
    pointer-events: none; /* Verhindert, dass die unsichtbare Checkbox geklickt wird */
}

.konfigurator-weekday .day-abbr {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    border: 2px solid #ccc;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.konfigurator-weekday .day-full {
    font-size: 12px;
    color: #555;
}

.konfigurator-weekday input:checked + .day-abbr {
    background-color: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.konfigurator-weekday input:checked + .day-abbr:hover {
    background-color: #45a049;
}

/* Mobile Ansicht */
@media (max-width: 768px) {
    .konfigurator-weekdays {
        flex-wrap: wrap; /* Erlaube Zeilenumbrüche */
        gap: 10px; /* Weniger Abstand */
        justify-content: space-between; /* Verteile die Tage gleichmäßig */
    }

    .konfigurator-weekday {
        flex: 0 1 calc(20% - 10px); /* 5 Elemente pro Zeile */
        max-width: calc(20% - 10px);
    }

    .konfigurator-weekday .day-abbr {
        width: 30px; /* Reduzierte Größe für Kreise */
        height: 30px;
        font-size: 12px;
    }

    .konfigurator-weekday .day-full {
        font-size: 10px;
    }
}


.konfigurator-two-column {
    display: flex;
    gap: 20px; /* Abstand zwischen den Feldern */
}

.konfigurator-two-column > div {
    flex: 1; /* Gleichmäßige Breite der Felder */
}

.konfigurator-plz-ort-container {
    display: flex; /* Flexbox für die horizontale Ausrichtung */
    gap: 20px; /* Abstand zwischen den Spalten */
    margin-bottom: 20px; /* Abstand nach unten */
}

.konfigurator-column-3,
.konfigurator-column-9 {
    box-sizing: border-box; /* Padding und Border berücksichtigen */
}

.konfigurator-column-3 {
    flex: 0 0 25%; /* 3 von 12 Spalten */
    max-width: 25%; /* Maximale Breite auf 25% beschränken */
}

.konfigurator-column-9 {
    flex: 0 0 75%; /* 9 von 12 Spalten */
    max-width: 75%; /* Maximale Breite auf 75% beschränken */
    padding-right: 20px; /* Abstand zum rechten Rand */
}

.konfigurator-column-3 input,
.konfigurator-column-9 input {
    width: 100%; /* Eingabefelder sollen den gesamten Platz ausfüllen */
    padding: 10px; /* Einheitliches Padding */
    margin: 0; /* Keine zusätzlichen Außenabstände */
    border: 1px solid #ccc; /* Einheitlicher Rahmen */
    border-radius: 4px; /* Abgerundete Ecken */
    font-size: 14px; /* Einheitliche Schriftgröße */
    box-sizing: border-box; /* Padding berücksichtigen */
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 14px;
    color: #333; /* Einheitliche Schriftfarbe */
}

.konfigurator-section {
    margin-bottom: 20px;
}

.konfigurator-toggle-container {

    overflow: hidden;
}

.konfigurator-toggle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    font-weight: bold;
    cursor: pointer;
}

.konfigurator-toggle-header span {
    font-size: 16px;
    color: #333; /* Einheitliche Schriftfarbe */
}

.konfigurator-toggle-content {
    padding: 10px;
    display: none; /* Standardmäßig ausgeblendet */
}


.konfigurator-service-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-start;
}

.konfigurator-service {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    width: 80px;
    text-align: center;
}

.konfigurator-service img {
    width: 30px;
    height: 30px;
    margin-bottom: 5px;
    border: 2px solid transparent;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.konfigurator-service img:hover {
    border-color: #4CAF50;
}

.konfigurator-service input[type="checkbox"]:checked + img {
    border-color: #4CAF50;
}


.konfigurator-column-9 input:focus,
.konfigurator-column-3 input:focus {
    border-color: #4CAF50; /* Rahmenfarbe beim Fokus */
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5); /* Fokus-Schimmer */
    outline: none; /* Standard-Umrandung entfernen */
}

input, select, textarea {
    width: 100%; /* Sicherstellen, dass die Felder den Container ausfüllen */
    box-sizing: border-box; /* Padding berücksichtigen */
}

.konfigurator-section {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.konfigurator-section h3 {
    margin-bottom: 15px;
    font-size: 16px;
    color: #333;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
}

/* 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;
}

.konfigurator-sticky-footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1); /* Leichter Schatten nach oben */
    z-index: 1000;
    border-top: 1px solid #ccc;
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: all 0.3s ease;
    border-top-left-radius: 15px; /* Abrundung links oben */
    border-top-right-radius: 15px; /* Abrundung rechts oben */
    overflow: hidden; /* Verhindert Überlauf */
}

.konfigurator-footer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.footer-left, .footer-right {
    flex: 1;
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.total-label {
    font-size: 16px;
    font-weight: bold;
    color: #000; /* Schriftfarbe auf Schwarz */
}

.total-subtext {
    font-size: 12px;
    color: #555; /* Subtextfarbe etwas abgedunkelt */
}

.footer-right {
    font-size: 18px;
    font-weight: bold;
    color: #000; /* Schriftfarbe auf Schwarz */
    text-align: right;
}

.total-amount {
    color: #000000; /* Lila Farbe */
}

.footer-center {
    flex: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.konfigurator-footer-content {
    display: none; /* Standardmäßig versteckt */
    background-color: #fff;
    padding: 20px;
    border-top: 1px solid #ccc; /* Linie ohne Abrundung */
    border-top-left-radius: 0; /* Keine Abrundung innerhalb */
    border-top-right-radius: 0; /* Keine Abrundung innerhalb */
}

.konfigurator-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 10px;
    color: #555;
}

.konfigurator-summary-total {
    font-weight: bold;
    font-size: 16px;
    color: #000; /* Schriftfarbe auf Schwarz */
}


.agb-container {
    display: flex;
    align-items: flex-start;
    gap: 10px; /* Abstand zwischen Checkbox und Text */
    margin-bottom: 15px; /* Abstand zwischen den Checkboxen */
}

.agb-container input[type="checkbox"] {
    margin-top: 2px; /* Korrigiert die vertikale Ausrichtung */
}

.agb-container label {
    font-size: 14px;
    line-height: 1.5;
    color: #333; /* Standard-Schriftfarbe */
}

.agb-container a {
    color: #007bff; /* Link-Farbe */
    text-decoration: underline;
}

.agb-container a:hover {
    text-decoration: none;
    color: #0056b3; /* Hover-Farbe */
}

.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:hover {
    background-color: #45a049;
}


/* Sichtbarkeit basierend auf Bildschirmgröße */
@media (max-width: 768px) {
    .konfigurator-summary-container {
        display: none; /* Zusammenfassung auf Handy ausblenden */
    }

    .konfigurator-sticky-footer {
        display: block; /* Sticky-Footer auf Handy anzeigen */
    }
}

@media (min-width: 769px) {
    .konfigurator-sticky-footer {
        display: none; /* Sticky-Footer auf PC ausblenden */
    }
}
