:root {
  --bg: #0b0d10;
  --fg: #e8e8e8;
  --muted: #a4acb4;
  --brand: #2dd4bf;
  --brand-2: #60a5fa;
  --card: #12161a;
  --line: #1c2228;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 system-ui, Segoe UI, Roboto, Helvetica, Arial;
}

.container { max-width: 1080px; margin: 0 auto; padding: 32px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header {
  position: sticky; top: 0;
  background: linear-gradient(180deg, rgba(11, 13, 16, .95), rgba(11, 13, 16, .7));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px;
}
.brand { display: flex; gap: 10px; align-items: center; color: var(--fg); font-weight: 700; text-decoration: none; }
.brand .tag { font-weight: 500; font-size: 12px; color: var(--muted); }

.nav a { color: var(--muted); margin-left: 16px; text-decoration: none; }
.nav a:hover { color: var(--brand-2); transition: color .2s ease; }
.nav a.active { color: var(--brand-2); border-bottom: 2px solid var(--brand-2); padding-bottom: 2px; }

/* Hero */
.hero { padding: 96px 0 40px; border-bottom: 1px solid var(--line); }
.hero h1 { font-size: 46px; margin: 0 0 8px; }
.hero .sub { color: var(--muted); margin: 0 0 16px; }

/* Buttons */
.btn {
  display: inline-block;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color: #052521;
  border-radius: 12px;
  padding: 10px 16px;
  text-decoration: none;
  border: 0;
}
.btn:active { transform: translateY(1px); }

/* Links */
.link { color: var(--fg); }

/* Cards / grids */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 32px 0;
}
.grid article {
  background: var(--card);
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  list-style: none;
  padding: 0;
}
.list { line-height: 1.9; }

/* Forms (ens stil for input/textarea/select) */
.form { display: grid; gap: 12px; max-width: 640px; }
.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0f1317;
  color: var(--fg);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form input:focus,
.form textarea:focus,
.form select:focus {
  border-color: var(--brand-2);
  box-shadow: 0 0 0 3px rgba(96,165,250,.2);
}

/* Pænere select med custom pil */
.form select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background-image:
    url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='%23a4acb4' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

.form .btn { width: fit-content; }

/* Captcha “kort” (understøt både .captcha og .captcha-wrap) */
.captcha, .captcha-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}
.captcha img, .captcha-wrap img {
  display: block;
  border-radius: 8px;
  border: 1px solid var(--line);
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 32px; }

/* Flash */
.flash-wrap { position: fixed; bottom: 16px; right: 16px; display: grid; gap: 8px; }
.flash { background: #111; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); }
.flash.success { border-color: #2dd4bf; }
.flash.error { border-color: #ef4444; }

/* Misc */
.lang { opacity: .7; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; }
.badge {
  border: 1px solid var(--line);
  background: var(--card);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
}
.text h2 { margin-top: 32px; }
.text h3 { margin-top: 16px; }

/* Mobile tweaks */
@media (max-width: 920px) {
  .hero h1 { font-size: 36px; }
  .container { padding: 24px; }
  .wrap { padding: 0 12px; }
  .grid { gap: 12px; margin: 24px 0; }
}
@media (max-width: 720px) {
  .site-header .wrap { flex-wrap: wrap; gap: 8px; }
  .brand .tag { display: none; } /* mere plads */
  .nav { width: 100%; display: flex; flex-wrap: wrap; gap: 8px; }
  .nav a { margin-left: 0; }
  .hero { padding: 64px 0 24px; }
  .hero h1 { font-size: 30px; }
}
@media (max-width: 420px) {
  .btn { padding: 8px 12px; border-radius: 10px; }
  .form { max-width: 100%; }
  .captcha, .captcha-wrap { flex-wrap: wrap; }
}

/* Honeypot helt væk (skjult for brugeren) */
.hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: 0;
}
.lang.active { 
  color: var(--brand-2); 
  border-bottom: 2px solid var(--brand-2); 
  padding-bottom: 2px; 
}