/* Styles för flikar med h2 och länkar */
.tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.tab-heading {
    margin: 0;
    padding: 0;
    font-size: 1rem;
    flex: 1;
}

.tab-button {
    display: flex;
    width: 100%;
    padding: 12px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s ease;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    text-decoration: none;
}

.tab-button:hover {
    color: var(--accent-color);
}

.tab-button.active {
    border-bottom-color: var(--accent-color);
    color: var(--accent-color);
}

.tab-button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
}

.tab-content {
    display: none;
    padding: 1rem 0;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 768px) {
    .tabs {
        flex-direction: row;
    }
    
    .tab-heading {
        flex: 1;
        min-width: 33%;
    }
    
    .tab-button {
        padding: 10px 5px;
        font-size: 14px;
    }
}
