/* Algemene opmaak */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { height: 100%; overflow-y: scroll; overflow-x: hidden; }
body { font-family: Garamond, serif; font-size: .92rem; min-height: 100%; background: #f9f9f9; color: #000; }

/* Header + menu blijven samen bovenaan staan (alleen op grote schermen) */
.sticky-wrapper { background: #f9f9f9; z-index: 1000; padding-top: 5px; }
@media (min-width: 641px) { .sticky-wrapper { position: sticky; top: 0; } }

.header {
  background: #f9f9f9 url('header.jpg') center / cover no-repeat;
  width: 100%; max-width: 824px; aspect-ratio: 1030 / 170; margin: 0 auto;
  box-shadow: 0 4px 12px rgba(0,0,0,.15); border-radius: 10px;
}
.menu {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 2px;
  max-width: 829px; margin: 6px auto; padding: 5px 4px; border-radius: 10px;
  background:
    linear-gradient(to top, #c0c0c0, #eaeaea 50%, #b5b5b5),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.05) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at center, rgba(255,255,255,.15) 0%, transparent 70%);
  background-blend-mode: overlay, overlay, normal;
  box-shadow: inset 0 4px 8px rgba(255,255,255,.4), inset 0 -4px 8px rgba(0,0,0,.08),
    0 12px 32px rgba(44,46,112,.2), 0 0 0 3px #e0e3d8 inset, 0 0 120px rgba(255,255,255,.35);
}
.menu a {
  position: relative; z-index: 1; overflow: hidden; color: #fff;
  background: linear-gradient(to bottom, #3f429c 0%, #2c2e70 50%, #1f204f 100%);
  flex: 1 1 0; min-width: 0; padding: 12px 0; text-align: center; border-radius: 8px; text-decoration: none; font-size: clamp(.55rem, 1.9vw, 1.04rem); font-weight: bold;
  box-shadow: inset 0 1px 2px rgba(255,255,255,.2), inset 0 -1px 3px rgba(0,0,0,.3),
    0 4px 12px rgba(44,46,112,.25), 0 0 0 2px #99b3cc inset;
  transition: transform .3s ease, color .6s ease;
}
.menu a::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 1s ease;
  background: linear-gradient(to bottom, #4b4eb0 0%, #3a3d91 50%, #2c2e70 100%);
}
.menu a:hover::after { opacity: 1; }
.menu a:hover { transform: scale(1.025); color: #fff; }
.menu a.active {
  background: linear-gradient(to bottom, #f1f1f1 0%, #dededc 50%, #c5c5c5 100%); color: #2c2e70;
  box-shadow: inset 0 1px 2px rgba(255,255,255,.5), inset 0 -1px 3px rgba(0,0,0,.3),
    0 4px 12px rgba(44,46,112,.25), 0 0 0 3px #6163b1 inset;
  transition: background .4s ease, transform .3s ease, color .6s ease;
}
.menu a.active:hover { background: linear-gradient(to bottom, #3a3d91 0%, #2c2e70 100%); color: #fff; transform: scale(.97); }

/* Inhoud */
.content { display: flex; flex-wrap: wrap; max-width: 816px; margin: 0 auto; padding: 16px 8px 24px; gap: 32px; }
.content section { flex: 2.25; min-width: 0; }
.content aside { flex: 1; max-width: 240px; }
.side-image { max-width: 100%; height: auto; display: block; }
.content h1 { font-size: 1.45rem; margin-bottom: 10px; color: #2c2e70; }
.content p { margin-bottom: 1em; line-height: 1.45; }
.content a { color: #2c2e70; }
.content ul.lijst { list-style: none; line-height: 1.9; }

/* Biografie */
.bio figure { float: right; width: 208px; margin: 0 0 10px 16px; font-size: .8rem; }
.bio figure.links { float: left; margin: 0 16px 10px 0; }
.bio figure img { width: 100%; display: block; border-radius: 8px; }
.bio p { clear: none; }
.bio .blok { overflow: auto; margin-bottom: 1em; }

/* Formulier */
form.contact-form { max-width: 100%; }
form.contact-form input, form.contact-form textarea { width: 100%; max-width: 400px; padding: 8px; font: inherit; border: 2px solid #aaa; border-radius: 12px; }
form.contact-form textarea { min-height: 160px; resize: vertical; }
form.contact-form input:focus, form.contact-form textarea:focus { border-color: #3f429c; box-shadow: 0 0 0 3px rgba(63,66,156,.2); outline: none; }
form.contact-form button { margin-top: 8px; padding: 8px 22px; font: inherit; font-weight: bold; color: #fff; background: #2c2e70; border: 0; border-radius: 12px; cursor: pointer; }

/* Mobiel */
@media (max-width: 640px) {
  .content { flex-direction: column; }
  .content aside { max-width: 100%; }
  .menu { margin: 8px 6px; padding: 5px; }
  .menu a { flex: 1 1 30%; font-size: .9rem; padding: 8px 0; }
  .bio figure, .bio figure.links { float: none; width: 100%; margin: 0 0 12px; }
}

/* Formuliermelding en spamveld */
.melding { padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; font-weight: bold; }
.melding.ok { background: #e3f3e3; color: #1d5c1d; }
.melding.fout { background: #fbe4e4; color: #8a1f1f; }
.extra-veld { position: absolute; left: -9999px; }

/* Complete repertoirelijst */
.repertoire-lijst { list-style: none; columns: 2; column-gap: 24px; font-size: .85rem; line-height: 1.6; }
.repertoire-lijst li { break-inside: avoid; }
@media (max-width: 640px) { .repertoire-lijst { columns: 1; } }


/* Tussenkopjes en lijsten (Mogelijkheden) */
.content h2 { font-size: 1.15rem; margin: 18px 0 8px; color: #2c2e70; }
.content ul.punten { margin: 0 0 1em 1.3em; line-height: 1.45; }
.content ul.punten li { margin-bottom: .3em; }

/* Foto rechts naast de tekst (computer) */
.content aside { order: 2; }

/* Mogelijkheden: foto wisselt bij hover naar tekst + foto (computer) */
.hover-kaart { display: grid; outline: none; cursor: pointer; }
.hover-kaart > * { grid-area: 1 / 1; align-self: start; transition: opacity .4s ease, visibility .4s ease; }
.kaart-achter { display: flex; flex-direction: column; aspect-ratio: 300 / 608; opacity: 0; visibility: hidden; font-size: .8rem; line-height: 1.3; }
.kaart-achter p { margin-bottom: .6em; }
.kaart-achter img { margin-top: 8px; flex: 1 1 0; min-height: 0; width: 100%; object-fit: cover; object-position: center top; }
.hover-kaart:hover .kaart-voor, .hover-kaart:focus .kaart-voor { opacity: 0; visibility: hidden; }
.hover-kaart:hover .kaart-achter, .hover-kaart:focus .kaart-achter { opacity: 1; visibility: visible; }

/* Telefoon: foto rechtsboven, tekst loopt eromheen */
@media (max-width: 640px) {
  .content { display: block; }
  .content::after { content: ""; display: block; clear: both; }
  .content aside { float: right; width: 34%; max-width: none; margin: 0 0 8px 14px; }
  .kaart-achter { display: none; }
  .hover-kaart:hover .kaart-voor, .hover-kaart:focus .kaart-voor { opacity: 1; visibility: visible; }
  form.contact-form { display: flow-root; }
}
