/* VARIABLES */

:root {
  --esmagenta26: #e34f9b; /* formerly --accentpink */
  --esviolett26: #ad33ff; /* formerly --accentpurple */
  --esdeep26: #4c0f85;
  --white: #fbfbfb;
  --light-gray: #8d8d8d;
  --dark: #2e2532;
  --darker: #201a23;
  --slight-pink: #ffd4e6;
  --font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, sans-serif;
  --glass-gradient: linear-gradient(
    123deg,
    rgba(227, 79, 155, 0.12) 0%,
    rgba(173, 51, 255, 0.12) 100%
  );
  --button-gradient: linear-gradient(
    123deg,
    rgba(227, 79, 155, 0.35) 0%,
    rgba(173, 51, 255, 0.35) 100%
  );
  --button-gradient-hover: linear-gradient(
    123deg,
    rgba(227, 79, 155, 0.5) 0%,
    rgba(173, 51, 255, 0.5) 100%
  );
}

/* FONTS */

@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins-Thin.ttf") format("truetype");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins-ThinItalic.ttf") format("truetype");
  font-weight: 100;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins-ExtraLight.ttf") format("truetype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins-ExtraLightItalic.ttf") format("truetype");
  font-weight: 200;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins-LightItalic.ttf") format("truetype");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins-MediumItalic.ttf") format("truetype");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins-SemiBoldItalic.ttf") format("truetype");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins-BoldItalic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins-ExtraBoldItalic.ttf") format("truetype");
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins-BlackItalic.ttf") format("truetype");
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

/* BASE */

body {
  background-color: var(--darker);
  color: var(--white);
  font-family: var(--font);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

h1 {
  font-family: var(--font);
  font-weight: 700;
}

a.link {
  color: var(--esmagenta26);
  text-decoration: none;
  transition: color 0.3s ease;
}

a.link:hover {
  color: var(--esviolett26);
}

a[href="https://toneindicators.carrd.co/#masterlist"] {
  color: var(--slight-pink);
  text-decoration: underline;
}

/* SHARED UI */

.glass {
  border-radius: 16px;
  background: var(--glass-gradient);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(5.8px);
  border: 1px solid rgba(251, 251, 251, 0.096);
}

a.button,
a.button-lite {
  color: white;
  text-decoration: none;
  border-radius: 16px;
  background: var(--button-gradient);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(5.8px);
  border: 2px solid rgba(251, 251, 251, 0.096);
  font-size: 20px;
  font-weight: 500;
  display: inline-block;
  max-width: 100%;
  transition: all 0.3s ease;
}

a.button {
  padding: 10px 15px;
}

a.button-lite {
  padding: 5px 12.5px;
  transform: scale(1);
}

a.button:hover,
a.button-lite:hover {
  background: var(--button-gradient-hover);
  box-shadow: 0 6px 40px rgba(0, 0, 0, 0.2);
}

@media (hover: hover) and (pointer: fine) {
  a.button:hover {
    font-size: 25px;
  }

  a.button-lite:hover {
    font-size: 22px;
  }
}

.button-wrapper-unter-director-awards {
  margin-top: 25px;
  margin-bottom: 25px;
}

/* HERO / TITLE */

.title {
  text-align: center;
  font-size: 50px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  padding-top: 150px;
}

.title img {
  width: 100px;
  height: 100px;
  margin: 17.5px 0.5vw 7.5px 0;
}

.title h1 {
  margin: 0;
  padding: 0;
}

.title h1 .title-word-1 {
  color: var(--esmagenta26);
  margin-right: 10px;
}

.title h1 .title-word-2 {
  color: var(--esviolett26);
  margin-left: 10px;
}

.cool-background {
  background-image: url("../assets/endiversum-studios-background.avif");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.cool-background-1 {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), 0 100%);
  padding-bottom: 150px;
}

.cool-background-2 {
  clip-path: polygon(0 30px, 100% 0, 100% 100%, 0 100%);
}

.scroll-arrow {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
  z-index: 10;
}

.scroll-arrow svg {
  width: 40px;
  height: 40px;
  stroke: var(--white);
  fill: none;
  stroke-width: 2;
  opacity: 0.8;
  transition: all 0.3s ease;
  animation: bounce 2s infinite;
}

.scroll-arrow:hover svg {
  opacity: 1;
  stroke: var(--esmagenta26);
  transform: scale(1.1);
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* SECTIONS */

section {
  background-color: var(--dark);
  width: 100%;
  padding: 50px 25px;
  margin: 50px 0;
}

section.releases,
section.directors,
section.join,
section.community,
section.linktree,
section.dmie {
  padding-left: 0;
  clip-path: polygon(0 30px, 100% 0, 100% calc(100% - 30px), 0 100%);
}

section h2 {
  text-align: center;
  font-size: 30px;
  margin: 0;
}

section.about {
  width: 35%;
  margin: 50px auto;
}

section.about p {
  text-align: center;
  font-size: 25px;
  width: 100%;
  margin: 0 auto;
}

section.join p,
section.community p {
  text-align: center;
  width: 50%;
  margin: 10px auto 0;
  font-size: 20px;
}

section.join p.button-wrapper,
section.community p.button-wrapper {
  margin-top: 30px;
}

section.join a,
section.community a {
  text-align: center;
}

section.dmie p,
section.dmie a {
  text-align: center;
}

section.dmie div {
  width: 50%;
  margin: 0 auto;
}

section.dmie p.button-wrapper {
  margin-top: 35px;
}

section.linktree > p {
  text-align: center;
  margin-bottom: 30px;
}

/* RELEASES / GALLERY */

.series-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  font-size: 25px;
  gap: 10px;
  margin: 12px 0 3px;
  padding: 0 15px;
}

.series-buttons button {
  background: rgba(46, 37, 50, 0.6);
  border: 1px solid rgba(251, 251, 251, 0.1);
  border-radius: 20px;
  padding: 5px 15px;
  font-family: var(--font);
  font-size: 20px;
  font-weight: 500;
  color: var(--light-gray);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    transform 0.15s ease;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  letter-spacing: 0.3px;
  text-transform: uppercase;
  user-select: none;
}

.series-buttons button:hover {
  background: rgba(227, 79, 155, 0.15);
  border-color: rgba(227, 79, 155, 0.3);
  color: var(--white);
  transform: scale(1.05);
}

.series-buttons button[active="true"] {
  background: linear-gradient(
    123deg,
    rgba(227, 79, 155, 0.25) 0%,
    rgba(173, 51, 255, 0.25) 100%
  );
  border-color: var(--esmagenta26);
  color: var(--white);
  transform: scale(1.05);
}

.series-buttons button[active="true"]:hover {
  background: linear-gradient(
    123deg,
    rgba(227, 79, 155, 0.35) 0%,
    rgba(173, 51, 255, 0.35) 100%
  );
}

.series-buttons button:active {
  transform: translateY(0) scale(0.97);
  transition: all 0.2s;
}

.gallery-container {
  position: relative;
  overflow: hidden;
  max-width: 100%;
}

div.gallery {
  display: flex;
  flex-direction: row;
  gap: 25px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 20px 25px;
}

div.gallery::-webkit-scrollbar {
  display: none;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(46, 37, 50, 0.8);
  border: 1px solid rgba(251, 251, 251, 0.2);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.gallery-nav:hover {
  background: rgba(237, 32, 119, 0.8);
  border-color: var(--esmagenta26);
  transform: translateY(-50%) scale(1.1);
}

.gallery-nav.disabled {
  opacity: 0;
  cursor: not-allowed;
  pointer-events: none;
}

.gallery-nav-left {
  left: 20px;
}

.gallery-nav-right {
  right: 20px;
}

.gallery-nav svg {
  width: 24px;
  height: 24px;
  stroke: var(--white);
  fill: none;
  stroke-width: 2;
}

article.film,
article.film img {
  height: 250px;
}

article.film {
  display: flex;
  flex-direction: row;
  width: 500px;
  flex-shrink: 0;
  align-items: stretch;
}

article.film img {
  border-radius: 15px;
  flex-shrink: 0;
  width: auto;
}

article.film img.thumbsize {
  width: 166px;
  height: 93px;
  margin: auto 0;
}

article.film div {
  width: 100%;
  margin-left: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

article.film div * {
  margin-top: 2.5px;
  margin-bottom: 2.5px;
}

article.film div h3 {
  margin-top: 5px;
  flex-shrink: 0;
}

article.film div h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

article.film div h3 a:hover {
  color: var(--esmagenta26);
}

article.film div p.marke {
  font-size: 12.5px;
}

article.film div p.director {
  font-size: 15px;
}

article.film div p.description {
  margin-top: 7.5px;
  flex: 1;
}

article.film div ul.project-nominations {
  flex-shrink: 0;
}

.release-date {
  margin-top: auto;
  margin-bottom: 5px;
  margin-right: 7.5px;
  text-align: right;
  color: var(--light-gray);
}

.project-nominations {
  list-style: none;
  padding-left: 0;
  font-size: 11px;
  color: var(--light-gray);
}

.project-nominations a {
  color: var(--esmagenta26);
  text-decoration: none;
}

/* DIRECTORS */

.subtitle {
  text-align: center;
  font-size: 18px;
  margin-top: 10px;
  margin-bottom: 20px;
}

.directors div {
  width: fit-content;
  margin: 20px auto 0;
  display: flex;
  flex-direction: row;
  gap: 50px;
}

.directorarticle,
.directorarticle img {
  width: 350px;
  border-radius: 20px;
}

.directorarticle {
  text-align: center;
}

.directorarticle h3,
.directorarticle p {
  margin-left: 5px;
  margin-right: 5px;
}

.directorarticle h3 {
  margin-top: 0;
  margin-bottom: 0;
}

.directorarticle p.description {
  margin-top: 0;
  margin-bottom: 5.5px;
}

.directorarticle p.introduction {
  margin-top: 7.5px;
  margin-bottom: 10px;
}

article.directorarticle p.description {
  font-size: clamp(12px, 1.2vw, 16px);
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
  line-height: 1.3;
}

article.directorarticle p.description b {
  display: inline-block;
  max-width: 100%;
  font-size: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

article.directorarticle p.description b a {
  font-size: inherit;
}

.director-awards {
  text-align: center;
  margin-top: 15px;
  list-style: none;
  padding-left: 0;
}

.director-awards li {
  font-size: 12.5px;
}

.director-awards a {
  color: var(--esmagenta26);
  text-decoration: none;
}

.join-date {
  text-align: center;
  font-size: 15px;
  color: var(--light-gray);
  margin: 10px 0;
  text-transform: uppercase;
}

/* LINKS / FOOTER */

div.row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 50px;
}

div.links-split div {
  width: 250px;
  text-align: center;
}

div.links-split h3,
div.links-split p {
  margin-top: 5px;
  margin-bottom: 5px;
}

footer {
  text-align: center;
  margin-top: 100px;
  padding-top: 100px;
  padding-bottom: 100px;
}

/* CHALLENGE */

.challenge-title {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 150px;
}

.challenge-title h1 {
  margin: 0;
  padding: 0;
}

.challenge-title h1:nth-child(1) {
  font-size: 55px;
  color: var(--esmagenta26);
  margin-right: 10px;
}

.challenge-title h1:nth-child(2) {
  font-size: 70px;
  color: var(--esviolett26);
  margin-left: 10px;
}

.challenge-info h3 {
  text-align: center;
  font-size: 25px;
}

.challenge-youtube-info {
  text-align: center;
  font-size: 12.5px !important;
  color: var(--light-gray);
  margin-top: 10px;
  width: 40% !important;
  margin-bottom: 60px !important;
}

.challenge-youtube-info a {
  color: var(--light-gray);
}

.challenge-teilnahmebdingungen a {
  color: var(--esmagenta26);
  text-decoration: none;
}

.challenge-rechtliche-details {
  color: var(--light-gray);
  width: 60%;
  margin: 50px auto 0;
}

.challenge-rechtliche-details h2 {
  font-size: 22.5px;
}

.challenge-rechtliche-details p {
  font-size: 17.5px !important;
}

.challenge-rechtliche-details ul {
  text-align: center;
  width: 35%;
  margin: 5px auto 0;
  list-style-type: none;
}

.challenge-clips {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 25px;
  width: 65%;
  margin: 50px auto 15px;
}

.clip-info {
  border-radius: 15px;
  width: 25%;
  padding: 5px 10px 20px !important;
  transform: scale(1);
  transition: transform 0.1s ease-in-out;
}

.clip-info a {
  text-decoration: none;
  color: white;
}

.clip-info a h4 {
  font-size: 22px;
  height: 50px;
}

.clip-info a p {
  width: 100%;
  font-size: 20px;
}

.clip-info:hover {
  transform: scale(1.05);
}

/* RESPONSIVE */

@media (max-width: 1680px) {
  .challenge-clips {
    width: 75%;
  }
}

@media (max-width: 1457px) {
  .challenge-clips {
    width: 80%;
  }
}

@media (max-width: 1367px) {
  .clip-info a h4 {
    font-size: 20px;
  }
}

@media (max-width: 1260px) {
  .challenge-clips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25%, 1fr));
    gap: 16px;
    width: 80%;
  }

  .clip-info {
    width: 90%;
  }

  section.dubbing-challenge p {
    width: 70%;
  }

  .challenge-rechtliche-details p,
  .challenge-rechtliche-details ul {
    width: 100% !important;
  }
}

@media (max-width: 1130px) {
  div.title h1 {
    font-size: 8vw;
    margin-top: auto;
    margin-bottom: auto;
  }

  div.title img {
    width: 9vw;
    height: 9vw;
    margin-top: auto;
    margin-bottom: auto;
  }

  section.about {
    width: 80%;
  }

  section.about p {
    font-size: 20px;
  }

  section.directors div {
    flex-direction: column;
  }

  a.button {
    font-size: clamp(16px, 2.5vw, 20px);
  }

  div.links-split {
    flex-direction: column;
  }

  div.links-split div {
    margin: 0 auto;
  }

  footer div {
    flex-direction: column !important;
    gap: 10px;
  }

  footer div a {
    margin-top: 5px;
    margin-bottom: 5px;
  }
}

@media (max-width: 921px) {
  .challenge-clips {
    grid-template-columns: repeat(auto-fit, minmax(15%, 1fr));
  }

  .clip-info a h4 {
    margin-bottom: 40px;
  }
}

@media (max-width: 831px) {
  .challenge-clips {
    grid-template-columns: repeat(auto-fit, minmax(25%, 1fr));
  }
}

@media (max-width: 620px) {
  .clip-info a h4 {
    font-size: 16px;
    margin-bottom: 40px;
  }

  .clip-info a p {
    font-size: 14px;
  }
}

@media (max-width: 700px) {
  .gallery-nav {
    display: none;
  }
}

@media (max-width: 600px) {
  div.title {
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding-top: 72px;
  }

  div.title img {
    width: 84px;
    height: 84px;
    margin: 0;
  }

  div.title h1 {
    font-size: clamp(30px, 10vw, 44px);
    max-width: 100%;
    text-align: center;
  }

  .title h1 .title-word-1,
  .title h1 .title-word-2 {
    margin-left: 0.12em;
    margin-right: 0.12em;
  }

  .cool-background-1 {
    padding-bottom: 90px;
  }

  section {
    padding: 40px 18px;
    margin: 40px 0;
    box-sizing: border-box;
  }

  section.releases,
  section.directors,
  section.join,
  section.community,
  section.linktree,
  section.dmie {
    padding-left: 18px;
    padding-right: 18px;
  }

  section h2 {
    font-size: 24px;
  }

  section.about {
    width: 90%;
    margin: 30px auto;
  }

  section.about p {
    font-size: 18px;
  }

  section.join p,
  section.community p {
    width: 100%;
    font-size: 18px;
  }

  section.linktree > p {
    margin-bottom: 20px;
  }

  .series-buttons {
    gap: 8px;
    padding: 0 12px;
    margin: 10px 0 14px;
  }

  .series-buttons button {
    padding: 9px 18px;
    font-size: 15px;
    min-height: 40px;
  }

  div.gallery {
    gap: 16px;
    padding: 16px;
    scroll-snap-type: x proximity;
    scroll-padding-left: 16px;
    -webkit-overflow-scrolling: touch;
  }

  article.film {
    flex-direction: column;
    width: min(72vw, 300px);
    height: auto;
    scroll-snap-align: start;
  }

  article.film img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    margin: 0;
    border-radius: 15px 15px 0 0;
  }

  article.film img.thumbsize {
    width: 100%;
    height: auto;
    max-height: none;
    margin: 0;
    border-radius: 15px 15px 0 0;
  }

  article.film div {
    margin-left: 0;
    margin-top: 12px;
    padding: 0 14px 14px;
    box-sizing: border-box;
  }

  .directors div {
    gap: 24px;
  }

  .directorarticle,
  .directorarticle img {
    width: min(84vw, 340px);
  }

  a.button {
    font-size: 16px;
    padding: 11px 18px;
  }

  a.button-lite {
    font-size: 15px;
    padding: 8px 14px;
  }

  footer {
    margin-top: 50px;
    padding-top: 60px;
    padding-bottom: 60px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-arrow svg {
    animation: none;
  }
}
