:root {
    --bg: #000000; /* Reines Schwarz für perfektes Blending */
    --accent: #ffffff;
    --gray: #888;
    --dark-gray: #1a1a1a;
    --accent-red: #e53e3e;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg);
}

body {
    background-color: var(--bg);
    color: white;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Custom Cursor */
.cursor {
    width: 20px;
    height: 20px;
    border: 1px solid var(--accent-red);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease, background-color 0.1s ease;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 20px;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 40px;
    z-index: 100;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

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

.logo {
    font-weight: 900;
    font-size: 1.5rem;
}

.logo span { color: var(--accent-red); }

.nav-links a {
    color: white;
    text-decoration: none;
    margin-left: 30px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-red);
}

.btn-outline {
    border: 1px solid white;
    padding: 10px 20px;
    border-radius: 5px;
    transition: 0.3s;
}

.btn-outline:hover {
    border-color: var(--accent-red);
    background-color: var(--accent-red);
    color: white !important;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
}

.hero-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* --- ANPASSUNG 1: Text höher positioniert --- */
.hero-text {
    flex: 1;
    text-align: left;
    z-index: 10;
    position: relative;
    margin-top: -60px; /* Schiebt den Text hoch in deine Blickrichtung */
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 15px;
    text-transform: uppercase;
    color: var(--accent);
}

.typewriter {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    color: var(--accent-red);
    margin-bottom: 25px;
    font-weight: 700;
}

.hero-subline {
    color: var(--gray);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.6;
}

/* Rechte Seite: Bild */
.hero-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    overflow: visible; /* Wichtig für die Maske */
}

/* Dynamischer Wolken-/Raucheffekt hinter/ums Bild */
.hero-clouds {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: 140%;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, rgba(0, 0, 0, 0) 65%);
    animation: cloudsPulse 8s infinite alternate ease-in-out;
}

@keyframes cloudsPulse {
    0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

/* --- ANPASSUNG 2: Sauberes Ränder-Blending --- */
.hero-image {
    max-width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    filter: grayscale(100%) contrast(1.1);
    z-index: 2;
    
    /* RADIKALE ANPASSUNG DER MASKE: Alle 4 Seiten blenden sanft ins Schwarz */
    -webkit-mask-image: 
        radial-gradient(ellipse at center, rgba(0,0,0,1) 15%, rgba(0,0,0,0) 75%), /* Weicher zentraler Fokus */
        linear-gradient(to right, transparent 0%, black 25%), /* Linke Kante blenden */
        linear-gradient(to left, transparent 0%, black 25%),  /* Rechte Kante blenden */
        linear-gradient(to bottom, transparent 0%, black 15%), /* Obere Kante blenden */
        linear-gradient(to top, transparent 0%, black 15%);    /* Untere Kante blenden */
    
    mask-image: 
        radial-gradient(ellipse at center, rgba(0,0,0,1) 15%, rgba(0,0,0,0) 75%),
        linear-gradient(to right, transparent 0%, black 25%),
        linear-gradient(to left, transparent 0%, black 25%),
        linear-gradient(to bottom, transparent 0%, black 15%),
        linear-gradient(to top, transparent 0%, black 15%);
        
    -webkit-mask-composite: source-in; /* Kombiniert alle Masken */
    mask-composite: intersect; /* Nur dort anzeigen, wo alle Masken zutreffen */
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 10;
}

/* Mobile Ansicht */
@media (max-width: 900px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        padding-top: 60px;
    }
    .hero-text {
        text-align: center;
        margin-top: 0; /* Auf Mobile zentriert */
    }
    .hero-visual {
        justify-content: center;
        width: 100%;
    }
    .hero-image {
        /* Mobile Maske: Oben/Unten härter blenden */
        -webkit-mask-image: 
            radial-gradient(ellipse at center, rgba(0,0,0,1) 20%, rgba(0,0,0,0) 80%),
            linear-gradient(to top, transparent 0%, black 30%);
        mask-image: 
            radial-gradient(ellipse at center, rgba(0,0,0,1) 20%, rgba(0,0,0,0) 80%),
            linear-gradient(to top, transparent 0%, black 30%);
    }
}

/* Restliches CSS bleibt gleich */
.work-card {
    background: var(--dark-gray);
    padding: 40px;
    border-radius: 2px;
    margin-bottom: 30px;
    border-left: 0px solid white;
    transition: 0.4s;
}

.work-card:hover {
    border-left: 10px solid var(--accent-red);
    transform: translateX(10px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    color: var(--gray);
    margin-bottom: 10px;
}

.work-card h5 {
    color: var(--accent-red);
    margin-bottom: 10px;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 50px;
    text-transform: uppercase;
}

.section-title span { color: var(--accent-red); }

.skills-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.skill-pill {
    padding: 15px 30px;
    border: 1px solid var(--dark-gray);
    border-radius: 50px;
    transition: 0.3s;
    font-weight: 500;
}

.skill-pill:hover {
    background: var(--accent-red);
    color: white;
}

.stats-sectioncontainer {
    padding: 100px 0;
    background: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(20,20,20,1) 50%, rgba(0,0,0,1) 100%);
}

.stats-inner {
    display: flex;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-box {
    text-align: center;
}

.stat-box .number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent);
}

.stat-box .label {
    color: var(--gray);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

footer {
    padding: 100px 20px;
    background-color: #0c0c0c;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-content h2 {
    font-size: clamp(1.2rem, 3vw, 2rem);
    margin-bottom: 20px;
}

.main-link {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: white;
    text-decoration: none;
    font-weight: 900;
    transition: 0.3s ease;
}

.main-link:hover {
    color: var(--accent-red);
}

.socials {
    margin-top: 40px;
}

.social-icon {
    font-size: 2.5rem;
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.social-icon:hover {
    color: var(--accent-red);
    transform: scale(1.1);
}

.copyright {
    color: #555;
    font-size: 0.8rem;
    margin-top: 60px;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0; 
    pointer-events: auto;
}


.hero-container {
    position: relative;
    z-index: 10;
}

/* --- Text Formatierung Über mich & Listen --- */
.about-content {
    margin-bottom: 60px;
    border-left: 2px solid var(--accent-red);
    padding-left: 30px;
}

.lead-text {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.6;
}

.body-text {
    font-size: 1.05rem;
    color: var(--gray);
    line-height: 1.8;
}

.experience-list {
    list-style-type: none; 
    margin-top: 15px;
}

.experience-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: #d1d5db;
    font-size: 0.95rem;
    line-height: 1.6;
}

.experience-list li::before {
    content: "▹"; 
    position: absolute;
    left: 0;
    color: var(--accent-red);
}

.swiss-made {
    margin-top: 50px;
    color: var(--gray);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.swiss-cross {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: var(--accent-red);
    position: relative;
    border-radius: 3px;
}

.swiss-cross::before {
    content: '';
    position: absolute;
    background-color: white;
    width: 12px;
    height: 4px;
    top: 8px;
    left: 4px;
}

.swiss-cross::after {
    content: '';
    position: absolute;
    background-color: white;
    width: 4px;
    height: 12px;
    top: 4px;
    left: 8px;
}

.copyright {
    color: #444;
    font-size: 0.8rem;
    margin-top: 15px; 
}