/* Multistep Configurator Styles - ROCKSOLID Design */

.multistep-configurator {
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Proxima Nova Light', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 300;
    color: #333333;
    line-height: 1.6;
}

/* Override all font-weights to use light weight */
.multistep-configurator *,
.multistep-configurator h1,
.multistep-configurator h2,
.multistep-configurator h3,
.multistep-configurator h4,
.multistep-configurator h5,
.multistep-configurator h6,
.multistep-configurator label,
.multistep-configurator button,
.multistep-configurator input,
.multistep-configurator select {
    font-family: 'Proxima Nova Light', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 300 !important;
}

.configurator-container {
    display: flex;
    gap: 30px;
    margin: 20px 0;
}

.configurator-main {
    flex: 2;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s ease;
}

.configurator-main:hover {
    box-shadow: 0 6px 25px rgba(0,0,0,0.12);
}

.configurator-sidebar {
    flex: 1;
    background: #f4f4f6;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    height: fit-content;
    position: sticky;
    top: 20px;
}

/* Step Indicator - ROCKSOLID Orange Theme */
.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    position: relative;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 20%;
    right: 20%;
    height: 3px;
    background: linear-gradient(90deg, #e0e0e0 0%, #cccccc 100%);
    z-index: 1;
    border-radius: 2px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
    max-width: 150px;
}

.step-number {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #f4f4f6;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 12px;
    transition: all 0.4s ease;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.step.active .step-number {
    background: linear-gradient(135deg, #c87137 0%, #a85b2a 100%);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(200, 113, 55, 0.3);
}

.step.completed .step-number {
    /*background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: white;*/
    background: #e2e2e2;
    color: #666;
    
}

.step-title {
    font-size: 13px;
    text-align: center;
    color: #666;
    font-weight: 500;
    transition: all 0.3s ease;
}

.step.active .step-title {
    color: #c87137;
    font-weight: 600;
    transform: translateY(-2px);
}

/* Step Content - ROCKSOLID Style */
.step-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

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

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

.step-content h3 {
    margin-top: 0;
    margin-bottom: 35px;
    color: #c87137;
    font-size: 28px;
    font-weight: 600;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.step-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #c87137 0%, #a85b2a 100%);
    border-radius: 2px;
}

.form-description {
    background: #f4f4f6;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    border-left: 4px solid #c87137;
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

/* Option Groups - ROCKSOLID Orange Theme */
.option-group {
    margin-bottom: 35px;
    padding: 25px;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    background: #f4f4f6;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.option-group:hover {
    border-color: #c87137;
    box-shadow: 0 4px 15px rgba(200, 113, 55, 0.1);
}

.option-group h4 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #c87137;
    font-size: 18px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid #e6e6e6;
}

.option-group label {
    display: block;
    margin-bottom: 12px;
    cursor: pointer;
    padding: 15px;
    border: 2px solid #e6e6e6;
    border-radius: 8px;
    background: #f4f4f6;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.option-group label::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, #c87137, #a85b2a);
    opacity: 0.05;
    transition: width 0.3s ease;
    z-index: 1;
}

.option-group label:hover {
    background: #f4f4f6;
    border-color: #c87137;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(200, 113, 55, 0.15);
}

.option-group label:hover::before {
    width: 100%;
}

.option-group input[type="radio"],
.option-group input[type="checkbox"] {
    margin-right: 12px;
    transform: scale(1.2);
    position: relative;
    z-index: 2;
}

.option-group select {
    width: 80%;
    padding: 15px;
    border: 2px solid #e6e6e6;
    border-radius: 8px;
    font-size: 15px;
    background: #f4f4f6;
    transition: all 0.3s ease;
    font-weight: 500;
}

.option-group select:focus {
    outline: none;
    border-color: #c87137;
    box-shadow: 0 0 0 3px rgba(200, 113, 55, 0.1);
}

/* File Upload */
.file-upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.file-upload-area:hover {
    border-color: #007cba;
    background: #f4f4f6;
}

.file-upload-area.dragover {
    border-color: #007cba;
    background: #e3f2fd;
}

.file-upload-area input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-placeholder {
    font-size: 16px;
    color: #666;
    text-align: center;
    padding: 20px;
}

.upload-placeholder .upload-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.upload-placeholder small {
    display: block;
    color: #999;
    font-size: 12px;
    margin-top: 5px;
}

.file-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: #e8f5e8;
    border: 1px solid #4caf50;
    border-radius: 4px;
    margin-top: 10px;
}

.file-name {
    font-weight: bold;
    color: #333;
}

.remove-file {
    background: #f44336;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.remove-file:hover {
    background: #d32f2f;
}

/* Multiple File Upload Styles */
.additional-upload {
    margin: 20px 0;
    text-align: center;
}

.btn.add-more-files {
    background: #f4f4f6;
    color: #c87137;
    border: 2px dashed #c87137;
    padding: 12px 25px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn.add-more-files:hover {
    background: linear-gradient(135deg, #c87137 0%, #a85b2a 100%);
    color: white;
    border-color: #a85b2a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(200, 113, 55, 0.3);
}

.uploaded-files-container {
    margin: 30px 0;
    padding: 20px;
    background: #f4f4f6;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.uploaded-files-container h4 {
    margin: 0 0 20px 0;
    color: #c87137;
    font-size: 16px;
}

.uploaded-files-list {
    display: grid;
    gap: 15px;
}

.no-files-message {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 20px;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f4f4f6;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.file-item:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.file-preview-thumb {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f4f6;
    border: 1px solid #e9ecef;
}

.file-preview-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-preview-thumb .file-icon {
    font-size: 24px;
    color: #c87137;
}

.file-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.file-name-display {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    word-break: break-word;
}

.file-size {
    font-size: 12px;
    color: #666;
    margin-bottom: 2px;
}

.file-type {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
}

.file-actions {
    display: flex;
    gap: 10px;
}

.btn-remove-file {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.btn-remove-file:hover {
    background: #c82333;
    transform: translateY(-1px);
}

/* Buttons - ROCKSOLID Orange Theme */
.step-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    gap: 20px;
}

.btn {
    padding: 15px 35px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    min-width: 160px;
    text-align: center;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #c87137 0%, #a85b2a 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(200, 113, 55, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #a85b2a 0%, #c87137 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 113, 55, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #495057 0%, #6c757d 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #1e7e34 0%, #28a745 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

/* Sidebar - ROCKSOLID Orange Theme */
.sidebar-content h4 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #c87137;
    font-size: 20px;
    font-weight: 600;
    padding-bottom: 12px;
    text-align: center;
    position: relative;
}

.sidebar-content h4::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px !important;
    max-width: 60px !important;
    height: 3px;
    background: linear-gradient(90deg, #c87137 0%, #a85b2a 100%);
}

.current-selection {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #e6e6e6;
}

.selection-item {
    display: block !important;
    margin-bottom: 15px;
    padding-left: 10px !important;
    background: #f4f4f6;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    transition: all 0.3s ease;
}



.selection-label {
    display: block !important;
    font-weight: 600;
    color: #c87137;
    font-size: 14px;
    margin-bottom: 8px;
}

.selection-value {
    display: block !important;
    color: #333;
    font-size: 13px;
    padding-left: 8px;
    line-height: 1.4;
    font-weight: 500;
}

.price-summary {
    border-top: 3px solid #c87137;
    padding-top: 25px;
    background: #ffffff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #e6e6e6;
}

.price-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.price-item.total {
    font-weight: 700;
    font-size: 20px;
    border-top: 2px solid #c87137;
    
    margin-top: 20px;
    background: #ffffff;
    color: #333;
    border-radius: 8px;
    border: 2px solid #c87137;
    
}

.price-label {
    color: #333;
    font-weight: 500;
}

.price-item.total .price-label,
.price-item.total .price-value {
    color: #333;
}

.price-value {
    color: #333;
    font-weight: bold;
}

.price-item.total .price-value {
    color: #333;
}

/* Summary */
.summary-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f4f4f6;
    border: 1px solid #e9ecef;
    border-radius: 6px;
}

.summary-section h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.selection-summary,
.file-summary {
    color: #666;
    line-height: 1.6;
}

/* Summary File Items */
.summary-files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.summary-file-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #f4f4f6;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.summary-file-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.summary-file-thumb {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f4f6;
    border: 1px solid #e9ecef;
    flex-shrink: 0;
}

.summary-file-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.summary-file-thumb .file-icon {
    font-size: 16px;
    color: #c87137;
}

.summary-file-info {
    flex: 1;
    min-width: 0;
}

.summary-file-name {
    font-weight: 600;
    color: #333;
    font-size: 12px;
    margin-bottom: 2px;
    word-break: break-word;
    line-height: 1.3;
}

.summary-file-size {
    font-size: 10px;
    color: #999;
}

.no-files-summary {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

.total-price {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

/* Form Fields - ROCKSOLID Orange Theme */
.form-field {
    margin-bottom: 25px;
}

.form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #c87137;
    font-size: 15px;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    transform: none !important;
    box-shadow: none !important;
    cursor: default;
}

.form-field label:hover {
    background: transparent !important;
    border: none !important;
    transform: none !important;
    box-shadow: none !important;
}

.form-field label::before {
    display: none !important;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="number"],
.form-field input[type="date"],
.form-field select {
    width: 95%;
    padding: 15px;
    border: 2px solid #e6e6e6;
    border-radius: 8px;
    font-size: 15px;
    background: #ffffff;
    transition: all 0.3s ease;
    font-weight: 500;
}

/* Number-Input Spinner explizit einblenden */
.form-field input[type="number"]::-webkit-outer-spin-button,
.form-field input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: inner-spin-button;
    opacity: 1;
    margin: 0;
}

.form-field input[type="text"]:focus,
.form-field input[type="email"]:focus,
.form-field input[type="number"]:focus,
.form-field input[type="date"]:focus,
.form-field select:focus {
    outline: none;
    border-color: #c87137;
    box-shadow: 0 0 0 3px rgba(200, 113, 55, 0.1);
    transform: translateY(-2px);
}

.form-field input[type="radio"],
.form-field input[type="checkbox"] {
    margin-right: 10px;
    margin-bottom: 0;
    transform: scale(1.2);
}

.form-field small {
    display: block;
    color: #666;
    font-size: 13px;
    margin-top: 8px;
    font-style: italic;
    line-height: 1.4;
}

.footnote {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    border-left: 4px solid #f39c12;
}

.footnote small {
    color: #856404;
    font-size: 13px;
    line-height: 1.5;
}

.explanation {
    background: linear-gradient(135deg, #f3e5d7 0%, #ede0d3 100%);
    border: 1px solid #e6d3c1;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid #c87137;
}

.explanation p {
    margin: 0;
    color: #8b5a35;
    font-size: 14px;
    line-height: 1.5;
}

.explanation a {
    color: #c87137;
    text-decoration: none;
    font-weight: 600;
}

.explanation a:hover {
    text-decoration: underline;
}

/* Address Fields Grid */
.address-fields {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

/* Zeile 2: Ort breit links, PLZ schmal rechts - wie bei Zeile 1 */
.address-fields .form-field:nth-child(3) {
    grid-column: 1; /* Ort breit links */
    grid-row: 2;
}

.address-fields .form-field:nth-child(4) {
    grid-column: 2; /* PLZ schmal rechts */
    grid-row: 2;
}

/* Conditional Fields - ROCKSOLID Style */
.conditional-fields {
    border: 1px solid #e6e6e6;
    border-radius: 12px 12px 0 0;
    border-bottom: none;
    padding: 25px;
    margin: 20px 0px 0 0px;
    background: #f4f4f6;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    max-width: calc(100% - 30px);
}

.conditional-fields .form-field {
    margin-bottom: 20px;
}

.conditional-fields .form-field input,
.conditional-fields .form-field select {
    max-width: 100%;
}

/* Address Fields Grid - Angepasst für bessere Containerpassung */
.address-fields {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 12px;
    margin-top: 15px;
    padding: 0 5px;
}

.address-fields .form-field {
    margin-bottom: 15px;
}

/* Tausche PLZ und Ort - Ort soll links (Position 3), PLZ soll rechts (Position 4) */
.address-fields .form-field:nth-child(3) {
    grid-column: 2; /* PLZ nach rechts */
    grid-row: 2;
}

.address-fields .form-field:nth-child(4) {
    grid-column: 1; /* Ort nach links */
    grid-row: 2;
}

/* Zusätzlicher rechter Abstand für Hausnummer und PLZ */
.address-fields .form-field:nth-child(2),
.address-fields .form-field:nth-child(3) {
    margin-right: 20px;
}

/* Conditional Options */
.conditional-options {
    margin-top: 10px;
    padding: 15px;
    background: #ffffff;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.conditional-options label {
    display: block;
    margin-bottom: 8px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.conditional-options label:hover {
    background: #e9ecef;
    transform: translateX(2px);
}

/* Common Fields */
.common-fields {
    border: 1px solid #e6e6e6;
    border-top: 1px solid #ddd;
    border-radius: 0 0 12px 12px;
    padding: 25px;
    margin: 0px 0px 20px 0px;
    background: #f4f4f6;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    max-width: calc(100% - 30px);
}

/* Footnotes */
.footnote {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 12px;
    color: #856404;
}

/* Explanations */
.explanation {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 15px;
    margin: 10px 0;
    font-size: 13px;
    line-height: 1.5;
}

.explanation p {
    margin: 0;
    color: #1976d2;
}

.explanation a {
    color: #1976d2;
    text-decoration: underline;
}

/* Form Description */
.form-description {
    background: #f0f8ff;
    border: 1px solid #b3d9ff;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 25px;
    font-size: 14px;
    line-height: 1.6;
    color: #004085;
}

/* Price Breakdown */
.price-breakdown {
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.price-breakdown .price-item {
    font-size: 13px;
    margin-bottom: 5px;
}

.quantity-display,
.quantity-price,
.additional-services {
    transition: all 0.3s ease;
}

/* Responsive adjustments for address fields */
@media (max-width: 768px) {
    .address-fields {
        grid-template-columns: 1fr;
    }
    
    .conditional-fields {
        padding: 15px;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .configurator-container {
        flex-direction: column;
    }
    
    .configurator-sidebar {
        position: static;
        order: 2;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .configurator-container {
        flex-direction: column;
    }
    
    .configurator-sidebar {
        position: static;
        order: -1;
    }
    
    .step-indicator {
        flex-wrap: nowrap;
        gap: 5px;
        margin-bottom: 30px;
    }
    
    .step {
        min-width: 80px;
        flex: 1;
    }
    
    .step-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .configurator-main {
        padding: 20px;
      



    }
    
    .configurator-sidebar {
        padding: 15px;
    }
    
    .step-content h3 {
        font-size: 20px;
    }
    
    .option-group {
        padding: 15px;
    }
}

/* ===== GEBÄUDETYP SELECTION BOX ===== */

.gebaeudetyp-selection-box {
    background: #fff;
    border: 2px solid #c87137;
    border-radius: 16px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 4px 16px rgba(200, 113, 55, 0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.gebaeudetyp-selection-box::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #c87137 0%, #a85b2a 50%, #c87137 100%);
    border-radius: 16px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gebaeudetyp-selection-box:hover::before {
    opacity: 1;
}



.selection-header {
    margin-bottom: 20px;
    text-align: center;
}

.selection-header h5 {
    color: #c87137;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.selection-header p {
    color: #666;
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
    font-style: italic;
}

.gebaeudetyp-selection-box .form-field {
    margin-bottom: 0;
}

.gebaeudetyp-selection-box .form-field label {
    color: #333;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    display: block;
}

.gebaeudetyp-selection-box select {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 500;
    border: 2px solid #e6e6e6;
    border-radius: 12px;
    background: #f4f4f6;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c87137' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
    padding-right: 50px;
}

.gebaeudetyp-selection-box select:focus {
    outline: none;
    border-color: #c87137;
    box-shadow: 0 0 0 3px rgba(200, 113, 55, 0.2);
    transform: translateY(-1px);
}

.gebaeudetyp-selection-box select:hover {
    border-color: #ddd;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.gebaeudetyp-selection-box select option {
    padding: 12px;
    font-size: 15px;
    background: #f4f4f6;
    color: #333;
}

.gebaeudetyp-selection-box select option:hover {
    background: #f5f5f5;
    color: #333;
}

/* Responsive Design für Gebäudetyp-Box */
@media (max-width: 768px) {
    .gebaeudetyp-selection-box {
        padding: 20px;
        margin: 15px 0;
    }
    
    .selection-header h5 {
        font-size: 18px;
    }
    
    .selection-header p {
        font-size: 13px;
    }
    
    .gebaeudetyp-selection-box select {
        padding: 12px 15px;
        font-size: 15px;
        padding-right: 45px;
        background-size: 18px;
    }
}

@media (max-width: 480px) {
    .gebaeudetyp-selection-box {
        padding: 15px;
        border-radius: 12px;
    }
    
    .selection-header h5 {
        font-size: 16px;
    }
    
    .gebaeudetyp-selection-box select {
        padding: 10px 12px;
        padding-right: 40px;
        font-size: 14px;
        background-size: 16px;
    }
}

/* ===== ERWEITERTE MULTI-FILE-UPLOAD STYLES ===== */

/* Upload Container */
.multi-file-upload-container {
    width: 100%;
    max-width: 800px;
}

/* Upload Area */
.multi-file-upload-area {
    border: 3px dashed #c87137;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    background: linear-gradient(135deg, #fefefe 0%, #f8f4f0 100%);
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 30px;
}

.multi-file-upload-area:hover {
    border-color: #a85b2a;
    background: linear-gradient(135deg, #f8f4f0 0%, #f0ede8 100%);
    transform: translateY(-2px);
}

.multi-file-upload-area.dragover {
    border-color: #a85b2a;
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b3 100%);
    transform: scale(1.02);
}

.upload-placeholder {
    pointer-events: none;
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.7;
}

.upload-placeholder span {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #c87137;
    margin-bottom: 8px;
}

.upload-placeholder small {
    display: block;
    font-size: 14px;
    color: #666;
    opacity: 0.8;
}

/* Uploaded Files Section */
.uploaded-files-section {
    margin: 30px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e6e6e6;
}

.section-header h4 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.add-more-files {
    background: linear-gradient(135deg, #c87137 0%, #a85b2a 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-more-files:hover {
    background: linear-gradient(135deg, #a85b2a 0%, #8b4a24 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(200, 113, 55, 0.3);
}

/* Files Grid */
.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

/* File Preview Item */
.file-preview-item {
    background: #f4f4f6;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.file-preview-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    border-color: #c87137;
}

.file-preview-wrapper {
    position: relative;
    height: 150px;
    overflow: hidden;
    background: #f4f4f6;
}

.file-preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.file-preview-item:hover .file-preview-image {
    transform: scale(1.05);
}

.file-preview-icon-large {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 48px;
    opacity: 0.6;
}

.file-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.file-preview-item:hover .file-preview-overlay {
    opacity: 1;
}

.remove-file-btn {
    background: #dc3545;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-file-btn:hover {
    background: #c82333;
    transform: scale(1.1);
}

.file-preview-info {
    padding: 15px;
}

.file-preview-name {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-preview-size {
    display: block;
    font-size: 12px;
    color: #666;
}

/* ===== ZUSAMMENFASSUNG DATEI-STYLES ===== */

.summary-files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.summary-file-item {
    background: #f4f4f6;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.summary-file-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
    border-color: #c87137;
}

.summary-file-preview {
    height: 100px;
    overflow: hidden;
    background: #f4f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.summary-preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.summary-file-icon {
    font-size: 32px;
    opacity: 0.6;
}

.loading-placeholder {
    font-size: 12px;
    color: #666;
    opacity: 0.7;
}

.summary-file-info {
    padding: 10px;
}

.summary-file-name {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 3px;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.summary-file-size {
    display: block;
    font-size: 11px;
    color: #666;
}

.files-summary-info {
    padding: 15px;
    background: linear-gradient(135deg, #f8f4f0 0%, #f0ede8 100%);
    border-radius: 8px;
    border-left: 4px solid #c87137;
}

.files-summary-info p {
    margin: 0;
    color: #c87137;
    font-weight: 600;
}

.no-files-message {
    text-align: center;
    padding: 30px;
    color: #666;
    font-style: italic;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border: 1px dashed #c87137;
}

/* Responsive Design für Datei-Upload */
@media (max-width: 768px) {
    .files-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .summary-files-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .add-more-files {
        width: 100%;
        justify-self: stretch;
    }
}

@media (max-width: 480px) {
    .files-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .summary-files-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .multi-file-upload-area {
        padding: 30px 15px;
    }
    
    .upload-icon {
        font-size: 36px;
    }
}

/* ===== TOOLTIP FUNCTIONALITY ===== */

/* Tooltip Container */
.tooltip-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin-left: 8px;
}

/* Tooltip Icon */
.tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #c87137;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.tooltip-icon:hover {
    background: #a85b2a;
    transform: scale(1.1);
}

/* Tooltip Popup */
.tooltip-popup {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #f4f4f6;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    width: 280px;
    max-width: 90vw;
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.tooltip-popup.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Tooltip Arrow */
.tooltip-popup::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid white;
}

.tooltip-popup::after {
    content: '';
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 7px solid #ddd;
}

/* Tooltip Content */
.tooltip-content {
    color: #333;
    font-size: 14px;
    line-height: 1.5;
}

.tooltip-content p {
    margin: 0 0 10px 0;
}

.tooltip-content p:last-child {
    margin-bottom: 0;
}

/* Close Button */
.tooltip-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    font-size: 16px;
    color: #999;
    cursor: pointer;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.tooltip-close:hover {
    color: #333;
}

/* Header with tooltip */
.header-with-tooltip {
    display: flex;
    align-items: start;
    
}

/*.header-with-tooltip h3 {
    display: flex;
    align-items: start;
    justify-content: center;
}*/

/* Responsive Design für Tooltips */
@media (max-width: 768px) {
    .tooltip-popup {
        width: 260px;
        padding: 12px;
    }
    
    .tooltip-content {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .tooltip-popup {
        width: 240px;
        padding: 10px;
        left: 0;
        transform: none;
        margin-left: -120px;
    }
    
    .tooltip-popup::before,
    .tooltip-popup::after {
        left: 130px;
    }
}

/* ===== ACCORDION STYLES ===== */

.upload-info-accordion {
    margin: 20px 0;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    overflow: hidden;
    background: #f4f4f6;
}

.accordion-header {
    background: #f4f4f6;
    color: black;
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    user-select: none;
}



.accordion-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.accordion-toggle {
    font-size: 20px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.accordion-header.active .accordion-toggle {
    transform: rotate(45deg);
}

.accordion-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    background: #fafafa;
}

.accordion-content.active {
    max-height: none;
    padding: 20px;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

/* Fallback für Animationen - verwende height: auto mit transition */
@supports not (max-height: none) {
    .accordion-content.active {
        max-height: 2000px;
    }
}

/* Zusätzliche Klasse für vollständig geöffneten Inhalt */
.accordion-content.fully-expanded {
    max-height: none !important;
    overflow: visible !important;
}

.accordion-inner {
    background: #f4f4f6;
    border-radius: 6px;
    padding: 20px;
    border: 1px solid #e6e6e6;
}

.upload-requirements {
    color: #333;
    line-height: 1.6;
}

.upload-requirements h5 {
    color: #c87137;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

.upload-requirements ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.upload-requirements li {
    margin: 8px 0;
    padding-left: 20px;
    position: relative;
}

.upload-requirements li::before {
    content: "•";
    color: #c87137;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.upload-diagram {
    text-align: center;
    margin: 20px 0;
}

.upload-diagram img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ===== SIDEBAR SELECTION ITEMS IMPROVEMENT ===== */

.selection-item {
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.selection-item:last-child {
    border-bottom: none;
}

.selection-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    font-size: 14px;
}

.selection-value {
    display: block;
    color: #666;
    font-size: 13px;
    padding-left: 0;
    line-height: 1.4;
    word-wrap: break-word;
    hyphens: auto;
}

/* ===== FOOTNOTE SECTION SPACING ===== */

.footnote-section {
    margin-top: 20px;
    padding-top: 10px;
}

/* Responsive Design für Accordion */
@media (max-width: 768px) {
    .accordion-header {
        padding: 12px 15px;
    }
    
    .accordion-header h4 {
        font-size: 16px;
    }
    
    .accordion-content.active {
        padding: 15px;
    }
    
    .accordion-content.fully-expanded {
        max-height: none !important;
        overflow: visible !important;
    }
    
    .accordion-inner {
        padding: 15px;
    }
    
    .selection-label {
        font-size: 13px;
    }
    
    .selection-value {
        font-size: 12px;
    }
}

/* Summary Display Styles */
.summary-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 15px;
}

.summary-item {
    padding: 10px 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    border-left: 4px solid #c87137;
    transition: all 0.2s ease;
}

.summary-item:hover {
    background: #f1f3f4;
    border-left-color: #c87137;
    transform: translateX(2px);
}

.summary-item strong {
    color: #c87137;
    margin-right: 8px;
}

/* Summary heading styles */
.summary-section h4 {
    color: #c87137;
    font-size: 18px;
    margin: 20px 0 10px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #c87137;
    font-weight: 600;
}

/* Responsive adjustments for summary */
@media (max-width: 768px) {
    .summary-item {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .summary-section h4 {
        font-size: 16px;
    }
}

.zusatzleistung-group {
    line-height: 25px;
}

/* Verbesserte Darstellung für Zusammenfassung mit Icons */
.summary-item.zusatzleistung-group {
    background: #f8f9fa;
    border-left: 4px solid #c87137;
    padding: 15px;
    margin-bottom: 12px;
    border-radius: 6px;
}

.summary-item .option-line {
    display: inline-block;
    width: 100%;
    margin-bottom: 5px;
    font-size: 14px;
    line-height: 1.6;
}

/* Icon-Styling für ausgewählte und nicht ausgewählte Optionen */
.summary-item .option-line.option-checked {
    color: #28a745;
    font-weight: 500;
}

.summary-item .option-line.option-unchecked {
    color: #dc3545;
    opacity: 0.7;
}

/* Professionelle Icons für Grundriss - überschreibt die Emoji-Icons */
.grundriss-summary .option-line.option-checked {
    color: #000000;
}

.grundriss-summary .option-line.option-unchecked {
    color: #000000;
}

.grundriss-summary .option-line.option-checked::before {
    content: "✓";
    color: #a85f32;
    font-weight: bold;
    margin-right: 5px;
    font-size: 14px;
    display: inline-block;
}

.grundriss-summary .option-line.option-unchecked::before {
    content: "✗";
    color: #a85f32;
    font-weight: bold;
    margin-right: 5px;
    font-size: 14px;
    display: inline-block;
}

/* Bessere Trennung zwischen Gruppen */
.summary-item + .summary-item.zusatzleistung-group {
    margin-top: 20px;
}

/* Orange Hervorhebung für wichtige Hinweise */
.summary-item .important-note {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
    font-size: 13px;
    color: #856404;
}
/* ===== ACCORDION EXAMPLE IMAGES STYLES ===== */
.example-images {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.example-images h5 {
    color: #c87137;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 16px;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.image-item {
    text-align: center;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #e6e6e6;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.example-image {
    width: 100%;
    max-width: 250px;
    height: 180px;
    object-fit: contain;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.3s ease;
    border: 2px solid #e0e0e0;
    background: #ffffff;
    display: block;
}

.example-image:hover {
    transform: scale(1.05);
    border-color: #c87137;
}

/* Fallback für nicht ladende Bilder */
.example-image[src*=".png"]:not([src=""]),
.example-image[src*=".jpg"]:not([src=""]) {
    background: #f8f9fa;
}

/* Platzhalter-Styling für kleine Bilder */
.image-placeholder {
    width: 100%;
    max-width: 250px;
    height: 180px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #c87137;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 25%, rgba(200, 113, 55, 0.05) 25%, rgba(200, 113, 55, 0.05) 50%, transparent 50%, transparent 75%, rgba(200, 113, 55, 0.05) 75%);
    background-size: 20px 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-placeholder:hover::before {
    opacity: 1;
}

.image-placeholder:hover {
    transform: scale(1.02);
    border-color: #a85b2a;
    box-shadow: 0 4px 15px rgba(200, 113, 55, 0.2);
}

.placeholder-icon {
    font-size: 48px;
    color: #c87137;
    margin-bottom: 10px;
    opacity: 0.7;
}

.placeholder-text {
    color: #666;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
    max-width: 180px;
}

/* Responsive Design für Platzhalter */
@media (max-width: 768px) {
    .image-gallery {
        grid-template-columns: 1fr;
    }
    
    .example-image,
    .image-placeholder {
        max-width: 100%;
        height: 160px;
    }
    
    .placeholder-icon {
        font-size: 40px;
    }
    
    .placeholder-text {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .example-image,
    .image-placeholder {
        height: 140px;
    }
    
    .placeholder-icon {
        font-size: 36px;
    }
    
    .placeholder-text {
        font-size: 12px;
    }
}

.image-caption {
    margin-top: 10px;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    font-weight: 400;
}

/* ===== IMAGE MODAL STYLES ===== */
.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    animation: fadeIn 0.3s;
}

.image-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    animation: slideIn 0.3s ease;
}

.modal-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 6px;
}

.modal-caption {
    margin-top: 15px;
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    z-index: 10001;
}

.close-modal:hover {
    color: #333;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to { 
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Responsive adjustments for image gallery */
@media (max-width: 768px) {
    .image-gallery {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .example-image {
        height: 150px;
    }
    
    .modal-content {
        padding: 15px;
        max-width: 95%;
    }
    
    .modal-image {
        max-height: 60vh;
    }
}

/* Placeholder image styles for missing images */
.example-image[src*="example-1.jpg"]:before,
.example-image[src*="example-2.jpg"]:before {
    content: "📋";
    display: block;
    font-size: 48px;
    color: #c87137;
    background: #f5f5f5;
    border: 2px dashed #ddd;
    border-radius: 6px;
    height: 180px;
    line-height: 180px;
    text-align: center;
}


/* Responsive Design für Beispielbilder */
@media (max-width: 768px) {
    .image-gallery {
        grid-template-columns: 1fr;
    }
    
    .example-image {
        max-width: 100%;
        height: 160px;
    }
}

@media (max-width: 480px) {
    .example-image {
        height: 140px;
    }
}

/* ========================================
   IMMOBILIEN KONFIGURATOR (PRODUKT 3)
   ======================================== */

.multistep-configurator[data-product-type="product-3"] .address-fields {
    display: grid !important;
    grid-template-columns: 2fr 1fr !important;
    gap: 15px;
    margin-bottom: 20px;
}

/* Erste Zeile: Straße (Kind 1) und Hausnummer (Kind 2) */
.multistep-configurator[data-product-type="product-3"] .address-fields .form-field:nth-child(1) {
    grid-column: 1 !important;
    grid-row: 1 !important;
}

.multistep-configurator[data-product-type="product-3"] .address-fields .form-field:nth-child(2) {
    grid-column: 2 !important;
    grid-row: 1 !important;
}

/* Zweite Zeile: Ort (Kind 3) breit links, PLZ (Kind 4) schmal rechts */
.multistep-configurator[data-product-type="product-3"] .address-fields .form-field:nth-child(3) {
    grid-column: 1 !important; /* Ort breit links */
    grid-row: 2 !important;
    width: 100%;
}

.multistep-configurator[data-product-type="product-3"] .address-fields .form-field:nth-child(4) {
    grid-column: 2 !important; /* PLZ schmal rechts */
    grid-row: 2 !important;
    width: 92%;
}

.multistep-configurator[data-product-type="product-3"] .conditional-fields {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    border-left: 4px solid #007cba;
}

.multistep-configurator[data-product-type="product-3"] .conditional-fields h4 {
    margin-top: 0;
    color: #007cba;
}

/* Upload-Gruppen für Immobilien */
.multistep-configurator[data-product-type="product-3"] .upload-section {
    display: grid;
    gap: 25px;
}

.multistep-configurator[data-product-type="product-3"] .upload-group {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.multistep-configurator[data-product-type="product-3"] .upload-group h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
    font-weight: 500;
}

.multistep-configurator[data-product-type="product-3"] .upload-group p {
    margin: 0 0 15px 0;
    color: #666;
    font-style: italic;
    font-size: 14px;
}

.multistep-configurator[data-product-type="product-3"] .file-upload-area {
    position: relative;
}

.multistep-configurator[data-product-type="product-3"] .upload-box {
    border: 2px dashed #007cba;
    border-radius: 6px;
    padding: 30px 20px;
    text-align: center;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
}

.multistep-configurator[data-product-type="product-3"] .upload-box:hover {
    background: #e3f2fd;
    border-color: #0056b3;
}

.multistep-configurator[data-product-type="product-3"] .upload-box.drag-over {
    background: #e1f5fe;
    border-color: #01579b;
    transform: scale(1.02);
}

.multistep-configurator[data-product-type="product-3"] .upload-box .upload-icon {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

.multistep-configurator[data-product-type="product-3"] .upload-box p {
    margin: 0;
    color: #007cba;
    font-weight: 500;
}

.multistep-configurator[data-product-type="product-3"] .file-list {
    margin-top: 15px;
}

.multistep-configurator[data-product-type="product-3"] .file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f1f3f4;
    border-radius: 4px;
    margin-bottom: 5px;
}

.multistep-configurator[data-product-type="product-3"] .file-name {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.multistep-configurator[data-product-type="product-3"] .file-size {
    font-size: 12px;
    color: #666;
    margin-right: 10px;
}

.multistep-configurator[data-product-type="product-3"] .remove-file {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
}

.multistep-configurator[data-product-type="product-3"] .remove-file:hover {
    background: #c82333;
}

/* Zusammenfassung für Immobilien */
.multistep-configurator[data-product-type="product-3"] .summary-section {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.multistep-configurator[data-product-type="product-3"] .summary-section h4 {
    margin-top: 0;
    color: #007cba;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.multistep-configurator[data-product-type="product-3"] .file-category {
    margin-bottom: 15px;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
}

.multistep-configurator[data-product-type="product-3"] .file-category h5 {
    margin: 0 0 5px 0;
    color: #495057;
    font-size: 14px;
    font-weight: 600;
}

.multistep-configurator[data-product-type="product-3"] .file-category p {
    margin: 2px 0;
    font-size: 13px;
    color: #6c757d;
}

/* Responsive Design für Immobilien */
@media (max-width: 768px) {
    .multistep-configurator[data-product-type="product-3"] .address-fields {
        grid-template-columns: 1fr;
    }
    
    .multistep-configurator[data-product-type="product-3"] .address-fields .form-field:nth-child(3),
    .multistep-configurator[data-product-type="product-3"] .address-fields .form-field:nth-child(4) {
        grid-column: 1;
        grid-row: auto;
    }
    
    .multistep-configurator[data-product-type="product-3"] .upload-box {
        padding: 20px 15px;
    }
}
