/* --- CSS Custom Properties --- */
.selbstcheck-container {
    --primary: #2F5C53;
    --accent: #FFC526;
    --secondary: #00AA96;
    --rose: #E68FAC;
    --coral: #F58F6F;
    --plum: #72405D;
    --background: #FAF9F6;
    --text: #2D3748;
    --text-muted: #718096;
    --white: #FFFFFF;
    --shadow: 0 4px 15px rgba(0,0,0,0.08);
    --radius-card: 12px;
    --radius-btn: 8px;
    --transition: all 0.3s ease;
    
    font-family: 'Lato', sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    padding: 10px;
    margin: 20px 0;
}

.selbstcheck-container * {
    box-sizing: border-box;
}

.selbstcheck-container h1, 
.selbstcheck-container h2, 
.selbstcheck-container h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    margin-bottom: 0.5em;
}

.selbstcheck-container button {
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: var(--transition);
}

/* --- Layout Container --- */
.selbstcheck-app {
    width: 100%;
    max-width: 600px;
    margin: auto;
    position: relative;
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .selbstcheck-app {
        max-width: 700px;
    }
    
    .selbstcheck-container {
        padding: 30px;
    }
    
    .selbstcheck-container .card {
        padding: 32px;
    }
    
    .selbstcheck-container h1 {
        font-size: 2.5rem;
    }
    
    .selbstcheck-container h2 {
        font-size: 2rem;
    }
    
    .selbstcheck-container .question-text {
        font-size: 1.75rem;
    }
    
    .selbstcheck-container .circular-chart {
        width: 120px;
        height: 120px;
    }
    
    .selbstcheck-container .btn-primary, 
    .selbstcheck-container .btn-cta {
        font-size: 1.2rem;
        padding: 18px 40px;
    }
}

/* Tablet Styles */
@media (min-width: 768px) and (max-width: 1023px) {
    .selbstcheck-app {
        max-width: 650px;
    }
    
    .selbstcheck-container {
        padding: 20px;
    }
    
    .selbstcheck-container .card {
        padding: 28px;
    }
    
    .selbstcheck-container h1 {
        font-size: 2.25rem;
    }
    
    .selbstcheck-container h2 {
        font-size: 1.75rem;
    }
    
    .selbstcheck-container .question-text {
        font-size: 1.5rem;
    }
    
    .selbstcheck-container .circular-chart {
        width: 110px;
        height: 110px;
    }
    
    .selbstcheck-container .results-grid {
        gap: 24px;
    }
}

.selbstcheck-container .view {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Components: Cards --- */
.selbstcheck-container .card {
    background: var(--white);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 20px;
    text-align: center;
}

/* --- Components: Icons --- */
.selbstcheck-container .icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: rgba(47, 92, 83, 0.1);
    border-radius: 50%;
    color: var(--primary);
    margin-bottom: 12px;
}

.selbstcheck-container svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* --- View: Start --- */
.selbstcheck-container .start-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 30px 0;
    text-align: left;
}

.selbstcheck-container .feature-item {
    background: #fff;
    padding: 16px;
    border-radius: var(--radius-btn);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.selbstcheck-container .feature-item span {
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 8px;
    color: var(--text);
}

.selbstcheck-container .btn-primary {
    background-color: var(--accent);
    color: var(--text);
    font-weight: 700;
    padding: 16px 32px;
    border-radius: var(--radius-btn);
    font-size: 1.1rem;
    width: 100%;
    display: block;
}

.selbstcheck-container .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 197, 38, 0.3);
}

.selbstcheck-container .meta-info {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 12px;
    display: block;
}

/* --- View: Questions --- */
.selbstcheck-container .progress-container {
    margin-bottom: 24px;
}

.selbstcheck-container .progress-bar-bg {
    background-color: #E2E8F0;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.selbstcheck-container .progress-bar-fill {
    background-color: var(--secondary);
    height: 100%;
    width: 0%;
    transition: width 0.4s ease;
}

.selbstcheck-container .question-meta {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.selbstcheck-container .question-text {
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 32px;
}

.selbstcheck-container .options-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.selbstcheck-container .btn-option {
    background: var(--white);
    border: 1px solid #E2E8F0;
    padding: 16px 20px;
    border-radius: var(--radius-btn);
    text-align: left;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.selbstcheck-container .btn-option::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background-color: var(--option-color);
}

.selbstcheck-container .btn-option:hover, 
.selbstcheck-container .btn-option:focus {
    border-color: var(--option-color);
    transform: scale(1.02);
    background-color: #fcfcfc;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    outline: none;
}

.selbstcheck-container .btn-back {
    background: transparent;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 8px;
    font-size: 0.9rem;
}

.selbstcheck-container .btn-back:hover {
    color: var(--text);
}

/* --- View: Results --- */
.selbstcheck-container .results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.selbstcheck-container .chart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.selbstcheck-container .circular-chart {
    width: 100px;
    height: 100px;
}

.selbstcheck-container .circle-bg {
    fill: none;
    stroke: #eee;
    stroke-width: 2.5;
}

.selbstcheck-container .circle {
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    animation: progress 1s ease-out forwards;
}

@keyframes progress {
    0% { stroke-dasharray: 0 100; }
}

.selbstcheck-container .percentage {
    fill: var(--text);
    font-family: 'Lato', sans-serif;
    font-weight: 500 !important;
    font-size: 0.7em;
    text-anchor: middle;
    dominant-baseline: middle;
    text-shadow: none;
    filter: none;
    opacity: 0.85;
}

.selbstcheck-container .chart-label {
    margin-top: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
}

.selbstcheck-container .recommendation-card {
    background: rgba(47, 92, 83, 0.05);
    border: 1px solid rgba(47, 92, 83, 0.1);
    border-radius: var(--radius-card);
    padding: 24px;
    margin-top: 24px;
    margin-bottom: 24px;
}

.selbstcheck-container .rec-offer-highlight {
    background: var(--white);
    padding: 16px;
    border-radius: var(--radius-btn);
    margin-top: 16px;
    border-left: 4px solid var(--accent);
}

.selbstcheck-container .rec-offer-title {
    color: var(--primary);
    font-weight: 700;
    display: block;
}

.selbstcheck-container .btn-secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 14px 32px;
    border-radius: var(--radius-btn);
    font-weight: 700;
    width: 100%;
    margin-top: 12px;
}

.selbstcheck-container .btn-secondary:hover {
    background: rgba(47, 92, 83, 0.05);
}

.selbstcheck-container .btn-cta {
    background-color: var(--primary);
    color: var(--white);
    font-weight: 700;
    padding: 16px 32px;
    border-radius: var(--radius-btn);
    font-size: 1.1rem;
    width: 100%;
    display: block;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
}

.selbstcheck-container .btn-cta:hover {
    background-color: #23453e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(47, 92, 83, 0.3);
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    .selbstcheck-container {
        padding: 10px;
    }
    
    .selbstcheck-app {
        max-width: 100%;
    }
    
    .selbstcheck-container .card {
        padding: 20px;
        margin-bottom: 16px;
    }
    
    .selbstcheck-container h1 {
        font-size: 1.75rem;
    }
    
    .selbstcheck-container h2 {
        font-size: 1.5rem;
    }
    
    .selbstcheck-container h3 {
        font-size: 1.25rem;
    }
    
    .selbstcheck-container .question-text {
        font-size: 1.25rem;
        margin-bottom: 24px;
    }
    
    .selbstcheck-container .results-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    
    .selbstcheck-container .start-features {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .selbstcheck-container .circular-chart {
        width: 90px;
        height: 90px;
    }
    
    .selbstcheck-container .btn-primary, 
    .selbstcheck-container .btn-cta, 
    .selbstcheck-container .btn-secondary {
        font-size: 1rem;
        padding: 14px 24px;
    }
    
    .selbstcheck-container .icon-box {
        width: 45px;
        height: 45px;
    }
    
    .selbstcheck-container .progress-container {
        margin-bottom: 20px;
    }
    
    .selbstcheck-container .options-grid {
        gap: 10px;
    }
    
    .selbstcheck-container .btn-option {
        padding: 14px 16px;
        font-size: 0.95rem;
    }
}

/* Small Mobile Adjustments */
@media (max-width: 480px) {
    .selbstcheck-container {
        padding: 8px;
    }
    
    .selbstcheck-container .card {
        padding: 16px;
    }
    
    .selbstcheck-container h1 {
        font-size: 1.5rem;
    }
    
    .selbstcheck-container h2 {
        font-size: 1.25rem;
    }
    
    .selbstcheck-container .question-text {
        font-size: 1.1rem;
    }
    
    .selbstcheck-container .results-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .selbstcheck-container .start-features {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .selbstcheck-container .circular-chart {
        width: 100px;
        height: 100px;
    }
    
    .selbstcheck-container .chart-label {
        font-size: 0.85rem;
    }
    
    .selbstcheck-container .recommendation-card {
        padding: 20px;
    }
    
    .selbstcheck-container .rec-offer-highlight {
        padding: 12px;
    }
    
    .selbstcheck-container .btn-primary, 
    .selbstcheck-container .btn-cta, 
    .selbstcheck-container .btn-secondary {
        font-size: 0.95rem;
        padding: 12px 20px;
    }
    
    .selbstcheck-container .meta-info {
        font-size: 0.8rem;
    }
}
