*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg-color: white;
  --font-color: black;
  --secondary-font-color: white;
  --lightbox-color: rgba(0, 0, 0, .95);
  --lightbox-side-padding: 5%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Fira Sans", Helvetica, sans-serif;
  font-weight: 300;
  background-color: var(--bg-color);
  color: var(--font-color);
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  text-decoration: none;
  color: var(--font-color);
  display: inline-block;

  &:hover {
    text-decoration-line: underline;
    text-decoration-thickness: 1px;
  }
}

button {
  background-color: transparent;
  color: var(--font-color);
  border: none;
  cursor: pointer;
  font: inherit;

  &:hover {
    text-decoration-line: underline;
    text-decoration-thickness: 1px;
  }
}

h1 {
  font-weight: 400;
  color: var(--font-color);
  font-size: 2rem;
}

h2 {
  font-weight: 400;
  color: var(--font-color);
  font-size: 1.8rem;
}

h3 {
  font-weight: 500;
  color: var(--font-color);
  font-size: 1.3rem;
}

.page-header {
  margin: 0 auto;
  background-color: var(--bg-color);
}

img {
  max-width: 100%;
}

/* #######---------Menü und Filter---------######## */

.page-menu,
.footer-menu {
  /* outline: 2px solid green; */
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
}

.page-menu {
  padding: 12px 3% 12px 3%;

  &.changed {
    align-items: center;
  }

}

.page-menu.changed .menu-points {
  display: flex;
}


.footer-menu {
  padding: 12px 3% 64px 3%;
}

#toggle-menu {
  display: none;
  border: none;
  background: none;
  /* outline: 1px solid red; */
  text-indent: -9999px;
  overflow: clip;
  width: 44px;
  aspect-ratio: 1;
  position: relative;

  &::before,
  &::after {
    content: "";
    position: absolute;
    left: 50%;
    translate: -50% -50%;
    display: block;
    width: 60%;
    height: 2px;
    background-color: var(--font-color);
    transition: top .3s, rotate .3s;
  }

  &::before {
    top: 35%;
  }

  &::after {
    top: 65%;
  }

  &.open {

    &::before {
      top: 50%;
      rotate: -45deg;
    }

    &::after {
      top: 50%;
      rotate: 45deg;
    }
  }

}

.menu-points,
.footer-menu ul {
  display: flex;
  flex-wrap: wrap;
  /* outline: 2px solid red; */
  justify-content: space-around;
  gap: 2em;
}

.filter-btn:hover,
.menu-link:hover {
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
}

.hero-img {
  display: block;
  /* max-height: 83vh; */
  object-fit: cover;
  margin: 0px auto;
  max-width: 100%;
}

.hero-img-box {
  max-width: 100%;
  max-height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  /* margin: 0 10%; */
}

/* #######---------Archiv---------######## */



.archiv-section {
  position: relative;
  justify-content: center;
  flex-direction: column;
  align-items: center;

  & h2 {
    font-weight: 400;
    color: var(--font-color);
    font-size: 1.3rem;
  }
}

.archiv-header {
  position: sticky;
  display: flex;
  margin-inline: auto;
  margin-top: 128px;
  justify-content: space-between;
  padding: 12px 3%;
  align-items: center;
  top: 0;
  background-color: var(--bg-color);
  z-index: 10;
  width: 100%;

  &.changed {
    align-items: center;
  }
}

.archiv-header.changed .menu-points {
  display: flex;
}

#toggle-archiv-header {
  display: none;
  border: none;
  background: none;
  /* outline: 1px solid red; */
  text-indent: -9999px;
  overflow: clip;
  width: 44px;
  aspect-ratio: 1;
  position: relative;

  &::before,
  &::after {
    content: "";
    position: absolute;
    left: 50%;
    translate: -50% -50%;
    display: block;
    width: 60%;
    height: 2px;
    background-color: var(--font-color);
    transition: top .3s, rotate .3s;
  }

  &::before {
    top: 35%;
  }

  &::after {
    top: 65%;
  }

  &.open {

    &::before {
      top: 50%;
      rotate: -45deg;
    }

    &::after {
      top: 50%;
      rotate: 45deg;
    }
  }
}

.gallery {
  display: grid;
  margin-inline: 5%;
  margin-top: 64px;
  margin-bottom: 128px;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 2500px;

  .gallery-item {
    object-fit: fill;
    max-width: 100%;
    aspect-ratio: 1.1/1;
    overflow: hidden;

    :hover {
      cursor: pointer;
    }
  }

  & img {
    object-fit: cover;
    height: 100%;
    width: 100%;
  }
}

/* #######---------Back-to-Top---------######## */

#to-top {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  right: 30px;
  bottom: 50px;
  background-color: var(--bg-color);
  /* outline: 2px solid green; */
  width: 42px;
  height: 42px;
  z-index: 15;
  transition: bottom 200ms, transform 200ms;
  transform: scale(0);

  &.show {
    transform: scale(1);
  }

  &:hover {
    bottom: 55px;
  }

  & svg {
    width: 80%;
    fill: var(--font-color);
  }
}

/* #######---------Lightbox---------######## */

#lightbox {
  position: fixed;
  z-index: 1000;
  top: 0;
  height: 100%;
  width: 100%;
  background-color: var(--lightbox-color);
  display: none;
  padding: 5% var(--lightbox-side-padding);
  box-sizing: border-box;
  /* Padding wird in die Breite/Höhe einbezogen */
  /* overflow-y: auto; */
}

/* #lightbox.visible {
  display: flex;
  justify-content: left;
  align-items: end;
  gap: 2rem;
  flex-wrap: wrap;
} */

#lightbox.visible {
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  display: flex;
  gap: 2rem;
}

.lightbox-content.side-by-side {
  flex-direction: row;
  align-items: flex-end;
  flex-wrap: wrap;
}

.lightbox-content.stacked {
  flex-direction: column;
  align-items: flex-start;
}

.lightbox-img {
  max-width: 100%;
  max-height: 76vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.lightbox-info {
  /* background-color: red; */
  min-width: 0;
  color: var(--secondary-font-color);
  max-width: 90%;
  max-height: 76vh;
  overflow-y: auto;
  overflow-wrap: break-word;
}

.lightbox-title {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--secondary-font-color);
}

.lightbox-meta {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

.lightbox-description {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Klick-Zonen links/rechts fuer Bildnavigation */
.lightbox-nav {
  position: fixed;
  top: 0;
  height: 100%;
  width: var(--lightbox-side-padding);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1010;

}

.lightbox-nav-prev {
  left: 0;
}

.lightbox-nav-next {
  right: 0;
}

.lightbox-nav img {
  width: 42px;
  height: 42px;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.lightbox-nav:hover img {
  opacity: 1;
}

/* #######---------Biografie---------######## */

.hero {
  display: flex;
  /* flex-wrap: wrap; */
  gap: 2em;
  justify-content: center;
  align-items: end;
  /* margin: 0 64px; */
}

.bio-text {
  display: block;
  width: fit-content;
  padding: 12px 32px 12px 3%;
  display: none;
  flex-direction: column;
  position: absolute;
  background-color: var(--bg-color);
  left: 0;
  top: 75%;

  z-index: 100;

  & a {
    &:hover {
      text-decoration-line: underline;
      text-decoration-thickness: 1px;
    }
  }

  & p {
    margin: 8px;
  }
}

/* #######---------News---------######## */

.news-text {
  width: fit-content;
  max-width: 500px;
  padding: 12px 32px 12px 3%;
  flex-direction: column;
  position: absolute;
  background-color: var(--bg-color);
  right: 0;
  bottom: 10%;

  z-index: 100;

  & a {
    text-decoration: underline;
    /* text-decoration-thickness: 1px; */

    &:hover {
      text-decoration-line: underline;
      text-decoration-thickness: 1px;
    }
  }

  & p,
  h3 {
    margin-inline: 0px;
    margin-block: 16px;
  }

  &.hidden {
    display: none;
  }
}

/* #######---------Unterseiten---------######## */

.text-page-container {
  max-width: 960px;
  margin: 64px 10%;
  height: fit-content;
}

.datenschutz-list {
  margin: 0;
  padding-left: 1.5rem;

  & li::marker {
    content: "– "
  }

}




/* #######---------variable Klassen---------######## */

.hidden {
  display: none;
}

.active {
  font-weight: 600;
}

.visible {
  display: flex;
}