:root {
    --font-base: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-size: 16px;
    --font-color: #fff;
    --font-color-dark: #121618;
    --heading-color: #fff;
    --accent-color: #ea383f;
    --max-width: 820px;
    --spacing: 1.5rem;
}

body {
    margin: 0;
    font-family: var(--font-base);
    font-size: var(--font-size);
    background-color: #6D7479;
    background: radial-gradient(circle at 50% 15%, rgba(109, 116, 121, 1) 0%, rgba(67, 76, 80, 1) 100%);
    background-attachment: scroll;
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--font-color);

}

section {
    padding: calc(var(--spacing) * 2) var(--spacing);
    max-width: var(--max-width);
    margin: auto;
    text-align: center;
}

h1,
h2,
h3,
h4,
h5 {
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 1.75rem;
    margin-top: 2rem;
}

p,
ul,
ol {
    margin-bottom: var(--spacing);
}

a {
    color: var(--accent-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

ul {
    list-style: disc;
    padding-left: 1.5rem;
}

header,
footer {
    text-align: center;
}



.topnav {
    position: fixed;
    top: 0px;
    right: 0px;
    padding: 10px;
    display: flex;
    height: 20px;
    justify-content: flex-end;
    gap: 0.4em;
    font-size: 1rem;
    z-index: 1000;
    max-width: 100%;
    text-align: right;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    width: 100%;
}

.topnav a {
    color: var(--font-color-dark);
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.topnav a:hover {
    color: var(--accent-color);
}

.topnav .divider {
    color: var(--accent-color);
    font-weight: bold;
}

.topnav a {
    color: var(--font-color-dark);
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.topnav a.active {
    color: var(--accent-color);
}

.logo-container {
    display: block;
    max-width: 600px;
    margin: 0 auto;
    z-index: 100;
    position: relative;

}

.logo-text-container {
    max-width: 600px;
    margin: 0 auto;


}

.sticky-container {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding-top: 30px;
    padding-bottom: 30px;

}

.container {
    display: flex;
    justify-content: center;
    gap: 4rem;
    max-width: 1000px;
    margin: auto;
    position: relative;
    
}

.text {
    flex: 1;
    text-align: justify;
    position: relative;
   -moz-hyphens: auto;
   -o-hyphens: auto;
   -webkit-hyphens: auto;
   -ms-hyphens: auto;
   hyphens: auto;
}

.circle-left,
.circle-right {
    width: 310px;
    height: 410px;
    float: right;
    margin-left: 1.5rem;

    shape-outside: ellipse(41% 38% at 100% 51%);
    ;
    -webkit-shape-outside: ellipse(41% 38% at 100% 51%);
    ;
    clip-path: ellipse(41% 38% at 100% 51%);
    ;
}

.circle-right {
    float: left;
    margin-left: 0;
    margin-right: 1.5rem;
    shape-outside: ellipse(41% 38% at 0% 51%);
    -webkit-shape-outside: ellipse(41% 38% at 0% 51%);
    clip-path: ellipse(41% 38% at 0% 51%);
}

.image-wrapper {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    position: absolute;
    left: 50%;
    top: 55px;
    transform: translateX(-50%);
    border: 6px solid var(--accent-color);

}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
        gap: 0rem;
    }

    .image-wrapper {
        position: static;
        transform: none;
        margin: 1rem 0;
    }

    .circle-left,
    .circle-right {
        display: none;
    }
}

#leistungen {
    padding: 2rem;
    color: var(--font-color);
    text-align: center;
}

#leistungen h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

.skill {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem 1.2rem;
    border-left: 3px solid var(--accent-color);
    border-radius: 0.5rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
    color: #f5f5f5;
}

.skill:hover {
    transform: translateY(-4px);
}

.skill span {
    font-weight: bold;
    display: block;
    color: var(--font-color);
}

.skill small {
    font-size: 0.9rem;
    color: #cfd8dc;
    display: block;
    margin-top: 0.2rem;
}

.partner-marquee {
    overflow: hidden;
    width: 100%;
    padding: 1rem 0;
    position: relative;
}

.marquee-track {
    display: flex;
    gap: 6rem;
    animation: scroll-marquee 60s linear infinite;
    width: max-content;
}

.marquee-track img {
    height: 60px;
    object-fit: contain;
    max-height: 80px;
    filter: brightness(1.1);
    transition: transform 0.3s ease;
}

.marquee-track img:hover {
    transform: scale(1.1);
}

.partner-marquee:hover .marquee-track {
    animation-play-state: paused;

}


@keyframes scroll-marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}


#kontakt {
    padding: 4rem 1rem;
    text-align: center;
}

.kontakt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
    align-items: stretch;
    perspective: 800px;
}

.kontakt-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* vertikal zentrieren */
    align-items: center;
    /* horizontal zentrieren */
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 0.8rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    color: var(--font-color);
    min-height: 140px;
    gap: 0.5rem;

}


.kontakt-box .icon {
    font-size: 2rem;
}

.kontakt-box p {
    margin: 0;
    text-align: center;
}

.kontakt-box a {
    color: var(--font-color);
    text-decoration: none;
}

.kontakt-box a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .kontakt-box {
        font-size: 0.9rem;
    }
}


.modal {
    display: none;
    /* Versteckt */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    max-height: 80vh;
    overflow-y: auto;
    background: #2c2c2c;
    color: var(--font-color);
    max-width: 600px;
    margin: 2em auto;
    padding: 2rem;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: var(--font-color);
    font-size: 1.5rem;
    cursor: pointer;
}




.sticky-shadow {
    box-shadow: 0 4px 4px 0 #4d4f508a;

}

.no-blur {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}


@media (max-width: 480px) {
    .topnav {
        font-size: 0.9rem;
        gap: 0.3em;
    }
}

.section-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-visible {
    opacity: 1;
    transform: translateY(0);
}