/* ============================================================
   Logopediepraktijk Anneleen Vangeloven — Stijlblad (stijl.css)
   ============================================================ */

:root {
  --kleur-primair:       #2a7a8c;
  --kleur-primair-donker:#1f5e6b;
  --kleur-accent:        #f0a500;
  --kleur-tekst:         #2c3e50;
  --kleur-licht:         #f4f8fa;
  --kleur-rand:          #d9e8ed;
  --lettertype:          system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-breedte:         960px;
  --afstand:             1.5rem;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--lettertype);
  color: var(--kleur-tekst);
  line-height: 1.7;
  background: #fff;
}

/* === Navigatie === */
.nav {
  background: var(--kleur-primair);
  padding: 0 var(--afstand);
}

.nav__container {
  max-width: var(--max-breedte);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 0;
}

.nav__logo {
  color: #fff;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav__lijst {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding-top: 0.25rem;
}

.nav__lijst a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  font-size: 0.95rem;
  transition: background 0.2s;
}

.nav__lijst a:hover,
.nav__lijst a[aria-current="page"] {
  background: var(--kleur-primair-donker);
  color: #fff;
}

/* === Hoofd content === */
main {
  max-width: var(--max-breedte);
  margin: 0 auto;
  padding: var(--afstand);
}

/* === Typografie === */
h1 { font-size: 2rem;   margin-bottom: 1rem;   color: var(--kleur-primair); }
h2 { font-size: 1.5rem; margin: 1.5rem 0 0.75rem; }
h3 { font-size: 1.2rem; margin: 1.25rem 0 0.5rem; }
p  { margin-bottom: 1rem; }
a  { color: var(--kleur-primair); }
ul, ol { margin-left: 1.5rem; }
li { margin-bottom: 0.35rem; }
address { font-style: normal; line-height: 2; margin-bottom: 1rem; }

/* === Afbeeldingsslider (startpagina) === */
.slider {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: var(--afstand);
  background: var(--kleur-licht);
  aspect-ratio: 16 / 6;
}

.slider__dia {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.slider__dia.actief { opacity: 1; }

.slider__dia img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider__knoppen {
  position: absolute;
  bottom: 0.75rem;
  right: var(--afstand);
  display: flex;
  gap: 0.5rem;
}

.slider__knop {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.8);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.slider__knop.actief,
.slider__knop:hover {
  background: #fff;
}

/* === Intro-blok (startpagina) === */
.intro {
  background: var(--kleur-licht);
  border-left: 4px solid var(--kleur-primair);
  padding: 1rem 1.25rem;
  border-radius: 0 4px 4px 0;
  margin-bottom: var(--afstand);
}

/* === Tarieven tabel === */
.tarieven-sectie { margin-bottom: 2rem; }

.tarieven-tabel {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
}

.tarieven-tabel th,
.tarieven-tabel td {
  padding: 0.65rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--kleur-rand);
}

.tarieven-tabel th {
  background: var(--kleur-licht);
  font-weight: 600;
  color: var(--kleur-primair);
}

.tarieven-tabel tr:last-child td { border-bottom: none; }

/* === Contactpagina grid === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-top: 1.5rem;
}

/* === Formulier === */
.formulier label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.formulier label span {
  font-weight: 400;
  color: #666;
  font-size: 0.85rem;
}

.formulier input,
.formulier textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--kleur-rand);
  border-radius: 4px;
  font-family: var(--lettertype);
  font-size: 1rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s, outline 0.2s;
}

.formulier input:focus,
.formulier textarea:focus {
  outline: 2px solid var(--kleur-primair);
  outline-offset: 1px;
  border-color: var(--kleur-primair);
}

.formulier textarea { min-height: 150px; resize: vertical; }

/* Honeypot — absoluut verborgen */
.verborgen {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.knop {
  background: var(--kleur-primair);
  color: #fff;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.knop:hover,
.knop:focus-visible {
  background: var(--kleur-primair-donker);
  outline: 2px solid var(--kleur-primair-donker);
  outline-offset: 2px;
}

/* === Leaflet-kaart === */
#kaart {
  height: 350px;
  border-radius: 8px;
  border: 1px solid var(--kleur-rand);
}

/* === Mededelingen na formulierverzending === */
.mededeling {
  padding: 1rem 1.25rem;
  border-radius: 4px;
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.mededeling--succes { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.mededeling--fout   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* === Voettekst === */
.voettekst {
  background: var(--kleur-primair);
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  padding: 1.25rem var(--afstand);
  font-size: 0.9rem;
  margin-top: 3rem;
}

.voettekst a {
  color: rgba(255, 255, 255, 0.9);
}

.voettekst a:hover {
  color: #fff;
}

/* === Responsief === */
@media (max-width: 640px) {
  h1 { font-size: 1.6rem; }
  .nav__container { gap: 0.25rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .afb-zweef {
    float: none !important;
    display: block;
    margin: 0 auto 1.5rem !important;
  }
}
