/********** Variables **********/
:root {
  /* Hintergrundfarben */
  --background-primary: #121212;
  --background-primary-80: #121212d8;
  --background-primary-40: #12121285;
  --background-secondary: #2e2e2e;
  --background-secondary-80: #2e2e2e6b;
  --background-secondary-90: #222222b7;

  /* Primärfarben */
  --primary-dark: #121212;
  --primary-black-50: #3030307a;
  --primary-light: #d6d6d6;

  /* Textfarben */
  --text-dark: #121212;
  --text-light: #ffffff;

  /* Border Farben */
  --border-primary: #ccc;
  --border-primary-transparent: #cccccc8f;

  /* Farbverlauf */
  --linear-gradient: linear-gradient(45deg, #f27121, #e94057, #8a2387);
  --linear-gradient-transparent: linear-gradient(
    45deg,
    #cc5f1ba6,
    #b83345ab,
    #641b62b6
  );

  /* Box Shadow */
  --box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.637);
}
/*******************************/

/*********** Body, HTML ************/
body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
  background-color: var(--background-primary);
  background-image: url("dottet_bg_color_small.png"); /* Pfad zum PNG-Musterbild */
  background-repeat: repeat;
  background-attachment: fixed;
  font-family: "Roboto", sans-serif;
}

a {
  text-decoration: none;
}

/*******************************/

/*********** Headlines ************/
.headlineicon {
  display: flex;
  align-items: center; /* Zentriere die Inhalte vertikal */
}

.icons {
  background-color: var(
    --background-secondary-90
  ); /* Hintergrundfarbe des Icons */
  padding: 5px; /* Füge einen Abstand um das Icon hinzu */
  border-radius: 50%; /* Runde das Icon ab */
  display: flex; /* Setze das Icon auf flex */
  align-items: center; /* Zentriere das Icon vertikal */
  justify-content: center; /* Zentriere das Icon horizontal */
  width: 4vh; /* Breite des Icons */
  height: 4vh; /* Höhe des Icons */
  color: var(--primary-light);
  -webkit-box-shadow: var(--box-shadow);
  -moz-box-shadow: var(--box-shadow);
  box-shadow: var(--box-shadow);
  font-size: 3vh;
}

.headline {
  background-color: var(
    --background-secondary-90
  ); /* Hintergrundfarbe der Überschrift */
  color: var(--primary-light);
  font-size: 3.5vh;
  font-family: "Roboto", sans-serif;
  font-weight: bold;
  padding: 5px 10px; /* Gleichmäßigerer Abstand für die Überschrift */
  margin-left: 10px; /* Abstand zwischen Icon und Überschrift */
  border-radius: 4vh;
  height: 4vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  -webkit-box-shadow: var(--box-shadow);
  -moz-box-shadow: var(--box-shadow);
  box-shadow: var(--box-shadow);
}
/*******************************/

/*********** Navbar ************/
.navbar {
  background-color: var(--primary-black-50);
  color: var(--text-light);
  width: 15%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  overflow-x: hidden;
  overflow-y: hidden;
  display: flex; /* Flexbox verwenden */
  flex-direction: column; /* Inhalte in Spalten anordnen */
  justify-content: flex-start; /* Vertikal zentrierte Ausrichtung */
  align-items: center; /* Horizontal zentrierte Ausrichtung */
}

.navbar img {
  width: auto;
  height: 25vh;
}

.text_navbar {
  background-color: var(--background-primary);
  width: 100%;
  text-align: center;
  transition: 0.5s;
  position: relative;
}

.text_navbar p {
  font-size: 20pt;
  font-weight: 800;
  transition: 0.5s;
  padding: 10px;
  margin: 0;
}

/* .text_navbar:hover p {
  transform: translateY(-30px);
  color: transparent;
}

.text_navbar::after {
  content: "Computer Scientist";
  font-size: 3vh;
  font-weight: 900;
  background: var(--linear-gradient);
  background-clip: text;
  color: transparent;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -75%);
  opacity: 0;
  transition: top 0.5s, opacity 0.25s;
} 

/* .text_navbar:hover::after {
  opacity: 1;
  top: 70%;
} */

.navbar-links {
  padding: 0;
  width: 100%;
}

.navbar-links li a {
  display: block;
  color: var(--text-light);
  padding: 10px;
  font-weight: bold;
  font-size: 1.5vw;
  background-color: var(--background-primary);
  transition: background-color 0.5s, color 0.5s, box-shadow 0.5s, transform 0.5s,
    margin-bottom 0.5s;
  transform: translateX(0);
}

.navbar-links li a:hover {
  background-color: var(--primary-light);
  color: var(--background-primary);
  transform: translateX(2vb);
}

hr {
  margin-top: 0;
  margin-bottom: 0;
  background-image: linear-gradient(to right, #f2712100, #e94057, #8a2387);
  border: none; /* Entfernt die Standardborder */
  height: 1px; /* Definiert die Höhe der horizontalen Linie */
}

.note {
  background-color: var(--background-primary-40);
  padding: 10px;
  font-family: 'Courier New', Courier, monospace;
}
/*******************************/

/******** Navbar small *********/
/* .navbar-toggle {
  background-color: var(--background-secondary);
  display: none;
  cursor: pointer;
} */
/*******************************/

/********** Sections ***********/
.sections {
  margin-left: 15%;
  border: 2px solid;
  border-image: var(--linear-gradient) 1;
  color: var(--text-light);
  height: 89.6vh;
  overflow-y: auto;
}

.section {
  position: relative;
  padding: 20px;
  border-bottom: 2px solid;
  border-right: 2px solid;
  border-image: var(--linear-gradient) 1;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.scroll-icon {
  position: absolute;
  cursor: pointer;
  transition: 0.3s;
  color: var(--border-primary-transparent);
}

.scroll-icon-up {
  bottom: 3vh; /* Abstand vom unteren Rand der Sektion */
  left: 50%; /* Zentrieren horizontal */
  transform: translateX(-50%); /* Zentrieren horizontal mit transform */
}

.scroll-icon-down {
  bottom: 0.8vh; /* Abstand vom unteren Rand der Sektion */
  left: 50%; /* Zentrieren horizontal */
  transform: translateX(-50%); /* Zentrieren horizontal mit transform */
}

.scroll-icon:hover {
  font-size: 1.2em;
  color: var(--text-light);
}

/*******************************/

/*********** Footer ************/
.footer {
  background-color: var(--primary-black-50);
  position: fixed;
  bottom: 0;
  right: 0;
  width: 85%;
  min-height: 10vh;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.footer img {
  height: 5vh;
  transition: 0.2s;
}

.footer img:hover {
  height: 5.5vh;
}

.text-section {
  display: flex;
  color: var(--text-light);
  background-color: var(--background-primary-40);
  padding: 10px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  margin: 10px 0px 10px 0px;
}

.icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8vh;
  background: var(--linear-gradient);
  background-clip: text;
  color: transparent;
  transition: 0.3s;
  margin: 0px 10px 0px 0px;
}

.icon:hover {
  font-size: 3vh;
}

.title {
  font-weight: bold;
  color: var(--text-light);
  font-size: 1.25em;
}

.info {
  color: var(--primary-light);
  word-wrap: break-word;
}

.location {
  margin-right: 5px;
}

.email {
  overflow: hidden;
  margin-left: 5px;
}
/*******************************/

/********* Scrollbar ***********/
/* Width */
::-webkit-scrollbar {
  width: 1vb; /* Width of the scrollbar */
}

/* Track */
::-webkit-scrollbar-track {
  background: #12121200; /* Color of the track */
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: var(--text-light);
  border-radius: 0px;
  /* Color of the handle */
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: var(--background-secondary);
}
/*******************************/

/******* Markierter Text ********/
/* Selected text */
::selection {
  background-color: #ffffff10;
  color: #f27121;
}
/*******************************/

/***** ABOUT ME SECTION ********/
.text_highlight {
  font-size: 1.25em;
  font-weight: 800;
  color: transparent;
  background: var(--linear-gradient);
  background-clip: text;
  text-transform: uppercase;
  transition: 0.2s;
}

.text_highlight:hover {
  font-size: 1.35em;
}

.about_text {
  font-family: "Roboto", sans-serif;
  font-size: 3vb;
  font-weight: 600;
  line-height: 3.7vb;
  margin-top: 20px;
}

.parent {
  display: flex;
  margin: 0 auto;
  margin-top: 20px;
  justify-content: center;
  flex-direction: row;
  gap: 30px;
}

.children {
  display: flex;
  margin: 0px;
  background-color: var(--background-secondary-80);
  border-radius: 30px;
  -webkit-box-shadow: var(--box-shadow);
  -moz-box-shadow: var(--box-shadow);
  box-shadow: var(--box-shadow);
  justify-content: center;
}

.languages .hobbys {
  flex: 1;
  padding: 10px;
}

.hobbys {
  max-width: 800px;
}

.children p {
  padding: 10px;
  border-radius: 20px;
  font-size: 25pt;
  margin: 10px;
  font-weight: 600;
  color: var(--text-light);
  background: var(--linear-gradient-transparent);
}

.children ul {
  font-size: 20pt;
}

table {
  margin: 20px;
  margin-top: 0;
}

th {
  text-align: left;
  font-size: 20pt;
  padding: 8px;
}

td {
  min-width: 200px;
}

tr {
  font-size: 20pt;
}

.level {
  background-color: var(--background-primary-40);
  padding: 8px;
}

.language {
  background-color: var(--background-primary-40);
  padding: 8px;
}

.text-section2 {
  display: flex;
  color: var(--text-light);
  padding: 10px;
  margin-left: 0;
  font-size: 15pt;
  overflow: hidden; /* Overflow verstecken */
  gap: 5px;
}

.icon2 {
  font-size: 2.8vh;
  background: var(--linear-gradient);
  background-clip: text;
  color: transparent;
  transition: 0.3s;
  margin: 0;
  min-width: 60px; /* Anpassen falls notwendig */
  background-color: var(--background-primary);
  width: 5vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon2:hover {
  font-size: 3vh;
}

.title2 {
  font-weight: bold;
  color: var(--text-light);
  font-size: 1.25em;
}

.info2 {
  color: var(--primary-light);
  flex-grow: 1; /* Den Text den verbleibenden Platz ausfüllen lassen */
}

/* Neues CSS für den Text-Inhalt */
.text-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
/*******************************/

/******** CV SECTION ***********/
.design-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: "Roboto", sans-serif;
  padding: 10px;
}

.design {
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline {
  width: 100%;
  height: auto;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.timeline-content {
  padding: 20px;
  background-color: var(--background-primary-40);
  -webkit-box-shadow: 5px 5px 10px #1a1a1ac2, -5px -5px 10px #242424c2;
  box-shadow: 5px 5px 10px #1a1a1ac2, -5px -5px 10px #242424c2;
  color: white;
  padding: 1rem;
  transition: 0.4s ease;
  overflow-wrap: break-word !important;
  margin: 1rem;
  margin-bottom: 20px;
  border-radius: 6px;
}

.timeline-component {
  margin: 0px 20px 20px 20px;
}

@media screen and (min-width: 768px) {
  .timeline {
    display: grid;
    grid-template-columns: 1fr 3px 1fr;
  }
  .timeline-middle {
    position: relative;
    background-image: var(--linear-gradient);
    width: 3px;
    height: 100%;
  }
  .main-middle {
    opacity: 0;
  }
  .timeline-circle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 15px;
    height: 15px;
    background-image: var(--linear-gradient);
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
  }
}
/*******************************/

/******** SKILL SECTION ********/
.skill {
  margin-top: 0px;
  margin-bottom: 20px;
}

.skill span {
  float: right;
}

.skill div {
  width: 100%;
  float: left;
  margin-top: 5px;
  background: #ffffff;
  border-radius: 10px;
}

.skill div span {
  background: var(--linear-gradient);
  height: 5px;
  float: left;
}

.part {
  font-weight: 500;
  margin: 25px 10px 20px 20px;
  padding: 5px;
  background-color: var(--primary-black-50);
  width: fit-content;
  border-radius: 10px;
}
/*******************************/

/********** PROJECTS ***********/
.container {
  display: flex;
  align-items: start;
  justify-content: center;
  flex-direction: row;
  width: 90%;
  margin-left: 5%;
  margin-right: 5%;
  background-color: var(--background-secondary-80);
  border-radius: 30px 0px 0px 30px;
  margin-top: 30px;
}

.left {
  flex: 1;
  padding: 20px;
  text-align: left;
}

.right {
  flex: 2;
  position: relative;
}

.name {
  font-size: 24pt;
  font-weight: bold;
  margin-bottom: 10px;
  background: linear-gradient(to right, #44c4ff, #31e0ff, #00ffea);
  background-clip: text;
  color: transparent;
}

.name2 {
  font-size: 24pt;
  font-weight: bold;
  margin-bottom: 10px;
  background: linear-gradient(to right, #e42121, #f52323, #ff2f2f);
  background-clip: text;
  color: transparent;
}

.name1 {
  font-size: 24pt;
  font-weight: bold;
  margin-bottom: 10px;
  background: linear-gradient(to right, #f27121, #e94057, #8a2387);
  background-clip: text;
  color: transparent;
}

.description {
  margin-bottom: 0px;
  font-size: 15pt;
}

.gallery {
  max-height: 500px; /* Max Höhe anpassen */
  overflow: hidden;
  position: relative;
}

.gallery img {
  width: 100%;
  height: auto;
  display: none;
}

.highlight {
  font-size: 1.2em;
  background: linear-gradient(to right, #44c4ff, #31e0ff, #00ffea);
  background-clip: text;
  color: transparent;
  font-weight: 900;
}

.highlight2 {
  font-size: 1.2em;
  background: linear-gradient(to right, #ff3737, #ff1f1f, #ff0f0f);
  background-clip: text;
  color: transparent;
  font-weight: 900;
}

.highlight1 {
  font-size: 1.2em;
  background: linear-gradient(45deg, #f27121, #e94057, #8a2387);
  background-clip: text;
  color: transparent;
  font-weight: 900;
}

button {
  position: absolute;
  height: 2.5vh;
  width: 2.5vh;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  margin-left: 10px;
  margin-right: 10px;
  border: none;
  cursor: pointer;
  color: var(--background-primary);
  -webkit-box-shadow: var(--box-shadow);
  -moz-box-shadow: var(--box-shadow);
  box-shadow: var(--box-shadow);
  border-radius: 50%;
  background-color: var(--border-primary);
  transition: 0.3s;
}

.button:hover {
  height: 2.7vh;
  width: 2.7vh;
}

.prev {
  left: 0;
}

.next {
  right: 0;
}
/*******************************/

/******** media < 850 **********/
@media (max-width: 850px) {
  .navbar {
    width: 100%;
    position: relative;
    height: auto;
  }
  .sections {
    margin-left: 0;
    padding-bottom: 0;
  }
  .footer {
    position: relative;
    width: 100%;
  }

  .navbar-links {
    text-align: center;
    margin: 0;
    margin-bottom: 10px;
  }

  .navbar-links li a {
    display: block;
    color: var(--text-light);
    padding: 10px;
    font-weight: bold;
    font-size: 1.5vb;
    background-color: var(--background-primary);
    transition: background-color 0.5s, color 0.5s, box-shadow 0.5s, transform 0.5s,
      margin-bottom 0.5s;
  }

  .navbar-links li a:hover {
    background-color: var(--primary-light);
    color: var(--background-primary);
    transform: translateX(0vb);
  }

  /* .navbar-toggle {
    display: block;
    padding: 10px;
    color: var(--text-light);
    font-size: 24px;
    background-color: var(--background-secondary);
  } */

  .navbar img {
    width: auto;
    max-height: 200px;
    margin-top: 10px;
  }

  .text_navbar {
    margin-bottom: 10px;
  }

  .parent {
    display: flex;
    flex-direction: column;
  }

  .children {
    overflow-y: scroll;
  }

  .note {
    border-radius: 10px;
    margin: 0px 10px 10px 10px;
  }
}
/*******************************/

/******** media < 1800 *********/
@media (max-width: 1800px) {
  .parent {
    display: flex;
    flex-direction: column;
  }

  .children {
    overflow-y: scroll;
  }

  .footer {
    gap: 1vb;
  }

  .container {
    flex-direction: column;
    border-radius: 30px 30px 0px 0px;
  }

  .gallery {
    max-height: 300px;
  }
}
/*******************************/

/******** media < 635 *********/
@media (max-width: 635px) {
  .footer {
    flex-direction: column;
  }

  .text-section {
    margin: 0;
  }

  .location {
    margin-top: 5px;
    margin-bottom: 0px;
  }
  
  .email {
    overflow: hidden;
    margin-top: 0px;
    margin-bottom: 5px;
  }

  td {
    min-width: 0px;
  }
}
/*******************************/
