/* ==========================================================================
   ZID – Zachriat Ingenieur-Dienstleistungen GmbH
   Shared stylesheet for the whole website.
   Merged from the per-page <style> blocks that used to be duplicated on
   every subpage — edit colors, fonts and effects here in one place.
   Accent colors: primary #e75138 (terracotta) / secondary #4f4794 (indigo),
   both taken from the company logo.
   ========================================================================== */

/* ---- Base ---------------------------------------------------------- */
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Space Grotesk', sans-serif;
    /* clearly-visible but still soft indigo wash (the logo's blue accent)
       across the whole page, with a faint warm whisper in one corner */
    background-image:
        radial-gradient(ellipse 1600px 1100px at 80% 0%, rgba(79, 71, 148, 0.10), transparent 65%),
        radial-gradient(ellipse 1400px 900px at 20% 100%, rgba(79, 71, 148, 0.07), transparent 60%),
        radial-gradient(ellipse 900px 550px at 0% -10%, rgba(231, 81, 56, 0.03), transparent 55%);
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* ---- Glass / surface effects ---------------------------------------- */
.glass-effect {
    background: rgba(233, 234, 242, 0.85);
    backdrop-filter: blur(12px);
}

.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(231, 81, 56, 0.15);
}

.hero-gradient {
    background: linear-gradient(to bottom, rgba(233, 234, 242, 0.15), rgba(233, 234, 242, 0.97));
}

.bg-grid-pattern {
    background-image: radial-gradient(circle at 2px 2px, rgba(231, 81, 56, 0.08) 1px, transparent 0);
    background-size: 40px 40px;
}

.section-card {
    background: rgba(231, 81, 56, 0.04);
    border: 1px solid rgba(79, 71, 148, 0.18);
}

/* ---- Scroll-reveal animations (shared across pages) ------------------ */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}
.reveal.is-visible,
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.stagger-1,
.reveal-delay-1 { transition-delay: 0.1s; }
.stagger-2,
.reveal-delay-2 { transition-delay: 0.2s; }
.stagger-3,
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.scroll-reveal { opacity: 0; }
.animate-reveal { animation: fadeInUp 0.8s ease-out forwards; }

/* ---- Service grid (Leistungen) --------------------------------------- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}
@media (min-width: 640px) { .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .service-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1536px) { .service-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* ---- Custom scrollbar (Karriere) -------------------------------------- */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: #e9ded0;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #e75138;
    border-radius: 10px;
}

/* ---- Misc utilities ---------------------------------------------------- */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scroll-battery-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 50;
}
