/* Gimmert Gist Biergilde: kleuren uit logo en nieuwsbrief, geen externe fonts (AVG-vriendelijk). */
:root {
  --stout: #33171a;      /* bordeaux-bruin van de nieuwsbrief */
  --malt: #5c2a24;       /* lint van het logo */
  --amber: #d9b544;      /* goud van de knoppen */
  --amber-light: #ecc54f;
  --foam: #fbf7ee;
  --paper: #ffffff;
  --line: #e6dccb;
  --text: #33171a;
  --muted: #76615a;
  --ok: #2f7a3a;
  --err: #a33a2a;
  --wa: #1f9e55;
  --radius: 12px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--foam);
}
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.3rem; }
a { color: var(--malt); }
img { max-width: 100%; }
code, pre { font-size: .85em; background: #f2ebe0; padding: .1em .35em; border-radius: 4px; }
pre { padding: .8em; overflow-x: auto; }

.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }

/* Header */
.site-header { background: var(--stout); color: var(--foam); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 60px; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--foam); text-decoration: none; font-family: var(--serif); font-size: 1.15rem; font-weight: 600; }
.brand-logo { width: 40px; height: 40px; object-fit: contain; }
.site-header nav { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.site-header nav a { color: var(--amber-light); text-decoration: none; font-weight: 500; }
.site-header nav a:hover { text-decoration: underline; }

/* Hero */
.hero {
  background:
    linear-gradient(100deg, rgba(51,23,26,.96) 0%, rgba(51,23,26,.88) 45%, rgba(51,23,26,.55) 100%),
    url("tap.jpg") center / cover no-repeat,
    var(--stout);
  color: var(--foam);
  padding: 64px 0 72px;
  border-bottom: 6px solid var(--amber);
}
.hero-inner { display: flex; align-items: center; gap: 2.5rem; }
.hero-logo { width: 210px; height: auto; flex-shrink: 0; filter: drop-shadow(0 6px 18px rgba(0,0,0,.45)); }
.hero .motto { font-family: var(--serif); font-style: italic; color: var(--amber-light); font-size: 1.15rem; margin: 0 0 .3rem; }
.hero h1 { font-size: clamp(2rem, 6vw, 3.2rem); }
.hero .lead { font-size: 1.2rem; opacity: .9; margin: 0 0 .8rem; }
.hero .next { color: var(--amber-light); margin: 0 0 1.3rem; }

/* Knoppen */
.btn {
  display: inline-block; cursor: pointer; border: 0;
  background: var(--amber); color: var(--stout); font: inherit; font-weight: 700;
  padding: .65em 1.3em; border-radius: 999px; text-decoration: none;
  transition: background .15s;
}
.btn:hover { background: var(--amber-light); }
.btn-small { padding: .4em 1em; font-size: .95rem; }
.btn-ghost { background: transparent; color: var(--malt); box-shadow: inset 0 0 0 2px var(--malt); }
.btn-ghost:hover { background: var(--malt); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #17834a; }

main > section, main > section.wrap { margin: 64px auto; }
.intro { font-size: 1.1rem; max-width: 760px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.small-link { font-size: .95rem; }

/* Agenda */
.events { display: grid; gap: 16px; margin-top: 1rem; }
.event {
  display: flex; gap: 20px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
}
.datebox {
  flex-shrink: 0; width: 72px; height: 80px; border-radius: 10px;
  background: var(--stout); color: var(--foam);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-top: 8px solid var(--amber);
}
.datebox .d { font-family: var(--serif); font-size: 1.9rem; font-weight: 700; line-height: 1; }
.datebox .m { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
.event-body { flex: 1; min-width: 0; }
.event-body h3 { margin-bottom: .2em; }
.meta { color: var(--muted); margin: 0 0 .6rem; }
.desc { margin: 0 0 .8rem; }
.badge { display: inline-block; font-size: .85rem; padding: .15em .7em; border-radius: 999px; background: #f2ebe0; color: var(--malt); margin: 0 0 .8rem; }
.badge-low { background: #fde6c0; color: #8a4b00; }
.badge-full { background: #f6d6d0; color: var(--err); }

.register summary { list-style: none; }
.register summary::-webkit-details-marker { display: none; }
.register[open] summary { display: none; }
.register .form { margin-top: .5rem; max-width: 460px; }

.past { margin-top: 1.5rem; }
.past summary { cursor: pointer; color: var(--muted); }
.past ul { padding-left: 1.2rem; }

/* Formulieren */
.form { display: grid; gap: .8rem; }
.form label { display: grid; gap: .25rem; font-weight: 500; font-size: .95rem; }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; padding: .55em .7em;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--text); width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--amber); border-color: var(--amber); }
.form .btn { justify-self: start; }
.form label.check { display: flex; align-items: center; gap: .5rem; }
.form label.check input { width: auto; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Locatie-band */
.band { background: #f2ebe0; padding: 48px 0; margin: 56px 0 !important; }
.address { font-weight: 600; }
.cafe-photo { display: block; width: 100%; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(51,23,26,.18); }
.board { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: 0; }
.board dt { font-weight: 700; }
.board dd { margin: 0; }

/* Kolommen en kaarten */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card.narrow { max-width: 420px; margin: 48px auto; }
.qr { width: 196px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; margin: 0 0 1rem; }
.qr svg { display: block; width: 100%; height: auto; }

/* Meldingen */
.flash { margin-top: 24px; padding: .8em 1em; border-radius: 10px; font-weight: 500; }
.flash-ok { background: #e3f2e5; color: var(--ok); }
.flash-error { background: #f8e1dc; color: var(--err); }

/* Footer */
.site-footer { background: var(--stout); color: #d9c8ae; padding: 24px 0; font-size: .9rem; }
.site-footer p { margin: 0; }
.footer-inner { display: flex; align-items: center; gap: 1rem; }
.footer-logo { width: 54px; height: auto; }

/* Beheer */
.admin main { padding-bottom: 48px; }
.admin main > section { margin: 32px auto; }
.table-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: .6em .8em; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f2ebe0; font-weight: 600; }
tr:last-child td { border-bottom: 0; }
tr.is-past td { color: var(--muted); }
form.inline { display: inline; margin-left: .6rem; }
.link-danger { background: none; border: 0; padding: 0; font: inherit; color: var(--err); cursor: pointer; text-decoration: underline; }
.grid-form { grid-template-columns: 1fr 1fr; }
.grid-form .span2 { grid-column: span 2; }
.actions { display: flex; gap: .8rem; }

@media (max-width: 680px) {
  .hero { padding: 36px 0 44px; }
  .hero-inner { flex-direction: column; text-align: center; gap: 1.2rem; }
  .hero-logo { width: 150px; }
  .two-col, .grid-form { grid-template-columns: 1fr; }
  .grid-form .span2 { grid-column: auto; }
  .event { gap: 14px; padding: 16px; }
  .datebox { width: 58px; height: 68px; }
  .datebox .d { font-size: 1.5rem; }
  .header-inner { flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; gap: .3rem 1rem; }
  .brand { font-size: 1rem; }
  .site-header nav { gap: .9rem; font-size: .95rem; }
  .brand-logo + span { display: none; }
}
