/* Custom Radio Button Farbe */
.form-check-input[type="radio"]:checked,
.form-check-input:checked {
    background-color: rgb(0,155,135) !important;
    border-color: rgb(0,155,135) !important;
}

.form-check-input[type="radio"]:focus,
.form-check-input:focus {
    border-color: rgb(0,155,135) !important;
    box-shadow: 0 0 0 0.25rem rgba(0,155,135,0.25) !important;
}

/* Gap wird jetzt über Bootstrap's g-4 (40px) gesteuert */

/* Form-Labels größer und fetter machen */
.form-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgb(0,155,135);
}

/* Icons für Form-Labels */
.form-group:has(#modelOptions) > .form-label::before {
    font-family: "Font Awesome 5 Pro";
    font-weight: 300;
    margin-right: 0.5rem;
    content: "\f52b"; /* fal fa-door-open */
}

.form-group:has(#colorOptions) > .form-label::before {
    font-family: "Font Awesome 5 Pro";
    font-weight: 300;
    margin-right: 0.5rem;
    content: "\f53f"; /* fal fa-palette */
}

.form-group:has(#glassOptions) > .form-label::before {
    font-family: "Font Awesome 5 Pro";
    font-weight: 300;
    margin-right: 0.5rem;
    content: "\f3a5"; /* fal fa-gem */
}

.form-group:has(#handleOptions) > .form-label::before {
    font-family: "Font Awesome 5 Pro";
    font-weight: 300;
    margin-right: 0.5rem;
    content: "\f256"; /* fal fa-hand-paper */
}

.form-group:has(#lockOptions) > .form-label::before {
    font-family: "Font Awesome 5 Pro";
    font-weight: 300;
    margin-right: 0.5rem;
    content: "\f023"; /* fal fa-lock */
}

.form-group:has(#rosetteOptions) > .form-label::before {
    font-family: "Font Awesome 5 Pro";
    font-weight: 300;
    margin-right: 0.5rem;
    content: "\f192"; /* fal fa-dot-circle */
}

.form-group:has(#hingesOptions) > .form-label::before {
    font-family: "Font Awesome 5 Pro";
    font-weight: 300;
    margin-right: 0.5rem;
    content: "\f0c1"; /* fal fa-link */
}

.form-group:has(#doorStopperOptions) > .form-label::before {
    font-family: "Font Awesome 5 Pro";
    font-weight: 300;
    margin-right: 0.5rem;
    content: "\f28d"; /* fal fa-stop-circle */
}

.form-group:has(#sizeOptions) > .form-label::before {
    font-family: "Font Awesome 5 Pro";
    font-weight: 300;
    margin-right: 0.5rem;
    content: "\f546"; /* fal fa-ruler-combined */
}

.form-group:has(#sidePanelOptions) > .form-label::before {
    font-family: "Font Awesome 5 Pro";
    font-weight: 300;
    margin-right: 0.5rem;
    content: "\f0db"; /* fal fa-columns */
}

.form-group:has(#installationOptions) > .form-label::before {
    font-family: "Font Awesome 5 Pro";
    font-weight: 300;
    margin-right: 0.5rem;
    content: "\f0ad"; /* fal fa-wrench */
}

/* Überschreibe Bootstrap's form-check padding */
.form-check {
    padding-left: 0;
}

/* Radio-Input linksbündig mit Label */
.form-check-input {
    margin-left: 0;
}

/* Nur für normale Text-Optionen (nicht Thumbs) */
.form-check:not(.model-option-wrapper):not(.color-option-wrapper):not(.glass-option-wrapper) .form-check-input {
    float: left;
}

.form-check:not(.model-option-wrapper):not(.color-option-wrapper):not(.glass-option-wrapper) .form-check-label {
    padding-left: 1.75rem;
    display: inline-block;
}

/* Korrigiere Bootstrap Row negative margins innerhalb von form-groups */
.form-group .row {
    margin-left: 0;
    margin-right: 0;
}

.model-option,
.color-option,
.glass-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    width: 100%;
}

.color-option {
    gap: 0.25rem;
}

/* Verstecke die Radio-Inputs auch für Glass */
.model-option-wrapper .form-check-input,
.color-option-wrapper .form-check-input,
.glass-option-wrapper .form-check-input {
    display: none;
}

/* Erweitere die Thumbnail-Styles um Glass */
.model-thumb,
.color-box,
.glass-thumb {
    display: block;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
}

/* Model Thumbs - rechteckig 1:2 */
.model-thumb {
    width: 100%;
    aspect-ratio: 1 / 2;
    background-size: cover;
    background-position: center;
}

/* Color und Glass Thumbs - quadratisch */
.color-box,
.glass-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
}

.glass-thumb {
    background-size: cover;
    background-position: center;
}

/* Erweitere die Label-Styles um Glass */
.model-label,
.color-label,
.glass-label {
    text-align: center;
    font-size: 0.9rem;
    margin-top: 8px;
}

.color-label {
    margin-top: 0;
}

/* Erweitere die Styles für ausgewählte Optionen um Glass */
.form-check-input:checked + .model-option .model-thumb,
.form-check-input:checked + .color-option .color-box,
.form-check-input:checked + .glass-option .glass-thumb {
    border-color: rgb(0,155,135);
    box-shadow: 0 0 0 2px rgb(0,155,135);
}

/* Erweitere den Hover-Effekt um Glass */
.model-option:hover .model-thumb,
.color-option:hover .color-box,
.glass-option:hover .glass-thumb {
    transform: scale(1.05);
}

/* Großes Vorschaubild mit Farbüberlagerung */
.model-large-image-container {
    margin-top: 20px;
    text-align: center;
    position: relative;
    min-height: 400px;
}

/* Loading Indikator */
.image-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #666;
}

.image-loader.hidden {
    display: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid rgb(0,155,135);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.image-loader p {
    margin: 0;
    font-size: 0.95rem;
}

.model-large-image-wrapper {
    position: relative;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.model-large-image {
    max-width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
    transition: filter 0.3s ease;
}

.model-color-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    mix-blend-mode: multiply;
    opacity: 0.8;
    pointer-events: none;
    z-index: 2;
    transition: background-color 0.3s ease;
}

.model-mask-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

/* Hellere Farben brauchen weniger Verdunklung */
.model-large-image-wrapper.light-color .model-color-overlay {
    mix-blend-mode: overlay;
    opacity: 0.8;
}

.model-large-image-wrapper.light-color .model-large-image {
    filter: brightness(1.15) contrast(1.05);
}
/* Ergänzung für die Bildunterschrift */
.model-caption {
    margin-top: 0.5rem;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

.model-disclaimer {
    margin-top: 0.25rem;
    text-align: center;
    color: #999;
    font-size: 0.75rem;
    font-style: italic;
}
/* Styles für deaktivierte Optionen */
.form-group:has(.disabled) {
    position: relative;
}

#glassOptions.disabled,
#modelOptions.disabled,
#colorOptions.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.form-group:has(#glassOptions.disabled)::after,
.form-group:has(#modelOptions.disabled)::after,
.form-group:has(#colorOptions.disabled)::after {
    content: "Für das gewählte Modell nicht verfügbar";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    z-index: 10;
    pointer-events: none;
    white-space: nowrap;
}

.form-group:has(.disabled) .form-label {
    color: #999 !important;
}

.disabled .glass-option,
.disabled .model-option,
.disabled .color-option {
    cursor: not-allowed;
}

.disabled .glass-thumb,
.disabled .model-thumb,
.disabled .color-box {
    filter: grayscale(100%);
}

/* Preisanzeige Styles */
.price-card {
    border: 2px solid rgb(0,155,135);
    border-radius: 8px;
}

.price-card .row {
    align-items: center;
}

.price-amount {
    color: rgb(0,155,135);
    text-align: right;
    display: block;
    width: 100%;
}

.price-total {
    background-color: rgb(0,155,135);
    color: white;
    padding: 0.75rem 0;
    margin: 0 -1.25rem -1.25rem -1.25rem;
    border-radius: 0 0 6px 6px;
}

.price-total .col-8,
.price-total .col-4 {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.price-total .col-8 {
    font-weight: bold;
}

.price-total .col-4 {
    font-weight: bold;
    text-align: right !important;
}

/* Angebotsanfrage-Formular Styles */
#submitButton {
    min-width: 200px;
}

#submitButton:disabled {
    cursor: not-allowed;
}

#formMessages {
    margin-bottom: 1rem;
}

/* Info-Button für Bildvorschau */
.preview-info-btn {
    padding: 0 0.25rem;
    margin-left: 0.25rem;
    color: rgb(0,155,135);
    text-decoration: none;
    line-height: 1;
    vertical-align: middle;
}

.preview-info-btn:hover {
    color: rgb(0,125,110);
    text-decoration: none;
}

.preview-info-btn:focus {
    box-shadow: none;
}

.preview-info-btn i {
    font-size: 1rem;
}

/* Modal Bildvorschau */
#previewImageModal .modal-body {
    padding: 2rem;
}

#previewImageModal .modal-body img {
    max-height: 70vh;
    width: auto;
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#previewImageDescription {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Responsive Text für kleinere Bildschirme */
@media (max-width: 767px) {
    .form-check-label {
        font-size: 0.9rem;
    }
}

/* Schriftgröße bei md Breakpoint (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .color-label,
    .color-option .option-desc {
        font-size: 0.8rem;
    }
}