html {
  overflow-y: scroll;
  height: 100%;
}

body {
  font-family: Arial, sans-serif;
  font-size: 16px;
  height: 100%;
  background-color: #FFFFDD;
  padding: 0;
  margin: 0;
}

@media (max-width: 670px) {
  body {
    font-size: 14px;
    background-color: #36824f;
  }
}

.wetter {
  background-color: white;
}

.strike {
  text-decoration: line-through;
}

a:visited {
  color: #0069bd;
  text-decoration: none;
}

a:active {
  color: #0069bd;
  text-decoration: none;
}

a:link {
  color: #0069bd;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
  color: #db0f00;
}

#inner {
  display: flex;
  box-sizing: border-box;
  padding: 0;
  box-sizing: border-box;
}

@media (max-width: 670px) {
  #inner {
    padding-bottom: 2em;
  }
}

@media (min-width: 671px) {
  #inner {
    height: 100%;
    flex-direction: column;
  }
}

#wrapper {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  position: relative;
  justify-content: stretch;
}

@media (min-width: 860px) {
  #wrapper {
    width: 100%;
    max-width: 1024px;
    box-sizing: border-box;
    box-shadow: 0 0 40px -20px black;
  }
}

@media (max-width: 670px) {
  #wrapper {
    min-height: 100vh;
  }
}

@media (min-width: 671px) {
  #wrapper {
    min-height: 100%;
    overflow: hidden;
  }
}

header {
  width: 100%;
  background-color: #19501b;
  text-align: center;
  padding: 0;
  z-index: 2;
  border-bottom: 2px solid #000000;
}

@media (max-width: 670px) {
  header {
    width: calc(100% + 4em);
    margin: 0 auto;
    padding-left: 1em;
    position: fixed;
    left: -3em;
    top: 0;
    border: none;
    box-shadow: 0 10px 10px -10px #000000;
    display: flex;
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 50px;
  }
}

@media (max-width: 1023px) {
  header {
    background-image: url("images/bg_1024px.jpg");
    /* The image used */
    /* You must set a specified height */
    background-position: center;
    /* Center the image */
    background-repeat: no-repeat;
    /* Do not repeat the image */
    background-size: cover;
    /* Resize the background image to cover the entire container */
  }
}

@media only screen and (max-width: 1023px) and (-webkit-min-device-pixel-ratio: 2), only screen and (max-width: 1023px) and (min--moz-device-pixel-ratio: 2), only screen and (max-width: 1023px) and (-o-min-device-pixel-ratio: 2 / 1), only screen and (max-width: 1023px) and (min-device-pixel-ratio: 2), only screen and (max-width: 1023px) and (min-resolution: 192dpi), only screen and (max-width: 1023px) and (min-resolution: 2dppx) {
  header {
    background-image: url("images/bg_2048px.jpg");
  }
}

@media (max-width: 512px) {
  header {
    background-image: url("images/bg_1024px.jpg");
    /* The image used */
    /* You must set a specified height */
    background-position: center;
    /* Center the image */
    background-repeat: no-repeat;
    /* Do not repeat the image */
    background-size: cover;
    /* Resize the background image to cover the entire container */
  }
}

header img {
  margin: 0 auto;
  max-width: 100%;
  height: auto;
  margin-bottom: -3px;
}

@media (max-width: 1023px) {
  header img {
    filter: drop-shadow(2px 4px 12px white);
  }
}

@media (max-width: 670px) {
  header img {
    max-width: calc(100% - 120px - 4em);
    max-height: 50px;
  }
}

.pest {
  width: 100%;
}

@media (max-width: 670px) {
  nav {
    position: fixed;
    top: 0;
    z-index: 2;
  }
  .wetter {
    max-height: 70px;
    order: 1;
    position: absolute;
    bottom: 130px;
    right: 0;
    background: transparent;
  }
  /*
   * Just a quick hamburger
   */
  /*
   * Transform all the slices of hamburger
   * into a crossmark.
   */
  /*
   * But let's hide the middle one.
   */
  /*
   * Ohyeah and the last one should go the other direction
   */
  /*
   * Make this absolute positioned
   * at the top left of the screen
   */
  /*
   * And let's slide it in from the left
   */
  #menuToggle {
    display: block;
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 1;
    -webkit-user-select: none;
    user-select: none;
  }
  #menuToggle a {
    text-decoration: none;
    color: #232323;
    transition: color 0.3s ease;
  }
  #menuToggle a:hover {
    color: tomato;
  }
  #menuToggle input {
    display: block;
    width: 40px;
    height: 32px;
    position: absolute;
    top: -7px;
    left: -5px;
    cursor: pointer;
    opacity: 0;
    z-index: 2;
    -webkit-touch-callout: none;
  }
  #menuToggle input:checked ~ span {
    opacity: 1;
    transform: rotate(45deg) translate(-2px, -1px);
    background: #058f00;
    box-shadow: 1px 1px 2px rgba(255, 255, 255, 0), -1px 1px 2px rgba(255, 255, 255, 0), 1px -1px 2px rgba(255, 255, 255, 0), -1px -1px 2px rgba(255, 255, 255, 0);
  }
  #menuToggle input:checked ~ span:nth-last-child(3) {
    opacity: 0;
    transform: rotate(0deg) scale(0.2, 0.2);
  }
  #menuToggle input:checked ~ span:nth-last-child(2) {
    transform: rotate(-45deg) translate(0, -1px);
  }
  #menuToggle input:checked ~ #menu {
    transform: none;
    box-shadow: 0 0 20px -5px;
  }
  #menuToggle span {
    display: block;
    width: 33px;
    height: 4px;
    margin-bottom: 5px;
    position: relative;
    background: #232323;
    box-shadow: 1px 1px 2px white, -1px 1px 2px white, 1px -1px 2px white, -1px -1px 2px white;
    border-radius: 3px;
    z-index: 1;
    transform-origin: 4px 0;
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1), background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1), opacity 0.55s ease, box-shadow 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
  }
  #menuToggle span:first-child {
    transform-origin: 0 0;
  }
  #menuToggle span:nth-last-child(2) {
    transform-origin: 0 100%;
  }
  #menu {
    position: absolute;
    height: 100vh;
    line-height: 2em;
    width: 300px;
    margin: -100px 0 0 -50px;
    padding: 125px 50px 50px;
    background: #ededed;
    list-style-type: none;
    -webkit-font-smoothing: antialiased;
    transform-origin: 0 0;
    transform: translate(-100%, 0);
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
  }
  #menu h4 {
    padding: 0;
    margin: 0;
    font-size: 1.5em;
  }
  #menu ul {
    margin-top: 0.5em;
    list-style-type: none;
    padding-left: 0;
    padding-inline-start: 0;
  }
  #menu li {
    padding: 0;
    font-size: 22px;
  }
  #menu li a {
    padding: 5px 0 5px 40px;
    display: block;
  }
}

@media (min-width: 671px) {
  nav {
    width: calc(100% + 2em);
    background-color: #d8edf5;
    z-index: 10;
    margin: 0 auto;
    font-size: 1.1em;
    right: 1em;
    position: relative;
    box-sizing: border-box;
    box-shadow: 0 10px 10px -10px #000000;
  }
  nav .wetter {
    float: right;
    /* max-height: 3em; */
    top: -17px;
    height: 68px;
    background-color: #cfe2d1;
    background-color: transparent;
    right: -34px;
    position: absolute;
    filter: drop-shadow(-1px 0px 0px #cfe2d1aa) drop-shadow(1px 0px 0px #cfe2d1aa) drop-shadow(0px 1px 0px #cfe2d1aa) drop-shadow(0px -1px 0px #cfe2d1aa);
  }
}

@media (min-width: 671px) and (max-width: 900px) {
  nav {
    font-size: 1em;
  }
  nav .wetter {
    height: 60px;
    top: -14px;
    right: -28px;
  }
}

@media (min-width: 671px) and (max-width: 750px) {
  nav {
    font-size: 0.8em;
  }
  nav .wetter {
    height: 50px;
    top: -13px;
    right: -23px;
  }
}

@media (min-width: 671px) {
  nav #menu {
    width: calc(100% - 1em);
    position: relative;
    left: 1em;
    overflow: hidden;
  }
  nav input {
    display: none;
  }
  nav ul {
    list-style-type: none;
    display: flex;
    width: calc(100% - 1em + 1px);
    margin: 0;
    padding-inline-start: 0;
  }
  nav li {
    padding: 0;
    flex: 1;
    text-align: center;
    background-color: #4d843a;
    letter-spacing: 0.04em;
    /* font-weight: bold; */
    text-shadow: 1px 1px black;
  }
  nav li a {
    display: block;
    color: white;
    padding: 1em 0.5em;
    z-index: 20;
  }
  nav li a:visited {
    color: white;
    text-decoration: none;
  }
  nav li a:active {
    color: white;
    text-decoration: none;
  }
  nav li a:link {
    color: white;
    text-decoration: none;
  }
  nav li a:hover {
    text-decoration: none;
    background-color: #18501b;
    color: #ffffff;
  }
}

.rounded {
  border-radius: 10px;
}

main {
  background-color: #FFFFDD;
  width: 100%;
  padding: 0.5em 1em;
  margin-right: 0;
  flex: 1;
  text-align: justify;
  box-sizing: border-box;
  line-height: 1.33em;
}

@media (max-width: 670px) {
  main {
    margin-top: 50px;
  }
}

main img {
  margin: 5px;
  border: 1px solid #6a6a6a;
  max-width: 100%;
  box-sizing: border-box;
  height: auto;
}

main img.left {
  margin: 0.25em 0.5em 0 0;
}

main img.right {
  margin: 0.25em 0 0 0.5em;
}

main div {
  text-align: justify;
}

h1 {
  font-variant: small-caps;
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 0;
  margin-top: 0;
}

h2 {
  font-variant: small-caps;
  font-size: 24px;
  font-weight: bold;
  margin-top: 1em;
  padding-bottom: 0.3em;
  margin-bottom: 1em;
  text-align: center;
  border-bottom: 1px solid green;
}

h3 {
  font-variant: small-caps;
}

h4 {
  font-variant: small-caps;
  font-size: 18px;
  margin-bottom: 0;
  color: #0b450d;
}

h1,
h2,
h3,
h4 {
  text-shadow: 1px 1px white, 2px 2px #ddd;
}

.startimg {
  width: 100%;
  height: auto;
  box-shadow: 0 0 20px -10px #5e665e;
  border-radius: 10px;
  border: 0;
}

.square-box {
  position: relative;
  width: 700px;
  box-sizing: border-box;
  overflow: hidden;
  max-width: 100%;
  background: #4679BD;
  margin: 0 auto;
}

@media (min-height: 600px) {
  .square-box {
    width: calc(100vh - 250px - 6em);
  }
}

@media (max-width: 670px) {
  .square-box {
    width: 100%;
  }
}

@media (max-width: 670px) and (max-height: 600px) {
  .square-box {
    width: calc(100% - 2em);
  }
}

.square-box:before {
  content: "";
  display: block;
  padding-top: 100%;
}

.square-content {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  color: white;
  text-align: center;
}

.square-content svg {
  width: 100%;
  height: 100%;
  cursor: move;
}

#stadtplan {
  box-shadow: 0 0 15px -10px black;
  border-radius: 20px;
  border: 3px solid white;
}

#firmen table {
  border-style: solid;
  border-width: 0;
  border-color: #000000;
  border-style: solid;
}

#firmen th {
  border-color: #000000;
  margin: -15px;
  border-width: 1px;
  padding-left: 5px;
  padding-right: 5px;
  border-style: solid;
  text-align: center;
  background-color: #cccccc;
  font-weight: bold;
}

#firmen tr {
  border: none;
  margin: -5px;
}

#firmen td {
  border-color: #000000;
  border-width: 1px;
  padding-left: 5px;
  padding-right: 5px;
  border-style: solid;
  text-align: center;
  background-color: #FFFFFF;
  font-weight: bold;
}

section {
  margin-bottom: 2em;
}

section h3 {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 0.5em;
}

section h4 {
  margin-bottom: 0.5em;
}

.center {
  align-self: center;
  margin: 0 auto;
}

#stadtplan_kcs g {
  opacity: 1;
  transition: opacity 0.5s;
}

#stadtplan_kcs g.hidden {
  opacity: 0;
  transition: opacity 0.8s;
}

.hidden {
  opacity: 0;
}

.statistik {
  text-align: left;
  color: black;
  border-collapse: collapse;
  width: 100%;
  border-radius: 5px;
  box-shadow: 0 0 1px black,0 0 20px -10px black;
  border-top: 0;
  overflow: hidden;
}

.statistik tr {
  background-color: #ddd;
}

.statistik thead tr {
  border: 1px solid #36824f;
}

.statistik th {
  background-color: #36824f;
  color: white;
  padding: 0.5em;
}

.statistik tr:nth-child(even) {
  background-color: #fff;
}

.statistik td {
  padding: 0.5em;
  border: 1px solid #d0cdcd;
}

.statistik td:first-child,
.statistik th:first-child {
  border-left: none;
}

.stat1 {
  background-color: #F2B478;
  color: #D61516;
}

.stat2 {
  background-color: #F2F178;
  color: #1516D6;
}

.subtitel {
  font-size: 12px;
  font-style: italic;
  font-variant: small-caps;
}

.menlink {
  border: 2px;
  float: left;
}

.leftdiv {
  text-align: justify;
  width: 355px;
  padding: 0;
  float: left;
}

.left {
  float: left;
}

.right {
  float: right;
}

.rightdiv {
  text-align: justify;
  width: 355px;
  padding-left: 15px;
  padding-right: 0;
  float: right;
}

.bgpop {
  background-image: none;
  background-color: #6699CC;
  font-family: Arial, sans-serif;
  font-size: 12px;
  color: #FFFFFF;
}

.stadtrat {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}

.stadtrat > div {
  display: flex;
  flex-direction: column;
  text-align: center;
  margin: 0 auto 1em;
  padding: 0.5em;
}

.kultur {
  display: flex;
}

@media (min-width: 671px) {
  .kultur img {
    margin-right: 0.5em;
    margin-left: 0;
  }
}

@media (max-width: 670px) {
  .kultur {
    flex-direction: column;
    border-bottom: 1px solid green;
    padding-bottom: 1.5em;
  }
  .kultur h3 {
    margin-bottom: 0.25em;
    margin-top: 0.5em;
    text-align: center;
  }
  .kultur img {
    margin: 1em auto 0;
  }
}

footer {
  padding: 0.5em;
  background-color: #ffffff;
  color: #000000;
  text-align: center;
  border-top: 2px solid black;
  width: 100%;
  font-size: 0.9em;
  box-sizing: border-box;
}

footer a:visited {
  color: #03a9f4;
  text-decoration: none;
}

footer a:active {
  color: #03a9f4;
  text-decoration: none;
}

footer a:link {
  color: #03a9f4;
  text-decoration: none;
}

footer a:hover {
  text-decoration: none;
  color: #6699CC;
}
