/* Zählerschrank Planer CSS */

.zaehlerschrank-planer {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Progress Bar Styles */


















/* Card Styles */
.card {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.card-header {
    border-bottom: none;
    padding: 20px 25px;
    font-weight: 600;
}

.card-body {
    padding: 25px;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 12px 15px;
    transition: all 0.3s ease;
    font-size: 1rem;
    min-height: 48px; /* Mindesthöhe für bessere Lesbarkeit */
}

/* Spezielle Styles für Select-Felder */
.form-control select,
select.form-control {
    min-height: 48px;
    line-height: 1.5;
    padding: 12px 15px;
}

/* Anschlussräume Dropdown spezifisch */
.anschlussraeume-select {
    min-height: 52px !important;
    padding: 14px 15px !important;
    font-size: 1rem;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
    transform: translateY(-1px);
}

.form-check {
    margin-bottom: 12px;
    padding-left: 1.8rem;
}

.form-check-input {
    width: 1.2rem;
    height: 1.2rem;
    margin-top: 0.2rem;
    margin-left: -1.8rem;
}

.form-check-label {
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease;
}

.form-check-input:checked + .form-check-label {
    color: #007bff;
}

/* Button Styles */
.btn {
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    text-transform: none;
}

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

.btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #212529;
}

.btn-info {
    background: linear-gradient(135deg, #17a2b8 0%, #117a8b 100%);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #545b62 100%);
}

.btn-outline-primary {
    border: 2px solid #007bff;
    color: #007bff;
    background: transparent;
}

.btn-outline-primary:hover {
    background: #007bff;
    color: white;
}

/* System Option Styles */
.system-option {
    border: 3px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    background: white;
}

.system-option:hover {
    border-color: #007bff;
    box-shadow: 0 4px 20px rgba(0,123,255,0.15);
    transform: translateY(-2px);
}

.system-option.recommended {
    border-color: #28a745;
    background: linear-gradient(135deg, #f8fff9 0%, #e8f5e8 100%);
}

.system-option.recommended::before {
    content: "Empfohlen";
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(40,167,69,0.3);
}

/* Alert Styles */
.alert {
    border-radius: 10px;
    border: none;
    padding: 20px;
    margin-bottom: 20px;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

/* Table Styles */
.table {
    margin-bottom: 0;
}

.table td {
    border: none;
    padding: 12px 15px;
    vertical-align: middle;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0,0,0,0.02);
}

.table-info td {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%) !important;
    color: #0c5460;
}

.table-warning td {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%) !important;
    color: #856404;
}

/* Price Display */
.price-display {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    border: 3px solid #28a745;
    position: relative;
    overflow: hidden;
}

.price-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
}

.price-label {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 8px;
    font-weight: 500;
}

.price-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #28a745;
    text-shadow: 0 2px 4px rgba(40,167,69,0.2);
}

/* Calculation Result */
.calculation-result {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #dee2e6;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
}

.result-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.result-item .label {
    font-weight: 600;
    color: #495057;
}

.result-item .value {
    font-weight: bold;
    color: #007bff;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    
    
    
    
    
    
    .card-body {
        padding: 20px;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .price-value {
        font-size: 2rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Print Styles */
@media print {
    .btn, 
    
    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
        break-inside: avoid;
    }
    
    .zaehlerschrank-planer {
        font-size: 12pt;
    }
    
    .price-value {
        color: #000 !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    
    
    
    
    
}

/* ===== HORIZONTALE PROGRESS-BAR (DEFINITIV) ===== */
.progress-bar {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin: 30px 0 !important;
    padding: 20px 0 !important;
    position: relative !important;
    background: transparent !important;
    max-width: 600px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Verbindungslinie zwischen den Schritten */
.progress-bar::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 10% !important;
    right: 10% !important;
    height: 3px !important;
    background: linear-gradient(to right, #28a745 0%, #28a745 33%, #e9ecef 33%, #e9ecef 100%) !important;
    z-index: 1 !important;
    transform: translateY(-50%) !important;
}

.progress-step {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    position: relative !important;
    z-index: 2 !important;
    background: white !important;
    padding: 10px !important;
    flex: 1 !important;
    max-width: 120px !important;
    text-align: center !important;
}

.step-number {
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: bold !important;
    font-size: 18px !important;
    margin-bottom: 10px !important;
    border: 3px solid #e9ecef !important;
    background: white !important;
    color: #6c757d !important;
    transition: all 0.3s ease !important;
}

.step-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    text-align: center !important;
    color: #6c757d !important;
    line-height: 1.2 !important;
    margin: 0 !important;
}

/* Aktiver Schritt */
.progress-step.active .step-number {
    background: #007bff !important;
    border-color: #007bff !important;
    color: white !important;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2) !important;
}

.progress-step.active .step-title {
    color: #007bff !important;
    font-weight: bold !important;
}

/* Abgeschlossener Schritt */
.progress-step.completed .step-number {
    background: #28a745 !important;
    border-color: #28a745 !important;
    color: white !important;
}

.progress-step.completed .step-title {
    color: #28a745 !important;
    font-weight: bold !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .progress-bar {
        margin: 20px 0 !important;
        padding: 15px 0 !important;
    }
    
    .progress-step {
        max-width: 80px !important;
        padding: 5px !important;
    }
    
    .step-number {
        width: 40px !important;
        height: 40px !important;
        font-size: 16px !important;
        margin-bottom: 8px !important;
    }
    
    .step-title {
        font-size: 12px !important;
    }
}

@media (max-width: 480px) {
    .step-title {
        font-size: 10px !important;
    }
    
    .step-number {
        width: 35px !important;
        height: 35px !important;
        font-size: 14px !important;
    }
}
