/* =========================================================
   IT-Galaksen – style.css
   ========================================================= */

:root {
  /* Farver */
  --bg: #0B1220;            /* sidebaggrund */
  --bg-alt: #0F172A;        /* hver anden sektion */
  --surface: #131C31;       /* kort, formular */
  --surface-2: #16233F;     /* ikon-felter, badge, billedpladser */
  --chip: #1E293B;          /* tags */
  --border: #23304A;
  --border-soft: #1E293B;
  --border-input: #334155;

  --text: #E6EDF7;
  --text-muted: #A3B1C6;
  --text-subtle: #94A3B8;
  --text-chip: #CBD5E1;

  --accent: #1F5EDB;        /* knapper */
  --accent-hover: #1647AD;
  --accent-light: #8FB0F5;  /* links, ikoner, små overskrifter */

  /* Typografi */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Manrope", "Inter", system-ui, sans-serif;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 18px;
}

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

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-head);
  color: var(--text);
}

p {
  margin: 0;
}

a {
  color: var(--accent-light);
  text-decoration: none;
}

a:hover {
  color: #B7CDF9;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 2px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.stack-lg { display: flex; flex-direction: column; gap: 48px; }
.stack-md { display: flex; flex-direction: column; gap: 20px; }

.grid {
  display: grid;
  gap: 24px;
}

/* ---------- Knapper ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 26px;
  border-radius: 12px;
  border: 0;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn-sm {
  min-height: 44px;
  padding: 11px 20px;
  font-size: 15px;
  border-radius: var(--radius-sm);
}

.btn-primary,
.btn-primary:hover {
  color: #FFFFFF;
}

.btn-primary {
  background: var(--accent);
}

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

.btn-ghost {
  background: var(--surface);
  border: 1px solid var(--border-input);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--chip);
  color: #FFFFFF;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.02em;
}

.logo:hover {
  color: var(--text);
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
}

.nav-link {
  color: var(--text-chip);
}

.nav-link:hover {
  color: #FFFFFF;
}

/* ---------- Sektioner ---------- */

.section {
  padding: 96px 0;
  background: var(--bg);
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 640px;
}

.eyebrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h2 {
  font-weight: 800;
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-lead {
  font-size: 17px;
  color: var(--text-muted);
}

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

.hero {
  padding: 96px 0 88px;
}

.hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 64px;
}

.hero-text {
  flex: 1 1 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.badge {
  align-self: flex-start;
  background: var(--surface-2);
  color: var(--accent-light);
  font-size: 14px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
}

h1 {
  font-weight: 800;
  font-size: 56px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.lead {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

/* Illustration */

.hero-visual {
  flex: 1 1 440px;
  min-width: 0;
  padding: 24px 0;
}

.mockup-stage {
  position: relative;
  background: #111A2E;
  border-radius: 28px;
  padding: 36px;
}

.browser {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-soft);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #26324A;
}

.url {
  flex: 1;
  margin-left: 12px;
  height: 22px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  border-radius: 6px;
  background: var(--chip);
  font-size: 11px;
  color: var(--text-subtle);
}

.browser-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.browser-hero {
  height: 120px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  overflow: hidden;
}

.browser-hero svg {
  display: block;
}

.sk {
  border-radius: 6px;
  background: #26324A;
}

.sk-title {
  height: 14px;
  width: 70%;
  background: var(--border-input);
}

.sk-line {
  height: 10px;
}

.sk-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 6px;
}

.sk-grid div {
  height: 54px;
  border-radius: 8px;
  background: var(--chip);
}

.admin-card {
  position: absolute;
  right: -8px;
  bottom: -18px;
  width: 210px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
}

.admin-title {
  font-size: 12px;
  font-weight: 600;
}

.admin-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status.ok { background: #16A34A; }
.status.accent { background: var(--accent); }

.bar {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: #26324A;
}

.bar.short {
  flex: 0 0 60%;
}

/* ---------- Kort ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.15s ease;
}

.card:hover {
  border-color: #3B5B9A;
}

/* Ydelser */

.services {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.service {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.icon-tile {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-tile svg,
.contact-mail svg,
.notice svg {
  fill: none;
  stroke: var(--accent-light);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service h3,
.project h3 {
  font-weight: 700;
  font-size: 20px;
}

.service p,
.project p {
  font-size: 15.5px;
  color: var(--text-muted);
}

/* Trin */

.steps {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 24px;
  border-top: 2px solid var(--accent);
}

.step-no {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 15px;
  color: var(--accent-light);
}

.step h3 {
  font-weight: 700;
  font-size: 21px;
}

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

/* Projekter */

.projects {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.project {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-image {
  height: 200px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

.project img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.project-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.tags li {
  font-size: 13px;
  background: var(--chip);
  color: var(--text-chip);
  padding: 4px 10px;
  border-radius: 999px;
}

.tags-lg li {
  font-size: 14px;
  padding: 6px 12px;
}

.cta-card {
  background: var(--surface-2);
  border-color: #2A3F6A;
  padding: 32px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  color: #FFFFFF;
}

.cta-card:hover {
  color: #FFFFFF;
}

.cta-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cta-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 26px;
  line-height: 1.2;
}

.cta-sub {
  color: var(--text-chip);
}

.cta-link {
  margin-top: 6px;
  font-weight: 600;
  color: var(--accent-light);
}

/* ---------- Om mig ---------- */

.about {
  max-width: 820px;
}

.credentials {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.credential {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.credential strong {
  font-family: var(--font-head);
  font-weight: 700;
}

.credential span {
  font-size: 14px;
  color: var(--text-subtle);
}

/* ---------- Kontakt ---------- */

.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
}

.contact-info {
  flex: 1 1 360px;
  min-width: 0;
}

.contact-mail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  font-weight: 600;
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.notice svg {
  flex-shrink: 0;
  margin-top: 3px;
}

.notice p {
  font-size: 15px;
  color: var(--text-chip);
}

.contact-form {
  flex: 1 1 460px;
  min-width: 0;
  padding: 32px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-form:hover {
  border-color: var(--border);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 14px;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 15px;
  padding: 12px 14px;
  min-height: 46px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border-input);
  border-radius: var(--radius-sm);
}

.field textarea {
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #7C8BA1;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.contact-form .btn {
  align-self: flex-start;
}

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

.site-footer {
  background: #070C17;
  color: var(--text-subtle);
  border-top: 1px solid var(--border-soft);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.logo-footer {
  font-size: 17px;
  color: #FFFFFF;
}

/* ---------- Mobil ---------- */

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 64px; }
  .hero-inner { gap: 40px; }
  h1 { font-size: 38px; }
  h2 { font-size: 30px; }
  .lead { font-size: 17px; }
  .main-nav { gap: 18px; }
  .mockup-stage { padding: 20px; }
  .admin-card { right: 8px; bottom: -14px; width: 180px; }
  .contact-form { padding: 22px; }
  .cta-card { min-height: 0; }
  .projects { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}