/* ============================================
   Decision Pattern Compass – Tool Specific Styles
   Matching geschaeftsmodell-strategie.de/stress-test
   ============================================ */

/* Selection Counter */
.selection-counter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ecfdf5;
    color: #059669;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
}

.selection-counter svg {
    width: 16px;
    height: 16px;
}

.selection-counter.warning {
    background: #fef3c7;
    color: #d97706;
}

/* Resonance Grid - 2 Column Kachel Layout */
.resonance-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .resonance-grid {
        grid-template-columns: 1fr;
    }
}

/* Resonance Card - Kachel Style */
.resonance-card {
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.resonance-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.resonance-card.selected,
.resonance-card[data-selected="true"] {
    border-color: var(--accent);
    background: rgba(255, 45, 125, 0.03);
}

.resonance-card__checkbox {
    display: none;
}

.resonance-card__text {
    font-size: 15px;
    line-height: 1.5;
    color: var(--text);
}

/* Pattern Results */
.patterns-primary {
    margin-bottom: 32px;
}

.pattern-card {
    background: var(--surface);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
}

.pattern-card h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 8px;
}

.pattern-card p {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.pattern-card__indicators {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.pattern-indicator {
    background: rgba(255, 45, 125, 0.1);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.pattern-card__impulses h5 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--accent);
}

.pattern-card__impulses p {
    margin-bottom: 0;
}

/* Pattern Card Sections - Woran man es erkennt / Typische Wirkung */
.pattern-card__section {
    margin-bottom: 16px;
}

.pattern-card__section h5 {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 8px;
}

.pattern-card__list {
    margin: 0;
    padding-left: 20px;
}

.pattern-card__list li {
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 4px;
    font-size: 14px;
}

.pattern-card__summary {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
}

/* Secondary Patterns */
.patterns-secondary {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    margin-top: 24px;
}

.patterns-secondary h3 {
    font-size: 16px;
    color: var(--muted);
    margin-bottom: 16px;
}

.patterns-secondary .pattern-card {
    background: var(--bg);
    border: 1px solid var(--border);
}

/* Reflection Section */
.reflection-section {
    background: var(--surface);
    border-radius: 12px;
    padding: 24px;
    margin-top: 32px;
}

/* Context Section - Wie das zusammenhängt */
.context-section {
    background: var(--surface);
    border-radius: 12px;
    padding: 24px;
    margin-top: 32px;
    border-left: 4px solid var(--accent);
}

.context-section h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--text);
}

.context-section p {
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 12px;
}

.context-section__cta {
    margin-top: 20px;
}

.context-section .btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 2px solid var(--accent);
    color: var(--accent);
    background: transparent;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.context-section .btn-outline:hover {
    background: var(--accent);
    color: white;
}

/* Approach Section - 6-12 Wochen */
.approach-section {
    background: var(--bg);
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
    border: 1px solid var(--border);
}

.approach-section h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--text);
}

.approach-section p {
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 12px;
}

.approach-section__tagline {
    font-style: italic;
    color: var(--muted);
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.reflection-section h3 {
    font-size: 18px;
    margin-bottom: 16px;
}

.reflection-section p {
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 16px;
}

.reflection-section ul {
    margin: 0;
    padding-left: 20px;
}

.reflection-section li {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 8px;
}

/* Context Options (Radio) - Kachel Style */
.context-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

/* Question Group Styling - Matching Stress Test */
.question-group {
    margin-bottom: 32px;
}

.question-group__title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.context-option {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.context-option:hover {
    border-color: #cbd5e1;
}

.context-option[data-selected="true"] {
    border-color: var(--accent);
    background: rgba(255, 45, 125, 0.03);
}

.context-option__input {
    display: none;
}

.context-option__indicator {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s ease;
}

.context-option[data-selected="true"] .context-option__indicator {
    border-color: var(--accent);
}

.context-option[data-selected="true"] .context-option__indicator::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
}

.context-option__label {
    font-size: 15px;
    color: var(--text);
}

.context-option__description {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin-top: 4px;
}

/* Button Adjustments */
.tool-content-card .btn-primary {
    min-width: 120px;
}

/* Tool Form Group - More spacing like Stress Test */
.tool-content-card .tool-form-group {
    margin-bottom: 36px;
}

/* Tool Form Label - Border bottom like Stress Test */
.tool-content-card .tool-form-label {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    display: block;
}

.tool-content-card .btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tool-content-card .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Section Light */
.section-light {
    background: var(--bg);
    padding: 64px 0;
}

/* Responsive */
@media (max-width: 640px) {
    .tool-content-card {
        padding: 24px 20px;
    }
    
    .tool-step-title {
        font-size: 20px;
    }
    
    .pattern-card {
        padding: 20px;
    }
    
    .tool-action-bar {
        flex-direction: column;
        gap: 16px;
    }
    
    .tool-action-bar .btn-back {
        order: 2;
    }
    
    .tool-action-bar .btn-skip {
        order: 3;
    }
    
    .tool-action-bar .btn-primary {
        order: 1;
        width: 100%;
    }
    
    .resonance-grid {
        grid-template-columns: 1fr;
    }
}
