/* ==========================================================
   SparkHosting – fælles stylesheet
   Gul #facc15 · Sort #000 · Hvid tekst
   Eget design: skarpe hjørner, kantede knapper, lyn-motiv
   ========================================================== */

:root {
  --yellow: #facc15;
  --yellow-dark: #eab308;
  --black: #000000;
  --bg: #060606;
  --card: #0e0e0e;
  --card-2: #151515;
  --border: #2a2a2a;
  --text: #ffffff;
  --muted: #a1a1aa;
  --radius: 4px;
  --max: 1200px;
  --cut: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(0, 0, 0, .94);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--yellow);
}
.nav { display: flex; align-items: center; height: 72px; gap: 28px; }

.logo { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; letter-spacing: .02em; white-space: nowrap; }
.logo-mark {
  width: 34px; height: 34px; background: var(--yellow); color: #000;
  display: grid; place-items: center;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}
.logo-text { font-weight: 300; color: var(--yellow); text-transform: uppercase; }
.logo-text b { font-weight: 900; color: var(--text); }

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin-left: auto; }
.nav-links a {
  position: relative; display: block; padding: 10px 14px;
  color: var(--yellow); font-weight: 700; font-size: .9rem;
  transition: color .2s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--text); }
.nav-links .mobile-only { display: none; }

.nav-cta {
  padding: 10px 20px; font-weight: 800; font-size: .85rem; letter-spacing: .02em;
  background: var(--yellow); color: #000;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
  transition: filter .2s;
}
.nav-cta:hover { filter: brightness(.9); }

.nav-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--border);
  color: var(--yellow); width: 42px; height: 42px; border-radius: var(--radius); font-size: 1.3rem; cursor: pointer;
}

/* ---------- Knapper ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border: 2px solid transparent; border-radius: var(--radius);
  font-weight: 800; font-size: 1rem; cursor: pointer; font-family: inherit;
  transition: transform .2s, filter .2s, background .2s, color .2s;
}
.btn-primary {
  background: var(--yellow); color: #000; border-radius: 0;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
}
.btn-primary:hover { filter: brightness(.9); transform: translateY(-2px); }
.btn-outline { border-color: var(--yellow); color: var(--yellow); background: transparent; }
.btn-outline:hover { background: var(--yellow); color: #000; }
.btn-lg { padding: 18px 40px; font-size: 1.1rem; }
.btn-block { width: 100%; }

/* ---------- Hero (forside) ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: calc(100vh - 74px);
  display: flex; align-items: center;
  background:
    radial-gradient(ellipse 50% 60% at 78% 50%, rgba(250, 204, 21, .16), transparent 70%),
    var(--black);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 60%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 60%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 64px; }

.badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px;
  border-left: 3px solid var(--yellow); background: rgba(250, 204, 21, .08);
  color: var(--yellow); font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 28px;
}
.badge::before { content: ""; width: 8px; height: 8px; background: var(--yellow); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

.hero h1 { font-size: clamp(2.8rem, 6.4vw, 5.4rem); line-height: 1; font-weight: 900; letter-spacing: -.045em; margin-bottom: 24px; text-transform: uppercase; }
.hero h1 em { font-style: normal; color: var(--yellow); display: block; }
.hero-copy > p { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted); max-width: 520px; margin-bottom: 40px; }

.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--border); max-width: 560px; }
.hero-points li { font-size: .92rem; font-weight: 600; color: #d4d4d8; display: flex; align-items: center; gap: 10px; }
.hero-points li::before { content: ""; width: 8px; height: 8px; background: var(--yellow); transform: rotate(45deg); }

.hero-art { position: relative; display: grid; place-items: center; }
.hero-art svg { width: 100%; max-width: 440px; height: auto; overflow: visible; }
.hero-art .bolt { filter: drop-shadow(0 0 28px rgba(250, 204, 21, .45)); animation: float 5s ease-in-out infinite; transform-origin: center; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero-art .ring-a { animation: spin 60s linear infinite; transform-origin: 200px 200px; }
.hero-art .ring-b { animation: spin 90s linear infinite reverse; transform-origin: 200px 200px; }
@keyframes spin { to { transform: rotate(360deg); } }

.fade-up { opacity: 0; transform: translateY(24px); animation: fadeUp .8s ease forwards; }
.fade-up.d1 { animation-delay: .1s; } .fade-up.d2 { animation-delay: .25s; } .fade-up.d3 { animation-delay: .4s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* ---------- Sektioner ---------- */
.section { padding: 72px 0; }
.page-head {
  position: relative; overflow: hidden; padding: 72px 0 52px; border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse 45% 120% at 15% 0%, rgba(250, 204, 21, .13), transparent 70%);
}
.page-head .container { border-left: 4px solid var(--yellow); padding-left: 28px; margin-left: max(24px, calc((100vw - var(--max)) / 2 + 24px)); max-width: 760px; }
.page-head h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 900; letter-spacing: -.03em; text-transform: uppercase; line-height: 1.05; }
.page-head h1 span { color: var(--yellow); }
.page-head p { color: var(--muted); margin-top: 14px; max-width: 560px; }

.section-title { margin-bottom: 40px; }
.section-title h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); font-weight: 900; letter-spacing: -.02em; text-transform: uppercase; line-height: 1.1; }
.section-title h2 span { color: var(--yellow); }
.section-title p { color: var(--muted); max-width: 620px; margin-top: 10px; }
.section-title.center { text-align: center; }
.section-title.center p { margin-left: auto; margin-right: auto; }

/* ---------- Kort / grid ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }

.card {
  position: relative; background: var(--card); border: 1px solid var(--border); border-top: 3px solid var(--border);
  border-radius: var(--radius); padding: 28px; transition: transform .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); border-color: var(--yellow); }
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: var(--muted); }
.card .btn { margin-top: 18px; }
.icon {
  width: 46px; height: 46px; margin-bottom: 18px; background: rgba(250, 204, 21, .12); color: var(--yellow);
  display: grid; place-items: center; clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}
.icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.logo-mark svg { width: 19px; height: 19px; fill: #000; stroke: #000; stroke-width: 1.5; stroke-linejoin: round; }
.news-date { color: var(--yellow); font-size: .78rem; font-weight: 800; margin-bottom: 8px; letter-spacing: .12em; }

/* ---------- Planer (Gaming VPS) ---------- */
.plans { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.plan {
  position: relative; display: flex; flex-direction: column; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 26px 26px;
  transition: transform .25s, border-color .25s;
}
.plan::before { content: ""; position: absolute; top: -1px; right: -1px; border-style: solid; border-width: 0 34px 34px 0; border-color: transparent var(--yellow) transparent transparent; }
.plan:hover { transform: translateY(-5px); border-color: var(--yellow); }
.plan-tag { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.plan-name { font-size: 1.7rem; font-weight: 900; letter-spacing: -.02em; margin: 4px 0 18px; text-transform: uppercase; }
.plan-price { display: flex; align-items: baseline; gap: 8px; padding-bottom: 22px; border-bottom: 1px dashed var(--border); margin-bottom: 22px; }
.plan-price .amount { font-size: 3rem; font-weight: 900; line-height: 1; color: var(--yellow); letter-spacing: -.04em; }
.plan-price .unit { color: var(--muted); font-weight: 600; font-size: .95rem; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.tile { background: var(--card-2); border: 1px solid var(--border); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.tile svg { width: 18px; height: 18px; fill: none; stroke: var(--yellow); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 6px; }
.tile strong { font-size: 1rem; line-height: 1.2; }
.tile span { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.plan-list { list-style: none; margin-bottom: 26px; flex: 1; }
.plan-list li { padding: 5px 0 5px 24px; position: relative; font-size: .92rem; color: #d4d4d8; }
.plan-list li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 10px; height: 6px; border-left: 2px solid var(--yellow); border-bottom: 2px solid var(--yellow); transform: rotate(-45deg); }
.plan-btn {
  display: flex; justify-content: space-between; align-items: center; padding: 16px 20px;
  background: var(--yellow); color: #000; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; font-size: .9rem;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  transition: filter .2s;
}
.plan-btn:hover { filter: brightness(.9); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 26px 24px 24px 24px; border-left: 3px solid var(--yellow); background: linear-gradient(90deg, rgba(250, 204, 21, .06), transparent); }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font-size: 2.4rem; font-weight: 900; color: var(--yellow); line-height: 1; margin-bottom: 10px; letter-spacing: -.03em; }
.step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .95rem; }

.state { text-align: center; color: var(--muted); padding: 60px 0; grid-column: 1 / -1; }
.spinner { width: 36px; height: 36px; border: 3px solid var(--border); border-top-color: var(--yellow); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 16px; }

/* ---------- Tekstsider / FAQ / CTA ---------- */
.prose { max-width: 760px; color: #d4d4d8; }
.prose p { margin-bottom: 18px; }
.prose h2 { color: var(--text); margin: 36px 0 12px; font-size: 1.5rem; letter-spacing: -.01em; text-transform: uppercase; }
.narrow { max-width: 760px; }

.faq details { background: var(--card); border: 1px solid var(--border); border-left: 3px solid var(--border); padding: 18px 22px; margin-bottom: 10px; transition: border-color .2s; }
.faq details:hover, .faq details[open] { border-left-color: var(--yellow); }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--yellow); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin-top: 12px; }

.cta-band {
  position: relative; padding: 52px 40px; border: 1px solid var(--border); border-left: 5px solid var(--yellow);
  background: radial-gradient(ellipse 60% 140% at 100% 50%, rgba(250, 204, 21, .13), transparent 70%), var(--card);
}
.cta-band h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin-bottom: 10px; text-transform: uppercase; letter-spacing: -.02em; }
.cta-band p { color: var(--muted); margin-bottom: 26px; max-width: 560px; }

/* ---------- Status ---------- */
.status-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; background: var(--card); border: 1px solid var(--border); border-left: 3px solid var(--yellow); margin-bottom: 10px; }
.dot { display: inline-block; width: 10px; height: 10px; margin-right: 10px; background: #22c55e; box-shadow: 0 0 10px #22c55e; }
.dot.wait { background: var(--muted); box-shadow: none; }
.dot.off { background: #ef4444; box-shadow: 0 0 10px #ef4444; }
.status-ok { color: #22c55e; font-weight: 700; }
.status-wait { color: var(--muted); font-weight: 600; }
.status-off { color: #ef4444; font-weight: 700; }
.note { color: var(--muted); font-size: .85rem; margin-top: 16px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); border-top: 2px solid var(--yellow); padding: 56px 0 24px; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-grid p { color: var(--muted); margin-top: 14px; max-width: 340px; font-size: .95rem; }
.footer-grid h4 { color: var(--yellow); margin-bottom: 14px; font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid li a { color: var(--muted); transition: color .2s; }
.footer-grid li a:hover { color: var(--yellow); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; color: var(--muted); font-size: .85rem; }

/* ---------- Responsivt ---------- */
@media (max-width: 1000px) {
  .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--black); border-bottom: 2px solid var(--yellow); padding: 12px 24px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 6px; }
  .nav-links a::after { display: none; }
  .nav-links a.active { color: var(--yellow); background: rgba(250, 204, 21, .08); }
  .nav-links .mobile-only { display: block; }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art svg { max-width: 220px; }
  .hero { min-height: 0; }
  .hero::before { mask-image: none; -webkit-mask-image: none; }
  .page-head .container { margin-left: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .grid-2 { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 24px; }
}

/* ===== Admin-styret indhold: banner + driftsbeskeder ===== */
.site-banner{background:#facc15;color:#000;text-align:center;padding:9px 0;font-weight:600;font-size:14px}
.site-banner.warn{background:#f59e0b}.site-banner.bad{background:#ef4444;color:#fff}
.site-banner a{color:inherit;text-decoration:underline}
.incident{border:1px solid #2a2a2a;border-left:4px solid #facc15;border-radius:4px;padding:12px 16px;margin-top:12px;display:flex;flex-direction:column;gap:4px}
.incident.warn{border-left-color:#f59e0b}.incident.bad{border-left-color:#ef4444}.incident.resolved{opacity:.55;border-left-color:#22c55e}
.incident p{margin:4px 0 0}
#incidents{margin-top:28px}
