/* Keep layout from shifting when some pages have a scrollbar and others don't */
html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

/* Base typography */
body {
  font-family: NeuzeitGroteskRegular, Helvetica, sans-serif;
  width: 100%;
  margin: 0;
  height: auto;
}

/* Header bar (legacy) */
.myHeadBar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  background-color: green;
  text-align: center;
  color: black;
  margin-bottom: 100px;
  padding-top: 30px;
  display: block;
  min-height: 7.5vw;
  box-sizing: border-box;
}

/* Header (legacy) */
.myHeader {
  display: inline;
  text-align: center;
  z-index: 2;
}

.myHeadElements {
  padding: 20px;
  text-align: center;
}

/* Bootstrap overrides */
.container-fluid {
  padding-left: 0px;
  padding-right: 0px;
}

.row {
  margin-left: 0px;
  margin-right: 0px;
}

/* Burger menu container */
.containerMenu {
  float: left;
  position: relative;
  z-index: 30;
}

/* Burger icon button */
.containerBar {
  display: none;
  cursor: pointer;
  width: 48px;
  height: 48px;
  padding: 10px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: transparent;
  border: none;
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  z-index: 2001;
  pointer-events: auto;
}

/* Burger icon lines */
.bar1,
.bar2,
.bar3 {
  width: 30px;
  height: 2px;
  background-color: #333;
  margin: 4px 0;
  transition: 0.4s;
  display: block;
}

/* Burger animation */
.change .bar1 {
  -webkit-transform: rotate(-45deg) translate(-5px, 6px);
  transform: rotate(-45deg) translate(-5px, 6px);
}

.change .bar2 {
  opacity: 0;
}

.change .bar3 {
  -webkit-transform: rotate(45deg) translate(-5px, -6px);
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Burger menu panel — full-height drawer sliding in from the left */
.BurgerMenu {
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 220px;
  background-color: #f2f2f2;
  z-index: 800;
  display: flex;
  flex-direction: column;
  padding-top: 68px;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.12);
  overflow-y: auto;
  transform: translateX(-100%);
}

/* Burger menu links */
.BurgerMenu > a {
  display: block;
  padding: 13px 24px;
  text-align: left;
  line-height: 1.2;
  font-size: 17px;
  font-weight: normal;
  background-color: transparent;
  text-decoration: none;
  color: #71797E;
  transition: color 0.2s ease;
  box-sizing: border-box;
  white-space: nowrap;
}

.BurgerMenu > a:hover {
  color: #00b2b2;
}

.BurgerMenu > a.active {
  color: #00b2b2;
  font-weight: 600;
}

/* Show menu only when parent has .change */
.change .BurgerMenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

/* Content containers (legacy) */
.containerPadsMain {
  cursor: pointer;
}

.containerCover {
  height: calc(140px);
  padding-left: 10px;
  padding-top: 20px;
  position: relative;
  z-index: 5;
  opacity: 1;
  font-size: calc(7px + 0.7vw);
  margin-top: 92px;
  width: 100%;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  box-sizing: border-box;
}

.containerGrafik {
  text-align: left;
  position: relative;
}

.Ausgangstext {
  cursor: default;
  position: relative;
  font-weight: 100;
  font-size: calc(12px + 0.3vw);
  border-left: 5px;
  border-left-color: black;
}

.containerKontakt {
  float: right;
  height: 200px;
  width: 100%;
  border-left-style: solid;
  box-sizing: border-box;
}

.Kontakttext {
  cursor: default;
  text-align: left;
  position: relative;
  font-weight: 100;
  font-size: calc(12px + 0.4vw);
  padding-top: 10px;
  padding-left: 15px;
}

.KontaktÜberschrift {
  padding-left: 15px;
  cursor: default;
  text-align: left;
  position: relative;
  font-weight: 100;
  font-size: calc(12px + 0.4vw);
  padding-top: 10px;
}

.footercontainer {
  display: flex;
  flex-wrap: wrap;
  height: auto;
  background-color: #e8e7e1;
}

.pub-meta {
  display: block;
  margin-top: 4px;
}

.course-meta {
  display: block;
  margin-top: 4px;
  font-weight: 500;
  color: black;
}

.journal {
  font-style: italic;
  font-weight: 700;
  display: inline;
}

.journal-meta {
  font-style: normal;
  font-weight: normal;
  display: inline;
}

.presentation-list {
  display: block;
  font-size: 12px;
  margin-top: 4px;
  color: #555;
}

.media-coverage {
  display: block;
  font-size: 12px;
  margin-top: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header layout for pages using .site-header */
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.desktop-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.mobile-nav {
  display: none;
}

/* Desktop */
@media only screen and (min-width: 1025px) {
  .desktop-nav {
    display: flex !important;
  }

  .mobile-nav,
  .containerMenu,
  .containerBar,
  .BurgerMenu {
    display: none !important;
  }
}

/* Tablet + mobile */
@media only screen and (max-width: 1024px) {
  body {
    padding-top: 70px;
  }

  /* Make inner header row flex: burger left, brand centred */
  .header-inner .col-xs-12 > .row {
    display: flex !important;
    align-items: center;
    min-height: 52px;
    padding: 0 60px 0 12px; /* right padding = left padding (12) + burger width (48) to balance */
  }

  .brand {
    flex: 1;
    text-align: center;
    width: auto;
    margin-bottom: 0;
  }

  /* Hide desktop nav on mobile */
  .desktop-nav {
    display: none !important;
  }

  /* Also hide the desktop nav if the HTML only uses .nav-links */
  .nav-links.text-right {
    display: none !important;
  }

  /* Burger in flow, ordered first (left) */
  .mobile-nav {
    display: block !important;
    position: static;
    flex-shrink: 0;
    order: -1;
    z-index: 2000;
  }

  .containerMenu {
    display: block !important;
    position: relative;
    z-index: 2000;
    float: none;
  }

  .containerBar {
    display: flex !important;
  }

  .containerGrafik {
    display: none;
  }

  .Kontakttext {
    float: left;
  }

  .containerKontakt {
    border-left-style: none;
    height: 100%;
  }

  .myHeadBar {
    min-height: 72px;
    padding-top: 12px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .myHeadElements {
    padding: 10px;
  }

  .containerCover {
    margin-top: 72px;
  }

  .content {
    padding-left: 15px;
    padding-right: 15px;
  }
}