.timeframe-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 8px 10px;
    margin: 8px auto 6px;
    max-width: 1200px;
}

.timeframe-btn {
    position: relative;
    min-width: 90px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.15);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    background-color: #e5e7eb;
    color: #111827;
    box-shadow: 0 0 0 0 rgba(15, 23, 42, 0);
    opacity: 0.85;
    transition:
        background-color 0.16s ease,
        color 0.16s ease,
        opacity 0.16s ease,
        box-shadow 0.16s ease,
        transform 0.16s ease;
}

.timeframe-btn:hover {
    opacity: 1;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.15);
}

.timeframe-btn.active,
.timeframe-btn[aria-pressed="true"],
.timeframe-btn[aria-checked="true"] {
    opacity: 1;
    box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.25);
    transform: translateY(-1px);
}

/* Farbzuordnung nur für aktive Timeframes */
.timeframe-btn.active[data-timeframe="15m"],
.timeframe-btn[aria-pressed="true"][data-timeframe="15m"],
.timeframe-btn[aria-checked="true"][data-timeframe="15m"] {
    background-color: #22c55e;
    color: #ffffff;
}

.timeframe-btn.active[data-timeframe="1h"],
.timeframe-btn[aria-pressed="true"][data-timeframe="1h"],
.timeframe-btn[aria-checked="true"][data-timeframe="1h"] {
    background-color: #3b82f6;
    color: #ffffff;
}

.timeframe-btn.active[data-timeframe="4h"],
.timeframe-btn[aria-pressed="true"][data-timeframe="4h"],
.timeframe-btn[aria-checked="true"][data-timeframe="4h"] {
    background-color: #f97316;
    color: #ffffff;
}

.timeframe-btn.active[data-timeframe="1d"],
.timeframe-btn[aria-pressed="true"][data-timeframe="1d"],
.timeframe-btn[aria-checked="true"][data-timeframe="1d"] {
    background-color: #ef4444;
    color: #ffffff;
}

@media (max-width: 768px) {
    .timeframe-container {
        justify-content: center;
        flex-wrap: wrap;
    }

    .timeframe-btn {
        min-width: 80px;
        padding: 6px 10px;
        font-size: 11px;
    }
}

