/* Global enhancements beyond Tailwind utility classes */
:root {
    --dib-shadow: 0 20px 45px -25px rgba(26, 28, 34, 0.45);
    --dib-shadow-soft: 0 10px 24px -18px rgba(26, 28, 34, 0.5);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

/* Mobile: Texte leserlich halten */
@media (max-width: 640px) {
    .prose {
        font-size: 1rem;
        line-height: 1.75;
    }
    .prose h2 {
        font-size: 1.35rem;
    }
}

#navbar {
    transition: box-shadow 220ms ease, background-color 220ms ease;
}

#navbar.scrolled {
    box-shadow: var(--dib-shadow-soft);
}

article .prose h2,
article .prose h3 {
    scroll-margin-top: 110px;
}

.hero-fade-in {
    opacity: 0;
    transform: translateY(22px);
    animation: heroEnter 700ms ease forwards;
}

.hero-fade-in.delay-1 {
    animation-delay: 120ms;
}

.hero-fade-in.delay-2 {
    animation-delay: 220ms;
}

.hero-fade-in.delay-3 {
    animation-delay: 320ms;
}

@keyframes heroEnter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-lift {
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.card-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--dib-shadow);
}

@media (max-width: 767px) {
    .mobile-safe-pad {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
}
