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

.deltablehero {
  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;
}

.deltablehero-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.deltablehero-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;
}

section.deltablefilters {
  height: auto;
  width: calc(100% - 120px - 80px);
  margin: 0 60px;
  margin-top: -80px;

  background-color: var(--background-accent-40);
  border-bottom-left-radius: 60px;
  border-bottom-right-radius: 60px;

  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0px;

  padding: 40px;
  padding-top: 100px;

  box-shadow: 0 0 10px var(--primary-5);

  position: relative;
  z-index: 1;
}

.deltable-filter {
  background-color: var(--background-accent-60);
  border: 1px solid var(--background-accent);
  border-left: none;
  padding: 10px 15px;
  border-radius: 0px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.deltable-filter:first-child {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

.deltable-filter:last-child {
  border-right: 1px solid var(--background-accent);
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

.deltable-filter label {
  font-size: .9rem;
  color: var(--primary-60);
}

.deltable-filter select {
  all: unset;
  font-size: 1.125rem;
  color: var(--primary);
}

.deltable-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;
}

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

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

a.deltable-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.deltable-club {
  all: unset;
  height: 40px;
  max-width: 40px;
  object-fit: contain;
  object-position: center;
  transition: all ease .3s;
}

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

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

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

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

table.deltable th,
table.deltable 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.deltable th {
  background-color: var(--primary-5);
  border-bottom: 2px solid var(--primary-10);
  font-weight: 600;
  white-space: nowrap;
}

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

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

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

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

table.deltable 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.deltable td a:hover::after {
  opacity: .6;
  transform: translateX(2px) translateY(-2px);
}

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

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

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

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

td.deltable-team a {
  width: fit-content;
  display: flex;
  flex-direction: row;
  gap: 15px;
  align-items: center;
  justify-content: flex-start;
}

td.deltable-team a span {
  font-size: 1.125rem;
  margin-right: -10px;
  text-wrap: nowrap;
}

img.deltable-clublogo {
  height: 30px;
  max-width: 40px;
}

.deltable-points span {
  padding: 5px 10px;
  font-size: 1.125rem;
  font-weight: 600;
  background-color: var(--primary);
  color: var(--background-accent);
  border-radius: 5px;
}

p.deltable-source {
  font-size: .8rem;
  color: var(--primary);
  opacity: .6;
  cursor: default;
}

p.deltable-source a {
  font-size: .8rem;
  color: var(--primary);
  text-decoration: none;
  text-underline-offset: 0.15em;
  transition: all ease .3s;
}

p.deltable-source a:hover {
  color: var(--primary-60);
}

p.deltable-source a::after {
  content: "";
  display: inline-block;
  width: 0.6em;
  height: 0.6em;
  margin: 0 0.3em;
  background-image: url("/assets/icons/a_icon.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: all ease .3s;
}

p.deltable-source a:hover::after {
  opacity: 0.6;
  transform: translateX(2px) translateY(-2px);
}

/* -------------------------------- */
/* -- DEL TABELLENZONEN ----------- */

/* Direkte Playoffs */
table.deltable tbody tr:nth-child(-n+6) {
  background-color: rgba(39, 174, 96, .06);
}

table.deltable tbody tr:nth-child(-n+6):hover {
  background-color: rgba(39, 174, 96, .16);
}

table.deltable tbody tr:nth-child(-n+6) td:first-child {
  box-shadow: inset 3px 0 0 rgba(39, 174, 96, .8);
}

/* 1. Playoff-Runde */
table.deltable tbody tr:nth-child(n+7):nth-child(-n+10) {
  background-color: rgba(52, 152, 219, .06);
}

table.deltable tbody tr:nth-child(n+7):nth-child(-n+10):hover {
  background-color: rgba(52, 152, 219, .16);
}

table.deltable tbody tr:nth-child(n+7):nth-child(-n+10) td:first-child {
  box-shadow: inset 3px 0 0 rgba(52, 152, 219, .8);
}

/* Saison beendet */
table.deltable tbody tr:nth-child(n+11):nth-child(-n+13) {
  background-color: transparent;
}

table.deltable tbody tr:nth-child(n+11):nth-child(-n+13):hover {
  background-color: var(--primary-5);
}

/* Abstiegsplatz */
table.deltable tbody tr:nth-child(14) {
  background-color: rgba(231, 76, 60, .06);
}

table.deltable tbody tr:nth-child(14):hover {
  background-color: rgba(231, 76, 60, .16);
}

table.deltable tbody tr:nth-child(14) td:first-child {
  box-shadow: inset 3px 0 0 rgba(231, 76, 60, .8);
}

/* -------------------------------- */
/* -- TABELLENBEWEGUNG ------------ */

/* Pfeil-Spalte */
table.deltable th:nth-child(1),
table.deltable td.deltable-movement {
  width: 18px;
  min-width: 18px;
  max-width: 18px;
  padding-left: 8px;
  padding-right: 2px;
  text-align: center;
}

/* Platz-Spalte */
table.deltable th:nth-child(2),
table.deltable td.deltable-position {
  width: 24px;
  min-width: 24px;
  max-width: 24px;
  padding-left: 4px;
  padding-right: 8px;
  text-align: center;
}

/* Pfeile */
td.deltable-movement span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1;
}

td.deltable-movement-up span {
  color: #27ae60;
}

td.deltable-movement-down span {
  color: #e74c3c;
}

td.deltable-movement-same span {
  color: var(--primary-40);
}

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

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

  section.deltablefilters {
    width: calc(100% - 20px - 80px);
    margin: 0 10px;
    margin-top: calc(-20px - 60px);
  }

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

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

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

  td.deltable-team a span {
  font-size: 1rem;
  }

  .deltable-points span {
    font-size: 1rem;
  }
  
}