:root {
  --color-main: #212121;
  --color-text: #757575;
  --color-text-light: #C1B8B8;
  --color-accent: #3FDA86;
  --color-main-fluid: rgba(33, 33, 33, 0.6);
  --color-text-fluid: rgba(117, 117, 117, 0.7);
  --color-accent-fluid: rgba(63, 218, 134, 0.6);
  --color-main-ultrafluid: rgba(33, 33, 33, 0.3);
  --color-text-ultrafluid: rgba(117, 117, 117, 0.3);
  --color-accent-ultrafluid: rgba(63, 218, 134, 0.3);
}



html {
  width: 100%;
  height: 100%;
  margin: 0;
  background-color: var(--color-main);
  scrollbar-width: thin;
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
  overflow-y: scroll;
  overflow-x: hidden;
}



body {
  display: flex;
  min-height: 100vh;
  margin: 0;
  font-family: 'ElmsSans', 'Righteous';
  color: var(--color-text);
  box-sizing: border-box;
  flex-direction: column;
  scroll-behavior: smooth;
  scrollbar-color: var(--color-accent-ultrafluid) var(--color-main);
}
@media (hover: none) {
  body {
    scrollbar-color: var(--color-main) var(--color-accent-ultrafluid);
  }
}

body.modal-open #topbar {
  pointer-events: none;
}



.main-wrapper {
  min-height: auto;
}



.content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin: 0 auto;
}



a, button, img {
  -webkit-tap-highlight-color: transparent;
}



/* Zoom Effekt */
@keyframes ZoomZoom {
  0% {
    opacity: 0;
  }
  15% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
.zoom-in {
  animation: ZoomZoom 2.5s ease forwards;
}
.zoom-in img:not(.lang-flag-startpage, .portrait-zoom) {
    cursor: zoom-in;
}



.fade-in {
  filter: blur(2px);
  opacity: 0;
  will-change: filter, opacity;
  transition: filter 0.8s ease, opacity 0.8s ease;
}
.fade-in.visible {
  filter: blur(0);
  opacity: 1;
  transition: filter 0.8s ease, opacity 0.8s ease;
}
.fade-out {
  filter: blur(0);
  opacity: 1;
  will-change: filter, opacity;
  transition: filter 0.8s ease, opacity 0.8s ease;
}
.fade-out.start {
  filter: blur(2px);
  opacity: 0;
}
.preload-hidden {
  visibility: hidden;
}



/* Topbar */
.topbar {
  width: 100%;
  max-width: 100vw;
  display: flex;
  position: relative;
  margin: 4vh 0 !important;
  justify-content: center;
  align-self: center;
  align-items: center;
  box-sizing: border-box;
  background: var(--color-text-fluid);
  box-shadow: 0 0.5rem 1rem 0.1rem var(--color-accent-fluid);
  min-height: 2rem;
  height: 3.5vh !important;
  overflow: visible;
  z-index: 1000;
}
@media (max-width: 1199px) {
  .topbar {
    box-shadow: 0 0.4rem 0.75rem 0.1rem var(--color-accent-fluid);
    min-height: 1rem;
    height: 3vh !important;
  }
}
@media (orientation: landscape) and (max-height: 600px) {
  .topbar {
    box-shadow: 0 0.1rem 0.25rem 0.1rem var(--color-accent-fluid) !important;
  }
}

.burger-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.burger-icon img.icon {
  display: block;
  min-height: 2rem;
  height: 80%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 1rem var(--color-main));
  transition: transform 0.6s ease;
}

.emblem-wrapper {
  position: absolute;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%);
  min-width: 2rem !important;
  min-height: 2rem !important;
  width: 8vh !important;
  height: 8vh !important;
  border-radius: 50%;
  background: linear-gradient(
    120deg,
    rgba(228, 220, 210, 0.6),
    rgba(212, 209, 209, 0.3),
    rgba(222, 219, 222, 0.6)
  );
  box-shadow: 0 1.2rem 1.2rem var(--color-main);
  z-index: 1001;
  display: flex;
  justify-content: center;
  align-items: center;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  outline: none;
  border: none;
  -webkit-tap-highlight-color: transparent !important;
}

.menu {
  display: flex;
  position: absolute;
  font-family: 'ElmsSans';
  top: 7.5vh;
  flex-direction: column;
  align-items: center;
  background: var(--color-main);
  border: 0.1rem solid var(--color-accent-fluid);
  padding: 0.5rem 4rem;
  min-width: 12rem;
  min-height: 10vh;
  max-height: 64vh;
  border-radius: 0.25rem;
  opacity: 0;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.8s ease, opacity 0.8s ease;
  list-style: none;
  overflow: auto;
  z-index: 999;
}
@media (max-width: 768px) {
  .menu {
    min-width: 8rem;
    max-width: 10rem;
  }
}

.menu.visible {
  opacity: 1;
  transform: scaleY(1);
}

.menu li {
  width: 100%;
}

.menu li a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  text-decoration: none;
  font-size: clamp(0.8rem, 10vw, 1rem);
  border-radius: 0.5rem;
  padding: 1rem 0;
  width: 100%;
  transition: background-color 0.4s ease;
}
@media (hover: none) {
  .menu li a {
    color: var(--color-accent-fluid);
  }
}

.menu li:last-child a {
  border-bottom: none;
}

.menu li a:hover {
  color: var(--color-accent);
  transition: background-color 0.8s ease;
}

.menu li a:active {
  color: var(--color-text-light);
  background-color: var(--color-accent-fluid);
  transition: background-color 0.3s ease;
}

.menu a.active {
  color: var(--color-text-ultrafluid);
  text-shadow: none;
  pointer-events: none;
}

.menu a:focus {
  outline: none;
}

.menu a:focus-visible {
  outline: 1px solid var(--color-text-ultrafluid);
}

.github-icon {
  width: 1rem;
  height: 1rem;
  vertical-align: middle;
  margin-right: 0.6rem;
}

.language-switch-icon {
  width: 0.9rem;
  height: 0.9rem;
  vertical-align: middle;
  margin-right: 0.1rem;
}

.language-switch {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0;
  font-size: 0.85rem;
  color: var(--color-text);
}

.lang-globe {
  line-height: 1;
}

.lang-option {
  cursor: pointer;
  color: var(--color-text-light);
  font-variant-caps: small-caps;
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-family: 'ElmsSans-Bold';
  transition: background-color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  line-height: 1;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.lang-option:hover,
.lang-option.focus {
  color: var(--color-accent);
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.lang-option:active {
  color: var(--color-accent-fluid);
}

.lang-option.active {
  color: var(--color-accent);
  font-family: 'ElmsSans-Bold';
  text-shadow: none;
  pointer-events: none;
}



/* Kontaktformular */
.contact-form {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 66%;
  margin: 5.5vh auto 1rem auto;
  padding: 0.1rem 2rem 1.25rem 2rem;
  background: var(--color-text-ultrafluid);
  outline: 0.5rem solid var(--color-text-fluid);
  outline-offset: 0.5rem;
  border-radius: 0.01rem;
  box-shadow: inset 0 0 0.75rem var(--color-main);
}
@media (max-width: 768px) {
  .contact-form {
    margin: 5vh auto 2rem auto;
    width: 84%;
    padding: 0 0.5rem 3rem 0.5rem;
  }
}

.contact-wrapper {
  width: 100%;
  min-height: 66vh;
}

.contact-form h2 {
  font-family: 'Righteous';
  font-size: 2rem;
  color: var(--color-text);
}

.contact-form label {
  display: block;
  font-family: 'ElmsSans-Bold';
  margin-bottom: 0.4rem;
  font-size: clamp(0.75rem, 5vw, 0.85rem);
  color: var(--color-accent-fluid);
}

.contact-form textarea {
  min-height: 20vh;
  max-height: 25vh;
}
@media (orientation: landscape) and (max-height: 800px) {
  .contact-form textarea {
    min-height: 11rem;
    max-height: 12rem;
  }
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  font-family: 'ElmsSans';
  font-size: clamp(0.9rem, 5vw, 0.95rem);
  padding: 0.4rem;
  margin-bottom: 1.25rem;
  background-color: rgba(255, 255, 255, 0.9);
  border: 0.1rem solid transparent;
  border-radius: 0.25rem;
  box-sizing: border-box;
  transition: 1s ease-out;
}

#betreff {
  font-family: 'ElmsSans-Bold';
}

.contact-form input:hover,
.contact-form select:hover,
.contact-form textarea:hover,
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  background-color: white;
  transition: 0.5s ease-out;
}

#counter {
  margin: -0.25rem 0 0.4rem 0;
  font-family: 'ElmsSans-Light';
  font-size: clamp(0.6rem, 5vw, 0.7rem);
}

@media (max-width: 768px) {
  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    font-size: clamp(0.75rem, 5vw, 0.85rem);
    padding: 0.25rem;
  }
}

.counter-normal {
  color: var(--color-text-light);
}

.counter-warning {
  color: rgba(185, 49, 49);
}

.counter-error {
  color: rgb(228, 21, 21);
}

.contact-form button {
  font-family: 'Righteous';
  font-size: clamp(0.9rem, 5vw, 0.95rem);
  color: var(--color-main);
  background-color: var(--color-accent-fluid);
  border: none;
  padding: 0.65rem 1.25rem;
  border-radius: 0.25rem;
  cursor: pointer;
}

.contact-form button:hover {
  background-color: var(--color-accent);
}

.contact-form button:active {
  transform: translateY(0.1rem);
}

.contact-form button.wait {
  background-color: rgba(237, 211, 12, 0.9);
  transition: background-color 0.3s ease;
}

.contact-form button.sent {
  background-color: rgba(105, 197, 66, 0.9);
  transition: background-color 0.3s ease;
}

.contact-form button.error {
  background-color: rgba(228, 21, 21, 0.9);
  transition: background-color 0.3s ease;
}

.contact-form button:disabled {
  pointer-events: none;
}

.contact-names {
    display: flex;
    gap: 2rem;
}

.contact-names div {
    flex: 1;
}



/* Portfolio */
@media (orientation: portrait) {
  .snap-container {
    position: relative;
    height: 75vh;
    height: 75svh;
    width: 100vw;
    margin: 0;
    border-radius: 0.25rem;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    touch-action: pan-y;
    overscroll-behavior-x: none;
    overscroll-behavior-y: contain;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    touch-action: manipulation;
    -webkit-overflow-scrolling: touch;
  }
}
@media (orientation: landscape) and (max-height: 600px) {
  .snap-container {
    height: auto;
    max-height: 66vh;
    max-height: 66svh;
    overscroll-behavior-y: contain;
  }
}

@media (orientation: landscape) {
  .portfolio-kacheln {
    display: grid;
    height: 100%;
    width: auto;
    max-width: 100%;
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
    gap: 6rem;
    margin: 0 6rem 5rem 6rem;
  }
}
@media (orientation: portrait) {
  .portfolio-kacheln {
    grid-template-columns: repeat(1, 1fr);
    height: 75vh;
    max-height: 75vh;
    overflow: visible;
    align-items: start;
    scroll-snap-type: y mandatory;
    margin: 0 auto;
    gap: 0;
    padding-top: 2rem;
    padding-bottom: 0;
  }
  .portfolio-kacheln > * {
    margin-bottom: 2rem;
  }
  .portfolio-kacheln > *:last-child {
    margin-bottom: 0;
  }
}
@media (orientation: landscape) and (max-height: 600px) {
  .portfolio-kacheln {
    margin: 0 2rem;
    gap: 4rem;
  }
}

@media (orientation: landscape) {
  .card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    background: var(--color-text-ultrafluid);
    outline: 0.25rem solid var(--color-text-fluid);
    outline-offset: 0.5rem;
    border-radius: 0.05rem;
    box-shadow: inset 0 0 0.75rem var(--color-main);
    padding: 1rem 1rem 0.5rem 1rem;
    text-align: center;
    overflow: auto;
  }
}
@media (orientation: portrait) {
  .card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 75vh;
    height: 75svh;
    max-height: 75vh;
    max-height: 75svh;
    box-sizing: border-box;
    background: var(--color-text-ultrafluid);
    outline: none;
    outline-offset: 0.5rem;
    border-radius: 0.05rem;
    border: 0.25rem solid var(--color-accent-ultrafluid);
    scroll-snap-align: start;
    scroll-snap-stop: always;
    padding: 1rem 1rem 0.5rem 1rem;
    text-align: center;
    overflow: auto;
    align-items: center;
    justify-content: start;
  }
}

@media (orientation: landscape) {
  .card img {
    width: 90%;
    height: auto;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.1rem;
    filter: drop-shadow(0 0.5rem 0.5rem var(--color-main));
  }
}
@media (orientation: portrait) {
  .card img {
    width: 90%;
    height: auto;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.1rem;
    filter: drop-shadow(0 0.5rem 0.5rem var(--color-main));
  }
}
@media (orientation: landscape) and (max-height: 600px) {
  .card img {
    width: 75%;
    height: auto;
  }
}
@media (hover: hover) {
  .card img {
    transition: transform 0.8s ease;
  }
  .card img:hover {
    transform: scale(1.02);
  }
}

.portfolio-gallery {
  display: none;
}

.portfolio-header {
  font-family: 'Righteous';
  font-size: clamp(2.25rem, 5vw, 2.5rem);
  color: var(--color-text-fluid);
  text-align: center;
  margin: 1rem 0 2rem 0;
}
@media (max-width: 380px) {
  .portfolio-header {
    margin: 1rem 0;
    font-size: clamp(1.75rem, 5vw, 2rem);
  }
}
@media (min-width: 381px) and (max-width: 767px) {
  .portfolio-header {
    margin: 1rem 0;
    font-size: clamp(2rem, 5vw, 2.25rem);
  }
}
@media (min-width: 768px) and (max-width: 1199px) {
  .portfolio-header {
    margin: 1rem 0;
  }
}
@media (orientation: landscape) and (max-height: 400px) {
  .portfolio-header {
    display: none;
  }
}
@media (orientation: landscape) and (max-height: 800px) {
  .portfolio-header {
    margin: 1rem 0;
    font-size: clamp(1.75rem, 5vw, 2rem);
  }
}

.portfolio-sw-banner {
  font-family: 'ElmsSans-Bold';
  display: inline-block;
  color: var(--color-text-light);
  font-size: clamp(1.1rem, 5vw, 1.2rem);
  width: fit-content;
  text-align: center;
  align-self: center;
  overflow-wrap: anywhere;
  background: var(--color-main-fluid);
  padding: 0.25rem 1.25rem;
  margin: 1.25rem 0;
  border-radius: 0.5rem;
  box-shadow:
    inset 0 0.15rem 0.25rem rgba(0, 0, 0, 0.6),
    inset 0 -0.15rem 0.25rem rgba(242, 242, 242, 0.2),
    0 0.25rem 0.5rem rgba(0, 0, 0, 0.4); 
}
@media (max-width: 767px) {
  .portfolio-sw-banner {
    font-size: clamp(1rem, 5vw, 1.1rem);
  }
}
@media (min-width: 768px) and (max-width: 1199px) and (orientation: portrait) {
  .portfolio-sw-banner {
    font-size: clamp(1.2rem, 5vw, 1.3rem);
  }
}
@media (orientation: landscape) and (max-height: 600px) {
  .portfolio-sw-banner {
    font-size: clamp(1rem, 5vw, 1.1rem);
  }
}

.portfolio-sw-banner:hover {
  background: var(--color-main);
}

.portfolio-stack {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  gap: 1rem;
  padding-bottom: 0.25rem;
  margin-top: 0.25rem;
  margin-bottom: 1rem;
}
@media (max-width: 767px) {
  .portfolio-stack {
    gap: 0.75rem;
  }
}

.portfolio-stack span {
  font-size: clamp(0.7rem, 5vw, 0.75rem);
  letter-spacing: -0.025rem;
  color: var(--color-main);
  background: var(--color-accent-fluid);
  border: 1px solid var(--color-main);
  padding: 0.25rem 0.75rem;
  border-radius: 0.5rem;
  backdrop-filter: blur(2px);
}

.portfolio-stack span:hover {
  background: var(--color-main);
  color: var(--color-accent-fluid);
  border: 1px solid var(--color-accent-fluid);
}
@media (min-width: 768px) and (max-width: 1199px) {
  .portfolio-stack span {
    font-size: clamp(0.7rem, 5vw, 0.8rem);
  }
}

.portfolio-sw-subline {
  margin-top: auto;
}

.trennstrich {
  border-top: 0.05rem solid var(--color-accent-ultrafluid);
  margin: auto;
  padding-top: 0.2rem;
  width: 66%;
}

.portfolio-svg {
  width: 1.5rem;
  height: 1.5rem;
  line-height: 1.5;
  background: var(--color-main);
  border: 1px solid var(--color-text-fluid);
  padding: 0.15rem 0.75rem;
  border-radius: 0.5rem;
  margin-top: 1rem;
  fill: var(--color-accent);
  vertical-align: middle;
  transition: background 0.2s ease, fill 0.2s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
@media (max-width: 380px), (orientation: landscape) and (max-height: 600px) {
  .portfolio-svg {
    width: 1.25rem;
    height: 1.25rem;
  }
}
@media (min-width: 768px) and (max-width: 1199px) {
  .portfolio-svg {
    width: 2rem;
    height: 2rem;
    line-height: 2;
  }
}

@media (hover: hover) {
  .portfolio-svg:hover {
    transform: scale(1.1);
    background: var(--color-text-ultrafluid);
    border: 1px solid var(--color-text);
  }
}

.portfolio-svg:active {
  background: var(--color-accent-fluid);
  fill: var(--color-text-light);
  transform: scale(0.9);
}



/* Swiper allgemein */
.swiper {
  position: relative;
  max-width: 75%;
  overflow: hidden;
}
@media(max-width: 768px) {
  .swiper {
    max-width: 80% !important;
  }
}



/* Swiper Startseite */
.swiper.HomeSwiper {
  display: flex;
  position: relative;
  width: 75vw;
  height: 70vh;
  min-height: 50vh;
  max-height: 70vh;
  margin: 0 auto;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-top: 5.5vh;
  background: var(--color-text-ultrafluid);
  outline: 0.5rem solid var(--color-text-fluid);
  outline-offset: 0.5rem;
  border-radius: 0.01rem;
  box-shadow: inset 0 0 0.75rem var(--color-main);
  overflow: hidden;
  overscroll-behavior: contain;
  touch-action: pan-y pinch-zoom;
}
@media (orientation: portrait) {
  .swiper.HomeSwiper {
    width: 78vw !important;
    margin-top: 5vh;
  }
}

.swiper-wrapper.HomeWrapper {
  position: relative;
  transition-property: transform;
  box-sizing: border-box;
}

.swiper-slide.HomeSlide {
  display: block;
  position: relative;
  flex-direction: column;
  flex-shrink: 0;
  height: 100%;
  width: 100%;
  justify-content: center;
  text-align: center;
  align-items: center;
  overflow: auto;
  scroll-behavior: smooth;
}

.swiper.HomeSwiper .swiper-pagination {
  display: flex;
  position: absolute;
  margin-top: auto;
  bottom: 0;
  padding-bottom: 0.5rem;
  left: 0;
  width: 100%;
  justify-content: center;
  z-index: 1000;
}

.swiper.HomeSwiper .swiper-pagination-bullet {
  width: 2rem !important;
  height: 1rem !important;
  margin: 0 0.5rem !important;
  background-color: var(--color-main) !important;
  border: 0.1rem solid var(--color-accent-fluid) !important;
  border-radius: 50% !important;
  transition: all 0.9s ease;
  -webkit-tap-highlight-color: transparent;
}

.swiper.HomeSwiper .swiper-pagination-bullet:hover {
  background-color: var(--color-accent-fluid) !important;
  transition: all 0.7s ease;
}



/* Swiper Infoseiten */
.swiper.MiscSwiper {
  display: flex;
  position: relative;
  width: 70vw !important;
  height: 100%;
  margin: 0 auto;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  margin-top: 5.5vh;
  margin-bottom: 4rem;
  background: var(--color-text-ultrafluid);
  outline: 0.5rem solid var(--color-text-fluid);
  outline-offset: 0.5rem;
  border-radius: 0.01rem;
  box-shadow: inset 0 0 0.75rem var(--color-main);
  overflow: hidden;
  overscroll-behavior: auto;
  touch-action: pan-y pinch-zoom;
}
@media (orientation: portrait) {
  .swiper.MiscSwiper {
    margin-top: 5vh;
    width: 78vw !important;
    height: 72vh !important;
    margin-bottom: 0;
    overscroll-behavior: contain;
  }
}

.swiper-wrapper.MiscWrapper {
  position: relative;
  transition-property: transform;
  box-sizing: border-box;
}

.swiper-slide.MiscSlide {
  position: relative;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  height: 100%;
  width: 100%;
  padding: 0.25rem 0;
  justify-content: flex-start !important;
  text-align: center;
  align-items: center;
  overflow: auto;
  scroll-behavior: smooth;
}



/* Home */
.hero-wrapper {
  margin: 0 auto;
  display: flex;
  max-width: 100%;
  min-height: 100%;
  height: auto;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
}
@media (orientation: portrait) {
  .hero-wrapper {
    flex-direction: column;
  }
}

.hero-content {
  flex: 0 1 35%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-image {
  flex: 0 1 35%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portrait-zoom {
  display: block;
  background: var(--color-main-ultrafluid);
  border-radius: 50%;
  margin-bottom: 3rem;
  padding: 0.5rem;
  width: auto;
  max-width: 60%;
  height: auto;
  max-height: 40%;
}
@media (orientation: portrait) {
  .portrait-zoom {
    max-width: 40%;
  }
}
@media (orientation: landscape) and (max-height: 600px) {
  .portrait-zoom {
    margin-bottom: 1rem;
  }
}

.home-header {
  margin: 0 auto;
  font-family: 'Righteous';
  max-width: 100%;
  color: var(--color-text-light);
  margin-top: 2.5rem;
  margin-bottom: 0.5rem;
  font-size: 2.5rem;
}
@media (max-width: 768px) {
  .home-header {
    font-size: 2rem;
  }
}
@media (orientation: landscape) and (max-height: 600px) {
  .home-header {
    font-size: 2rem;
  }
}

.home-header-sub {
  margin: 0 auto;
  color: var(--color-accent-fluid);
  font-size: clamp(1rem, 5vw, 1.15rem);
  line-height: 1.5;
  padding-bottom: 1rem;
}

.home-header-text {
  margin: 0 auto;
  color: var(--color-text-ultralight);
  font-size: clamp(0.85rem, 5vw, 1rem);
  line-height: 1.2;
  white-space: pre-line;
  padding: 0 0.25rem 1rem 0.25rem;
}
@media (min-width: 768px) and (max-width: 1199px) and (orientation: portrait) {
  .home-header-text {
    padding: 0 2rem 1rem 2rem;
  }
}
@media (max-width: 767px) {
  .home-header-text {
    padding: 0 1rem 1rem 1rem;
  }
}

.home-header-link {
  color: var(--color-accent-fluid);
  font-size: clamp(0.85rem, 5vw, 1rem);
  text-decoration: underline;
}
@media (hover: hover) {
  .home-header-link:hover {
    color: var(--color-text);
  }
}
.home-header-link:active {
  color: var(--color-accent);
}

.lang-option-startpage {
  display: inline-flex;
  cursor: pointer;
  font-size: 1rem;
  font-variant-caps: small-caps;
  padding: 0 0.5rem;
  color: var(--color-text-light);
  border-radius: 0.25rem;
  transition: background-color 0.3s ease;
  align-items: center;
  gap: 0.25rem;
  line-height: 1;
  margin-bottom: 2.5rem;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}
@media (orientation: portrait) {
  .lang-option-startpage {
    margin: 0 auto;
  }
}
@media (max-height: 800px) {
  .lang-option-startpage {
    font-size: 0.9rem;
  }
}

.lang-option-startpage:hover,
.lang-option-startpage.focus {
  color: var(--color-accent);
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.lang-option-startpage:active {
  color: var(--color-accent-ultrafluid);
}

.lang-option-startpage.active {
  color: var(--color-accent);
  pointer-events: none;
}

.lang-flag-startpage {
  height: 0.8rem;
  width: auto;
  object-fit: contain;
  vertical-align: middle;
  display: inline-block;
  padding-right: 0.25rem;
}

.zert_wrapper {
  flex-direction: row;
  margin: 2.5rem 0 1.5rem 0;
}
@media (max-width: 768px) {
  .zert_wrapper {
    flex-direction: column;
    margin: 1rem 0 1rem 0;
  }
}
@media (orientation: landscape) and (max-height: 600px) {
  .zert_wrapper {
    flex-direction: row !important;
    margin: 1rem 0 1rem 0 !important;
  }
}

@media (orientation: landscape) {
  .zert-container {
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: center;
      text-align: center;
      gap: 2rem;
  }
}
@media (orientation: portrait) {
  .zert-container {
    flex-direction: column;
    gap: 0;
  }
}

.zertifikat {
  height: auto;
  max-height: 22vh;
  object-fit: fill;
  border-width: 0.5rem;
  border-style: ridge;
  border-color: var(--color-text-ultrafluid);
  border-radius: 10%;
  margin-bottom: 1rem;
  transition-duration: 0.9s;
  align-items: center;
  overflow: auto;
}
@media (min-width: 768px) and (max-width: 1199px) {
  .zertifikat {
    width: auto;
    max-width: 40vw;
  }
}
@media (max-width: 767px) {
  .zertifikat {
    width: auto;
    max-width: 50vw;
  }
}

.zertifikat:hover {
  transform: scale(1.05);
  transition-duration: 0.8s;
}

.home-text {
  margin: 0 auto;
  color: var(--color-text-light);
  text-align: center;
  max-width: 50%;
}
@media (min-width: 769px) and (max-width: 1920px) {
  .home-text {
    max-width: 60%;
  }
}
@media (max-width: 768px) {
  .home-text {
    max-width: 80%;
  }
}

.home-text p {
  font-size: clamp(1rem, 5vw, 1.15rem);
  color: var(--color-text-light);
  line-height: 1.5;
  margin-bottom: 2rem;
}

.home_text_italic {
  font-family: 'ElmsSans-Italic';
  font-size: clamp(1rem, 5vw, 1.15rem);
}

.home-text p:last-child {
  margin-bottom: 3rem;
}
@media (max-width: 768px) {
  .home-text p {
    font-size: clamp(1.1rem, 5vw, 1.2rem);
  }
  .home_text_italic {
    font-size: clamp(1rem, 5vw, 1.15rem);
  }
}

.home-stack {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0;
  margin: 0 auto 3rem auto;
  max-width: 75%;
}
@media (max-width: 768px) {
  .home-stack {
    max-width: 80%;
    gap: 0.75em;
  }
}

.home-stack span {
  font-size: clamp(0.8rem, 5vw, 0.9rem);
  color: var(--color-main);
  background: var(--color-accent-fluid);
  border: 1px solid var(--color-main);
  padding: 0.25rem 0.75rem;
  border-radius: 0.5rem;
  backdrop-filter: blur(2px);
}

.home-stack span:hover {
  background: var(--color-main);
  color: var(--color-accent-fluid);
  border: 1px solid var(--color-accent-fluid);
}



/* Infoseiten */
.misc-header {
  font-family: 'Righteous';
  max-width: 90%;
  color: var(--color-text-light);
  text-align: center;
  margin-top: 2.25rem;
  margin-bottom: 0.5rem;
  overflow-wrap: anywhere;
  font-size: clamp(2rem, 5vw, 2.5rem);
}

.misc-sub1 {
  font-family: 'Righteous';
  font-size: clamp(1rem, 5vw, 1.15rem);
  color: var(--color-accent-fluid);
  text-align: center;
  margin-top: 1.5rem;
  margin-bottom: 0.25rem;
  line-height: 1.5;
}

.misc-sub2 {
  font-family: 'Righteous';
  font-size: clamp(1rem, 5vw, 1.15rem);
  color: var(--color-text);
  text-align: center;
}

.misc-sub3 {
  margin: 0 auto;
  color: var(--color-text-light);
  font-size: clamp(1rem, 5vw, 1.15rem);
  max-width: 80%;
  line-height: 1.5;
  padding-bottom: 1rem;
}



/* 404 Seite */
.notfound-body {
  font-family: 'Righteous';
  flex: 1;
  border-radius: 0.25rem;
  margin-top: 2rem;
  margin-bottom: 4rem;
  padding-right: 2rem;
  padding-left: 2rem;
  text-align: center;
  justify-content: center;
  width: 57.5%;
}
@media (max-width: 768px) {
  .notfound-body {
    margin-top: 1rem;
    width: 80%;
  }
}

.notfound-header {
  text-align: center;
  padding-bottom: 1rem;
  font-size: clamp(3rem, 5vw, 3.75rem);
  color: var(--color-accent);
}

.homeButton404 {
  background-color: var(--color-accent);
  border: 1px solid var(--color-text);
  color: var(--color-main);
  font-size: clamp(1rem, 5vw, 1.15rem);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.homeButton404:hover {
  background-color: var(--color-main);
  color: var(--color-accent);
  transition: background-color 0.3s ease;
}

.homeButton404:active {
  background-color: var(--color-text-light);
  color: var(--color-main);
  border: 1px solid var(--color-accent);
  transition: background-color 0.3s ease;
}



/* Modalfenster */
.modal-image-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  pointer-events: auto;
  touch-action: pinch-zoom;
  overflow: auto;
}

.modal {
  position: fixed;
  width: 100%;
  height: 100%;
  display: none;
  z-index: 99999;
  justify-content: center;
  align-items: center;
  animation: fadeIn 1.0s ease forwards;
  touch-action: manipulation;
  -webkit-overflow-scrolling: touch;
}

.modal-overlay::before {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--color-main);
}

.modal-overlay {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100vw;
  height: 100%;
}
@media (orientation: landscape) and (max-height: 600px) {
  .modal-overlay {
    justify-content: flex-start !important;
    align-items: center !important;
    height: 100dvh !important;
  }
}

.modal-content {
  max-width: 80%;
  max-height: 80%;
  width: auto;
  height: auto;
  background: var(--color-main);
  border-radius: 0.5rem;
  outline: none;
  box-sizing: border-box;
  user-select: none;
  touch-action: manipulation;
  animation: slideIn 1.0s ease forwards;
  overflow: auto;
  margin-bottom: 1rem;
}
@media (min-width: 769px) and (max-width: 1199px) {
  .modal-content {
    max-width: 86%;
    max-height: 86%;
  }
}
@media (max-width: 768px) {
  .modal-content {
    max-width: 90%;
    max-height: 90%;
  }
}

.modal-content:focus {
  outline: none;
}

.modal.hide {
  animation: fadeOut 1.2s ease forwards;
}

.modal-content.hide {
  animation: slideOut 1.2s ease forwards;
}

body.modal-open {
  overflow: hidden;
  pointer-events: auto;

}
body.modal-open .modal {
  pointer-events: auto;
  overflow: hidden;
}
@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideOut {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(-50px);
    opacity: 0;
  }
}
@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.modal-caption {
  min-height: 2.75rem;
  max-width: 90vw;
  text-align: center;
  font-size: clamp(0.95rem, 5vw, 1.05rem);
  color: var(--color-text-light);
  z-index: 10000;
}
@media (max-width: 768px) {
  .modal-caption {
    min-height: 5rem;
    font-size: 0.9rem;
    overflow-wrap: break-word;
    z-index: 10000;
  }
}
@media (orientation: landscape) and (max-height: 580px) {
  .modal-caption {
    display: none !important;
  }
}

.modal-close {
  font-family: 'Righteous';
  position: absolute;
  top: 0.5rem;
  right: 0.05rem;
  background: transparent;
  color: var(--color-accent-fluid);
  border: none;
  outline: none;
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  cursor: pointer;
  z-index: 10001;
  transition: color 0.2s ease;
}
@media (max-width: 768px) {
  .modal-close {
    font-size: clamp(1.25rem, 5vw, 2rem);
  }
}

.modal-close:hover {
  color: var(--color-accent);
}

.modal-close:active {
  color: var(--color-accent-ultrafluid);
}

.modal-close .icon {
  display: block;
  width: 2.75rem;
  height: 2.75rem;
}
@media (max-width: 768px) {
  .modal-close .icon {
    display: block;
    width: 2.5rem;
    height: 2.5rem;
  }
}

.arrow-row {
  position: static;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  color: var(--color-accent-fluid);
  border: none;
  outline: none;
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.5rem);
  padding: 0.75em 0.25em;
  cursor: pointer;
  z-index: 10001;
  transition: color 0.2s ease;
}

.arrow .icon {
  display: block;
  width: 3.5rem;
  height: 3.5rem;
}

.arrow-left {
  left: 0;
}

.arrow-right {
  right: 0; 
}
@media (orientation: portrait) {
  .arrow-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 0.5rem;
  }
  .arrow {
    position: static;
    background: transparent;
    transform: translateY(0);
    inset: 0;
  }
}

@media (orientation: landscape) and (max-height: 600px) {
  .arrow-row.arrow-row {
    position: static;
  }
  .arrow.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }
}

@media (hover: hover) {
  .arrow:hover {
    color: var(--color-accent);
    transition: color 0.2s ease;
  }
}

.arrow:active {
  color: var(--color-accent-ultrafluid);
  transition: color 0.2s ease;
}

.arrow.is-active {
  color: var(--color-accent);
  transition: color 0.2s ease;
}

.arrow.disabled {
  color: var(--color-text-ultrafluid);
  background: transparent;
  pointer-events: none;
}

.icon {
  width: clamp(1.5rem, 5vw, 2.5rem);
  height: clamp(1.5rem, 5vw, 2.5rem);
  display: block;
}

.icon:hover {
  transform: scale(1.05);
  transition-duration: 0.3s;
}

.icon:active {
  transform: scale(0.9);
  transition-duration: 0.25s;
}



/* Fonts */
@font-face {
    font-family: 'Righteous';
    src: url('../static/fonts/Righteous.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'ElmsSans';
    src: url('../static/fonts/ElmsSans-Medium.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'ElmsSans-Light';
    src: url('../static/fonts/ElmsSans-Light.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'ElmsSans-Italic';
    src: url('../static/fonts/ElmsSans-MediumItalic.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'ElmsSans-Bold';
    src: url('../static/fonts/ElmsSans-Bold.woff2') format('woff2');
    font-display: swap;
}
