/* ================================================
   Driller Haustechnik – Sanierungs-Checkliste
   ================================================ */

/* Hero */
.checkliste-hero {
    background: linear-gradient(135deg, #1C439B 0%, #0f3460 100%);
    color: #fff;
    padding: 3rem 0 2.5rem;
    text-align: center;
}
.checkliste-hero h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: 'Roboto', sans-serif;
}
.checkliste-hero .lead {
    color: rgba(255,255,255,0.75);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

/* Brand colours */
.bg-driller-dark  { background-color: #1C439B !important; }
.text-driller-dark { color: #1C439B !important; }
.text-driller-blue { color: #0086CC !important; }

.btn-driller {
    background-color: #0086CC;
    color: #fff;
    border: none;
    font-weight: 600;
    transition: all 0.2s;
}
.btn-driller:hover {
    background-color: #006ba3;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,134,204,0.35);
}

/* Step Indicator */
.step-indicator {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}
.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 70px;
    max-width: 130px;
    position: relative;
    cursor: pointer;
    padding: 8px 4px;
    transition: all 0.3s;
}
.step-item::after {
    content: '';
    position: absolute;
    top: 22px;
    left: 55%;
    width: 90%;
    height: 3px;
    background: #dee2e6;
    z-index: 0;
}
.step-item:last-child::after { display: none; }
.step-item.completed::after { background: #1C439B; }

.step-number {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #dee2e6;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 1;
    transition: all 0.3s;
    border: 3px solid transparent;
    position: relative;
}
.step-item.active .step-number {
    background: #1C439B;
    color: #fff;
    border-color: #0d2d6e;
    transform: scale(1.1);
}
.step-item.completed .step-number {
    background: #0086CC;
    color: #fff;
}
.step-label {
    font-size: 0.68rem;
    color: #999;
    margin-top: 4px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s;
}
.step-item.active .step-label  { color: #1C439B; font-weight: 700; }
.step-item.completed .step-label { color: #0086CC; }

/* Wizard Steps */
.wizard-step { display: none; animation: clFadeIn 0.35s ease; }
.wizard-step.active { display: block; }
@keyframes clFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Card header override */
.checkliste-hero + .container .card-header h5 { font-size: 1.05rem; }

/* Brand check items */
.brand-check {
    padding: 0.55rem 0.75rem 0.55rem 2.25rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.2s;
    background: #fff;
}
.brand-check:hover {
    border-color: #1C439B;
    background: #f5f8ff;
}
.brand-check .form-check-input:checked ~ .form-check-label {
    color: #1C439B;
    font-weight: 600;
}
.brand-check .form-check-input:checked {
    background-color: #1C439B;
    border-color: #1C439B;
}

/* Brand table */
.brand-table {
    font-size: 0.88rem;
    border-collapse: separate;
    border-spacing: 0;
}
.brand-table thead th {
    background: #1C439B;
    color: #fff;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.6rem 0.75rem;
    border: none;
}
.brand-table tbody tr { transition: background 0.15s; }
.brand-table tbody tr:hover { background: #eef4ff !important; }
.brand-table td {
    padding: 0.5rem 0.75rem;
    vertical-align: middle;
    border-bottom: 1px solid #eee;
}

/* Required label */
.required-label::after {
    content: ' *';
    color: #dc3545;
    font-weight: 700;
}

/* Form controls */
.form-control:focus,
.form-select:focus {
    border-color: #1C439B;
    box-shadow: 0 0 0 0.2rem rgba(28,67,155,0.15);
}

/* Responsive */
@media (max-width: 768px) {
    .checkliste-hero h1 { font-size: 1.65rem; }
    .step-label   { font-size: 0.58rem; }
    .step-number  { width: 30px; height: 30px; font-size: 0.78rem; }
    .step-item    { min-width: 42px; }
    .brand-table  { font-size: 0.78rem; }
}
