/* =========================================================
   Cigo Leerdam — stylesheet
   Kleuren in de CIGO-huisstijl (paars), helder & vriendelijk
   ========================================================= */

:root {
  --purple:        #6a2c8f;   /* CIGO paars */
  --purple-deep:   #46195f;   /* donker paars (header/footer) */
  --purple-soft:   #f6f1fa;   /* zachte lila achtergrond */
  --gold:          #ffc72c;   /* warm accent (cadeaus/kansspelen) */
  --gold-deep:     #e0a800;
  --ink:           #2a2233;   /* tekst */
  --ink-soft:      #5d5468;   /* secundaire tekst */
  --line:          #e7dded;   /* lijnen */
  --white:         #ffffff;
  --green:         #1f9d57;   /* open */
  --red:           #cf3b46;   /* gesloten */

  --radius:   16px;
  --radius-s: 10px;
  --shadow:   0 10px 30px rgba(70, 25, 95, .10);
  --shadow-s: 0 4px 14px rgba(70, 25, 95, .08);
  --maxw:     1080px;

  --font-display: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;            /* ankerlinks stoppen netjes onder de sticky header */
  -webkit-text-size-adjust: 100%;      /* geen ongewenste tekstvergroting op iOS */
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;                  /* vangnet tegen horizontaal schuiven op mobiel */
}

img, svg, iframe { max-width: 100%; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .4em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1rem; }
a { color: var(--purple); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section--soft { background: var(--purple-soft); }
.eyebrow {
  display: inline-block; font-family: var(--font-display); font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; font-size: .72rem;
  color: var(--purple); margin-bottom: .6rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  padding: .8rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--gold { background: var(--gold); color: var(--purple-deep); }
.btn--gold:hover { background: var(--gold-deep); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--purple { background: var(--purple); color: #fff; }
.btn--purple:hover { background: var(--purple-deep); }

/* ---- Announcement bar ---- */
.announce {
  background: var(--gold); color: var(--purple-deep);
  font-family: var(--font-display); font-weight: 600;
  text-align: center; padding: .65rem 20px; font-size: .95rem;
}

/* ---- Header / nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; max-width: var(--maxw); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: .5rem; text-decoration: none; }
.brand__img { height: 42px; width: auto; display: block; }
.brand__img--footer { height: 40px; background: #fff; padding: 7px 12px; border-radius: 10px; }
.brand__logo {
  font-family: var(--font-display); font-weight: 700; font-size: 1.6rem;
  letter-spacing: .02em; color: var(--purple);
}
.brand__sub { font-family: var(--font-display); font-weight: 600; color: var(--ink-soft); font-size: 1rem; }
.nav__links { display: flex; gap: 1.4rem; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  text-decoration: none; color: var(--ink); font-weight: 500; font-size: .98rem;
  padding: .3rem 0; border-bottom: 2px solid transparent;
}
.nav__links a:hover { color: var(--purple); border-bottom-color: var(--gold); }
.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  color: var(--purple);
}
.nav__toggle svg { width: 28px; height: 28px; }

/* ---- Hero ---- */
.hero {
  background:
    radial-gradient(120% 120% at 85% -10%, #813aab 0%, var(--purple) 38%, var(--purple-deep) 100%);
  color: #fff; padding: 78px 0 84px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -80px; bottom: -120px;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,199,44,.22), transparent 65%);
}
.hero__inner { position: relative; z-index: 1; max-width: 640px; }
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.7rem); font-weight: 700; margin-bottom: .3rem;
}
.hero .tagline { font-size: 1.25rem; color: #f0e3f7; margin-bottom: 1.6rem; }
.hero__buttons { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .4rem; }

/* open/gesloten badge */
.status {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px; padding: .4rem .9rem; font-weight: 600; font-size: .92rem;
  margin-bottom: 1.4rem;
}
.status__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(31,157,87,.25); }
.status--closed .status__dot { background: var(--red); box-shadow: 0 0 0 4px rgba(207,59,70,.25); }

/* ---- Assortiment ---- */
.grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  margin-top: 1.8rem;
}
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-s); transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--purple-soft); color: var(--purple); margin-bottom: 14px;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: .3rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* ---- Two column (openingstijden + uitslagen) ---- */
.cols { display: grid; gap: 28px; grid-template-columns: 1.1fr .9fr; align-items: start; }

.hours { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-s); }
.hours tr { border-bottom: 1px solid var(--line); }
.hours tr:last-child { border-bottom: 0; }
.hours td { padding: .85rem 1.1rem; }
.hours td.day { font-weight: 600; }
.hours td.time { text-align: right; color: var(--ink-soft); }
.hours tr.is-today { background: var(--purple-soft); }
.hours tr.is-today td.day { color: var(--purple); }
.hours .closed { color: var(--red); font-weight: 600; }

.panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-s);
}
.panel--gold { background: linear-gradient(180deg, #fff8e4, #fff); border-color: #f3e2a8; }
.results-body { white-space: pre-line; color: var(--ink); }

/* ---- Contact ---- */
.contact-grid { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; align-items: stretch; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: 1rem; }
.contact-list svg { width: 22px; height: 22px; color: var(--purple); flex: 0 0 auto; margin-top: 2px; }
.contact-list a { color: var(--ink); text-decoration: none; }
.contact-list a:hover { color: var(--purple); }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-s); min-height: 320px; border: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* ---- Footer ---- */
.site-footer { background: var(--purple-deep); color: #e9def1; padding: 40px 0; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
.site-footer .brand__logo { color: #fff; }
.site-footer a { color: var(--gold); }
.site-footer small { color: #c3b0d4; }

/* ---- Mobile ---- */
@media (max-width: 820px) {
  .cols, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff; padding: 8px 20px 16px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-s);
  }
  .nav__links.open { display: flex; }
  .nav__links a { padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .section { padding: 48px 0; }

  .hero { padding: 56px 0 60px; }
  .hero__buttons { flex-direction: column; align-items: stretch; }
  .hero__buttons .btn { justify-content: center; width: 100%; padding: .9rem 1.4rem; }

  .grid { grid-template-columns: 1fr; }     /* één kaart per rij = lekker leesbaar */
  .map-wrap, .map-wrap iframe { min-height: 280px; }
}
@media (max-width: 420px) {
  .container { padding: 0 16px; }
  .announce { font-size: .85rem; padding: .6rem 16px; }
  .brand__logo { font-size: 1.35rem; }
  .brand__img { height: 34px; }
  .hero .tagline { font-size: 1.1rem; }
  .hours td { padding: .7rem .85rem; }
}

/* grotere, makkelijk te raken knoppen op aanraakschermen */
@media (hover: none) and (pointer: coarse) {
  .btn { padding: .9rem 1.4rem; }
  .nav__links a { padding-top: .9rem; padding-bottom: .9rem; }
}

/* =========================================================
   Admin-paneel
   ========================================================= */
.admin-body { background: var(--purple-soft); min-height: 100vh; }
.admin-wrap { max-width: 760px; margin: 0 auto; padding: 40px 20px 80px; }
.admin-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px;
}
.admin-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.admin-head .brand__logo { font-size: 1.4rem; }
.login-card { max-width: 420px; margin: 8vh auto 0; }

.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-family: var(--font-display); }
.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field textarea {
  width: 100%; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-s);
  font-family: var(--font-body); font-size: 1rem; color: var(--ink); background: #fff;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--purple); border-color: var(--purple); }
.field textarea { min-height: 110px; resize: vertical; }
.field .hint { font-size: .85rem; color: var(--ink-soft); margin-top: 4px; }

.hours-edit { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px 14px; align-items: center; }
.hours-edit label { font-weight: 600; font-family: var(--font-display); }

.field select,
.item-row select {
  padding: .6rem .7rem; border: 1px solid var(--line); border-radius: var(--radius-s);
  font-family: var(--font-body); font-size: 1rem; color: var(--ink); background: #fff;
}
.item-row {
  border: 1px solid var(--line); border-radius: var(--radius-s);
  padding: 12px; margin-bottom: 12px; background: #fbf9fc;
}
.item-row__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.item-row__num {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  background: var(--purple-soft); color: var(--purple); font-weight: 600;
  font-family: var(--font-display); display: grid; place-items: center; font-size: .9rem;
}
.item-row__head input[type="text"] { flex: 1 1 auto; min-width: 0;
  padding: .55rem .7rem; border: 1px solid var(--line); border-radius: var(--radius-s);
  font-family: var(--font-body); font-size: 1rem; color: var(--ink); }
.item-row__head select { flex: 0 0 auto; }
.item-row textarea {
  width: 100%; min-height: 52px; padding: .55rem .7rem; border: 1px solid var(--line);
  border-radius: var(--radius-s); font-family: var(--font-body); font-size: 1rem; color: var(--ink); resize: vertical;
}
.item-row input:focus, .item-row select:focus, .item-row textarea:focus { outline: 2px solid var(--purple); border-color: var(--purple); }

fieldset { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 18px; margin: 0 0 24px; }
fieldset legend { font-family: var(--font-display); font-weight: 600; color: var(--purple); padding: 0 8px; }

.switch { display: flex; align-items: center; gap: .6rem; }

.flash { padding: .9rem 1.1rem; border-radius: var(--radius-s); margin-bottom: 20px; font-weight: 500; }
.flash--ok { background: #e6f6ec; color: #15703d; border: 1px solid #b6e3c6; }
.flash--err { background: #fdecee; color: #a52531; border: 1px solid #f4c4c9; }

.admin-actions { display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.topbar-link { color: var(--purple); text-decoration: none; font-weight: 600; }
.topbar-link:hover { text-decoration: underline; }

/* visible keyboard focus everywhere */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 2px;
}

/* ---- Admin op mobiel ---- */
@media (max-width: 560px) {
  .admin-wrap { padding: 24px 14px 60px; }
  .admin-card { padding: 20px; }
  .admin-head { flex-wrap: wrap; gap: 10px; }
  fieldset { padding: 14px; }
  /* dag-label boven het invoerveld i.p.v. ernaast */
  .hours-edit { grid-template-columns: 1fr; gap: 4px; align-items: stretch; }
  .hours-edit label { margin-top: 8px; }
  .hours-edit label:first-child { margin-top: 0; }
  .admin-actions .btn { width: 100%; justify-content: center; }
  /* aanbod-item: nummer + titel op een rij, icoonkeuze eronder */
  .item-row__head { flex-wrap: wrap; }
  .item-row__head select { flex: 1 1 100%; }
}
