/* ===================   MOBILE RESPONSIVE   =================== */

@media (max-width: 768px) {
  .header-title {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .header-actions {
    position: static;
    right: auto;
    top: auto;
    gap: 0.35rem;
  }
}

@media (max-width: 768px) {
  .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .header-btn {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .header-btn i {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .report-header {
    padding: 0.5rem 1rem;
  }
}

@media (max-width: 768px) {
  .header-logo {
    height: 32px;
  }
}

/* Besked der vises på mobil */

.gallery-mobile-message {
  display: none;
  background: var(--colorSundK-light-blue-60, #e8efff);
  border: 2px dashed var(--colorSundK-primary-blue, #162e59);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  text-align: center;
  margin: 1.5rem 0;
}

.gallery-mobile-message i {
  font-size: 2.5rem;
  color: var(--colorSundK-primary-blue, #162e59);
  margin-bottom: 1rem;
  display: block;
}

.gallery-mobile-message h4 {
  margin: 0 0 0.5rem 0;
  color: var(--colorSundK-primary-blue, #162e59);
  font-size: 1.1rem;
}

.gallery-mobile-message p {
  margin: 0;
  color: #555;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* På mobil: Skjul galleri, vis besked */

@media (max-width: 768px) {
  .media-gallery {
    display: none;
  }
}

@media (max-width: 768px) {
  .gallery-mobile-message {
    display: block;
  }
}

@media (max-width: 768px) {
  .report-section {
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.35rem;
  }
}

@media (max-width: 768px) {
  .afsnit-title {
    font-size: 1.15rem;
  }
}

/* Footer responsive */

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
    padding: 0 1rem;
  }
}

@media (max-width: 768px) {
  .footer-section-right {
    text-align: left;
  }
}

/* Floating buttons position */

@media (max-width: 768px) {
  .floating-buttons {
    bottom: 1rem;
    right: 1rem;
  }
}

@media (max-width: 768px) {
  .fab-btn {
    width: 42px;
    height: 42px;
  }
}

/* Data cards single column */

@media (max-width: 768px) {
  .data-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .data-card {
    padding: 1.25rem;
  }
}

@media (max-width: 768px) {
  .data-card-icon {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }
}

@media (max-width: 768px) {
  .data-card-content {
    margin-left: 52px;
  }
}

@media (max-width: 768px) {
  .data-card-btn {
    margin-left: 52px;
  }
}

@media (max-width: 767px) {
  /* Completely disable ToC on mobile */
  .toc-sidebar,
  .toc-open-btn,
  .header-btn[title="Indholdsfortegnelse"] {
    display: none !important;
  }

  /* Content-wrapper takes full width on mobile */
  .content-wrapper {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .content-wrapper.col-md-9 {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

@media (max-width: 768px) {
  .pinned-sidebar {
    width: 100%;
  }
}

