/* ============================================
   UPCHAIN CONSULTING AG - PROFESSIONAL STYLESHEET
   IT-Support im Berner Seeland
   ============================================ */

:root {
    --primary: #7c3aed;
    --primary-dark: #6d28d9;
    --primary-light: #a78bfa;
    --primary-gradient: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    
    --dark: #1f2937;
    --dark-light: #374151;
    --gray: #6b7280;
    --gray-light: #9ca3af;
    --light: #f3f4f6;
    --lighter: #f9fafb;
    --white: #ffffff;
    
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    
    --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
    
    --container-max: 1200px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--dark);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition-base); }
ul, ol { list-style: none; }
address { font-style: normal; }

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.25;
    color: var(--dark);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-sm { padding: 0.625rem 1.25rem; font-size: 0.875rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.125rem; }
.btn-block { width: 100%; }

.btn-primary {
    background: var(--primary-gradient);
    color: var(--white);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(124, 58, 237, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
}
.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}
.btn-outline-white:hover {
    background: var(--white);
    color: var(--primary);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--light);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
}
.logo-icon { font-size: 1.75rem; color: var(--primary); }

.nav {
    display: none;
    align-items: center;
    gap: 2rem;
}
.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray);
    padding: 0.5rem 0;
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width var(--transition-base);
}
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.header-actions {
    display: none;
    align-items: center;
    gap: 0.75rem;
}

.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
}
.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: all var(--transition-base);
}
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    z-index: 999;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    overflow-y: auto;
}
.mobile-menu.active { transform: translateX(0); }

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}
.mobile-nav-link {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark);
    padding: 1rem;
    border-radius: var(--radius-lg);
    transition: background var(--transition-base);
}
.mobile-nav-link:hover, .mobile-nav-link.active {
    background: var(--lighter);
    color: var(--primary);
}

.mobile-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Hero */
.hero {
    position: relative;
    padding: 160px 0 100px;
    background: linear-gradient(180deg, var(--lighter) 0%, var(--white) 100%);
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 70%;
    height: 150%;
    background: var(--primary-gradient);
    opacity: 0.03;
    border-radius: 50%;
    pointer-events: none;
}

.hero-content { position: relative; max-width: 720px; }

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(124, 58, 237, 0.1);
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
}

.hero-title { margin-bottom: 1.5rem; }

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: var(--gray);
}
.trust-icon { color: var(--success); font-weight: bold; }

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}
.section-title { margin-bottom: 1rem; }
.section-subtitle { font-size: 1.125rem; color: var(--gray); }

/* Services Grid */
.services-overview { padding: 5rem 0; }

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.service-card {
    display: block;
    padding: 2rem;
    background: var(--white);
    border: 2px solid var(--light);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
}
.service-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.service-card-primary {
    background: var(--primary-gradient);
    color: var(--white);
    border-color: transparent;
}
.service-card-primary:hover { border-color: transparent; }
.service-card-primary .service-title { color: var(--white); }
.service-card-primary .service-desc,
.service-card-primary .service-list li { color: rgba(255, 255, 255, 0.9); }
.service-card-primary .service-list li::before { color: rgba(255, 255, 255, 0.7); }
.service-card-primary .service-link { color: var(--white); }

.service-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.service-title { font-size: 1.5rem; margin-bottom: 0.75rem; }
.service-desc { color: var(--gray); margin-bottom: 1.25rem; }

.service-list { margin-bottom: 1.25rem; }
.service-list li {
    padding: 0.375rem 0 0.375rem 1.5rem;
    color: var(--gray);
    position: relative;
    font-size: 0.9375rem;
}
.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

.service-link { font-weight: 600; color: var(--primary); }

/* Remote Banner */
.remote-banner {
    padding: 4rem 0;
    background: var(--dark);
}
.remote-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    text-align: center;
}
.remote-text h2 { color: var(--white); margin-bottom: 0.75rem; }
.remote-text p { color: var(--gray-light); max-width: 500px; margin: 0 auto; }
.remote-actions { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.remote-hint { font-size: 0.875rem; color: var(--gray); }

/* Why Us */
.why-us {
    padding: 5rem 0;
    background: var(--lighter);
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.benefit-card {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.benefit-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.benefit-card h3 { margin-bottom: 0.75rem; }
.benefit-card p { color: var(--gray); margin: 0; font-size: 0.9375rem; }

/* Service Area */
.service-area { padding: 5rem 0; }
.area-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
    text-align: center;
}
.area-text h2 { margin-bottom: 0.75rem; }
.area-text p { color: var(--gray); margin-bottom: 1.25rem; }
.area-locations {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}
.location-tag {
    padding: 0.5rem 1rem;
    background: var(--light);
    border-radius: var(--radius-full);
    font-size: 0.9375rem;
    font-weight: 500;
}
.area-cta {
    padding: 2rem;
    background: var(--lighter);
    border-radius: var(--radius-xl);
}
.area-cta-text { color: var(--gray); margin-bottom: 1rem; }

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: var(--primary-gradient);
    text-align: center;
}
.cta-content h2 { color: var(--white); margin-bottom: 1rem; }
.cta-content p { color: rgba(255, 255, 255, 0.9); font-size: 1.125rem; margin-bottom: 2rem; }
.cta-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

/* SEO Content */
.seo-content {
    padding: 4rem 0;
    background: var(--lighter);
}
.seo-content .container { max-width: 800px; }
.seo-content h2 { font-size: 1.5rem; margin-bottom: 1.5rem; }
.seo-content p { color: var(--gray); font-size: 0.9375rem; line-height: 1.8; margin-bottom: 1rem; }
.seo-content p:last-child { margin-bottom: 0; }

/* Footer */
.footer {
    padding: 4rem 0 2rem;
    background: var(--dark);
    color: var(--gray-light);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
}
.footer-logo .logo-icon { color: var(--primary-light); }
.footer-brand p { font-size: 0.9375rem; margin-bottom: 1rem; }
.footer-address { font-size: 0.875rem; color: var(--gray); line-height: 1.6; }

.footer-links h4, .footer-contact h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 1.25rem;
}
.footer-links a {
    display: block;
    padding: 0.375rem 0;
    font-size: 0.9375rem;
    color: var(--gray-light);
}
.footer-links a:hover { color: var(--white); }

.footer-contact a { color: var(--gray-light); }
.footer-contact a:hover { color: var(--white); }
.footer-contact p { margin-bottom: 1rem; }

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--dark-light);
    text-align: center;
}
.footer-bottom p { font-size: 0.875rem; margin: 0; }

/* Page Header */
.page-header {
    padding: 160px 0 80px;
    background: linear-gradient(180deg, var(--lighter) 0%, var(--white) 100%);
    text-align: center;
}
.page-header h1 { margin-bottom: 1rem; }
.page-header p {
    font-size: 1.25rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Service Detail */
.service-detail { padding: 4rem 0; }
.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
.service-item {
    display: flex;
    gap: 1.25rem;
    padding: 1.75rem;
    background: var(--lighter);
    border-radius: var(--radius-xl);
    transition: transform var(--transition-base);
}
.service-item:hover { transform: translateX(4px); }
.service-item-icon { font-size: 2rem; flex-shrink: 0; }
.service-item h3 { margin-bottom: 0.5rem; font-size: 1.125rem; }
.service-item p { color: var(--gray); margin: 0; font-size: 0.9375rem; }

/* Payment Section */
.payment-section {
    padding: 4rem 0;
    background: var(--lighter);
}

/* Contact Form */
.contact-form { max-width: 600px; margin: 0 auto; }
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; font-weight: 600; margin-bottom: 0.5rem; font-size: 0.9375rem; }
.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    border: 2px solid var(--light);
    border-radius: var(--radius-lg);
    transition: border-color var(--transition-base);
    background: var(--white);
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary);
}
.form-textarea { min-height: 150px; resize: vertical; }

/* Responsive */
@media (min-width: 640px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .benefits-grid { grid-template-columns: repeat(2, 1fr); }
    .service-detail-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
    .remote-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    .remote-text p { margin: 0; }
    .remote-actions { align-items: flex-end; }
    
    .area-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    .area-locations { justify-content: flex-start; }
}

@media (min-width: 1024px) {
    .nav { display: flex; }
    .header-actions { display: flex; }
    .mobile-menu-btn { display: none; }
    
    .services-grid { grid-template-columns: repeat(3, 1fr); }
    .benefits-grid { grid-template-columns: repeat(4, 1fr); }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; }
}

/* Utility */
.text-center { text-align: center; }
