:root {
  --logo-color: #000;
  --card-background: #7ca82c;
  --card2-background: #472f2f;
  --text-color: #333;
  --box-text-color: #555;
  --link-color: var(--text-color);
  --background-image: url(/images/background2.jpg);
  --button-color: var(--text-color);
  --button-background: #AcC85c;
  --input-border: #472f2f;
  --nav-margin: 25px;
  --box-margin: 10px;
  --box-side-margin: 5px;
  --box-padding: 10px;
  --box-background: var(--card-background);
  --box-lead-background: rgba(199, 210, 178, 0.9);
  --box-max-width: 60rem;
  --box-h1-size: 1.2rem;
  --image-height: 200px;
  --p-margin-block: 16px;
  /* für kontakt: */
  --image-width: 300px;
}
nav {
  --shadow-color: #FFF;
}
/* common */
html,
body {
  height: 100%;
  margin: 0;
}
body {
  color: var(--text-color);
  background-image: var(--background-image);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  font-family: Verdana, sans-serif;
  font-size: 16px;
}
a,
a:visited {
  color: var(--link-color);
  text-decoration: none;
  text-align: center;
}
p {
  margin-block: var(--p-margin-block);
}
h1 {
  font-size: 2rem;
  text-align: center;
  font-weight: 400;
}
h2 {
  font-size: 20px;
  text-align: center;
  font-weight: 400;
}
img {
  display: block;
  max-width: 100%;
}
.home {
  display: block;
  max-width: 60%;
  justify-content: center;
}
#logo {
  justify-content: end;
  display: flex;
  margin: var(--nav-margin);
}
/* navigation */
nav a,
nav a:visited {
  color: var(--text-color);
  text-decoration: none;
  text-transform: uppercase;
  /* X, Y, Größe, Farbe */
  text-shadow: 0px 0px 5px var(--shadow-color), 0px 0px 2px var(--shadow-color), 0px 0px 1px var(--shadow-color);
  font-size: 1.2rem;
}
nav ul {
  margin: var(--nav-margin);
  padding: 0;
  list-style: none;
  text-align: right;
}
nav li {
  margin-bottom: calc(var(--nav-margin) / 3);
}
nav li:last-of-type {
  margin-bottom: 0;
}
nav li.active {
  font-weight: bold;
}
@media only screen and (min-width: 40rem) {
  #logo {
    justify-content: center;
  }
  nav ul {
    display: flex;
    justify-content: center;
    gap: var(--nav-margin);
  }
  .box {
    margin: var(--box-margin) auto;
  }
}
/* content */
a.more {
  display: block;
  text-align: right;
  font-size: 1.5rem;
  text-decoration: none;
}
.box {
  background: var(--box-background);
  margin: var(--box-margin) var(--box-side-margin);
  padding: var(--box-padding);
  max-width: 60rem;
}
.box *:first-child {
  margin-top: 0;
}
.box > p {
  color: var(--box-text-color);
  display: grid;
  gap: 10px;
  align-items: center;
}
.box > h1 {
  font-size: var(--box-h1-size);
}
.box-left-image {
  gap: 10px;
  max-width: 60rem;
  display: grid;
  grid-template-columns: 1fr;
}
.box-kontakt .left {
  max-width: clamp(10rem, 20rem, 10rem);
  display: flex;
}
.box-lead {
  background: var(--box-lead-background);
}
img.centered {
  max-width: 100%;
  margin-inline: auto;
}
div.multi-columns {
  display: grid;
  margin: var(--box-margin) auto;
  grid-template-columns: 1fr;
  max-width: calc(var(--box-max-width) + 2*var(--box-margin));
  gap: var(--box-margin);
}
div.multi-columns .box {
  margin: 0px;
}
div.multi-columns .box img {
  height: var(--image-height);
  width: 100%;
  object-fit: cover;
}
div.multi-columns .box .date {
  margin-top: var(--p-margin-block);
  margin-right: 0.5rem;
  float: left;
}
.box-category {
  display: grid;
  grid-template-rows: var(--image-height) 2rem 1fr 2rem;
  gap: var(--box-margin);
}
.box-category h1 {
  margin-block: 0;
}
form {
  margin-inline: auto;
  max-width: 30rem;
}
form input,
form textarea,
form button {
  width: 100%;
  display: block;
  margin: 0.5rem;
  border: 1px solid var(--input-border);
}
form button {
  cursor: pointer;
  color: var(--button-color);
  background-color: var(--button-background);
  font-size: 0.9rem;
  padding: 0.3rem;
}
@media only screen and (min-width: 30rem) {
  div.multi-columns {
    grid-template-columns: 1fr 1fr;
  }
}
/* Ausnahmeregelungen für "große" Bildschirme */
@media only screen and (min-width: 40rem) {
  .box {
    margin: var(--box-margin) auto;
  }
  .box-left-image {
    grid-template-columns: var(--image-width) 1fr;
  }
  div.multi-columns {
    grid-template-columns: 1fr 1fr 1fr;
  }
  img.centered {
    max-width: 60%;
  }
}
/* gallery - modal */
#modal {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.7);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
#modal a.next,
#modal a.prev,
#modal a.download,
#modal a.close {
  display: block;
  position: absolute;
  top: 0;
  padding: 10px;
  background-color: transparent;
  cursor: pointer;
  font-family: sans-serif;
  font-size: 50px;
  transition: color 250ms, font-size 250ms;
}
#modal a.next:hover,
#modal a.prev:hover,
#modal a.download:hover,
#modal a.close:hover {
  font-size: 100px;
  color: #000;
  text-shadow: 0 0 1px #333, 0 0 3px #FFF;
}
#modal a.download span,
#modal a.close span {
  font-size: 40%;
}
#modal a.next,
#modal a.prev {
  width: 50%;
  height: 100vh;
  line-height: 100vh;
}
#modal a.prev {
  text-align: left;
}
#modal a.next {
  right: 0;
  text-align: right;
}
#modal a.close {
  right: 0;
}
/* pre-loader tags, not to be displayed */
#modal img.next,
#modal img.first,
#modal img.prev {
  display: none;
}
#modal img {
  border: 3px solid red;
  max-height: 200px;
}
