
/* =========================================
   Farben
   ========================================= */

:root {
  --bg: #35506a;
  --bg-shadow: #2a3f55;
  --bg-sub: #406080;
  --hover: #5a7ea0;
  --focus: #8ec0e0;
  --bg-trans: rgba(53, 80, 106, 0.95);
}


/* =========================================
   Hero-Bereich
   ========================================= */

.hero {
  background-image: url('../images/about_me/bg_ich.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  height: 300px;
  height: 45vh;

  width: 100%;
  margin-top: 0;
}


/* =========================================
   Personenabschnitt
   ========================================= */

.person {
  display: flex;
  flex-direction: column;

  max-width: 100rem;
  margin: 0 auto;
  padding: 2rem;
}

.person img {
  display: block;
  width: 100%;
  max-width: 400px;
  height: auto;

  border-radius: 10px;
  align-self: center;

  margin-bottom: 2rem;
}


/* =========================================
   Personenabschnitt - Desktop
   ========================================= */

@media (min-width: 1000px) {
  .person {
    flex-direction: row;
    align-items: flex-start;
  }

  .person img {
    margin-bottom: 0;
    margin-right: 3rem;
  }
}


/* =========================================
   Fakten / Autor-Informationen
   ========================================= */

.author-info {
  display: flex;
  flex-direction: column;

  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.author-section {
  width: 100%;
  margin-bottom: 2rem;
}

.author-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.author-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}


/* =========================================
   Lebenslauf-Einträge
   ========================================= */

.author-entry {
  display: flex;
  align-items: flex-start;

  margin-bottom: 1.5rem;
}

.year-range {
  display: flex;
  flex-direction: column;
  justify-content: center;

  background-color: #4a90e2;
  color: #fff;

  font-weight: bold;
  font-size: 1.2rem;
  text-align: center;

  padding: 1rem;
  border-radius: 12px;

  min-width: 5rem;
  line-height: 1.3;

  margin-right: 1rem;
}

.education .year-range {
  background-color: #e2b54a;
}

.author-entry p {
  margin: 0;
  line-height: 1.5;
}


/* =========================================
   Skills
   ========================================= */

.skills-list li {
  display: flex;
  flex-direction: column;

  margin-bottom: 1.5rem;
}

.skill-name {
  font-weight: bold;
  margin-bottom: 0.3rem;
}


/* =========================================
   Fortschrittsbalken
   ========================================= */

.progress {
  width: 100%;
  height: 1rem;

  background-color: #e0e0e0;

  border-radius: 0.5rem;
  overflow: hidden;

  margin-top: 0.3rem;
}

.progress-bar {
  height: 100%;

  background-color: #8fe24a;

  border-radius: 0.5rem 0 0 0.5rem;

  transition: width 1s ease-in-out;

  width: 0;
}


/* =========================================
   Prozent-Klassen
   ========================================= */

.progress-100 { width: 100%; }
.progress-90  { width: 90%; }
.progress-80  { width: 80%; }
.progress-75  { width: 75%; }
.progress-70  { width: 70%; }
.progress-60  { width: 60%; }


/* =========================================
   Desktop: Autor-Informationen
   ========================================= */

@media (min-width: 768px) {

  .author-info {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .author-section {
    width: 30%;
    margin-right: 3%;
  }

  .author-section:nth-child(3n) {
    margin-right: 0;
  }

  .author-entry {
    /* Ersatz für flex gap */
    margin-bottom: 1.5rem;
  }

  .year-range {
    margin-right: 1.5rem;
  }
}
