@import "liberation.css";

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html,
body {
  height: 100vh;
  width: 100vw;
  margin: 0px;
  background-color: #fbf3e9;
  font-size: calc(11px + 0.5vw);
}

.mannheim {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 50px 1fr 1fr;
  grid-template-areas:
  "nav           nav            nav"
  ".             top            ."
  ".             bottom        .";
  position: relative;
  margin: auto;
  max-height: 100%;
  width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
}

.mh-image {
  position: relative;
  grid-area: top;
  padding-top: 1rem;
}

.mh-image img {
  display: block;
  max-width: 100%;
  max-height: calc(50svh);
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
}

.mh-text {
  max-width: 100%;
  overflow-y: none;
  grid-area: bottom;
  margin-left: auto;
  margin-right: auto;
  padding-top: 1rem;
  padding-bottom: 1rem;
}


* p,
h1,
h2,
h3,
ul {
  margin-bottom: 1.5vh;
  padding-right: 1.5vw;
  color: black;
}

* h1 {
  font-size: 250%;
  font-family: 'liberation_serifregular', serif;
}

* h2 {
  font-size: 175%;
  font-family: 'liberation_serifregular', serif;
}

* h3 {
  font-size: 125%;
  font-family: 'liberation_serifregular', serif;
}

* p,
ul {
  text-align: left;
  font-size: calc(11px + 0.5vw);
  font-family: 'liberation_sansregular', sans-serif;
  hyphens: none;
}

* ul {
  padding-left: 1.5rem;
  list-style-position: outside;
}

* ul ul {
  padding-left: 2.5rem;
  list-style-position: outside;
}

.link-list {
  line-height: 2.5;
}

a:link {
  color: black;
}

a:visited {
  color: black;
}

a:hover {
  color: black;
}

a:active {
  color: black;
} 

.nav {
    grid-area: nav;
    position: absolute;
    object-fit: contain;
    justify-self: end;
}

#menu-btn {
    position: absolute;
    top: -100%;
    left: -100%;
}

.menu {
    display: flex;
    justify-content: space-between;
    align-items: right;
    margin-right: 2rem;
}

.menu a {
    text-decoration: none;
    color: black;
}

.menu-btn {
    display: none;
}

.menu-icon {
    grid-column-start: 4;
    grid-column-end: 5;
    grid-row-start: 1;
    grid-row-end: 2;
    cursor: pointer;
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
    padding: 30px 20px 30px 0;
    position: relative;
    user-select: none;
    visibility: visible;
}

.navicon {
    background: black;
    display: block;
    height: 4px;
    width: 33px;
    position: relative;
}

.navicon:before {
    top: 10px;
}

.navicon:after {
    top: -10px;
}

.navicon:before,
.navicon:after {
    background: black;
    display: block;
    width: 100%;
    height: 100%;
    content: "";
    position: absolute;
    transition: all 0.2s ease-out;
}

.menu {
    max-width: unset;
    max-height: 0;
    transition: max-height 0.2s ease-out;
    overflow: hidden;
    margin: 5vh;
    padding: 0;
    color: black;
    background-color: white;
    opacity: 0.9;
    display: flex;
    flex-direction: column;
    box-shadow: 10px 10px black;

}

.menu a {
    padding: 20px 20px;
    border-right: 1px solid #f4f4f4;
    color: black;
    background-color: white;
    opacity: 0.9;
    width: 25ch;
    text-align: right;
    font-family: 'liberation_sansregular', sans-serif;
}

.menu-btn:checked ~ .menu {
    max-height: 200vh;
}

.menu-btn:checked ~ .menu-icon .navicon {
    background: transparent;
}

.menu-btn:checked ~ .menu-icon .navicon:before {
    transform: rotate(-45deg);
}

.menu-btn:checked ~ .menu-icon .navicon:after {
    transform: rotate(45deg);
}

.menu-btn:checked ~ .menu-icon .navicon:before,
.menu-btn:checked ~ .menu-icon .navicon:after {
    top: 0;
}

