/* ════════════════════════════════════════════════════════════════════════
 *  public/css/startpagina.css  —  Welkomstpagina
 * ════════════════════════════════════════════════════════════════════════ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --groen-donker: #1a271a;
  --groen-mid:    #2c3e2d;
  --groen-licht:  #4a6741;
  --tekst-licht:  #e8e0d0;
  --tekst-zacht:  #a8c4a0;
  --wit:          #ffffff;
}

html, body {
  height: 100%;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--tekst-licht);
  overflow-x: hidden;
}

/* ── Achtergrond ── */
#achtergrond {
  position: fixed; inset: 0; z-index: -1;
  background: linear-gradient(150deg,
    #0f1a0f 0%,
    #1a271a 30%,
    #2c3e2d 65%,
    #3a5235 100%);
}

/* ── Header ── */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: rgba(15,26,15,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
#header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-logo-icoon {
  font-size: 1.7rem;
  line-height: 1;
}
.header-logo-tekst {
  font-size: 1rem;
  font-weight: 700;
  color: var(--wit);
  letter-spacing: -0.2px;
}
#beheer-knop {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  color: var(--tekst-licht);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s;
}
#beheer-knop:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-1px);
}

/* ── Hoofdlayout ── */
main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 80px;
  gap: 32px;
}

/* ── Hero ── */
#hero {
  text-align: center;
  max-width: 640px;
}
#hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--wit);
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 4px;
}
.hero-r2,
.hero-r3 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--wit);
  line-height: 1.2;
  margin-bottom: 4px;
}
.hero-r3 { margin-bottom: 20px; }
.hero-uitleg {
  font-size: 0.97rem;
  color: rgba(232,224,208,0.7);
  line-height: 1.7;
}

/* ── Zoekbalk ── */
#zoek-sectie {
  width: 100%;
  max-width: 600px;
}
#zoek-kaart {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 18px;
  padding: 24px 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
#zoek-rij {
  display: flex;
  align-items: center;
  background: var(--wit);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
#zoek-icoon {
  padding: 0 14px;
  font-size: 1.1rem;
  flex-shrink: 0;
}
#zoek-veld {
  flex: 1;
  padding: 16px 8px;
  border: none;
  outline: none;
  font-size: 1rem;
  color: #222;
  background: transparent;
}
#zoek-veld::placeholder { color: #aaa; }
#zoek-knop {
  padding: 0 26px;
  height: 54px;
  background: var(--groen-mid);
  color: var(--tekst-licht);
  border: none;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
#zoek-knop:hover { background: var(--groen-licht); }
#zoek-fout {
  display: none;
  margin-top: 10px;
  padding: 10px 14px;
  background: rgba(197,48,48,0.25);
  border: 1px solid rgba(197,48,48,0.5);
  border-radius: 8px;
  color: #fca5a5;
  font-size: 0.85rem;
  text-align: center;
}

/* ── Autocomplete suggesties ── */
#zoek-wrapper {
  position: relative;
}
#suggesties {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  list-style: none;
  overflow: hidden;
  z-index: 200;
  max-height: 280px;
  overflow-y: auto;
}
#suggesties li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.12s;
}
#suggesties li:last-child { border-bottom: none; }
#suggesties li:hover,
#suggesties li.actief {
  background: #f0f6f0;
}
.sug-naam {
  font-size: 0.95rem;
  color: #1a271a;
  font-weight: 500;
}
.sug-id {
  font-size: 0.78rem;
  color: #888;
  flex-shrink: 0;
  margin-left: 12px;
}

/* ── Kaartknop ── */
#kaart-knop {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: rgba(255,255,255,0.95);
  color: var(--groen-mid);
  border-radius: 14px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  transition: transform 0.15s, box-shadow 0.15s;
}
#kaart-knop:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
}

/* ── Footer ── */
footer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  padding: 12px 24px;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(232,224,208,0.35);
  display: flex;
  justify-content: center;
  gap: 8px;
}
.footer-punt { opacity: 0.4; }

/* ═══════════════════════════════════════════════════
   RESPONSIVE — TABLET (max 900px)
   ═══════════════════════════════════════════════════ */
@media (max-width: 900px) {
  #site-header { padding: 10px 16px; }
  #hero { padding: 60px 20px 24px; }
  #hero h1 { font-size: clamp(1.4rem, 4vw, 2rem); }
  #zoek-sectie { padding: 0 16px; }
  #zoek-kaart { max-width: 100%; padding: 20px 18px; }
  #kaart-knop { padding: 14px 28px; font-size: 0.95rem; }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — MOBIEL (max 600px)
   ═══════════════════════════════════════════════════ */
@media (max-width: 600px) {
  /* Header */
  #site-header { padding: 8px 12px; gap: 6px; }
  .header-logo-tekst { font-size: 0.82rem; }
  #beheer-knop { font-size: 0.78rem; padding: 6px 10px; white-space: nowrap; }

  /* Hero */
  #hero { padding: 52px 16px 20px; }
  #hero h1 { font-size: clamp(1.25rem, 5.5vw, 1.7rem); line-height: 1.3; }
  .hero-uitleg { font-size: 0.88rem; }

  /* Zoek */
  #zoek-sectie { padding: 0 10px; }
  #zoek-kaart { padding: 16px 14px; border-radius: 14px; }
  #zoek-rij { gap: 0; }
  #zoek-veld { font-size: 0.92rem; padding: 10px 8px; min-width: 0; }
  #zoek-knop { padding: 10px 16px; font-size: 0.88rem; white-space: nowrap; height: auto; }
  #suggesties li { padding: 10px 14px; }

  /* Kaartknop: full-width op mobiel */
  #kaart-knop {
    display: flex;
    justify-content: center;
    width: calc(100% - 20px);
    margin: 0 10px;
    padding: 14px 20px;
    font-size: 0.95rem;
    border-radius: 12px;
  }

  /* Main layout */
  main { gap: 18px; padding-bottom: 60px; }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — ALLERKLEINST (max 360px)
   ═══════════════════════════════════════════════════ */
@media (max-width: 360px) {
  .header-logo-tekst {
    font-size: 0.72rem;
    /* Lange naam afbreken indien nodig */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 160px;
  }
  #beheer-knop { padding: 5px 8px; font-size: 0.72rem; }
  #hero h1     { font-size: 1.1rem; }
  .hero-uitleg { font-size: 0.82rem; }
  #zoek-knop   { padding: 10px 10px; font-size: 0.82rem; }
}
