/* Leer Maklik Meer - Basiese styl */

:root {
    /* Kleure geneem uit die Leer Maklik Meer-logo: teal, oranje en pers */
    --kleur-primer: #1C7A7C;
    --kleur-primer-lig: #2B9C9E;
    --kleur-pers: #5E3967;
    --kleur-pers-lig: #7A4F86;
    --kleur-aksent: #EA8840;
    --kleur-aksent-donker: #C96A28;
    --kleur-agtergrond: #FAF9F7;
    --kleur-kaart: #ffffff;
    --kleur-teks: #29232E;
    --kleur-teks-sag: #6E6577;
    --kleur-rand: #E6E1E7;
    --kleur-sukses-bg: #e7f6ec;
    --kleur-sukses-teks: #1e6b3a;
    --kleur-fout-bg: #fdecec;
    --kleur-fout-teks: #a3231f;
    --skaduwee: 0 4px 14px rgba(28, 122, 124, 0.10);
    font-size: 16px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--kleur-agtergrond);
    color: var(--kleur-teks);
    line-height: 1.55;
}

.omhulsel {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

a { color: var(--kleur-primer-lig); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.25; color: var(--kleur-primer); }

/* Header */
.werf-header {
    background: #fff;
    border-bottom: 1px solid var(--kleur-rand);
    box-shadow: 0 1px 4px rgba(28, 122, 124, 0.06);
}
.werf-header__binne {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .75rem 1.5rem;
    flex-wrap: wrap;
    gap: .75rem;
}
.werf-logo {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--kleur-teks) !important;
    text-decoration: none;
}
.werf-logo img {
    height: 42px;
    width: 42px;
    object-fit: contain;
}
.werf-logo .wm-leer { color: var(--kleur-primer); }
.werf-logo .wm-maklik { color: var(--kleur-aksent); }
.werf-logo .wm-meer { color: var(--kleur-pers); }
.werf-nav a {
    color: var(--kleur-teks) !important;
    margin-left: 1.25rem;
    font-weight: 600;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    text-decoration: none;
}
.werf-nav a:first-child { margin-left: 0; }
.werf-nav a.aktief,
.werf-nav a:hover {
    border-bottom-color: var(--kleur-aksent);
    color: var(--kleur-primer) !important;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--kleur-primer) 0%, var(--kleur-pers) 100%);
    color: #fff;
    padding: 4rem 1.5rem;
    text-align: center;
}
.hero h1 { color: #fff; font-size: 2.4rem; margin-bottom: .75rem; }
.hero p { font-size: 1.15rem; color: #eef2f7; max-width: 640px; margin: 0 auto 1.75rem; }
.hero-logo-kop { margin: 0 0 1rem; }
.hero-logo {
    height: 140px;
    width: 140px;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .22);
}

.knoppie {
    display: inline-block;
    background: var(--kleur-aksent);
    color: #1a1206 !important;
    font-weight: 700;
    padding: .8rem 1.75rem;
    border-radius: 999px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background .15s ease, transform .15s ease;
}
.knoppie:hover { background: var(--kleur-aksent-donker); text-decoration: none; transform: translateY(-1px); }
.knoppie--sekonder {
    background: transparent;
    color: #fff !important;
    border: 2px solid rgba(255,255,255,.7);
}
.knoppie--sekonder:hover { background: rgba(255,255,255,.12); }
.knoppie--klein { padding: .5rem 1.1rem; font-size: .9rem; }
.knoppie--gevaar { background: var(--kleur-fout-teks); color: #fff !important; }
.knoppie--gevaar:hover { background: #841a17; }

/* Algemene seksies */
section { padding: 3rem 1.5rem; }
.seksie-titel { text-align: center; margin-bottom: 2rem; }
.seksie-titel p { color: var(--kleur-teks-sag); }

/* Kaarte / stappe */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
    max-width: 1080px;
    margin: 0 auto;
}
.stap-kaart, .klas-kaart, .kaart {
    background: var(--kleur-kaart);
    border: 1px solid var(--kleur-rand);
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: var(--skaduwee);
}
.stap-kaart .stap-nommer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background: var(--kleur-aksent);
    color: #fff;
    font-weight: 700;
    margin-bottom: .75rem;
}
/* Wissel deur die drie logo-kleure vir die drie stappe */
.stap-kaart:nth-child(1) .stap-nommer { background: var(--kleur-primer); }
.stap-kaart:nth-child(2) .stap-nommer { background: var(--kleur-aksent); }
.stap-kaart:nth-child(3) .stap-nommer { background: var(--kleur-pers); }

/* Klaslys */
.klas-lys {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.klas-kaart h3 { margin-top: 0; }
.klas-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    color: var(--kleur-teks-sag);
    font-size: .92rem;
    margin: .5rem 0 1rem;
}
.klas-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.plekke-oor {
    display: inline-block;
    font-size: .82rem;
    font-weight: 700;
    padding: .2rem .6rem;
    border-radius: 999px;
    background: var(--kleur-sukses-bg);
    color: var(--kleur-sukses-teks);
}
.plekke-oor--min { background: #fff3e0; color: #a3620a; }
.plekke-oor--vol { background: var(--kleur-fout-bg); color: var(--kleur-fout-teks); }

/* Vorms */
.vorm-kaart {
    max-width: 560px;
    margin: 0 auto;
    background: var(--kleur-kaart);
    border: 1px solid var(--kleur-rand);
    border-radius: 14px;
    padding: 2rem;
    box-shadow: var(--skaduwee);
}
label { display: block; font-weight: 600; margin: 1rem 0 .35rem; }
label:first-child { margin-top: 0; }
input[type=text], input[type=email], input[type=tel], input[type=number],
input[type=date], input[type=time], input[type=password], textarea, select {
    width: 100%;
    padding: .65rem .8rem;
    border: 1px solid var(--kleur-rand);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    color: var(--kleur-teks);
}
textarea { resize: vertical; min-height: 90px; }
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--kleur-primer-lig);
    box-shadow: 0 0 0 3px rgba(43, 156, 158, .18);
}
.veld-hulp { color: var(--kleur-teks-sag); font-size: .85rem; margin-top: .25rem; }
.vorm-aksies { margin-top: 1.5rem; }

/* Boodskappe */
.boodskap {
    padding: .9rem 1.1rem;
    border-radius: 10px;
    margin-bottom: 1.25rem;
    font-weight: 500;
}
.boodskap--sukses { background: var(--kleur-sukses-bg); color: var(--kleur-sukses-teks); }
.boodskap--fout { background: var(--kleur-fout-bg); color: var(--kleur-fout-teks); }

/* Tabelle (admin) */
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; }
table th, table td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--kleur-rand); font-size: .93rem; }
table th { background: #EAF4F4; color: var(--kleur-primer); }
.tabel-omhulsel { overflow-x: auto; box-shadow: var(--skaduwee); border-radius: 10px; }

/* Footer */
.werf-footer {
    background: var(--kleur-primer);
    color: #dcf0f0;
    margin-top: 3rem;
}
.werf-footer h3, .werf-footer h4 { color: #fff; }
.werf-footer__binne {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    padding: 2.5rem 1.5rem 1rem;
}
.werf-footer a { color: #dcf0f0; }
.werf-footer a:hover { color: var(--kleur-aksent); }
.werf-footer__kleinskrif {
    text-align: center;
    font-size: .82rem;
    padding: 1rem 1.5rem 1.5rem;
    color: #9fc7c7;
    margin: 0;
}

/* Admin */
.admin-kop {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.admin-nav a { margin-right: 1rem; font-weight: 600; }
.aksie-koppelvlak { display: flex; gap: .5rem; flex-wrap: wrap; }

@media (max-width: 640px) {
    .hero h1 { font-size: 1.85rem; }
    .hero-logo { height: 100px; width: 100px; }
    .werf-header__binne { flex-direction: column; align-items: flex-start; }
    .werf-nav a { margin-left: 0; margin-right: 1rem; }
}
