@font-face {
  font-family: 'Purisa';
  font-weight: normal;
  font-style: normal;
  font-display: swap;
  src: url('Purisa.woff2') format('woff2'), url('Purisa.woff') format('woff');
}

@font-face {
  font-family: 'Purisa';
  font-weight: bold;
  font-style: normal;
  font-display: swap;
  src: url('Purisa-Bold.woff2') format('woff2'), url('Purisa-Bold.woff') format('woff');
}

@font-face {
  font-family: 'Purisa';
  font-weight: normal;
  font-style: italic;
  font-display: swap;
  src: url('Purisa-Oblique.woff2') format('woff2'), url('Purisa-Oblique.woff') format('woff');
}

@font-face {
  font-family: 'Purisa';
  font-weight: bold;
  font-style: italic;
  font-display: swap;
  src: url('Purisa-BoldOblique.woff2') format('woff2'), url('Purisa-BoldOblique.woff') format('woff');
}

html {
  background-color: #fff;
  color: #000;
  font-family: Purisa, Verdana, sans-serif;
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

a:link,
a:visited
{
  color: #0000a6;
  text-decoration: underline;
}

a:link:hover,
a:visited:hover
{
  text-decoration: none;
}

h1, h2, h3, h4 {
  margin: 2em 0 0.5em;
  font-weight: bold;
  scroll-margin-top: 60px; /* TODO */
}

h1 {
  font-size: 1.5em;
}

h2 {
  font-size: 1.25em;
}

h3 {
  font-size: 1em;
}

h4 {
  font-size: 0.75em;
}

p, ul, ol, dl {
  margin: 1em 0;
}

div.serious, p.serious {
  font-family: Arial, sans-serif;
}

li {
  margin: 0.75em 0;
}

dt {
  font-weight: bold;
}

dd {
  margin: 0 0 0.75em 1.5em;
}

#container {
  position: relative;
  margin: 0 auto;
  max-width: 800px;
  min-width: 320px;
}

#lang {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 100;
}

/*#lang .flag {
  display: block;
  margin: 10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  opacity: 30%;
  transition: opacity ease-in-out 0.2s;
}

#lang .flag:hover,
#lang .flag:active
{
  opacity: 100%;
}

#lang .flag.de {
  background-image: url("DE.png");
}

#lang .flag.en {
  background-image: url("GB.png");
}

#lang .flag.es {
  background-image: url("ES.png");
}*/

#lang .flag {
  text-decoration: none;
  /*opacity: 50%;*/
}

#lang .flag:hover {
  opacity: 100%;
}

#lang .flag::before {
  display: block;
  margin: 10px;
  width: 40px;
  height: 40px;
  color: #000;
  text-align: center;
  line-height: 40px;
  text-decoration: none;
  
  /*border-radius: 50%;*/
  /*border: 2px solid #000;*/
  /*font-size: 20px;*/
  
  text-shadow: 0 0 2px #fff;
  
  border-radius: 20px / 5px;
  /*border: 1px solid #ccc;*/
  /*box-shadow: 3px 3px 5px #ccc;*/
  box-shadow: 0 0 5px #ccc;
}

#lang .flag::before {
  background-position: -40px 0;
  background-size: 200%;
  background-repeat: no-repeat;
}

#lang .flag:hover::before {
  background-position: 0 0;
}

#lang .flag.de::before {
  content: "De";
  background-image: url("DE2.png");
}

#lang .flag.en::before {
  content: "En";
  background-image: url("GB2.png");
}

#lang .flag.pl::before {
  content: "Pl";
  background-image: url("PL2.png");
}

#lang .flag.es::before {
  content: "Es";
  background-image: url("ES2.png");
}

#logo {
  display: block;
  height: 240px;
  background-image: url("logo.png");
  background-repeat: no-repeat;
  background-position: center 30px;
  background-size: auto 200px;
}

#subtitle {
  margin: 0.5em 0 2em;
  font-size: 0.875em; /* TODO vorher 0.75em */
  text-align: center;
}

#subtitle2 {
  margin: 2em 0;
  font-size: 1.25em;
  text-align: center;
}

#menu-container {
  position: sticky;
  top: 0;
  margin-bottom: 4em;
  background-color: #fff;
  padding: 0.75em 5px;
  box-shadow: 0 10px 10px #fff;
}

#menu-button {
  display: none;
}

#menu-switch {
  display: none;
}

#menu-overlay {
  display: none;
}

#menu {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

#menu a:link,
#menu a:visited
{
  display: inline-block;
  flex-grow: 0;
  border: 1px solid #bbb;
  border-radius: 20px / 5px;
  background-color: #fff;
  padding: 0 0.5em;
  height: 1.875em;
  color: #000;
  line-height: 1.875em; /* 30px (ganzzahlig und gerade) bei font-size:16px */
  text-decoration: none;
  text-shadow: 0 0 2px #fff;
  box-shadow: 3px 3px 5px #ccc;
  background-repeat: no-repeat; /*verhindert Glitches am Rand bei bestimmten Inhaltsbreiten und linear-gradient */
  /*background-size: 100% 100%;
  background-position: center;*/
}

#menu a:link:hover,
#menu a:visited:hover
{
  background-image: linear-gradient(30deg, #babae5, #fff 35%, #fff 65%, #babae5);
}

#menu a:link.active,
#menu a:visited.active
{
  background-image: linear-gradient(30deg, #1010a6, #fff 45%, #fff 55%, #1010a6);
}

#pagetitle {
  display: none;
}

#content {
  padding: 0 5px;
}

#footer {
  margin: 4em 0;
  padding: 0 5px;
  color: #888;
  font-family: Verdana, sans-serif;
  font-size: 0.75em;
  text-align: center;
}

#footer a:link,
#footer a:visited
{
  color: inherit;
  text-decoration: none;
}

div.smallbuttons {
  position: relative;
  margin: 0 auto;
  width: 300px;
  height: 280px;
  /*background-color: #cfc;*/
}

div.smallbuttons a {
  display: block;
  position: absolute;
  background-repeat: no-repeat;
  background-position: top center;
  background-size: auto 40px;
  padding: 45px 0 0;
  width: 100px;
  color: inherit;
  text-decoration: none;
  text-align: center;
}

div.smallbuttons a.wheel {
  background-image: url("wheel.png");
}

div.smallbuttons a.left {
  left: 0;
}

div.smallbuttons a.right {
  left: 200px;
}

div.smallbuttons a.top {
  top: 30px;
}

div.smallbuttons a.bottom {
  top: 170px;
}

div.smallbuttons a.center {
  top: 100px;
  left: 100px;
}

div.smallbuttons a.top.center {
  top: 0;
}

div.smallbuttons a.bottom.center {
  top: 200px;
}

a.bigbutton {
  display: inline-block;
  background-repeat: no-repeat;
  background-position: top center;
  background-size: auto 45px;
  padding: 50px 10px 10px;
  min-width: 90px;
  color: inherit;
  text-decoration: none;
  text-align: center;
}

a.bigbutton.phone,
div.smallbuttons a.phone
{
  background-image: url("phone.png");
}

a.bigbutton.mail,
div.smallbuttons a.mail
{
  background-image: url("mail.png");
}

h1.table-of-contents {
  text-align: center;
}

ul.table-of-contents {
  margin-bottom: 6em; /* TODO oder 5em? */
  padding: 0;
}

ul.table-of-contents li {
  display: block;
  margin: 0;
  text-align: center;
}

ul.table-of-contents a:link,
ul.table-of-contents a:visited
{
  color: inherit;
  text-decoration: none;
}

div.photos {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  /*align-items: baseline;*/
  align-items: center;
}

div.photos > div {
  /*flex-basis: 150px;*/
  flex-grow: 0;
  flex-shrink: 0;
  /*height: 150px;*/
  text-align: center;
}

div.photos img {
  max-width: 150px;
  max-height: 150px;
}



@media not (max-width: 600px),
(min-width: 601px) /* Workaround für nicht unterstützte logische Operatoren */
{
  .mobile-only {
    display: none;
  }
}

@media (max-width: 600px) {
  
  .desktop-only {
    display: none;
  }

  #logo {
    height: 185px;
    background-position: center 25px;
    background-size: auto 150px;
  }
  
  #menu-container {
    position: static;
    margin: 0;
    background-color: transparent;
    padding: 0;
    box-shadow: none;
  }

  #menu-button {
    display: block;
    position: absolute;
    z-index: 1001;
    left: 10px;
    top: 10px;
    width: 40px;
    height: 40px;
    background-image: url("menubutton.png");
    background-size: 40px 40px;
    cursor: pointer;  
    /*background-color: #fcc;
    left: 5px;
    top: 5px;
    width: 50px;
    height: 50px;
    background-position: center;
    background-repeat: no-repeat;*/
  }
  
  #menu-overlay {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.5);
  }

  #menu-switch:checked + #menu-inner.fallback #menu-overlay {
    display: block;
  }

  #menu {
    display: none;
    position: absolute;
    z-index: 1000;
    left: 5px;
    top: 5px;
    border: 1px solid #ccc;
    background-color: #fff;
    padding: 45px 0 0;
    width: 300px;
  }
  
  #menu-switch:checked + #menu-inner.fallback #menu,
  #menu-inner.visible #menu
  {
    display: block;
  }

  #menu a:link,
  #menu a:visited,
  #menu a:link:hover,
  #menu a:visited:hover,
  #menu a:link.active,
  #menu a:visited.active
  {
    display: block;
    float: left;
    border: none;
    border-radius: 0;
    background-color: #fff;
    background-image: none;
    padding: 5px;
    width: 140px;
    height: 2.5em;
    line-height: 2.5em;
    color: #000;
    text-align: center;
    text-shadow: none;
    box-shadow: none;
  }

  #menu a:link:active,
  #menu a:visited:active
  {
    background-color: #eee;
  }
    
  html:not([data-page="hauptseite"]) #subtitle2 {
    display: none;
  }
  
  #pagetitle {
    display: block;
    position: sticky;
    top: 0;
    margin: 0.75em 0;
    background-color: #fff;
    font-size: 1.75em;
    font-weight: bold;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-align: center;
    box-shadow: 0 5px 5px #fff;
  }
  
  html[data-page="hauptseite"] #pagetitle {
    display: none;
  }

  ul.table-of-contents li {
    margin: 0.75em 0;
  }

}
