/* Kramerhosting.nl – gedeelde stylesheet voor alle pagina's.
   Kleuren staan als tokens op :root; het donkere thema overschrijft alleen
   die tokens (systeeminstelling, of de keuze via de themaknop in theme.js). */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
  color-scheme: light;

  --navy: #13202f;
  --navy-2: #1d3046;
  --brand: #3498db;
  --signal: #27ae60;
  --duck: #f5c542;
  --discord: #5865f2;
  --discord-hover: #4752c4;

  --bg: #f4f6f9;
  --surface: #ffffff;
  --surface-2: #eef2f6;
  --line: #dae2eb;
  --ink: #16212e;
  --muted: #526273;
  --link: #1f6fb2;
  --accent: #1f6fb2;
  --accent-hover: #185a92;
  --accent-soft: rgba(52, 152, 219, 0.12);
  --ok: #1a7a42;
  --ok-soft: rgba(39, 174, 96, 0.12);
  --warn: #b9770e;
  --off: #c0392b;

  --shadow: 0 1px 2px rgba(19, 32, 47, 0.06), 0 8px 24px -12px rgba(19, 32, 47, 0.18);

  --font-display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "JetBrains Mono", Menlo, Consolas, monospace;

  --wrap: 1120px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 8px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e1722;
  --surface: #152130;
  --surface-2: #1b2a3c;
  --line: #263a50;
  --ink: #e7eef5;
  --muted: #9db0c3;
  --link: #6cb8ec;
  --accent: #3498db;
  --accent-hover: #4aa6e4;
  --accent-soft: rgba(52, 152, 219, 0.16);
  --ok: #3ccf7c;
  --ok-soft: rgba(39, 174, 96, 0.16);
  --warn: #f0b84a;
  --off: #f0786a;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 28px -14px rgba(0, 0, 0, 0.6);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0e1722;
    --surface: #152130;
    --surface-2: #1b2a3c;
    --line: #263a50;
    --ink: #e7eef5;
    --muted: #9db0c3;
    --link: #6cb8ec;
    --accent: #3498db;
    --accent-hover: #4aa6e4;
    --accent-soft: rgba(52, 152, 219, 0.16);
    --ok: #3ccf7c;
    --ok-soft: rgba(39, 174, 96, 0.16);
    --warn: #f0b84a;
    --off: #f0786a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 28px -14px rgba(0, 0, 0, 0.6);
  }
}

/* ---------- Basis ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
}

h3 {
  font-size: 1.2rem;
  font-weight: 650;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--link);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

code,
.mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

code {
  padding: 0.1em 0.4em;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 2000;
  padding: 0.6rem 1rem;
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--shadow);
}

.skip-link:focus {
  top: 1rem;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

/* ---------- Navigatie ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 38px;
  height: 38px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 0.45rem 0.8rem;
  border-radius: var(--r-sm);
  color: var(--muted);
  font-weight: 550;
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-links a:hover {
  color: var(--ink);
  background: var(--surface-2);
}

.nav-links a[aria-current="page"] {
  color: var(--ink);
  background: var(--surface-2);
  box-shadow: inset 0 -2px 0 var(--brand);
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.icon-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.icon-btn.discord:hover {
  color: #fff;
  background: var(--discord);
  border-color: var(--discord);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.menu-btn {
  display: none;
}

/* Themaknop: toon het icoon van het thema waar je naartoe schakelt */
.theme-toggle .icon-sun {
  display: none;
}
:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}
:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun {
    display: block;
  }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon {
    display: none;
  }
}

@media (max-width: 860px) {
  .menu-btn {
    display: inline-flex;
  }

  .nav-tools {
    margin-left: auto;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    margin: 0;
    padding: 0.75rem var(--gutter) 1rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.75rem 0.9rem;
    font-size: 1.05rem;
  }

  .nav-links a[aria-current="page"] {
    box-shadow: inset 3px 0 0 var(--brand);
  }
}

/* ---------- Knoppen ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.7rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* Donkerder dan het merkgroen, zodat witte tekst voldoende contrast heeft */
.btn-primary {
  background: #1d7f46;
  color: #fff;
}

.btn-primary:hover {
  background: #176a3a;
}

.btn-accent {
  background: #1f6fb2;
  color: #fff;
}

.btn-accent:hover {
  background: #185a92;
}

.btn-discord {
  background: var(--discord);
  color: #fff;
}

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

.btn-ghost {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Knoppen op de donkere hero */
.btn-light {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.btn-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background-color: var(--navy);
  background-image:
    radial-gradient(60rem 30rem at 85% 10%, rgba(52, 152, 219, 0.28), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 1 55 16.5v31L28 63 1 47.5v-31Zm0 63 27 15.5M28 64 1 79.5M28 64v33' fill='none' stroke='%23ffffff' stroke-opacity='.055' stroke-width='1'/%3E%3C/svg%3E");
  background-size: auto, 56px 97px;
}

.hero-minecraft {
  background-color: #10291f;
  background-image:
    radial-gradient(60rem 30rem at 85% 10%, rgba(39, 174, 96, 0.32), transparent 60%),
    radial-gradient(30rem 20rem at 0% 100%, rgba(245, 197, 66, 0.12), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 1 55 16.5v31L28 63 1 47.5v-31Zm0 63 27 15.5M28 64 1 79.5M28 64v33' fill='none' stroke='%23ffffff' stroke-opacity='.055' stroke-width='1'/%3E%3C/svg%3E");
  background-size: auto, auto, 56px 97px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.hero-inner.single {
  grid-template-columns: minmax(0, 46rem);
}

.hero h1 {
  margin-bottom: 1.25rem;
}

.hero .lead {
  max-width: 34em;
  margin-bottom: 2rem;
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.hero a:not(.btn) {
  color: #9fd3f7;
}

@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
}

/* Eén entree-moment bij het laden: tekst, daarna de statusplaat */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * {
    animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .hero-copy > :nth-child(2) {
    animation-delay: 0.06s;
  }
  .hero-copy > :nth-child(3) {
    animation-delay: 0.12s;
  }
  .hero .status-plate {
    animation: rise 0.7s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Statusplaat (live serverstatus) ---------- */

.status-plate {
  position: relative;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
  color: #fff;
}

.status-plate::before {
  /* twee "rack-schroeven" verwijzen naar het serverblok in het logo */
  content: "";
  position: absolute;
  top: 1.1rem;
  right: 1.25rem;
  width: 22px;
  height: 6px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.35) 2px, transparent 2.5px) 0 0 / 11px 6px repeat-x;
}

.status-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.status-head img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.status-head .name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.1;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.2rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #8a99a8;
  flex: none;
}

[data-state="online"] .status-dot {
  background: #3ccf7c;
  box-shadow: 0 0 0 0 rgba(60, 207, 124, 0.6);
}

[data-state="offline"] .status-dot {
  background: #f0786a;
}

@media (prefers-reduced-motion: no-preference) {
  [data-state="online"] .status-dot {
    animation: ping 2.4s ease-out infinite;
  }
}

@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 rgba(60, 207, 124, 0.55);
  }
  70%,
  100% {
    box-shadow: 0 0 0 8px rgba(60, 207, 124, 0);
  }
}

.address {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.8rem 0.9rem 0.8rem 1rem;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  border-radius: var(--r-md);
  background: rgba(0, 0, 0, 0.22);
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.address:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.32);
}

.address .mono {
  flex: 1;
  min-width: 0;
  font-size: clamp(0.98rem, 2.2vw, 1.15rem);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 420px) {
  .address .copy-label span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
}

.address .copy-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
}

.address .copy-label svg {
  width: 16px;
  height: 16px;
}

.address.copied {
  border-style: solid;
  border-color: #3ccf7c;
}

.status-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.5rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.status-facts dt {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.62);
}

.status-facts dd {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.status-facts .wide {
  grid-column: 1 / -1;
}

.status-facts .motd {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.status-note {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Secties ---------- */

.section {
  padding-block: clamp(3rem, 7vw, 5rem);
}

.section + .section {
  padding-top: 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.section-head h2 {
  margin-bottom: 0.6rem;
}

.section-head p,
.muted {
  color: var(--muted);
}

.prose {
  max-width: 40rem;
}

.prose p + p,
.prose p + ul,
.prose ul + p {
  margin-top: 1rem;
}

.prose h2 {
  margin-bottom: 1rem;
}

.prose * + h2 {
  margin-top: 2.5rem;
}

.prose h3 {
  margin: 1.75rem 0 0.5rem;
}

.prose ul {
  padding-left: 1.2rem;
}

.prose li + li {
  margin-top: 0.4rem;
}

/* Paneel: het enige "kaart"-element; gebruikt voor afgebakende blokken */
.panel {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

/* ---------- Homepage: drie ingangen ---------- */

.doors {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.25rem;
}

.door {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease;
}

.door:hover {
  border-color: var(--accent);
}

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

.door .door-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.75rem;
  font-weight: 650;
  color: var(--link);
}

.door:hover .door-link {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.door-mc {
  grid-column: span 6;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem 2.5rem;
  border-left: 5px solid var(--signal);
}

.door-mc .door-text {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.door-mc h3 {
  font-size: clamp(1.4rem, 2.6vw, 1.75rem);
}

.door-hosting,
.door-discord {
  grid-column: span 3;
}

.door-hosting {
  border-top: 4px solid var(--brand);
}

.door-discord {
  border-top: 4px solid var(--discord);
}

.door-discord:hover {
  border-color: var(--discord);
}

.door-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  color: var(--accent);
}

.door-discord .door-icon {
  background: rgba(88, 101, 242, 0.14);
  color: var(--discord);
}

:root[data-theme="dark"] .door-discord .door-icon {
  color: #8f9bff;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .door-discord .door-icon {
    color: #8f9bff;
  }
}

.door-icon svg {
  width: 24px;
  height: 24px;
}

.mini-status {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 15rem;
  padding: 1rem 1.25rem;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.mini-status .row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.mini-status .mono {
  font-size: 1rem;
  color: var(--ink);
}

.mini-status .muted {
  font-size: 0.9rem;
}

@media (max-width: 760px) {
  .door-mc {
    grid-template-columns: 1fr;
  }
  .door-hosting,
  .door-discord {
    grid-column: span 6;
  }
}

/* Feitenrij: korte, controleerbare feiten met dunne scheidingen */
.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.facts > div {
  padding: 1.25rem 1.25rem 1.25rem 0;
}

.facts > div:nth-child(even) {
  padding-left: 1.25rem;
  border-left: 1px solid var(--line);
}

.facts > div:nth-child(n + 3) {
  border-top: 1px solid var(--line);
}

.facts dt {
  font-size: 0.9rem;
  color: var(--muted);
}

.facts dd {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.facts-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.facts-4 > div + div {
  padding-left: 1.25rem;
  border-left: 1px solid var(--line);
}

.facts-4 > div:nth-child(n + 3) {
  border-top: 0;
}

@media (max-width: 700px) {
  .facts-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .facts-4 > div:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }
  .facts-4 > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

/* Twee kolommen: tekst + iets ernaast */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }
}

/* ---------- Functielijst (icoon + tekst, geen losse kaarten) ---------- */

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 2rem 2.5rem;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: start;
  gap: 0.1rem 1rem;
}

.feature-list .door-icon {
  grid-row: 1;
}

.feature-list h3 {
  align-self: center;
  min-height: 46px;
  display: flex;
  align-items: center;
  font-size: 1.1rem;
}

.feature-list p {
  grid-column: 2;
}

.feature-list p {
  color: var(--muted);
}

/* ---------- Stappen (echte volgorde, dus genummerd) ---------- */

.steps {
  counter-reset: step;
  display: grid;
  gap: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.75rem 3.5rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.1rem;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
}

.steps li::after {
  content: "";
  position: absolute;
  left: calc(1.125rem - 1px);
  top: 2.4rem;
  bottom: 0.3rem;
  width: 2px;
  background: var(--line);
}

.steps li:last-child {
  padding-bottom: 0;
}

.steps li:last-child::after {
  display: none;
}

.steps strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 650;
}

.steps p,
.steps span {
  color: var(--muted);
}

/* ---------- Regels ---------- */

.rules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: 2rem 3rem;
}

.rules h3 {
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--line);
}

.rules ol {
  display: grid;
  gap: 0.9rem;
  padding: 0;
  list-style: none;
}

.rules li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  color: var(--muted);
}

.rules li .nr {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ok);
  font-variant-numeric: tabular-nums;
}

.rules li strong {
  display: block;
  color: var(--ink);
  font-weight: 650;
}

/* ---------- Veelgestelde vragen (uitklapbaar) ---------- */

.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0.25rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 0.65rem;
  height: 0.65rem;
  margin-right: 0.35rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-25%) rotate(45deg);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: translateY(25%) rotate(-135deg);
}

.faq summary:hover {
  color: var(--accent);
}

.faq .answer {
  max-width: 44rem;
  padding: 0 0.25rem 1.25rem;
  color: var(--muted);
}

/* ---------- Over ons ---------- */

.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.75rem 2rem;
  padding: 0;
  list-style: none;
}

.values li {
  padding-top: 1rem;
  border-top: 3px solid var(--brand);
}

.values li:nth-child(2) {
  border-color: var(--signal);
}

.values li:nth-child(3) {
  border-color: var(--duck);
}

.values li:nth-child(4) {
  border-color: var(--discord);
}

.values h3 {
  margin-bottom: 0.35rem;
}

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

.timeline {
  position: relative;
  display: grid;
  gap: 1.75rem;
  padding: 0 0 0 1.75rem;
  list-style: none;
  border-left: 2px solid var(--line);
}

.timeline li {
  position: relative;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: calc(-1.75rem - 7px);
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--brand);
}

.timeline li:last-child::before {
  background: var(--signal);
  border-color: var(--signal);
}

.timeline .when {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}

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

.team {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  padding: 0;
  list-style: none;
}

.team li {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.avatar {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}

.avatar svg {
  width: 26px;
  height: 26px;
}

.team .name {
  font-weight: 700;
}

.team .role {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Contact ---------- */

.channels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
}

.channel {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.channel .door-icon {
  margin-bottom: 0.35rem;
}

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

.channel .btn {
  margin-top: auto;
  align-self: flex-start;
}

.channel-discord {
  border-top: 4px solid var(--discord);
}

.channel-discord .door-icon {
  background: rgba(88, 101, 242, 0.14);
  color: var(--discord);
}

.channel-mail {
  border-top: 4px solid var(--brand);
}

.channel-game {
  border-top: 4px solid var(--signal);
}

.channel-game .door-icon {
  background: var(--ok-soft);
  color: var(--ok);
}

.times {
  display: grid;
  gap: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.times li {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.times strong {
  font-weight: 650;
}

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

@media (max-width: 520px) {
  .times li {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }
}

/* ---------- Oproep onderaan ---------- */

.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border-radius: var(--r-lg);
  color: #fff;
  background-color: var(--navy);
  background-image: radial-gradient(40rem 20rem at 100% 0%, rgba(52, 152, 219, 0.35), transparent 60%);
}

.cta-band h2 {
  margin-bottom: 0.35rem;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.8);
}

/* ---------- Foutpagina's ---------- */

.error-hero .code {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(5rem, 16vw, 9rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.55);
  margin-bottom: 1rem;
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: clamp(3rem, 7vw, 5rem);
  padding-block: 3rem 2rem;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.97rem;
}

:root[data-theme="dark"] .site-footer {
  background: #09111a;
  border-top: 1px solid var(--line);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .site-footer {
    background: #09111a;
    border-top: 1px solid var(--line);
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.site-footer .brand {
  color: #fff;
  margin-bottom: 0.75rem;
}

.site-footer h2 {
  margin-bottom: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
  color: #fff;
}

.site-footer ul {
  display: grid;
  gap: 0.4rem;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

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

.footer-note {
  max-width: 26rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 700px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

/* ---------- Toast (kopieerbevestiging) ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 3000;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  box-shadow: var(--shadow);
  transform: translate(-50%, 1rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.panel .actions {
  margin-top: 1.25rem;
}

.rules + .prose {
  margin-top: 2.5rem;
}
