@font-face {
  font-family: 'BricolageGrotesque';
  src: url('../assets/fonts/BricolageGrotesque/BricolageGrotesque-VariableFont_opsz-wdth-wght.ttf') format('truetype');
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}

:root {
  --authbox: rgb(247, 248, 250);
      --authbox-0: rgb(247, 248, 250, .0);
}

/* -------------------------------- */
/* -- AUTH ------------------------ */

body.auth {
  background: var(--background);
}

section.auth-wrapper {
  all: unset;
  height: 100svh;
  width: 100svw;
  display: flex;
  align-items: center;
  justify-content: center;
}

form.authbox {
  all: unset;
  height: 700px;
  max-height: calc(100svh - 40px);
  aspect-ratio: 5/6;
  max-width: calc(100% - 40px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  border-radius: 40px;
  background-color: var(--authbox);
  box-shadow: 0 0 10px var(--primary-10);
  overflow: hidden;
  position: relative;
  transition: all ease .3s;
}

.authbox-inner {
  height: 100%;
  width: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
}

.authbox-inner-firststep {
  height: calc(75% - 60px);
  width: calc(100% - 60px);
  padding: 30px;
  background: var(--background);
  background: linear-gradient(0deg, var(--background) 0%, var(--background) 40%, var(--background-0) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  position: absolute;
  bottom: 0;
  gap: 30px;
}

.authbox-inner-generalstep {
  width: calc(100% - 60px);
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  position: absolute;
  bottom: 0;
  gap: 30px;
}

.authbox-inner-generalstep.gradient {
  background: var(--authbox);
  background: linear-gradient(0deg, var(--authbox) 0%, var(--authbox) 81%, var(--authbox-0) 100%);
}

@media (max-width: 768px) {
  form.authbox {
    all: unset;
    height: 100svh;
    max-height: 100svh;
    aspect-ratio: unset;
    width: 100svw;
    max-width: 100svw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    border-radius: 0px;
    background-color: var(--background);
    box-shadow: unset;
    overflow: hidden;
  }

  .authbox-inner-generalstep.gradient {
    background: var(--background);
    background: linear-gradient(0deg, var(--background) 0%, var(--background) 81%, var(--background-0) 100%);
  }
}

/* -- AUTH ----------------- END -- */
/* -------------------------------- */
/* authbox statusbar*/

.authbox-statusbar {
  position: absolute;
  top: 30px;
  left: 30px;
  right: 30px;
  height: 8px;
  border-radius: 10px;
  overflow: hidden;
  background-color: var(--primary-10);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
}

.authbox-statusbar-inner {
  height: 100%;
  background-color: var(--primary-10);
  border-radius: 10px;

  width: var(--statusbar-prior-step);

  animation: statusbar 1s ease-out forwards;
  animation-delay: .5s;
}

@keyframes statusbar {
  form {
    width: var(--statusbar-prior-step);
  }

  to {
    width: var(--statusbar-current-step);
  }
}


/* first step parts */

img.authbox-inner-firststep-logo {
  width: calc(100% / 5 * 2);
  margin-bottom: 20px;
}

/* FORM ITEMS */

.authbox-inner-inputs {
  width: 100%;
  display: flex;
  flex-direction: column;
}

input.auth {
  all: unset;
  width: calc(100% - 36px - 4px);
  padding: 15px 18px;
  background-color: transparent;
  border: 2px solid var(--primary-20);
  border-bottom: none;
  color: var(--primary);
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  text-align: left;
  position: relative;
  cursor: pointer;
  transition: all ease .3s;
}

input.auth:focus-within {
  background-color: var(--background-accent-60);
}

input.auth.first {
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

label.auth-multiinput {
  all: unset;
  width: calc(100% - 4px);
  padding: 15px 0px;
  background-color: transparent;
  border: 2px solid var(--primary-20);
  border-bottom: none;
  color: var(--primary);
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  text-align: left;
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  transition: all ease .3s;
}

label.auth-multiinput.first {
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

label.auth-multiinput.last {
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

input.auth-multiimput-single {
  all: unset;
  width: 100%;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}

.auth-multiimput-single::-webkit-outer-spin-button,
.auth-multiimput-single::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.auth-multiinput:has(.auth-multiimput-single:focus) {
  background-color: var(--background-accent-60);
}

.auth-multiimput-sep {
  height: 10px;
  width: 2px;
  display: block;
  flex-shrink: 0;
  background-color: var(--primary-20);
}

button.auth {
  all: unset;
  width: calc(100% - 36px - 4px);
  padding: 15px 18px;
  background-color: var(--primary);
  border: 2px solid var(--primary);
  color: var(--background-accent);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 1px;
  line-height: 1;
  text-align: center;
  position: relative;
  cursor: pointer;
  transition: all ease .3s;
}

button.auth:hover {
  background-color: var(--primary-90);
}

button.auth.first {
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

button.auth.last {
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

img.auth-button-icon {
  height: 14px;
  position: absolute;
  right: 20px;
  transition: all ease .3s;
}

button.auth:hover img.auth-button-icon {
  right: 15px;
}

.authbox-inner-info {
  width: calc(100% - 60px);
  text-align: center;
  padding: 25px 30px;
  background-color: rgb(247, 183, 7, .1);
  border-radius: 20px;
  margin-bottom: 20px;
  cursor: default;
}

/* AUTH INNER OPTIONS */

.authbox-inner-options {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: .9rem;
  color: var(--primary-60);
}

a.auth-button-option,
button.auth-button-option {
  all: unset;
  font-size: .9rem;
  text-decoration: none;
  color: var(--primary-60);
  cursor: pointer;
  transition: all ease .3s;
}

a.auth-button-option:hover,
button.auth-button-option:hover {
  color: var(--primary);
}

div.auth-button-option {
  all: unset;
  font-size: .9rem;
  text-decoration: none;
  color: var(--primary-60);
  cursor: default;
  text-align: center;
  line-height: 1.4;
  transition: all ease .3s;
}

/* AUTHBOX CONTENT */

.authbox-content {
  position: absolute;
  top: calc(30px + 8px + 30px);
  left: 30px;
  right: 30px;
}

.authbox-content.logindone {
  position: absolute;
  top: calc(30px + 8px + 30px);
  bottom: calc(96px);
  left: 30px;
  right: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.authbox-content-title {
  font-size: 2.6rem;
  font-weight: 800;
}

.authbox-content-title mark {
  all: unset;
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--secondary);
}

img.logindone {
  width: 25%;
}

.authbox-content-introduction-image {
  height: 90px;
  width: 90px;
  border-radius: 20px;
  border-bottom-right-radius: 5px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  margin-bottom: 20px;
  position: absolute;
  z-index: 0;
}

.authbox-content-title.introduction {
  max-width: calc(100% - 110px);
  margin-left: 110px;
}

.authbox-content-introduction-textbox {
  width: calc(100% - 50px);
  padding: 20px 25px;
  border-radius: 20px;
  border-top-left-radius: 5px;
  background-color: var(--primary);
  color: var(--background);
  margin-top: 20px;
  cursor: default;
  font-size: 1.2rem;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .authbox-content-introduction-image {
    height: unset;
    width: 100%;
    aspect-ratio: 6/3;
    border-radius: 20px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    margin-bottom: 20px;
    position: unset;
    z-index: unset;
  }

  .authbox-content-title.introduction {
    max-width: 100%;
    margin-left: 0px;
  }
}

/* HOMECLUB */

.authbox-content-homeclub {
  max-height: calc(
    min(700px, 100svh - 40px)
    - 135px
    - 155px
    - 38px
  );
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0px;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
}

.authbox-content-homeclub-single {
  width: 25%;
  aspect-ratio: 1/1;
  flex-shrink: 0;

  scroll-snap-align: center;
  scroll-snap-stop: always;

  transition: all ease .5s;
}

.authbox-content-homeclub-single.unfocused {
  opacity: .4;
  transform: scale(.6);
}

.authbox-content-homeclub-single.outofview {
  opacity: 0;
  transform: scale(.4);
}

.authbox-content-homeclub-single:first-child {
  margin-top: calc(50% - 12.5%);
}

.authbox-content-homeclub-single:last-child {
  margin-bottom: calc(50% - 12.5%);
}

img.authbox-content-homeclub-single-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@media (max-width: 768px) {

  .authbox-content-homeclub {
    /*
     * Gesamthöhe Mobile = 100svh
     * 135px = Bereich oberhalb der Clubauswahl
     * 155px = unterer Button-/Optionsbereich
     * 38px  = zusätzlicher Abstand
     */
    max-height: calc(
      100svh
      - 135px
      - 155px
      - 38px
    );

    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 0;

    overflow-y: auto;
    overflow-x: hidden;

    scroll-snap-type: y mandatory;

    /* Mobile Scrollen */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;

    /* Scrollbar ausblenden */
    scrollbar-width: none;
  }

  .authbox-content-homeclub::-webkit-scrollbar {
    display: none;
  }

  .authbox-content-homeclub-single {
    width: 32%;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;

    scroll-snap-align: center;
    scroll-snap-stop: always;

    transition: all ease .5s;
  }

  .authbox-content-homeclub-single.unfocused {
    opacity: .35;
    transform: scale(.6);
  }

  .authbox-content-homeclub-single.outofview {
    opacity: 0;
    transform: scale(.4);
  }

  .authbox-content-homeclub-single:first-child {
    margin-top: 34%;
  }

  .authbox-content-homeclub-single:last-child {
    margin-bottom: 34%;
  }

  img.authbox-content-homeclub-single-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;

    -webkit-user-drag: none;
    user-select: none;
  }
}

/* MORE CLUBS */

.authbox-content-moreclubs {
  width: 100%;
  margin-top: 20px;

  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;

  max-height: calc(
    min(700px, 100svh - 40px)
    - 78px
    - 100px
    - 155px
  );

  overflow-y: auto;
  overflow-x: hidden;

  padding-bottom: 150px;

  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.authbox-content-moreclubs::-webkit-scrollbar {
  display: none;
}

label.authbox-content-moreclubs-single {
  width: calc(100% - 2px);
  aspect-ratio: 1 / 1;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--primary-5);
  border: 2px solid transparent;
  border-radius: 20px;

  box-sizing: border-box;

  cursor: pointer;
  user-select: none;

  transition:
    background-color .2s ease,
    border-color .2s ease,
    transform .2s ease;
}

label.authbox-content-moreclubs-single:hover {
  background: var(--primary-10);
}

label.authbox-content-moreclubs-single:has(input:checked) {
  border-color: var(--primary-60);
  background: var(--primary-10);
}

img.authbox-content-moreclubs-single-logo {
  width: 52%;
  height: 52%;

  max-width: none;
  max-height: none;

  object-fit: contain;
  display: block;

  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

@media (max-width: 768px) {

  .authbox-content-moreclubs {
    grid-template-columns: repeat(2, minmax(0, 1fr));

    max-height: calc(
      100svh
      - 78px
      - 100px
      - 155px
    );

    gap: 10px;

    padding-bottom: 150px;
  }

  label.authbox-content-moreclubs-single {
    border-radius: 20px;
  }

  img.authbox-content-moreclubs-single-logo {
    width: 62%;
    height: 62%;
  }
}

/* -------------------------------- */
/* GOAL GAME */
/* -------------------------------- */

.authbox-content-goal-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;

  padding-top: 20px;
  gap: 40px;

  position: relative;
}

svg.authbox-content-goal {
  width: 50%;
  overflow: visible;
}

img.authbox-content-goal-swipeanimator {
  width: 15%;
  pointer-events: none;

  transition: opacity .25s ease;
}

.authbox-content-goal-wrapper.has-shot
.authbox-content-goal-swipeanimator {
  opacity: 0;
}

img.authbox-content-puck {
  display: block;
  position: absolute;

  left: 50%;
  bottom: 75px;

  width: 15%;

  transform: translateX(-50%);
  transform-origin: center center;

  z-index: 1000;

  cursor: grab;

  pointer-events: auto !important;
  touch-action: none;

  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

img.authbox-content-puck.is-dragging {
  cursor: grabbing;
}

.authbox-content-goal #goal-posts {
  transition: filter .15s ease;
}

.authbox-content-goal.post-hit #goal-posts {
  filter: brightness(1.5);
}

/* post goal */

.authbox-inner-generalstep-postgoal {
 width: 100%;
 display: flex;
 flex-direction: column;
 align-items: flex-end;
 gap: 5px;
 margin-bottom: -5px;
}

.authbox-inner-generalstep-postgoal-text {
  width: calc(100% - 40px);
  border-radius: 20px;
  border-bottom-right-radius: 5px;
  background-color: var(--primary);
  color: var(--background-accent);
  padding: 20px;
  font-size: 1.2rem;
  line-height: 1.4;

  transform: scale(.25) translateX(50%) translateY(50%);

  animation: postgoalText ease-out .5s forwards;
}

@keyframes postgoalText {
  0%   {
    transform: scale(.25) translateX(50%) translateY(50%);
  } 100% {
    transform: scale(1) translateX(0) translateY(0);
  }
}

.authbox-inner-generalstep-postgoal-text mark {
  color: var(--secondary-light);
  background-color: unset;
  font-size: 1.2rem;
}

.authbox-inner-generalstep-postgoal-author {
  height: 65px;
  width: fit-content;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  background-color: var(--primary);
  padding: 0 20px;
  border-radius: 20px;
  border-top-right-radius: 5px;
  color: var(--background-accent);

  transform: scale(.25) translateX(50%) translateY(-50%);

  animation: postgoalAuthor ease-out .5s forwards;
}

@keyframes postgoalAuthor {
  0%   {
    transform: scale(.25) translateX(50%) translateY(-50%);
  } 100% {
    transform: scale(1) translateX(0) translateY(0);
  }
}

img.authbox-inner-generalstep-postgoal-author-image {
  height: 80px;
  margin-left: -30px;
  border-radius: 99px;
  border: 5px solid var(--authbox);
  object-fit: cover;
  object-position: center;
}


.authbox-inner-generalstep-postgoal-author-name {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 1rem;
  line-height: 1;
}

.authbox-inner-generalstep-postgoal-author-name span {
  font-size: .8rem;
  line-height: 1;
}

@media (max-width: 768px) {
  img.authbox-inner-generalstep-postgoal-author-image {
    border: 5px solid var(--background);
  }
}

/* notifications */

.authbox-content-notifications-wrapper {
  width: 50%;
  aspect-ratio: 243.6924/262.3242;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  margin-left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  margin-top: 40px;
}

.authbox-content-notification {
  width: calc(130% - 30px);
  padding: 15px;
  border-radius: 15px;
  background-color: rgba(40, 40, 40, 0.9);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
  justify-content: center;
  color: var(--background);
  transform: translateY(-40px);
}

.authbox-content-notification-icon {
  height: 90%;
  max-height: 50px;
  max-width: 50px;
}

.authbox-content-notification-inner {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.authbox-content-notification-inner-title {
  font-weight: 600;
  cursor: default;
}

.authbox-content-notification-inner-text {
  font-weight: 300;
  cursor: default;
}

.authbox-content-notification-second {
  height: 15px;
  width: calc(130% - 30px);
  background-color: rgba(40, 40, 40, 0.85);
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transform: translateY(-40px);
}

.authbox-content-notification-third {
  height: 15px;
  width: calc(130% - 30px - 30px);
  background-color: rgba(40, 40, 40, 0.8);
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transform: translateY(-40px);
}

@media (max-width: 768px) {
  .authbox-content-notification {
    width: calc(100vw - 60px - 30px);
  }

  .authbox-content-notification-second {
    width: calc(100vw - 60px - 30px);
  }

  .authbox-content-notification-third {
    width: calc(100vw - 60px - 30px - 30px);
  }
}