/* Mini-Version der V15-Bar-Card fuer Sparten-Wizard-Hints.
 * CSS-Regeln aus dummy_v15.html abgekupfert (Zeile ~800-1100) und kompakt
 * skaliert auf ~320px Breite (Popover-Format). Klassen-Praefix kk-mini-
 * verhindert Kollision falls echtes V15 spaeter im selben App-Kontext landet.
 */

.popover.kk-hint-popover {
    max-width: 360px;
    --bs-popover-max-width: 360px;
}
.popover.kk-hint-popover .popover-body { padding: 12px; }

.kk-mini-where {
    font-size: 10px;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
    font-weight: 600;
}

.kk-mini-card {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.kk-mini-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
}
.kk-mini-icon {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: #F1F5F9;
    border-radius: 8px;
}
.kk-mini-label {
    flex: 0 0 70px;
    font-size: 13px;
    font-weight: 600;
    color: #0F172A;
}
.kk-mini-track {
    flex: 1 1 auto;
    height: 16px;
    background: #E5E7EB;
    border-radius: 4px;
    overflow: hidden;
}
.kk-mini-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #FECACA 0%, #FCA5A5 50%, #F87171 100%);
}
.kk-mini-fill.is-green {
    background: linear-gradient(90deg, #BBF7D0 0%, #86EFAC 50%, #4ADE80 100%);
}
.kk-mini-chevron {
    flex: 0 0 auto;
    color: #94A3B8;
    font-size: 12px;
}

.kk-mini-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
    padding: 0 12px 10px 58px;
}
.kk-mini-chip {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 500;
    line-height: 1.2;
    color: #475569;
    background: rgba(241, 245, 249, 0.7);
    border: 1px solid #E2E8F0;
    padding: 2px 7px;
    border-radius: 999px;
}
.kk-mini-chip.is-no { color: #991B1B; background: #FEF2F2; border-color: #FECACA; }
.kk-mini-chip.is-yes { color: #166534; background: #F0FDF4; border-color: #BBF7D0; }

.kk-mini-body {
    border-top: 1px solid #E2E8F0;
    padding: 12px;
    background: #FAFBFC;
}
.kk-mini-label-badge {
    display: inline-block;
    background: #F1F5F9;
    color: #475569;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10.5px;
    font-weight: 600;
    margin-bottom: 4px;
}
.kk-mini-label-badge.is-empfehlung { background: #DCFCE7; color: #166534; }
.kk-mini-value {
    font-size: 22px;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.1;
    margin-bottom: 2px;
}
.kk-mini-sub {
    font-size: 12px;
    color: #64748B;
    margin-bottom: 10px;
}
.kk-mini-gap-block {
    border-top: 1px dashed #E2E8F0;
    padding-top: 8px;
    margin-top: 8px;
}
.kk-mini-gap-kicker {
    font-size: 10px;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}
.kk-mini-gap-wert {
    font-size: 15px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 2px;
}
.kk-mini-gap-sub {
    font-size: 11.5px;
    color: #64748B;
}

/* Gelbe Highlight-Box fuer das jeweilige Feld */
.kk-mini-hl {
    outline: 2px solid #F59E0B;
    background: #FEF3C7 !important;
    color: #92400E !important;
    border-radius: 4px;
    padding: 0 4px;
    display: inline-block;
}

.kk-mini-arrow {
    margin-top: 10px;
    font-size: 11px;
    font-weight: 600;
    color: #6B46C1;
    text-align: center;
}

/* === WYSIWYG-Modus: editierbare V15-Card im Sparten-Wizard Tab 3+4 ===
 * Form-Inputs direkt im V15-Layout — Senay tippt wo's spaeter erscheint.
 */

.kk-wysiwyg-wrap {
    padding: 16px;
    background: linear-gradient(135deg, #FAF5FF 0%, #F3EDFF 100%);
    border-radius: 12px;
    border: 1px solid #E9D8FD;
}
.kk-wysiwyg-where {
    font-size: 11px;
    font-weight: 700;
    color: #6B46C1;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}
.kk-wysiwyg-card {
    max-width: 520px;
}

.kk-wysiwyg-field {
    margin: 6px 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.kk-wysiwyg-fieldlabel {
    font-size: 10px;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}
.kk-wysiwyg-input {
    width: 100%;
    border: 1px dashed #CBD5E1;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 4px;
    padding: 3px 8px;
    font-family: inherit;
    transition: border-color 0.15s, background 0.15s;
}
.kk-wysiwyg-input:hover {
    border-color: #9F7AEA;
    background: #fff;
}
.kk-wysiwyg-input:focus {
    outline: none;
    border-color: #6B46C1;
    border-style: solid;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(107, 70, 193, 0.12);
}
.kk-wysiwyg-input::placeholder {
    color: #94A3B8;
    font-style: italic;
}

/* Stilvarianten der Inputs — schauen aus wie die finale V15-Anzeige */
.kk-wysiwyg-badge {
    display: inline-block;
    width: auto;
    min-width: 100px;
    max-width: 200px;
    background: #F1F5F9;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
}
.kk-wysiwyg-value {
    font-size: 22px;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.1;
}
.kk-wysiwyg-sub {
    font-size: 13px;
    color: #64748B;
}
.kk-wysiwyg-gap-wert {
    font-size: 15px;
    font-weight: 700;
    color: #0F172A;
}
.kk-wysiwyg-gap-sub {
    font-size: 12px;
    color: #64748B;
}
.kk-wysiwyg-chip-input {
    font-size: 12px;
    border-radius: 999px;
    padding: 3px 12px;
    background: rgba(255, 255, 255, 0.6);
}
.kk-wysiwyg-inline-wrap {
    flex: 1;
    display: flex;
    align-items: center;
}

/* Greybox fuer Felder die NICHT editierbar sind (kommen vom Tarif) */
.kk-wysiwyg-placeholder-greybox {
    background: #F1F5F9;
    border: 1px dashed #CBD5E1;
    border-radius: 4px;
    padding: 4px 10px;
    color: #94A3B8;
    margin: 4px 0;
    font-style: italic;
}
