/* Globale Stile und Layout */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fa; /* Hellerer, moderner Hintergrund */
    color: #343a40; /* Dunkle, lesbare Schriftfarbe */
    line-height: 1.6;
    margin: 0;
    padding: 20px;
}

.calculator-container {
    display: flex;
    max-width: 1200px;
    margin: 20px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); /* Sanfter Schatten */
    overflow: hidden;
}

.options-panel {
    flex: 2;
    padding: 40px;
    border-right: 1px solid #e9ecef; /* Dezente Trennlinie */
}

.summary-panel {
    flex: 1;
    background-color: #f1f3f5; /* Leichter Hintergrund für die rechte Spalte */
    padding: 40px;
    position: relative;
}

.sticky-summary {
    position: sticky;
    top: 40px;
}

/* Typografie */
h1 {
    font-size: 2.5em;
    color: #212529;
    margin-bottom: 0.5em;
}

h2 {
    font-size: 1.5em;
    color: #212529;
    margin-top: 0;
    margin-bottom: 1em;
}

.intro-text {
    font-size: 1.1em;
    color: #6c757d;
    margin-bottom: 2em;
}

/* Kategorien-Karten (Akkordeon) */
.category-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: box-shadow 0.3s ease;
}

.category-card:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.category-header {
    background: #e9ecef;
    border: none;
    width: 100%;
    text-align: left;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.category-header:hover {
    background-color: #e2e6ea;
}

.category-header[aria-expanded="true"] {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.toggle-icon {
    transition: transform 0.3s ease;
    font-size: 1em;
    color: #495057;
}

.category-header[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}

.category-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    padding: 0 25px;
}

.category-content.expanded {
    padding-bottom: 25px;
}

/* Optionen */
.option-item {
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.option-item:last-child {
    border-bottom: none;
}

.option-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.option-label {
    font-size: 1em;
    cursor: pointer;
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.option-price {
    font-size: 0.9em;
    color: #6c757d;
    font-weight: normal;
    margin-left: 10px;
}

.description {
    font-size: 0.9em;
    color: #495057;
    margin-top: 5px;
    margin-bottom: 10px;
    padding-left: 25px;
}

/* Checkboxes & Mengen-Inputs */
input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 15px;
    cursor: pointer;
}

.quantity-control {
    display: flex;
    align-items: center;
}

.quantity-btn {
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    color: #495057;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 1em;
    border-radius: 5px;
    transition: background-color 0.2s ease;
}

.quantity-btn:hover {
    background-color: #dee2e6;
}

.quantity-input {
    width: 50px;
    text-align: center;
    border: 1px solid #ced4da;
    border-radius: 5px;
    padding: 5px;
    margin: 0 5px;
}

.user-description-container textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    margin-top: 10px;
    font-size: 0.9em;
    transition: background-color 0.2s;
}

.user-description-container textarea:disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
}

/* Zusammenfassungs-Bereich */
.selected-options-list {
    margin-bottom: 2em;
    min-height: 100px;
}

.selected-option {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #e9ecef;
}

.selected-option-name {
    font-weight: bold;
}

.placeholder-text {
    color: #999;
    font-style: italic;
    text-align: center;
    padding-top: 20px;
}

.total-cost-box {
    background-color: #d4edda; /* Sanftes Grün */
    border: 1px solid #c3e6cb;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 1.5em;
}

#total-cost {
    font-size: 2em;
    font-weight: bold;
    color: #155724; /* Dunkelgrün */
    margin-top: 5px;
}

.disclaimer {
    font-size: 0.8em;
    color: #6c757d;
    text-align: center;
}

.summary-divider {
    border: none;
    border-top: 1px dashed #ced4da;
    margin: 30px 0;
}

/* Kontaktformular */
#contact-form {
    display: flex;
    flex-direction: column;
}

#contact-form label {
    font-weight: bold;
    margin-bottom: 5px;
}

#contact-form input[type="text"],
#contact-form input[type="email"] {
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 1em;
}

#submit-button {
    background-color: #007bff; /* Helles, ansprechendes Blau */
    color: white;
    padding: 15px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#submit-button:hover {
    background-color: #0056b3;
}

#submit-button:disabled {
    background-color: #ced4da;
    cursor: not-allowed;
}

.form-message {
    margin-top: 20px;
    font-weight: bold;
}

.form-message.success {
    color: #155724;
}

.form-message.error {
    color: #721c24;
}

.honeypot-field {
    display: none;
}

/* Responsives Design */
@media (max-width: 992px) {
    .calculator-container {
        flex-direction: column;
        margin: 0;
        border-radius: 0;
    }

    body {
        padding: 0;
    }
    
    .options-panel,
    .summary-panel {
        padding: 20px;
    }
    
    .summary-panel {
        background-color: #fff;
        border-top: 1px solid #e9ecef;
    }
    
    .sticky-summary {
        position: static;
        top: auto;
    }
    
    /* Mobile Anpassungen für Option-Items */
    .option-details {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .option-label {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 10px;
    }
    
    .option-price {
        margin-left: 0;
        margin-top: 5px;
        font-size: 0.9em;
        font-style: italic;
    }
    
    .quantity-control {
        margin-left: 20px; /* Einrückung für die Mengen-Steuerung */
    }
    
    .description {
        padding-left: 0;
    }
}
.selected-options-list p, 
.selected-options-list div,
.selected-options-list span {
    font-size: 0.9em; /* Verkleinert die Schriftgröße */
    font-weight: normal; /* Entfernt die Fettung */
}

.selected-options-list .placeholder-text {
    font-style: italic; /* Optional: Macht den Platzhalter-Text kursiv */
    font-size: 0.9em;
}

.selected-options-list p {
    margin: 3px 0; /* Verringert den Abstand oben und unten */
}

.selected-options-list p,
.selected-options-list div,
.selected-options-list span {
    line-height: 1.2; /* Verringert den Abstand zwischen den Zeilen */
}