/* Globale Regeln zur Vermeidung von Überlauf */
html, body {
  overflow-x: hidden;
  box-sizing: border-box;
}
*, *::before, *::after {
  box-sizing: inherit;
}

/* Hauptlayout */
main {
  display: flex;
  flex-direction: column;
}

/* Bildzentrierung */
.image-container {
  text-align: center;  /* Zentriert das Bild */
  margin-bottom: 30px;  /* Abstand nach dem Bild */
}

.profile-image {
  width: 300px; /* Breite des Bildes (kann angepasst werden) */
  height: 300px; /* Höhe des Bildes (kann angepasst werden) */
  object-fit: cover; /* Verhindert Verzerrung des Bildes */
  border-radius: 50%; /* Macht das Bild rund */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Leichter Schatten um das Bild */
}

/* Stil für die Branchenerfahrungs-Liste */
.skill-group ul {
  list-style: none;
  padding: 0;
}

.skill-group ul li {
  font-size: 1.2em;
  color: white;
  padding: 8px 0;
  display: flex;
  align-items: center;
}

.skill-group ul li .dot {
  width: 8px; /* Sehr kleiner Punkt */
  height: 8px;
  background-color: #09cc94;
  border-radius: 50%;
  margin-right: 10px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.3); /* Leichter Schatten für einen schwebenden Effekt */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Allgemeine Sektion für Dynamics */
.skill-container {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.skill-group {
  flex: 1;
  min-width: 300px;
}

.dynamics {
  margin: 40px 0;
  text-align: left;
  width: 100%;
  padding-left: 20px;
}

.dynamics h2 {
  font-size: 2em;
  color: #09cc94;
  margin-bottom: 20px;
}

.dynamics p {
  font-size: 1.2em;
  color: white;
  margin-bottom: 20px;
}

.skill-group {
  width: 100%;
  margin-bottom: 60px;
  padding: 20px;
  background-color: rgba(9, 204, 148, 0.1);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.skill-group h3 {
  font-size: 1.5em;
  color: #09cc94;
  margin-bottom: 10px;
}

/* Fortschrittsbalken */
.skill {
  width: 100%;
  position: relative;
}

.progress-container {
  width: 100%;
  height: 25px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 15px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(to right, #56ccf2, #7a89ff, #9e4fff, #0db6b9);
  border-radius: 15px;
  transition: width 2s ease-in-out;
}

.progress-percent {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-weight: bold;
}

/* Skill Section */
.skills {
    margin: 20px 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding-left: 20px;
}
  
/* Überschrift der Skill Section */
.skills h2 {
    font-size: 2em;
    color: #09cc94;
    margin-bottom: 20px;
}
  
/* Allgemeine Gruppen-Trennung */
.skill-group {
    width: 100%;
    margin-bottom: 40px;
    padding: 20px;
    background-color: rgba(9, 204, 148, 0.1);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    opacity: 1; /* Standard Zustand: Alle Gruppen sind sichtbar */
    transition: opacity 0.3s ease;
}
  
/* Label für die Gruppe */
.skill-group h3 {
    font-size: 1.5em;
    color: #09cc94;
    margin-bottom: 10px;
}
  
/* Skill Box */
.skill {
    width: 100%;
    position: relative;
    opacity: 1;
    transition: opacity 0.3s ease;
}
  
/* Fortschrittsbalken – Standardanzeige */
.progress-container {
    width: 100%;
    height: 25px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
  
.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(to right, #56ccf2, #7a89ff, #9e4fff, #0db6b9);
    border-radius: 15px;
    transition: width 2s ease-in-out;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
  
.progress-percent {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-weight: bold;
    opacity: 1;
    transition: opacity 0.3s ease;
}
  
.progress-container:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.4);
}
  
.skills:not(:hover) .skill-group {
    opacity: 1;
}
  
.skills:hover .skill-group {
    opacity: 0.3;
}
  
.skills .skill-group:hover {
    opacity: 1;
}

.skill label i {
    margin-right: 10px;
    font-size: 1.2em;
}

/* Lebenslauf / Werdegang */
.career {
  width: 100%;
  margin: 10px 0;
  padding-left: 20px;
  text-align: left;
}

.career h2 {
  font-size: 2em;
  color: #09cc94;
  margin-bottom: 20px;
  text-align: left;
}

.career-timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.career-item {
  background: rgba(9, 204, 148, 0.1);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.career-item:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.career-item h3 {
  font-size: 1.5em;
  color: #09cc94;
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.career-item h3 i {
  margin-right: 10px;
  font-size: 1.3em;
}

.career-period {
  font-size: 1.1em;
  color: #ffffff;
  margin-bottom: 8px;
}

/* Erzwingt den Textumbruch bei langen Inhalten */
.career-description {
  font-size: 1.1em;
  color: #ffffff;
  line-height: 1.5;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Media Query für mobile Geräte (bis 768px Breite) */
@media screen and (max-width: 768px) {
  /* Im Dynamics-Bereich: Branchenbereiche untereinander stapeln */
  .skill-container {
    flex-direction: column;
  }
  /* Aufheben der Mindestbreite, um Überlauf zu vermeiden */
  .skill-group {
    min-width: 0;
  }
  
  /* Reduzierter horizontaler Abstand für den gesamten Inhalt */
  main {
    padding: 0 10px;
  }
  .dynamics,
  .skills,
  .career {
    padding-left: 5px;
    padding-right: 5px;
  }
}

