/* ============================================================
   BROUWERIJNOSTALGIE.BE  —  Stijlblad
   Esthetiek: Belgisch erfgoed / art nouveau / brouwerijarchief
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;1,8..60,300&family=Courier+Prime&display=swap');

/* ── Variabelen ─────────────────────────────────────────── */
:root {
  --koper:      #b5651d;
  --amber:      #d4860a;
  --donker:     #1a110a;
  --papier:     #f5ede0;
  --papier-2:   #ede0cc;
  --lijn:       #c8a87a;
  --tekst:      #2a1a0e;
  --grijs:      #7a6050;
  --wit:        #fdf7ef;
  --schaduw:    rgba(26,17,10,.18);
  --rood:       #8b1a1a;
  --groen:      #2d5a27;
}

/* ── Reset & basis ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Source Serif 4', Georgia, serif;
  background: var(--papier);
  color: var(--tekst);
  min-height: 100vh;
  background-image:
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23b5651d' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ── Header ─────────────────────────────────────────────── */
header {
  background: var(--donker);
  color: var(--papier);
  padding: 0;
  border-bottom: 4px solid var(--amber);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 1.5rem;
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
}

.logo-hop {
  font-size: 3rem;
  line-height: 1;
  flex-shrink: 0;
}

.site-titel {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--amber);
  line-height: 1.1;
}

.site-subtitel {
  font-family: 'Source Serif 4', serif;
  font-size: .95rem;
  color: var(--lijn);
  font-style: italic;
  margin-top: .3rem;
}

/* ── Navigatie ──────────────────────────────────────────── */
nav {
  background: var(--koper);
}

nav ul {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  list-style: none;
  display: flex;
  gap: 0;
}

nav ul li a {
  display: block;
  padding: .65rem 1.2rem;
  color: var(--papier);
  text-decoration: none;
  font-family: 'Source Serif 4', serif;
  font-size: .9rem;
  letter-spacing: .04em;
  transition: background .15s;
}

nav ul li a:hover,
nav ul li a.actief {
  background: var(--amber);
  color: var(--donker);
}

/* ── Hoofd-layout ───────────────────────────────────────── */
main {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

/* ── Zoekblok ───────────────────────────────────────────── */
.zoekblok {
  background: var(--wit);
  border: 1px solid var(--lijn);
  border-top: 4px solid var(--koper);
  padding: 1.8rem 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px var(--schaduw);
}

.zoekblok h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--koper);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.zoekraster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem 1.5rem;
}

.veld label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--grijs);
  margin-bottom: .35rem;
}

.veld input,
.veld select {
  width: 100%;
  padding: .5rem .75rem;
  border: 1px solid var(--lijn);
  background: var(--papier);
  color: var(--tekst);
  font-family: 'Source Serif 4', serif;
  font-size: .95rem;
  border-radius: 2px;
  transition: border-color .15s;
}

.veld input:focus,
.veld select:focus {
  outline: none;
  border-color: var(--koper);
  background: var(--wit);
}

.zoek-acties {
  display: flex;
  gap: 1rem;
  margin-top: 1.2rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem 1.3rem;
  font-family: 'Source Serif 4', serif;
  font-size: .9rem;
  border: none;
  cursor: pointer;
  border-radius: 2px;
  text-decoration: none;
  transition: all .15s;
}

.btn-primair {
  background: var(--koper);
  color: var(--wit);
}

.btn-primair:hover { background: var(--amber); }

.btn-secundair {
  background: transparent;
  color: var(--koper);
  border: 1px solid var(--koper);
}

.btn-secundair:hover { background: var(--papier-2); }

.btn-gevaar {
  background: var(--rood);
  color: var(--wit);
}

.btn-gevaar:hover { background: #6b1212; }

.btn-sm { padding: .3rem .7rem; font-size: .8rem; }

/* ── Resultaten tabel ───────────────────────────────────── */
.resultaten-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: .8rem;
}

.resultaten-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--tekst);
}

.teller {
  font-size: .85rem;
  color: var(--grijs);
  font-style: italic;
}

.tabel-wrapper {
  overflow-x: auto;
  border: 1px solid var(--lijn);
  box-shadow: 0 2px 8px var(--schaduw);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--wit);
  font-size: .9rem;
}

thead tr {
  background: var(--donker);
  color: var(--papier);
}

thead th {
  padding: .7rem 1rem;
  text-align: left;
  font-family: 'Source Serif 4', serif;
  font-size: .78rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
}

thead th a {
  color: var(--lijn);
  text-decoration: none;
}

thead th a:hover { color: var(--amber); }

tbody tr { border-bottom: 1px solid var(--papier-2); transition: background .1s; }
tbody tr:hover { background: #fef3e2; }
tbody td { padding: .65rem 1rem; vertical-align: top; }

.naam-link {
  color: var(--koper);
  text-decoration: none;
  font-weight: 600;
}
.naam-link:hover { color: var(--amber); text-decoration: underline; }

.badge {
  display: inline-block;
  padding: .15rem .5rem;
  font-size: .72rem;
  border-radius: 2px;
  font-family: 'Courier Prime', monospace;
  letter-spacing: .02em;
}

.badge-actief  { background: #d4edda; color: var(--groen); }
.badge-gesloten { background: #f8d7da; color: var(--rood); }
.badge-onbekend { background: var(--papier-2); color: var(--grijs); }

.bier-tags { display: flex; flex-wrap: wrap; gap: .3rem; }
.bier-tag {
  display: inline-block;
  padding: .1rem .45rem;
  background: var(--papier-2);
  color: var(--grijs);
  font-size: .75rem;
  border-radius: 2px;
  border: 1px solid var(--lijn);
}

/* ── Detail kaart ───────────────────────────────────────── */
.detail-kaart {
  background: var(--wit);
  border: 1px solid var(--lijn);
  border-top: 4px solid var(--koper);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px var(--schaduw);
}

.detail-kaart h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--donker);
  margin-bottom: .3rem;
}

.detail-kaart .code {
  font-family: 'Courier Prime', monospace;
  font-size: .85rem;
  color: var(--grijs);
  margin-bottom: 1rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem 2rem;
  margin: 1.5rem 0;
}

.detail-veld dt {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--grijs);
  margin-bottom: .2rem;
}

.detail-veld dd {
  font-size: 1rem;
  color: var(--tekst);
}

.sectie-titel {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--koper);
  border-bottom: 1px solid var(--lijn);
  padding-bottom: .4rem;
  margin: 1.5rem 0 1rem;
}

/* ── Paginering ─────────────────────────────────────────── */
.paginering {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .4rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.pagina-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  height: 2.2rem;
  padding: 0 .6rem;
  border: 1px solid var(--lijn);
  background: var(--wit);
  color: var(--koper);
  text-decoration: none;
  font-size: .9rem;
  border-radius: 2px;
  transition: all .12s;
}

.pagina-link:hover { background: var(--koper); color: var(--wit); border-color: var(--koper); }
.pagina-link.actief { background: var(--koper); color: var(--wit); border-color: var(--koper); pointer-events: none; }
.pagina-link.uitgeschakeld { color: var(--lijn); pointer-events: none; }

/* ── Melding / flash ─────────────────────────────────────── */
.melding {
  padding: .8rem 1.2rem;
  border-radius: 2px;
  margin-bottom: 1.2rem;
  font-size: .92rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.melding-ok    { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.melding-fout  { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.melding-info  { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

/* ── Formulier (admin) ──────────────────────────────────── */
.formulier-kaart {
  background: var(--wit);
  border: 1px solid var(--lijn);
  border-top: 4px solid var(--koper);
  padding: 2rem;
  max-width: 750px;
  box-shadow: 0 2px 8px var(--schaduw);
}

.formulier-rij {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) { .formulier-rij { grid-template-columns: 1fr; } }

.veld { margin-bottom: 1rem; }
.veld textarea {
  width: 100%;
  padding: .5rem .75rem;
  border: 1px solid var(--lijn);
  background: var(--papier);
  color: var(--tekst);
  font-family: 'Source Serif 4', serif;
  font-size: .95rem;
  border-radius: 2px;
  resize: vertical;
  min-height: 80px;
}

/* ── Footer ─────────────────────────────────────────────── */
footer {
  background: var(--donker);
  color: var(--lijn);
  text-align: center;
  padding: 1.5rem;
  font-size: .82rem;
  margin-top: 3rem;
  border-top: 3px solid var(--koper);
}

footer a { color: var(--amber); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ── Leeg resultaat ─────────────────────────────────────── */
.leeg-resultaat {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--grijs);
  font-style: italic;
}

.leeg-resultaat .icoon { font-size: 3rem; display: block; margin-bottom: .8rem; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 700px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  nav ul { flex-wrap: wrap; }
  .zoekraster { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
}

/* ── Taalwidget (dropdown in header) ─────────────────────── */
.taal-widget {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
  flex-shrink: 0;
}

.taal-widget-titel {
  font-family: 'Source Serif 4', serif;
  font-size: 0.72rem;
  color: var(--lijn);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-style: italic;
}

.taal-widget-select-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.taal-select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--donker);
  color: var(--papier);
  border: 1px solid var(--lijn);
  border-radius: 3px;
  padding: 0.35rem 2rem 0.35rem 0.7rem;
  font-family: 'Source Serif 4', serif;
  font-size: 0.85rem;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
  min-width: 140px;
}

.taal-select:hover,
.taal-select:focus {
  border-color: var(--amber);
  background: #2a1a0e;
}

.taal-select option {
  background: var(--donker);
  color: var(--papier);
}

.taal-select-pijl {
  position: absolute;
  right: 0.55rem;
  pointer-events: none;
  color: var(--lijn);
  font-size: 0.75rem;
  line-height: 1;
}

@media (max-width: 700px) {
  .taal-widget { align-items: flex-start; margin-top: 0.8rem; }
  .taal-select  { min-width: 160px; font-size: 1rem; }
}
