@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

/*-----------------Generelles Layout definieren-----------------*/
* {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: #ffffff;
  color: #0E111E;
}

img {
  display: block;
  border-radius: 1rem;
  max-width: 100%;
  margin-bottom: 1rem;
}

.dark_blue_section, .dark_blue_section.thesis{
  background-color: #1C378F;
  color: #ffffff;
  padding: 4rem 2rem;
}

.white_section, .white_section_start, .white_section.thesis { padding: 4rem 2rem; }

/* Textabschnitte definieren */
h1, h2, h3 {
  font-style: bold;
  line-height: 1.6;
}

h1 {
  text-align: center;
  font-size: 3rem;
  margin-top: 1rem;
}

h2 { font-size: 2.5rem; }

h3 { font-size: 2rem; }

p {
  font-style: normal;
  font-size: 1rem;
  line-height: 1.3;
}

figcaption { 
  font-style: oblique; 
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
}


/*-----------------Navigation-----------------*/
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.8rem;
  background-color: #ffffff;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.8rem;
  background-color: #ffffff;
  border-bottom: 0.063rem solid #B0DAFF;
}

ul { list-style-type: none ; }

/* Logo und Titel (links) */
.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.875rem;
  color: #0E111E;
}

.logo img {
  height: 2.5rem;
  margin-top: 1rem;
  margin-right: 0.625rem;
  transition: transform 0.5s ease; 
}

.logo:hover img { transform: rotate(360deg); }

/* Navigation Seite (rechts) */
nav  ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav ul li a {
  text-decoration: none;
  font-weight: 400;
  font-size: 1.25rem;
  color: #0E111E;
  transition: color 0.2s ease;
}

ul li a:hover { color: #1C378F; }

/* Dropdown Menü */
.dropdown { position: relative; }

.dropdown .dropdown-content {
  display: none;
  position: absolute;
  background: #ffffff; /* Weiß, weil sonst wäre es durchsichtig */
  box-shadow: 0rem 0.5rem 1rem 0rem rgba(0,0,0,0.2);
  min-width: 9.375rem;
  padding: 0.75rem 1rem;
  margin-right: auto;
  z-index: 1;
}

.dropdown-content li { padding: 1.25rem, 1rem; }

.dropdown-content li a {
  color: #0E111E;
  font-size: 1rem;
  display: block;
  text-decoration: none;
  text-align: left;
  padding: 1rem;
}

.dropdown-content li a:hover { background-color: #B0DAFF; }

/* Toggle-Button standardmäßig ausblenden */
.HamburgerMenu-toggle { display: none; }

hamburger-menu { display: contents; }


/*-----------------Footer-----------------*/
footer {
  display: grid;
  grid-template-columns: auto 30% auto;
  grid-template-areas: "left center right";
  padding: 0.625rem;
  border-top: 0.063rem solid #B0DAFF;
}

.footer-nav {
  padding: 1.25rem;
  font-size: 1.875rem;
  text-align: center;
}

.footer-logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-logo {
  width: 3.125rem;
  height: auto;
  margin-top: 1rem;
  transition: transform 0.5s ease;
}

.footer-logo-container:hover .footer-logo { transform: rotate(360deg); }

.footer-nav a {
  text-decoration: none;
  color: #0E111E;
  font-size: 1.25rem;
}

/* Definition wo die elemente stehen sollen damit es nicht verschiebt */
.footer-nav:first-of-type { grid-area: left; }
.footer-logo-container { grid-area: center; }
.footer-nav:last-of-type { grid-area: right; }


/*-----------------Seitenspezifische Anpassungen-----------------*/

/*-----------------Startseite-----------------*/
.white_section_start {
  background-color: #ffffff;
  display: grid;
  align-items: center;
  grid-template-columns: 1fr 1fr;
}

.left_part {
  position: relative;
  text-align: center;
  align-content: center;
}

.left_part p {
  font-size: 1.5rem;
  line-height: 0.2;
}

.rotating_container {
  position: absolute;
  top: 70%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.rotate_img {
  animation: rotate 10s linear infinite;
  opacity: 0.1;
  width: 9.5rem;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.right_part {
  display: flex;
  justify-content: center;
  align-items: center;
}

.Profil {
  width: 35%;
  height: auto;
}

/* Zitat/Kurzbeschreibung von Manuel */
.centered_text { 
  font-style: oblique;
  text-align: center; 
  line-height: 1.5;
}

/* Karussell */
.container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  position: relative;
  width: 100%;
  max-width: 70rem;
  margin: 0 auto;
  gap: 2rem;
  padding: 2rem;
  text-align: left;
}

.container p { margin-bottom: 1.5rem; }

#carousel-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  box-shadow: 0rem 0.5rem 1rem 0rem rgba(0,0,0,0.2);
}

#right-btn {
  position: absolute;
  top: 50%;
  left: 45%;
  transform: translateY(-50%);
  background: #1C378F;
  border: none;
  padding: 1rem;
  cursor: pointer;
}

.arrow {
  border: solid #ffffff;
  border-width: 0 0.25rem 0.25rem 0;
  display: inline-block;
  padding: 0.625rem;
  transform: rotate(-45deg);
}

/* Statistiken */
.stats {
  display: flex;
  justify-content: space-between;
  text-align: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.stats div {
  flex: 1 1 0;
  padding: 1rem;
  text-align: center;
}

.stats p { font-size: 1.8rem; }

/* Auflistung der Inhalte */
.image-text-block {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 3rem 4rem;
  flex-wrap: wrap;
}

.image-text-block img {
  width: 30%;
  height: auto;
  box-shadow: 0rem 0.5rem 1rem 0rem rgba(0,0,0,0.2);
}

.image-text-block > div {
  flex: 1 1 18.75rem;
  background-color: #f4f9ff;
  padding: 2rem;
  border-radius: 1rem;
}

.image-text-block a {
  text-decoration: none;
  color: inherit;
}

.image-text-block > div:hover { box-shadow: 0rem 0.5rem 1rem 0rem rgba(0,0,0,0.2); }


/*-----------------About Me-----------------*/
/* Einleitungstexte */
.aboutMe_texts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  max-width: 100%;
}

.introduction, .academic_career {
  grid-column: auto;
  margin-right: 1.25rem;
}

/* Erfahrungskästchen (dunkelblau/weiß) */
.skill {
  display: grid;
  grid-template-columns: 10rem auto;
  margin-bottom: 0.313rem;
}

.boxes {
  display: inline-flex;
  gap: 0.125rem;
}

.box {
  width: 0.75rem;
  height: 0.75rem;
  border: 0.063rem solid #0E111E;
  background-color: #ffffff;
}

.box.filled { background-color: #0E111E; }

/* Erfahrungsboxen Anordnung */
.skills_grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.875rem;
}

.skill { margin-top: 0.5rem; }

.skill_block {
  background: #ffffff;
  padding: 1.563rem;
  border-radius: 0.5rem;
  border-left: 0.313rem solid #B0DAFF;
}

.skill_block h3 { color: #0E111E; }

.skill_block.experiences ul {
  margin-top: 1.55rem;
}

.skill_block ul {
  color: #0E111E;
  list-style: none;
}

.skill-title, .webinar-title {
  color: #1C378F;
  display: inline-block;
  margin-top: 0.8rem;
  font-weight: 600;
  font-size: 1.1em;
}

/* Lebenslauf */
.white_section.resume { padding: 4rem 0; }

.white_section.resume h2, .white_section.resume .blue_button { margin-left: 2rem; }

.resume_cards {
  display: flex;
  overflow-x: auto;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  scroll-snap-type: x mandatory;
  padding: 0 2rem;
  scroll-padding-left: 2rem;
  scroll-padding-right: 2rem;
}

.card {
  min-width: 18.75rem;
  max-width: 25rem;
  color: #ffffff;
  background: #1C378F;
  padding: 1.563rem;
  border-radius: 0.5rem;
  flex-shrink: 0;
  scroll-snap-align: start;
}

.card p, .card li { margin-bottom: 0.5rem; }

.resume-title {
  font-weight: 600;
  font-size: 1.1em;
  display: block;
  margin: 0.85rem 0 0.85rem 0;
}

/* Buttons */
.blue_button {
  padding: 0.75rem 1.25rem;
  background-color: #1C378F;
  color: #ffffff;
  border: none;
  border-radius: 1rem;
}

.blue_button:hover { background-color: #5375C4; }

a.blue_button {
  color: #ffffff;
  text-decoration: none;
}

/* Auslandsaufenthalte */
.stay {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  justify-items: start;
  margin: 1.875rem 10rem;
  gap: 1.25rem;
}

.stay-title {
  font-weight: 600;
  color: #ffffff;
  display: inline-block;
  margin-bottom: 0.313rem;
  margin-top: 0.625rem;
  font-size: 1.5em;
}

.stay .text {
  grid-column: 1;
  color: #ffffff;
}

.stay .image {
  grid-column: 2;
  max-width: 100%;
  height: auto;
}

/* Zertifikate */
.certificates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(1rem, 1fr));
  gap: 1rem;
}

.certificate-card h3 {
  font-size: 1.1rem;
  color: #1C378F;
}

/* Zertifikate und Kontaktboxen */
.certificate-card, .contact {
  background-color: #f4f9ff;
  border-left: 0.313rem solid #1C378F;
  padding: 0.75rem;
  border-radius: 0.5rem;
  box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.certificate-card:hover, .contact:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0rem 0.5rem 1rem 0rem rgba(0,0,0,0.2);
}

/*-----------------Publikationen-----------------*/
.white_section.thesis p, .dark_blue_section.thesis p {
  position: relative;
  max-width: 85%;
  margin: 0 auto;
  padding: 0.5rem;
  text-align: left;
}

.thesis { overflow: hidden; }

.white_section.thesis figure, .dark_blue_section.thesis figure{
  width: 20%;
  height: auto;
  padding: 1rem;
  border-radius: 1rem;
  margin-bottom: 1rem;
} 

figure.left {
  float: left;
  margin-right: 1rem;
}

figure.right {
  float: right;
  margin-left: 1rem;
}

.white_section.thesis figure img, .dark_blue_section.thesis figure img { transition: transform 0.3s ease; }

.white_section.thesis figure:hover img, .dark_blue_section.thesis figure:hover img { transform: scale(1.2); }

/*-----------------Kontakt-----------------*/
/* Kontaktboxen */
.contact-boxes {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.25rem;
  text-decoration: none;
}

.contact-boxes h2 { font-size: 1.75rem; }

/* Kontaktformular */
.contact-form {
  background-color: #ffffff;
  color: #0E111E;
  max-width: 62.5rem;
  margin: 2.5rem auto;
  padding: 1.25rem;
  border-radius: 0.5rem;
}

.form-row_double {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  padding: 1.25rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  margin: 1.25rem; 
}

input, textarea, select {
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  padding: 0.625rem 0;
  border: none;
  border-bottom: 0.125rem solid #ccc;
  background-color: transparent;
  border-radius: 0;
  outline: none;
  width: 100%;
  transition: border-color 0.3s;
}

textarea {
  height: 10rem;
  margin-top: 1rem;
  padding: 1rem;
  border: 0.125rem solid #ccc;
  border-radius: 0.5rem;
}

input[type="file"] { border: none; }

input:focus, textarea:focus, select:focus { border-bottom-color: #1C378F; }

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.313rem;
  margin: 0.313rem 0;
}

.checkbox-row input[type="checkbox"] { margin-top: 0.25rem; }

@media screen and (min-width: 48.01em) {
  .dropdown:hover .dropdown-content { display: block; }
}

/*-----------------Handy- und Tablet-Bildschirm-----------------*/
@media screen and (max-width: 48em) {

  .dropdown .dropdown-content { display: none; }

  .skill-toggle:checked + .skill-label + .dropdown-content { display: block; }

  .header-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
  }

  .HamburgerMenu-toggle {
    display: flex;
    border: none;
    font-size: 1.5rem;
    font-family: inherit;
    background-color: #ffffff;
    margin-top: 1rem;
    margin-left: 0.5rem;
    cursor: pointer;
  }

  .HamburgerMenu-overlay {
    display: none;
    width: 100%;
    position: relative;
    margin-top: 1rem;
    z-index: 9999;
    padding: 0.40rem 1.5rem;
  }

  .HamburgerMenu-overlay:not(.is-hidden) {
    display: block;
    flex-direction: column;
    justify-content: flex-start;
  }

  .HamburgerMenu-overlay ul {
    display: flex;
    flex-direction: column;
  }

  /*-----------------Startseite-----------------*/
  .left_part h1 { 
    line-height: 3rem; 
    margin-bottom: 1rem;
  }

  .left_part p { line-height: 1; }

  .Profil {
    width: 30rem;
    height: auto;
  }

  .container {
    grid-template-columns: 1fr;
    padding: 0;
  }

  #right-btn { 
    position: static;
    margin-top: -3.5rem;
    transform: none;
  }

  .carousel-text .blue_button {
    position: static;
    transform: none;
    display: block;
    padding: 2rem;
    text-align: center;
  }

  .image-text-block {
    flex-direction: column;
    padding: 2rem;
  }

  .image-text-block img {
    width: 100%;
    order: -1;
  }

  .image-text-block > div { flex: 0; }

  /*-----------------About Me-----------------*/
  /* Einleitungstext */
  .aboutMe_texts { grid-template-columns: 1fr; }

  /* Skills */
  .skills_grid { grid-template-columns: 1fr; }

  .skill-dropdown { display: none; }

  .skill-toggle:checked + .skill-label + .skill-dropdown { display: block; }

  .white_section.resume .blue_button { 
    margin: 1rem 2rem; 
    padding: 2rem;
    text-align: center;
    display: block;
  }

  /* Auslandsaufenthalte */
  .stay {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    margin: 1.875rem auto;
  }

  .stay .image {
    grid-column: 1;
    grid-row: 1;
  }

  .stay .text {
    grid-column: 1;
    grid-row: 2;
    margin-top: -1.5rem;
    margin-bottom: 2rem;
  }

  /* Zertifikate */
  .certificates { grid-template-columns: 1fr; }

  /*-----------------Publikationen-----------------*/
  .white_section.thesis p, .dark_blue_section.thesis p {
    padding: 0.5rem 1rem;
    max-width: 100%;
  }
  
  .white_section.thesis figure, .dark_blue_section.thesis figure {
    float: none;
    width: 80%;
    text-align: center;
  }

  figure.left, figure.right {
    float: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 1rem auto;
  }

  /*-----------------Kontakt-----------------*/
  /* Kontaktboxen */
  .contact-boxes { grid-template-columns: 1fr; }

  /* Kontaktformular */
  .form-row_double { flex-direction: column; }

  .buttons_contact {
    display: flex;
    flex-direction: column;
  }

  .contact-form .blue_button { 
    margin-top: 1rem; 
    padding: 2rem;
    text-align: center;
  }
}

/*-----------------Handy-Spezifikation-----------------*/
@media screen and (max-width: 28em) {

  .dark_blue_section, .dark_blue_section.thesis, .white_section, 
  .white_section_start, .white_section.thesis, .image-text-block {
    padding: 2rem 1rem;
  }
  
  .carousel-text .blue_button { padding: 1rem; }

  .white_section.resume h2, .white_section.resume .blue_button { margin-left: 1rem; }

  .resume_cards {
    padding: 0 1rem;
    scroll-padding-left: 1rem;
    scroll-padding-right: 1rem;
  }

  .white_section.resume .blue_button { margin: 0.5rem 1rem; }

  .white_section.thesis p, .dark_blue_section.thesis p { padding: 0 0.4rem; }
}

/*-----------------Dokumentation----------------*/
.Timelist .white_section img, .Timelist .dark_blue_section img{
  width: 50%;
  border: 3px #0E111E solid;
}

.Timelist figcaption {
  font-style: normal; 
  font-size: 1.5rem;
}

.doku .white_section p, .doku .dark_blue_section p{
  position: relative;
  max-width: 50%;
  margin: 0 auto;
  padding: 0.5rem;
  text-align: left;
}

.doku .white_section figure, .doku .dark_blue_section figure{
  width: 20%;
  height: auto;
  padding: 1rem;
  border-radius: 1rem;
  margin-bottom: 1rem;
}

.doku .white_section, .doku .dark_blue_section { overflow: hidden; }

.doku .white_section h2, .doku .dark_blue_section h2, .doku .white_section h3, .doku .dark_blue_section h3 {
  position: relative;
  max-width: 70%;
  margin: 0 auto;
  padding: 0.5rem;
}

