:root {
  /* Base */
  --bg: #f3f6fb;              /* lidt mere “blålig” lys baggrund */
  --bg-alt: #ffffff;
  --text: #0f172a;
  --muted: #556274;

  /* Brand */
  --primary: #0f4c81;
  --primary-soft: #e1ecf7;

  /* Frame (header/footer) */
  --frame: #0b2f52;           /* mørk navy */
  --frame-border: rgba(255, 255, 255, 0.10);
  --frame-text: rgba(255, 255, 255, 0.88);
  --frame-text-muted: rgba(255, 255, 255, 0.70);

  /* UI */
  --border: #e5e7eb;
  --radius-lg: 16px;
  --radius-md: 10px;
  --shadow-soft: 0 18px 40px rgba(15, 76, 129, 0.12);
  --shadow-card: 0 10px 30px rgba(2, 12, 27, 0.08);

  /* Layout */
  --max-width: 1180px;
  --footer-height: 58px;
  --transition: 0.18s ease-out;
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

/* Layout */
.container {
  width: 100%;
  max-width: min(var(--max-width), 70vw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Main får bundplads så fixed footer ikke overlapper */
.site-main {
  padding-bottom: calc(var(--footer-height) + 18px);
}

/* Header / navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(11, 47, 82, 0.98), rgba(11, 47, 82, 0.92));
  border-bottom: 1px solid var(--frame-border);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.05rem 0;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.logo-mark {
  font-weight: 850;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-size: 1.15rem;
  color: #ffffff;
}

.logo-sub {
  font-size: 0.95rem;
  color: var(--frame-text-muted);
}

.main-nav {
  display: flex;
  gap: 1.6rem;
  font-size: 1.02rem;
}

.main-nav a {
  color: var(--frame-text-muted);
  text-decoration: none;
  position: relative;
  padding-bottom: 0.18rem;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.85);
  transition: width var(--transition);
}

.main-nav a:hover {
  color: var(--frame-text);
}

.main-nav a:hover::after {
  width: 100%;
}

.main-nav a.active {
  color: #ffffff;
}

.main-nav a.active::after {
  width: 100%;
}

/* Hero / generelle sektioner */
.page {
  padding: 3rem 0 3.5rem;
}

.hero {
  padding: 4rem 0 3rem;
}

.hero-card {
  max-width: 860px;
  margin: 0 auto;
  background: var(--bg-alt);
  padding: 2.8rem 2.6rem;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(229, 231, 235, 0.65);
}

.hero-card h1 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: clamp(2.1rem, 3vw, 2.6rem);
  letter-spacing: -0.02em;
}

.hero-card p {
  margin: 0.35rem 0;
  color: var(--muted);
}

.hero-actions {
  margin-top: 1.55rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.68rem 1.4rem;
  border-radius: 999px;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 76, 129, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(15, 76, 129, 0.28);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border-color: rgba(15, 76, 129, 0.20);
}

.btn-secondary:hover {
  background: var(--primary-soft);
}

/* Generelle sektioner */
.section-title {
  margin-top: 0;
  font-size: 1.65rem;
}

.section-intro {
  max-width: 760px;
  color: var(--muted);
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
  margin-top: 2rem;
}

.card {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.6rem;
  border: 1px solid rgba(229, 231, 235, 0.7);
  box-shadow: var(--shadow-card);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.card p,
.card ul {
  color: var(--muted);
}

.card ul {
  margin: 0.8rem 0 0;
  padding-left: 1.1rem;
}

/* Kontakt */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem;
}

.contact-list {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0 0;
  color: var(--muted);
}

.contact-list a {
  color: var(--primary);
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

.contact-form {
  background: var(--bg-alt);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(229, 231, 235, 0.7);
  box-shadow: var(--shadow-card);
}

.contact-form label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(229, 231, 235, 0.9);
  font-family: inherit;
  font-size: 0.95rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(15, 76, 129, 0.8);
  box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.12);
}

/* Footer: låst i bunden */
.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--footer-height);
  display: flex;
  align-items: center;
  background: linear-gradient(0deg, rgba(11, 47, 82, 0.98), rgba(11, 47, 82, 0.92));
  border-top: 1px solid var(--frame-border);
  font-size: 0.85rem;
  color: var(--frame-text-muted);
  z-index: 90;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-between;
  width: 100%;
}

.site-footer a {
  color: var(--frame-text);
}

/* Responsivitet */
@media (max-width: 720px) {
  .container {
    max-width: 100%;
  }
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
  }
  .main-nav {
    flex-wrap: wrap;
    gap: 0.9rem;
    font-size: 0.95rem;
  }
  .hero-card {
    padding: 1.85rem 1.6rem;
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
}
