/* ==================== GEMEINSAME STYLES — mattia-mettler.ch ==================== */

:root {
    --svp-green: #009639;
    --svp-green-dark: #006B2B;
    --svp-green-light: #00C44B;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F2F7F3;
    --bg-card: #FFFFFF;
    --text-primary: #0D1F12;
    --text-secondary: #3D5E46;
    --text-muted: #5A7E64;
    --border: rgba(0, 150, 57, 0.14);
    --border-hover: rgba(0, 150, 57, 0.4);
    --gradient-hero: linear-gradient(135deg, #0A0F0D 0%, #0D1A11 40%, #112015 100%);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--svp-green) var(--bg-primary);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 400;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* ==================== NAVIGATION ==================== */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}

.nav-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo .dot {
    width: 10px; height: 10px;
    background: var(--svp-green);
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.8); }
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover { color: var(--text-primary); }

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--svp-green);
    transition: var(--transition);
}

.nav-links a:hover::after { width: 100%; }

.nav-cta {
    background: var(--svp-green) !important;
    color: white !important;
    padding: 0.6rem 1.4rem;
    border-radius: 100px;
    font-weight: 500;
}

.nav-cta:hover { background: var(--svp-green-light) !important; transform: translateY(-1px); }
.nav-cta::after { display: none !important; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.hamburger span { width: 24px; height: 2px; background: var(--text-primary); transition: var(--transition); }

/* ==================== PAGE HEADER ==================== */
.page-header {
    background: var(--gradient-hero);
    padding: 8rem 2rem 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -200px; right: -200px;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    border-radius: 50%;
}

.page-header-inner {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.page-header-tag {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.7);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.2rem;
}

.page-header-tag::before { content: ''; width: 30px; height: 1px; background: rgba(255,255,255,0.4); }
.page-header-tag::after  { content: ''; width: 30px; height: 1px; background: rgba(255,255,255,0.4); }

.page-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: -1.5px;
    color: #F5F5F5;
    margin-bottom: 1rem;
}

.page-header p {
    color: rgba(240, 245, 241, 0.65);
    font-size: 1rem;
}

/* ==================== FOOTER ==================== */
footer {
    background: var(--bg-secondary);
    padding: 3rem 2rem;
    border-top: 1px solid var(--border);
}

.footer-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-text { font-size: 0.85rem; color: var(--text-muted); font-weight: 300; }

.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.85rem; color: var(--text-secondary); text-decoration: none; transition: var(--transition); }
.footer-links a:hover { color: var(--text-primary); }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: rgba(15, 15, 18, 0.97);
        backdrop-filter: blur(20px);
        padding: 2rem;
        border-bottom: 1px solid rgba(0,0,0,0.1);
        gap: 1.5rem;
    }

    .nav-links.active a { color: rgba(245,245,245,0.8) !important; }
    .nav-links.active a:hover { color: #F5F5F5 !important; }

    .page-header { padding: 6rem 1.5rem 3rem; }
    .page-header h1 { font-size: 1.6rem; letter-spacing: -0.5px; hyphens: auto; }

    footer .footer-inner { flex-direction: column; text-align: center; gap: 0.75rem; }
    .footer-links { flex-direction: column; align-items: center; gap: 0.5rem; }
}
