/* Load Work Sans locally instead of from Google Fonts */
@font-face {
  font-family: 'Work Sans';
  src: url('/fonts/WorkSans-ExtraLight.woff2') format('woff2');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Work Sans';
  src: url('/fonts/WorkSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Work Sans';
  src: url('/fonts/WorkSans-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Work Sans';
  src: url('/fonts/WorkSans-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  line-height: 1.5;
  font-weight: 400;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

* {
  box-sizing: border-box;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

body {
  margin: 0;
  display: flex;
  place-items: center;
  min-height: 100dvh;
  font-family: 'Work Sans', Arial, sans-serif;
  flex-direction: column;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.content {
  display: flex;
  height: 100svh;
  width: 100%;
  flex-direction: column;
  min-height: 450px;
  position: relative;
  overflow: hidden;
}

.main-container {
  width: 100%;
  height: 100%;
  margin: auto;
  display: flex;
}

a {
  text-decoration: none;
}

.left {
  width: 50%;
  height: 100%;
  background-color: #9ac2e5;
  display: flex;
  flex-direction: column;
}

@keyframes left {
  0% {
    opacity: 0;
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  }
  to {
    opacity: 1;
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
  }
}

.right {
  width: 50%;
  height: 100%;
  background-color: #f7e5ac;
  display: flex;
  flex-direction: column;
}

@keyframes right {
  0% {
    opacity: 0;
    clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
  }
  to {
    opacity: 1;
    clip-path: polygon(100% 0, 50% 0, 50% 100%, 100% 100%);
  }
}

.buttons-display {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  margin-bottom: 2rem;
}

.buttons-mobile {
  display: none;
}

.button {
  width: 22rem;
  height: 8rem;
  border-radius: 10px;
  z-index: 100000;
  color: #333;
  text-align: center;
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  justify-content: center;
  animation-delay: 0s;
  transition: 0.3s;
  position: relative;
}

.button:hover {
  background-color: #fff;
}

@keyframes buttons-appear {
  0% {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.b-klassejob {
  background-color: #9ac2e5;
  border: 2px solid #333;
  animation: appear-left 0.5s ease-in;
}

.b-ep {
  background-color: #f7e5ac;
  border: 2px solid #333;
  animation: appear-right 0.5s ease-in forwards;
  animation-delay: 0.4s;
  right: -50rem;
  opacity: 0;
}

@media (min-width: 950px) {
  .button:after {
    position: absolute;
    content: "";
    width: 70px;
    height: 100px;
    top: -70px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
  }

  .button.b-klassejob:after {
    background-color: #9ac2e5;
    background-image: url(mehrinfos-left.webp);
    left: -75px;
  }

  .button.b-ep:after {
    background-color: #f7e5ac;
    background-image: url(mehrinfos-right.webp);
    right: -75px;
  }
}

@keyframes appear-left {
  0% {
    left: -44rem;
    opacity: 0;
  }
  to {
    left: 0rem;
    opacity: 1;
  }
}

@keyframes appear-right {
  0% {
    right: -50rem;
    opacity: 0;
  }
  to {
    right: 0rem;
    opacity: 1;
  }
}

.text {
  color: #000;
  font-size: 1.3rem;
  z-index: 100000;
}

.logo-container {
  height: 100%;
  width: 100%;
  justify-content: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: auto;
}

.logo-container-kl,
.logo-container-ep {
  width: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  opacity: 0;
}

.logo-container-kl {
  background-image: url(/assets/icons-left-a2724f5e.webp);
  animation: appear-left 0.7s ease-in forwards;
  animation-delay: 0.2s;
}

.logo-container-ep {
  background-image: url(/assets/icons-right-0bfd7793.webp);
  animation: appear-right 0.6s ease-in forwards;
  animation-delay: 0.6s;
}

.logos {
  max-width: 21rem;
  padding: 2.5rem;
  filter: drop-shadow(4px 6px 8px rgb(0 0 0 / 0.4));
  margin: auto;
  transition: 0.3s ease-in;
}

.logos:hover {
  transform: scale(1.1);
}

.kl-logo {
  animation: logo-appear 0.6s ease-in;
}

.ep-logo {
  opacity: 0;
  animation: logo-appear 0.6s ease-in forwards;
  animation-delay: 0.3s;
}

@keyframes logo-appear {
  0% {
    scale: 0.5;
    opacity: 0;
  }
  to {
    scale: 1;
    opacity: 1;
  }
}

.footer {
  width: 100%;
  background-color: #333;
  color: #fff;
  text-align: center;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.3rem;
}

.footer a {
  color: #fff;
}

.footer-left,
.footer-right {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.social-media {
  display: flex;
  justify-content: space-around;
  margin-left: 2rem;
}

.social {
  width: 26px;
  height: 26px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  display: block;
  margin: 0 0.5rem;
}

.social:hover {
  scale: 1.1;
  transition: 0.2s ease-in;
}

.facebook {
  background-image: url(/assets/face-b00da2bc.svg);
}

.instagram {
  background-image: url(/assets/inst-f7536040.svg);
}

.youtube {
  background-image: url(/assets/youtube-b323dcc4.svg);
}

.logo-ministerium {
  margin: 0.2rem 3rem 0.2rem 0.5rem;
  width: 13rem;
}

.telefon {
  white-space: nowrap;
}

/* Responsive Styles */
@media (max-width: 767.98px) {
  .buttons-display {
    display: none;
  }

  .buttons-mobile {
    display: flex;
    flex-direction: column;
    width: 100%;
    position: absolute;
    bottom: 16%;
    justify-content: space-around;
    padding: 0rem 0.5rem;
  }

  .button-mobile {
    width: 100%;
    height: 80px;
    margin: auto;
    border: 2px solid #333;
    border-radius: 10px;
    z-index: 100000;
    color: #333;
    text-align: center;
    display: flex;
    align-items: center;
    font-size: 1rem;
    font-weight: 600;
    justify-content: center;
  }

  .b-klassejob {
    margin-right: 0;
    position: relative;
  }

  .b-ep {
    margin-left: 0;
    margin-top: 0.5rem;
    position: relative;
  }

  .logo-container {
    height: 50vh;
    top: 0;
    position: absolute;
    margin: auto;
    width: 50%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center bottom;
    justify-content: flex-end;
  }

  .left .logo-container {
    background-image: url(/assets/icons-left-mobile-23383c03.webp);
  }

  .right .logo-container {
    background-image: url(/assets/icons-right-mobile-268a15d2.webp);
  }

  .logo-container-kl,
  .logo-container-ep {
    max-width: 100%;
    background-image: none;
  }

  .footer {
    flex-direction: column;
    padding: 0.6rem 0rem;
    font-size: 0.8rem;
  }

  .footer-left,
  .footer-right {
    flex-direction: column;
  }

  .logo-ministerium {
    width: 11rem;
    margin: 1rem;
  }

  .social-media {
    padding: 0.8rem;
    margin-left: 0;
  }
}

@media (max-width: 500px) {
  .logos {
    padding: 1rem;
  }
}

@media (min-width: 1200px) {
  .logo-ministerium {
    width: 11rem;
  }

  .button {
    font-size: 1.4rem;
    width: 28rem;
  }
}

@media (max-aspect-ratio: 0.55) {
  .buttons-mobile {
    bottom: 26%;
  }
}

@media (max-width: 767.98px) and (max-height: 500px) {
  .logo-container {
    justify-content: flex-start;
    height: 100vh;
    background-size: 100%;
  }
}
