#hero {
    text-align: left;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 80vh;
    background-image: url('/img/hero.png'); /* Voeg deze regel toe */
    background-size: cover;
    background-position: center;
    position: relative; /* Voor stacking context */
    padding: 24px;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.2); /* Donkere overlay */
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: auto;
    max-height: 400px; /* Beperk de hoogte van de afbeelding */
    object-fit: cover; /* Zorgt ervoor dat de afbeelding goed schaalt */
    margin-bottom: 20px; /* Ruimte tussen afbeelding en tekst */
    z-index: 1;
}

#hero h2 {
    text-align: left;
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 0.5em;
    z-index: 2;
}

#hero p {
    font-size: 1.5em;
    color: var(--light-text-color);
    font-weight: bold;
    line-height: 1.8;
    z-index: 2;
}

#navigation ul {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

#navigation ul li {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 20px 30px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out, transform 0.2s;
    flex: 1 1 250px; /* Flexibel formaat voor items */
    max-width: 30%; /* Zorgt ervoor dat er maximaal 3 op een rij staan */
}

#navigation ul li:hover {
    background-color: #0056b3;
    transform: translateY(-5px);
}

#about p {
    text-align: center;
    font-size: 1.1em;
}

#reviews ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

#reviews ul li {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 5px;
    font-style: italic;
    color: var(--light-text-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

#reviews ul li::before {
    content: "\201C"; /* Links aanhalingsteken */
    font-size: 2em;
    color: var(--primary-color);
    margin-right: 5px;
    vertical-align: middle;
}

#reviews p:first-of-type { /* Voor de sterrenrating */
    text-align: center;
    font-size: 1.3em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

#contact p {
    text-align: center;
    margin-bottom: 0.5em;
}

#contact p a {
    font-weight: bold;
    text-decoration: underline;
}

#contact p a:hover {
    color: var(--primary-color);
}

#social-media ul {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

#social-media ul li a {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease-in-out;
}

#social-media ul li a:hover {
    background-color: #0056b3;
    text-decoration: none;
}

/* Footer styling */
footer {
    background-color: var(--heading-color);
    color: var(--white);
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 30px;
    font-size: 0.9em;
}

/* Responsieve aanpassingen */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    header nav ul {
        flex-direction: column;
        margin-top: 0.5rem;
    }

    header nav ul li {
        margin: 5px 0;
    }

    main {
        padding: 10px;
    }

    section {
        padding: 25px;
        margin-bottom: 20px;
    }

    #home h2 {
        font-size: 2.2em;
    }

    #home p {
        font-size: 1.2em;
    }

    #navigation ul li {
        max-width: 100%; /* Stacks items on small screens */
    }

    #reviews ul {
        grid-template-columns: 1fr; /* Reviews onder elkaar op kleine schermen */
    }
}

/* Repair Section Styles */
#reparatie-aanmelden {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 30px;
    margin: 30px 0;
}

#reparatie-aanmelden h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 30px;
}

#reparatie-login-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.repair-form-section {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.repair-form-section h3 {
    color: var(--heading-color);
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--heading-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

.problem-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    padding: 10px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkbox-label:hover {
    background: #f8f9fa;
    border-color: var(--primary-color);
}

.checkbox-label input[type="radio"] {
    margin-right: 8px;
    width: auto;
}

.checkbox-label span {
    font-size: 14px;
    color: var(--text-color);
}

.confirmation-details {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
}

.confirmation-details p {
    margin: 10px 0;
    font-size: 16px;
}

.confirmation-buttons {
    text-align: center;
    gap: 15px;
    display: flex;
    justify-content: center;
}

.btn {
    background: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background: #0056b3;
}

.btn-secondary {
    background: #6c757d;
}

.btn-secondary:hover {
    background: #545b62;
}

#index-message {
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
    font-weight: 500;
    text-align: center;
}

#index-message:empty {
    display: none;
}

#index-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#index-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f1b0b7;
}

@media (max-width: 768px) {
    #reparatie-login-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .problem-options {
        grid-template-columns: 1fr;
    }
    
    .confirmation-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .repair-form-section {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    header nav ul li a {
        padding: 8px;
    }
    
    #reparatie-aanmelden {
        padding: 20px 15px;
    }
}