/* =========================================
   DESIGN SYSTEM – TecTim GmbH
   Pattern: Light / Dark zone alternation
   ========================================= */

:root {
    --primary:       #0066ff;
    --accent:        #3399ff;
    --text:          #1a1a1a;
    --text-muted:    #666;
    --bg:            #ffffff;
    --bg-light:      #f4f7ff;
    --white:         #ffffff;
    --dark-bg:       #0a0d14;
    --dark-bg-alt:   #0d1120;
    --dark-text:     rgba(255,255,255,0.85);
    --dark-muted:    rgba(255,255,255,0.45);
    --dark-border:   rgba(255,255,255,0.08);
    --container-width: 1200px;
    --transition:    all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --radius:        20px;
}

/* =========================================
   BASE
   ========================================= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    overflow-x: hidden;
}
h1, h2, h3 { font-family: 'Outfit', sans-serif; font-weight: 700; line-height: 1.15; }

/* =========================================
   LAYOUT UTILITIES
   ========================================= */
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 2rem; }
.section-padding { padding: 100px 0; }
.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }

/* Section header – light zones */
.section-header {
    text-align: left;
    max-width: 680px;
    margin: 0 0 4rem;
}
.section-header h2 { font-size: 2.6rem; margin-bottom: 0.9rem; color: var(--text); }
.section-header p  { color: var(--text-muted); font-size: 1.05rem; }

/* Section header – dark zones */
.dark-zone .section-header h2 { color: var(--white); }
.dark-zone .section-header p  { color: var(--dark-muted); }

/* =========================================
   BADGE
   ========================================= */
.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
}
/* badge on dark */
.dark-zone .badge {
    background: rgba(0, 102, 255, 0.18);
    color: var(--accent);
    border: 1px solid rgba(51, 153, 255, 0.25);
}

/* =========================================
   BUTTONS
   ========================================= */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.25);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0, 102, 255, 0.35);
}
.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-secondary:hover { background: var(--primary); color: var(--white); }

/* =========================================
   HEADER
   ========================================= */
#main-header {
    position: fixed; top: 0; left: 0; width: 100%;
    z-index: 1000; padding: 1.4rem 0;
    transition: var(--transition);
}
#main-header.scrolled {
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    padding: 0.9rem 0;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
nav { display: flex; justify-content: space-between; align-items: center; }
.logo-container { display: flex; flex-direction: column; }
.logo { font-size: 1.8rem; color: var(--text); text-decoration: none; line-height: 1; font-family: 'Outfit', sans-serif; font-weight: 700; }
.logo span { color: var(--primary); font-weight: 300; }
.slogan { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 1.8px; color: var(--text-muted); margin-top: 4px; font-weight: 600; }
.nav-links { display: flex; list-style: none; gap: 2.5rem; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text); font-weight: 500; transition: color 0.3s; }
.nav-links a:hover { color: var(--primary); }

/* hamburger: hidden on desktop */
.menu-toggle { display: none; cursor: pointer; }
.menu-toggle .bar { display: block; width: 25px; height: 2px; margin: 5px auto; transition: all 0.3s ease-in-out; background-color: var(--text); }

/* =========================================
   HERO (Light Zone)
   ========================================= */
#hero { height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg .overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to right, rgba(255,255,255,0.92) 30%, rgba(255,255,255,0.15));
}
.hero-content { max-width: 780px; }
#hero h1 { font-size: clamp(2.4rem, 5.5vw, 3.8rem); margin-bottom: 1.4rem; color: var(--text); }
#hero p  { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 2.5rem; max-width: 580px; }
.hero-cta { display: flex; gap: 1.5rem; }

/* =========================================
   SERVICES (Dark Zone)
   ========================================= */
#services {
    background: linear-gradient(160deg, var(--dark-bg) 0%, var(--dark-bg-alt) 50%, var(--dark-bg) 100%);
}
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 2rem; }
.service-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--dark-border);
    padding: 2.8rem;
    border-radius: var(--radius);
    position: relative; overflow: hidden;
    transition: var(--transition); cursor: pointer;
}
.service-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.45s ease;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(0, 102, 255, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 102, 255, 0.15);
}
.service-card .icon { font-size: 2.4rem; margin-bottom: 1.4rem; display: block; }
.service-card h3   { font-size: 1.35rem; margin-bottom: 0.8rem; color: var(--white); }
.service-card p    { color: var(--dark-muted); font-size: 0.95rem; line-height: 1.65; }

/* =========================================
   AI SPECIAL (Dark Zone)
   ========================================= */
#ai-special {
    background: linear-gradient(160deg, var(--dark-bg) 0%, var(--dark-bg-alt) 50%, var(--dark-bg) 100%);
}
.ai-container { max-width: var(--container-width); }
.ai-text-block h2  { font-size: 2.8rem; color: var(--white); margin-bottom: 1.5rem; }
.ai-text-block .lead {
    font-size: 1.25rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 1.8rem;
    line-height: 1.6;
}
.ai-text-block p { font-size: 1rem; color: var(--dark-muted); margin-bottom: 1.4rem; }
.ai-text-block strong { color: rgba(255,255,255,0.8); }
.ai-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.9rem;
    margin-top: 1.8rem;
}
.ai-list li {
    padding: 1rem 1.2rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--dark-border);
    border-left: 3px solid var(--primary);
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--dark-text);
    transition: var(--transition);
}
.ai-list li:hover {
    background: rgba(0, 102, 255, 0.1);
    border-left-color: var(--accent);
    color: var(--white);
    transform: translateX(4px);
}

/* =========================================
   PROJECTS (Dark Zone)
   ========================================= */
#projects {
    background: linear-gradient(160deg, var(--dark-bg-alt) 0%, var(--dark-bg) 50%, var(--dark-bg-alt) 100%);
}
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 2rem; }
.project-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--dark-border);
    padding: 2.5rem;
    border-radius: var(--radius);
    position: relative; overflow: hidden;
    transition: var(--transition); cursor: pointer;
}
.project-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.45s ease;
}
.project-card:hover::before { transform: scaleX(1); }
.project-card:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(0, 102, 255, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 102, 255, 0.15);
}
.project-number {
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem; font-weight: 700;
    letter-spacing: 3px; text-transform: uppercase;
    color: var(--primary); opacity: 0.75;
    display: block; margin-bottom: 1.2rem;
}
.project-content { position: relative; z-index: 1; }
.project-card h3 { font-size: 1.45rem; color: var(--white); margin-bottom: 0.7rem; }
.project-card p  { color: var(--dark-muted); font-size: 0.94rem; line-height: 1.7; margin-bottom: 1.8rem; }
.project-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
    padding: 0.3rem 0.85rem;
    background: rgba(0, 102, 255, 0.15);
    color: var(--accent);
    border-radius: 50px;
    font-size: 0.76rem; font-weight: 600;
    border: 1px solid rgba(51, 153, 255, 0.2);
    transition: var(--transition);
}
.project-card:hover .tag {
    background: rgba(0, 102, 255, 0.25);
    border-color: rgba(51, 153, 255, 0.4);
}

/* =========================================
   ABOUT (Dark Zone)
   ========================================= */
#about {
    background: linear-gradient(160deg, var(--dark-bg) 0%, var(--dark-bg-alt) 50%, var(--dark-bg) 100%);
}
.about-flex  { display: flex; justify-content: center; text-align: center; }
.about-text  { max-width: 800px; }
.about-text h2 { font-size: 2.6rem; color: var(--white); margin-bottom: 1.2rem; }
.about-text p  { color: var(--dark-muted); font-size: 1.05rem; margin-bottom: 2rem; }
.stats { display: flex; justify-content: center; list-style: none; gap: 3rem; }
.stats li     { display: flex; flex-direction: column; color: #fff; }
.stats strong { font-size: 2rem; color: var(--primary); font-family: 'Outfit', sans-serif; }

/* =========================================
   CONTACT (Dark Zone)
   ========================================= */
#contact {
    background: linear-gradient(160deg, var(--dark-bg) 0%, var(--dark-bg-alt) 100%);
}
#contact h2 { color: var(--white); font-size: 2.5rem; }
#contact > .container > p { color: var(--dark-muted); margin-top: 1rem; }
.contact-info { margin: 2.5rem 0; }
.contact-info p { font-size: 1.15rem; color: var(--dark-text); margin-bottom: 0.8rem; }
.contact-info a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(51,153,255,0.3); }

/* =========================================
   IMPRESSUM (Light Zone)
   ========================================= */
#impressum { background: var(--bg-light); }
.impressum-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; margin-top: 2rem; font-size: 0.95rem; color: var(--text-muted); }
.small-text h2 { font-size: 1.8rem; color: var(--text); margin-bottom: 0.5rem; }

/* =========================================
   FOOTER
   ========================================= */
footer { padding: 2.5rem 0; border-top: 1px solid rgba(0,0,0,0.05); }
.footer-content { display: flex; justify-content: space-between; align-items: center; font-size: 0.88rem; color: var(--text-muted); }
footer nav a { margin-left: 2rem; text-decoration: none; color: var(--text-muted); transition: color 0.3s; }
footer nav a:hover { color: var(--primary); }

/* =========================================
   REVEAL ANIMATIONS
   ========================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: all 0.75s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 968px) {
    .about-flex { flex-direction: column; }
    .menu-toggle { display: block; }
    .nav-links {
        position: fixed; left: -100%; top: 80px;
        flex-direction: column; background: var(--white); width: 100%;
        text-align: center; transition: 0.3s;
        box-shadow: 0 10px 30px rgba(0,0,0,0.06);
        padding: 2rem 0; gap: 1.5rem;
    }
    .nav-links.active { left: 0; }
    #mobile-menu.is-active .bar:nth-child(2) { opacity: 0; }
    #mobile-menu.is-active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    #mobile-menu.is-active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 768px) {
    .hero-bg .overlay { background: rgba(255,255,255,0.88); }
    .hero-cta { flex-direction: column; }
    .stats { gap: 1.5rem; flex-wrap: wrap; }
    .services-grid, .projects-grid { grid-template-columns: 1fr; }
    .ai-list { grid-template-columns: 1fr; }
}
