:root {
  --blue: #0056b3;
  --indigo: #6610f2;
  --purple: #6f42c1;
  --pink: #e83e8c;
  --red: #dc3545;
  --orange: #fd7e14;
  --yellow: #ffc107;
  --green: #28a745;
  --teal: #20c997;
  --cyan: #17a2b8;
  --white: #fff;
  --gray: #6c757d;
  --gray-dark: #343a40;
  --primary: #007bff;
  --secondary: #6c757d;
  --success: #28a745;
  --info: #17a2b8;
  --warning: #ffc107;
  --danger: #dc3545;
  --light: #f8f9fa;
  --dark: #343a40;
  --breakpoint-xs: 0;
  --breakpoint-sm: 576px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 992px;
  --breakpoint-xl: 1200px;
  --font-family-base: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Typography */
body {
  font-family: var(--font-family-base);
  line-height: 1.5;
  color: var(--gray-dark);
}

h1,
.h1 {
  font-size: 2.5rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

h2,
.h2 {
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 0.875rem;
}

h3,
.h3 {
  font-size: 1.75rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

h4,
.h4 {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.625rem;
}

h5,
.h5 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

h6,
.h6 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
}

p {
  margin-bottom: 1rem;
}

.text-muted {
  color: var(--gray) !important;
}

.text-primary {
  color: var(--primary) !important;
}

.text-secondary {
  color: var(--secondary) !important;
}

.text-success {
  color: var(--success) !important;
}

.text-danger {
  color: var(--danger) !important;
}

.text-warning {
  color: var(--warning) !important;
}

.text-info {
  color: var(--info) !important;
}

.text-light {
  color: var(--light) !important;
}

.text-dark {
  color: var(--dark) !important;
}

[data-bs-theme="dark"] {
  --bs-body-bg: #121212;
  --bs-body-color: #f8f9fa;
  --bs-card-bg: #1e1e1e;
  --bs-card-color: #f8f9fa;
}

.dropdown .dropdown-menu {
  margin-top: 0.5rem;
  right: 0;
  left: auto;
}

.card {
  padding: 2rem;
  border-radius: 16px;
  background-color: #fff;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15), 0 8px 20px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  color: #212529;
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  text-align: center;
  padding-bottom: 3rem;
  padding-top: 3rem;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 40px 70px rgba(0, 0, 0, 0.25), 0 12px 30px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.card::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -20%;
  width: 140%;
  height: 140%;
  background: radial-gradient(
    circle at top left,
    rgba(255, 255, 255, 0.07),
    transparent
  );
  pointer-events: none;
  z-index: 0;
}

.card-title {
  font-weight: 600;
  margin-bottom: 1rem;
}

.card-text {
  color: #6c757d;
  line-height: 1.6;
}

[data-bs-theme="dark"] .card {
  background-color: var(--bs-card-bg);
  color: var(--bs-card-color);
}

[data-bs-theme="dark"] .card-text {
  color: #adb5bd;
}

.card-orange {
  background-color: var(--orange);
}

.card-blue {
  background-color: var(--blue);
}

.card-gray {
  background-color: var(--gray-dark);
}

.card-green {
  background-color: var(--success);
}

.card-red {
  background-color: var(--danger);
}

.card-yellow {
  background-color: var(--warning);
  color: var(--dark); /* Gul baggrund har mørk tekst for bedre læsbarhed */
}

.section-pricing ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.section-pricing li {
  margin-bottom: 0.5rem;
}

/* === Dark theme typography enhancements === */
[data-bs-theme="dark"] h1,
[data-bs-theme="dark"] h2,
[data-bs-theme="dark"] h3,
[data-bs-theme="dark"] h4,
[data-bs-theme="dark"] h5,
[data-bs-theme="dark"] h6,
[data-bs-theme="dark"] .card-title {
  color: #ffffff;
}

[data-bs-theme="dark"] p,
[data-bs-theme="dark"] li,
[data-bs-theme="dark"] .card-text {
  color: #e0e0e0;
  line-height: 1.6;
}

/* Optional: slightly dim headings if needed for aesthetic */
[data-bs-theme="dark"] h2,
[data-bs-theme="dark"] h3 {
  color: #f1f1f1;
}

/* Optional: Ensure <ul>/<ol> bullets are visible */
[data-bs-theme="dark"] ul,
[data-bs-theme="dark"] ol {
  color: #e0e0e0;
}

/* Gør form-labels mere tydelige i dark mode */
[data-bs-theme="dark"] .form-floating > label {
  color: #ccc;
}

/* Optional: Add spacing if some cards look cramped */
.card ul {
  padding-left: 1.25rem;
}

.footer-link {
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: none;
  opacity: 0.8;
}

/* Gælder for både dark og light theme dynamisk */
.reference-title {
  font-weight: 900;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

/* Light mode tekstfarve */
[data-bs-theme="light"] .reference-title {
  color: #000; /* eller en mørk farve efter behov */
}

/* Dark mode tekstfarve */
[data-bs-theme="dark"] .reference-title {
  color: #fff; /* eller evt. #f0f0f0 for en lidt blødere hvid */
}

/* Justér også p.description hvis du bruger det */
[data-bs-theme="light"] .description {
  color: #333;
}

[data-bs-theme="dark"] .description {
  color: #ccc;
}

/* remove underline on copmany links index */
.reference-link {
  text-decoration: none;
}

.reference-link:hover {
  text-decoration: none;
  opacity: 0.8;
}

.section-references a {
  text-decoration: none;
}

.section-references a:hover {
  text-decoration: none;
  opacity: 0.8;
}

/* timeline for roadmap */
.timeline-alt {
  position: relative;
  list-style: none;
  padding: 0;
  margin: 0;
  min-height: 100vh; /* sørger for at midterlinje har højde */
}

.timeline-alt::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background-color: var(--bs-border-color);
  transform: translateX(-50%);
  z-index: 0;
}

.timeline-alt li {
  position: relative;
  min-height: 100px;
}

.timeline-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  background-color: var(--bs-primary);
  border: 3px solid var(--bs-body-bg);
  border-radius: 50%;
  z-index: 1;
}

.timeline > li.timeline-inverted .timeline-panel {
  float: right;
  margin-right: 60px; /* Juster dette tal for at finjustere placering */
}

.timeline::before {
  left: 50%; /* midten af siden */
  transform: translateX(-50%);
}

.timeline-panel {
  width: 46%;
  position: relative;
  background-color: var(--bs-card-bg);
  color: var(--bs-body-color);
  border-radius: 0.75rem;
  border: 1px solid var(--bs-border-color);
  padding: 1.5rem;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
  margin-top: -4rem;
  z-index: 10;
}

/* Venstre kort */
.timeline-panel.left {
  left: 50%;
  transform: translateX(-102%); /* lidt mere end 100% pga. dot afstand */
}

/* Højre kort */
.timeline-panel.right {
  left: 50%;
  transform: translateX(2%); /* ryk lidt til højre for at få afstand fra midterlinje */
}

.timeline-panel .roadmap-entry {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.timeline-panel ul,
.timeline-panel li {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* News specific styles */
.timeline-panel h5 {
  font-size: 1.1rem; /* Reduceret fra standard */
  margin-bottom: 0.5rem;
}

.timeline-panel .small {
  font-size: 0.8rem; /* Reduceret fra standard small */
}

.timeline-panel .roadmap-entry {
  font-size: 0.85rem; /* Reduceret fra 0.9rem */
  line-height: 1.4;
}

/* === MOBIL === */
@media (max-width: 768px) {
  .timeline-alt::before {
    left: 20px;
    transform: none;
  }

  .timeline-badge {
    left: 20px;
    top: 12px;
    z-index: 1;
  }

  .timeline-panel,
  .timeline-panel.left,
  .timeline-panel.right {
    width: calc(100% - 50px);
    float: none;
    margin: 0 0 2rem 50px;
    transform: none !important; /* ← NØGLELINJE: fjerner skæv placering */
    left: 0 !important; /* ← justér position væk fra midten */
  }
}

.login-image {
  width: 80%;
  height: auto;
  display: none;
}

[data-bs-theme="light"] .link-cvr {
  color: var(--blue);
  text-decoration: none;
}

[data-bs-theme="light"] .link-cvr:hover {
  text-decoration: underline;
  color: #004085; /* Mørkere blå til hover */
}

[data-bs-theme="dark"] .link-cvr {
  color: #66b2ff; /* Lysere blå til mørk baggrund */
  text-decoration: none;
}

[data-bs-theme="dark"] .link-cvr:hover {
  color: #3399ff;
  text-decoration: underline;
}

[data-bs-theme="dark"] a {
  color: #f8f9fa;
  text-decoration: none;
}

[data-bs-theme="dark"] a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Ikoner i dark mode (burger, tema osv.) */
[data-bs-theme="dark"] .navbar .btn i,
[data-bs-theme="dark"] .dropdown-toggle i,
[data-bs-theme="dark"] #themeToggle i {
  color: #f8f9fa; /* Hvid tekstfarve til ikoner */
}

/* Ekstra: hover-effekt */
[data-bs-theme="dark"] .navbar .btn:hover i,
[data-bs-theme="dark"] .dropdown-toggle:hover i,
[data-bs-theme="dark"] #themeToggle:hover i {
  color: #ffffff;
}
