/* https://wiki.selfhtml.org/wiki/HTML/Tutorials/responsive_Webdesign/bestehende_Webseiten_umbauen */
/* https://wiki.selfhtml.org/wiki/CSS/Tutorials/Grid */

/* CSS Sanitize: https://csstools.github.io/sanitize.css/ */
@import url(https://unpkg.com/sanitize.css);
/*@import url(light.css);*/
@import url(dark.css) screen and (prefers-color-scheme: dark);

/* latin-ext */
@font-face {
  font-family: 'Lexend Deca';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(font/lexend_deca_v21_latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lexend Deca';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(font/lexend_deca_v21_latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Allgemeines */
body { 
  font-family: "Lexend Deca", sans-serif;
  font-weight: 300;
  font-optical-sizing: auto;
  position: relative;
  min-height: 100vh;
}
h1, h2, h3, h4 {
  font-family: "Lexend Deca", sans-serif;
  font-optical-sizing: auto;
}
div#main {
  padding:0 1rem 3rem;
}

label {
  cursor: pointer;
}


/* Meldungen */
div.meldung {
  display: grid;
  gap: 1rem;
  grid-template-columns: 40rem auto;
  margin-bottom: 3rem;
  border-radius: 1rem;
  padding: 1rem;
  /* position:relative; /* für das Kategorie inlay */
}
div.meldung h2 {
  grid-column: 1 / -1;
  margin-top: 0;
  margin-bottom: 0;
}
div.meldung .meldungtext {
  max-width: 40rem;
}

/* Wenn man in das Meldungs-div noch ein <span class="kategorie"> packen will (div.meldung braucht dann noch position:relative; ) */
div.meldung span.kategorie {
  display: none;
/*
  position: absolute;
  top: 0;
  right: 0;
  background: orangered;
  color: white;
  border-bottom-left-radius: inherit;
  border-top-right-radius: inherit;
  padding: 0.2rem 2rem;
  font-weight: bold;
  font-size: 1.2rem;
*/
}



@media only screen and (max-width: 77rem) {
  div.meldung {
    grid-template-columns: auto;
  }
}

div.meldungthumbs a {
  float:left;
  margin-right:0.3rem;
  margin-bottom:0.3rem;
  border-radius: 0.5rem;
}
div.navigation {
  clear:both;
  text-align:center;
  padding-top:20px;
}
div.navigation a {
  border-radius: 0.8rem;
  padding: 0.8rem 2rem;
  font-size: 1.1rem;
  text-decoration: none;
  cursor: pointer;
}

div.bild { 
  width:100%;
  text-align:center;
}
div.bild img.bild {
  max-width:100%;
  max-height:100vh;
  height:auto;
  width:auto;
}
img.thumb {
  width:10rem;
  height:10rem;
  object-fit:contain;
}
#backdrop_lightbox img.bild {
  width:100%;
  max-width:100%;
  max-height:100vh;
  display:flex;
  object-fit:contain;
}

img {
  border:none;
}
img.rss, img.ics {
  position:absolute;
  right:1rem;
  top:1rem;
}

td {
  padding-left:4px;
  padding-right:4px;
}

#backdrop, #backdrop_lightbox {
  position: fixed;
  display: none;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
}

#logo {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

/* Navigation */
header input[type=checkbox]{
  display: none;
}
#burger {
  display: none;
}
nav ul {
  display: flex;
  justify-content: space-evenly;
  list-style-type: none;
  margin-block-end: 0;
}
nav li {
  padding: 1rem 0rem;
  white-space: nowrap;
  border-bottom: 5px solid transparent;
}
nav li.active, nav li:hover {
  border-bottom: 5px solid #ff7d00;
}
nav li a {
  font-size: 1.1rem;
  text-decoration: none;
  font-family: "Lexend Deca", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: 400;
}
nav li:first-child {
  display: none;
}
@media only screen and (max-width: 65rem) {
nav {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  overflow: hidden;
  transition: width 0.3s ease;
  box-shadow: 1rem 0 2rem black;
  z-index: 1002;
}
nav ul {
  display: block;
  padding: 0;
  margin: 0;
}
nav li, nav li.active, nav li:hover {
  padding: 1rem 2rem;
  border-bottom: 2px solid black;
}
nav li:first-child {
  display: block;
  text-align: right;
}
nav li a:before {
  content: "›› ";
}

header input[type=checkbox]{
  display: none;
}
header input[type="checkbox"]:checked ~ nav {
  width: auto;
  max-width: 100%;
}
header input[type="checkbox"]:checked ~ #backdrop {
  display: block;
}

#burger {
  display: block;
  position: absolute;
  top: 1rem;
  left: 1rem;
  border: 1px solid #ff6600;
  border-radius: 0.5rem;
  padding: 0.4rem 0.5rem;
  width: 1.2rem;
  height: 1rem;
  box-sizing: content-box;
  line-height: 0;
}
}

div#introvideo video {
  width: 100%;
}
