@import url('https://fonts.googleapis.com/css?family=Raleway');

body {
    margin: 0;
    font-family: 'Raleway', sans-serif;
    font-size: 16px; /* Grundgröße für die Schrift */
    line-height: 1.8em;
    overflow-x: hidden; /* Verhindert das seitliche Scrollen */
}

.bg {
    background-image: url('./img/bg-full.jpg');
    background-position: left 1000px;
    background-repeat: repeat-x;
    background-size: cover;
}

a {
    color: #e6e6fa;
    text-decoration: none;
}

a:hover {
    font-weight: bold;
    font-size: 18px; /* Größerer Schriftgröße bei Hover */
}

article {
    padding: 0 1em;
}

section {

}

header {
    background-image: url('./img/daniel-sessler-78kaMQmUUq4-unsplash.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    color: whitesmoke;
    height: 75vh; /* Höhe des Headers auf 50% der Bildschirmhöhe gesetzt */
		text-align: center;
}

header section {
    max-width: 640px;
    margin: 0 auto;
    padding: 1em;
}

img.Bimg {
    border-radius: 25%;
    border-style: groove;
    border-color: #36850a;
    max-width: 10%; /* Bildbreite auf 100% des verfügbaren Platzes */
    width: 20%;
    margin-bottom: 1vh; /* Kleinerer Abstand nach unten */

}

img.logopng {
    max-width: 16%; /* Bildbreite auf 100% des verfügbaren Platzes */
    width: 24%;
    border: none; /* Entfernt die Umrandung */

}

h1 {
    text-transform: uppercase;
    margin: 1em 0;
    color: #e6e6fa;
    text-shadow: 0.5px 0.5px #000;
    font-size: 24px; /* Größere Schriftgröße für Überschriften */
}

h3 {
    text-transform: uppercase;
    color: #008c36;
}

.hdrei {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 26px; /* Größere Schriftgröße für Überschriften */
    color: #555566;
}

.hdreiAg {
  font-weight: bold;
  text-transform: uppercase;
  font-size: 26px; /* Größere Schriftgröße für Überschriften */
  color: #555566;
  transition: letter-spacing 0.5s ease, color 0.5s ease; /* Übergangseffekte für letter-spacing und Farbe */
}
.AgU-section:hover .hdreiAg,
.Ags-section:hover .hdreiAg {
  letter-spacing: 16px;
  color: #008c36;
}

.hdrei:hover {
    color: #008c36;
}

.hvier {
  font-weight: bold;
  text-transform: uppercase;
  font-size: 42px; /* Größere Schriftgröße für Überschriften */
  color: #555566;
  transition: letter-spacing 0.5s ease, color 0.5s ease; /* Übergangseffekte für letter-spacing und Farbe */
}

.team-section:hover .hvier {
  letter-spacing: 16px;
  color: #008c36;
}

h3 {
    font-weight: bold;
    font-size: 22px; /* Größere Schriftgröße für Überschriften */
}


.course {
    display: flex;
    flex-wrap: wrap;
    position: relative; /* Für die absolute Positionierung des h4-Elements */
    overflow: hidden; /* Verhindert Overflow von child-Elementen */
}
.team-container {
  background-color: #f0f0f0;
  padding: 20px;
  margin: 20px;
  border-radius: 5px;
  overflow: hidden;
}



.team {
    display: flex;
    flex-wrap: wrap;
    position: relative; /* Für die absolute Positionierung des h4-Elements */
    overflow: visible;
}
.titley {
    color: #555566;
    flex: 0 0 33.3%;
    max-width: 33.3%;
    text-align: center;
    white-space: normal;
    transition: font-size 0.3s, font-weight 0.3s;
}


.titley:hover p,
.titley:hover div.titley {
    font-size: 20px;
    font-weight: bold;
}

.titley:hover h4 {
  font-size: 32px;
  font-weight: bold;
  letter-spacing: 4px;
}

.team h4 {
      white-space: normal;
              transition: font-size 0.3s, font-weight 0.3s;
              margin-top:2.7em;
      color: #008c36;
}


h4 {
    font-weight: bold;
    font-size: 22px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.course:hover #h4-r {
    font-size: 28px;
    letter-spacing: 24px;
    position: absolute;
    left: 5vw;
    transform: none;
    overflow: visible;
    white-space: normal;
}

.course:hover #h4-l {
    font-size: 28px;
    letter-spacing: 24px;
    position: absolute;
    right: 5vw;
    transform: none;
    overflow: visible;
    white-space: normal;
}

#h4-l {
  font-weight: bold;
  font-size: 22px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

#h4-r {
  font-weight: bold;
  font-size: 22px;
  transition: all 0.3s ease;
  white-space: nowrap;
}




p {
  transition: all 0.3s ease;
}
.course:hover p {
 margin-top: 65px;
}


main {
    max-width: 1140px;
    margin: 0 auto;
}

main section:not(:last-child) {
    border-bottom: 1px solid #ccc;
}

.fab {
    border: 1px solid white;
    border-radius: 50%;
    font-size: 1.5em;
    width: 1.5em;
    height: 1.5em;
    line-height: 1.5em;
    margin: 5px;
    text-align: center;
}

a .fab {
    color: white;
}


.skills {
    display: flex;
    flex-wrap: wrap;
}

.course .title,
.course .titlec,
.course .titlex {
    color: #008c36;
    flex: 0 0 33.3%;
    max-width: 33.3%;
    text-align: center;
}

.course .bild-text-r {
    color: #008c36;
    flex: 0 0 50%;
    max-width: 50%;
    text-align: center;
    overflow: hidden;
    height: inherit;
    width: inherit;
}

.course .text-bild-r {
    color: #008c36;
    flex: 0 0 50%;
    max-width: 50%;
    text-align: justify;
    margin-top: 3vh;
    overflow: hidden;
    height: inherit;
    width: inherit;
}

.course .bild-text-l {
    color: #008c36;
    flex: 0 0 50%;
    max-width: 50%;
    text-align: justify;
    margin-top: 3vh;
    overflow: hidden;
    height: inherit;
    width: inherit;
    animation: slideInFromLeft 1s ease-out;
}

.course .text-bild-l {
    color: #008c36;
    flex: 0 0 50%;
    max-width: 50%;
    text-align: center;
    overflow: hidden;
    height: inherit;
    width: inherit;
    animation: slideInFromRight 1s ease-out;
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}




.eximg {
    border-radius: 5%;
    border-style: groove;
    border-color: white;
    width: 420px;
    height: 420px;
    object-fit: cover;
    max-height: 45vh;
    margin-bottom: 1em;
    margin-right: 1em;
     transition: all 0.3s ease;
}
.course:hover .eximg {
    margin-top: 12vh;
}

.t-img {
    border: 5px double black;
    justify-content: center;
align-items: center;
cursor: pointer;
transition: transform 0.3s;
position: relative;
}
.t-img:hover {
    transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)) scale(1.1);
    z-index: 1;
}

.t-img:nth-child(1):hover {
    --rx: -15deg;
    --ry: 15deg;
}

.t-img:nth-child(2):hover {
    --rx: -15deg;
    --ry: -15deg;
}

.t-img:nth-child(3):hover {
    --rx: 15deg;
    --ry: 15deg;
}

.t-img:nth-child(4):hover {
    --rx: 15deg;
    --ry: -15deg;
}



.t-r-img {
    border: 5px double black;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s;
    position: relative;
}

.t-r-img:hover {
    transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)) scale(1.1);
    z-index: 1;
}

.t-r-img:nth-child(1):hover {
    --rx: 0deg;
    --ry: 0deg;
}

.course .title:hover,
.course .titlec:hover,
.course .titlex:hover {
    color: #555566;
}

.course .descrition {
    flex: 0 0 100%;
    max-width: 100%;
    margin-top: 1em;
    text-align: justify;
}

.course .descrition p {
    padding-left: 7.2em;
}

.course .descrition:hover {
    font-size: 17px;
    transition: 0.3s;
    font-weight: bold;
}

.skills .column {
    flex: 0 0 100%;
    max-width: 100%;
}

.skills .column ul,
ul.job-description {
    list-style-type: none;
}

.skills .column ul>li:before {
    content: "►";
    padding-right: 0.5em;
    color: #008c36;
}

.school,
.job-title {
    text-transform: capitalize;
}

.school span,
.job-title span {
    color: #889499;
    text-decoration: underline;
}

ul.job-description li:before {
    content: "✔";
    padding-right: 0.5em;
    color: #008c36;
}

footer {
    padding: 1em 1.5em;
    color: white;
    text-align: center;
    background-image: url('./img/daniel-sessler-78kaMQmUUq4-unsplash.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

.psm {
    font-size: 16px;
    font-weight: bold;
    color: white;
}

.mail {
    font-weight: bold;
    color: white;
}

@media only screen and (max-width: 768px) {
    header {
        height: 40vh;
    }

    .course .title,
    .course .titlec,
    .course .titlex,
    .course .descrition,
    .skills .column {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
.course .descrition p {
    padding-left: 7.2em;
}

.course .descrition:hover {
    font-size: 17px;
    transition: 0.3s;
    font-weight: bold;
}
.linkLeitbild {
    text-transform: uppercase;
    font-size: 1.0625rem;
    color: #555566;
}

.linkLeitbild:hover {
    color: #008c36;
    font-size: 1.375rem;
    transition: 0.3s;
}



.description {
    flex: 0 0 100%;
    max-width: 100%;
    margin-top: 1em;
    text-align: justify;
}

.description p {
    padding-left: 7.2em;
}

.description:hover {
    font-size: 17px;
    transition: 0.3s;
    font-weight: bold;
}



/* ---------------------------------------------- FÜR MOBILE ANWENDUNGEN/KLEINE DISPLAYS ----------------------------------------*/
/* Reduziere die Höhe des Headers für Handynutzer */
@media only screen and (max-width: 768px) {
    header {
        height: 30vh;
    }
}

/* Ändere die Schriftgröße der Überschriften für bessere Lesbarkeit auf kleinen Bildschirmen */
@media only screen and (max-width: 768px) {
    h1 {
        font-size: 20px;
    }

    h3 {
        font-size: 18px;
    }

    .hdrei,
    .hdreiAg,
    .hvier {
        font-size: 22px;
    }

    h4 {
        font-size: 18px;
    }
}

/* Ändere die Breite der Bilder für Handynutzer */
@media only screen and (max-width: 768px) {
    .eximg {
        width: 100%;
        height: auto;
        margin-bottom: 0.5em;
        margin-right: 0;
    }
}

/* Reduziere den Abstand zwischen den Absätzen für Handynutzer */
@media only screen and (max-width: 768px) {
    p {
        margin-bottom: 0.5em;
    }
}

/* Reduziere die Breite der Kurscontainer für Handynutzer */
@media only screen and (max-width: 768px) {
    .course .title,
    .course .titlec,
    .course .titlex,
    .course .descrition,
    .skills .column {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Ändere den oberen Abstand der Beschreibungen für Handynutzer */
@media only screen and (max-width: 768px) {
    .course .descrition,
    .description {
        margin-top: 0.5em;
    }
}

/* Entferne die Umrandung der Bilder für Handynutzer */
@media only screen and (max-width: 768px) {
    .eximg {
        border: none;
    }
}

/* Ändere das Layout der Kurscontainer für Handynutzer */
@media only screen and (max-width: 768px) {
    .titley {
        flex: 0 0 100%;
        max-width: 100%;
        text-align: center;
    }

    .titley:hover p,
    .titley:hover div.titley {
        font-size: 20px;
        font-weight: bold;
    }

    .titley:hover h4 {
        font-size: 32px;
        font-weight: bold;
        letter-spacing: 4px;
    }

    .team h4 {
        white-space: normal;
        transition: font-size 0.3s, font-weight 0.3s;
        margin-top: 0.5em;
    }

    .course .eximg {
        width: 70%;
        margin: 0 auto 0.5em;
    }

    .course .descrition {
        margin-top: 0.5em;
    }
}
