:root {
    --functions-ink: #1d1d1f;
    --functions-muted: #6e6e73;
    --functions-surface: #f5f5f7;
    --functions-blue: #0071e3;
    --functions-blue-hover: #0077ed;
    --functions-hairline: rgba(0, 0, 0, 0.08);
    --functions-radius: 28px;
}

body {
    background: var(--functions-surface);
    color: var(--functions-ink);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

.site-header {
    background: rgba(255, 255, 255, 0.78);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    -webkit-backdrop-filter: saturate(180%) blur(22px);
    backdrop-filter: saturate(180%) blur(22px);
}

.breadcrumb-nav {
    display: none;
}

.function-hero {
    min-height: min(820px, 92svh);
    padding: 132px 1.5rem 90px;
    color: var(--functions-ink);
    text-align: center;
    background:
        radial-gradient(circle at 22% 22%, rgba(0, 113, 227, 0.14), transparent 27%),
        radial-gradient(circle at 82% 72%, rgba(191, 90, 242, 0.11), transparent 28%),
        var(--functions-surface);
    isolation: isolate;
}

.function-hero .aurora-bg,
.function-hero .mesh-gradient,
.function-hero .noise,
.function-hero .floating-cards,
.function-hero .wave-bottom {
    display: none;
}

.function-hero .hero-content {
    flex: none;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0;
    color: var(--functions-ink);
    text-align: center;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    animation: none;
}

.functions-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1.25rem;
    padding: 0.48rem 0.75rem 0.48rem 0.55rem;
    color: var(--functions-ink);
    text-align: left;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--functions-hairline);
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(29, 29, 31, 0.08);
    letter-spacing: -0.01em;
    text-decoration: none;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.functions-eyebrow:hover {
    color: var(--functions-ink);
    border-color: rgba(0, 113, 227, 0.28);
    box-shadow: 0 12px 34px rgba(29, 29, 31, 0.11);
    transform: translateY(-1px);
}

.customer-logo-stack {
    display: flex;
    align-items: center;
    padding-left: 0.45rem;
}

.customer-logo-stack > span {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    margin-left: -0.45rem;
    overflow: hidden;
    background: #fff;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(29, 29, 31, 0.16);
}

.customer-logo-stack img {
    width: 100%;
    height: 100%;
    padding: 3px;
    object-fit: contain;
}

.customer-proof-copy {
    display: grid;
    gap: 0.08rem;
}

.customer-proof-copy strong {
    font-size: 0.88rem;
    line-height: 1.1;
}

.customer-proof-copy small {
    color: var(--functions-muted);
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.15;
}

.functions-eyebrow .eyebrow-arrow {
    margin-left: 0.1rem;
    color: var(--functions-blue);
    font-size: 0.72rem;
}

.function-hero h1 {
    max-width: 1080px;
    margin: 0 auto 1.5rem;
    color: var(--functions-ink);
    font-size: clamp(3.7rem, 7.3vw, 7.6rem);
    font-weight: 700;
    line-height: 0.94;
    letter-spacing: -0.067em;
    text-shadow: none;
}

.function-hero h1 .gradient-word {
    display: block;
    padding-bottom: 0.08em;
    background: linear-gradient(90deg, #0071e3 5%, #7c3aed 48%, #e5484d 92%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.function-hero p {
    max-width: 780px;
    margin: 0 auto;
    color: var(--functions-muted);
    font-size: clamp(1.2rem, 2vw, 1.62rem);
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: -0.025em;
}

.function-hero p .highlight-text {
    padding: 0;
    color: var(--functions-ink);
    background: none;
    -webkit-text-fill-color: currentColor;
}

.function-hero p .highlight-text::after {
    display: none;
}

.function-hero p a {
    color: var(--functions-blue);
}

.hero-trust-panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.2rem;
    max-width: 1080px;
    margin: 2.25rem auto 0;
    padding: 1rem 1.1rem;
    color: #424245;
    text-align: left;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(36, 107, 66, 0.17);
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(29, 29, 31, 0.07);
    -webkit-backdrop-filter: saturate(160%) blur(20px);
    backdrop-filter: saturate(160%) blur(20px);
}

.hero-trust-heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hero-trust-heading > span:last-child {
    display: grid;
    gap: 0.18rem;
}

.hero-trust-icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #246b42;
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(36, 107, 66, 0.2);
}

.hero-trust-heading strong {
    color: var(--functions-ink);
    font-size: 0.96rem;
    line-height: 1.2;
}

.hero-trust-heading small {
    color: var(--functions-muted);
    font-size: 0.76rem;
    line-height: 1.25;
}

.hero-trust-facts {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    margin: 0;
    padding: 0 1.2rem;
    border-inline: 1px solid var(--functions-hairline);
    list-style: none;
}

.hero-trust-facts li {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.25;
}

.hero-trust-facts i {
    color: #246b42;
}

.hero-trust-details {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--functions-blue);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.hero-trust-details:hover {
    color: var(--functions-blue-hover);
    text-decoration: underline;
}

.hero-trust-details i {
    font-size: 0.68rem;
}

.function-hero .feature-counter-bar {
    gap: 0.65rem;
    margin-top: 2.5rem;
}

.function-hero .feature-counter-item {
    padding: 0.65rem 1rem;
    color: #424245;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid var(--functions-hairline);
    border-radius: 999px;
    box-shadow: none;
    font-size: 0.9rem;
    font-weight: 600;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.function-hero .feature-counter-item i {
    color: var(--functions-blue);
}

.function-hero-cta {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
    padding: 0.75rem 1.45rem;
    color: #fff;
    background: var(--functions-blue);
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: transform 180ms ease, background 180ms ease;
}

.function-hero-cta:hover {
    color: #fff;
    background: var(--functions-blue-hover);
    transform: scale(1.02);
}

.function-discovery {
    position: sticky;
    top: 70px;
    z-index: 80;
    padding: 1rem 1.5rem;
    background: rgba(245, 245, 247, 0.84);
    border-block: 1px solid var(--functions-hairline);
    -webkit-backdrop-filter: saturate(180%) blur(22px);
    backdrop-filter: saturate(180%) blur(22px);
}

#funktionen-suche,
.function-category {
    scroll-margin-top: 180px;
}

.function-discovery-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.function-search-row {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) auto;
    align-items: center;
    gap: 1rem;
}

.function-search {
    position: relative;
}

.function-search > i {
    position: absolute;
    top: 50%;
    left: 1.1rem;
    color: #86868b;
    transform: translateY(-50%);
    pointer-events: none;
}

.function-search input {
    width: 100%;
    min-height: 52px;
    padding: 0.8rem 3.2rem 0.8rem 3rem;
    color: var(--functions-ink);
    background: #fff;
    border: 1px solid var(--functions-hairline);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    font: inherit;
    font-size: 1rem;
    outline: none;
}

.function-search input:focus {
    border-color: rgba(0, 113, 227, 0.55);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}

.function-search-clear {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    display: none;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    color: #86868b;
    background: transparent;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transform: translateY(-50%);
}

.function-search-clear.is-visible {
    display: inline-flex;
}

.function-filter-list {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.function-filter-list::-webkit-scrollbar {
    display: none;
}

.function-filter {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0.55rem 0.9rem;
    color: #424245;
    background: #fff;
    border: 1px solid var(--functions-hairline);
    border-radius: 999px;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
}

.function-filter:hover {
    border-color: rgba(0, 113, 227, 0.3);
}

.function-filter.is-active {
    color: #fff;
    background: var(--functions-ink);
    border-color: var(--functions-ink);
}

.function-results-status {
    margin: 0.7rem 0 0;
    color: var(--functions-muted);
    font-size: 0.86rem;
    font-weight: 600;
}

.function-empty-state {
    display: none;
    max-width: 760px;
    margin: 5rem auto;
    padding: 3rem 1.5rem;
    color: var(--functions-muted);
    text-align: center;
}

.function-empty-state.is-visible {
    display: block;
}

.function-empty-state i {
    margin-bottom: 1rem;
    color: #86868b;
    font-size: 2rem;
}

.function-empty-state h2 {
    margin: 0 0 0.6rem;
    color: var(--functions-ink);
    font-size: 1.7rem;
    letter-spacing: -0.035em;
}

.function-category {
    padding: clamp(6rem, 10vw, 10rem) 1.5rem;
    background: #fff;
}

.function-category:nth-of-type(even) {
    background: var(--functions-surface);
}

.function-category.is-filtered-empty {
    display: none;
}

.function-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0;
}

.category-header {
    max-width: 1000px;
    margin: 0 0 4rem;
    text-align: left;
}

.category-header h2 {
    display: block;
    margin: 0 0 1.25rem;
    color: var(--functions-ink);
    background: none;
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.06em;
    -webkit-text-fill-color: currentColor;
}

.category-header h2::after {
    display: none;
}

.category-header p {
    max-width: 720px;
    margin: 0;
    color: var(--functions-muted);
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    font-weight: 500;
    line-height: 1.5;
}

.feature-module-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.15rem;
    max-width: none;
    padding: 0;
}

.feature-module {
    min-height: 116px;
    background: #fff;
    border: 1px solid var(--functions-hairline);
    border-radius: 22px;
    box-shadow: none;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.function-category:nth-of-type(odd) .feature-module {
    background: var(--functions-surface);
}

.feature-module:hover {
    border-color: rgba(0, 113, 227, 0.24);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.feature-module.is-open,
.feature-module.search-result-open {
    border-color: rgba(0, 113, 227, 0.4);
}

.feature-module.is-filtered-out {
    display: none !important;
}

.feature-module-header {
    min-height: 114px;
    padding: 1.35rem;
    gap: 0.9rem;
}

.feature-module-header:hover {
    background: transparent;
}

.feature-module-header:focus-visible {
    outline: 3px solid rgba(0, 113, 227, 0.28);
    outline-offset: -3px;
}

.fm-icon,
.feature-module .fm-icon[style] {
    width: 46px;
    height: 46px;
    background: rgba(0, 113, 227, 0.09) !important;
    border-radius: 13px;
}

.fm-icon i {
    color: var(--functions-blue);
    font-size: 1rem;
}

.fm-title h3 {
    color: var(--functions-ink);
    font-size: 1.08rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.fm-title > span {
    color: #86868b;
}

.fm-toggle {
    background: rgba(0, 0, 0, 0.045);
}

.feature-module.is-open .fm-toggle,
.feature-module.search-result-open .fm-toggle {
    background: var(--functions-blue);
}

.feature-module.is-open .fm-toggle i,
.feature-module.search-result-open .fm-toggle i {
    color: #fff;
    transform: rotate(180deg);
}

.feature-module.search-result-open .fm-details {
    display: block;
}

.fm-details {
    padding: 0 1.35rem 1.35rem;
    border-top-color: var(--functions-hairline);
}

.fm-details li {
    color: #515154;
    font-size: 0.92rem;
}

.fm-title h3 .fm-badge,
.fm-badge {
    padding: 0.18rem 0.55rem;
    color: #5e5e63 !important;
    background: rgba(0, 0, 0, 0.055);
    border-radius: 999px;
    -webkit-text-fill-color: currentColor !important;
}

.fm-badge.ki {
    color: #6e3cc7 !important;
    background: rgba(124, 58, 237, 0.1);
}

.fm-badge.eltern {
    color: #0066b8 !important;
    background: rgba(0, 113, 227, 0.09);
}

.fm-badge.sync {
    color: #087c53 !important;
    background: rgba(5, 150, 105, 0.1);
}

.function-category:not([id]) {
    color: #f5f5f7 !important;
    background:
        radial-gradient(circle at 85% 5%, rgba(48, 119, 255, 0.24), transparent 28%),
        radial-gradient(circle at 8% 90%, rgba(180, 71, 255, 0.18), transparent 26%),
        #000 !important;
}

.function-category:not([id]) .category-header {
    margin-inline: auto;
    text-align: center;
}

.function-category:not([id]) .category-header h2 {
    color: #fff !important;
    font-size: clamp(2.8rem, 5vw, 5.2rem) !important;
    -webkit-text-fill-color: #fff !important;
}

.function-category:not([id]) .category-header p {
    margin-inline: auto;
    color: #a1a1a6 !important;
}

.function-category:not([id]) .kv-admin-box {
    background: rgba(255, 255, 255, 0.075) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: var(--functions-radius) !important;
    box-shadow: none;
}

.dsgvo-section {
    padding: clamp(6rem, 10vw, 10rem) 1.5rem;
    background: var(--functions-surface);
}

.dsgvo-container {
    max-width: 1280px;
    gap: clamp(2rem, 6vw, 6rem);
}

.dsgvo-text h2 {
    color: var(--functions-ink);
    font-size: clamp(2.8rem, 5vw, 5.5rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.dsgvo-badges .badge,
.certification-info {
    border: 1px solid var(--functions-hairline);
    border-radius: 16px;
    box-shadow: none;
}

.download {
    padding: clamp(7rem, 13vw, 13rem) 1.5rem;
    background:
        radial-gradient(circle at 85% 5%, rgba(48, 119, 255, 0.24), transparent 28%),
        radial-gradient(circle at 8% 90%, rgba(180, 71, 255, 0.18), transparent 26%),
        #000;
}

.download-particles {
    display: none;
}

.download h2 {
    max-width: 1000px;
    margin: 0 auto 1.5rem;
    color: #fff;
    font-size: clamp(3rem, 7vw, 7rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.download p {
    max-width: 760px;
    margin-inline: auto;
    color: #a1a1a6;
    font-size: clamp(1.15rem, 1.8vw, 1.45rem);
}

.contact-button {
    border-radius: 999px;
}

.faq-section {
    padding: clamp(6rem, 10vw, 10rem) 1.5rem;
    background: #fff;
}

.faq-section h2 {
    max-width: 980px;
    margin: 0 auto 1.25rem;
    color: var(--functions-ink);
    background: none;
    font-size: clamp(3rem, 6vw, 6rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
    -webkit-text-fill-color: currentColor;
}

.faq-subtitle {
    color: var(--functions-muted);
}

.faq-container {
    max-width: 980px;
    margin-inline: auto;
}

.faq-item {
    border: 1px solid var(--functions-hairline);
    border-radius: 18px;
    box-shadow: none;
}

.faq-item:hover {
    box-shadow: none;
    transform: none;
}

.faq-toggle {
    color: var(--functions-blue);
}

.back-to-top {
    color: #fff;
    background: var(--functions-ink);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

@media (max-width: 1100px) {
    .function-search-row {
        grid-template-columns: 1fr;
    }

    .feature-module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .function-hero {
        min-height: auto;
        padding: 110px 1.25rem 72px;
    }

    .function-hero h1 {
        font-size: clamp(3.1rem, 15vw, 5rem);
    }

    .hero-trust-panel {
        grid-template-columns: 1fr;
        gap: 0.9rem;
        max-width: 560px;
        padding: 1.1rem;
        text-align: center;
    }

    .hero-trust-heading,
    .hero-trust-facts {
        justify-content: center;
    }

    .hero-trust-facts {
        flex-wrap: wrap;
        padding: 0.9rem 0;
        border-block: 1px solid var(--functions-hairline);
        border-inline: 0;
    }

    .hero-trust-details {
        justify-self: center;
    }

    .function-discovery {
        top: 62px;
        padding: 0.8rem 1rem;
    }

    .function-filter-list {
        margin-inline: -0.1rem;
        padding-bottom: 0.1rem;
    }

    .function-results-status {
        margin-top: 0.5rem;
    }

    .function-category {
        padding: 5.5rem 1.25rem;
    }

    .category-header h2 {
        font-size: clamp(2.8rem, 13vw, 4.5rem);
    }

    .feature-module-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .function-hero .feature-counter-bar {
        align-items: center;
        flex-direction: column;
    }

    .hero-trust-facts {
        align-items: flex-start;
        flex-direction: column;
        padding-inline: 0.35rem;
        text-align: left;
    }

    .function-search input {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
