@font-face {
    font-display: swap;
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 400;
    src: url('/fonts/nunito-v26-latin-regular.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 600;
    src: url('/fonts/nunito-v26-latin-600.woff2') format('woff2');
}

:root {
    --ground-color: #ffffff;
    --second-color: #b083f5;
    --third-color: #CDAEFB;
    --fourth-color: #e6d6ff;
    --text-color: #1b194b;
    --box-shadow-light: rgba(0, 0, 0, 0.14);
    --muted-text-color: #555465;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    min-height: 100vh;
    font-family: 'Nunito', sans-serif;
    color: var(--text-color);
}



/* ======================================= SECTION HEADING ACCENTS ======================================= */

.benefit-content h2::after,
.services .service-content h2::after,
.standorte-content h2::after,
.faq-content h2::after,
.karriere-header h2::after,
.contact-header h2::after {
    content: '';
    display: block;
    width: 52px;
    height: 4px;
    background: linear-gradient(90deg, var(--second-color), var(--third-color));
    border-radius: 2px;
    margin: 12px auto 0;
}


/* ======================================= ANIMATIONS ======================================= */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(36px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes heroTitle {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll-reveal base state */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.6s cubic-bezier(.2, .9, .2, 1), transform 0.6s cubic-bezier(.2, .9, .2, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero entrance animations */
.reveal-hero-title {
    opacity: 0;
    transform: translateY(20px);
    animation: heroTitle 0.7s cubic-bezier(.2, .9, .2, 1) 0.15s forwards;
}

.reveal-hero-text {
    opacity: 0;
    transform: translateY(20px);
    animation: heroTitle 0.7s cubic-bezier(.2, .9, .2, 1) 0.35s forwards;
}

.reveal-hero-cta {
    opacity: 0;
    transform: translateY(20px);
    animation: heroTitle 0.7s cubic-bezier(.2, .9, .2, 1) 0.55s forwards;
}

@media (prefers-reduced-motion: reduce) {

    .reveal,
    .reveal-hero-title,
    .reveal-hero-text,
    .reveal-hero-cta {
        opacity: 1;
        transform: none;
        animation: none;
        transition: none;
    }
}


/* ======================================= HEADER ======================================= */

header {
    max-width: 100vw;
    min-height: 80px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    transition: min-height 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
    min-height: 64px;
    background-color: rgba(255, 255, 255, 0.88);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}

.header-content {
    width: min(1200px, 100%);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    gap: 20px;
    position: relative;
}

.logo-link img {
    height: 70px;
    max-width: 100%;
    transition: height 0.3s ease;
}

header.scrolled .logo-link img {
    height: 56px;
}

.header-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.header-logo-link img {
    display: block;
    height: 58px;
    width: auto;
    max-width: min(420px, 42vw);
    object-fit: contain;
    transition: height 0.3s ease;
}

header.scrolled .header-logo-link img {
    height: 48px;
}

.header-menu-logo {
    display: none;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    padding-top: 20px;
    width: 100%;
    border-top: 1px solid rgba(27, 25, 75, 0.12);
}

.header-menu-logo img {
    display: block;
    width: min(260px, 72vw);
    height: auto;
    object-fit: contain;
}

.menu-toggle {
    display: none;
    border: none;
    background: none;
    color: var(--text-color);
    cursor: pointer;
}

.menu-toggle-icon {
    display: block;
    width: 24px;
    height: 2.5px;
    background-color: currentColor;
    position: relative;
    transition: width 0.2s ease;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
    content: '';
    display: block;
    width: 24px;
    height: 2.5px;
    background-color: currentColor;
    position: absolute;
    left: 0;
    transition: width 0.2s ease;
}

.menu-toggle-icon::before {
    top: -8px;
}

.menu-toggle-icon::after {
    top: 8px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon::before {
    width: 19px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon::after {
    width: 12px;
}

.header-menu {
    display: flex;
    flex-direction: row;
    gap: 30px;
    align-items: center;
}

.header-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    position: relative;
    cursor: pointer;
}

.header-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 3px;
    background-color: var(--second-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.header-menu a:hover::after {
    transform: scaleX(1);
}

.call-to-action {
    background-color: var(--second-color);
    border: 2px solid var(--second-color);
    color: #fff;
    padding: 10px 30px;
    border-radius: 25px;
    text-decoration: none;
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    width: max-content;
}

.call-to-action svg {
    height: 25px;
    width: 25px;
}


.call-to-action:hover {
    background-color: var(--third-color);
    border-color: var(--third-color);
    transform: translateY(-2px);
}

.clear {
    background-color: transparent;
    border: 2px solid var(--second-color);
    color: var(--second-color);
}

.clear:hover {
    background-color: var(--second-color);
    color: #fff;
    border-color: var(--second-color);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 900px) {
    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    header .call-to-action {
        display: none;
    }

    .header-logo-link {
        display: none;
    }

    .header-menu {
        display: none;
        position: absolute;
        justify-content: center;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--ground-color);
        flex-direction: column;
        padding: 40px 20px;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    }

    .header-menu[data-visible="true"] {
        display: flex;
    }

    .header-menu-logo {
        display: inline-flex;
    }

    .header-menu a:hover::after {
        transform: scaleX(0);
    }

    .header-menu a:hover {
        opacity: .6;
    }

    .header-content {
        align-items: center;
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: nowrap;
        gap: 10px;
    }

    .logo-link img {
        height: 60px;
    }
}

/* ======================================= Karriere ======================================= */

.karriere {
    background-color: var(--ground-color);
    min-height: 90vh;
    padding-top: 80px;
}

.karriere-content {
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: 40px 20px 80px;
    display: flex;
    flex-direction: column;
    gap: 48px;
    box-sizing: border-box;
}

/* Header */
.karriere-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.karriere-label {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--second-color);
}

.karriere-header h2 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.2;
}

.karriere-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 32px;
    justify-content: center;
    margin-top: 4px;
}

.karriere-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    color: var(--muted-text-color);
    font-weight: 600;
}

.karriere-meta-item svg {
    width: 16px;
    height: 16px;
    color: var(--second-color);
    flex-shrink: 0;
}

/* Grid */
.karriere-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* Cards */
.karriere-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 24px var(--box-shadow-light);
    display: flex;
    flex-direction: column;
    gap: 16px;
    border: 1px solid rgba(176, 131, 245, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.karriere-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.karriere-card--highlight {
    background: linear-gradient(135deg, var(--fourth-color) 0%, #f3ecff 100%);
    border-color: rgba(176, 131, 245, 0.25);
}

.karriere-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--second-color), var(--third-color));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.karriere-card-icon svg {
    width: 24px;
    height: 24px;
    stroke: #fff;
}

.karriere-card h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-color);
}

.karriere-card p {
    margin: 0;
    color: var(--muted-text-color);
    line-height: 1.7;
}

.karriere-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.karriere-list li {
    padding-left: 20px;
    position: relative;
    color: var(--muted-text-color);
    line-height: 1.6;
}

.karriere-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--second-color), var(--third-color));
    flex-shrink: 0;
}

/* Contact */
.karriere-contact {
    background: linear-gradient(135deg, var(--text-color) 0%, #2d2a6e 100%);
    border-radius: 20px;
    overflow: hidden;
}

.karriere-contact-inner {
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.karriere-contact h3 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 600;
    color: #fff;
}

.karriere-contact>.karriere-contact-inner>p {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    max-width: 540px;
}

.karriere-contact-details {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    margin-top: 4px;
}

.karriere-contact-details p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

.karriere-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.karriere-contact .call-to-action.clear {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.karriere-contact .call-to-action.clear:hover {
    background-color: #fff;
    border-color: #fff;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .karriere-grid {
        grid-template-columns: 1fr;
    }

    .karriere-card {
        padding: 24px;
    }

    .karriere-contact-inner {
        padding: 32px 24px;
    }

    .karriere-contact-details {
        flex-direction: column;
        align-items: flex-start;
    }
}




/* ======================================= FOOTER ======================================= */

.site-footer {
    background-color: var(--text-color);
    color: rgba(255, 255, 255, 0.75);
    padding: 40px 20px;
}

.footer-content {
    width: min(1200px, 100%);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

.footer-logo img {
    height: 52px;
    opacity: 0.9;
    filter: brightness(0) invert(1);
}

.footer-nav {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: var(--third-color);
}

.footer-copy {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.55;
}

@media (max-width: 480px) {
    .footer-nav {
        gap: 18px;
    }
}