/* ===== RESET & VARIABLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    background: var(--bg-body);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== TYPOGRAPHY ===== */
/*
   Pacifico (handschrift) blijft voor de paginatitel en het logo.
   Patrick Hand (rustig handschrift) wordt gebruikt voor h2 en h3.
   Het leest zeer prettig in hoofdletters en heeft een speelse,
   doch duidelijke uitstraling.
*/
h1, .logo a {
    font-family: 'Pacifico', cursive;
    font-weight: 400;
    letter-spacing: 0.5px;
}

h2, h3 {
    font-family: 'Patrick Hand', cursive;
    font-weight: 400;   /* Patrick Hand heeft slechts één gewicht */
    letter-spacing: 0.5px;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 0.5rem 0 0;
    border-radius: 3px;
}

/* ===== LIJSTEN & PARAGRAFEN ===== */
p {
    margin-bottom: 1.2rem;
}

p:last-child {
    margin-bottom: 0;
}

ul, ol {
    padding-left: 2rem;
    margin: 1rem 0;
}

li {
    margin-bottom: 0.5rem;
}

li:last-child {
    margin-bottom: 0;
}

/* ===== HEADER ===== */
header {
    background: var(--header-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    padding: 10px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo a {
    font-size: 1.8rem;
    color: var(--secondary);
    text-decoration: none;
    line-height: 1.2;
}
.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-light);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}
.main-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: transparent;
    color: var(--text-color);
    font-size: 1.5rem;
    transition: background 0.3s, color 0.3s;
    text-decoration: none;
}
.main-nav a:hover,
.main-nav a:focus {
    background: var(--primary-light);
    color: #fff;
    outline: none;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
}

.lang-switcher {
    display: flex;
    gap: 5px;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    letter-spacing: 0.5px;
}

.lang-btn:hover,
.lang-btn.active {
    background: var(--primary);
    color: #fff;
}

.lang-btn:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.theme-tools {
    display: flex;
    gap: 5px;
}
.theme-btn, .color-btn {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}
.theme-btn:hover, .color-btn:hover {
    background: var(--primary);
    color: #fff;
}
.color-indicator {
    font-size: 1.2rem;
}

.alt-mode-btn {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}
.alt-mode-btn:hover {
    background: var(--primary);
    color: #fff;
}

/* ===== MAIN CONTENT PADDING ===== */
main {
    padding-top: 120px;
}

/* ===== HERO ===== */
.hero {
    background: var(--overlay);
    padding: 60px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--secondary);
}

.hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 1rem auto 0;
}

/* ===== BUTTONS ===== */
.btn, .button {
    display: inline-block;
    background: var(--btn-bg);
    color: var(--btn-text, #ffffff);
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s, transform 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-top: 20px;
    margin-bottom: 10px;
}

.btn:hover, .button:hover {
    background: var(--btn-hover);
    transform: translateY(-2px);
}

/* ===== SERVICES ===== */
.services {
    margin: 60px 0;
    padding: 30px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

.services h2 {
    margin-top: 0;
}

.services .button,
.services .btn,
.contact-teaser .button,
.about .button {
    margin-top: 20px;
    margin-bottom: 10px;
    display: inline-block;
}

/* ===== MATH CHALLENGE ===== */
.math-challenge {
    margin-bottom: 20px;
}
.math-challenge label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}
.math-challenge span {
    font-size: 1.2rem;
    margin-right: 10px;
}
.math-challenge input {
    width: 80px;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

/* ===== CONTACT TEASER ===== */
.contact-teaser {
    margin: 60px 0;
    padding: 30px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

/* ===== CONTACT PAGINA ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 40px 0;
}

.contact-info h3 {
    margin-bottom: 10px;
    color: var(--primary);
}

.contact-info p {
    margin-bottom: 10px;
}

.contact-info a {
    color: var(--secondary);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    background: var(--card-bg);
    color: var(--text-color);
}

.contact-form button {
    width: 100%;
}

/* ===== OVER PAGINA MET FOTO ===== */
.about-with-photo {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    margin: 2rem 0;
}

.about-text {
    flex: 2;
}

.about-photo {
    flex: 1;
    max-width: 300px;
}

.profile-photo {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

/* ===== FOOTER ===== */
footer {
    background: var(--footer-bg);
    padding: 40px 0;
    margin-top: 60px;
    text-align: center;
}

.footer-container p {
    margin-bottom: 10px;
}

.footer-container a {
    color: var(--secondary);
    text-decoration: none;
    margin: 0 10px;
}

.footer-container a:hover {
    text-decoration: underline;
}

/* ===== TOEGANKELIJKHEID ===== */
.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}
.skip-link:focus {
    width: auto;
    height: auto;
    margin: 0;
    clip: auto;
    background: #000;
    color: #fff;
    padding: 8px;
    z-index: 100;
    text-decoration: none;
}

a:focus, button:focus, input:focus, textarea:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ===== PRIJSTABEL ===== */
.price-table {
    border-collapse: collapse;
    width: 100%;
    margin: 20px 0;
}

.price-table th,
.price-table td {
    padding: 12px;
    border: 1px solid var(--border-color, #ddd);
    text-align: left;
}

.price-table th {
    background-color: var(--primary-light);
    color: #fff;
}

.price-table td:last-child,
.price-table th:last-child {
    text-align: right;
}

.price-table tbody tr:not(:first-child):has(td:first-child:not(:empty)) td {
    border-top: 2px solid var(--primary);
}

.price-table tbody tr:last-child td {
    border-bottom: 2px solid var(--primary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: stretch;
    }

    .logo {
        justify-content: center;
    }

    .main-nav ul {
        justify-content: center;
        gap: 1rem;
    }

    .main-nav a {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .header-tools {
        justify-content: center;
        margin-left: 0;
        flex-wrap: wrap;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-with-photo {
        flex-direction: column;
    }

    .about-photo {
        max-width: 100%;
        margin-bottom: 1rem;
    }

    h1 {
        font-size: 2.5rem;
        padding-top: 1.5rem;
    }

    main {
        padding-top: 150px;
    }
}

@media (max-width: 600px) {
    .logo a {
        font-size: 1.4rem;
    }
    .logo-img {
        width: 32px;
        height: 32px;
    }
    main {
        padding-top: 180px;
    }
}

@media (max-width: 480px) {
    main {
        padding-top: 200px;
    }
}

/* ===== FAQ ACCORDION ===== */
details {
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    margin-bottom: 0.75rem;
    padding: 0.2rem 0.5rem;
    transition: box-shadow 0.2s;
}
details:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}
details[open] {
    background: var(--card-bg);
}
summary {
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1rem 0.5rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-color);
}
summary::-webkit-details-marker {
    display: none;
}
summary::after {
    content: '▶';
    font-size: 0.9rem;
    color: var(--primary);
    transition: transform 0.2s;
}
details[open] summary::after {
    transform: rotate(90deg);
}
.answer {
    padding: 0.5rem 1rem 1.5rem 1rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-color);
}

/* ===== DISCLAIMER ===== */
footer .disclaimer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.95rem;
    font-style: italic;
    color: var(--text-color);
    opacity: 0.85;
    line-height: 1.5;
    text-align: justify;
    text-align-last: left;
}
