:root {
  --bg:#0b0e13; --fg:#e8eef4; --muted:#a9b7c6; --card:#141a22; --accent:#4cc9f0;
  --pill:#e8eef4; --pillText:#0b0e13; --pillActive:#4cc9f0; --pillActiveText:#0b0e13;
}

* { box-sizing: border-box; }
body { margin:0; font-family: system-ui, Segoe UI, Roboto, Helvetica, Arial, sans-serif; background:var(--bg); color:var(--fg); }

.site-header { background:#0d1219; border-bottom:1px solid #1e2632; }
.nav { display:flex; align-items:center; gap:1rem; padding:0.75rem 1rem; }
.brand { color:var(--fg); font-weight:800; text-decoration:none; }
.nav-link { color:var(--muted); text-decoration:none; padding:.2rem .4rem; border-radius:6px; }
.nav-link:hover { color:var(--fg); background:#131a25; }
.nav-link.active { color:var(--fg); background:#192233; }
.spacer { flex:1; }
.lang-switch { color:var(--accent); text-decoration:none; }

.container { max-width:1000px; margin:2rem auto; padding:0 1rem; }
.lede { color:var(--muted); }

.hero-wrap { margin: 16px auto 28px; max-width: 1150px; padding: 0 12px; text-align:center; }
.hero { display:block; width:100%; height:auto; max-width:1100px; border-radius:12px; margin:0 auto; box-shadow:0 3px 10px rgba(0,0,0,.25); }

.card-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.card { background:var(--card); color:var(--fg); text-decoration:none; border:1px solid #1e2632; border-radius:12px; padding:1rem; display:block; }
.card:hover { outline:1px solid var(--accent); }

.tabs { display:flex; gap:.5rem; flex-wrap:wrap; margin:1rem 0; }
.tab {
  display:inline-flex; align-items:center; gap:.5rem;
  background:var(--pill); color:var(--pillText);
  border-radius:999px; padding:.4rem .8rem; text-decoration:none;
  border:1px solid #d0d9e3;
}
.tab:hover { border-color: var(--accent); }
.tab.active { background:var(--pillActive); color:var(--pillActiveText); border-color: var(--pillActive); }
.badge { background:#1b2533; color:#c9d4e3; padding:.05rem .45rem; border-radius:999px; font-size:.8rem; }

.posts { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:1rem; }
.post-card { background:var(--card); border:1px solid #1e2632; border-radius:12px; overflow:hidden; }

/*--- .post-card .banner { width:100%; height:160px; object-fit:cover; display:block; } ---*/
/* Kaartbanners: volledige afbeelding, proportioneel */
.post-card .banner {
  width: 100%;
  height: auto;           /* niet forceren -> geen croppen */
  object-fit: contain;    /* hele afbeelding zichtbaar */
  display: block;
  background: #0b0e13;    /* optioneel: achtergrond rondom de banner */
  padding: 8px;           /* optioneel: ademruimte */
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}
.post-card h2 { margin:1rem; font-size:1.1rem; }
.post-card .meta { margin:0 1rem .5rem; color:var(--muted); }

.post { background:var(--card); border:1px solid #1e2632; border-radius:12px; padding:1rem; }
.post .banner { width:100%; height:auto; border-radius:10px; margin-bottom:1rem; }
.post .meta { color:var(--muted); }

.site-footer { padding:2rem 1rem; text-align:center; color:var(--muted); }

/* --- Proportionele banners in postweergave --- */
.post-banner img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
  max-height: 600px;
}
/* -------------------------------
   Banner-afbeeldingen in cards
   ------------------------------- */
.card img {
  width: 100%;
  height: auto;
  object-fit: contain;   /* toont hele afbeelding zonder afsnijden */
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  display: block;
  background-color: #111;  /* optioneel: donkere achtergrond als rand */
  padding: 8px;            /* zorgt dat de hele banner mooi vrijstaat */
}
/* === HERO zoals op het screenshot === */
.hero-outer{
  position:relative;
  margin:24px auto 28px;
  max-width:1100px;
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 3px 10px rgba(0,0,0,.25);
}
.hero-img{display:block;width:100%;height:auto}

/* === Welkom-tegels === */
.home-cards{ margin-bottom:1.5rem; }
.home-card{
  display:block; background:var(--card); color:var(--fg); text-decoration:none;
  border:1px solid #1e2632; border-radius:12px; padding:1rem; min-height:80px;
}
.home-card:hover{ outline:1px solid var(--accent); }
.home-card-title{ margin:0 0 .25rem 0; }
.home-card-sub{ color:var(--muted); }

/* grid aanvoelen als screenshot – 3 kolommen -> wrap naar 1 op smalle schermen */
.card-grid.home-cards{
  display:grid; gap:12px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* === Kaarten voor posts (compact en strak) === */
.post-card{ min-height:180px; display:flex; flex-direction:column; }
.post-card .banner{
  width:100%; max-height:160px; object-fit:cover; display:block;
  border-top-left-radius:12px; border-top-right-radius:12px;
  border-bottom:1px solid #1e2632;
}
.post-card h2{ margin:12px; font-size:1.05rem; flex:1 0 auto; }
.post-card .meta{ margin:0 12px 12px; color:var(--muted); }

/* ===== NAV/HEADER ===== */
.site-header { background:#0d1219; border-bottom:1px solid #1e2632; }
.nav { display:flex; align-items:center; gap:.6rem; padding:.6rem 1rem; }
.brand { color:var(--fg); font-weight:800; text-decoration:none; margin-right:.5rem; }
.nav-link { color:var(--muted); text-decoration:none; padding:.25rem .6rem; border-radius:8px; }
.nav-link:hover { color:var(--fg); background:#131a25; }
.nav-link.active { color:var(--fg); background:#192233; }

/* ===== LAYOUT ===== */
.container { max-width:1100px; margin:1.2rem auto; padding:0 1rem; }
.card-grid { display:grid; gap:12px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* ===== HOME HERO ===== */
.hero-outer { position:relative; margin:24px auto 28px; max-width:1100px;
  border-radius:12px; overflow:hidden; box-shadow:0 3px 10px rgba(0,0,0,.25); }
.hero-img{ display:block; width:100%; height:auto; }

/* ===== HOME TEGELS ===== */
.home-card { display:block; background:var(--card); color:var(--fg); text-decoration:none;
  border:1px solid #1e2632; border-radius:12px; padding:1rem; min-height:80px; }
.home-card:hover { outline:1px solid var(--accent); }
.home-card-title { margin:0 0 .25rem 0; }
.home-card-sub { color:var(--muted); }

/* ===== POST CARDS ===== */
.post-card { background:var(--card); color:var(--fg); text-decoration:none;
  border:1px solid #1e2632; border-radius:12px; overflow:hidden; display:flex; flex-direction:column; }
.post-card:hover { outline:1px solid var(--accent); }
.post-card .banner { width:100%; max-height:160px; object-fit:cover; display:block; }
.post-card h2 { margin:12px; font-size:1.05rem; line-height:1.25; flex:1 0 auto; }
.post-card .meta { margin:0 12px 12px; color:var(--muted); }

/* ===== AFBEELDING FAIL-SAFE ===== */
.post-card img[onerror], .post-card img:is([src=""], [src=" "]) { display:none; }
img { -webkit-font-smoothing:antialiased; }

/* ===== TYPO ===== */
h2 { margin:0 0 .6rem 0; }
.lede { color:var(--muted); margin:.25rem 0 1rem; }

/* ====== Section tabs (inklapbare groepen) ====== */
.tab {
  margin-bottom: 1.4rem;
  background: #181a1b;
  border-radius: 0.5rem;
  padding: 0.8rem 1rem;
  border: 1px solid #22282d;
}
.tab-label {
  display: block;
  cursor: pointer;
  color: #9ecbff;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.tab-toggle { display: none; }
.tab-content { display: none; padding-left: 0.5rem; }
.tab-toggle:checked + .tab-label + .tab-content { display: block; }

/* Cards / grid */
.post-grid { display: flex; flex-wrap: wrap; gap: 1rem; }
.post-card {
  background: #1f2123; border: 1px solid #22282d;
  padding: 1rem; border-radius: 0.5rem; flex: 1 1 280px;
  transition: 0.2s ease; color: inherit; text-decoration: none;
}
.post-card:hover { background: #25282b; border-color: #2c3340; }
.post-card img { width: 100%; border-radius: 0.4rem; display: block; margin-bottom: .5rem; }
.post-card h3 { margin: .25rem 0 .35rem; font-size: 1.05rem; }
.post-card time { color: #9aa5b1; font-size: .9rem; }

/* --------- PILL TABS – nette chips voor groepen --------- */

.pillbar {
  display: flex;
  gap: .6rem;
  align-items: center;
  margin: 0 0 1rem 0;
  padding: .35rem;
  background: #0f141c;
  border: 1px solid #1e2632;
  border-radius: 999px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.pillbar::-webkit-scrollbar { height: 8px; }
.pillbar::-webkit-scrollbar-thumb {
  background: #1e2632;
  border-radius: 999px;
}
.pillbar::-webkit-scrollbar-track { background: transparent; }

.pill {
  --ring: rgba(76, 201, 240, .25); /* accent glow */
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  text-decoration: none;
  background: var(--pill);
  color: var(--pillText);
  border: 1px solid #ccd6e3;
  padding: .45rem .7rem;
  border-radius: 999px;
  line-height: 1;
  white-space: nowrap;
  transition: border-color .18s ease, box-shadow .18s ease, transform .04s ease;
}

.pill:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--ring);
}

.pill:active { transform: translateY(1px); }

.pill__label {
  font-weight: 600;
  letter-spacing: .1px;
}

.pill__count {
  background: #1b2533;
  color: #c9d4e3;
  padding: .12rem .45rem;
  border-radius: 999px;
  font-size: .8rem;
  line-height: 1;
  border: 1px solid #2a3547;
}

.pill__chev {
  width: 16px;
  height: 16px;
  stroke: #7aa4c9;
  stroke-width: 2;
  fill: none;
}

.group-title {
  margin: 1.2rem 0 .6rem;
  font-size: 1.05rem;
}

.muted { color: var(--muted); }

/* Post cards blijven in jouw stijl, lichtjes aangescherpt */
.post-card {
  position: relative;
  background: var(--card);
  border: 1px solid #1e2632;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: var(--fg);
  transition: transform .06s ease, outline-color .18s ease, box-shadow .18s ease;
}
.post-card:hover {
  outline: 1px solid var(--accent);
  box-shadow: 0 8px 22px rgba(0,0,0,.35);
  transform: translateY(-2px);
}

/* Banners behouden “letterbox” effect, mooi rustig */
.post-card .banner {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  background: #0b0e13;
  padding: 8px;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

/* Hero & home-cards blijven zoals je al had */

/* ===== Top navbar tweaks ===== */
.nav { display:flex; align-items:center; gap:1rem; padding:.75rem 1rem; }
.brand { font-weight:800; text-decoration:none; color:var(--fg); }
.nav-tabs { display:flex; gap:.25rem; }
.nav-link { color:var(--muted); text-decoration:none; padding:.35rem .7rem; border-radius:10px; }
.nav-link:hover { color:var(--fg); background:#131a25; }

/* language switcher */
.lang-switcher { display:flex; gap:.25rem; background:#10161f; padding:.2rem; border-radius:999px; border:1px solid #1e2632; }
.lang-btn { text-decoration:none; padding:.3rem .6rem; border-radius:999px; color:var(--muted); }
.lang-btn.active { background:var(--accent); color:#0b0e13; font-weight:700; }
.lang-btn:hover { background:#192233; color:var(--fg); }

/* ===== Pill bar (tabs zonder counts/pijlen) ===== */
.pillbar {
  display:flex; gap:.5rem; flex-wrap:wrap;
  background:#0e141d; border:1px solid #1e2632; border-radius:999px;
  padding:.35rem; margin:1rem 0 1.25rem; overflow:auto;
}
.pill {
  text-decoration:none;
  background:var(--pill);
  color:var(--pillText);
  padding:.4rem .9rem;
  border-radius:999px;
  border:1px solid #d0d9e3;
  font-weight:600;
}
.pill:hover { border-color: var(--accent); }
.pill[aria-selected="true"],
.pill.active {
  background:var(--pillActive);
  color:var(--pillActiveText);
  border-color:var(--pillActive);
}

/* group heading wat compacter */
.group-title { margin:.6rem 0 .4rem; color:var(--fg); }

/* kaarten staan bij jou al goed; laat banner proportioneel */
.post-card .banner { width:100%; height:auto; object-fit:contain; display:block; background:#0b0e13; padding:8px; }

.pillbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.8rem;
}

.pill {
  background-color: #1d1f23;
  color: #d0d0d0;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  font-weight: 500;
  box-shadow: 0 0 0 1px #333;
}

.pill:hover {
  background-color: #2a2d33;
  color: #fff;
  box-shadow: 0 0 0 1px #555;
}

.page-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.page-subtitle {
  color: #aaa;
  margin-bottom: 1.5rem;
}

.group-title {
  font-size: 1.4rem;
  font-weight: 500;
  color: #ddd;
  margin: 1.8rem 0 1rem 0;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
}

.post-card {
  background: #1a1b1e;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 0 1px #2d2e31;
  transition: transform 0.15s, box-shadow 0.15s;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 0 1px #444, 0 4px 8px rgba(0, 0, 0, 0.4);
}

.post-banner img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.post-body {
  padding: 0.8rem 1rem 1rem;
}

.post-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.post-meta {
  color: #888;
  font-size: 0.85rem;
}

/* ===== PromixNet – UI polish (tabs, cards, anim) ===== */

.page-head {
  margin: 0 0 1rem;
}
.page-title {
  font-size: clamp(1.25rem, 2vw + 1rem, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.2px;
}
.page-subtitle {
  margin-top: .25rem;
  opacity: .75;
}

/* Pills (chips) — minimal, no counts or chevrons */
.pillbar {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin: .75rem 0 1.25rem;
  padding: .25rem 0;
  overflow-x: auto;
}
.pill {
  --pill-bg: rgb(255 255 255 / 4%);
  --pill-bg-hover: rgb(255 255 255 / 8%);
  --pill-border: rgb(255 255 255 / 12%);

  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .7rem;
  border-radius: 999px;
  background: var(--pill-bg);
  border: 1px solid var(--pill-border);
  text-decoration: none;
  color: inherit;
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
  will-change: transform;
}
.pill:hover {
  background: var(--pill-bg-hover);
  transform: translateY(-1px);
  border-color: rgb(255 255 255 / 18%);
}
.pill__label { font-weight: 600; letter-spacing: .2px; }

/* Group heading */
.group-title {
  margin: 1.25rem 0 .6rem;
  font-size: 1rem;
  font-weight: 700;
  opacity: .9;
}

/* Cards grid */
.posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: .9rem;
}

.post-card {
  position: relative;
  display: block;
  padding: .9rem;
  border-radius: 18px;
  background: rgb(255 255 255 / 3.5%);
  border: 1px solid rgb(255 255 255 / 10%);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  will-change: transform;
}
.post-card:hover {
  transform: translateY(-2px);
  border-color: rgb(255 255 255 / 16%);
  box-shadow: 0 6px 18px rgb(0 0 0 / 24%);
}

.banner-wrap {
  margin: -.9rem -.9rem .7rem;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  overflow: hidden;
}
.post-card .banner {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

/* Titles & meta */
.post-title {
  margin: .1rem 0 .35rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
}
.meta {
  font-size: .85rem;
  opacity: .8;
  display: flex;
  align-items: center;
  gap: .45rem;
}
.meta .sep { opacity: .6; }

/* Subtle fade/soft-rise animation */
@keyframes subtleRise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: subtleRise .6s ease-out both; }

/* ============================================================
   SECTION PAGE STYLES  (voor section.html)
   ============================================================ */

.page-header {
  margin: 2rem 0 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.page-header h1 {
  font-size: 1.8rem;
  color: #f5f5f5;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* --- Pills (groepnavigatie) --- */
.pillbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 2rem;
}

.pill {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background-color: rgba(255,255,255,0.07);
  color: #d6d6d6;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.pill:hover,
.pill:focus {
  background-color: rgba(255,255,255,0.15);
  color: #fff;
}

/* --- Groepsblokken en kaarten --- */
.group-block {
  margin-bottom: 3rem;
}

.group-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #ddd;
}

.group-title .muted {
  color: #888;
  font-weight: 400;
}

/* --- Posts grid --- */
.posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.post-card {
  background-color: rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* --- Banner-afbeeldingen --- */
.banner-wrap {
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.banner {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
  filter: brightness(0.9);
  transition: filter 0.3s ease;
}

.post-card:hover .banner {
  filter: brightness(1);
}

/* --- Tekst binnen de kaarten --- */
.post-card__title {
  padding: 0.8rem 1rem 0.4rem;
  font-size: 1.05rem;
  color: #f2f2f2;
  font-weight: 500;
}

.meta {
  font-size: 0.8rem;
  padding: 0 1rem 0.8rem;
  color: #a5a5a5;
}

/* === Page head === */
.page-head { margin: 1.25rem 0 1rem; }
.page-title { font-size: clamp(1.25rem, 2vw + 1rem, 1.75rem); font-weight: 700; }
.page-subtitle { margin-top:.25rem; opacity:.8; }

/* === Pills (tabs/chips) === */
.pillbar {
  display:flex; gap:.5rem; flex-wrap:wrap;
  margin:.75rem 0 1.25rem; padding:.25rem 0;
  overflow-x:auto;
}
.pill {
  display:inline-flex; align-items:center; gap:.5rem;
  padding:.4rem .7rem; border-radius:999px;
  background: rgb(255 255 255 / 4%); border:1px solid rgb(255 255 255 / 12%);
  color: inherit; text-decoration:none;
  transition: background .2s, border-color .2s, transform .15s;
}
.pill:hover { background: rgb(255 255 255 / 8%); border-color: rgb(255 255 255 / 18%); transform: translateY(-1px); }
.pill[aria-selected="true"] { background: var(--accent); color:#0b0e13; border-color: var(--accent); }

/* === Cards grid === */
.group-title { margin:1.2rem 0 .6rem; font-weight:700; opacity:.9; }
.posts { display:grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap:.9rem; }
.post-card { display:block; padding:.9rem; border-radius:18px; background: rgb(255 255 255 / 3.5%); border:1px solid rgb(255 255 255 / 10%); text-decoration:none; color:inherit; transition: transform .18s, border-color .18s, box-shadow .18s; }
.post-card:hover { transform: translateY(-2px); border-color: rgb(255 255 255 / 16%); box-shadow: 0 6px 18px rgb(0 0 0 / 24%); }
.banner-wrap { margin:-.9rem -.9rem .7rem; border-top-left-radius:18px; border-top-right-radius:18px; overflow:hidden; }
.post-card .banner { width:100%; height:180px; object-fit:cover; display:block; }
.post-card__title { margin:.1rem 0 .35rem; font-size:1rem; font-weight:700; line-height:1.25; }
.meta { font-size:.85rem; opacity:.8; display:flex; align-items:center; gap:.45rem; }

