:root{
  --bg1:#0b1c2d;
  --bg2:#122c44;
  --card: rgba(255,255,255,.06);
  --line: rgba(255,255,255,.12);
  --text:#ffffff;
  --muted: rgba(255,255,255,.75);
  --brand:#2b7cff;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(1200px 800px at 20% 10%, rgba(43,124,255,.22), transparent 55%),
    radial-gradient(900px 700px at 80% 0%, rgba(111,66,193,.18), transparent 55%),
    linear-gradient(135deg,var(--bg1),var(--bg2));
}

a{color:inherit;text-decoration:none}
.container{width:min(1080px,92%);margin:0 auto}

/* ===== Topbar ===== */
.topbar{
  position:sticky;top:0;z-index:10;
  backdrop-filter: blur(10px);
  background: rgba(10,20,32,.55);
  border-bottom:1px solid var(--line);
}
.nav{
  display:flex;align-items:center;justify-content:space-between;
  gap:16px;padding:14px 0; position:relative;
}
.brand{display:flex;align-items:center;gap:10px;font-weight:800}
.logo{
  width:34px;
  height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.logo img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brandtext{letter-spacing:.2px}

.menu{display:flex;gap:18px;align-items:center}
.menu a{opacity:.9;font-weight:800;font-size:13px;letter-spacing:.6px}
.menu a:hover{opacity:1}
.menu a.active{color:var(--brand)}

.burger{
  display:none;
  font-size:18px;
  background:var(--card);
  border:1px solid var(--line);
  color:var(--text);
  border-radius:10px;
  padding:8px 10px;
}

/* ===== Hero ===== */
.hero{padding:56px 0 26px}
.heroGrid{display:grid;grid-template-columns: 1.1fr .9fr;gap:22px;align-items:stretch}
h1{font-size:52px;line-height:1.03;margin:0 0 12px}
.muted{color:var(--muted)}
.lead{font-size:18px;color:var(--muted);margin:0 0 18px}

.cta{display:flex;gap:12px;flex-wrap:wrap;margin:16px 0}
.btn{
  display:inline-block;padding:12px 16px;border-radius:12px;
  font-weight:900;border:1px solid var(--line);
  transition: transform .12s ease, filter .12s ease;
}
.btn.primary{background:var(--brand);border-color:transparent}
.btn.ghost{background:var(--card)}
.btn:hover{transform:translateY(-1px);filter:brightness(1.03)}

.note{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:13px;margin-top:14px}
.dot{width:10px;height:10px;border-radius:999px;background:var(--brand);box-shadow:0 0 0 6px rgba(43,124,255,.18)}

.card{border-radius:16px;border:1px solid var(--line);padding:18px}
.glass{background:rgba(0,0,0,.25);backdrop-filter: blur(10px)}
.quick{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}
.pill{
  padding:10px 12px;border-radius:999px;
  background:var(--card);border:1px solid var(--line);
  font-weight:800;font-size:13px
}
.divider{height:1px;background:var(--line);margin:14px 0}
.small{font-size:13px;color:var(--muted)}

/* ===== Sections / Features ===== */
.section{padding:34px 0}
.section h2{margin:0 0 14px;font-size:24px}
.grid{display:grid;grid-template-columns: repeat(3, 1fr);gap:14px}
.feature{
  background:rgba(0,0,0,.22);
  border:1px solid var(--line);
  border-radius:16px;
  padding:16px
}
.feature h3{margin:0 0 8px}
.feature p{margin:0;color:var(--muted);line-height:1.45}

/* ===== Footer ===== */
.section.alt{
  border-top:1px solid var(--line);
  margin-top:20px;
  background:rgba(0,0,0,.18)
}
.footerGrid{
  display:grid;
  grid-template-columns: 1.2fr .8fr .8fr .8fr;
  gap:16px;
  padding:26px 0
}
.footerGrid h4{margin:0 0 10px}
.flink{display:block;color:var(--muted);margin:6px 0}
.flink:hover{color:var(--text)}
.copyright{
  display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;
  padding:14px 0 26px;border-top:1px solid var(--line);color:var(--muted)
}

/* ===== Generic page blocks ===== */
.page{padding:34px 0 60px}
.paper{background:rgba(0,0,0,.25);border:1px solid var(--line);border-radius:16px;padding:18px}
.code{
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
  background:rgba(255,255,255,.08);
  padding:2px 6px;border-radius:8px;border:1px solid var(--line)
}

/* ===== Solliciteren cards (1x, niet dubbel) ===== */
.dept-wrap{padding:44px 0 70px}
.dept-grid{
  width:min(1100px,92%);
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:18px;
}
.dept-card{
  position:relative;
  display:block;
  text-align:center;
  padding:22px 18px 18px;
  border-radius:18px;
  background: rgba(18,18,18,.68);
  border:1px solid rgba(255,255,255,.12);
  color:#fff;
  box-shadow:0 18px 55px rgba(0,0,0,.45);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.dept-card::before{
  content:"";
  position:absolute; inset:-1px;
  border-radius:18px;
  background: radial-gradient(420px 240px at 50% 10%, rgba(255,255,255,.10), transparent 55%);
  pointer-events:none;
}
.dept-card:hover{
  transform:translateY(-6px);
  border-color: rgba(255,255,255,.22);
  box-shadow:0 28px 85px rgba(0,0,0,.65);
}
.dept-icon{
  width:84px;height:84px;
  margin:0 auto 12px;
  border-radius:999px;
  display:flex;align-items:center;justify-content:center;
  background: rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.12);
  overflow:hidden;
}
.dept-icon img{
  width:56px;height:56px;
  max-width:56px;max-height:56px;
  object-fit:contain;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.65));
}
.dept-card h3{margin:6px 0 8px;font-size:18px;font-weight:900}
.dept-card p{margin:0;color: rgba(255,255,255,.82);font-size:13px;line-height:1.4}

/* als je politie-logo NIET transparant wil: geef het een wit vlak */
.dept-card#politie .dept-icon{
  background:#fff;
}
.dept-card#politie .dept-icon img{
  filter:none;
}

/* ===== Responsive ===== */
@media (max-width: 900px){
  .heroGrid{grid-template-columns:1fr}
  h1{font-size:40px}
  .grid{grid-template-columns:1fr}
  .footerGrid{grid-template-columns:1fr 1fr}
}
@media (max-width: 980px){
  .dept-grid{grid-template-columns:repeat(2, 1fr)}
}
@media (max-width: 560px){
  .menu{
    display:none;flex-direction:column;align-items:flex-start;
    background:rgba(10,20,32,.9);
    padding:12px;border:1px solid var(--line);
    border-radius:14px;
    position:absolute;right:4%;top:64px
  }
  .menu.open{display:flex}
  .burger{display:block}
  .footerGrid{grid-template-columns:1fr}
  .dept-grid{grid-template-columns:1fr}
}
/* ===== DENHAAG STYLE SOLLICITEREN ===== */
.dh-sol{
  padding: 80px 0 120px;
  display:flex;
  justify-content:center;
}

.dh-sol-grid{
  display:grid;
  grid-template-columns: repeat(4, 260px);
  gap:22px;
}

.dh-card{
  background: rgba(20,20,20,.85);
  border-radius: 18px;
  padding: 22px 18px 24px;
  text-align: center;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  transition: .2s;
  color:#fff;
}

.dh-card:hover{
  transform: translateY(-6px);
}

.dh-icon{
  width:80px;
  height:80px;
  margin:0 auto 14px;
  border-radius:50%;
  background: rgba(255,255,255,.08);
  display:flex;
  align-items:center;
  justify-content:center;
}

.dh-icon img{
  width:52px;
  height:52px;
  object-fit:contain;
}

.dh-icon.politie{
  background:#ffffff;
}

@media(max-width:1100px){
  .dh-sol-grid{ grid-template-columns: repeat(2, 260px); }
}
@media(max-width:600px){
  .dh-sol-grid{ grid-template-columns: 1fr; }
}
// ===== KRP Links (pas hier alles aan) =====
const LINKS = {
  discord: "https://discord.gg/BdAbkS9td6",
  support: "https://discord.gg/cwmkRxMt4f",
  hulpdiensten: "https://discord.gg/eYMfftsR77",
  onderwereld: "https://discord.gg/htq4cUBRZp",

  // FiveM connect link (voorbeeld: fivem://connect/1.2.3.4:30120)
  fivem: "https://cfx.re/join/4z4rp5"
};

// Zet link op meerdere plekken als ze bestaan
function setHref(id, url) {
  const el = document.getElementById(id);
  if (!el) return;
  el.href = url;
  el.target = "_blank";
  el.rel = "noopener";
}

setHref("discordLink", LINKS.discord);
setHref("discordLink2", LINKS.discord);

setHref("supportLink", LINKS.support);
setHref("supportLink2", LINKS.support);

setHref("hulpdienstenLink", LINKS.hulpdiensten);
setHref("onderwereldLink", LINKS.onderwereld);

// Knop “Meespelen”
setHref("btnMeespelen", LINKS.fivem);

// Jaar in footer (als je die gebruikt)
const y = document.getElementById("year");
if (y) y.textContent = new Date().getFullYear();

// Burger menu (als je dit gebruikt)
const burger = document.getElementById("burger");
const menu = document.getElementById("menu");
if (burger && menu) {
  burger.addEventListener("click", () => {
    const open = menu.classList.toggle("open");
    burger.setAttribute("aria-expanded", open ? "true" : "false");
  });
}
/* ===== REGELS (DenHaag-style) — alleen voor regels.html ===== */
.rules-page{
  padding: 26px 0 80px;
}

/* layout links+rechts */
.rules-layout{
  display:grid;
  grid-template-columns: 290px 1fr;
  gap: 18px;
  align-items: start;
}

/* links inhoud */
.rules-toc{
  position: sticky;
  top: 84px; /* onder je topbar */
  background: rgba(0,0,0,.38);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  padding: 14px;
  max-height: calc(100vh - 110px);
  overflow: auto;
}

.rules-toc__title{
  font-weight: 900;
  margin-bottom: 10px;
  opacity: .95;
}

.rules-toc__nav a{
  display:block;
  padding: 8px 10px;
  border-radius: 10px;
  color: rgba(255,255,255,.78);
  font-size: 13px;
  border: 1px solid transparent;
}

.rules-toc__nav a:hover{
  background: rgba(255,255,255,.06);
  color: #fff;
}

.rules-toc__nav a.active{
  background: rgba(43,124,255,.14);
  border-color: rgba(43,124,255,.25);
  color: #fff;
}

/* rechts content */
.rules-content{
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  padding: 18px;
}

.rules-head h1{
  margin: 0 0 8px;
  font-size: 28px;
}
.rules-head p{
  margin: 0 0 14px;
  color: rgba(255,255,255,.78);
}

.rules-block{
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  scroll-margin-top: 100px; /* netjes bij klikken */
}

.rules-block:first-of-type{
  border-top: 0;
  padding-top: 4px;
}

.rules-block h2{
  margin: 0 0 10px;
  font-size: 16px;
  color: #d6b15a; /* goud */
  font-weight: 900;
}

.rules-block h3{
  margin: 14px 0 6px;
  font-size: 13px;
  color: rgba(255,255,255,.92);
  font-weight: 900;
}

.rules-block p, .rules-block li{
  color: rgba(255,255,255,.80);
  line-height: 1.55;
  font-size: 13px;
}

.rules-block ul{
  margin: 8px 0 0 18px;
}

/* label rechts (Permanente Ban etc.) */
.tag{
  display:inline-block;
  margin-left: 8px;
  font-size: 11px;
  font-weight: 900;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(214,177,90,.14);
  border: 1px solid rgba(214,177,90,.35);
  color: #f0dfb6;
  vertical-align: middle;
}

/* responsive */
@media (max-width: 980px){
  .rules-layout{ grid-template-columns: 1fr; }
  .rules-toc{ position: relative; top: 0; max-height: none; }
}
/* ===== Tickets ===== */
.tix-grid{
  display:grid;
  grid-template-columns: repeat(3,1fr);
  gap:16px;
  margin-top:20px;
}

.tix-card{
  background: rgba(0,0,0,.35);
  border:1px solid rgba(255,255,255,.12);
  border-radius:16px;
  padding:20px;
  color:#fff;
  text-align:left;
  cursor:pointer;
  box-shadow:0 20px 60px rgba(0,0,0,.4);
  transition:.2s;
}

.tix-card:hover{
  transform:translateY(-5px);
  border-color:#2b7cff;
}

@media(max-width:900px){
  .tix-grid{grid-template-columns:1fr;}
}
/* ===== Tickets page ===== */
.tix-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
  margin-top:18px;
}

.tix-card{
  text-align:left;
  padding:18px;
  border-radius:16px;
  background: rgba(0,0,0,.28);
  border:1px solid rgba(255,255,255,.12);
  color:#fff;
  cursor:pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
}
.tix-card:hover{
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.20);
  box-shadow: 0 26px 70px rgba(0,0,0,.45);
}
.tix-card h3{margin:0 0 6px;font-size:18px;font-weight:850}
.tix-card p{margin:0;color:rgba(255,255,255,.78);font-size:13px;line-height:1.35}

.tix-chatwrap{
  margin-top:22px;
  padding:18px;
  border-radius:16px;
  background: rgba(0,0,0,.25);
  border:1px solid rgba(255,255,255,.12);
}

.tix-chatbox{
  margin-top:12px;
  min-height:520px;
  border-radius:14px;
  overflow:hidden;
  background: rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.10);
}

@media (max-width: 980px){
  .tix-grid{grid-template-columns:1fr}
}
/* ===== Ticket chat pagina ===== */
.chat-box{
  margin-top: 28px;
  height: 70vh;
  min-height: 520px;
  width: 100%;
  border-radius: 18px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.12);
  overflow: hidden;
}
/* ===== Tawk chat full width/height in ticket pagina ===== */
.chat-box{
  margin-top: 28px;
  height: 70vh;
  min-height: 520px;
  width: 100%;
  border-radius: 18px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.12);
  overflow: hidden;
}

/* De container waar Tawk in rendert */
#tawk_696a5f5896fcea197d1c5033{
  width: 100% !important;
  height: 100% !important;
}

/* Forceer de iframe die Tawk maakt naar full size */
#tawk_696a5f5896fcea197d1c5033 iframe{
  width: 100% !important;
  height: 100% !important;
  min-width: 520px;        /* voorkomt “super smal” */
}

/* Op mobiel mag hij wél smal zijn */
@media (max-width: 600px){
  #tawk_696a5f5896fcea197d1c5033 iframe{
    min-width: 0 !important;
  }
}
/* ===== Tickets / Forms ===== */
.ticket-panel{
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 18px;
}

.ticket-form{margin-top:12px}

.tf-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.tf-field{display:block}
.tf-field span{
  display:block;
  font-weight:800;
  font-size:12px;
  letter-spacing:.3px;
  color: rgba(255,255,255,.80);
  margin: 0 0 6px;
}

.tf-field input,
.tf-field textarea{
  width:100%;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color:#fff;
  padding: 12px 12px;
  outline: none;
}

.tf-field input:focus,
.tf-field textarea:focus{
  border-color: rgba(43,124,255,.55);
}

.tf-check{
  display:flex;
  gap:10px;
  align-items:flex-start;
  margin-top:12px;
  color: rgba(255,255,255,.85);
  font-size: 13px;
}

.tf-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top: 14px;
}

/* Chat box */
.chat-box{
  margin-top: 12px;
  height: 70vh;
  min-height: 520px;
  border-radius: 18px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.12);
  overflow: hidden;
}

/* Responsive */
@media (max-width: 900px){
  .tf-grid{grid-template-columns:1fr}
}
