:root {
    --color-primary: #0A2342;
    --color-accent: #0F62FE;
    --color-text-dark: #111111;
    --color-text-mid: #2F2F2F;
    --color-text-light: #555555;
    --color-background: #ffffff;
    --color-background-light: #f7f9fc;
    --color-border: #e2e6ee;

    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --container-width: 1120px;
    --border-radius: 12px;
    --shadow-soft: 0 24px 50px -30px rgba(10, 35, 66, 0.35);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
    opacity: 0.85;
}

.container {
    width: min(92%, var(--container-width));
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

.grid-2-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem;
    align-items: stretch;
}

.grid-2-col .approach-visual {
    display: flex;
    align-items: center;
}

section {
    padding: 96px 0;
}

h1, h2, h3, h4, h5 {
    color: var(--color-primary);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.8rem, 4vw, 3.3rem);
}

h2 {
    font-size: clamp(2.2rem, 3vw, 3rem);
}

h3 {
    font-size: clamp(1.8rem, 2.5vw, 2.4rem);
}

h4 {
    font-size: 1.3rem;
}

.section-h3 {
    margin-bottom: 3rem;
}

.section-h2 {
    margin-bottom: 2rem;
}

p {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 14px 32px;
    border-radius: var(--border-radius);
    border: 2px solid transparent;
    font-weight: 600;
    font-size: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

.button-primary {
    background-color: var(--color-primary);
    color: var(--color-background);
    box-shadow: var(--shadow-soft);
}

.button-primary:hover {
    background-color: var(--color-accent);
    transform: translateY(-2px);
}

.button-secondary {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background-color: transparent;
}

.button-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-background);
}

.link-secondary {
    color: var(--color-primary);
    font-weight: 600;
    border-bottom: 2px solid transparent;
}

.link-secondary:hover {
    border-bottom-color: currentColor;
}

.disabled-link {
    color: #a0aec0;
    cursor: not-allowed;
    pointer-events: none;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(10, 35, 66, 0.06);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 8px rgba(10, 35, 66, 0.08);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    transition: height 0.3s ease;
}

.site-header.scrolled .header-container {
    height: 56px;
}

.logo {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary);
    transition: font-size 0.3s ease;
}

.site-header.scrolled .logo {
    font-size: 0.95rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    font-weight: 500;
    color: var(--color-text-mid);
}

.main-nav .nav-cta {
    color: var(--color-primary);
    font-weight: 600;
}

.main-nav a {
    position: relative;
    padding-bottom: 6px;
    transition: color 0.2s ease, padding 0.3s ease;
    flex-shrink: 0;
}

.site-header.scrolled .main-nav a {
    padding-bottom: 4px;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--color-accent);
    opacity: 0;
    transform: scaleX(0.4);
    transform-origin: center;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.main-nav a.is-active,
.main-nav a:focus-visible {
    color: var(--color-accent);
}

.main-nav a.is-active::after,
.main-nav a:focus-visible::after {
    opacity: 1;
    transform: scaleX(1);
}

/* Hero */

.hero-section {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 92vh;
    background: #ffffff;
}

.hero-section::before,
.hero-section::after {
    display: none;
}

.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.particles-container canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.particles-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background: 
        radial-gradient(circle at center, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.95) 30%, rgba(255, 255, 255, 0.7) 45%, transparent 65%),
        linear-gradient(to top, transparent 0%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, transparent 100%),
        linear-gradient(to left, transparent 0%, transparent 100%),
        linear-gradient(to right, transparent 0%, transparent 100%);
    background-blend-mode: normal;
}

@keyframes heroGradient {
    0% {
        transform: translate(-10%, -12%) rotate(-16deg) scale(1.02);
    }
    35% {
        transform: translate(4%, -6%) rotate(-8deg) scale(1.16);
    }
    70% {
        transform: translate(-6%, -10%) rotate(-18deg) scale(1.08);
    }
    100% {
        transform: translate(8%, -8%) rotate(-12deg) scale(1.14);
    }
}

.hero-container {
    max-width: 1100px;
    position: relative;
    z-index: 1;
}

.hero-kicker {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}

.hero-h1 {
    margin-bottom: 1.5rem;
    line-height: 1.4;
    word-spacing: -0.05em;
}

.hero-h1 .no-break {
    white-space: nowrap;
}

.hero-h2 {
    font-weight: 400;
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

.hero-cta-wrapper {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.hero-meta span::before {
    content: "•";
    margin-right: 0.75rem;
    color: var(--color-accent);
}

.logo-carousel-wrapper {
    margin-top: 6rem;
    width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.logo-carousel-label {
    text-align: center;
    font-size: 0.75rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.logo-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    padding: 1rem 0;
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.logo-carousel-track {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5rem;
    animation: scrollLogo 40s linear infinite;
    will-change: transform;
    width: max-content;
}

.logo-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.logo-item:hover {
    opacity: 1;
}

.logo-image {
    height: 90px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.logo-item:hover .logo-image {
    filter: grayscale(0%);
}

@keyframes scrollLogo {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.scroll-indicator {
    margin-top: 5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.6;
    animation: fadeInUp 1s ease-out;
}

.scroll-indicator-arrow {
    color: var(--color-accent);
    animation: bounce 2s infinite;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.scroll-indicator-arrow svg {
    width: 32px;
    height: 32px;
}

.scroll-indicator-arrow:hover {
    opacity: 1;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: scale(1.3) translateY(0);
    }
    40% {
        transform: scale(1.3) translateY(-10px);
    }
    60% {
        transform: scale(1.3) translateY(-5px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 0.6;
        transform: translateY(0);
    }
}

/* Problem section */

.problem-section {
    background-color: var(--color-background);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

.problem-card {
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 2.2rem;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.problem-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px -30px rgba(10, 35, 66, 0.45);
}

.problem-card h4 {
    margin-bottom: 1rem;
    color: var(--color-primary);
}

/* Approach */

.approach-section {
    background-color: var(--color-background-light);
}

.list-check {
    list-style: none;
    margin: 1.5rem 0 2rem;
}

.list-check li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    color: var(--color-text-mid);
}

.list-check li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--color-accent);
}

.approach-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
}

.triangle-visualization {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
    width: 100%;
    margin: 0;
}

.triangle-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
    object-fit: contain;
    margin: 0 auto;
}

.triangle-visualization figcaption {
    font-size: 0.95rem;
    color: var(--color-text-light);
    text-align: center;
    margin-top: 1rem;
}

/* Services */

.services-section {
    background-color: var(--color-background);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--color-background-light);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    border: 1px solid rgba(10, 35, 66, 0.05);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-height: 100%;
}

.service-card ul {
    list-style: none;
}

.service-card li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-text-light);
}

.service-card li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--color-accent);
}

/* Process */

.process-section {
    background-color: #fff;
}

.process-steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    counter-reset: step;
}

.process-steps li {
    background-color: var(--color-background-light);
    padding: 1.8rem 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(10, 35, 66, 0.1);
}

.process-steps h5 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--color-primary);
}

/* Case Studies */

.case-studies-section {
    background-color: var(--color-background);
}

.case-card {
    background-color: var(--color-background-light);
    border-radius: var(--border-radius);
    padding: 2.4rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    border: 1px solid rgba(10, 35, 66, 0.08);
    height: 100%;
}

.case-card p {
    flex-grow: 1;
}

.case-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-accent);
    background-color: rgba(15, 98, 254, 0.12);
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    letter-spacing: 0.04em;
}

.case-title {
    margin-bottom: 0.5rem;
}

/* Trust section */

.trust-section {
    background-color: var(--color-background-light);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.trust-grid span {
    background-color: #fff;
    border-radius: 999px;
    border: 1px solid rgba(10, 35, 66, 0.1);
    padding: 0.9rem 1.4rem;
    text-align: center;
    font-weight: 600;
    color: var(--color-text-mid);
}

/* About */

.about-section {
    background-color: var(--color-background);
}

.profile-image {
    width: min(380px, 100%);
    border-radius: var(--border-radius);
    box-shadow: 0 30px 60px -40px rgba(10, 35, 66, 0.65);
    margin: 0 auto;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* Testimonials */

.testimonials-section {
    background-color: var(--color-background-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: 2.2rem;
    border: 1px solid rgba(10, 35, 66, 0.08);
    font-style: normal;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.testimonial-card blockquote {
    font-style: italic;
    color: var(--color-text-mid);
}

.testimonial-card figcaption {
    color: var(--color-text-light);
    font-weight: 600;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.testimonial-author-link {
    color: var(--color-text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.testimonial-author-link:hover {
    color: var(--color-primary);
}

.testimonial-author-link strong {
    font-weight: 600;
}

.testimonial-meta {
    font-weight: 400;
    color: var(--color-text-mid);
}

.testimonial-date-relationship {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--color-text-light);
    opacity: 0.8;
}

.testimonials-footer {
    margin-top: 2rem;
    text-align: center;
}

/* CTA */

.cta-section {
    background-color: #fff;
    padding-bottom: 120px;
}

.calendly-placeholder-wrapper {
    margin-top: 2.5rem;
}

.cta-email-fallback {
    margin-top: 2rem;
    font-size: 1rem;
    color: var(--color-text-mid);
}

/* Footer */

.footer {
    background-color: var(--color-primary);
    color: #fff;
    padding: 36px 0;
}

.footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
    font-size: 0.95rem;
}

.footer-nav a {
    color: #fff;
    font-weight: 500;
}

.footer-nav a:hover {
    text-decoration: underline;
}

/* Responsive */

@media (max-width: 1024px) {
    .grid-2-col {
        grid-template-columns: 1fr;
    }

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

    .hero-section {
        padding-top: 140px;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    .site-header {
        position: sticky;
    }
    
    .site-header.scrolled .header-container {
        height: 48px;
    }

    .header-container {
        flex-direction: row;
        gap: 0.5rem;
        height: 64px;
        padding: 0.5rem 0;
    }

    .main-nav {
        flex-wrap: nowrap;
        justify-content: flex-end;
        gap: 0.5rem;
        font-size: 0.75rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .main-nav::-webkit-scrollbar {
        display: none;
    }
    
    /* Auf mobil nur Leistungen, Referenzen, Kontakt anzeigen */
    .main-nav a[href="#about"],
    .main-nav a[href="#ansatz"] {
        display: none;
    }
    
    .site-header.scrolled .main-nav {
        font-size: 0.7rem;
        gap: 0.4rem;
    }
    
    .logo {
        font-size: 0.9rem;
        white-space: nowrap;
    }
    
    .site-header.scrolled .logo {
        font-size: 0.85rem;
    }

    section {
        padding: 32px 0;
    }

    .hero-section {
        min-height: auto;
        padding: 40px 0 60px;
    }

    .hero-h1 {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }

    .hero-h2 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .hero-cta-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .hero-meta {
        flex-direction: column;
        gap: 0.5rem;
        font-size: 0.85rem;
    }

    /* Partikel-Animation ausblenden auf mobil */
    .particles-container {
        display: none;
    }

    .particles-mask {
        display: none;
    }

    /* Logo-Carousel mobile optimieren */
    .logo-carousel-wrapper {
        margin-top: 2rem;
    }
    
    .logo-carousel-label {
        font-size: 0.7rem;
        margin-bottom: 0.75rem;
    }
    
    .logo-carousel {
        padding: 0.75rem 0;
    }
    
    .logo-carousel-track {
        gap: 2.5rem;
        animation: scrollLogo 30s linear infinite;
    }
    
    .logo-image {
        height: 50px;
        max-width: 120px;
    }

    /* Scroll-Indikator ausblenden */
    .scroll-indicator {
        display: none;
    }

    .services-grid,
    .problem-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .case-card,
    .problem-card,
    .service-card {
        padding: 1.25rem;
    }

    .section-h2,
    .section-h3 {
        margin-bottom: 1.25rem;
    }

    p {
        margin-bottom: 1rem;
    }

    .triangle {
        transform: scale(0.9);
    }

    .triangle-image {
        max-width: 100%;
    }
}

@media (max-width: 560px) {
    body {
        font-size: 15px;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .section-h2 {
        font-size: 1.6rem;
    }

    .hero-h1 {
        font-size: 1.75rem;
    }

    section {
        padding: 24px 0;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero-section {
        padding: 32px 0 50px;
    }

    .hero-h1 {
        margin-bottom: 0.5rem;
    }

    .hero-h2 {
        margin-bottom: 0.75rem;
    }

    .hero-cta-wrapper {
        margin-bottom: 0.75rem;
    }

    .hero-kicker {
        margin-bottom: 1rem;
    }
    
    .logo-carousel-wrapper {
        margin-top: 1.5rem;
    }
    
    .logo-carousel-label {
        font-size: 0.65rem;
        margin-bottom: 0.5rem;
    }
    
    .logo-carousel-track {
        gap: 2rem;
        animation: scrollLogo 25s linear infinite;
    }
    
    .logo-image {
        height: 40px;
        max-width: 100px;
    }

    .button {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    .header-container {
        height: 60px;
        padding: 0.4rem 0;
    }
    
    .site-header.scrolled .header-container {
        height: 44px;
    }

    .main-nav {
        font-size: 0.7rem;
        gap: 0.4rem;
    }
    
    .site-header.scrolled .main-nav {
        font-size: 0.65rem;
        gap: 0.3rem;
    }

    .main-nav a {
        padding: 0.3rem 0.6rem;
        white-space: nowrap;
    }
    
    .logo {
        font-size: 0.85rem;
    }
    
    .site-header.scrolled .logo {
        font-size: 0.8rem;
    }

    .footer-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        font-size: 0.85rem;
    }

    .hero-kicker {
        font-size: 0.9rem;
    }

    .list-check {
        margin: 0.75rem 0 1rem;
    }

    .list-check li {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .case-card,
    .problem-card,
    .service-card {
        padding: 1.25rem;
    }

    .section-h2,
    .section-h3 {
        margin-bottom: 1rem;
    }

    p {
        margin-bottom: 1rem;
    }

    .services-grid,
    .problem-grid,
    .testimonials-grid {
        gap: 1rem;
    }
}

