/* #373737 */
body {
  font-family: 'Source Sans 3', sans-serif; /*, 'Martel', 'Montserrat', sans-serif;*/
  font-display: swap;
  background-color: #0f0f0f;
  color: #fff;
  --primary-color: #d10f27;
  padding-bottom: 2rem;
  --bs-danger-rgb: 209, 15, 39;
  --bs-border-color: #373737;
  --bs-form-valid-border-color: #74cf60;
  --bs-form-invalid-border-color: #d10f27;
}

/* Basic */

a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 700;
}

a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

p {
  font-size: 15px;
  line-height: 22px;
}


.section-heading {
  text-align: center;
  margin-bottom: 70px;
}

.section-heading h2:before {
  width: 1px;
  height: 100px;
  background-color: rgba(250, 250, 250, 0.1);
  position: absolute;
  top: -102px;
  content: '';
  left: 50%;
  transform: translate(-50%);
}

.section-heading h2 {
  margin-top: 100px;
  position: relative;
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.5px;
  display: inline-block;
  padding: 15px 20px;
  border: 2px solid rgba(250, 250, 250, 0.1);
}

.h2 {
  margin-top: 2rem;
  margin-bottom: 2rem;
  font-size: 3rem;
  text-transform: uppercase;
  font-weight: 700;
  color: #fff;
}
@media screen and (max-width: 950px) {
  .h2 {
    font-size: 2.5rem;
  }
}

.section-headline {
  border-bottom: 1px solid white;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}
.section-headline.headline-news {
  margin-bottom: 0.2rem;
}
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

button.btn {
  color: white;
  background-color: var(--primary-color);
}
button.btn:hover {
  border: 1px solid var(--bs-border-color);
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}
img.align_left {
  float: left;
  margin: 0 1rem 1rem 0;
}
.message {
  --message-color: #373737;
  margin: 1rem 0;
  border: 2px solid var(--message-color);
  border-left: none;
  border-right: none;
  font-weight: 700;
  padding: 1rem;
  color: var(--message-color);
}
.message::before {
  content: '\f105';
  font-family: "fontello";
  font-weight: 400;
  margin-right: 0.5rem;
  font-size: 2em;
  line-height: 1rem;
  vertical-align: sub;
}
.message.error {
  --message-color: var(--bs-form-invalid-border-color);
}
.message.success {
  --message-color: var(--bs-form-valid-border-color);
}
.register-link, .timetable-link {
  padding: 1rem;
  display: block;
  color: white;
  background-color: var(--primary-color);
  border: 2px solid var(--primary-color);
  text-align: center;
  border-radius: 0.5rem;
  margin: 2rem;
}
.timetable-link {
  background-color: var(--bs-border-color);
}
.register-link:hover, .timetable-link:hover {
  color: white;
}
.bg-white {
  background-color: white;
}

tr, td {
  border: 1px solid #373737;
}
td {
  padding: 0.5rem;
  text-align: center;
}
thead td {
  font-size: 1.2rem;
  font-weight: 700;
}
tbody tr:nth-child(2n) {
  background-color: #b7b7af;
}
td p:last-child {
  margin-bottom: 0;
}
td.bg1 {
  background-color: var(--primary-color);
  color: white;
}
td.bg2 {
  background-color: #831a6c;
  color: white;
}
td.bg3 {
  background-color: #4e003c;
  color: white;
}
td.bg4 {
  background-color: #d59005;
  color: white;
}
td.bg5 {
  background-color: #fdd000;
}
td.bg6 {
  background-color: #08a599;
}
td.bg7 {
  background-color: #39d505;
}
td.bg8 {
  background-color: #d56305;
}
td.bg9 {
  background-color: #e1d228;
}
td.bg10 {
  background-color: #7228e1;
  color: white;
}
td.bg11 {
  background-color: #67f4e8;
}
td.bg12 {
  background-color: #10cc29;
}
td.bg13 {
  background-color: #b8e147;
}
td.bg14 {
  background-color: #210ecc;
  color: white;
}
td.bg15 {
  background-color: #5161fb;
}
td.bg16 {
  background-color: #813600;
  color: white;
}
td.bg17 {
  background-color: #c10ab6;
}
td.bg18 {
  background-color: #dd0920;
  color: white;
}

table.timetable td {
  width: 1%;
}
table.timetable tr td:first-child {
  width: 2%;
}
.timetable-entry {
  padding: 0.5rem;
  display: flex;
  width: 100%;
  flex-flow: row;
  column-gap: 1rem;
}
.timetable-entry:hover, .timetable-entry:active {
  outline: 2px solid var(--primary-color);
  outline-offset: -2px;
}
.timetable-extra {
  flex-grow: 1;
  display: block;
}
.timetable-time {
  flex-shrink: 1;
  display: block;
}

/* Header */

@media screen and (max-width: 1150px) {
  .main-header .logo {
    padding-left: 30px !important;
  }

  .main-menu {
    padding-right: 30px !important;
    margin-right: 0 !important;
  }

  .main-menu li {
    margin-left: 5px !important;
  }
}

.main-header {
  background-color: rgba(55, 55, 55, 0.95);
  height: 80px;
  position: fixed;
  z-index: 12;
  width: 100%;
  top: 0;
  display: flex;
  flex-direction: row;
}

.main-header .logo {
  float: left;
  line-height: 80px;
  padding-left: 60px;
  align-self: flex-start;
}

.main-header .logo a {
  font-size: 36px;
  text-transform: uppercase;
  font-weight: 800;
  color: #fff;
  height: 80px;
  display: inline-block;
  position: relative;
  text-wrap: nowrap;
}

.main-header .logo a:hover {
  text-decoration: none;
}

.main-header .logo a img {
  width: 150px;
  position: relative;
}

.main-nav {
  width: 100%;
  justify-content: right;
  display: flex;
}
.main-menu {
  margin-right: 60px;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  width: 100%;
  justify-content: right;
  flex-wrap: wrap;
}

.main-menu li {
  display: inline-block;
  line-height: 79px;
  margin-left: 15px;
  position: relative;
}

.main-menu li:first-child {
  margin-left: 0;
}

.main-menu li a {
  padding: 10px 15px;
  font-size: 15px;
  text-transform: uppercase;
  font-weight: 700;
  color: #fff;
  border: 2px solid transparent;
  transition: all 0.5s;
  text-shadow: 1px 1px 20px #373737;
}

.main-menu li.has-submenu a:after {
  content: '\e800';
  font-family: "fontello";
  margin-left: 5px;
}

.main-menu li.has-submenu ul li a:after {
  display: none;
}

.main-menu li .sub-menu {
  position: absolute;
  width: 160px;
  background-color: #373737;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s;
}

.main-menu li:hover .sub-menu {
  opacity: 1;
  visibility: visible;
}

.main-menu li .sub-menu li {
  display: block;
  line-height: 20px;
  margin-left: 0px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #121b2f;
}

.main-menu li .sub-menu li:first-child {
  padding-top: 15px;
}

.main-menu li .sub-menu li:last-child {
  margin-bottom: 0px;
  border-bottom: none;
}

.main-menu li .sub-menu li a {
  font-size: 12px;
  font-weight: 500;
  padding: 0px 15px;
  letter-spacing: 0.5px;
  border: none;
  transition: all 0.5s;
}

.main-menu li .sub-menu li a:hover {
  color: var(--primary-color);
  border: none;
}

.main-nav li:hover a,
.main-nav li.active a {
  border: 2px solid var(--primary-color);
  box-shadow: 0 0 5px var(--primary-color);
}

a.menu-link {
  display: none;
}

@media (max-width: 950px) {
  .main-header {
    display: block;
  }
  a.menu-link {
    float: right;
    display: block;
    font-size: 36px;
    color: #fff;
    padding-right: 30px;
    padding-top: 13px;
  }

  .main-nav li:hover a,
  .main-nav li.active a {
    border: 2px solid transparent;
    border-bottom: 1px solid rgba(250, 250, 250, 0.25);
  }

  nav[role="navigation"] {
    overflow: hidden;
    max-height: 0;
  }

  nav[role="navigation"] {
    clear: both;
    -webkit-transition: all 0.3s ease-out;
    -moz-transition: all 0.3s ease-out;
    -ms-transition: all 0.3s ease-out;
    -o-transition: all 0.3s ease-out;
    transition: all 0.3s ease-out;
  }

  nav[role="navigation"].active {
    max-height: 20em;
    height: 20em;
    overflow-y: scroll;
  }

  nav[role="navigation"] ul {
    top: 0;
    width: 100%;
    position: relative;
    margin: 0;
    padding: 0;
    border-top: 1px solid rgba(250, 250, 250, 0.25);
    background-color: #373737;
    display: block;
  }

  .main-menu {
    padding-right: 0 !important;
  }

  .main-menu li {
    display: block;
    line-height: 1;
    margin-left: 0 !important;
  }

  nav[role="navigation"] li a {
    display: block;
    padding: 15px 0px;
    border-bottom: 1px solid rgba(250, 250, 250, 0.25);
    text-align: center;
    color: #fff;
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 700;
    line-height: 1.5;
  }
}

/* Fading animation */
.slide-fade {
  animation-name: slide-fade;
  animation-duration: 0.5s;
  animation-iteration-count: 1;
}

@keyframes slide-fade {
  from {
    opacity: .4
  }
  to {
    opacity: 1
  }
}

.image-slider {
  --image-slider-height: 90vh;
  height: var(--image-slider-height);
  min-height: var(--image-slider-height);
  max-height: var(--image-slider-height);
  min-width: 100%;
  max-width: 100%;
  overflow: hidden;
}

@media (max-width: 950px) {
  .image-slider  {
    --image-slider-height: 80vh;
  }
}

.image-slider .slider-image {
  display: none;
  position: relative;
  object-fit: cover;
  min-width: 100%;
  min-height: 100%;
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
}

.image-slider .slider-image.active {
  display: block;
}

.slider-overlay {
  position: absolute;
  background-color: rgba(55, 55, 55, 0.5);
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
}

.main-banner {
  position: relative;
}

.main-banner .caption {
  text-align: center;
  position: absolute;
  width: 80%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.main-banner .caption h2 {
  margin-top: 30px;
  margin-bottom: 30px;
  font-size: 64px;
  text-transform: uppercase;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
}

.main-banner .caption h2 em {
  font-style: normal;
  font-weight: 900;
  color: var(--primary-color);
}


@media (max-width: 950px) {
  .main-banner .caption h2 {
    font-size: 3rem;
  }
}

/* Features */
.features-post {
  position: relative;
  margin-bottom: 0;
}

@media screen and (max-width: 950px) {
  .features-post {
    outline: 1px solid #0f0f0f;
  }
}

.features-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #373737;
  color: #fff;
  padding: 25px;
  max-height: calc(90vh - 90px);
  overflow-y: auto;
  overflow-x: hidden;
}

@media screen and (max-width: 992px) {
  .features-content {
    position: relative;
    max-height: unset;
  }
}

.features-content .icon {
  font-size: 3rem;
  vertical-align: middle;
  line-height: 1.2rem;
  display: inline-block;
  margin: 0 -0.5rem;
}

.features-content .content-hide {
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s ease-in-out;
}

.features-content h4 {
  font-size: 1.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.features-content:hover .content-hide {
  max-height: 800px;
}

.features-content a, a .more {
  display: inline-block;
  padding: 0.5rem 2rem 0.5rem 1rem;
  color: white;
  position: relative;
  border: 1px solid white;
  border-radius: 0.3rem;
  background-image: linear-gradient(to right, var(--primary-color) 0%, var(--primary-color) 50%,  rgba(255, 255, 255, 0) 50%,  rgba(255, 255, 255, 0) 100%);
  background-size: 220% 100%;
  background-position: 100%;
  margin: 0.5rem 0;
  width: 100%;
  transition: background-position .2s linear;
}
.features-content a:hover, a:hover .more {
  background-position: 0;
  text-decoration: none;
}

.features-content a:after, a .more:after {
  content: '\e802';
  font-family: 'fontello';
  display: inline-block;
  margin-right: 1rem;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.fixed-image {
  max-width: 100%;
}
.main-text a {
  max-width: 100%;
  text-overflow: ellipsis;
  overflow: hidden;
  display: inline-block;
  vertical-align: bottom;
}

/* News */
.card {
  padding: 0;
  border: 0;
  border-radius: 0.5rem;
  overflow: hidden;
  --bs-body-bg: #373737;
  --bs-card-color: white;
  --bs-secondary-color: white;
  height: 100%;
}

.card-body {
  display: flex;
  flex-direction: column;
}

a.news-link:hover {
  text-decoration: none;
}
a.news-link:hover span {
  text-decoration: underline;
}
a.news-link img {
  transition-duration: 0.5s;
}
a.news-link:hover img {
  transform: scale(1.05) translate3d(0, 0, 0);
  transform-origin: 50% 50%;
}
a.news-link p:not(.date) {
  flex-grow: 1;
}
section.up {
  position: relative;
  margin-top: -6rem;
  background-image: linear-gradient(to bottom, rgba(15, 15, 15, 0.8), #0f0f0f 6rem);
}

a[role=gallery-item] {
  width: 100%;
  display: block;
  height: 100%;
}

a[role=gallery-item] img {
  object-fit: cover;
  height: 100%;
  width: 100%;
}

#map {
  height: 60vh;
}
.gm-style iframe + div { border:none!important; }

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 .25rem rgba(209, 15, 39, 0.25);
}
.form-check-input:checked {
  background-color: #373737;
  border-color: #373737;
}
.pager li {
  display: inline-block;
  padding: 0.5rem;
}
.pager a {
  display: inline-block;
  padding: 0.5rem 1rem;
  color: var(--bs-border-color);
  position: relative;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.3rem;
  background-image: linear-gradient(to right, var(--primary-color) 0%, var(--primary-color) 50%,  rgba(255, 255, 255, 0) 50%,  rgba(255, 255, 255, 0) 100%);
  background-size: 220% 100%;
  background-position: 100%;
  margin: 0.5rem 0;
  width: 100%;
  transition: all .1s linear;
}
.pager a:hover, .pager .active a {
  background-position: 0;
  color: white;
}
.main-content {
  background: white;
  color: #0f0f0f;
}
.main-content .section-headline, section.up .section-headline {
  color: #0f0f0f;
  border-bottom-color: #0f0f0f;
}
section.up {
  background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), #fff 6rem);
}
.social {
  vertical-align: bottom;
  margin: 0 0 0 1rem;
  display: inline-block;
}
.social li {
  float: left;
}
.social a {
  color: white;
}
.social a:hover {
  text-decoration: none;
}
.social a:hover:before {
  color: #373737;
  background-color: white;
}
.social a:before {
  border: 1px solid white;
  padding: 0.25em;
  border-radius: 1em;
  width: 1.6em;
}

/* Tabs */
.nav-tabs .nav-link {
  --bs-nav-link-color: white;
  --bs-nav-tabs-link-active-color: white;
  --bs-nav-link-hover-color: white;
  background-color: var(--bs-border-color);
  padding: 1rem;
  font-weight: 700;
  font-size: 18px;
  margin: 2px 1px 0;
}
.nav-tabs .nav-link.active {
  background-color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}