input {
  display: none;
}

/* Kärtchen für jeden Abschnitt machen */

/* Hero Abschnitt */

.hero-title {
  text-align: center;
  font-size: 3.125rem;
}

.hero-tab {
  display: flex;
  position: relative;
  justify-content: center;
  max-width: 1800px;
  margin: 1.3vw auto 0;
  isolation: isolate;
}

.tab-selector {
  position: absolute;
  background-color: black;
  opacity: 0;
  z-index: -1;
  pointer-events: none;
  top: 0;
  bottom: 0;
  transition: 0.5s ease;
}

.hero-form {
  display: none;
}

/* Tabs */

.hero-tab button:first-child {
  border-right: 0px;
}

.middle {
  border-left: 0px;
  border-right: 0px;
}

.last {
  border-left: 0px;
}

.tablinks {
  padding: 1.125vw 3.5vw;
  font-size: 1vw;
  background-color: rgba(0, 0, 0, 0);
}

.tablinks:hover::before {
  transform: scaleX(0);
}

.tablinks.active {
  color: #fff;
}

.tablinks.active::before {
  transform: scaleX(1);
  transform-origin: left;
}

.tabcontent {
  display: none;
  max-width: 80%;
  margin: 4vw auto 4vw;
  animation: fadeIn 0.8s ease forwards;
}

/* Neue Animation mit Keyframes - von Transparenz 0 bis 1 */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Abschnitt über meine Persönlichkeit */

.personality-title {
  margin-left: 1.8vw;
}

.personality-blocks {
  display: flex;
  justify-content: space-evenly;
  margin: 0 1.8vw;
}

.personality-block {
  max-width: 24.4vw;
}

.personality-block:first-child .personality-block-title {
  white-space: nowrap;
}

/* Hobbies Abschnitt */

.hobbies-title {
  margin-left: 1.8vw;
}

.hobbies-note {
  margin-left: 1.8vw;
}

.hobbies-blocks {
  display: flex;
  justify-content: space-evenly;
  margin: 0 1.8vw;
}

.hobbies-block {
  max-width: 24.4vw;
}

.hobbies-photo {
  display: block;
  width: 100%;
  height: 21vw;
  object-fit: cover;
}

/* Fun Facts Abschnitt */

.facts-title {
  margin-left: 1.8vw;
}

.facts-section {
  display: grid;
  grid-template-columns: repeat(4, 19vw);
  grid-template-rows: repeat(2, auto);
  gap: 4em;
  justify-content: center;
  align-content: center;
  margin: auto 4vw;
}

.facts-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 4px solid black;
  text-align: center;
  padding: 3rem;
}

.facts-text h4 {
  font-size: 2.3rem;
}

.facts-divider {
  margin-left: 10vw;
  margin-right: 10vw;
}

.facts-prettier {
  font-size: inherit;
}

/* Kontakt Abschnitt */

.contact-section {
  margin: 3vw 0 3vw;
}

.contact-title {
  text-align: center;
}

.contact-information {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 0.5vw;
  gap: 0.5vw;
}

.contact-text {
  max-width: 40%;
  text-align: center;
}

@media (max-width: 2000px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .facts-text h4 {
    font-size: 2rem;
  }
}

@media (max-width: 1650px) {
  .facts-text {
    padding: 2rem;
  }

  .facts-text h4 {
    font-size: 1.6rem;
  }
}

@media (max-width: 1300px) {
  .facts-text {
    padding: 1.5rem;
  }

  .facts-text h4 {
    font-size: 1.3rem;
  }
}

@media (max-width: 1200px) {
  .hero-title {
    font-size: 2rem;
  }

  .facts-section {
    gap: 2em;
  }
}

@media (max-width: 1000px) {
  .facts-section {
    grid-template-columns: repeat(2, 40vw);
    grid-template-rows: repeat(4, auto);
  }
}

@media (max-width: 900px) {
  /* Hero Abschnitt */

  .tablinks {
    padding: 0.75em 2.1em;
    font-size: 0.7rem;
  }

  /* Persönlichkeit Abschnitt */

  .personality-blocks {
    flex-direction: column;
  }

  .personality-block {
    max-width: 80%;
    align-self: center;
  }

  /* Hobbys Abschnitt */

  .hobbies-blocks {
    flex-direction: column;
  }

  .hobbies-block {
    max-width: 80%;
    align-self: center;
  }

  .hobbies-photo {
    height: 50vw;
  }

  /* Kontakt Abschnitt */

  .contact-text {
    max-width: 60%;
  }
}

@media (max-width: 560px) {
  .hero-title {
    font-size: 6vw;
  }

  .personality-title {
    font-size: 6vw;
    margin-left: 20px;
  }

  .personality-block-title {
    font-size: 5.5vw;
  }

  .hobbies-title {
    font-size: 6vw;
    margin-left: 20px;
  }

  .hobbies-note {
    margin-left: 20px;
  }

  .hobbies-block h4 {
    font-size: 5.5vw;
  }

  .facts-title {
    font-size: 6vw;
  }

  .contact-title {
    font-size: 6vw;
  }
}

@media (max-width: 500px) {
  .tablinks {
    padding: 0.5em 1.8em;
    font-size: 0.55rem;
    max-width: 90%;
    display: none;
  }

  .hero-form {
    display: block;
    margin: 0 auto;
    padding: 0.75em;
    border-radius: 0px;
    background-color: #fff;
    border: black 1px solid;
  }

  .facts-section {
    grid-template-columns: repeat(1, 80vw);
    grid-template-rows: repeat(8, auto);
  }

  .facts-text {
    border: 3px black solid;
  }

  .facts-text h4 {
    font-size: 4vw;
    margin: 2.5vw auto;
  }

  .facts-text p {
    margin: 2vw auto;
  }

  .contact-section {
    margin: 8vw auto 4vw auto;
  }

  .contact-title {
    margin: 0 auto 2vw auto;
  }
}
