/* Balletschool Désirée Nillesen – eigen stijl bovenop Bootstrap 5 */
:root {
  --brand: #a39b1c;          /* olijf/limoen uit het logo, donker genoeg voor tekst */
  --brand-dark: #7d7712;
  --brand-soft: #f3f4dd;
  --brand-accent: #d5ce4a;
  --ink: #2b2a33;
  --muted: #6b6a72;
  --paper: #fbfaf4;
  --line: #e8e6d6;
  --radius: 1rem;
  --bs-body-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bs-body-color: var(--ink);
  --bs-link-color-rgb: 125, 119, 18;
  --bs-link-hover-color-rgb: 43, 42, 51;
}

body { background: #fff; font-size: 1.0625rem; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }

.display-title { font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif; font-weight: 600; letter-spacing: .01em; line-height: 1.1; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: var(--brand-dark); margin-bottom: .75rem; }
.link-brand { color: var(--brand-dark); font-weight: 600; text-decoration: none; }
.link-brand:hover { color: var(--ink); text-decoration: underline; }

.skip-link { position: absolute; left: 1rem; top: .5rem; z-index: 2000; background: #fff; padding: .5rem 1rem; border-radius: .5rem; }

/* Knoppen */
.btn-brand { --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-color: #fff;
  --bs-btn-hover-bg: var(--brand-dark); --bs-btn-hover-border-color: var(--brand-dark); --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--brand-dark); --bs-btn-active-border-color: var(--brand-dark); --bs-btn-active-color: #fff;
  border-radius: 999px; font-weight: 600; }
.btn-outline-dark, .btn-light { border-radius: 999px; font-weight: 600; }
.btn-lg { padding: .7rem 1.6rem; font-size: 1.05rem; }

/* Topbalk + header */
.topbar { background: var(--ink); color: #d9d8de; font-size: .82rem; padding: .35rem 0; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.site-header { background: rgba(255,255,255,.94); backdrop-filter: saturate(160%) blur(8px); -webkit-backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid var(--line); }
.navbar { padding: .5rem 0; }
.navbar-brand img { width: 190px; height: auto; display: block; }
.navbar .nav-link { font-weight: 500; color: var(--ink); padding: .5rem .8rem !important; border-radius: .5rem; }
.navbar .nav-link:hover, .navbar .nav-link:focus { color: var(--brand-dark); }
.navbar .nav-link.active { color: var(--brand-dark); font-weight: 600; }
.dropdown-menu { border: 1px solid var(--line); border-radius: .75rem; box-shadow: 0 12px 30px rgba(43,42,51,.08); padding: .4rem; }
.dropdown-item { border-radius: .5rem; padding: .45rem .8rem; }
.dropdown-item.active, .dropdown-item:active { background: var(--brand-soft); color: var(--ink); font-weight: 600; }
.navbar-toggler { border: 0; padding: .4rem; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px var(--brand-soft); }
@media (max-width: 991.98px) {
  .navbar-collapse { padding: .5rem 0 1rem; max-height: calc(100vh - 80px); overflow-y: auto; }
  .navbar .dropdown-menu { border: 0; box-shadow: none; padding: 0 0 0 1rem; background: transparent; }
  .navbar .btn-brand { width: 100%; padding: .6rem; }
}

/* Hero */
.hero { background: linear-gradient(180deg, #fff 0%, var(--paper) 100%); padding: 2rem 0 2.5rem; overflow: hidden; }
.hero-title { font-size: clamp(2.4rem, 6vw, 4.2rem); margin-bottom: 1rem; }
.hero-title span { color: var(--brand); font-style: italic; }
.hero .lead { color: var(--muted); max-width: 34rem; }
.hero-img { max-height: 440px; width: auto; border-radius: 1.5rem; box-shadow: 0 20px 50px rgba(43,42,51,.08); }
@media (min-width: 992px) { .hero { padding: 3.5rem 0 4rem; } }
@media (max-width: 575.98px) { .hero-img { max-height: 260px; } .hero .btn-lg { width: 100%; } }

/* Binnenpagina kop */
.page-hero { background: var(--paper); border-bottom: 1px solid var(--line); padding: 2rem 0 1.75rem; }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); margin: 0; }
.page-hero .lead { color: var(--muted); margin-top: .5rem; font-size: 1.1rem; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand-dark); }
.subnav { gap: .4rem; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px; }
.subnav::-webkit-scrollbar { display: none; }
.subnav .nav-link { white-space: nowrap; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: .35rem 1rem; font-size: .92rem; }
.subnav .nav-link.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Secties */
.section { padding: 3rem 0; }
.section-soft { background: var(--paper); }
@media (min-width: 992px) { .section { padding: 4.5rem 0; } }

/* Teksten uit de database */
.page-content { overflow-wrap: anywhere; }
.page-content h2 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; font-size: clamp(1.6rem, 3.5vw, 2.1rem); margin: 2.2rem 0 .6rem; scroll-margin-top: 100px; }
.page-content h2:first-child { margin-top: 0; }
.page-content h3 { font-size: 1.2rem; margin-top: 1.5rem; }
.page-content p, .page-content ul, .page-content ol { margin-bottom: 1.1rem; }
.page-content a { color: var(--brand-dark); font-weight: 500; }
.page-content strong, .page-content b { color: var(--ink); }
.page-content::after { content: ""; display: table; clear: both; }
.content-img { border-radius: var(--radius); display: block; margin: .5rem auto 1.25rem; }
@media (min-width: 768px) {
  .content-img-right { float: right; max-width: 42%; margin: .35rem 0 1rem 1.75rem; }
  .content-img-left { float: left; max-width: 42%; margin: .35rem 1.75rem 1rem 0; }
}
.welcome .content-img { max-width: 210px; }
.content-table { border: 1px solid var(--line); border-radius: var(--radius); margin: 1rem 0 1.5rem; background: #fff; clear: both; }
.content-table table { margin: 0; overflow-wrap: normal; word-break: normal; hyphens: auto; }
.page-content > .content-table:first-child { margin-top: 0; }
.content-table td, .content-table th { padding: .7rem .9rem; border-color: var(--line); }
.content-table tr:first-child td { background: var(--brand-soft); font-weight: 600; }
.content-table td p { margin: 0; }

/* Kaarten */
.lesson-card, .news-card { border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease, border-color .15s; background: #fff; }
.lesson-card:hover, .news-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(43,42,51,.08); border-color: var(--brand-accent); }
.lesson-card .card-body, .news-card .card-body { padding: 1.4rem; }
.lesson-card .card-title { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.5rem; font-weight: 600; }
.lesson-card .card-text, .news-card .card-text { color: var(--muted); font-size: .97rem; }

.feature { padding: 1.5rem; border-radius: var(--radius); border: 1px solid var(--line); height: 100%; }
.feature p { color: var(--muted); }
.feature-icon { display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark); margin-bottom: .75rem; }

.news-item { padding: 1.5rem 0; border-top: 1px solid var(--line); scroll-margin-top: 100px; }
.news-item h2 { font-weight: 600; }

.contact-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; position: sticky; top: 100px; }
.steps li { margin-bottom: .4rem; }

/* Lesrooster en vakantierooster */
.day-jump { display: flex; flex-wrap: wrap; gap: .5rem; position: sticky; top: 72px; z-index: 5; background: rgba(255,255,255,.95); padding: .6rem 0; }
.day-block { scroll-margin-top: 130px; margin-bottom: 2.5rem; }
.day-title { font-size: 2rem; margin-bottom: 1rem; padding-bottom: .4rem; border-bottom: 2px solid var(--brand-accent); display: inline-block; }
.schedule-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; height: 100%; }
.schedule-room { font-size: 1rem; font-weight: 600; margin: 0; padding: .8rem 1rem; background: var(--brand-soft); text-transform: uppercase; letter-spacing: .08em; }
.schedule-table { font-size: .95rem; }
.schedule-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; background: #fff; }
.schedule-table td, .schedule-table th { padding: .65rem 1rem; border-color: var(--line); vertical-align: middle; }
.schedule-table tbody tr:hover td { background: #fcfcf6; }
.badge-group { background: var(--ink); color: #fff; font-weight: 600; letter-spacing: .03em; }
.holiday-name { font-weight: 600; }

/* Op telefoons: tabellen worden kaartjes */
@media (max-width: 575.98px) {
  .schedule-table thead { display: none; }
  .schedule-table, .schedule-table tbody, .schedule-table tr, .schedule-table td, .schedule-table th { display: block; width: 100%; }
  .schedule-table tr { padding: .75rem 1rem; border-bottom: 1px solid var(--line); }
  .schedule-table tr:last-child { border-bottom: 0; }
  .schedule-table td, .schedule-table th { padding: .15rem 0; border: 0; }
  .schedule-table td[data-label]::before { content: attr(data-label); display: inline-block; min-width: 5.5rem; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
  .holiday-table .is-empty { display: none; }
  .holiday-name { font-size: 1.05rem; margin-bottom: .2rem; }
  .day-jump { top: 64px; }
}

/* CTA + footer */
.cta-band { background: var(--brand); color: #fff; padding: 2.75rem 0; }
.cta-band h2 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; font-size: 2rem; }
.cta-band .btn-light { color: var(--brand-dark); }
.site-footer { background: var(--ink); color: #cfced6; padding: 3rem 0 1.5rem; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer hr { border-color: rgba(255,255,255,.15); margin: 2rem 0 1rem; }
.footer-brand { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.6rem; color: #fff; font-weight: 600; }
.footer-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--brand-accent); margin-bottom: .75rem; }
.site-footer address { font-style: normal; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .topbar, .site-header, .cta-band, .site-footer, .day-jump { display: none !important; } }

/* Ledendeel */
.login-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; box-shadow: 0 14px 40px rgba(43,42,51,.06); }
.form-control:focus { border-color: var(--brand-accent); box-shadow: 0 0 0 .2rem rgba(213,206,74,.35); }
.form-label { font-weight: 600; font-size: .95rem; }
.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 1.75rem; margin-bottom: .5rem; }
.check-list li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--brand-dark); font-weight: 700; }
.student-card { background: #fff; border: 1px solid var(--line); border-radius: .75rem; padding: 1rem 1.1rem; margin-bottom: .75rem; }
.subnav .nav-admin { border-style: dashed; }
.subnav .nav-logout { color: var(--muted); }
.file-list .list-group-item { padding: 1rem 1.1rem; border-color: var(--line); }
.file-list .list-group-item:first-child { border-top-left-radius: var(--radius); border-top-right-radius: var(--radius); }
.file-list .list-group-item:last-child { border-bottom-left-radius: var(--radius); border-bottom-right-radius: var(--radius); }
.file-icon { flex: 0 0 auto; display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: .6rem; background: var(--brand-soft); color: var(--brand-dark); font-size: .72rem; font-weight: 700; letter-spacing: .05em; }
@media (max-width: 991.98px) { .contact-card { position: static; } }

/* Beheer */
.admin-table td, .admin-table th { vertical-align: middle; }
.admin-table .check-col { width: 2.5rem; }
.account-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; margin-bottom: .9rem; }
.account-card.is-inactive { background: #fafafa; }
.account-card summary { cursor: pointer; }
.recipient-list { max-height: 14rem; overflow: auto; padding-left: 1.1rem; }
.mail-preview { background: var(--paper); border: 1px solid var(--line); border-radius: .5rem; padding: .75rem 1rem; max-height: 16rem; overflow: auto; }
.history-list li { padding: .6rem 0; border-bottom: 1px solid var(--line); }
.detail-list dt { font-weight: 600; color: var(--muted); }
.pagination .page-link { color: var(--ink); }
.pagination .active .page-link { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (max-width: 575.98px) { .admin-table .check-col { display: none !important; } .admin-table td.text-end { text-align: left !important; padding-top: .5rem; } }

/* Kweekvijver Barneveld: eigen kleur (blauw #50bede) */
body.site-kv {
  --brand: #50bede;
  --brand-dark: #1b7896;
  --brand-soft: #e4f4fa;
  --brand-accent: #50bede;
  --ink: #17313b;
  --paper: #f4f8fc;
  --line: #d9e8f0;
  --bs-link-color-rgb: 27, 120, 150;
  --bs-link-hover-color-rgb: 23, 49, 59;
}
.site-kv .btn-brand { --bs-btn-color: #0d2a33; --bs-btn-hover-color: #fff; --bs-btn-active-color: #fff; }
.site-kv .hero-title span { color: var(--brand-dark); }
.site-kv .cta-band { color: #0d2a33; }
.site-kv .cta-band .btn-light { color: var(--brand-dark); }
.site-kv .navbar-brand img { width: 200px; }
