/**
 * Kamera-Beratung Plugin Frontend CSS
 */

/* Allgemeine Stile */
.kb-foto-beratung-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 20px;
    color: #000;
    background-color: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    min-height: 400px;
}

.kb-foto-beratung-container h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #000;
}

.kb-foto-beratung-container h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #000;
}

.kb-foto-beratung-container h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #000;
}

.kb-description {
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Buttons */
.kb-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.kb-primary-button {
    background-color: #4A90E2;
    color: white;
}

.kb-primary-button:hover {
    background-color: #3A7BC8;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.kb-secondary-button {
    background-color: #f0f0f1;
    color: #1d2327;
}

.kb-secondary-button:hover {
    background-color: #dcdcde;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Upload-Box - Diese Stile werden aus der Upload-Card entfernt und auf die einzelnen States angewendet */
.kb-foto-upload-state {
    text-align: center;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.kb-upload-icon {
    margin-bottom: 24px;
    color: #4A90E2;
}

.kb-camera-icon {
    display: block;
    margin: 0 auto;
}

.kb-upload-subtitle {
    color: #666;
    line-height: 1.6;
    margin: 15px auto 30px;
    max-width: 600px;
}

/* Step Indicators */
.kb-step-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px auto;
    max-width: 550px;
}

.kb-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.kb-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #f5f5f5;
    color: #666;
    border-radius: 50%;
    font-weight: 600;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.kb-step.active .kb-step-number {
    background-color: #4A90E2;
    color: white;
    box-shadow: 0 4px 8px rgba(74, 144, 226, 0.3);
}

.kb-step-text {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.kb-step.active .kb-step-text {
    color: #4A90E2;
    font-weight: 600;
}

.kb-step-arrow {
    margin: 0 15px;
    color: #ccc;
    font-size: 18px;
    line-height: 40px;
}

.kb-preview-image-container {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.kb-preview-image-container img {
    max-width: 100%;
    max-height: 400px;
    display: block;
}

.kb-preview-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* Ladeanimation */
.kb-loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(74, 144, 226, 0.2);
    border-radius: 50%;
    border-top-color: #4A90E2;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 20px;
}

.kb-foto-beratung-waiting {
    text-align: center;
    padding: 40px 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Fehleranzeige */
.kb-error-icon {
    margin-bottom: 20px;
    color: #DC3545;
}

/* Formular-Stile */
.kb-form-section {
    margin-bottom: 30px;
    padding: 25px;
    background-color: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.kb-form-section-light {
    background-color: #F8F9FA;
    border: 1px solid #E5E7EB;
    box-shadow: none;
}

.kb-section-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.kb-section-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #F0F9FF;
    margin-right: 12px;
}

.kb-info-box {
    display: flex;
    align-items: flex-start;
    background-color: #EBF5FF;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #4A90E2;
}

.kb-info-icon {
    margin-right: 12px;
    margin-top: 2px;
    flex-shrink: 0;
}

.kb-info-box p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #4A4A4A;
}

/* Power Options Checkboxes - NEW */
.kb-power-options-list {
    margin-bottom: 20px;
    background-color: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    overflow: hidden;
}

.kb-power-option-item {
    border-bottom: 1px solid #E5E7EB;
}

.kb-power-option-item:last-child {
    border-bottom: none;
}

.kb-standard-checkbox {
    display: flex;
    align-items: center;
    padding: 15px;
    cursor: pointer;
    width: 100%;
}

.kb-standard-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.kb-checkbox-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.kb-checkbox-icon .kb-checked {
    display: none;
}

.kb-standard-checkbox input[type="checkbox"]:checked ~ .kb-checkbox-icon .kb-unchecked {
    display: none;
}

.kb-standard-checkbox input[type="checkbox"]:checked ~ .kb-checkbox-icon .kb-checked {
    display: block;
}

.kb-power-option-content {
    display: flex;
    align-items: center;
    flex: 1;
}

.kb-battery-icon,
.kb-solar-icon {
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kb-power-label-group {
    display: flex;
    flex-direction: column;
}

.kb-power-title {
    font-weight: 600;
    font-size: 15px;
    color: #333;
    display: block;
}

.kb-power-desc {
    font-size: 13px;
    color: #666;
    margin-top: 2px;
    display: block;
}

.solar-desc {
    color: #9B33CC;
}

/* Network Grid */
.kb-network-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.kb-network-option {
    position: relative;
}

.kb-network-option label {
    cursor: pointer;
    display: block;
    height: 100%;
}

.kb-network-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.kb-network-card {
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    height: 100%;
    transition: all 0.2s ease;
}

.kb-network-option input[type="radio"]:checked + .kb-network-card {
    border-color: #4A90E2;
    border-width: 3px;
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.5);
}

/* Disabled POE card */
.kb-network-option-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.kb-network-option-disabled .kb-network-card {
    background-color: #f5f5f5;
    border-color: #ddd;
    box-shadow: none;
}

.kb-network-option-disabled label {
    cursor: not-allowed;
}

.kb-network-header {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.kb-check-icon {
    margin-right: 5px;
}

.kb-empfehlen {
    background-color: #28a745;
}

.kb-stabil {
    background-color: #4A90E2;
}

.kb-professionell {
    background-color: #6846C5;
}

.kb-flexibel {
    background-color: #E67E22;
}

.kb-einfach {
    background-color: #DC3545;
}

.kb-network-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.kb-network-icon {
    margin-bottom: 12px;
}

.kb-network-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 12px;
    text-align: center;
}

.kb-network-features {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.kb-network-features li {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.4;
    color: #4A4A4A;
}

.kb-network-features li:last-child {
    margin-bottom: 0;
}

.kb-check-small {
    margin-right: 8px;
    color: #28a745;
    flex-shrink: 0;
}

.kb-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}

.kb-form-group {
    flex: 1;
    min-width: 200px;
}

.kb-form-group-full {
    flex: 100%;
}

.kb-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 15px;
}

.kb-form-group input[type="text"],
.kb-form-group input[type="email"],
.kb-form-group input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.kb-form-group input[type="text"]:focus,
.kb-form-group input[type="email"]:focus,
.kb-form-group input[type="tel"]:focus {
    border-color: #4A90E2;
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

/* Custom Checkboxes */
.kb-form-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
}

.kb-checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-weight: normal;
}

.kb-checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.kb-checkbox-custom {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 12px;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 4px;
    flex-shrink: 0;
    transition: all 0.2s ease;
    margin-top: 1px;
}

.kb-checkbox-label input[type="checkbox"]:checked + .kb-checkbox-custom {
    background-color: #4A90E2;
    border-color: #4A90E2;
}

.kb-checkbox-label input[type="checkbox"]:checked + .kb-checkbox-custom::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.kb-checkbox-label input[type="checkbox"]:focus + .kb-checkbox-custom {
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.3);
}

.required {
    color: #DC3545;
}

.kb-form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

/* Responsive Anpassungen */
@media (max-width: 600px) {
    .kb-foto-beratung-container {
        padding: 15px;
    }
    
    .kb-form-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .kb-form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .kb-form-actions button {
        width: 100%;
    }
    
    .kb-step-indicators {
        flex-direction: row;
        gap: 8px;
        margin: 15px auto;
    }

    .kb-step {
        display: flex;
        flex-direction: row;
        align-items: center;
    }

    .kb-step-number {
        width: 30px;
        height: 30px;
        font-size: 14px;
        margin-bottom: 0;
        margin-right: 5px;
    }

    .kb-step-arrow {
        transform: none;
        margin: 0;
        font-size: 14px;
    }
    
    .kb-network-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Anpassungen */
@media (max-width: 767px) {
    .kb-step-indicators {
        margin: 20px 0;
    }
    
    .kb-step {
        margin: 0 5px;
    }
    
    .kb-step-text {
        font-size: 13px;
    }
    
    .kb-upload-title {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .kb-upload-subtitle {
        font-size: 14px;
        margin-bottom: 15px;
    }
}

/* Media Query für kleine mobile Geräte */
@media (max-width: 480px) {
    .kb-step-indicators {
        margin: 15px 0;
    }
    
    .kb-step-number {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .kb-step-text {
        font-size: 10px;
        display: block;
        text-align: center;
        margin-top: 5px;
    }
    
    .kb-step-arrow {
        margin: 0 3px;
        font-size: 12px;
    }
    
    /* Kompaktere Schrittanzeige für mobile Geräte */
    .kb-step-indicators {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        max-width: 100%;
        background-color: #f5f5f5;
        border-radius: 12px;
        padding: 8px 5px;
        margin: 15px auto;
    }
    
    .kb-step {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 0;
        padding: 0 2px;
    }
    
    .kb-step-number {
        margin: 0 auto 5px;
    }
}

/* KI-Ergebnis Formatierung */
.kb-result-ai {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.kb-result-ai h3 {
    color: #333;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.5em;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.kb-ki-ergebnis-text p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: #333;
}

.kb-ki-ergebnis-text strong.kb-camera-type {
    color: #4A90E2;
    font-weight: 600;
}

.kb-ki-ergebnis-text strong.kb-tech-term {
    color: #28a745;
    font-weight: 600;
}

.kb-error {
    background-color: #FFF5F5;
    border-left: 4px solid #DC3545;
    padding: 15px;
    color: #721c24;
    border-radius: 0 8px 8px 0;
}

/* Feedback-Bereich Styling */
.kb-feedback-container {
    margin: 25px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.kb-feedback-container h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
}

.kb-feedback-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.kb-feedback-button {
    flex: 1;
    max-width: 160px;
    padding: 8px 12px;
    background-color: #f8f9fa;
    color: #555;
    border: 1px solid #dee2e6;
    box-shadow: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.kb-feedback-button:hover {
    background-color: #f1f3f5;
    border-color: #adb5bd;
    transform: translateY(-1px);
}

.kb-feedback-button.kb-positive.active {
    background-color: #e6f7ee;
    border-color: #28a745;
    color: #28a745;
}

.kb-feedback-button.kb-negative.active {
    background-color: #fff5f5;
    border-color: #dc3545;
    color: #dc3545;
}

.kb-feedback-text {
    margin-top: 15px;
}

.kb-feedback-text label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #333;
}

#kb-feedback-comment {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 15px;
    margin-bottom: 15px;
    resize: vertical;
}

#kb-feedback-comment:focus {
    border-color: #80bdff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

#kb-send-negative-feedback {
    background-color: #f8f9fa;
    color: #555;
    border: 1px solid #ced4da;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 500;
}

#kb-send-negative-feedback:hover {
    background-color: #e9ecef;
    color: #333;
}

/* Weitere Beratung Styling */
.kb-weitere-beratung {
    margin: 25px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.kb-weitere-beratung h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
}

.kb-weitere-beratung-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.kb-weitere-beratung-button {
    flex: 1;
    max-width: 160px;
    padding: 8px 12px;
    background-color: #f8f9fa;
    color: #555;
    border: 1px solid #dee2e6;
    box-shadow: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.kb-weitere-beratung-button:hover {
    background-color: #f1f3f5;
    border-color: #adb5bd;
    transform: translateY(-1px);
}

.kb-weitere-beratung-button.kb-positive.active {
    background-color: #e6f7ee;
    border-color: #28a745;
    color: #28a745;
}

.kb-weitere-beratung-button.kb-negative.active {
    background-color: #fff5f5;
    border-color: #dc3545;
    color: #dc3545;
}

#kb-beratung-comment {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 15px;
    margin-bottom: 15px;
    resize: vertical;
}

#kb-beratung-comment:focus {
    border-color: #80bdff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

#kb-send-beratung {
    background-color: #f8f9fa;
    color: #555;
    border: 1px solid #ced4da;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 500;
}

#kb-send-beratung:hover {
    background-color: #e9ecef;
    color: #333;
}

/* Thankyou message */
.kb-thank-you {
    margin-top: 30px;
    padding: 20px;
    background-color: #e6f7ee;
    border-radius: 8px;
    border-left: 4px solid #28a745;
} 