@charset "utf-8";

@font-face {
    font-family: 'LatoWebBlack';
    src: url('../fonts/Lato-Black.eot'); /* IE9 Compat Modes */
    src: url('../fonts/Lato-Black.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('../fonts/Lato-Black.woff2') format('woff2'), /* Modern Browsers */
         url('../fonts/Lato-Black.woff') format('woff'), /* Modern Browsers */
         url('../fonts/Lato-Black.ttf') format('truetype');
    font-style: normal;
    font-weight: normal;
}

@font-face {
    font-family: 'LatoWebBlack';
    src: url('../fonts/Lato-BlackItalic.eot'); /* IE9 Compat Modes */
    src: url('../fonts/Lato-BlackItalic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('../fonts/Lato-BlackItalic.woff2') format('woff2'), /* Modern Browsers */
         url('../fonts/Lato-BlackItalic.woff') format('woff'), /* Modern Browsers */
         url('../fonts/Lato-BlackItalic.ttf') format('truetype');
    font-style: italic;
    font-weight: normal;
}

@font-face {
    font-family: 'LatoWebBold';
    src: url('../fonts/Lato-Bold.eot'); /* IE9 Compat Modes */
    src: url('../fonts/Lato-Bold.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('../fonts/Lato-Bold.woff2') format('woff2'), /* Modern Browsers */
         url('../fonts/Lato-Bold.woff') format('woff'), /* Modern Browsers */
         url('../fonts/Lato-Bold.ttf') format('truetype');
    font-style: normal;
    font-weight: normal;
}

@font-face {
    font-family: 'LatoWebBold';
    src: url('../fonts/Lato-BoldItalic.eot'); /* IE9 Compat Modes */
    src: url('../fonts/Lato-BoldItalic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('../fonts/Lato-BoldItalic.woff2') format('woff2'), /* Modern Browsers */
         url('../fonts/Lato-BoldItalic.woff') format('woff'), /* Modern Browsers */
         url('../fonts/Lato-BoldItalic.ttf') format('truetype');
    font-style: italic;
    font-weight: normal;
}

@font-face {
    font-family: 'LatoWebHairline';
    src: url('../fonts/Lato-Hairline.eot'); /* IE9 Compat Modes */
    src: url('../fonts/Lato-Hairline.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('../fonts/Lato-Hairline.woff2') format('woff2'), /* Modern Browsers */
         url('../fonts/Lato-Hairline.woff') format('woff'), /* Modern Browsers */
         url('../fonts/Lato-Hairline.ttf') format('truetype');
    font-style: normal;
    font-weight: normal;
}

@font-face {
    font-family: 'LatoWebHairline';
    src: url('../fonts/Lato-HairlineItalic.eot'); /* IE9 Compat Modes */
    src: url('../fonts/Lato-HairlineItalic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('../fonts/Lato-HairlineItalic.woff2') format('woff2'), /* Modern Browsers */
         url('../fonts/Lato-HairlineItalic.woff') format('woff'), /* Modern Browsers */
         url('../fonts/Lato-HairlineItalic.ttf') format('truetype');
    font-style: italic;
    font-weight: normal;
}

@font-face {
    font-family: 'LatoWebHeavy';
    src: url('../fonts/Lato-Heavy.eot'); /* IE9 Compat Modes */
    src: url('../fonts/Lato-Heavy.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('../fonts/Lato-Heavy.woff2') format('woff2'), /* Modern Browsers */
         url('../fonts/Lato-Heavy.woff') format('woff'), /* Modern Browsers */
         url('../fonts/Lato-Heavy.ttf') format('truetype');
    font-style: normal;
    font-weight: normal;
}

@font-face {
    font-family: 'LatoWebHeavy';
    src: url('../fonts/Lato-HeavyItalic.eot'); /* IE9 Compat Modes */
    src: url('../fonts/Lato-HeavyItalic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('../fonts/Lato-HeavyItalic.woff2') format('woff2'), /* Modern Browsers */
         url('../fonts/Lato-HeavyItalic.woff') format('woff'), /* Modern Browsers */
         url('../fonts/Lato-HeavyItalic.ttf') format('truetype');
    font-style: italic;
    font-weight: normal;
}

@font-face {
    font-family: 'LatoWeb';
    src: url('../fonts/Lato-Italic.eot'); /* IE9 Compat Modes */
    src: url('../fonts/Lato-Italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('../fonts/Lato-Italic.woff2') format('woff2'), /* Modern Browsers */
         url('../fonts/Lato-Italic.woff') format('woff'), /* Modern Browsers */
         url('../fonts/Lato-Italic.ttf') format('truetype');
    font-style: italic;
    font-weight: normal;
}

@font-face {
    font-family: 'LatoWebLight';
    src: url('../fonts/Lato-Light.eot'); /* IE9 Compat Modes */
    src: url('../fonts/Lato-Light.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('../fonts/Lato-Light.woff2') format('woff2'), /* Modern Browsers */
         url('../fonts/Lato-Light.woff') format('woff'), /* Modern Browsers */
         url('../fonts/Lato-Light.ttf') format('truetype');
    font-style: normal;
    font-weight: normal;
}

@font-face {
    font-family: 'LatoWebLight';
    src: url('../fonts/Lato-LightItalic.eot'); /* IE9 Compat Modes */
    src: url('../fonts/Lato-LightItalic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('../fonts/Lato-LightItalic.woff2') format('woff2'), /* Modern Browsers */
         url('../fonts/Lato-LightItalic.woff') format('woff'), /* Modern Browsers */
         url('../fonts/Lato-LightItalic.ttf') format('truetype');
    font-style: italic;
    font-weight: normal;
}

@font-face {
    font-family: 'LatoWebMedium';
    src: url('../fonts/Lato-Medium.eot'); /* IE9 Compat Modes */
    src: url('../fonts/Lato-Medium.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('../fonts/Lato-Medium.woff2') format('woff2'), /* Modern Browsers */
         url('../fonts/Lato-Medium.woff') format('woff'), /* Modern Browsers */
         url('../fonts/Lato-Medium.ttf') format('truetype');
    font-style: normal;
    font-weight: normal;
}

@font-face {
    font-family: 'LatoWebMedium';
    src: url('../fonts/Lato-MediumItalic.eot'); /* IE9 Compat Modes */
    src: url('../fonts/Lato-MediumItalic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('../fonts/Lato-MediumItalic.woff2') format('woff2'), /* Modern Browsers */
         url('../fonts/Lato-MediumItalic.woff') format('woff'), /* Modern Browsers */
         url('../fonts/Lato-MediumItalic.ttf') format('truetype');
    font-style: italic;
    font-weight: normal;
}

@font-face {
    font-family: 'LatoWeb';
    src: url('../fonts/Lato-Regular.eot'); /* IE9 Compat Modes */
    src: url('../fonts/Lato-Regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('../fonts/Lato-Regular.woff2') format('woff2'), /* Modern Browsers */
         url('../fonts/Lato-Regular.woff') format('woff'), /* Modern Browsers */
         url('../fonts/Lato-Regular.ttf') format('truetype');
    font-style: normal;
    font-weight: normal;
}

@font-face {
    font-family: 'LatoWebSemibold';
    src: url('../fonts/Lato-Semibold.eot'); /* IE9 Compat Modes */
    src: url('../fonts/Lato-Semibold.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('../fonts/Lato-Semibold.woff2') format('woff2'), /* Modern Browsers */
         url('../fonts/Lato-Semibold.woff') format('woff'), /* Modern Browsers */
         url('../fonts/Lato-Semibold.ttf') format('truetype');
    font-style: normal;
    font-weight: normal;
}

@font-face {
    font-family: 'LatoWebSemibold';
    src: url('../fonts/Lato-SemiboldItalic.eot'); /* IE9 Compat Modes */
    src: url('../fonts/Lato-SemiboldItalic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('../fonts/Lato-SemiboldItalic.woff2') format('woff2'), /* Modern Browsers */
         url('../fonts/Lato-SemiboldItalic.woff') format('woff'), /* Modern Browsers */
         url('../fonts/Lato-SemiboldItalic.ttf') format('truetype');
    font-style: italic;
    font-weight: normal;
}

@font-face {
    font-family: 'LatoWebThin';
    src: url('../fonts/Lato-Thin.eot'); /* IE9 Compat Modes */
    src: url('../fonts/Lato-Thin.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('../fonts/Lato-Thin.woff2') format('woff2'), /* Modern Browsers */
         url('../fonts/Lato-Thin.woff') format('woff'), /* Modern Browsers */
         url('../fonts/Lato-Thin.ttf') format('truetype');
    font-style: normal;
    font-weight: normal;
}

@font-face {
    font-family: 'LatoWebThin';
    src: url('../fonts/Lato-ThinItalic.eot'); /* IE9 Compat Modes */
    src: url('../fonts/Lato-ThinItalic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('../fonts/Lato-ThinItalic.woff2') format('woff2'), /* Modern Browsers */
         url('../fonts/Lato-ThinItalic.woff') format('woff'), /* Modern Browsers */
         url('../fonts/Lato-ThinItalic.ttf') format('truetype');
    font-style: italic;
    font-weight: normal;
}

@media all {
  * {
    margin: 0;
    padding: 0;
    font-family: "LatoWebMedium", sans-serif;
    box-sizing: border-box;
  }

  :root {
    font-size: 18px;
  }

  a { color: black; text-decoration-line: underline; text-decoration-color: #444; }
  a:hover { color: #444; text-decoration-color: black; }
  :is(h1,h2,h3,h4,h5,h6) { font-weight: bold; font-family: "LatoWebSemibold", serif; margin-bottom: 0.8rem; }
  h1 { font-variant-caps: small-caps; }
  ul { margin-left: clamp(5vw, 20px, 15vw); }

  header img {
    width: 1058px;
    height: 186px;
  }

  /* design element: menu */
  body nav { cursor: pointer }
  body nav ul { height: 100% }
  body > nav:nth-child(5) {
    & { background-color: black }
    & ul { list-style-type: none; height: 3rem; display: flex; justify-content: center; align-items: center; gap: 2rem; margin: 0; }
    & a {
      color: white;
      font-weight: bold;
      text-decoration-line: underline;
      text-decoration-color: #666;
    }
  }
  body > nav:nth-child(5) a:hover {
    color: #AAA;
    text-decoration-color: white;
  }
  body > nav:nth-child(6) {
    & ul { list-style-type: none; padding: 0; margin: 0 }
    & li { display: block; padding: 0.3rem 0; margin: 0 }
    & a {
      color: black;
      font-weight: bold;
      text-decoration-line: underline;
      text-decoration-color: #444;
    }
  }
  body > nav:nth-child(6) a:hover {
    color: #222;
    text-decoration-color: #999;
  }
  .hidden { display: none }

  /* main area */
  main li {
    margin-bottom: 0.5rem;
  }
  main p, main dl {
    line-height: 1.6rem;
    margin-bottom: 1rem;
  }
  main dt {
    font-style: italic;
    margin-left: 1rem;
  }
  main dd { margin-left: 4rem }
  main table {
    border-collapse: separate;
    border-spacing: 8px;
    margin-bottom: 1rem;
  }
  main table td, main table th { vertical-align: top }
  main figure { margin: 0.5rem 0 } 
  main figcaption { text-align: center } 
  main figcaption::before {
    content: "Abb. ";
    font-weight: bold;
  }
  .trainer.table-left tr *:first-child { text-align: left }
  .trainer.table-right tr *:first-child { text-align: right }
  .seminar { padding: 2rem; margin: 1rem; border-radius: 10px }
  .seminar.upcoming { border: 3px solid #7A0A10 }
  .seminar.past { border: 3px solid #666 }
  #next-trainings td { padding: 5px }
  #next-trainings tr:nth-child(even) { background-color: #EEE }
  details > summary::marker { content: ""; display: none }
  details > summary h2::before { content: "▸ " }
  details[open] > summary h2::before { content: "▼ " }

  /* footer always at the bottom */
  body > footer {
    color: white;
    background-color: black;
    width: 100vw;
    min-height: 3rem;

    /*position: absolute;
    bottom: 0px;*/

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
  }

  /* page layout definition */
  body {
    display: grid;
    grid-gap: 2vw;
    grid-template-columns: 10vw 12vw 62vw 10vw;
    grid-template-rows: 3rem min-content 3rem max-content 3rem;
    grid-template-areas: "top     top      top      top"
                         "banner  banner   banner   banner"
                         "menu    menu     menu     menu"
                         "left    submenu  main     right"
                         "bottom  bottom   bottom   bottom";
  }
  #top {
    grid-area: top;
    background-color: black;
  }
  #left { grid-area: left }
  #right { grid-area: right }
  body > header {
    grid-area: banner;
    text-align: center;
  }
  body > nav:nth-child(5) { grid-area: menu }
  body > nav:nth-child(6) { grid-area: submenu }
  body > main { grid-area: main }
  body > footer { grid-area: bottom }
}

@media screen and (max-width: 800px) {
  header img {
    margin-top: 1rem;
    width: 95vw;
    height: auto;
  }

  body > nav {
    background-color: black;
    height: 3rem;
    padding: 0.5rem;
  }
  body > nav:nth-child(5) {
    & ul { height: 100%; display: flex; flex-flow: row wrap; justify-content: flex-start; align-items: center; gap: 0.5rem; }
    & li { display: inline }
  }
  body > nav:nth-child(6) {
    & ul:not(.hidden) { height: 100%; display: flex; flex-flow: row wrap; justify-content: flex-start; align-items: center; gap: 0.5rem; }
    & li { display: inline }
    & a { color: white }
  }
  main { padding: 0.5rem }

  /* page layout definition */
  body {
    display: grid;
    grid-column-gap: 2vw;
    grid-template-columns: 100vw;
    grid-template-rows: repeat(4, auto);
    grid-template-areas: "banner"
                         "menu"
                         "submenu"
                         "main";
  }
  #top, #left, #right { display: none }
  body > header {
    grid-area: banner;
    text-align: center;
  }
  body > nav:nth-child(5) { grid-area: menu }
  body > nav:nth-child(6) { grid-area: submenu }
  body > main { grid-area: main }
  body > footer { display: none }
}
