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

:root {
    --primary: #800080;
    --dark-bg: #0a0a0a;
    --dark-section: #1a1a1a;
    --medium-dark: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --accent-glow: rgba(128, 0, 128, 0.3);
    --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sans);
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    font-weight: 300;
}

/* Header/Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(128, 0, 128, 0.2);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.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.95rem;
    transition: color 0.3s;
    position: relative;
}

/* Hover-Effekte nur für Desktop-Links (nicht Sprachwechsler) */
.nav-links > li > a:not(.lang-link):hover {
    color: var(--primary);
}

.nav-links > li > a:not(.lang-link)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-links > li > a:not(.lang-link):hover::after {
    width: 100%;
}

/* Language Switcher */
.lang-switch-wrapper {
    display: flex;
    align-items: center;
    margin-left: 1rem;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.lang-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.lang-link:hover, .lang-link.active {
    color: var(--text-primary);
}

.lang-link.active {
    border-bottom: 1px solid var(--primary);
}

.separator {
    color: var(--text-secondary);
    opacity: 0.5;
}

/* Hero Section */
.hero {
    /*min-height: 100vh;*/
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 9rem 2rem 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(128, 0, 128, 0.05) 100%);
    z-index: 0;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 4.8rem;
    font-weight: 850;
    margin-bottom: 1rem;
    line-height: 1.12;
    padding-bottom: 0.08em;
    letter-spacing: -2.2px;
    color: #ffffff;
}

.hero-text h2 {
    font-size: 1.55rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 2rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.hero-text h2::before {
    content: '—';
    color: var(--primary);
    margin-right: 1rem;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Profile Container */
.profile-container {
    position: relative;
    width: 460px;
    height: 560px;
    overflow: hidden;
    clip-path: polygon(8% 0%, 100% 0%, 92% 100%, 0% 100%);
    background: rgba(12,12,16,.35);
    box-shadow: 0 28px 70px rgba(0,0,0,.55);
}

.profile-container::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.09), inset 0 0 0 2px rgba(0,0,0,.35);
    background: linear-gradient(to bottom, rgba(255,255,255,.08), rgba(255,255,255,0) 35%);
    opacity: .9;
    clip-path: polygon(8% 0%, 100% 0%, 92% 100%, 0% 100%);
}

.profile-container::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(90% 90% at 30% 40%, rgba(7,7,10,0) 58%, rgba(7,7,10,.65) 80%, rgba(7,7,10,1) 100%),
                linear-gradient(110deg, rgba(7,7,10,.05) 0%, rgba(7,7,10,.20) 45%, rgba(7,7,10,.55) 100%);
    clip-path: polygon(8% 0%, 100% 0%, 92% 100%, 0% 100%);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(88%) contrast(1.02) brightness(.82);
}

.linkedin-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    margin-top: 1rem;
    transition: color 0.3s;
}

.linkedin-link:hover {
    color: var(--primary);
}

/* Sections */
section {
    padding: 6rem 2rem;
    position: relative;
}

.section-dark {
    background: var(--dark-section);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    font-weight: 800;
    letter-spacing: -1px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, transparent 100%);
}

.section-subtitle {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 300;
    letter-spacing: 1px;
}

.section-intro {
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 1.8;
    max-width: 900px;
    margin-bottom: 2rem;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.skill-item {
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 3px solid var(--primary);
    transition: transform 0.3s, box-shadow 0.3s;
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(128, 0, 128, 0.2);
}

/* Languages */
.language-strip {
    margin-top: 3rem;
    padding: 1.4rem 1.6rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    background: radial-gradient(900px 420px at 10% 20%, rgba(128,0,128,0.16), transparent 55%), rgba(26,26,26,0.55);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    overflow: hidden;
}

.lang-chip {
    padding: 1.1rem 1.1rem;
    border-right: 1px solid rgba(255,255,255,0.06);
    background: transparent;
}

.lang-chip:last-child {
    border-right: none;
}

.lang-chip .language-name {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.2px;
    margin-bottom: 0.35rem;
    color: rgba(255,255,255,0.92);
}

.lang-chip .language-level {
    color: var(--text-secondary);
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

@media (max-width: 768px) {
    .language-strip {
        grid-template-columns: 1fr;
    }
    .lang-chip {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    .lang-chip:last-child {
        border-bottom: none;
    }
}

/* Timeline */
.timeline {
    position: relative;
    margin-top: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 150px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), transparent);
}

.timeline-item {
    display: grid;
    grid-template-columns: 130px 40px 1fr;
    gap: 1rem;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-date {
    text-align: right;
    text-transform: uppercase;
    font-size: 1rem;
    padding-top: 0.3rem;
    color: rgba(255,255,255,0.78);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1, "ss01" 1;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    position: relative;
    left: 13px;
    top: 8px;
    box-shadow: 0 0 20px var(--accent-glow);
}

.timeline-content {
    background: var(--medium-dark);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(128, 0, 128, 0.2);
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    font-size: 1.16rem;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    background: linear-gradient(135deg, #ffffff 0%, #e9d5ff 30%, #a855f7 70%, #800080 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 22px rgba(128,0,128,0.22);
}

.timeline-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.timeline-content a {
    color: rgba(255,255,255,0.88);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    border-bottom: 1px solid rgba(128,0,128,0.45);
    padding-bottom: 2px;
}

.timeline-content a:hover {
    color: #ffffff;
    border-bottom-color: rgba(128,0,128,0.85);
    transform: translateX(5px);
}

/* Contact */
.contact-card {
    background: var(--medium-dark);
    padding: 4rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(128, 0, 128, 0.2);
    max-width: 600px;
    margin: 0 auto;
}

.contact-card h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.contact-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 1.1rem;
    text-align: center;
}

.contact-btn:hover {
    background: #9a009a;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(128, 0, 128, 0.4);
}

.contact-btn.secondary {
    background: var(--dark-section);
    border: 2px solid var(--primary);
}

.contact-btn.secondary:hover {
    background: var(--primary);
}

/* Footer */
footer {
    background: var(--dark-bg);
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid rgba(128, 0, 128, 0.2);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 2001; /* Higher than menu */
}

/* RESPONSIVE LOGIC (Fixes) */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: var(--dark-bg); /* Solid Color - Fixes Transparency */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 4rem 2rem 2rem 2rem; /* Top padding clears the close button */
        gap: 2rem;
        z-index: 2000; /* High Z-Index - Fixes layering */
        overflow-y: auto; /* Allows scrolling if content is too tall */
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links > li > a {
        font-size: 1.5rem;
    }

    /* Language Switcher on Mobile */
    .lang-switch-wrapper {
        margin-left: 0;
        margin-top: 2rem;
        padding-top: 2rem;
        border-top: 1px solid rgba(128, 0, 128, 0.2);
        width: 50%;
        justify-content: center;
    }

    .lang-switch {
        font-size: 1.2rem;
    }

    /* Hero & Layout Mobile Adjustments */
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 3.1rem;
        line-height: 1.14;
        padding-bottom: 0.10em;
    }

    .hero-text h2 {
        font-size: 1.35rem;
        margin-bottom: 1.6rem;
        letter-spacing: 2.6px;
    }

    .profile-container {
        width: 320px;
        height: 380px;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .timeline-date {
        text-align: right;
        letter-spacing: 0.10em;
        text-transform: uppercase;
        font-size: 1.02rem;
        padding-top: 0.35rem;
        color: rgba(255,255,255,0.78);
        font-weight: 600;
        font-variant-numeric: tabular-nums;
        font-feature-settings: "tnum" 1, "ss01" 1;
    }

    .timeline-dot {
        position: absolute;
        left: 13px;
    }

    .timeline-content {
        margin-left: 40px;
    }

    .contact-buttons {
        flex-direction: column;
    }

    .contact-btn {
        justify-content: center;
        text-align: center;
    }
}