:root {
  font-family: Geist, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 400;

  background-color: #eaeaea;
  background-image: radial-gradient(#ccc 0.09rem, transparent 0);
  background-size: 1.5rem 1.5rem;
  background-position: 0px 0px;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.gallery .swiper-slide img {
  opacity: 0;
}

nav h1, nav .links a, nav .logo-wrap {
  overflow: hidden;
}

nav h1 span, nav .links a span {
  display: inline-block;
  transform: translateY(100%);
}

@media only screen and (max-width: 600px) {
:root{font-size: 0.87rem;}

nav {
  display: flex;
  flex-direction: column;
  justify-content: left;
  align-items: flex-start;
}

.logo-wrap {
  flex-direction: column;
  gap: 0.5rem;
}

.links {
  display: flex;
  justify-content: left !important;
  align-items: flex-start !important;
  margin-top: 1rem;
}

main {
  display: flex;
  align-items: center;
  justify-content: center;
}

.swiper.gallery {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.gallery .swiper-wrapper {
  align-items: center;
}

.gallery .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery img {
  width: 100%;
  height: auto !important;
  display: block;
  object-fit: contain;
  aspect-ratio: 3 / 2;
  border-radius: 0.25rem;
}

body {
  grid-template-rows: auto 1fr auto auto;
  grid-template-columns: 1fr 1fr;
}

nav {
  grid-column: 1 / -1;
}

main {
  grid-row: 2;
  grid-column: 1 / -1;
}

footer {
  display: contents;
}

.thumbs {
  grid-row: 3;
  grid-column: 1 / -1;
  width: 100% !important;
  height: auto;
  margin: 0 1.5rem;
}

.copy {
  grid-row: 4;
  grid-column: 1;
  padding: 0 1.5rem;
  padding-top: 1rem;
  display: flex;
  justify-content: start;
  align-items: center;
}

.foot-link {
  grid-row: 4;
  grid-column: 2;
  padding: 0 1.5rem;
  padding-top: 1rem;
  display: flex;
  justify-content: end;
  align-items: center;
}

}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  box-sizing: border-box;
}

@media only screen and (min-width: 601px) {
  body {
    grid-template-rows: auto 1fr auto;
  }

  footer {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "copy thumbs impressum";
    align-items: center;
    gap: 2rem;
  }

  .copy {
    grid-area: copy;
    display: flex;
    justify-content: start;
  }

  .foot-link {
    grid-area: impressum;
    display: flex;
    justify-content: end;
  }

  .thumbs {
    grid-area: thumbs;
  }
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  margin: 0;
}

@media only screen and (min-width: 601px) {
  footer {
    padding: 1.5rem;
    margin: 0;
  }
}

main {
  width: 100%;
  overflow: auto; 
}

a {
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.01rem;
  color: #113700;
  background:
    conic-gradient(from 270deg, #B6F500 0 var(--p,0))
    0 0 / var(--p,0) 100% no-repeat;
  transition: background-size .25s;
}
a:hover { --p: 100%; }

.invert {
  text-transform: none;
  text-decoration: underline;
  color: #B6F500; 
  background:
    conic-gradient(from 270deg, #B6F500 0 var(--p,0))
    0 0 / var(--p,0) 100% no-repeat;
  transition: background-size .25s linear, color .25s linear;
}

.invert:hover {
  --p: 100%;
  color: #113700; 
  text-decoration: none;
}


h1 { font-size: 1rem; font-weight: normal; }

.logo-wrap { width: 100%; display: flex; gap: 1rem; }
.logo { width: 8rem; }

.links {
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 2rem;
  justify-content:right;
  align-items: center;
}

.swiper { width: 100%; height: 100%; }
.swiper-slide { width: 100%; height: 100%; }

.gallery {
  width: 100%;
  height: 100%;
}

.thumbs {
  width: 25%;
  height: auto;
  min-height: 60px;
  justify-self: center;
}

.gallery img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 3 / 2;
  border-radius: 0.25rem;
}

.thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.25rem;
}

.thumbs .swiper-slide {
  opacity: 0.5;
  position: relative;
  aspect-ratio: 3 / 2;
}

.thumbs .swiper-slide img {
  display: block;
}

.thumbs .swiper-slide-thumb-active {
  opacity: 1;
  position: relative;
}

.thumbs .swiper-slide-thumb-active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(182, 245, 0, 0.6);
  border-radius: 0.25rem;
  pointer-events: none;
  z-index: 1;
}

.gallery {
  position: relative;
}

/* Default/Mobile: Fixed visible buttons */
.gallery-prev,
.gallery-next {
  position: absolute;
  z-index: 10;
  background: rgba(182, 245, 0, 0.9);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%);
  top: 50%;
  cursor: pointer;
}

.gallery-prev {
  left: 0.5rem;
}

.gallery-next {
  right: 0.5rem;
}

.gallery-prev svg,
.gallery-next svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: #113700;
}

/* Desktop: cursor-following buttons (only for non-touch devices with large screens) */
@media only screen and (min-width: 601px) and (pointer: fine) {
  .gallery {
    cursor: none;
  }

  .gallery-prev,
  .gallery-next {
    width: 6rem;
    height: 6rem;
    cursor: none;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0);
    top: auto;
    left: auto;
    right: auto;
  }

  .gallery-prev svg,
  .gallery-next svg {
    width: 3rem;
    height: 3rem;
  }

  .gallery.show-prev .gallery-prev {
    opacity: 1;
    pointer-events: auto;
  }

  .gallery.show-next .gallery-next {
    opacity: 1;
    pointer-events: auto;
  }
}

.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #B6F500;
  z-index: 9999;
  transform-origin: left;
  transform: scaleX(0);
  pointer-events: none;
}


