/* -------------------------------- */
/* -- VERLETZUNGSREPORT ----------- */

.injuryreporthero {
  height: 400px;
  width: calc(100% - 40px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  margin: 20px;
  border-radius: 40px;
  overflow: hidden;

  position: relative;
  z-index: 2;
}

.injuryreporthero-overlay {
  height: calc(100% - 75px - 40px);
  width: calc(100% - 40px);
  position: relative;
  background-color: var(--primary-80);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 20px;
  padding-top: calc(75px + 20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

h1.injuryreporthero-title {
  all: unset;
  max-width: calc(100% - 40px);
  font-size: 3rem;
  color: var(--background-accent);
  cursor: default;
  text-align: center;
  white-space: normal;
  -webkit-hyphens: auto;
  hyphens: auto;
  word-break: normal;
  overflow-wrap: normal;
}

.injuryreport-content {
  width: calc(1120px);
  max-width: calc(100% - 120px);
  margin-left: 50%;
  transform: translateX(-50%);
  padding: 60px 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.injuryreport-clubs {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.injuryreport-club {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  margin-bottom: 10px;
}

a.injuryreport-club {
  all: unset;
  width: fit-content;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all ease .3s;
}

img.injuryreport-club {
  all: unset;
  height: 40px;
  max-width: 40px;
  object-fit: contain;
  object-position: center;
  transition: all ease .3s;
}

a.injuryreport-club:hover img.injuryreport-club {
  transform: scale(1.1);
}

h2.injuryreport-club {
  all: unset;
  font-size: 1.3rem;
  font-weight: 500;
  position: relative;
  z-index: 0;
  isolation: isolate;
}

section.injuryreport-table {
  width: 100%;
  overflow-x: auto;
}

table.injuryreport {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

table.injuryreport th,
table.injuryreport td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--primary-20);
  font-size: 1.125rem;
  line-height: 1.4;
}

table.injuryreport th {
  background-color: var(--primary-5);
  border-bottom: 2px solid var(--primary-10);
  font-weight: 600;
  white-space: nowrap;
}

table.injuryreport tbody tr {
  transition: background-color .3s ease;
}

table.injuryreport tbody tr:hover {
  background-color: var(--primary-5);
}

table.injuryreport td a {
  color: var(--primary);
  text-decoration: none;
  font-size: inherit;
  font-weight: 600;
  transition: color .3s ease;
}

table.injuryreport td a:hover {
  color: var(--primary-60);
}

table.injuryreport td a::after {
  content: "";
  display: inline-block;
  width: .6em;
  height: .6em;
  margin: 0 .3em;
  background-image: url("/assets/icons/a_icon.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition:
    opacity .3s ease,
    transform .3s ease;
}

table.injuryreport td a:hover::after {
  opacity: .6;
  transform: translateX(2px) translateY(-2px);
}

table.injuryreport time {
  font-size: inherit;
  white-space: nowrap;
}

table.injuryreport th:first-child,
table.injuryreport td:first-child {
  padding-left: 16px;
}

table.injuryreport th:last-child,
table.injuryreport td:last-child {
  padding-right: 16px;
}

table.injuryreport tbody tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 768px) {
  .injuryreporthero {
    width: calc(100% - 20px);
    margin: 10px;
  }

  h1.injuryreporthero-title {
    font-size: 2.2rem;
  }

  .injuryreport-content {
    max-width: calc(100% - 50px);
    padding: 40px 0;
    gap: 20px;
  }

  table.injuryreport {
    min-width: 700px;
  }

  table.injuryreport th,
  table.injuryreport td {
    padding: 11px 14px;
    font-size: 1rem;
  }
}

/* -------------------------------- */
/* -- VERLETZUNGSREPORT 404 ------- */

section.injuryreport-noinjuries {
  height: calc(100svh - 440px - 90px - 30px + 40px - 1px);
  width: calc(100% - 40px - 2px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 20px;
  margin-top: -60px;
  border-radius: 40px;
  border-top-left-radius: 0px;
  border-top-right-radius: 0px;
  background-color: var(--primary-10);
  border: 1px solid var(--primary-40);
  border-top: 0px;
  padding-top: 90px;
  padding-bottom: 30px;
}

img.injuryreport-noinjuries {
  max-height: 50%;
  width: 300px;
  max-width: 80%;
  object-fit: contain;
}

p.injuryreport-noinjuries {
  all: unset;
  max-width: calc(100% - 60px);
  font-size: 1.4rem;
  white-space: pre-line;
  color: var(--primary);
  text-align: center;
  line-height: 1.6;
  cursor: default;
}

@media (max-width: 768px) {
  section.injuryreport-noinjuries {
    height: calc(100svh - 440px - 90px + 40px - 1px);
    width: calc(100% - 20px - 2px);
    margin: 10px;
    margin-top: -60px;
  }

  p.injuryreport-noinjuries {
    font-size: 1.2rem;
  }
}