@charset "utf-8";

/* ======================================================
   LeMans24h.com
   Main Stylesheet
   Version 1.1 – opryddet og grupperet
====================================================== */


/* ----------- GENERELT LAYOUT ---------------------- */

.page-content {
  padding-top: 95px;
}


/* ----------- NAVIGATION ---------------------- */

.lemans-navbar {
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.navbar-container {
  border-bottom: 1px solid #0b1f3a;
}

.lemans-navbar .navbar-brand img {
  max-height: 58px;
  width: auto;
}

.lemans-navbar .nav-link {
  color: #0b1f3a;
  font-weight: 500;
  padding: 8px 14px;
}

.lemans-navbar .nav-link:hover,
.lemans-navbar .nav-link:focus {
  color: #b21f2d;
}

.lemans-navbar .nav-link.active {
  color: #b21f2d;
  font-weight: 700;
}

.lemans-navbar .form-control,
.lemans-navbar .btn {
  border-radius: 20px;
}


/* ----------- KORT – FÆLLES ---------------------- */

.card-img-top {
  border-radius: 12px 12px 0 0;
}

.info-card,
.nav-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(11, 31, 58, .08);
}

.info-card .card-title,
.nav-card .card-title {
  color: #0b1f3a;
  font-weight: 600;
}

.info-card .card-text,
.nav-card .card-text {
  color: #666666;
}


/* ----------- INFO-KORT ---------------------- */

.info-card {
  border: 1px solid #b21f2d;
}

.info-card .card-img-top {
  height: 220px;
  object-fit: cover;
}


/* ----------- NAVIGATIONSKORT ---------------------- */

.nav-card {
  border: 1px solid #d9e2ef;
  transition: transform .25s ease,
              border-color .25s ease,
              box-shadow .25s ease;
}

.nav-card:hover {
  transform: translateY(-4px);
  border-color: #b21f2d;
  box-shadow: 0 10px 22px rgba(11, 31, 58, .16);
}

.nav-card-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.nav-card-link:hover,
.nav-card-link:focus {
  color: inherit;
  text-decoration: none;
}


/* ----------- TABEL – OVERSKRIFT OG VÆRKTØJER ---------------------- */

.content-heading h2 {
  color: #0b1f3a;
  font-weight: 600;
}

.content-heading p {
  color: #666666;
}

.table-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.table-tools .form-control {
  max-width: 420px;
  min-height: 44px;
  border: 1px solid #d9e2ef;
  border-radius: 10px;
  box-shadow: none;
}

.table-tools .form-control:focus {
  border-color: #0b1f3a;
  box-shadow: 0 0 0 .2rem rgba(11, 31, 58, .10);
}

.table-count {
  color: #666666;
  font-size: 14px;
  white-space: nowrap;
}


/* ----------- TABEL – RAMME OG RESPONSIVITET ---------------------- */

.table-box {
  margin-bottom: 30px;
  background: #ffffff;
  border: 1px solid #d9e2ef;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(11, 31, 58, .08);
}

.table-box .table-responsive {
  overflow-x: auto;
  overflow-y: hidden;
}

.lm-table {
  margin-bottom: 0;
  background: #ffffff;
}


/* ----------- TABEL – KOLONNEOVERSKRIFTER ---------------------- */

.lm-table thead {
  background: #f7f9fc;
  color: #0b1f3a;
}

.lm-table thead th {
  padding: 0;
  border: none;
  border-bottom: 2px solid #0b1f3a;
  font-weight: 600;
  vertical-align: middle;
  white-space: nowrap;
  transition: background-color .18s ease;
}

.lm-table thead th:hover {
  background: #eef3f8;
}


/* ----------- TABEL – SORTERINGSKNAPPER ---------------------- */

.sort-button {
  -webkit-appearance: none;
  appearance: none;
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 12px 16px;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-align: inherit;
  white-space: nowrap;
  cursor: pointer;
}

.sort-button:hover {
  color: #0b1f3a;
}

.sort-button:focus {
  outline: none;
}

.sort-button:focus-visible {
  outline: 2px solid #b21f2d;
  outline-offset: -4px;
}

.sort-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  flex: 0 0 14px;
}

.sort-indicator::before {
  content: "↕";
  color: #9aa5b3;
  font-size: 12px;
  font-weight: 400;
  opacity: .65;
}

th[aria-sort="ascending"] .sort-indicator::before {
  content: "↑";
  color: #b21f2d;
  opacity: 1;
}

th[aria-sort="descending"] .sort-indicator::before {
  content: "↓";
  color: #b21f2d;
  opacity: 1;
}


/* ----------- TABEL – RÆKKER OG CELLER ---------------------- */

.lm-table > :not(caption) > * > * {
  padding: .25rem .6rem;
  vertical-align: middle;
}

.lm-table tbody td {
  border-top: 1px solid #e8edf3;
  transition: background-color .15s ease;
}

.lm-table > tbody > tr:nth-child(even) > * {
  background-color: #f4f8fc !important;
}

.lm-table > tbody > tr:hover > * {
  background-color: #e6f2ff !important;
}

.table-empty-row td {
  padding: 30px 16px !important;
  color: #777777;
  text-align: center;
}


/* ----------- TABEL – LINKS ---------------------- */

.lm-table a {
  color: #0b1f3a;
  text-decoration: none;
  font-weight: 600;
}

.lm-table a:hover,
.lm-table a:focus {
  color: #b21f2d;
}


/* ----------- TABEL – FLAG ---------------------- */

.flag-column {
  width: 40px;
  text-align: center;
}

.table-flag {
  display: block;
  width: 24px;
  height: auto;
  margin: 0 auto;
  border: 1px solid #dddddd;
  border-radius: 2px;
}


/* ----------- FOOTER ---------------------- */

.site-footer {
  margin-top: 60px;
  padding: 30px 0;
  background: #ffffff;
  border-top: 1px solid #d8d8d8;
  color: #777777;
  font-size: 14px;
  text-align: center;
}

.footer-logo {
  max-height: 34px;
  width: auto;
  margin-bottom: 18px;
}

.footer-links {
  margin-bottom: 10px;
  text-align: center;
}

.footer-links a {
  margin: 0 12px;
  color: #0b1f3a;
  text-decoration: none;
  font-weight: 500;
}

.footer-links a:hover,
.footer-links a:focus {
  color: #b21f2d;
}

.footer-copy {
  color: #888888;
  font-size: 13px;
  text-align: center;
}


/* ----------- MOBILVISNING ---------------------- */

@media (max-width: 767.98px) {
  .page-content {
    padding-top: 85px;
  }

  .info-card .card-img-top {
    height: 180px;
  }

  .table-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .table-tools .form-control {
    max-width: none;
  }

  .footer-links a {
    display: inline-block;
    margin: 4px 8px;
  }
}
