/* !!--------------------------------------Styling Settings---------------------------------------!! */
@import url("https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=ABeeZee:ital@0;1&display=swap");
@import url('https://fonts.googleapis.com/css2?family=ABeeZee:ital@0;1&family=Caveat:wght@400..700&display=swap');

:root {
  --body-background-color: #161619;
  --desktop-body-content-container-padding: 3% 0 0 0;
  --mobile-body-content-container-padding: 10% 5% 0% 5%;

  --mobile-info-item-width: 100%;
  --mobile-info-item-padding: 20px 20px 20px 20px;

  --mobile-banner-item-height: 60vw;

  --card-transition-speed: 0.25s;

  --tl-toggle-transition-speed: 0.3s;
  --tl-toggle-accent-color: #3888ff;
}

/* !!--------------------------------------Advanced Settings--------------------------------------- */

audio {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2%;
  width: 80%;
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
}

body {
  display: flex;
  flex-direction: row;
  min-height: 100vh;
  width: 100%;
  padding: 0;
  background-color: var(--body-background-color);
  overflow-x: hidden;
}

.body_content {
  width: 100%;
  max-width: 63.5vw;
  margin-left: auto;
  margin-right: auto;

  padding: var(--desktop-body-content-container-padding);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.divider {
  width: 100%;
  border-bottom: solid 1px #40435e;
}

/* !!---------------------------------------------------------------------------------------------!! */

h1 {
  color: rgb(255, 255, 255);
  font-size: 30px;
  font-family: "Quicksand", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 5px;
  margin: 0 0 10px 0;
  text-align: center;
}

h2 {
  color: #b8b6c5;
  font-size: 20px;
  font-family: "Quicksand", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 5px;
  margin: 0 0 10px 0;
  text-align: left;
  transition: 0.2s;
}

h3 {
  color: rgb(255, 255, 255);
  font-size: 16px;
  font-family: "Quicksand", sans-serif;
  font-weight: 400;
}

h4 {
  color: #a6abb8;
  font-size: 14px;
  font-family: "Quicksand", sans-serif;
  font-weight: 500;
  text-align: center;
  margin-bottom: 1vw;
}

.body_item {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.body_item_wrapper {
  display: flex;
  flex-direction: column;
  margin-bottom: 50px;
  padding: var(--desktop-body-item-wrapper-padding);
}

/* CUSTOM --------------------------------------------------------------------  */


/* Cards --------------------------------------------------------------------  */

.card-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  row-gap: 2vw;
  column-gap: 2vw;
}

/* All other cards default to span 1 (one column) */
.card-container a:not(:first-child):not(:nth-child(2)) {
  grid-column: span 1;
}

.card-item {
  padding-right: 1.2vw;
  /* cursor: pointer; */
}

.card-image-item {
  position: relative;
  aspect-ratio: 16/9;
  align-items: center;
  justify-content: center;
  align-self: center;
}

.card-img {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  background-size: cover;
  background-position: center;
  background-color: greenyellow;
  transition: var(--card-transition-speed);
  border-radius: 0.25vw;
  rotate: 0deg;
  z-index: 3;

  box-shadow: 0.26vw 0.1vw 0.5vw rgba(0, 0, 0, 0.432);
}

.card-1 {
  width: 100%;
  height: 100%;
  top: 0.1vw;
  left: 0.5vw;
  rotate: 0.5deg;
  position: absolute;
  aspect-ratio: 16/9;
  background-color: magenta;
  transition: var(--card-transition-speed);
  z-index: 2;
  border-radius: 0.25vw;
  box-shadow: 0.26vw 0.1vw 0.5vw rgba(0, 0, 0, 0.432);
}

.card-2 {
  width: 100%;
  height: 100%;
  top: 0.25vw;
  left: 1vw;
  rotate: 1deg;
  position: absolute;
  aspect-ratio: 16/9;
  background-color: rgb(25, 0, 255);
  transition: var(--card-transition-speed);
  z-index: 1;
  box-shadow: 0.26vw 0.1vw 0.5vw rgba(0, 0, 0, 0.192);
  border-radius: 0.25vw;
}

.card-title-item {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  padding-top: 1.5vw;
}

.card-text {
  color: #a6abb8;
  font-family: "quicksand";
  font-weight: 600;
  font-size: 0.8vw;
  letter-spacing: 0.32w;
  text-transform: uppercase;
  text-align: center;
  transition: 0.2s;
}

/* Project Items  --------------------------------------------------------------------  */

.project_item {
  display: flex;
  flex: 0 auto;
  width: 100%;
  font-family: Quicksand;
  background: #141414;
  background: linear-gradient(119deg,
      rgb(20, 20, 20) 0%,
      rgba(255, 255, 255, 0) 60%);
}

.project_text_item {
  padding: 2.6vw;
}

.project_header {
  font-size: 2vw;
  font-family: abeezee;
  font-weight: bold;
  color: white;
}

.project_subtitle {
  font-size: 0.8vw;
  padding-bottom: 0.8vw;
  color: rgb(201, 200, 200);
}

p {
  font-size: 0.9vw;
  padding-bottom: 0.3vw;
  color: #fff;
}

/* Banner Pages --------------------------------------------------------------------  */

.banner-item {
  display: flex;
  align-self: center;
  background-color: grey;
  width: 100%;
  height: 25vw;
}

.info-item {
  display: flex;
  position: relative;
  align-self: center;
  outline: 1px solid #3888ff;
  border-radius: 5px;
  width: 70%;
  height: auto;
  padding: 25px 20px 25px 40px;
  margin-top: 2vw;
  margin-bottom: 2vw;
}

.exc_symbol {
  position: absolute;
  height: 35px;
  right: -10px;
  top: -10px;
}

/* Timeline Template --------------------------------------------------------------------  */

/* Timeline Toggle --------------------------------------------------------------------  */

.open-timeline {
  position: relative;
  user-select: none;
  cursor: pointer;
}

.open-timeline.is-open {
  color: var(--tl-toggle-accent-color);
}

.open-timeline::after {
  content: "▲";
  display: inline-block;
  margin-left: 6px;
  font-size: 0.7em;
  transition: transform var(--tl-toggle-transition-speed) ease;
}

.open-timeline.is-open::after {
  content: "▼";
}

.timeline-section {
  display: none;
  height: 0px;
  overflow: hidden;
  transition: height var(--tl-toggle-transition-speed) ease;
}

.timeline-section.is-open {
  overflow: visible;
}

#timeline,
#timeline * {
  box-sizing: border-box;
}

#timeline {
  --tl-border-radius: 2.5px;

  /* Achse: Linie UND Punkt hängen nur hieran */
  --tl-axis: 0px;
  --tl-line-color: #474c81;
  --tl-line-width: 1px;
  --tl-marker-size: 10px;

  /* Layout (immer einspaltig) */
  --tl-track-width: 70%;
  --tl-card-offset: clamp(20px, 3vw, 50px);
  /* Abstand Achse -> Karte */
  --tl-card-gap: 2vw;

  /* Card – Header */
  --tl-heading-padding: 1vw 0 1vw 1vw;
  --tl-heading-text-font: abeezee;
  --tl-heading-text-font-weight: bold;
  --tl-heading-text-size: 1.2vw;
  --tl-heading-text-color: #ffffff;

  /* Card – Body */
  --tl-card-body-padding: 2vw;
  --tl-card-item-spacing: 1vw;
  --tl-text-font: quicksand;
  --tl-text-font-weight: 600;
  --tl-text-size: 0.8vw;
  --tl-text-color: rgb(201, 200, 200);
  --tl-card-content-background-color: #1f2027;

  --tl-color-1: #4e2a2a;
  --tl-color-2: #8f713b;
  --tl-color-3: #293c61;
  --tl-color-4: #472a4e;
}

#timeline .timeline-track {
  position: relative;
  max-width: var(--tl-track-width);
  margin: 0 auto;
}

/* Linie */
#timeline .timeline-track::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--tl-axis);
  width: var(--tl-line-width);
  background: var(--tl-line-color);
  transform: translateX(-50%);
}

#timeline .timeline-card {
  position: relative;
  margin-left: var(--tl-card-offset);
}

#timeline .timeline-card:not(:last-child) {
  margin-bottom: var(--tl-card-gap);
}

#timeline .timeline-card__head {
  position: relative;
  display: flex;
  align-items: center;
  border-top-left-radius: var(--tl-border-radius);
  border-top-right-radius: var(--tl-border-radius);
}

#timeline .timeline-card:nth-child(4n + 1) .timeline-card__head {
  background: var(--tl-color-1);
}

#timeline .timeline-card:nth-child(4n + 2) .timeline-card__head {
  background: var(--tl-color-2);
}

#timeline .timeline-card:nth-child(4n + 3) .timeline-card__head {
  background: var(--tl-color-3);
}

#timeline .timeline-card:nth-child(4n + 4) .timeline-card__head {
  background: var(--tl-color-4);
}

/* Punkt: selbe Achse wie die Linie, vertikal mittig im Header */
#timeline .timeline-card__head::before {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(var(--tl-axis) - var(--tl-card-offset));
  width: var(--tl-marker-size);
  height: var(--tl-marker-size);
  background: var(--tl-line-color);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

#timeline .timeline-card__title {
  margin: 0;
  color: var(--tl-heading-text-color);
  font-size: var(--tl-heading-text-size);
  font-family: var(--tl-heading-text-font);
  font-weight: var(--tl-heading-text-font-weight);
  padding: var(--tl-heading-padding);
  letter-spacing: normal;
  text-transform: none;
}

#timeline .timeline-card__subtitle {
  display: block;
  font-size: 0.8vw;
}

#timeline .timeline-card__body {
  background: var(--tl-card-content-background-color);
  border-bottom-left-radius: var(--tl-border-radius);
  border-bottom-right-radius: var(--tl-border-radius);
  padding: var(--tl-card-body-padding);
}

#timeline .timeline-card__body>*:not(:last-child) {
  margin-bottom: var(--tl-card-item-spacing);
}

#timeline .timeline-card__body p {
  color: var(--tl-text-color);
  font-size: var(--tl-text-size);
  font-family: var(--tl-text-font);
  font-weight: var(--tl-text-font-weight);
}

@media (max-width: 991px) {
  #timeline {
    --tl-track-width: 100%;
    --tl-card-offset: 24px;
    --tl-card-gap: 6vw;
    --tl-heading-text-size: 1rem;
    --tl-heading-padding: 12px 0 12px 12px;
    --tl-card-body-padding: 16px;
    --tl-card-item-spacing: 12px;
    --tl-text-size: 100%;
  }

  #timeline .timeline-card__subtitle {
    font-size: 0.8rem;
  }
}

@media (max-width: 479px) {
  #timeline {
    padding: 60px 15px;
  }
}

@media (min-width: 2000px) {
  #timeline {
    --tl-border-radius: 4.5px;
    --tl-card-gap: 1.5vw;
    --tl-card-offset: 2vw;
    --tl-heading-padding: 0.5vw 0 0.5vw 0.5vw;
    --tl-heading-text-size: 0.8vw;
    --tl-text-size: 0.6vw;
  }
}

/* !!--------------------------------------Media Queries---------------------------------------!! */

/* --- body_content --- */
@media screen and (max-width: 991px) {
  .body_content {
    padding: var(--mobile-body-content-container-padding);
    max-width: 100%;
  }
}


@media screen and (min-width: 2000px) {
  .body_content {
    max-width: 50vw;
  }

  .project_header {
    font-size: 1.5vw;
  }

  .project_subtitle {
    font-size: 0.6vw;
    padding-bottom: 0.6vw;
  }

  p {
    font-size: 0.6vw;
    padding-bottom: 0.2vw;
  }
}

/* --- body_item_wrapper --- */
@media screen and (max-width: 991px) {
  .body_item_wrapper {
    width: 100%;
  }
}

@media screen and (max-width: 479px) {
  .body_item_wrapper {
    width: 100%;
  }
}

/* --- Card hover / general card styles (min-width) --- */
@media screen and (min-width: 991px) {
  .card-image-item:hover .card-img {
    rotate: -1deg;
    left: -0.25vw;
  }

  .card-image-item:hover .card-1 {
    top: 0.6vw;
    left: 0.9vw;
    rotate: 1deg;
  }

  .card-image-item:hover .card-2 {
    top: 1vw;
    left: 1.8vw;
    rotate: 2deg;
  }
}

/* --- Card responsive styles (max-width) --- */
@media screen and (max-width: 991px) {
  .card-item {
    padding-right: 4vw;
    padding-left: 0.5vw;
  }

  .card-container {
    grid-template-columns: repeat(1, 1fr);
    row-gap: 8vw;
    column-gap: 5vw;
  }

  .card-img {
    rotate: -1deg;
    left: -0.5vw;
  }

  .card-1 {
    top: 1.2vw;
    left: 1.5vw;
    rotate: 1deg;
  }

  .card-2 {
    top: 2vw;
    left: 3.5vw;
    rotate: 2deg;
  }

  .card-text {
    font-size: 2.8vw;
  }

  .card-title-item {
    padding-top: 4vw;
  }
}

/* --- Project Items (max-width) --- */
@media screen and (max-width: 991px) {
  .project_item {
    display: flex;
    flex: 0 auto;
    width: 100%;
    font-family: Quicksand;
    background: linear-gradient(119deg,
        rgb(20, 20, 20) 0%,
        rgba(255, 255, 255, 0) 150%);
  }

  .project_text_item {
    padding: 50px;
  }

  .project_header {
    font-size: 250%;
    font-family: abeezee;
    font-weight: bold;
  }

  .project_subtitle {
    font-size: 100%;
    padding-bottom: 15px;
  }

  p {
    font-size: 100%;
    padding-bottom: 6px;
  }
}

/* --- Banner / Info Items (max-width) --- */
@media screen and (max-width: 991px) {
  .info-item {
    width: var(--mobile-info-item-width);
    padding: var(--mobile-info-item-padding);
  }

  .banner-item {
    height: var(--mobile-banner-item-height);
  }
}

@media screen and (max-width: 479px) {
  .info-item {
    width: var(--mobile-info-item-width);
    padding: var(--mobile-info-item-padding);
  }

  .banner-item {
    height: var(--mobile-banner-item-height);
  }
}