:root{
    --light-green: #5B9B74;
    --light-light-green: #CCE0D4;
    --white-color: #f5f5f5;
    --black-color: #1e1e1e;

    --headline-font-size: clamp(16px, 2.2dvw, 26px);
    --headline-span-font-size: clamp(26px, 3dvw, 36px);
    --paragraph-font-size: clamp(13px, 1.5dvw, 17px);

    --desktop-menu-font-size: clamp(12px, 1.3dvw, 18px);

    --mobile-margin-top-section: 6.5vh;
}

::-webkit-scrollbar {
    display: none;
}

* {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    box-sizing: border-box;
    font-size: var(--paragraph-font-size);
}

html, body {
    margin: 0;
    padding: 0;
    width: 100dvw;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    padding: 1em 1em;
    background-color: var(--white-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

body *{
    color: var(--black-color);
}

body.dark-mode {
    background-color: var(--black-color);
}

body.dark-mode *{
    color: var(--white-color)
}

/* Add styles for screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.parent {
    border-radius: 0.5em;
    padding: 1em;
    display: flex;
    gap: clamp(1em, 12dvw, 5em);
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* VERSIONEN FÜR FLEXBOXEN */
/* Version 1: Zwei Elemente, gleiche Breite mit Lücke */
.version-1 {
    gap: 1em; /* Abstand zwischen den Elementen */
}

.version-1 > .child {
    flex: 1; /* Gleiche Breite für beide Kinder */
}

/* Version 2: Ein Element 1/3, das andere 2/3 */
.version-2-1 > .child:first-child {
    flex: 1; /* 1/3 der Breite */
}
.version-2-1 > .child:last-child {
    flex: 2; /* 2/3 der Breite */
}

.version-2-2 > .child:first-child {
    flex: 2; /* 2/3 der Breite */
}
.version-2-2 > .child:last-child {
    flex: 1; /* 1/3 der Breite */
}

/* Version 3: Drei Elemente, gleiche Breite */
.version-3 > .child {
    flex: 1;
    margin-right: 1em;
}
.version-3 > .child:last-child {
    margin-right: 0;
}

/* Version 4: Vier Elemente, gleiche Breite */
.version-4 .child {
    flex: 1;
    margin-right: 1em;
}
.version-4 .child:last-child {
    margin-right: 0;
}

/* Version 5: Fünf Elemente, gleiche Breite */
.version-5 .child {
    flex: 1;
    margin-right: 1em;
}
.version-5 .child:last-child {
    margin-right: 0;
}
/* ENDE DER VERSIONEN */

.menu-bar{
    display: none;
}

.main-image{
    height: calc(100dvh - 2.5em);
    background: url('../assets/background-images/Person\ auf\ Grasfeld\ Kopie.jpg') no-repeat center/cover;
    border-radius: .5em;
    position: relative;
}

.main-image *{
    color: var(--white-color);
}

.main-image .mobile-menu{
    flex-direction: row;
    padding: .75em;
}

.main-image .mobile-menu .logo-image-mobile{
    text-align: left;
    margin: 1em 0 0 2em;
}

.main-image .mobile-menu .logo-image-mobile img{
    max-width: 40dvw;
    max-height: 80px;
}

.main-image .light-switch{
    position: relative;
}

.main-image .switch-container {
    display: flex;
    align-items: center;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
}

.main-image .switch-container .mode-switch-mobile {
    display: none;
}

.main-image .switch-container .mode-switch-mobile:checked + .switch-label .toggle {
    left: calc(100% - 32px); 
}

.main-image .switch-container .mode-switch-mobile:checked + .switch-label {
    background-color: #333;
}

.main-image .switch-container .mode-switch-mobile:checked ~ .icon img {
    filter: invert(1); /* Invertiert das Bild für Nachtmodus */
}

.main-image .switch-container .switch-label {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: auto;
    height: 34px;
    width: 54px;
    background-color: rgb(208, 208, 208);
    border-radius: 15em;
    padding: 2px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.main-image .switch-container .toggle {
    position: absolute;
    top: 50%;
    left: 2px;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background-color: var(--white-color);
    border-radius: 50%;
    transition: left 0.4s ease; /* Hinzufügen einer Transition für left und right */
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image .switch-container .icon img {
    margin-top: 10%;
    width: 70%;
    height: 70%;
}

/* Dark Mode für Mobile Switch */
body.dark-mode .main-image .switch-container .switch-label {
    background-color: #333;
}

.main-image .headlines{
    flex-direction: column;
    position: absolute;
    bottom: 2dvh;
    left: 0;
    right: 0;
}

.main-image .headlines .title{
    text-transform: uppercase;
}

.main-image .headlines .title h2{
    font-size: 5.3dvw;
}

.main-image .headlines .title h2 span{
    font-size: 12dvw;
    font-style: italic;
}

.main-image .headlines .benefits{
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
}

.main-image .headlines .benefits h4{
    font-size: var(--headline-font-size);
    background-color: var(--light-green);
    font-weight: 800;
    padding: 0.2em .6em;
    display: inline-block;
    margin: 0;
}

.benefits-content {
    color: var(--white-color);
    position: relative;
    overflow: hidden;
}

.benefits-content p {
    width: 100%;
    transition: transform 0.45s ease-in-out;
}

.aboutme{
    margin-top: var(--mobile-margin-top-section);
}

.aboutme > .parent > .desktop-picture{
    display: none;
}

.h2-headline{
    text-align: center;
    font-size: var(--headline-font-size);
}

.h2-headline span{
    color: var(--light-green);
    font-size: var(--headline-span-font-size);
}

.aboutme .aboutme-text{
    text-align: left;
    border-radius: .5em;
    background-image: url("../assets/background-images/simon-picture-big.jpg");
    background-position: left top;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 50dvw;
}

.aboutme .aboutme-text .child:last-child{
    display: flex;
    flex-direction: column;
    text-align: left;
}

.aboutme .aboutme-text .child:last-child *{
    width: 100%;
    color: var(--white-color);
}

.aboutme .aboutme-text h3 span, p{
    text-transform: none;
    font-weight: 200;
    font-style: italic;
}

.aboutme .aboutme-description{
    font-style: normal;
    font-weight: 400;
    text-align: justify;
}

.services{
    margin-top: var(--mobile-margin-top-section);
    background-color: var(--light-light-green);
    border-radius: .5em;
    padding: 2em .75em;
    color: var(--black-color);
}

.services p{
    text-align: center;
    transform: translateY(-1dvh);
}

/* Styles für das services-Element und seine Kinder */
.services .parent.skill-palette {
    display: flex;
    flex-wrap: wrap; /* Verhindert Zeilenumbruch */
    gap: 1.4em; /* Abstand zwischen den child-Elementen */
    justify-content: center;
    overflow-x: auto; /* Falls zu wenig Platz da ist, kann man horizontal scrollen */
    margin-bottom: 1em;
}

.services .parent.skill-palette .child.skill {
    position: relative;
    overflow: hidden;
    flex: 1 1 35dvw;
    max-width: 35dvw; /* Optional: Maximale Breite festlegen */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--white-color); /* Heller Hintergrund */
    padding: 10px;
    border-radius: .35em;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
}

.services .parent.skill-palette .child.skill:hover{
    cursor: pointer;
}

/* Bildgrößenanpassung für die Symbole innerhalb der child-Elemente */
.services .parent.skill-palette .child.skill img {
    width: clamp(20px, 30%, 40px);
    height: clamp(20px, 30%, 40px);
}

/* Titel und Underline-Styling */
.services .parent.skill-palette .child.skill h4 {
    font-size: clamp(7px, 2.2dvw, 10px);
    font-weight: 500;
    word-wrap: break-word;
    margin-block-start: .85em;
    margin-block-end: 0;
}

.services .parent.skill-palette .child.skill .underline {
    width: 100%;
    height: 3px;
    position: absolute;
    bottom: 0;
    background-color: #aaa; /* Farbe für inaktive Underlines */
}

.services .parent.skill-palette .child.skill.active .underline{
    background-color: var(--light-green);
}

.services .skill-info{
    text-align: justify;
}

.services .skill-info .skill-title{
    display: none;
}

.services .skill-info #current-service{
    font-size: calc(var(--headline-span-font-size)* .82);
}

.services .skill-info .skill-description{
    font-weight: 300;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.services .skill-info .skill-description.fade-out {
    opacity: 0;
}

/* Price Cards Section */
.prices {
    text-align: center;
    margin-top: var(--mobile-margin-top-section);
}

/* Card Grid Layout */
.price-cards {
    display: flex;
    gap: 2em;
    margin-top: 1em;
    padding: 1em 30% 1em 1em;
    transition: transform 0.5s ease;
}

/* Individual Card Styling */
.price-card {
    background: var(--background-color);
    border: 1px solid var(--light-light-green);
    border-radius: 1em;
    padding: 2em;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease;
    min-width: 245px;
    flex: 0 0 auto;
    width: clamp(280px, 110%, 360px);
    opacity: 1;
    transform: none;
}

.price-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Featured Card */
.price-card.featured {
    border-color: var(--light-green);
    background: var(--light-light-green);
}

.price-card.scroll-animate {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.price-card.scroll-animate.visible {
    opacity: 1;
}

.featured-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--light-green);
    color: var(--background-color);
    padding: 0.5em 1em;
    border-radius: 2em;
    font-size: 0.9em;
    font-weight: 600;
}

/* Card Content */
.card-header {
    margin-bottom: 2em;
}

.card-header h3 {
    color: var(--light-green);
    max-width: 100%; /* Set a maximum width */
    font-size: clamp(1em, 1.6vw, 2.5em); /* Responsive font size */
    word-wrap: normal; /* Allow normal wrapping */
    overflow-wrap: break-word; /* Ensure long words break */
    margin-bottom: 0.5em;
}

.price {
    font-size: 2.5em;
    font-weight: 700;
}

.price span {
    font-size: 0.4em;
    font-weight: 400;
}

.card-content {
    flex-grow: 1;
    margin-bottom: 2em;
}

.card-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card-content li {
    padding: 0.75em 0;
    border-bottom: 1px solid var(--light-light-green);
}

.card-content li:last-child {
    border-bottom: none;
}

/* Call to Action Button */
.price-cta {
    display: inline-block;
    background: var(--light-green);
    color: var(--white-color);
    padding: 1em 2em;
    border-radius: 2em;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.price-cta:hover {
    background: var(--black-color);
}

/* Dark Mode */
body.dark-mode .price-card {
    background: var(--black-color);
}

body.dark-mode .price-card.featured {
    background: rgba(91, 155, 116, 0.1);
}

/* Container and Navigation */
.price-cards-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.price-cards-wrapper {
    overflow-x: auto;
    margin: 0;
    width: 100%;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
    
.price-cards-wrapper::-webkit-scrollbar {
    display: none;
}

/* Navigation Buttons */
.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--light-green);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.nav-button:hover {
    background: var(--black-color);
}

.nav-button.prev { left: 0; }
.nav-button.next { right: 0; }

/* Arrow Icons */
.arrow-left,
.arrow-right {
    width: 10px;
    height: 10px;
    border-top: 2px solid white;
    border-right: 2px solid white;
}

.arrow-left { transform: rotate(-135deg); }
.arrow-right { transform: rotate(45deg); }

/* Pagination */
.price-cards-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5em;
    margin-top: 2em;
    min-height: 8px;
}

.pagination-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s ease;
    flex-shrink: 0;
    margin: 0 0.15em;
}

.pagination-dot.active {
    background: var(--light-green);
}

.contact{
    flex-direction: column;
    justify-content: space-around;
    margin-top: var(--mobile-margin-top-section);
    padding: 1em 2em;
}

.contact h2, .contact h2 span{
    font-size: var(--headline-span-font-size);
    line-height: 1;
}

.contact h2 span{
    color: var(--light-green);
}

.contact .form{
    width: 100%;
    margin-bottom: 3em;
}

.contact .contact-form{
    width: 100%;
    text-align: left;
}

.contact .contact-form input, textarea{
    width: 100%;
    background-color: #ededed;
    padding: 1em .75em;
    outline: none;
    border: none;
    border-bottom: .25em solid #cfcfcf;
    margin: .3em 0;
    resize: none;
}

.contact .contact-form button{
    border: none;
    outline: none;
    color: var(--white-color);
    background-color: var(--light-green);
    padding: .75em 2em;
    border-radius: .35em;
    text-transform: uppercase;
    font-weight: 500;
}

.contact .map{
    border-radius: .5em;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-top: 1em;
}

.contact .map iframe{
    max-width: 100%;
}

.contact .checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 0.5em;
    margin: 0.6em 0;
}

.contact .checkbox-container input[type="checkbox"] {
    width: auto;
    margin: 0.3em 0;
    cursor: pointer;
}

.contact .checkbox-container label {
    font-size: calc(var(--paragraph-font-size) * 0.8);
    flex: 1;
}

.contact .checkbox-container label a {
    font-size: calc(var(--paragraph-font-size) * 0.8);
    color: var(--light-green);
    text-decoration: none;
}

.footer{
    background-color: var(--black-color);
    text-align: left;
    margin-top: 2em;
    flex: unset;
    justify-content: space-evenly;
    gap: clamp(.25em, 4dvw, 5em);
}

.footer *{
    color: var(--white-color);
}

.footer .child{
    flex: 0 auto;
    margin: 0;
    padding: 0;
}

.footer > .child:first-child, .child:last-child{
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer img{
    max-width: 10vw;
    max-height: 100px;
}

.footer .footer-text img{
    max-height: 10px;
    width: unset;
    margin-right: .5em;
}

.footer .footer-text a, p{
    text-decoration: none;
    font-size: calc(var(--paragraph-font-size) * 0.9);
}

.footer .socials{
    flex-direction: column;
    gap: 1em;
}

.footer .socials img{
    width: 7vw;
    max-width: 40px;
    margin: .4em;
}

body.dark-mode .footer{
    background-color: var(--white-color);
}

body.dark-mode .footer *{
    color: var(--black-color);
}

body.dark-mode .footer .socials img{
    filter: invert(1);
}

body.dark-mode .footer img{
    filter: invert(1);
}

.clickable:hover{
    cursor: pointer;
}

.left-side-out {
    transform: translateY(140%);
}
.right-side-out {
    transform: translateY(-140%);
}
.slide-center {
    transform: translateX(0);
}
.eliminate-transition {
    transition: none !important;
}

/****************************************/
/**      BREAK POINT FOR SERVICES      **/
/****************************************/
@media screen and (min-width: 550px) {
    .services .parent.skill-palette {
        flex-wrap: nowrap;
        gap: 2dvw;
        justify-content: space-evenly;
    }

    .services .parent.skill-palette .child.skill {
        flex: 1 1 20dvw;
        aspect-ratio: 1 / 1;
        max-width: 130px;
        word-wrap: break-word;
    }

    .footer .footer-text a, p{
        text-decoration: none;
        font-size: calc(var(--paragraph-font-size) * 1.1);
    }
}

/****************************************/
/**      BREAK POINT FOR:              **/
/**                       About Me      */
/**                       Contact Form  */
/****************************************/
@media screen and (min-width: 700px) {
    .aboutme{
        justify-content: space-evenly;
    }

    .aboutme .aboutme-text{
        display: none;
    }

    .aboutme > .parent > .child:first-child{
        max-width: 900px;
    }

    .aboutme .h2-headline{
        text-align: left;
    }

    .aboutme > .parent > .desktop-picture{
        display: block;
        width: 100%;
        aspect-ratio: 1 / 1;
        overflow: hidden;
        border-radius: .5em;
        background-color: var(--light-light-green);
        max-width: 400px;
    }

    .aboutme > .parent > .desktop-picture > img{
        width: 100%;
    }

    .footer{
        gap: clamp(1em, 12.5dvw, 5em);
    }

    .footer .socials{
        flex-direction: row;
    }
}

/* Mobile Styles */
@media screen and (min-width: 850px) {
    .contact{
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 7dvw;
    }

    .contact .map{
        width: 100%;
        max-height: 475px;
        max-width: 850px;
    }

    .contact .form{
        text-align: left;
        width: 100%;
        max-width: 850px;
    }

    .price-cards-wrapper {
        overflow: hidden;
        margin: 0 2em;
        scroll-behavior: smooth;
    }

    .price-cards {
        display: flex;
        gap: 2em;
        margin-top: 1em;
        padding: 1em;
        transition: transform 0.5s ease;
    }

    .price-card{
        width: calc((100% - 2em) / 3);
        opacity: 0.7 !important;
        transform: scale(0.9) !important;
    }

    .price-card.active {
        opacity: 1 !important;
        transform: scale(.925) !important;
    }
    
    .nav-button {
        display: flex;
    }
}

/****************************************/
/**      BREAK POINT FOR:              **/
/**                       Title Screen  */
/****************************************/
@media screen and (min-width: 1025px) {
    .menu-bar{
        display: flex;
        justify-content: space-between;
        gap: unset;
    }

    .menu-bar .child{
        flex: 0 auto;
        max-width: fit-content;
    }

    .menu-bar > .child > img {
        min-height: 65px;
        height: 8vw;
        max-height: 90px;
    }

    ul.menu {
        list-style: none;
        display: flex;
        gap: 30px;
    }

    ul.menu li a {
        text-decoration: none;
        font-weight: bold;
        padding: 5px;
        position: relative;
        transition: color 0.3s ease;
    }

    ul.menu li a::before {
        content: "";
        position: absolute;
        width: 0;
        height: 2px;
        bottom: 0;
        left: 0;
        background-color: var(--black-color);
        visibility: hidden;
        transition: all 0.3s ease-in-out;
    }

    ul.menu li a:hover::before {
        visibility: visible;
        width: 100%;
    }

    .switch-container {
        display: flex;
        align-items: center;
    }

    .mode-switch {
        display: none;
    }

    .switch-label {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: auto;
        height: 40px;
        background-color: rgb(208, 208, 208);
        border-radius: 15em;
        padding: 2px;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

    .text {
        font-weight: bold;
        color: #333;
        user-select: none;
    }

    .day-text {
        padding: 0 10px 0 42px;
    }

    .night-text {
        display: none;
        padding: 0 42px 0 10px;
        color: var(--black-color)
    }

    .toggle {
        position: absolute;
        top: 50%;
        left: 2px;
        transform: translateY(-50%);
        width: 36px;
        height: 36px;
        background-color: var(--white-color);
        border-radius: 50%;
        transition: left 0.4s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .icon img {
        margin-top: 10%;
        width: 70%;
        height: 70%;
    }

    .mode-switch:checked + .switch-label .toggle {
        left: calc(100% - 38px); /* Adjust based on padding */
    }

    .mode-switch:checked + .switch-label {
        background-color: #333;
    }

    /**   END OF DESKTOP MENU   **/

    .main-image .mobile-menu{
        display: none;
    }

    .main-image .child {
        color: var(--white-color);
        padding: 1em;
        border-radius: 0.25em;
    }

    .version-3 .child {
        flex: 1;
    }

    .main-image {
        height: 80vh;
        background: url('../assets/background-images/Person\ auf\ Grasfeld\ Kopie.jpg') no-repeat center/cover;
        padding: 1em 3em;
        position: relative;
        overflow: hidden;
        border-radius: .5em;
    }

    .main-image .child{
        text-align: left;
    }

    .main-image .headlines{
        position: relative;
        height: 100%;
        flex-direction: row;
    }

    .main-image .headlines .child{
        height: 100%;
    }

    .main-image .headlines .child:nth-child(1) {
        flex: 2;
        align-content: center;
        align-items: center;
    }

    .main-image .headlines .child:nth-child(2) {
        flex: 1;
        position: relative;
    }

    .main-image .headlines .child:nth-child(3) {
        flex: 2;
    }

    .main-image .child:first-child h2, 
    .main-image .child:first-child h3 {
        font-weight: 700;
        transform: translateY(35%);
        font-size: clamp(20px, 3.5dvw, 30px);
    }

    .main-image .child:first-child h2 {
        font-size: clamp(26px, 3dvw, 38px);
        font-style: italic;
        transform: none;
    }

    .main-image .child:first-child h2 span{
        font-size: clamp(44px, 5.5dvw, 72px);
    }

    .main-image .child .scroll-arrow {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
        cursor: pointer;
        padding: 1em;
        width: fit-content;
        margin: 0 auto;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        animation: arrow-bounce-animation 5s infinite;
    }

    .main-image .child .scroll-arrow a{
        display: block;
        width: 100%;
        aspect-ratio: 1 / 1;
        padding: 1em;
    }

    .main-image .child .scroll-arrow .arrow-part {
        width: 20px;
        height: 3px;
        background-color: var(--white-color);
        border-radius: 1.5px;
    }

    .main-image .child .scroll-arrow .arrow-part:first-child {
        transform: translate(-30%, 3px) rotate(45deg);
    }

    .main-image .child .scroll-arrow .arrow-part:last-child {
        transform: translate(30%, 0) rotate(-45deg);
    }

    .main-image h1{
        font-style: italic;
        font-weight: 900;
        position: absolute;
        text-transform: uppercase;
        bottom: -150px;
        font-size: 9.4dvw;
        opacity: .4;
    }

    .benefits{
        padding: 0 1em;
    }

    .benefits h4{
        padding: 0.5em 1em;
        width: fit-content;
        background-color: var(--light-green);
    }

    .benefits-dots {
        margin-top: 2em;
        text-align: center;
        width: 100%;
        justify-content: space-evenly;
    }

    .dot {
        /* Increase the clickable area by adding padding */
        padding: 12px;
        /* Position the actual dot using pseudo-element */
        position: relative;
        /* Remove existing height/width */
        cursor: pointer;
        /* Make the entire area clickable */
        display: inline-block;
        margin: 0 1%;
    }
    
    /* Create the actual dot using a pseudo-element */
    .dot::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        height: .4em;
        width: .4em;
        background-color: grey;
        border-radius: 50%;
        outline: .05em solid grey;
        outline-offset: 2px;
        transition: background-color 0.3s;
    }
    
    /* Update the active state to target the pseudo-element */
    .dot.active::before {
        background-color: var(--white-color);
        outline-color: var(--white-color);
    }

    .left-side-out {
        transform: translateX(-110%);
    }
    .right-side-out {
        transform: translateX(110%);
    }

    .text-aboutme{
        text-align: left;
    }

    .services .parent.skill-palette {
        flex-wrap: nowrap;
        gap: clamp(2em, 10dvw, 150px);
        justify-content: center;
    }

    .services .parent.skill-palette .child.skill {
        flex: 1 1 20dvw;
        aspect-ratio: 1 / 1;
        max-width: 145px;
        word-wrap: break-word;
    }

    /* Bildgrößenanpassung für die Symbole innerhalb der child-Elemente */
    .services .parent.skill-palette .child.skill img {
        width: clamp(20px, 40%, 46px);
        height: clamp(20px, 40%, 46px);
    }

    /* Titel und Underline-Styling */
    .services .parent.skill-palette .child.skill h4 {
        font-size: .75em;
    }

    .services .skill-info{
        padding: 1em 0;
        justify-content: center;
    }

    .services .skill-info .skill-title{
        display: block;
        max-width: fit-content;
        flex: 0 0 33.33%;
        width: 33.33%;
        word-break: break-all;
    }

    .services .skill-info .h2-headline{
        position: relative;
        text-align: left;
        overflow: hidden;
        font-size: clamp(1em, 1.8vw, 24px);
    }

    .services .skill-info .h2-headline span {
        display: block;
        opacity: 1;
        transform: translateY(0);
        transition: transform 0.4s ease, opacity 0.3s ease;
    }
    
    .services .skill-info .h2-headline span.animate-out {
        transform: translateY(-110%);
        opacity: 0;
    }

    .services .skill-info .h2-headline span.animate-in {
        transform: translateY(110%);
    }

    .services .skill-info .skill-description{
        text-align: left;
        justify-content: left;
        flex: 0 0 66.66%;
        word-wrap: break-word;
        opacity: 1;
        transition: opacity 0.3s ease;
    }

    .services .skill-info .skill-description.fade-out {
        opacity: 0;
    }

    .widerpadding {
        padding: 1em 4em;
        gap: 3vw;
    }

    .back-to-top:hover {
        background-color: var(--light-green);
    }

    .back-to-top:hover .arrow-part {
        background-color: var(--white-color);
    }

    .back-to-top:hover span {
        color: var(--white-color);
    }
}

@keyframes arrow-bounce-animation {
	0%, 35%, 50%, 65%, 100% {transform: translateY(0);}
	45% {transform: translateY(-30px);}
	55% {transform: translateY(-15px);}
}


.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: clamp(45px, 12.5dvw, 65px);
    height: clamp(45px, 12.5dvw, 65px);
    border: 1px solid var(--light-green);
    border-radius: 50%;
    background-color: var(--white-color);
    display: block;
    text-align: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top .arrow {
    position: relative;
    width: 45%;
    height: 45%;
    margin: 14% auto 2px auto;
}

.back-to-top .arrow-part {
    position: absolute;
    width: 55%;
    height: 1px;
    border-radius: 1em;
    background-color: var(--light-green);
    transition: background-color 0.3s ease;
}

.back-to-top .arrow-part:nth-child(1) {
    top: 50%;
    left: 50%;
    width: 35%;
    transform: translate(-32%, -200%) rotate(45deg);
    transform-origin: right center;
}

.back-to-top .arrow-part:nth-child(2) {
    top: 50%;
    left: 50%;
    transform: translate(-50%, 0%) rotate(-90deg);
}

.back-to-top .arrow-part:nth-child(3) {
    width: 35%;
    top: 50%;
    left: 50%;
    transform: translate(-68%, -200%) rotate(-45deg);
    transform-origin: left center;
}

.back-to-top span {
    font-size: 0.75rem;
    color: var(--light-green);
    transition: color 0.3s ease;
    display: block;
    margin: -8% auto 0 auto;
    
}

/* Dark mode support */
body.dark-mode .back-to-top {
    background-color: var(--black-color);
    border-color: var(--light-green);
}

/* Add these animation keyframes near the end of your CSS file */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Add these classes */
.animate-on-load {
    opacity: 0;
}

.animate-on-load.visible {
    animation: fadeSlideUp 0.8s ease forwards;
}

/* Delay classes for staggered animations */
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

@keyframes fadeSlideFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeSlideFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Classes for scroll animations */
.scroll-animate {
    opacity: 0;
}

.scroll-animate.animate-from-right {
    animation: fadeSlideFromRight 0.8s ease forwards;
}

.scroll-animate.animate-from-left {
    animation: fadeSlideFromLeft 0.8s ease forwards;
}

/* Skill animation specific */
.skill.scroll-animate {
    opacity: 0;
    transform: translateY(-30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.skill.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Add print styles for better accessibility */
@media print {
    .menu-bar, .back-to-top, .switch-container {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}