@import "fonts.css";

/* Responsive Grid with 12 columns */

/* All sizes include margin */
* {
  box-sizing: border-box;
  margin: 0;
}

/* Define outer layout with discrete width classes (12 columns for 4k screens) */

/* For mobile phones: */
[class*="col-"] {
  width: 100%;
}

@media only screen and (min-width: 800px) {
  /* For tablets: */
  .col-s-1 {width: 8.33%;}
  .col-s-2 {width: 16.66%;}
  .col-s-3 {width: 25%;}
  .col-s-4 {width: 33.33%;}
  .col-s-5 {width: 41.66%;}
  .col-s-6 {width: 50%;}
  .col-s-7 {width: 58.33%;}
  .col-s-8 {width: 66.66%;}
  .col-s-9 {width: 75%;}
  .col-s-10 {width: 83.33%;}
  .col-s-11 {width: 91.66%;}
  .col-s-12 {width: 100%;}
}

@media only screen and (min-width: 1200px) {
  /* For desktop: */
  .col-1 {width: 8.33%;}
  .col-2 {width: 16.66%;}
  .col-3 {width: 25%;}
  .col-4 {width: 33.33%;}
  .col-5 {width: 41.66%;}
  .col-6 {width: 50%;}
  .col-7 {width: 58.33%;}
  .col-8 {width: 66.66%;}
  .col-9 {width: 75%;}
  .col-10 {width: 83.33%;}
  .col-11 {width: 91.66%;}
  .col-12 {width: 100%;}
}

/* Standard multi-column layout as used in newspapers. */
/* It is configured to show one column up to ~800px */
/* and then increases the column up to 3 columns */
/* Additionally show a vertical rule between the columns (visual gimmic) */
.multicolumn {
  columns: 360px 3;
  column-gap: 2em;
  column-rule: 1px solid #0a0000;
}
.multicolumn h1, h2, h3, h4, h5, h6 {
  break-after: avoid;
}
.multicolumn h1, h2 {
  column-span: all;
}
.multicolumn figure {
  break-inside: avoid;
}

/* Columns are floating, and left adjusted, so objects fill up columns left to right */
/* Padding is optional and arguable */
[class*="col-"] {
  float: left;
  padding: 15px;
}

/* Add a row class to ensure the content is rendered in a new row even if the preceding row was not full */
.row::after {
  content: "";
  clear: both;
  display: table;
}

a {
  color: #a00000;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Tooltips for links, nice to show the user, that she is about to leave the domain */
a[tooltip] {
  position: relative;
}

a[tooltip]:hover:after {
  content: attr(tooltip);
  display: inline-block;
  padding: 0.2em 0.6em; 
  white-space: nowrap; 
  background-color: #fffcfb;
  color: #000000;
  font-style: normal;
  font-family: sans-serif;
  font-size: 0.8em;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, -1em);
  z-index: 1;
}
/* End of tooltips */

/* Animated link images (slight growth on hover) */
a > img {
	transition: transform 0.2s;
}
a > img:hover {
	transform: scale(1.05);
}
/* Image link hover effect end */

/* Just to make it look nicer */
html {
  font-family: "Roboto", sans-serif;
  font-size: 16px;
}

body {
  color: #404040;
  margin: 0;
}

h1 {
  text-align: center;
  color: #a00000;
  font-size: 180%;
  font-variant: small-caps;
  font-weight: bold;
  margin-top: 2ex;
  margin-bottom: 1ex;
}

h2 {
  text-align: left;
  color: #a00000;
  font-size: 150%;
  font-variant: small-caps;
  font-weight: bold;
  margin-top: 1ex;
  margin-bottom: 0.5ex;
}

h3 {
  text-align: left;
  color: #a00000;
  font-size: 120%;
  font-variant: small-caps;
  font-weight: bold;
  margin-top: 1ex;
  margin-bottom: 0.5ex;
}

h4 {
  text-align: left;
  color: #500000;
  font-size: 100%;
  font-weight: bold;
  margin-top: 0.8ex;
  margin-bottom: 0.4ex;
}

p {
  text-align: justify;
  padding: 0 0 1ex 0;
  margin: 0;
  hyphens: auto;
}

p.time:before {
  content: url("icon-time.svg");
  float:left;
  padding-right: 1ex;
}
p.time:after {
  content: "";
  clear: both;
  display: table;
}
p.location:before {
  content: url("icon-location.svg");
  float:left;
  padding-right: 1ex;
}
p.location:after {
  content: "";
  clear: both;
  display: table;
}

figure {
  text-align: center;
  margin-left: 1em;
  margin-right: 1em;
  margin-top: 1ex;
  margin-bottom: 2ex;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}
figure > figcaption {
  padding: 1ex 1em 1ex 1em;
}

img {
  max-width: 100%;
}

/* Photos should additionally have a shadow */
.photo {
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}
figure > img.photo {
  box-shadow: none;
}
a > img.photo {
  /* If this is an image link of class photo activate both animations
     for shadow and scaling */
	transition: transform 0.2s, box-shadow 0.2s;
}
a > .photo:hover {
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.8);
}

/* Always show main title */
.header {
  overflow: hidden;
  position: fixed;
  top: 0;
  padding: 0;
  /* height is 53 to account for the 3px border => net 50px */
  /* See media section for other header heights */
  height: 53px;
  width: 100%;
  background-image: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.5) 60%, rgba(255, 255, 255, 0.0)), url("notenblatt.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  color: #a00000;
  z-index: 10;
}
.main {
  /* Margin for header to avoid that the header hides page content */
  margin-top: 53px;
  margin-bottom: 30px;
}
.footer {
  overflow: hidden;
  position: fixed;
  bottom: 0;
  height: 25px;
  background-color:#a00000e0;
  color:white;
  width:100%;
  padding: 3px 1em 3px 1em;
  z-index: 10;
}
.header a {
  color: #a00000;
  text-decoration: none;
}
.header a:visited {
  color: #a00000;
}
.header > div {
  position: relative;
  top: 45%;
  transform: translateY(-50%);
  padding-left: 50px;
  display: block;
  color: #a00000;
  z-index: 10;
  text-align: left;
  font-size: 120%;
}
@media only screen and (min-width: 1200px) {
  .header {
    height: 160px;
    background-image: linear-gradient(rgba(255, 255, 255, 0.0), rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.0)), url("notenblatt.png");
  }
  .header > div {
    width:100%;
    top: 50%;
    text-align: center;  
    background-color: none;
    font-family: sans-serif;
    font-size: 200%;
    font-weight: normal;
  }
  .main {
    /* Margin for header to avoid that the header hides page content */
    margin-top: 160px;
    margin-left: 250px;
  }
}

/* The menu button is a checkbox that is never actually shown */
/* Only it's label is shown: the burger. Clicking the burger thus toggles the checkbox */
#mainMenuCheckBox {
  display: none;
}

/* This is the panel for the menu, that shifts in when the menu button is pushed */
#mainMenuPanel {
  /* positions and sizes are relative to the viewport */
  position: fixed;
  overflow-x: hidden;
  overflow-y: auto;
  top: 0;
  left: 0;
  max-width: 90%;
  max-height: 100%;
  /* Put above main content, only header and button should have a higher z-index */
  z-index: 20;
  /* white slightly transparent panel */
  background: rgba(255, 255, 255, 0.9);
  /* Initially (when the checkbox is not checked), the panel is shifted entirely out-of-screen */
  /* And shifts in following a smooth bezier timing function when the checkbox is checked */
  transition-timing-function: cubic-bezier(0.1, 0.7, 1.0, 0.1);
  transition: transform 0.2s;
  transform: translateX(-100%);
  transition: 0.3s;
  padding: 53px 2px 2px 2px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}
#mainMenuCheckBox:checked ~ #mainMenuPanel {
  /* menu button checked => slide in menu panel */
  transform: translateX(0);
}

/* The burger itself consists of three empty spans with fixed size */
/* These divs are animated on checkbox check to form a cross ... fancy stuff */
#burger {
  position: fixed;
  cursor: pointer;
  width: 45px;
  height: 45px;
  left: 2px;
  top: 0px;
  display: flex;
  justify-content: space-evenly;
  flex-direction: column;
  padding: 10px;
  z-index: 21;
}
@media only screen and (min-width: 1200px) {
  #burger {
    top: 50%;
    transform: translateY(-50%);
    background: none;
  }
}
#burger > span {
  height: 2.5px;
  background-color: #a00000;
  border-top: 0.3px solid #c00000;
  border-left: 0.3px solid #c00000;
  border-bottom: 0.3px solid #500000;
  border-right: 0.3px solid #500000;
  border-radius: 2px;
  transition: 0.5s;
}
#mainMenuCheckBox:checked ~ #burger {
  /* Remove the semi-transparent background */
  background: none;
}
#mainMenuCheckBox:checked ~ #burger > span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
#mainMenuCheckBox:checked ~ #burger > span:nth-child(2) {
    opacity: 0;
}
#mainMenuCheckBox:checked ~ #burger > span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Large buttons for smart phone */
nav a:hover {
  text-decoration: none;
}
.navigationLevel1 {
  width: 100%;
  padding: 1ex 1em 1ex 1em;
  text-align: left;
}
div.navigationLevel1:hover {
  box-shadow: 1px 1px 2px rgba(0, 0, 0, .5);
}
div.navigationLevel2 {
  width: 100%;
  font-style: oblique;
  padding: 0.5ex 1em 0.5ex 1em;
  background-color: #fffcfba0;
  text-align: right;
}
div.navigationLevel2:hover {
  box-shadow: 1px 1px 2px rgba(0, 0, 0, .5);
}

@media only screen and (min-width: 1200px) {
  /* Medium sized buttons for tablets and desktop */
  .navigationLevel1 {
    padding:5px 1em 5px 1em;
  }
  /* Medium sized buttons for tablets: */
  #mainMenuPanel {
    top: 160px;
    padding: 0 2px 2px 0;
    width: 250px;
    height: calc(100% - 160px - 25px);
    transform: none;
    background: #ffffffa0;
    box-shadow: none;
  }
  #burger {
    display: none;
  }
}
