/* Lokales Styling für den Wizard */
.wizard-container {
    max-width: 1120px;
    margin: 0 auto 80px;
    position: relative;
    z-index: 4;
}

.wizard-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
    background: #fff;
}

.wizard-header {
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    padding: 25px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.step-indicator {
    display: flex;
    gap: 8px;
    margin: 0;
}

.step-dot {
    width: 10px;
    height: 10px;
    background-color: #e9ecef;
    border-radius: 50%;
    transition: all 0.3s;
    cursor: pointer;
}
.step-dot.active { background-color: var(--brand-accent-blue); transform: scale(1.1); }
.step-dot.disabled { 
    cursor: default !important; 
    opacity: 0.5; 
    pointer-events: none; 
}

.wizard-body {
    padding: 34px 38px 38px;
}

/* Verbrauchserfassung: fehlende / fehlerhafte Felder dezent hervorheben (auch bei border-0 Datumfeldern) */
.date-input-group.ea-field-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.12rem rgba(220, 53, 69, 0.2);
}
.date-input-group .ea-date-picker-trigger {
    cursor: pointer;
    user-select: none;
}
.date-input-group .ea-date-picker-trigger:hover,
.date-input-group .ea-date-picker-trigger:focus {
    color: #0d6efd;
    outline: none;
}
.heating-system-card .form-control.is-ea-invalid,
.heating-system-card .form-select.is-ea-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.1rem rgba(220, 53, 69, 0.15);
}
.heating-system-card .period-row-sys.border-danger {
    outline: 2px solid rgba(220, 53, 69, 0.35);
    outline-offset: 0;
    border-radius: 8px;
}

.energy-step-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    margin: 0;
}

.energy-step-main {
    min-width: 0;
}

.energy-step-main-panel {
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 18px;
    background: #fff;
    padding: 24px 22px 26px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
}

.energy-step-info {
    position: sticky;
    top: 24px;
    align-self: start;
    min-width: 0;
    padding: 0;
    transition: width 0.25s ease;
}

.energy-info-toggle {
    width: 100%;
    margin-bottom: 10px;
    border-radius: 8px;
    white-space: normal;
    line-height: 1.3;
}

.energy-info-card {
    border: 1px solid rgba(74, 144, 226, 0.12);
    border-radius: 18px;
    background: #f8fbff;
    padding: 18px 18px 16px;
    box-shadow: 0 10px 24px rgba(74, 144, 226, 0.08);
}

.energy-info-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-accent-blue);
    margin-bottom: 8px;
}

.energy-info-title {
    font-weight: 700;
    color: #22344d;
    margin-bottom: 10px;
}

.energy-info-text {
    color: #4d5d72;
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 12px;
    text-align: justify;
    text-justify: inter-word;
}

.energy-info-list {
    margin: 0;
    padding-left: 18px;
    color: #4d5d72;
    font-size: 0.9rem;
    text-align: left !important;
    text-justify: auto;
}

.energy-info-list li {
    text-align: left !important;
    text-justify: auto;
    line-height: 1.55;
}

.energy-info-list li + li {
    margin-top: 8px;
}

.energy-step-info.is-collapsed .energy-info-card {
    display: none;
}

.energy-step-info.is-collapsed .energy-info-toggle {
    min-height: 220px;
    margin-bottom: 0;
    padding: 12px 8px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
}

.question-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 2rem;
    font-size: 1.35rem;
    letter-spacing: -0.5px;
}

.option-card {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 15px;
}

.option-card:hover {
    border-color: var(--brand-accent-blue);
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.1);
    transform: translateY(-2px);
}

.option-card.selected {
    border-color: var(--brand-accent-blue);
    background-color: #f0f7ff;
    color: var(--brand-accent-blue);
}

.option-icon {
    font-size: 1.4rem;
    margin-bottom: 0;
    color: #6c757d;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 50%;
    transition: all 0.2s;
}

.option-card.selected .option-icon {
    background: var(--brand-accent-blue);
    color: #fff;
}

/* Unterlagen & Nutzung (Funnel Schritt step_docs) */
.ea-docs-step {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 52rem;
}

.ea-docs-step__intro {
    margin: 0;
}

.ea-docs-step__title {
    margin: 0 0 0.25rem;
}

.ea-docs-step__lead {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.4;
}

.ea-docs-block {
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.ea-docs-block__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.15rem;
}

.ea-docs-block__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.01em;
}

.ea-docs-block__hint {
    margin: 0 0 0.65rem;
    font-size: 0.8rem;
    line-height: 1.35;
    color: #64748b;
}

.ea-docs-block__lock {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
    white-space: nowrap;
}

.ea-docs-block__lock .ea-tool-icon--svg {
    width: 0.75rem;
    height: 0.75rem;
    display: block;
    flex-shrink: 0;
}

.ea-docs-block:not(.section-disabled) .ea-docs-block__lock {
    display: none;
}

.ea-docs-grid {
    display: grid;
    gap: 0.65rem;
    align-items: stretch;
}

.ea-docs-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ea-docs-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ea-docs-tile.option-card {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.7rem;
    margin: 0;
    min-height: 0;
    height: 100%;
    padding: 0.75rem 0.85rem;
    border: 1.5px solid #dbe3ee;
    border-radius: 12px;
    background: #fff;
    box-shadow: none;
    transform: none;
    color: #1e293b;
}

.ea-docs-tile.option-card:hover {
    border-color: rgba(74, 144, 226, 0.45);
    background: #fff;
    box-shadow: 0 2px 10px rgba(74, 144, 226, 0.08);
    transform: none;
}

.ea-docs-tile.option-card.selected {
    border-color: var(--brand-accent-blue, #4a90e2);
    background: rgba(74, 144, 226, 0.05);
    box-shadow: 0 0 0 1px rgba(74, 144, 226, 0.12);
    color: #1e293b;
}

.ea-docs-tile__icon.option-icon {
    flex-shrink: 0;
    width: 2.1rem;
    height: 2.1rem;
    font-size: 0.95rem;
    margin: 0;
    background: rgba(74, 144, 226, 0.1);
    color: var(--brand-hero-blue, #015a9a);
}

.ea-docs-tile__icon.option-icon .ea-tool-icon--svg {
    width: 1.05rem;
    height: 1.05rem;
    display: block;
}

.ea-docs-tile.selected .ea-docs-tile__icon.option-icon {
    background: rgba(74, 144, 226, 0.18);
    color: var(--brand-hero-blue, #015a9a);
}

.ea-docs-tile__body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.ea-docs-tile__title {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.25;
    color: #1e293b;
}

.ea-docs-tile__sub {
    display: block;
    font-size: 0.75rem;
    line-height: 1.35;
    color: #64748b;
}

.ea-docs-detail {
    margin-top: 0.75rem;
    padding: 0.65rem 0 0.15rem 0.85rem;
}

#card_usage_situation.section-disabled {
    opacity: 1;
    pointer-events: none;
    position: relative;
}

#card_usage_situation.section-disabled .ea-docs-grid,
#card_usage_situation.section-disabled .ea-docs-block__hint {
    opacity: 0.48;
}

#card_usage_situation.section-disabled .ea-docs-tile.option-card {
    background: #f8fafc;
    border-color: #e2e8f0;
    box-shadow: none;
}

#card_usage_situation.section-disabled .ea-docs-tile__icon.option-icon {
    background: rgba(15, 79, 130, 0.06);
    color: #7a8ea3;
}

#card_data_avail.ea-data-avail--no {
    border-radius: 12px;
    padding: 0.75rem 0.85rem;
    background: rgba(220, 53, 69, 0.05);
    border: 1px solid rgba(220, 53, 69, 0.18);
}

.ea-doc-tiles .ea-doc-tile {
    min-height: 130px;
    position: relative;
    margin-bottom: 0;
}
.ea-doc-tiles .ea-doc-tile .ea-doc-tile-mark {
    font-size: 1.35rem;
    color: #cbd5e1;
    line-height: 1;
    transition: color 0.2s, transform 0.2s;
}
.ea-doc-tiles .ea-doc-tile.selected {
    border-color: var(--brand-accent-blue);
    background: linear-gradient(135deg, #f0f7ff 0%, #fff 100%);
    box-shadow: 0 8px 24px rgba(74, 144, 226, 0.12);
}
.ea-doc-tiles .ea-doc-tile.selected .ea-doc-tile-mark {
    color: #198754;
    transform: scale(1.05);
}
.ea-doc-tiles .ea-doc-tile.selected small {
    color: #475569 !important;
}
#ea_funnel_docs_btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

@media (max-width: 767.98px) {
    .ea-docs-grid--2,
    .ea-docs-grid--3 {
        grid-template-columns: 1fr;
    }
}

/* Versteckte Radio-Buttons */
.hidden-radio { display: none; }

/* Animationen */
.step-section {
    display: none;
}
.step-section.active { display: block; }

.btn-next {
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: transform 0.2s;
}

.btn-next:hover {
    transform: translateY(-2px);
}

/* Styles für Detail-Kacheln (Schritt 2) */
.detail-card {
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 20px;
    height: 100%;
    background: #fff;
    transition: border-color 0.2s;
}
.detail-card:hover {
    border-color: var(--brand-accent-blue);
}
.detail-card h6 {
    font-weight: 700;
    color: #495057;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Styles für Timeline (Schritt 4) */
.period-row {
    border-left: 4px solid var(--brand-accent-blue);
}

/* Pflichtfeld-Glow */
.form-control.required-highlight:placeholder-shown,
.form-select.required-highlight:invalid {
    border-color: #fd7e14;
    box-shadow: 0 0 0 0.2rem rgba(253, 126, 20, 0.25);
}

/* --- SCHRITT 2: DETAILPRÜFUNG (BAUSUBSTANZ) --- */

/* Dynamische Listen-Elemente */
.dynamic-item-card {
    border-left: 4px solid #dee2e6;
    transition: all 0.3s ease;
    background-color: #fff;
}
.dynamic-item-card.status-ok { border-left-color: #198754; background-color: #f8fff9; }
.dynamic-item-card.status-warn { border-left-color: #ffc107; }
.dynamic-item-card.status-ko { border-left-color: #dc3545; background-color: #fff5f5; }

.status-badge { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.text-ko { color: #dc3545; }

.btn-remove-row { color: #adb5bd; cursor: pointer; transition: color 0.2s; }
.btn-remove-row:hover { color: #dc3545; }

/* Kompakte Auswahl-Kacheln (Mini-Tiles) */
.mini-option-card {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 10px 5px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #555;
}
.mini-option-card:hover {
    border-color: var(--brand-accent-blue);
    background-color: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.mini-option-card.selected {
    border-color: var(--brand-accent-blue);
    background-color: #e7f1ff;
    color: var(--brand-accent-blue);
    font-weight: 600;
    box-shadow: inset 0 0 0 1px var(--brand-accent-blue);
}
.mini-option-card i { font-size: 1.2rem; margin-bottom: 6px; color: #adb5bd; transition: color 0.2s; }
.mini-option-card.selected i { color: var(--brand-accent-blue); }
.mini-option-card small { font-size: 0.7rem; line-height: 1.1; display: block; }

/* --- FEEDBACK STATES (Schritt 3) --- */
.card-success-bg {
    background-color: #f0fff4 !important;
    border-color: #198754 !important;
}

.card-danger-bg {
    background-color: #fff5f5 !important;
    border-color: #dc3545 !important;
}

.section-disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* --- SMART DATE PICKER --- */
.energy-date-picker {
    --picker-panel-h: calc(1.25rem + 6 * 2rem + 5 * 0.15rem); /* Wochentage + 6 Tageszeilen */
    position: fixed;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #d8e0ea;
    border-radius: 12px;
    padding: 0.65rem 0.7rem 0.7rem;
    z-index: 1060;
    width: 300px;
    max-width: calc(100vw - 1.5rem);
    max-height: min(420px, 70vh);
    overflow-y: auto;
    font-family: inherit;
    font-size: 0.8125rem;
    color: #1e293b;
    box-shadow: 0 10px 28px rgba(15, 40, 70, 0.16);
}

.picker-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.55rem;
    flex-shrink: 0;
}

.picker-nav-btn {
    flex: 0 0 2rem;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 8px;
    background: #f1f5f9;
    color: #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.picker-nav-btn:hover {
    background: #e2e8f0;
}

.picker-nav-title {
    flex: 1 1 auto;
    border: 0;
    background: transparent;
    font-size: 0.875rem;
    font-weight: 650;
    color: #0f4f82;
    padding: 0.35rem 0.25rem;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
}

.picker-nav-title:hover {
    background: #f1f5f9;
}

/* Tag / Monat / Jahr: gleiche Panelhöhe → Nav + Footer springen nicht */
.picker-days,
.picker-years,
.picker-months {
    box-sizing: border-box;
    min-height: var(--picker-panel-h);
    height: var(--picker-panel-h);
    margin-bottom: 0;
}

.picker-years {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
    align-content: start;
}

.picker-year-btn,
.picker-month-btn,
.picker-day-btn {
    border: 1px solid transparent;
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
    font-size: 0.8125rem;
    font-weight: 500;
    min-height: 2.1rem;
    padding: 0.3rem 0.2rem;
    cursor: pointer;
    line-height: 1.1;
}

.picker-year-btn:hover,
.picker-month-btn:hover,
.picker-day-btn:hover {
    background: #e8f1f8;
    border-color: rgba(15, 79, 130, 0.18);
}

.picker-year-btn.is-active,
.picker-month-btn.is-active,
.picker-day-btn.is-active {
    background: #0f4f82;
    border-color: #0f4f82;
    color: #fff;
    font-weight: 650;
}

.picker-months {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
    align-content: start;
}

.picker-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.15rem;
    margin-bottom: 0.25rem;
}

.picker-weekdays span {
    text-align: center;
    font-size: 0.68rem;
    font-weight: 650;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding: 0.15rem 0;
}

.picker-day-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    grid-template-rows: repeat(6, minmax(2rem, auto));
    gap: 0.15rem;
    min-height: calc(6 * 2rem + 5 * 0.15rem);
}

.picker-day-empty {
    min-height: 2rem;
    visibility: hidden;
}

.picker-day-btn {
    min-height: 2rem;
    font-variant-numeric: tabular-nums;
}

#energy-picker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.28);
    z-index: 1040;
}

.picker-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.45rem;
    margin-top: 0.65rem;
    padding-top: 0.55rem;
    border-top: 1px solid #eef2f6;
    flex-shrink: 0;
}

.picker-footer .btn {
    font-size: 0.78rem;
    border-radius: 999px;
    padding: 0.28rem 0.85rem;
}

/* Custom Select: geschlossenes Feld = normale Select-Größe; geöffnete Liste = kompakter */
.ea-select-wrap {
    position: relative;
    width: 100%;
}

.ea-native-select-sr {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.ea-select-trigger {
    text-align: left;
    width: 100%;
}

.ea-select-trigger.is-placeholder {
    color: #6c757d;
}

.ea-select-menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 1080;
    max-height: 240px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #d8e0ea;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(15, 40, 70, 0.16);
    padding: 0.35rem;
}

.ea-select-wrap.is-open .ea-select-menu {
    display: block;
}

.ea-select-group {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #94a3b8;
    padding: 0.45rem 0.55rem 0.2rem;
}

.ea-select-option {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    border-radius: 7px;
    padding: 0.35rem 0.55rem;
    font-size: 0.8125rem;
    line-height: 1.25;
    color: #334155;
    cursor: pointer;
}

.ea-select-option:hover:not(.is-disabled),
.ea-select-option:focus-visible:not(.is-disabled) {
    background: #e8f1f8;
    outline: none;
}

.ea-select-option.is-selected {
    background: #0f4f82;
    color: #fff;
    font-weight: 600;
}

.ea-select-option.is-disabled {
    color: #94a3b8;
    cursor: default;
}

/* Verbrauchszeiträume: tabellarisch, Entfernen in der Zeile */
.ea-period-table {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.ea-period-table__head {
    display: grid;
    grid-template-columns: 2.25rem minmax(7.5rem, 1fr) minmax(7.5rem, 1fr) minmax(9rem, 1.35fr) 2.25rem;
    gap: 0.45rem;
    align-items: center;
    padding: 0.4rem 0.55rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ea-period-row {
    border-bottom: 1px solid #eef2f6;
    will-change: transform;
}

.ea-period-row--moved {
    z-index: 2;
    position: relative;
    animation: ea-period-moved-pulse 0.85s ease-out;
}

@keyframes ea-period-moved-pulse {
    0% { background-color: rgba(13, 110, 253, 0.14); }
    100% { background-color: transparent; }
}

.ea-period-sort-hint {
    display: block;
    margin: 0.35rem 0.55rem 0.15rem;
    padding: 0.35rem 0.65rem;
    font-size: 0.78rem;
    color: #1e4f8a;
    background: #eef5ff;
    border: 1px solid rgba(13, 110, 253, 0.18);
    border-radius: 8px;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.28s ease, transform 0.28s ease;
    pointer-events: none;
}

.ea-period-sort-hint--visible {
    opacity: 1;
    transform: translateY(0);
}

.ea-period-sort-hint--fade {
    opacity: 0;
    transform: translateY(-2px);
}

.ea-periods-container.ea-periods--sorting .row-error-msg {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.ea-periods-container.ea-periods--sorting .period-row-sys.border-danger,
.ea-periods-container.ea-periods--sorting .period-row-sys.border-warning {
    outline-color: transparent !important;
    box-shadow: none !important;
    transition: outline-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.ea-periods-container.ea-periods--sorting .period-row-sys.border-danger {
    background: transparent;
}

.ea-periods-container.ea-periods--sorting .form-control.is-ea-invalid {
    border-color: #dee2e6 !important;
    box-shadow: none !important;
}

.ea-period-row:last-child {
    border-bottom: 0;
}

.ea-period-row__grid {
    display: grid;
    grid-template-columns: 2.25rem minmax(7.5rem, 1fr) minmax(7.5rem, 1fr) minmax(9rem, 1.35fr) 2.25rem;
    gap: 0.45rem;
    align-items: center;
    padding: 0.35rem 0.55rem;
    transition: outline-color 0.28s ease, box-shadow 0.28s ease, background-color 0.28s ease;
}

.heating-system-card .row-error-msg {
    transition: opacity 0.28s ease;
}

.ea-period-row__grid.border-danger {
    background: #fff8f8;
}

.ea-period-row .row-number {
    justify-self: center;
    font-size: 0.72rem;
}

.ea-period-date {
    overflow: hidden;
    min-width: 0;
}

.ea-period-row__val {
    display: flex;
    gap: 0.35rem;
    min-width: 0;
}

.ea-period-row__val .val-input {
    flex: 1 1 auto;
    min-width: 0;
}

.ea-period-row__val .form-select {
    flex: 0 0 auto;
    width: auto;
    min-width: 4.5rem;
}

.ea-period-row__del {
    padding: 0.25rem;
    line-height: 1;
    text-decoration: none !important;
}

.ea-period-row__del:hover {
    background: #ffebee;
    border-radius: 6px;
}

.heating-system-card .period-row-sys.border-danger {
    box-shadow: inset 0 0 0 1px #dc3545;
}

@media (max-width: 700px) {
    .ea-period-table {
        overflow-x: auto;
    }
    .ea-period-table__head,
    .ea-period-row__grid {
        min-width: 520px;
    }
    .ea-vacancy-table__head,
    .ea-vacancy-row__grid {
        min-width: 640px;
    }
}

/* Leerstand: gleiches Tabellenraster wie Verbrauchszeiträume */
.ea-vacancy-table__head,
.ea-vacancy-row__grid {
    grid-template-columns:
        2.25rem
        minmax(7rem, 1.15fr)
        minmax(6.25rem, 1fr)
        minmax(6.25rem, 1fr)
        minmax(5.5rem, 0.9fr)
        minmax(5rem, 0.8fr)
        2.25rem;
}

.ea-vacancy-row__grid {
    display: grid;
    gap: 0.45rem;
    align-items: center;
    padding: 0.35rem 0.55rem;
}

.ea-vacancy-row__grid.border-danger {
    background: #fff8f8;
    box-shadow: inset 0 0 0 1px #fd7e14;
}

.ea-vacancy-row__val {
    min-width: 0;
}

.ea-vacancy-row__val .form-control {
    min-width: 0;
}

.ea-period-row.vacancy-row-invalid .ea-vacancy-row__grid {
    background: #fff8f0;
}

/* Upload-Kacheln (SC2 / Mockup B09) – 4 Kacheln: 2×2, auf breit 4er-Reihe */
.ea-upload-tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (min-width: 900px) {
    .ea-upload-tiles {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.ea-upload-hint {
    line-height: 1.35;
}

.ea-upload-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 7.5rem;
    padding: 1rem 0.75rem;
    border: 1.5px dashed rgba(1, 90, 154, 0.35);
    border-radius: 12px;
    background: #f8fafc;
    color: #334155;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.ea-upload-tile__check {
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    background: #16a34a;
    color: #fff;
    font-size: 0.65rem;
    display: none;
    align-items: center;
    justify-content: center;
}

.ea-upload-tile.is-filled .ea-upload-tile__check {
    display: inline-flex;
}

/* B09 Upload & Abschluss */
.ea-b09-block {
    margin-bottom: 1.15rem;
    padding: 0.85rem 0.9rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
}

.ea-b09-block__head {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.75rem;
}

.ea-b09-block__num {
    flex: 0 0 1.55rem;
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 999px;
    background: #015a9a;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ea-b09-block__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}

/* Abschnitt 3 Rechtliches: alle 3 Bestätigungen gesetzt */
.ea-b09-block.is-complete {
    border-color: rgba(25, 135, 84, 0.45);
    background: linear-gradient(180deg, #f3faf6 0%, #e8f6ee 100%);
}

.ea-b09-block.is-complete .ea-b09-block__num {
    background: #198754;
}

.ea-b09-block.is-complete .ea-b09-block__title {
    color: #0f5132;
}

.ea-b09-block.is-complete .ea-b09-legal-card:has(input:checked) {
    border-color: rgba(25, 135, 84, 0.45);
    background: #f3faf6;
}

.ea-b09-block.is-complete .ea-b09-legal-card .form-check-input:checked {
    background-color: #198754;
    border-color: #198754;
}

.ea-b09-contacts {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 1rem;
    align-items: start;
}

.ea-b09-obj-box {
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.ea-b09-obj-box__label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.25rem;
}

.ea-b09-obj-box__text {
    font-size: 0.88rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.35;
}

.ea-b09-rechnung-block {
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
}

.ea-b09-rechnung-block__label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.5rem;
}

.ea-b09-rech-fields {
    padding-left: 0.15rem;
}

.form-control.ea-billing-from-object {
    background-color: #f1f5f9;
    border-color: #e2e8f0;
    cursor: default;
}

.ea-b09-legal {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.ea-b09-legal-card {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin: 0;
    padding: 0.7rem 0.8rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}

.ea-b09-legal-card:has(input:checked) {
    border-color: rgba(1, 90, 154, 0.45);
    background: #f8fbfe;
}

.ea-b09-legal-card .form-check-input {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.ea-b09-legal-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.ea-b09-legal-card__title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
}

.ea-b09-legal-card__sub {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.35;
}

.ea-b09-checklist {
    margin-top: 0.25rem;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
}

.ea-b09-checklist__title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #065f46;
    margin-bottom: 0.4rem;
}

.ea-b09-checklist__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.ea-b09-checklist__item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8rem;
    color: #64748b;
}

.ea-b09-checklist__item[data-ok="1"] {
    color: #065f46;
    font-weight: 600;
}

.ea-b09-checklist__item[data-ok="1"] i {
    color: #16a34a;
}

.ea-b09-checklist__item[data-ok="0"] i {
    color: #94a3b8;
    font-size: 0.65rem;
}

.ea-b09-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 700px) {
    .ea-b09-contacts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .ea-upload-tiles {
        grid-template-columns: 1fr;
    }
}

.ea-upload-tile:hover,
.ea-upload-tile:focus-visible {
    border-color: #015a9a;
    background: #f0f7fc;
    outline: none;
    box-shadow: 0 0 0 3px rgba(1, 90, 154, 0.12);
}

.ea-upload-tile.is-filled {
    border-style: solid;
    border-color: #015a9a;
    background: #fff;
}

.ea-upload-tile.is-filled .ea-upload-tile__status {
    color: #0f766e;
    font-weight: 650;
}

.ea-upload-tile--primary {
    border-color: rgba(1, 90, 154, 0.55);
    background: #f0f7fc;
}

.ea-upload-tile--primary .ea-upload-tile__icon {
    background: rgba(1, 90, 154, 0.16);
    font-size: 1.15rem;
}

.ea-upload-tile--optional {
    border-color: #cbd5e1;
    background: #fff;
}

.ea-upload-tile__icon {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(1, 90, 154, 0.1);
    color: #015a9a;
    font-size: 1.05rem;
}

.ea-upload-tile__title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
}

.ea-upload-tile__status {
    font-size: 0.75rem;
    color: #64748b;
}

.ea-upload-list-item .ea-upload-file-status {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    white-space: nowrap;
}

.ea-upload-list-item .ea-upload-file-status--loading {
    color: #2563eb;
}

#ea_upload_list:not(:empty) {
    margin-top: 0.5rem;
    padding-top: 0.25rem;
    border-top: 1px solid #e2e8f0;
}

/* --- KOMPAKTERE EINGABEFELDER IM WIZARD --- */
.wizard-body .form-control-sm, 
.wizard-body .form-select-sm,
.wizard-body .input-group-text {
    font-size: 0.8rem; /* Etwas kleiner für mehr Platz */
    padding-left: 0.4rem;
    padding-right: 0.4rem;
}

/* --- VALIDIERUNG LEERSTAND (ORANGE GLOW) --- */
.ea-period-row.vacancy-row-invalid {
    border-color: transparent;
    box-shadow: none;
}

.vacancy-row-invalid {
    border-color: #fd7e14 !important;
    box-shadow: 0 0 0 0.2rem rgba(253, 126, 20, 0.25) !important;
}

/* Fix für visuelles Feedback bei Fehlern (Validierung) */
.form-control.border-danger {
    border-color: #dc3545 !important;
    border-width: 2px !important;
    background-color: #fff8f8 !important;
}
.form-control.border-success {
    border-color: #198754 !important;
    border-width: 2px !important;
    background-color: #f8fff9 !important;
}

/* Wizard-Hero: kompakter, unten Platz für überlappende Erfassungs-Karte */
.pt-hero--wizard {
    min-height: clamp(180px, 22vw, 240px);
    padding: 1.5rem 0 5.25rem;
    margin-bottom: 0;
}

.wizard-container.pt-benefit-overlap {
    margin-top: -5.25rem;
}

@media (max-width: 991.98px) {
    .wizard-container.pt-benefit-overlap {
        margin-top: -3.5rem;
    }
}

.wizard-card {
    border: none !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
}

.wizard-container {
    max-width: 1120px !important;
}

.wizard-header {
    border-radius: 20px 20px 0 0;
    background: transparent !important;
    border-bottom: 1px solid rgba(0,0,0,0.05) !important;
}

@media (max-width: 1199.98px) {
    .energy-step-layout {
        gap: 18px;
    }
}

@media (max-width: 767.98px) {
    .wizard-body {
        padding: 28px 24px;
    }

    .energy-step-layout {
        gap: 18px;
    }

    .energy-step-main-panel {
        padding: 20px 16px 22px;
    }
}

/* Verbrauch-Wizard: Ablehnungsbildschirm (step_fail) */
#step_fail .ea-fail-screen {
    text-align: center;
    padding: 1.25rem 0 1.75rem;
}

#step_fail .ea-fail-screen__inner {
    max-width: 32rem;
    margin: 0 auto;
    padding: 0 0.25rem;
}

#step_fail .ea-fail-screen__icon {
    color: #b8860b;
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 0.85rem;
    opacity: 0.82;
}

#step_fail .ea-fail-screen__eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-accent-blue, #4a90e2);
    margin-bottom: 0.45rem;
}

#step_fail .ea-fail-screen__title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #22344d;
    margin: 0 0 0.65rem;
    line-height: 1.35;
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
}

#step_fail .ea-fail-screen__lead {
    font-size: 0.94rem;
    color: #5a6a7d;
    line-height: 1.55;
    margin: 0 auto 1.35rem;
    max-width: 28rem;
    overflow-wrap: anywhere;
}

#step_fail .ea-fail-reasons {
    margin: 0 auto 1.5rem;
    max-width: 28rem;
    text-align: left;
}

#step_fail .ea-fail-reasons__card {
    border: 1px solid rgba(15, 79, 130, 0.1);
    border-radius: 12px;
    background: #f8f9fb;
    padding: 0.95rem 1.1rem 1rem;
    box-shadow: 0 4px 14px rgba(15, 79, 130, 0.04);
}

#step_fail .ea-fail-reasons__lead {
    font-size: 0.9375rem;
    color: #334155;
    line-height: 1.55;
    margin: 0;
    overflow-wrap: anywhere;
}

#step_fail .ea-fail-reasons__heading {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin: 0.85rem 0 0.45rem;
}

#step_fail .ea-fail-reasons__body {
    font-size: 0.9375rem;
    color: #334155;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

#step_fail .ea-fail-reasons__body:empty {
    display: none;
}

#step_fail .ea-fail-reasons__list {
    margin: 0;
    padding-left: 1.15rem;
    color: #334155;
}

#step_fail .ea-fail-reasons__list li {
    line-height: 1.55;
    overflow-wrap: anywhere;
}

#step_fail .ea-fail-reasons__list li + li {
    margin-top: 0.45rem;
}

#step_fail .ea-fail-reasons__footer {
    font-size: 0.8125rem;
    color: #788698;
    line-height: 1.5;
    margin: 0.85rem 0 0;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(15, 79, 130, 0.08);
    overflow-wrap: anywhere;
}

#step_fail .ea-fail-reasons__lead[hidden],
#step_fail .ea-fail-reasons__heading[hidden],
#step_fail .ea-fail-reasons__footer[hidden] {
    display: none !important;
}

#step_fail .ea-fail-screen__actions {
    margin-top: 0.25rem;
}

body.gv-app-verbrauch #step_fail .ea-fail-screen {
    padding-top: 0.75rem;
}

body.gv-app-verbrauch #step_fail .ea-fail-screen__inner {
    max-width: 100%;
}

@media (max-width: 575.98px) {
    #step_fail .ea-fail-screen__title {
        font-size: 1.08rem;
    }

    #step_fail .ea-fail-screen__lead,
    #step_fail .ea-fail-reasons {
        max-width: 100%;
    }

    #step_fail .ea-fail-reasons__card {
        padding: 0.85rem 0.95rem;
    }
}

/* Verbrauch-Wizard: Zahlungsergebnis (terminal nach Mollie-Rückkehr) */
#step_payment_result .ea-payment-result {
    text-align: center;
    padding: 1.25rem 0 1.75rem;
}

#step_payment_result .ea-payment-result__inner {
    max-width: 48rem;
    margin: 0 auto;
    padding: 0 0.25rem;
}

#step_payment_result .ea-payment-result__icon {
    font-size: 2.75rem;
    line-height: 1;
    margin-bottom: 0.85rem;
}

#step_payment_result .ea-payment-result--success .ea-payment-result__icon {
    color: #198754;
}

#step_payment_result .ea-payment-result--failure .ea-payment-result__icon {
    color: #dc3545;
}

#step_payment_result .ea-payment-result--pending .ea-payment-result__icon {
    color: var(--brand-accent-blue, #4a90e2);
}

#step_payment_result .ea-payment-result__eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-accent-blue, #4a90e2);
    margin-bottom: 0.45rem;
}

#step_payment_result .ea-payment-result__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #22344d;
    margin: 0 0 0.65rem;
    line-height: 1.35;
}

#step_payment_result .ea-payment-result__lead {
    font-size: 0.94rem;
    color: #5a6a7d;
    line-height: 1.55;
    margin: 0 auto 1.25rem;
    max-width: 28rem;
}

#step_payment_result .ea-payment-result__card {
    margin: 0 auto 1.25rem;
    max-width: 28rem;
    text-align: left;
    border: 1px solid rgba(15, 79, 130, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
    padding: 0.95rem 1.05rem;
    font-size: 0.9rem;
    color: #44566d;
}

#step_payment_result .ea-payment-result__actions {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.5rem;
}

#step_payment_result .ea-payment-result__actions .btn {
    font-size: 0.8125rem;
    padding: 0.35rem 0.75rem;
    line-height: 1.3;
    white-space: nowrap;
}

#step_payment_result .ea-payment-result__actions .btn i {
    font-size: 0.85em;
}

#step_payment_result .ea-payment-result__actions .btn-link {
    padding: 0.35rem 0.55rem;
    text-decoration: none;
}

@media (max-width: 575.98px) {
    #step_payment_result .ea-payment-result__actions {
        flex-wrap: wrap;
    }

    #step_payment_result .ea-payment-result__actions .btn {
        font-size: 0.78rem;
        padding-left: 0.65rem;
        padding-right: 0.65rem;
    }
}

body.ea-wizard-terminal-step .step-indicator {
    visibility: hidden;
}

body.gv-app-verbrauch #step_payment_result .ea-payment-result {
    padding-top: 0.75rem;
}

body.gv-app-verbrauch #step_payment_result .ea-payment-result__inner {
    max-width: 100%;
}

/* --- Verbrauch-Wizard: kompakte Erfassungsdichte (Dateneingabe, nicht Landing) --- */
.ea-wizard-compact {
    --ea-wiz-label-font: 0.875rem;
    --ea-wiz-input-font: 0.9375rem;
    --ea-wiz-title-font: 1.05rem;
    --ea-wiz-section-font: 0.9375rem;
    --ea-wiz-input-min-h: 2.25rem;
    --ea-wiz-panel-pad-y: 0.75rem;
    --ea-wiz-panel-pad-x: 0.85rem;
    font-size: var(--ea-wiz-input-font);
    line-height: 1.4;
}

.ea-wizard-compact .wizard-header {
    padding: 0.75rem 1rem;
}

.ea-wizard-compact .wizard-header h5 {
    font-size: var(--ea-wiz-section-font);
    font-weight: 600;
}

.ea-wizard-compact .wizard-body {
    padding: var(--ea-wiz-panel-pad-y) var(--ea-wiz-panel-pad-x) calc(var(--ea-wiz-panel-pad-y) + 0.15rem);
}

.ea-wizard-compact .energy-step-layout {
    gap: 14px;
}

.ea-wizard-compact .energy-step-main-panel {
    padding: var(--ea-wiz-panel-pad-y) var(--ea-wiz-panel-pad-x);
    border-radius: 12px;
}

.ea-wizard-compact .question-title {
    font-size: var(--ea-wiz-title-font) !important;
    font-weight: 600;
    margin-bottom: 0.5rem !important;
    letter-spacing: -0.02em;
}

.ea-wizard-compact .form-label {
    font-size: var(--ea-wiz-label-font);
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #4d5d72;
}

.ea-wizard-compact .form-control,
.ea-wizard-compact .form-select,
.ea-wizard-compact .input-group-text {
    font-size: var(--ea-wiz-input-font);
    min-height: var(--ea-wiz-input-min-h);
    border-radius: 8px;
}

.ea-wizard-compact .form-control-sm,
.ea-wizard-compact .form-select-sm {
    font-size: 0.8125rem;
    min-height: 2rem;
    padding: 0.25rem 0.45rem;
}

.ea-wizard-compact .form-text {
    font-size: 0.75rem;
    margin-top: 0.2rem;
}

.ea-wizard-compact .form-check {
    margin-bottom: 0.15rem;
    min-height: 1.35rem;
}

.ea-wizard-compact .form-check-label {
    font-size: var(--ea-wiz-label-font);
}

.ea-wizard-compact .d-flex.gap-4 {
    gap: 1rem !important;
}

.ea-wizard-compact .row.g-2 {
    --bs-gutter-y: 0.45rem;
    --bs-gutter-x: 0.5rem;
}

.ea-wizard-compact .row.g-3 {
    --bs-gutter-y: 0.55rem;
    --bs-gutter-x: 0.65rem;
}

/* Baudenkmal-Toggle */
.ea-wizard-compact .ea-denkmal-toggle {
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.65rem !important;
}

.ea-wizard-compact .ea-denkmal-toggle .form-check-label {
    font-size: var(--ea-wiz-label-font);
}

/* Gebäudeart: kompakte horizontale Chips */
.ea-wizard-compact .ea-building-type-row .option-card {
    border-width: 1px;
    border-radius: 8px;
    padding: 0.4rem 0.6rem;
    gap: 0.5rem;
    min-height: 44px;
    transform: none;
}

.ea-wizard-compact .ea-building-type-row .option-card:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.08);
}

.ea-wizard-compact .ea-building-type-row .option-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    font-size: 0.85rem;
}

.ea-wizard-compact .ea-building-type-row .fw-bold.small {
    font-size: 0.8125rem;
    line-height: 1.25;
}

/* Auswahl-Kacheln (Unterlagen, Nutzung, Funnel) */
.ea-wizard-compact .option-card {
    border-width: 1px;
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
    gap: 0.65rem;
    transform: none;
}

.ea-wizard-compact .option-card:hover {
    transform: none;
}

.ea-wizard-compact .option-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-size: 0.95rem;
}

.ea-wizard-compact .ea-docs-tile.option-card {
    padding: 0.65rem 0.75rem;
    gap: 0.6rem;
    border-radius: 10px;
    transform: none;
}

.ea-wizard-compact .ea-docs-tile.option-card:hover {
    transform: none;
}

.ea-wizard-compact .ea-docs-tile__icon.option-icon {
    width: 1.85rem;
    height: 1.85rem;
    min-width: 1.85rem;
    font-size: 0.85rem;
}

.ea-wizard-compact .ea-docs-tile__icon.option-icon .ea-tool-icon--svg {
    width: 0.95rem;
    height: 0.95rem;
}

.ea-wizard-compact .ea-docs-tile__title {
    font-size: 0.8125rem;
}

.ea-wizard-compact .ea-docs-tile__sub {
    font-size: 0.7rem;
}

.ea-wizard-compact .ea-docs-step {
    gap: 0.85rem;
}

.ea-wizard-compact .ea-docs-block__hint {
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
}

.ea-wizard-compact .ea-doc-tiles .ea-doc-tile {
    min-height: 88px;
}

.ea-wizard-compact .ea-doc-tiles .ea-doc-tile .ea-doc-tile-mark {
    font-size: 1.1rem;
}

/* Mini-Tiles (Bausubstanz) */
.ea-wizard-compact .mini-option-card {
    padding: 0.45rem 0.35rem;
    border-radius: 6px;
}

.ea-wizard-compact .mini-option-card i {
    font-size: 1rem;
    margin-bottom: 4px;
}

.ea-wizard-compact .mini-option-card small {
    font-size: 0.65rem;
}

/* Detail-Karten Schritt 2 */
.ea-wizard-compact .detail-card {
    padding: 0.75rem;
    border-radius: 8px;
}

.ea-wizard-compact .detail-card h6 {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    gap: 0.4rem;
}

/* Abschnitts-Überschriften */
.ea-wizard-compact h6.fw-bold {
    font-size: var(--ea-wiz-section-font);
}

.ea-wizard-compact h5.fw-bold {
    font-size: var(--ea-wiz-title-font);
    margin-bottom: 0.65rem;
}

.ea-wizard-compact .card-header {
    font-size: var(--ea-wiz-section-font);
    padding: 0.5rem 0.75rem;
}

.ea-wizard-compact .card-body {
    padding: 0.75rem;
}

.ea-wizard-compact .alert {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
}

/* Navigation – btn-sm-Niveau, kein Pill-Bulk */
.ea-wizard-compact .ea-wizard-nav .btn,
.ea-wizard-compact .ea-wizard-nav .btn-next {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25;
    border-radius: 8px;
    box-shadow: none !important;
}

.ea-wizard-compact .ea-wizard-nav .btn-next:hover {
    transform: none;
}

.ea-wizard-compact .ea-wizard-nav {
    margin-top: 0.85rem !important;
    gap: 0.5rem;
}

@media (max-width: 767.98px) {
    .ea-wizard-compact .ea-wizard-nav .btn,
    .ea-wizard-compact .ea-wizard-nav .btn-next {
        min-height: 44px;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
}

/* Info-Sidebar etwas kompakter */
.ea-wizard-compact .energy-info-card {
    padding: 0.75rem;
    border-radius: 12px;
}

.ea-wizard-compact .energy-info-title {
    font-size: 0.9rem;
    margin-bottom: 0.45rem;
}

.ea-wizard-compact .energy-info-text {
    font-size: 0.8125rem;
    line-height: 1.45;
    margin-bottom: 0.5rem;
}

.ea-wizard-compact .energy-info-list {
    font-size: 0.8125rem;
}

@media (max-width: 767.98px) {
    .ea-wizard-compact .wizard-body {
        padding: 0.65rem 0.7rem 0.75rem;
    }

    .ea-wizard-compact .energy-step-main-panel {
        padding: 0.65rem 0.7rem;
    }

    .ea-wizard-compact .ea-building-type-row .option-card {
        min-height: 44px;
    }
}

/* Step2: geführte GModG-Vorprüfung (Wände → Fenster → Dach/Keller) */
.ea-step2-flow {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    max-width: 52rem;
}

.ea-step2-intro__title {
    margin: 0 0 0.25rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
}

.ea-step2-intro__lead {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
    color: #64748b;
}

.ea-step2-progress {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.ea-step2-progress__item {
    appearance: none;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.ea-step2-progress__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ea-step2-progress__icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.ea-step2-pick-row {
    max-width: 420px;
}

.mini-option-card--illus .ea-step2-pick-icon {
    width: 76px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.15rem;
}

.mini-option-card--illus .ea-step2-pick-svg {
    width: 100%;
    height: auto;
    max-height: 56px;
    display: block;
}

.ea-step2-progress__item:hover {
    border-color: #cbd5e1;
    color: #334155;
}

.ea-step2-progress__item.is-active {
    border-color: var(--brand-accent-blue, #0d6efd);
    background: #eff6ff;
    color: var(--brand-accent-blue, #0d6efd);
}

.ea-step2-progress__item.is-done {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #15803d;
}

.ea-step2-pane {
    display: none;
}

.ea-step2-pane.is-active {
    display: block;
}

.ea-step2-pane__title {
    margin: 0 0 0.35rem;
    font-size: 0.98rem;
    font-weight: 700;
    color: #1e293b;
}

.ea-step2-pane__hint {
    margin: 0 0 0.85rem;
    font-size: 0.85rem;
    line-height: 1.4;
    color: #64748b;
}

.ea-wizard-compact .ea-step2-intro__title {
    font-size: 1rem;
}

.ea-wizard-compact .ea-step2-progress__item {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
}

/* Zahlungsschritt – Methodenauswahl (vor Mollie, damit cancel/fail zurückkehren) */
.ea-pay-methods {
    background: #f7f9fc;
    border: 1px solid #e3eaf3;
    border-radius: 10px;
    padding: 0.85rem 1rem;
}
.ea-pay-methods__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(7.25rem, 1fr));
    gap: 0.75rem 1.15rem;
}
.ea-pay-methods .ea-pay-method-card {
    margin: 0;
    min-height: 4.25rem;
    cursor: pointer;
}
.ea-pay-methods .ea-pay-method-card i {
    color: var(--brand-accent-blue, #0d6efd);
    opacity: 0.72;
    font-size: 1.05rem;
    font-weight: 400;
}
.ea-pay-dev {
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
}
