/* assets/css/tabs/entourage.css */

/* --- EXTRAKT-ARTEN (INFO KARTEN) --- */
#entourage .full-name {
    font-size: 0.85rem;
    font-weight: normal;
    color: var(--text-light);
    display: block;
    margin-top: 2px;
}

#entourage .compact-card .profile {
    margin-top: 10px;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* --- ENTOURAGE RECHNER CONTAINER --- */
.calculator-section {
    background: #f9fdfa;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    margin-top: 40px;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.02);
}

.calc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 25px;
}

/* --- MODUS TOGGLE (SIMPLE / ERWEITERT) --- */
.calc-toggle {
    background: #e0e0e0;
    border-radius: 20px;
    padding: 3px;
    display: flex;
}

.toggle-btn {
    background: transparent;
    border: none;
    padding: 6px 15px;
    border-radius: 18px;
    font-size: 0.85rem;
    font-weight: bold;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-btn.active {
    background: var(--white);
    color: var(--primary-dark);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* --- SIMPEL MODUS (SYMPTOM-BUTTONS) --- */
.calc-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.calc-btn {
    background: var(--white);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.calc-btn:hover {
    background: var(--primary-light);
}

.calc-btn.active {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(90, 125, 110, 0.3);
}

/* --- RECHNER ERGEBNIS-BOX (BEIDE MODI) --- */
.calc-result {
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-left: 6px solid var(--primary-color);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-top: 20px;
}

.res-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.res-col h5 {
    margin: 0 0 10px 0;
    font-size: 1.05rem;
    color: #444;
}

.res-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 5px 12px;
    border-radius: 5px;
    font-weight: bold;
    margin-bottom: 10px;
    border: 1px solid #a3c9b8;
}

.res-col p { 
    margin: 0; 
    font-size: 0.9rem; 
    color: var(--text-light); 
}

.res-summary {
    background: #fff9f0;
    padding: 15px;
    border-radius: 6px;
    font-size: 0.95rem;
    border: 1px solid #f1dfa9;
    line-height: 1.6;
}

.res-summary strong { 
    color: #8a6a1c; 
}

/* --- ERWEITERTER MODUS (LABOR / PILLS) --- */
.adv-selection-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.adv-col h5 {
    margin: 0 0 10px 0;
    color: var(--primary-dark);
    border-bottom: 1px dashed #ccc;
    padding-bottom: 5px;
}

.adv-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.adv-pill {
    background: var(--white);
    border: 1px solid #ccc;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    color: #555;
}

.adv-pill:hover { 
    border-color: var(--primary-color); 
}

.adv-pill.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 2px 6px rgba(90, 125, 110, 0.4);
}

/* --- DYNAMISCHE STAT-BALKEN --- */
.adv-bars {
    margin-top: 20px;
}

.adv-bar-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.bar-label {
    width: 160px;
    font-size: 0.9rem;
    font-weight: bold;
    color: #444;
}

.bar-bg {
    flex-grow: 1;
    height: 12px;
    background: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--primary-color);
    width: 0%; /* Wird per JS gesteuert */
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 6px;
}

/* --- RESPONSIVE ANPASSUNGEN --- */
@media (max-width: 600px) {
    .calc-header { flex-direction: column; align-items: flex-start; gap: 15px; }
    .res-grid, .adv-selection-grid { grid-template-columns: 1fr; }
    .bar-label { width: 120px; font-size: 0.8rem; }
}