html,
body {
  margin: 0;
  padding: 0;
  font-family: Roboto, sans-serif;
  font-size: 18px;
  background-color: #faf3e5;
}

:root {
  --nav-background: rgb(215, 212, 237);
  --nav-background-hover: rgb(226, 224, 242);
  --head-background: #f5e0b5;
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
h4 {
  margin-bottom: 0px;
}
header {
  background-color: var(--head-background);
  text-align: center;
}
header img {
  height: 9rem;
  border-radius: 0.5em;
  box-shadow: 3px 3px 10px #cdae7a;
  margin: 1rem;
}
header h1 {
  margin: 0 0 0.3em 0;
}
nav {
  position: absolute;
  top: 0;
  left: 0;
  padding: 0 1em;
  margin-top: 0.3em;
  font-size: 1.3rem;
}

nav ul {
  background: var(--nav-background);
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  position: absolute;
  list-style: none;
  border-radius: 0.5em;
  box-shadow: 0 4px 12px rgba(175, 170, 205, 0.5);
}

nav a {
  padding: 0.5em;
  display: block;
  text-decoration: none;
  color: black;
  white-space: nowrap;
}
nav a:hover {
  background-color: var(--nav-background-hover);
}
nav ul li:not(:last-child) a {
  border-bottom: 1px solid rgb(74, 172, 194);
}
#nav {
  display: none;
}
#nav + label {
  padding: 0 0.3em;
  cursor: pointer;
  background: var(--nav-background);
  display: block;
  width: fit-content;
  line-height: 2em;
  border-radius: 0.5em;
  box-shadow: 0 4px 12px rgba(175, 170, 205, 0.5);
}
#nav:checked ~ ul {
  max-height: 250px;
}

.burger {
  display: inline-block;
  vertical-align: sub;
  cursor: pointer;
}

.bar1,
.bar2,
.bar3 {
  width: 30px;
  height: 4px;
  background-color: #333;
  margin: 5px 0;
  transition: 0.4s;
}

#nav:checked + label .burger .bar1 {
  transform: translate(0, 9px) rotate(-45deg);
}

#nav:checked + label .burger .bar2 {
  opacity: 0;
}

#nav:checked + label .burger .bar3 {
  transform: translate(0, -9px) rotate(45deg);
}
#sprog-select {
  position: absolute;
  top: 0;
  right: 0;
  margin: 0 1.3em;
  margin-top: 0.3em;
  font-size: 1rem;
  line-height: 1.6em;
  cursor: pointer;
  background: var(--nav-background);
  display: block;
  width: fit-content;
  box-shadow: 0 4px 12px rgba(175, 170, 205, 0.5);
  border: none;
}
#sprog-select:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(175, 170, 205, 0.5);
}
#sprog-options {
  background: var(--nav-background);
  padding: 0 0.4em;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  position: absolute;
  list-style: none;
  right: 0;
  box-shadow: 0 4px 12px rgba(175, 170, 205, 0.5);
}
.sprog-option {
  display: flex;
  gap: 0.5em;
  align-items: center;
  white-space: nowrap;
}
#sprog-options.shown {
  max-height: 300px;
}
#sprog-button {
  width: 3em;
  height: 2em;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: transparent;
  border: 0;
}

.flyerBtn {
  border: 0;
  height: 2em;
  margin: 0 auto;
  display: block;
  background-color: var(--nav-background);
}
#flyer_aktuell_inhalt,
#flyer_alt_inhalt {
  display: flex;
  flex-wrap: wrap;

  justify-content: center;
  gap: 1em;
  padding: 0.5em;
}
.flyer {
  min-width: 12em;
  text-align: center;
  background-color: var(--head-background);
  border-radius: 0.4em;
  padding: 0.6em 0.5em 0.5em;
}
.flyer img {
  width: 10em;
  margin: 0;
  float: none;
}
.flyer table {
  width: 100%;
}
.hidden {
  display: none;
}
#sprog-select img {
  width: 1.5em;
  height: 1em;
  object-fit: cover;
  display: block;
}
main {
  padding: 0 1em;
  max-width: 960px;
  margin: 0 auto;
  flex: 1;
}
main h2 {
  text-align: center;
  margin-bottom: 0.3em;
}
main img {
  float: right;
  margin-left: 0.3em;
}
main ul {
  margin: 6px;
}
footer {
  background-color: #f5e0b5;
  text-align: center;
  padding: 1em;
}
footer a {
  color: blue;
}
footer img {
  height: 1.2em;
  margin: 0;
  padding-left: 0.5em;
}
.bildergalerie {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
}

.bildergalerie img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .desktop {
    display: none;
  }
  #nav + label {
    background-color: transparent;
  }
  #sprog-select {
    font-size: 1.3rem;
  }
}
