@font-face {
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  src: url('http://localhost:8090/static/fonts/FontAwesome/fa-solid-900.eot');
  src: url('http://localhost:8090/static/fonts/FontAwesome/fa-solid-900.ttf');
  src: url('http://localhost:8090/static/fonts/FontAwesome/fa-solid-900.woff');
  src: url('http://localhost:8090/static/fonts/FontAwesome/fa-solid-900.woff2');
}

@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 100 900;
  src: url('../fonts/Source_Sans_3/SourceSans3-VariableFont_wght.ttf') format('truetype');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: italic;
  font-weight: 100 900;
  src: url('../fonts/Source_Sans_3/SourceSans3-Italic-VariableFont_wght.ttf') format('truetype');
}

@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/Lora/Lora-VariableFont_wght.ttf') format('truetype');
}
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 100 900;
  src: url('../fonts/Lora/Lora-Italic-VariableFont_wght.ttf') format('truetype');
}

:root {
  --heading-font-family: "Lora", sans-serif;  /* "Roboto", sans-serif */
  --body-font-family: "Source Sans 3", sans-serif;  /*"Open Sans", sans-serif;*/
  --body-font-size: 1.125rem;
  --body-color: #313539;
  --heading-color: #466a66;
  --link-color: #61928C;

}

html {
  height: 100%; /* important for flexbox with sticky footer! */
}

body {
  /*font-family: 'PT Sans', Arial, sans-serif;*/  /* see below for font */
  height: 100%; /* needed for ie, but need also html: height: 100% then! (for ff/chromium on Linux) */
}

wrapper {
  min-height: 100%;
}

/* font settings */
h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: "Lora", sans-serif; /*var(--heading-font-family);*/
  font-weight: 500;
  font-style: normal;
  font-stretch: normal;
  color: var(--heading-color);
}

/* extra margin for headings in between */
/*h1:not(:first-child), .h1:not(:first-child),
h2:not(:first-child), .h2:not(:first-child) {
  margin-top: 2rem;
}
*/

#content-block h1 {
  margin-bottom: 2rem;
}


body {
  font-family: "Source Sans 3", sans-serif; /*var(--body-font-family);*/
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  line-height: 1.4;
  font-size: 1rem;

  color: #313539;
  background-color: #fff;
  text-decoration-style: dotted;

}

@media (min-width: 768px) {
  html {
    font-size: var(--body-font-size);
  }
}


.site-title .display-5 {
  font-weight: 500;
  margin-bottom: 0.8rem;
  font-size: 2.25rem;
}

.site-subtitle {
  font-family: "Lora", sans-serif;
  font-weight: 400;
}

.mainmenu, .breadcrumb {
  font-weight: 450;
}

p {
  margin-bottom: 0.5rem;
}

a {
  color: var(--link-color);
  /*border-bottom: 1px dotted transparent;*/
  text-decoration: none;
}

a:hover {
  color: #59554E;
  /*border-bottom-color: #999;*/
  text-underline-offset: 0.125em;
  text-decoration: dotted;
}

h1 a, h2 a, h3 a, h4 a, h5 a, h6 a,
.h1 a, .h2 a, .h3 a, .h4 a, .h5 a, .h6 a {
  text-decoration: none;
  color: var(--heading-color);
}

.text-light h1 a, .text-light h2 a, .text-light h3 a, .text-light h4 a, .text-light h5 a, .text-light h6 a,
.text-light .h1 a, .text-light .h2 a, .text-light .h3 a, .text-light .h4 a, .text-light .h5 a, .text-light .h6 a {
  color: rgba(var(--bs-light-rgb),0.9) !important;
}

h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover,
.h1 a:hover, .h2 a:hover, .h3 a:hover, .h4 a:hover, .h5 a:hover, .h6 a:hover {
  text-decoration: underline
}

strong, b {
  font-weight: 600;
}

.text-light {
  color: rgba(var(--bs-light-rgb),0.9) !important;
  font-weight: 450;
}


.text-light a {
  text-decoration: underline dotted rgb(210,233,250, 0.5);
  text-underline-offset: 0.125em;
  color: rgb(210,233,250);
}

.text-light .section-title a {
  text-decoration: none;
}
.text-light .section-title a:hover {
  text-decoration: underline;
}

.text-light a:hover {
  color: white;
}

a, .text-dark a {
  text-decoration: none;
}

a:hover, .text-dark a:hover {
  text-decoration: none;
}

a.btn:hover {
  text-decoration: none;
}

.table-bordered {
  border: 1px solid silver;
}

.page-header {
/*  background-color: #002c57;
  color: rgba(255,255,255,0.75);
*/
  background-color: #fff;
  /* background-image: url('../img/scales-website-draft.png'); */
/*  background-image: url('../img/leibniz-wissenschafts-campus-weich.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
*/
  border-bottom: 1px solid #aaa;
  margin: 0;
/*  height: 150px;*/
/*  height: 250px;*/

  -webkit-box-flex: 0;
  -webkit-flex: none;
  -ms-flex: none;
  flex: none;
}

@media screen and (min-width: 500px) {
  .page-header {
    background-size: cover;
  }
}

.site-title .display-5 {
  color: #59554E;
  text-align: left;
  margin-top: 45px;
}

.site-subtitle {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: #59554E;
  text-align: left;
}


@media screen and (min-width: 768px) {
  .site-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.1875rem;
  }
}


/* special styles for top navbar */

.top-menu-wrapper {
  background-color: #E2E3D9;
  border-bottom: 1px solid #cecfc5;
}


.aip-navtop {
  height: 1.875rem;
  font-size: 0.8rem;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}


.top-nav-link {
  text-decoration: none;
  display: inline-block;
}

.logout-form {
  display: inline;
}

.logout-link {
  background: none;
  border: none;
  margin: 0;
  font: inherit;
  cursor: pointer;
}

/* main navigation menu and submenu */
.navbar-dark {
  background-color: #59554E;
}

/* navigation - background block hover effect */
.navbar {
  /* remove padding on navbar and move it to the mainmenu items */
  padding-top: 0;
  padding-bottom: 0;
}

/* navigation - burger menu adjustments */
#navbarResponsive {
  margin-left: 0rem;
}

.mainmenu > .nav-item, .main-submenu > .nav-item {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  transition: padding 0.2s ease;
}

ul.main-submenu {
  margin-left: 0rem;
  padding-left: 0rem;
  list-style-type: none;
}

@media only screen and (min-width: 992px) {
/* ensure that "Home" text is aligned with breadcrump and header text */
  #navbarResponsive {
    margin-left: -1.5rem;
  }

  .mainmenu > .nav-item, .main-submenu > .nav-item {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  ul.main-submenu {
    margin-left: -1.0rem;
  }
}

.mainmenu .nav-item {
  background-color: transparent; /* needed for hover effect */
  white-space: nowrap;
  text-transform: uppercase;
}


.mainmenu .nav-item.active, .mainmenu .nav-item.ancestor {
  background-color: rgba(255,255,255,0.05);
}

@media only screen and (min-width: 992px) {
  /* ony use background hover styles on large screens */
  .mainmenu .nav-item.active, .mainmenu .nav-item.ancestor {
    background-color: rgba(255,255,255,0.05);
  }

  .mainmenu .nav-item:hover,
  .mainmenu .nav-item.active:hover,
  .mainmenu .nav-item.ancestor:hover{
    background-color: rgba(255,255,255,0.1);
    transition: background-color fade-in-out 200ms;
  }
}

.mainmenu .nav-link  {
  color: rgba(255,255,255,0.7);
  /* add more top/bottom padding to make the navbar less narrow; add it here, so submenu lies directly below */
  font-size: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  transition: padding 0.2s ease, font-size 0.2s ease;
}

a.nav-link:hover {
  text-decoration: none;
}

.main-submenu > .nav-item .nav-link {
  font-size: 1rem;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

@media only screen and (min-width: 1200px) {
  .mainmenu  .nav-link  {
    font-size: 1.125rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
  .main-submenu > .nav-item .nav-link {
    font-size: 1.125rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
}

.mainmenu .nav-item:hover > .nav-link,
.mainmenu .nav-link:hover,
.mainmenu .nav-link:focus {
  color: white;
}


.main-submenu {
  background-color: #61928C;
  color: #EEEEEE;
  z-index: 1000;
  border: none;
}


/* burger menu adjustments */
.main-submenu {
  display: block;
  position: relative;
}


/* small indicator for submenu, fixed font-size seems to look good also for small screens */
.submenu-indicator {
  font-size: 0.7rem;
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}


@media only screen and (min-width: 992px) {
  /* display submenu on hover */
  .main-submenu {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    transition: opacity 0.5s ease-in-out;
  }

  .mainmenu > .nav-item:hover .main-submenu {
    opacity: 1;
    visibility: visible;
  }

  .mainmenu > .nav-item:hover .submenu-indicator {
    opacity: 0;
  }

}


/* adjust navbar style, if main navbar is scrolled down and sticky */
.navbar-scrolled .mainmenu .nav-link {
  font-size: 0.9rem;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}
/* do not adjust padding-left/right via .navbar-scrolled .mainmenu > .nav-item {} for now */

/* add a subtle shadow below the navbar, if it is scrolled */
.navbar-scrolled {
  box-shadow: 0px 3px 5px 0px #0000006b;
}

/* decrease search form size */
.aip-navtop .form-control,
.aip-navtop .form-search,
.aip-navtop .btn {
  font-size: 0.85rem;
}

.breadcrumb {
  padding: 0.5rem 0;
  font-size: 0.8rem;
}

.breadcrumb-link {
  text-decoration: none;
  color: #333;
}

.breadcrumb-item:not(:first-child)::before {
  content: "\f054";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  display: inline-block;
  color: #333;
  font-size: 0.7em;
  margin-top: 3px;
}

.bg-breadcrumb {
  background-color: #e5e6e2;
}

.bg-footer-main {
  /*background-color: #eff0ec;*/
  background-color: #E2E3D966;
  color: #857d53;
}
.bg-footer-bottom {
  background-color: #59554E;
  color: #eee;
}

.flex-fill {
  flex: 1 1 auto;
}

.footer {
  font-size: 0.9rem;
  padding-top: 0.9rem;
}

/*.footer .text-light a {
  color: inherit;
}*/

.footer-logo-aip-leibniz {
  display: grid;
  align-items: center;
  justify-items: center;
}

.footer-logo-aip {
  max-width: 100%;
  height: auto;
}

.footer-logo-leibniz {
  max-width: 30%;
  height: auto;
}

@media (min-width: 568px) {
  .footer-logo-aip-leibniz {
    display: grid;
    grid-template-columns: 70% 26%;
    align-items: center;
  }
  .footer-logo-leibniz {
    max-width: 100%;
    height: auto;
  }
}

.footer-title {
  font-family: var(--body-font-family);
  font-weight: 600;
}

.footer b {
  font-family: var(--body-font-family);
  font-weight: 600;
}

#content-block {
  padding-top: 2rem;
  padding-bottom: 3rem;
}


.two-col-layout {
  display: grid;
  grid-template-columns: none;
  grid-column-gap: 2rem;
  grid-row-gap: 2rem;
}

@media (min-width: 768px) {
  .two-col-layout {
    grid-template-columns: 9fr 3fr;
  }

}

.sidebar-widget-title {
  margin-bottom: 10px;
  border-bottom: 1px solid #59554E;
}

.sidebar-news-list ul {
  list-style-type: none;
  margin-left: 0;
  padding-left: 0;
}
.sidebar-news-list ul li {
  margin-bottom: 1rem;
}


.anchor {
  display: inline-block;
}


/* custom styles for core templates (blocks) */
.line-spacing-0 {
    margin-top: 0rem; /* default: 0.75rem; if there is some text above (p-margin) */
}
.line-spacing-1 {
    margin-top: 1.5rem;
}
.line-spacing-2 {
    margin-top: 2.25rem;
}
.line-spacing-3 {
    margin-top: 3.0rem;
}
.line-spacing-4 {
    margin-top: 3.75rem;
}
.line-spacing-5 {
    margin-top: 4.5rem;
}

@media (min-width: 576px) {
  .line-spacing-0 {
    margin-top: 0rem;
  }
  .line-spacing-1 {
    margin-top: 1.875rem;
  }
  .line-spacing-2 {
    margin-top: 2.8125rem;
  }
  .line-spacing-3 {
    margin-top: 3.75rem;
  }
  .line-spacing-4 {
    margin-top: 4.6875rem;
  }
  .line-spacing-5 {
    margin-top: 5.625rem;
  }
}

/* clear fix: stop floating after element with this class */
.clear-float::after {
    content: "";
    clear: both;
    display: table;
}

/* for responsive images, used by AdvancedImageBlock on wagtailcore's AdvancedPage */
@media (min-width: 576px) {
  .w-sm-50 {
    width: 50% !important;
  }
}
@media (min-width: 768px) {
  .w-md-25 {
    width: 25% !important;
  }
}
@media (min-width: 768px) {
  .w-md-35 {
    width: 35% !important;
  }
}
@media (min-width: 992px) {
  .w-lg-25 {
    width: 25% !important;
  }
}


img {
  border-top: 4px solid #61928C;
  border-bottom: 4px solid #61928C;
}

/* image block styles, from AIP website */

/* default, = xs */
.adv-image {
    margin-bottom: 1rem;
    max-width: 100%;
    height: auto;
}

.adv-image-left {
    float: left;
    margin-right: 4%; /*0.625rem;*/
}
.adv-image-right {
    float: right;
    margin-left: 4%; /*0.625rem;*/
}
.adv-image-center {
    margin-left: auto;
    margin-right: auto;
}

.adv-image-thumbnail {
    width: 16%;
}
.adv-image-x-small {
    width: 46%;
}
.adv-image-small {
    width: 46%;
}
.adv-image-medium {
    width: 100%;
}
.adv-image-large {
    width: 100%;
}
.adv-image-fullwidth, .full-width {
    width: 100%;
    height: auto;
    margin-left: 0;
    margin-right: 0;
}


/* sm */
@media (min-width: 576px) {
    .adv-image-thumbnail {width: 17%;}
    .adv-image-x-small {width: 22%;}
    .adv-image-small {width: 30%;}
    .adv-image-medium {width: 47%;}
    .adv-image-large {width: 63.6%; }
    .adv-image-left {margin-right: 3%; /*1rem;*/}
    .adv-image-right {margin-left: 3%; /*1rem;*/}
}

/* md */
@media (min-width: 768px) {
    .adv-image-thumbnail {width: 16%;}
    .adv-image-x-small {width: 21%;}
    .adv-image-small {width: 29%;}
    .adv-image-medium {width: 46%;}
    .adv-image-large {width: 62.6%;}
    .adv-image-left {margin-right: 4%; /*2rem;*/}
    .adv-image-right {margin-left: 4%; /*2rem;*/}
}




/* Image captions */
figcaption {
  color: var(--bs-secondary-color);
  /*font-family: var(--heading-font-family);*/
  font-size: 0.85rem;
  margin-bottom: 0.85rem;
  text-align: left;
}

figcaption p {
  margin: 0.25rem 0;
}

figcaption p:last-child {
  margin-bottom: 0;
}

.media-caption {
  color: var(--bs-secondary-color);
  margin-bottom: 0.85rem;
}
.media-caption p {
  margin: 0.5rem 0;
}
.media-caption p:last-child {
  margin-bottom: 0px;
}

.text-light figcaption, .text-light .media-caption {
  color: rgba(var(--bs-light-rgb),0.7);
}



/* search styles, from AIP webseite */
.search__breadcrumbs-list { display: inline; font-size: 85%; margin: 0; padding: 0;}
.search__breadcrumbs-list li { display: inline; }
.search__breadcrumbs-list li:not(:first-child)::before { content: '»'; }
.search__breadcrumbs-list li a { color: #505050; }
.night-theme .search__breadcrumbs-list li a { color: #fff; }

.search-results-pagination-navigation {
    margin-top: 2rem;
    text-align: center;
}
.search-pagination-num {
    display: inline;
    margin-left: 0.25rem;
    margin-right: 0.25rem;
}
.search-pagination-num.current-pagination-num {
    font-weight: bold;
}



/* youtube plugin styles */
.youtube-wrapper {
  color: white;
  /* put background style into youtube-block-template,
   * because background image may be adjusted by editor */
  /* background: linear-gradient(0deg, rgba(0,0,0,0.7), rgba(0,0,0,0.7));
     background-size: cover; */

  /* justify the content, also vertically */
  display: flex;
  align-items: center;
  justify-content: center;

}

/* use pseudo elements to expand the fixed aspect ratio box in case the
 * placeholder text is too long; use here the padding-bottom trick for fixed
 * aspect ratios */
.youtube-wrapper::before {
    content: "";
    width: 1px;
    margin-left: -1px;
    float: left;
    height: 0;
    padding-bottom: 56.25%;
}

.youtube-wrapper::after {
  /* clear the float */
  content: "";
  display: table;
  clear: both;
}


.youtube-wrapper a {
    color: #8cbee6;
}

.youtube-consent-info {
  font-size: 0.875rem;
  color: white;
}

input.youtube-consent { margin-top: 1px; }


.youtube-consent-label {
  color: white;
  margin-left: 1.5rem;
  font-size: 0.75rem;
}

.night-theme .youtube-consent-label {
  color: white;
}

@media(min-width: 576px) {
  .youtube-consent-label, .youtube-consent-info {
    font-size: 0.875rem;
  }
}
.youtube-placeholder {
  width: 100%;
  height: 100%;
/*
  text-align: center;
  position: absolute;
*/
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;

  z-index: 9;
}
.night-theme .youtube-placeholder {
}

.youtube-placeholder-inner {
    width: 90%;
    text-align: left;
    margin: auto;
    margin-top: 10px;
    margin-bottom: 10px;

}

.youtube-placeholder::before {
    content: '\f144';
    font-family: 'Font Awesome 5 Free';
    position: absolute;
    z-index: -1;
    color: rgba(255,255,255,0.2);
    font-size: 120px;
    line-height: 120px;
    width: 120px;
    height: 120px;
}


/* Image gallery styles */

.adv-image-gallery {
  display: grid;
  column-gap: 0.75rem; row-gap: 0.75rem;
  /* Note: use fixed values instead of percent, especially for row-gap, because otherwise following elements may overlap! */
  margin-bottom: 1.5rem;
}

/* reduce bottom margin below image and figure caption */
.adv-image-gallery .adv-image, .adv-image-gallery .adv-image figcaption {
  margin-bottom: 0;
}

/* mobile/very small devices */
.gallery-grid-thumbnail {
  grid-template-columns: repeat(5, 1fr);
}
.gallery-grid-x-small {
  grid-template-columns: repeat(2, 1fr);
}
.gallery-grid-small {
  grid-template-columns: repeat(2, 1fr);
}
.gallery-grid-medium {
  grid-template-columns: repeat(1, 1fr);
}
.gallery-grid-fullwidth {
  grid-template-columns: repeat(1, 1fr);
}

/* sm */
@media (min-width: 576px) {
  .adv-image-gallery {
      column-gap: 1rem; row-gap: 1rem;
  }
  .gallery-grid-thumbnail {
      grid-template-columns: repeat(5, 1fr);
  }
  .gallery-grid-x-small {
      grid-template-columns: repeat(4, 1fr);
  }
  .gallery-grid-small {
      grid-template-columns: repeat(3, 1fr);
  }
  .gallery-grid-medium {
      grid-template-columns: repeat(2, 1fr);
  }
}

/* md */
@media (min-width: 768px) {
  .adv-image-gallery {
      column-gap: 1.5rem; row-gap: 1.5rem;
  }
}

/* lg */
@media (min-width: 992px) {
  .adv-image-gallery {
      column-gap: 2rem; row-gap: 2rem;
  }
}

.hide {
  display: none;
}