/* Logo */
.navbar .brand-logo { height: 80px; }
@media (min-width: 1200px) {
  .navbar .brand-logo { height: 100px; }
}

/* Client specifially asked to make EVERYthing text-justified */
p {
  text-align: justify;
  word-break: break-word;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  hyphens: auto;
}
/* Client specifically asked to revert text-justified on the follwoing: */
.page-template-page-datenschutz p,
.card p,
.page-template-page-akademie-lrd p { text-align: unset; }

/* Menu */
.navbar.navbar-transparent.navbar-light .navbar-nav .nav-item .nav-link {  color: #000; }
.navbar.navbar-transparent.navbar-light .navbar-toggler-icon path { stroke: #000; }

@media (min-width: 1400px) {
  .header .menu-item { display: flex; align-items: center; }
  .navbar-expand-xxl .navbar-nav .dropdown-menu { top: 100%; }
  .navbar-expand-xxl .navbar-nav .nav-link {
    padding-right: 1.3rem;
    padding-left: 1.3rem;
  }
}

.nav-highlight a {
  display: inline;
  outline: 1px var(--bs-primary) solid;
  border-radius: 3rem;
  position: relative;
  transition: .2s all ease-out;
}
.nav-highlight a:hover {
  outline: 2px var(--bs-primary) solid !important;
}
.nav-highlight.new-tag a:after {
  content: "New";
  background: white;
  padding: 3px;
  color: var(--bs-primary);
  position: absolute;
  font-size: 0.8rem;
  top: -0.9rem;
  right: 1rem;
  border-radius: 1rem;
}
@media (max-width: 1400px) {
  .nav-highlight a { display: inline; padding: 0.7rem 2rem !important; }
}

/* Hero video slider */
rs-carousel-wrap, rs-slide { overflow: visible !important; }
rs-slide {
  /* top: 0 !important; */
  /* transition: 0.2s ease-out all; */
  /* transform: scale(0.7); */
  box-shadow: 0px 0px 15px rgba(68, 68, 68, 0.2);
}
rs-slide, rs-layer, rs-module img { border-radius: 3.5rem !important; }

/* [data-isactiveslide=true] rs-layer-wrap { transform: scale(1); } */

rs-slides, rs-slide, rs-slide:before { margin-left: 50px; }

.live-button-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
/* .live-button-container * {
  position: static !important;
} */

@media (max-width: 1024px) {
  rs-slide, rs-layer, rs-module img { border-radius: 2.5rem; }
  rs-slides, rs-slide, rs-slide:before { margin-left: 40px; }
}

@media (max-width: 768px) {
  rs-slide{ border-radius: 1rem; }
  rs-slides, rs-slide, rs-slide:before { margin-left: 15px; }
}

@media (max-width: 468px) {
  a.rs-layer { display: flex !important; align-items: center; }
  rs-slide, rs-layer, rs-module img { border-radius: 0rem; height: auto !important; }
  rs-slides, rs-slide, rs-slide:before { margin-left: 00px; }
  .tp-leftarrow { left: -15px !important; }
  .tp-rightarrow { right: -15px !important; }
}

.yt-player { width: 1024px; max-width: 100%; aspect-ratio: 1024 / 576; }
.yt-player:not(.is-preview .yt-player) { margin-top: 2rem; }
.stream-history-container { container-type: inline-size; text-align: center; }
.stream-history-container.is-preview h2 { font-size: 3cqi; margin-bottom: 1cqi; }
.stream-history-container .btn { font-size: 2cqi; line-height: 2.5cqi !important; padding: 1cqi; margin-top: 1cqi !important; }
.stream-history { display: flex; justify-content: center; flex-wrap: wrap; }
.stream-entry { width: 30%; padding: 2cqi; }
.stream-entry img { width: 100% !important; border-radius: 2cqi !important; transition: .2s all; cursor: pointer; }
.stream-entry img:hover { transform: scale(1.1); }

@media (max-width: 768px) {
  .stream-entry:not(.is-preview .stream-entry) { width: 40%; }
}

@media (max-width: 468px) {
  .stream-entry:not(.is-preview .stream-entry) { width: 90%; }
  .is-preview .stream-entry { width: 40%; }
}

.news-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.news-heading img {
  width: 200px;
}

#grid-news { justify-content: center; }

/* Mailchimp */
.mc-container {
  border-radius: 3rem;
  background-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0px 0px 15px rgba(68, 68, 68, 0.2);
  max-width: 550px;
  text-wrap: balance;
}
.mc-container h2 { color: var(--bs-primary); }
div#mc_embed_signup div.mce_inline_error {
  color: var(--bs-danger);
  margin: 0;
  padding: 0;
  background-color: unset;
  min-height: 1.5rem;
  display: block !important;
  font-size: 0.8rem;
}
div#mc_embed_signup input.mce_inline_error {
  border-color: var(--bs-danger);
}
input:not(.mce_inline_error) + .mce_inline_error { opacity: 0; }

/* Partner */
.partner-img {
  aspect-ratio: 1/1;
  object-fit: contain;
  max-width: 300px;
  margin: auto;
}

/* Testimonials */
.flickity-prev-next-button { 
  background-color: #FFF !important;
  color: #e5471b !important;
  border: 2px #e5471b solid;
}
@media (min-width: 768px) {
  .testimonial-bubble { border-radius: 3rem; }
}

/* Buttons */
.btn-academic-health {
  color: #fff;
  background-color: #509bcf;
  border-color: #509bcf;
  box-shadow: 0 0; 
}
.btn-academic-health:hover {
  color: #fff;
  background-color: #3b76a1;
  border-color: #3b76a1;
}
.btn-radailogy {
  color: #fff;
  background-color: #85CAC5;
  border-color: #85CAC5;
  box-shadow: 0 0; 
}
.btn-radailogy:hover {
  color: #fff;
  background-color: #68a19d;
  border-color: #68a19d;
}

/* Academy */
.academy-feature-tile { max-width: 220px; }
.academy-feature-tile h5 { color: var(--bs-primary); }
#academy-features .btn {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
  margin: 0 !important;
  border: 1rem white solid !important;
}
.topic-grid {
  --grid-layout-gap: 2rem;
  --grid-column-count: 5; 
  --grid-item--min-width: 200px;
  
  --gap-count: calc(var(--grid-column-count) - 1);
  --total-gap-width: calc(var(--gap-count) * var(--grid-layout-gap));
  --grid-item--max-width: calc((100% - var(--total-gap-width)) / var(--grid-column-count));

  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(max(var(--grid-item--min-width), var(--grid-item--max-width)), 1fr));
  grid-gap: var(--grid-layout-gap);
}
.topic-grid .grid-item, .topic-grid .grid-item a {
  align-items: center;
  color: var(--bs-body-color);
}

/* News */
.image-grid {
  gap: calc(80px / 2);
}
@media (min-width: 1400px) {
  .image-grid {
    gap: calc(80px / 2);
  }
}

.kontakt { max-width: 1000px; }

/* Footer */
.footer .logo-container { max-width: 230px; }
.footer-lrd .footer-menu-list {
  /* display: flex; */
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.footer-lrd .footer-menu-list li { text-wrap: nowrap; }
.footer-lrd .scherbe {
  position: absolute;
  bottom: 0px;
  height: 100%;
  right: -38px;
  max-height: 300px;
}
body{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
footer{
  margin-top: auto;
}

/* Nav */
.nav-pagination a:last-child { margin-left: auto; }

/* Overrides */
.form-check-input { background-color: white; }
.form-control, .custom-file-label { border-radius: 2rem; }
.form-switch .form-check-input[type="checkbox"]:not(:checked) { background-color: lightgrey; }
.card { border-radius: 2rem; }
.testimonial-bubble .blockquote, .testimonial-bubble .blockquote p { color: rgba(255, 255, 255, 0.75) !important; font-size: 1rem !important; }
.loading .loading-content { background-color: white; }

/* live */
.stream-container { max-width: 1200px; margin: auto; }
.countdown-container {
  display: flex;
  gap: min(4%, 2rem);
  text-align: center;
  margin: auto;
  justify-content: center;
  text-transform: uppercase;
  font-family: var(--bs-body-font-family);
  /* container-type: inline-size; */
}
.countdown-container .cell {
  width: 22%;
  max-width: 100px;
  aspect-ratio: 8/10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.7em;
  /* padding: 1.1cqi; */
  container-type: inline-size;
}
.countdown-container .val {
  font-size: 80cqi; 
  flex: 1; 
  line-height: 1em !important; 
}
.countdown-container .label { font-size: 20cqi; }
@media (max-width: 440px) {
  .countdown-container { width: 100%; }
  /* .countdown-container .val { font-size: 3.5rem; } */
  /* .countdown-container .label { font-size: 0.7rem; } */
}

/* Helpers */
.rounded-max { border-radius: 3rem; }
@media (min-width: 768px) {
  .rounded-lb-lg  { border-radius: 0 0 0 4rem; }
}
.bg-blur-white {
  background: #ffffff8a;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.thick-border { border: 2px var(--bs-primary) solid; }
.break { flex-basis: 100%; height: 0; }
*[disabled] { cursor: not-allowed; opacity: 0.7 !important; }
.min-50px { min-width: 50px; }

.animate-pulsate {
  width: 0.8em;
  height: 0.8em;
  border-radius: 100%;
  background: red;
  animation: pulsation 2s infinite;
}

@keyframes pulsation {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

/* Fonts */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700; /* Bold */
  src: url('fonts/Poppins-Bold.ttf') format('truetype');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500; /* Medium */
  src: url('fonts/Poppins-Medium.ttf') format('truetype');
}

@font-face {
  font-family: 'OpenSans';
  font-style: normal;
  font-weight: 300; /* Light */
  src: url('fonts/OpenSans-Light.ttf') format('truetype');
}

@font-face {
  font-family: 'OpenSans';
  font-style: normal;
  font-weight: 400; /* Regular */
  src: url('fonts/OpenSans-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'OpenSans';
  font-style: normal;
  font-weight: 500; /* Medium */
  src: url('fonts/OpenSans-Medium.ttf') format('truetype');
}

h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6, .h1, .h2, .h3, .h4, .h5, .h6, .btn, .navbar .nav-link, .font-bold { font-family: 'Poppins', serif !important; }
:root { --bs-body-font-family: 'OpenSans'; }