/* ===================================
   HangDeVlagUit.nl — Stylesheet
   =================================== */

:root {
  --blue:   #12335f;
  --red:    #ae1c28;
  --orange: #f58220;
  --light:  #f6f8fb;
  --gold:   #d7b46a;
  --text:   #102033;
  --muted:  #5f7188;
  --card:   #fff;
  --border: #dce4ef;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--light);
  line-height: 1.6;
}

a { color: var(--blue); }

/* ---- Navigation ---- */
.topbar {
  background: var(--blue);
  color: white;
  padding: 14px 20px;
}

.nav {
  max-width: 1120px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-weight: 800;
  letter-spacing: .2px;
  font-size: 22px;
}

.brand span { color: var(--gold); }

.navlinks {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.navlinks a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .15s;
}

.navlinks a:hover        { border-bottom-color: var(--gold); }
.navlinks a.active       { border-bottom-color: var(--gold); color: var(--gold); }

/* ---- Hero ---- */
.hero {
  background:
    linear-gradient(135deg,
      rgba(18,51,95,0.82)  0%,
      rgba(33,70,139,0.76) 55%,
      rgba(174,28,40,0.74) 100%),
    url('../img/hero-bg.jpg') center / cover no-repeat;
  color: white;
  padding: 70px 20px 56px;
}

/* Hero op artikelpagina's (kleinere banner, geen foto) */
.hero-artikel {
  background: linear-gradient(135deg, #12335f 0%, #21468b 65%, #ae1c28 100%);
  padding: 44px 20px 36px;
}

.hero-artikel h1 { font-size: clamp(26px, 4vw, 44px); margin: 8px 0 12px; }
.hero-artikel p  { font-size: 17px; margin: 0; color: #dde8ff; max-width: 760px; }
.breadcrumb      { font-size: 13px; color: rgba(255,255,255,0.65); margin: 0 0 6px; }
.breadcrumb a    { color: rgba(255,255,255,0.75); text-decoration: none; }
.breadcrumb a:hover { color: white; }

.wrap { max-width: 1120px; margin: auto; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 32px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(34px, 5.5vw, 62px);
  line-height: 1.06;
  margin: 0 0 18px;
}

.hero p {
  font-size: 19px;
  max-width: 720px;
  margin: 0 0 24px;
  color: #eef4ff;
}

.cta {
  display: inline-block;
  background: var(--gold);
  color: #102033;
  text-decoration: none;
  font-weight: 800;
  padding: 14px 24px;
  border-radius: 999px;
}

.cta-small {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
}

.cta-small:hover { text-decoration: underline; }

/* ---- Status card ---- */
.status-card {
  background: #fff;
  color: var(--text);
  border-radius: 26px;
  padding: 28px;
  box-shadow: 0 16px 40px rgba(0,0,0,.22);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eef4ff;
  color: var(--blue);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
}

.status-card h2 {
  font-size: 30px;
  margin: 14px 0 8px;
  line-height: 1.15;
}

.status-card p {
  color: var(--muted);
  font-size: 16px;
  margin: 0;
}

/* ---- Sections ---- */
.section     { padding: 52px 20px; }
.section-alt { background: var(--card); }

/* ---- Cards ---- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 8px 22px rgba(18,51,95,.06);
}

.section-alt .card {
  background: var(--light);
}

.card h3 {
  margin-top: 0;
  color: var(--blue);
}

.card img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: white;
  display: block;
  margin-bottom: 16px;
}

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* ---- Utilities ---- */
.list-clean { padding-left: 20px; }

.notice {
  background: #fff8eb;
  border-left: 5px solid var(--gold);
  padding: 18px 20px;
  border-radius: 14px;
}

.ad {
  border: 2px dashed #b7c4d6;
  background: #fff;
  text-align: center;
  color: #6a7890;
  padding: 28px;
  border-radius: 18px;
  margin: 28px 0;
  font-weight: 700;
}

.small { font-size: 13px; color: var(--muted); }

/* ---- Calendar ---- */
.calendar {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(18,51,95,.07);
  margin: 24px 0;
}

.calendar th,
.calendar td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

.calendar th {
  background: #eef4ff;
  color: var(--blue);
  font-weight: 700;
}

.calendar tbody tr:last-child td { border-bottom: none; }
.calendar tbody tr:hover td { background: #f8fafd; }

.row-rouw td { background: #f5f0f5; }
.row-rouw td:first-child { border-left: 4px solid var(--blue); }

/* ---- Vlag badges (kalender) ---- */
.vlag-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  margin-right: 5px;
  white-space: nowrap;
}

.vlag-badge.voluit   { background: #e6f0e6; color: #2a6a2a; }
.vlag-badge.wimpel   { background: #fff0e0; color: #a05800; }
.vlag-badge.halfstok { background: #e8e8f0; color: #3a3a6a; }

/* ---- Legenda ---- */
.legenda {
  margin-top: 28px;
}

.legenda h2 {
  font-size: 16px;
  margin: 0 0 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.legenda-items {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
  align-items: center;
}

/* ---- Privacy page ---- */
.privacy-card {
  max-width: 760px;
  margin: auto;
}

.privacy-card h2 {
  margin-top: 32px;
  color: var(--blue);
  font-size: 20px;
}

/* ---- Footer ---- */
.footer {
  background: #0c2444;
  color: #dbe6f7;
  padding: 34px 20px;
  margin-top: 30px;
}

.footer a { color: #fff; }

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-inner p { margin: 0; }

.footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: #b8d0f0;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.footer-nav a:hover { color: #fff; text-decoration: underline; }

.footer .small { color: #7a96b8; font-size: 12px; }

/* ---- Cookie banner ---- */
.cookie {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  max-width: 920px;
  margin: auto;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 14px 35px rgba(0,0,0,.22);
  border-radius: 18px;
  padding: 18px 22px;
  display: none;
  z-index: 50;
}

.cookie.show { display: block; }

.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.btn {
  border: 0;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  font-size: 14px;
  white-space: nowrap;
}

.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #1a4a80; }
.btn-light   { background: #eef4ff; color: var(--blue); }
.btn-light:hover { background: #dce8f8; }

/* ---- Artikelpagina's ---- */
.artikel-wrap {
  max-width: 840px;
  margin: auto;
}

.artikel-wrap h2 {
  margin-top: 36px;
  color: var(--blue);
}

.artikel-wrap h2:first-child { margin-top: 0; }

.artikel-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-weight: 700;
  font-size: 15px;
}

/* ---- Provincievlaggen ---- */
.provincie-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.provincie-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(18,51,95,.06);
}

.provincie-kleuren {
  height: 60px;
  width: 100%;
}

.provincie-friesland {
  background:
    repeating-linear-gradient(
      -45deg,
      #004b91 0px, #004b91 14px,
      white 14px, white 28px
    );
  position: relative;
}

.provincie-flevoland {
  background: linear-gradient(to bottom, #003da5 45%, #3a9e3a 45% 55%, #c8102e 55%);
}

.provincie-card h3 {
  font-size: 15px;
  margin: 10px 14px 4px;
  color: var(--blue);
}

.provincie-card p {
  font-size: 13px;
  margin: 0 14px 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* ---- Kleurenkaarten (afmetingen pagina) ---- */
.kleuren-grid {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.kleur-kaart {
  flex: 1;
  min-width: 120px;
  border-radius: 14px;
  padding: 20px 16px;
  color: white;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ---- Vlagdiagram ---- */
.vlag-diagram { margin: 24px 0; }

/* ---- "Meer lezen" sectie homepage ---- */
.meer-lezen-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 8px;
}

.meer-lezen-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 4px 14px rgba(18,51,95,.05);
  text-decoration: none;
  color: var(--text);
  display: block;
  transition: box-shadow .15s, transform .15s;
}

.meer-lezen-card:hover {
  box-shadow: 0 8px 24px rgba(18,51,95,.12);
  transform: translateY(-2px);
}

.meer-lezen-card .tag {
  font-size: 11px;
  font-weight: 800;
  color: var(--blue);
  background: #eef4ff;
  padding: 3px 10px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 10px;
}

.meer-lezen-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--blue);
  line-height: 1.3;
}

.meer-lezen-card p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* ---- Responsive ---- */
@media (max-width: 820px) {
  .hero-grid,
  .two,
  .grid,
  .faq-grid { grid-template-columns: 1fr; }

  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero { padding-top: 44px; }
  .section { padding: 36px 16px; }

  .calendar { font-size: 13px; }
  .calendar th, .calendar td { padding: 10px 10px; }

  .status-card h2 { font-size: 26px; }

  .cookie-inner { flex-direction: column; align-items: flex-start; }

  .legenda-items { flex-direction: column; gap: 8px; }

  .provincie-grid { grid-template-columns: repeat(2, 1fr); }

  .meer-lezen-grid { grid-template-columns: repeat(2, 1fr); }

  .artikel-nav { flex-direction: column; }

  .kleuren-grid { flex-direction: column; }
}

@media (max-width: 480px) {
  .provincie-grid  { grid-template-columns: 1fr; }
  .meer-lezen-grid { grid-template-columns: 1fr; }
}

@media print {
  .topbar, .cookie, footer { display: none; }
  body { background: white; }
  .card { box-shadow: none; border: 1px solid #ccc; }
}
