/* =========================
   Base
   ========================= */
@font-face {
  font-family: Gilroy;
  src: url(Gilroy-Medium.ttf);
}

body {
  margin: 0;
  padding: 0;
  display: flex;
  font-family: 'Gilroy', sans-serif;
  background-color: #f8f8f8;
  color: #222;
  width: 100%;
  height: auto;
}

/* =========================
   Typography
   ========================= */
h1 {
  font-size: 3rem;
  margin-bottom: 1.8rem;
}

h2 {
  font-size: 2rem;
  line-height: 3rem;
  margin-top: 6rem;
  font-weight: bolder;
}

#leftside h2 {
  margin-top: 2rem; /* nur der Unterschied */
}

h3 {
  font-size: 1.8rem;
  margin-top: 1rem;
  font-weight: 500;
  line-height: 2;
}

h3::after {
  content: "";
  display: block;
  margin-top: 2px;
  width: 50%;
  height: 10px;
  background-color: green;
  opacity: 0.7;
}

p {
  font-size: 1.4rem;
  line-height: 1.6;
  margin: 1.4rem 0;
}

li {
  font-size: 1.4rem;
  line-height: 2rem;
  margin-bottom: 0.3rem;
}

/* =========================
   Layout / Container
   ========================= */
#flex-container {
  display: flex;
  width: 100%;
  background: #fff;
  box-shadow: 0 0 15px rgba(0,0,0,0.05);
  box-sizing: border-box;
}

/* =========================
   Sides
   ========================= */
#leftside {
  background: rgb(46,90,79);
  background: linear-gradient(100deg, rgba(46,90,79,1) 10%, #2ec077 100%);
  width: 35%;
  height: auto;
  color: #fff;
  padding: 2rem;
  box-sizing: border-box;
  animation: forleftside 1s ease-out forwards;
}

#rightside {
  background: #fff;
  width: 65%;
  padding: 10rem;
  box-sizing: border-box;
  animation: forrightside 3s ease-out forwards;
}

/* =========================
   Animations
   ========================= */
@keyframes forleftside {
  0% { margin-right: 40%; }
  100% { margin: 0%; }
}

@keyframes forrightside {
  0% { margin-top: 100%; }
  100% { margin: 0%; }
}

@keyframes showup {
  0% {
    opacity: 0;
    margin-left: 100%;
  }
  50% { opacity: 0; }
  100% {
    opacity: 1;
    margin: 0;
  }
}

/* =========================
   Portrait
   ========================= */
#flex-container .portrait {
  max-width: 300px;
  max-height: 300px;
  object-fit: cover;
  margin-bottom: 1rem;
}

/* =========================
   Personal
   ========================= */
#personal {
  margin-bottom: 2rem;
  animation: showup 3s ease-out forwards;
}

#personal p {
  margin: 0.2rem 0;
}

/* =========================
   Sections
   ========================= */
.quali,
.speak,
.workxp,
.ausbildung {
  padding: 0;
  line-height: 0.4rem;
  animation: showup 4.5s ease-out forwards;
}

/* leichte Abweichungen beibehalten */
.quali {
  animation-duration: 4s;
}
.speak {
  animation-duration: 4.5s;
}
.workxp {
  animation-duration: 4.5s;
}

/* =========================
   Links
   ========================= */
a {
  color: #ffffff;
  text-decoration: underline;
}

/* =========================
   Lists (IMPORTANT: consolidated)
   ========================= */
ul {
  list-style: none;
  padding: 0;
  margin: 0 0 4rem;
}

/* =========================
   Mobile
   ========================= */
@media (max-width: 700px) {

  #flex-container {
    flex-direction: column;
  }

  #leftside {
    width: 100%;
    text-align: center;
    position: static;
  }

  #rightside {
    width: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
    /* deine mobile version hatte keine padding-angabe -> sonst bleibt 10rem aktiv.
       Deshalb setzen wir hier sicher ein mobiles Padding. */
    padding: 2.5rem 1.6rem;
  }

  #rightside p {
    margin-bottom: 2rem;
  }

  /* Typography mobile (deine Werte, nur konsistent) */
  h1 {
    font-size: 3rem;
    margin-bottom: 1.8rem;
  }

  h2,
  #leftside h2 {
    font-size: 2rem;
    font-weight: bold;
    line-height: 1.35;
    margin-top: 2rem;
  }

  h3 {
    font-size: 1.5rem;
    font-weight: bold;
  }

  p {
    font-size: 1.8rem;
    margin: 0.2rem 0;
  }

  li {
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
  }

  ul {
    margin-bottom: 1rem;
  }

  /* Farben (wie vorher, nur redundant entfernt) */
  #leftside {
    background-color: #2e5a4f; /* entspricht deinem mobile override */
    color: #fff;
  }

  #rightside {
    background-color: #ffffff;
  }

  /* Portrait mobile */
  #flex-container .portrait {
    max-width: 250px;
    max-height: 250px;
  }

  /* Personal mobile */
  #personal {
    margin-bottom: 5rem;
  }

  #personal p {
    font-size: 1.5rem;
  }

  /* Sections spacing mobile */
  .quali,
  .speak,
  .workxp {
    margin: 2rem;
    margin-bottom: 5rem;
  }
}
