/* Technik — Page-specific styles */
html {
    scroll-behavior: smooth;
}

.container {
    padding: 2rem 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.toggle-button {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    align-items: center;
}

.toggle-button .button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: none;
    min-width: 150px;
}

.toggle-button .button:hover {
    transform: none;
    box-shadow: none;
}

.toggle-button .button.selected {
    font-weight: 800;
    color: #fff;
    background: #7f1d1d;
    border-color: #fca5a5;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vehicle-details {
    border-radius: 10px;
    padding: 2vw;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    animation: fadeIn 1s ease-in-out;
}

.vehicle-details img.main-image {
    width: 100%;
    max-width: 600px;
    border-radius: 10px;
    margin: 20px 0;
    transition: transform 0.3s ease;
}

.vehicle-details img.main-image:hover {
    transform: scale(1.02);
}

.description {
    padding: 1vw;
    white-space: pre-line;
}

.technicalInfos {
    margin-top: 2vw;
    padding: 1.5vw;
    border-radius: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

td {
    padding: 10px;
}

.additional-images {
    margin-top: 2vw;
    display: flex;
    flex-wrap: wrap;
    gap: 1vw;
}

.additional-images img {
    max-width: 30%;
    border-radius: 10px;
    border: 2px solid #ccc;
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .technicalInfos {
        width: 95%;
    }

    .additional-images img {
        max-width: 100%;
    }

    .toggle-button {
        flex-direction: column;
        gap: 0.8rem;
        margin-top: 1.5rem;
    }

    .toggle-button .button {
        width: 100%;
        max-width: 300px;
        padding: 1rem 1.5rem;
        font-size: 1.05rem;
    }

    .container {
        padding: 1rem 0.5rem;
    }
}
