/* global vars */

:root {
  --maxcontainerwidth: 1400px;
  --maxheaderwidth: 1400px;
  /* colors */
  --orange-7: #e87d38;
  --orange-8: #C27327;
  --orange-10: #904804;
  
  --navtextcolor: var(--orange-7);
  --navhover: var(--orange-10);
  --headercolor: var(--orange-7);
  --textcolor: black;  
  --bordercolor: white;
  --imgbordercolor: var(--bordercolor);
  --bodybackground: white;
  --navbackground: var(--bodybackground);
  --headerbackground: var(--bodybackground);
/*  
  --navbordercolor: white;
  --imagebackground: var(--bodybackground);
  --containerbackground: var(--bodybackground);
  --sectionbackground: var(--bodybackground);
  --textblockbackground:  var(--bodybackground);
  --logobackground:  var(--bodybackground);
*/
} 

/* font */

@font-face{
  font-family: Roboto;
  src: url(/fonts/Roboto-Light.subset.woff2);
  font-weight: 100;
  font-display: fallback;
}

@font-face{
  font-family: Roboto;
  src: url(/fonts/Roboto-Light.subset.woff2);
  font-weight: 300;
  font-display: fallback;
}

@font-face{
  font-family: Roboto;
  src: url(/fonts/Roboto-Regular.subset.woff2);
  font-weight: 400;
  font-display: fallback;
}

@font-face{
  font-family: Roboto;
  src: url(/fonts/Roboto-Medium.subset.woff2);
  font-weight: 700;
  font-display: fallback;
}



* {
  scroll-behavior: smooth;
  scroll-margin-top: 100px;
}

body {
  width:100%;
  background-color: var(--bodybackground);
  padding: 0;
  font-family: Roboto, sans-serif;
  font-weight: 300;
  font-size: 14pt;
  color: var(--textcolor);
  margin: 0;
}

* {
  box-sizing: border-box;
}

/* other Links */

.adr {
  margin: 0 30px;
}


a {
  text-decoration: none;
  color: var(--navtextcolor);
  font-weight: 400;
}

a:active,
a:hover {
  color: var(--navhover);
}


/* header / footer */

header.main-header,
footer {
  padding: 7px;
  display: block;
  margin: 0px auto 0px auto;
  width: 100%;
  max-width: var(--maxheaderwidth);
  padding-top: 2px;
  font-weight: 400;
  padding-bottom: 2px;
  text-transform: uppercase;
  background-color: var(--headerbackground);
  font-size: 1rem;
}

header.main-header {
  position: sticky;
  z-index: 1000;
  height: 90px;
  top: 0px;
}

  /* footer */

footer {
  line-height: 1.5;
  position: relative;
  height: 30px;
}

footer div a,
footer div {
  text-decoration: none;
  color: var(--navtextcolor);
}

footer div {
  position:absolute;
  top:0px;
  padding: 5px 10px;
}

footer div.left{
  left: 4px;
}

footer div.right{
  right: 4px;
}

header.main-header .logo {
  height: 75px;
  top: 7px;
  left: 3px;
  position: absolute;
  display: block;
}


/* navigation */

header.main-header nav ul{
  list-style-type: none;
  padding: 5px 10px;
  text-transform: uppercase;
  margin: 0;
  position: absolute;
  right:3px;
  top: 7px;
}

header.main-header nav ul .m-icon {
  display: none;
}

header.main-header nav ul li{
  text-decoration: none;
  color: var(--navtextcolor);
  display: inline-block;
  margin: 0 0 0 10px;
}

/* dropdown */

header.main-header nav ul li a:hover,
header.main-header nav ul li a:active,
header.main-header nav ul li:hover,
header.main-header nav ul li:active{
  color: var(--navhover);
}

header.main-header nav ul .drop_down {
  text-decoration: none;
  cursor: pointer;
  color: var(--navtextcolor);
  position: relative;
}

header.main-header nav ul .drop_down div {
  padding: 10px;
  left: -25px;
  text-decoration: none;
  color: var(--navtextcolor);
  position: absolute;
  display: none;
  background-color: var(--navbackground);
}

header.main-header nav ul .drop_down div a {
  display: block;
  padding: 5px;
}

header.main-header nav ul .drop_down:hover div{
  display: block;
}

#container {
  /*min-height: 100vh;*/ ???
  font-weight: 300;
  line-height: 1.5;
  color: var(--textcolor);
  background-color: var(--containerbackground);
  margin: 0px auto 0px auto;
  gap: 10px 20px;
  width: 95%;
  border-radius: 0;
}

#container.gruppe strong {
  color: var(--headercolor);
}

strong {
  font-weight: 700;
}

/* startpage */

#startpage {
  width: 100%;
  margin: auto auto;
  padding: 0 7px 0 7px;
  min-height: 80vh;
}

#startpage h1 {
  text-align: center;
  font-size: 170%;
  hyphens: manual;
}

#startpage img {
  display: block;
  margin: 3px auto;
  width: 100%;
  max-width: 100%;
  max-height: 63vh;
  object-fit: contain;
}

#startpage container {
  width: 100%;
}

#startpage p {
  text-align: center;
  color: var(--text-color);
  font-size: 110%;
}

/* map */

div #map {
  height: 60vh; 
  margin: 0 1%;
}


  /* contents */

#container {
  max-width: var(--maxcontainerwidth);
}

#contents{
  background-color: var(--contentsbackground);
  text-align: left;
  /* text-align: justify;
  text-justify: auto; */
  padding: 20px 3% 10px 3%;
  width: 100%;
  hyphens: auto;
}

/* headers */

h1, h2, h3 {
  color: var(--headercolor);
  hyphens: none;
}


h1{
  font-weight: 100;
  font-size: 250%;
  text-align: center;
}

h2, h3 {
  text-align: left;
  font-weight: 300;
}

h2{
  font-size: 190%;
}

#prvkv h2{ /* OMG */
  margin-top: 10px;
}

h3{
  font-size: 150%;
}

#contents.meta h3 {
  margin-bottom: 5px;
}

/* preformated and paragraphs */

pre {
  margin: 0;
}

p {
    margin: 10px 0;
  }

/* definition lists (here team intro) */

dl {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  margin: 15px 0 0 0;
  width: 100%;
}

dt {
  width: 7em;
  text-align: left;
  font-weight: 300;
}

dd {
  box-sizing: border-box;
  width: calc(100% - 7em);
  margin-bottom: 10px;
  padding: 0;
  margin: 0 0 10px 0;
}


/* flex sections */

#contents section.flex{
  width: 100%;
  max-width: var(--maxheaderwidth);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  background-color: var(--sectionbackground);
  margin: 0 0;
  gap: 5%;
}

#contents section.flex.bw{
  flex-direction: row-reverse;
}

#contents section.flex img {
  object-fit: contain;
  width:100%;
  height: 100%;
}

/* images small (team) */

#contents section.flex div.img_container{
  flex: 1 0 auto;
  max-width: 300px;
  background-color: var(--imagebackground);
}

#contents section.flex > div{
  flex: 10 0 350px;
  padding: 10px 1% 25px 1%;
  background-color: var(--textblockbackground);
}

/* images full width */

#contents section.flex.full-w div.img_container {
  flex: 2 0 400px;
  max-width: 100%;
  width: 100%;
}

#contents section.flex.full-w > div{
  flex: 1 0 400px;
}

/* 2 column for broad screens */

.pot2col img,
.fix-2-col img {
  width: 100%;
}

@media (min-width: 1000px) {

 .pot2col {
  column-count: 2;
  margin-bottom: 10px;
  column-gap: 40px;
 }

 .pot2col div.keeptogether {
    width: 100%;
    display: inline-block;
 }
 
 .pot2col *:first-child {
    margin-top: 0;
    padding-top: 0;
 }
}


/* smaller screens */

@media (max-width: 900px) {

 body {
   font-size: 13pt;
 }

 #contents section.flex{
  justify-content: space-around;
 }

 #contents section.flex div{
  max-width: 100%;
 }
 
 #contents section.flex div.img_container{
  max-width: 60%;
  width: 300px;
 }

 #contents section.flex.full-w div.img_container{
  flex:  0 0 100%;
  max-width: 100%;
 }

h1 {
  font-size: 200%;
 }
}


/* responsive */
  
@media screen and (max-width: 800px) {

  header.main-header{
    height: 80px;
  }
  
  header.main-header nav ul li{
    display:none;
  }

  header.main-header nav ul li.m-icon {
    display: block;
    position: absolute;
    top: 3px;
    right: 5px;
    cursor: pointer;
  }

  header.main-header nav ul.responsive{
    display: block;
    width: 14em;
    background-color: var(--navbackground);
  }

  header.main-header nav ul.responsive li{
    display: block;
    padding: 5px;
  }
  
 header.main-header .logo {
  height: 65px;
  margin: 3px 5px;
 }
}

/* footer line break */

@media (max-width: 600px) {
 footer {
  display: block;
 }

 footer div {
  display: block;
  position: static;
  text-align: center;
 }
 
 footer div.right {
  font-size: 0.85rem;
 }

 body {
   font-size: 12pt;
 }
}
