       /* Apple-inspirierte Styles */
        :root {
            --apple-gray: #f5f5f7;
            --apple-blue: #0071e3;
            --apple-dark: #1d1d1f;
            --apple-text: #86868b;
        }

        /* Global reset + original system font stack restored */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
                        Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
        }

        .hobby-card {
            background-color: white;
            border-radius: 14px;
            padding: 18px;
            box-shadow: 0 6px 20px rgba(0,0,0,0.06);
            text-align: center;
            transition: box-shadow 0.35s ease, padding 0.35s ease;
            position: relative;
        }
        .hobby-card:hover {
            /* visually lift slightly and allow image container to grow (layout reflow) */
            transform: translateY(-8px);
            box-shadow: 0 30px 80px rgba(0,0,0,0.18);
            padding: 12px 18px 28px 18px;
            z-index: 40; /* sits above neighbors */
        }
        .hobby-image-wrap {
            width: 100%;
            height: 160px; /* default compact height */
            overflow: hidden;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(180deg, #fafafa, #f2f4f8);
            margin-bottom: 12px;
            transition: height 0.45s cubic-bezier(0.2,0.8,0.2,1);
        }

        nav {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 44px;
        }

        /* Make the header fixed and slightly translucent */
        header {
            position: fixed;
            left: 0;
            right: 0;
            top: 0;
            z-index: 200;
            background: rgba(255,255,255,0.8);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            transition: transform 0.35s ease, background 0.35s ease;
        }

        /* header remains visible */

        /* Mobile nav toggle */
        .nav-toggle {
            display: none;
            background: transparent;
            border: none;
            width: 40px;
            height: 40px;
            cursor: pointer;
            align-items: center;
            justify-content: center;
        }

        .hamburger,
        .hamburger::before,
        .hamburger::after {
            content: '';
            display: block;
            width: 22px;
            height: 2px;
            background: var(--apple-dark);
            border-radius: 2px;
            transition: transform 0.25s ease, opacity 0.25s ease;
        }

        .hamburger::before {
            transform: translateY(-6px);
        }

        .hamburger::after {
            transform: translateY(4px);
        }

        /* hamburger open state */
        .nav-toggle.open .hamburger {
            background: transparent;
            transform: rotate(45deg);
        }

        .nav-toggle.open .hamburger::before {
            transform: rotate(-90deg) translateX(-1px);
        }

        .nav-toggle.open .hamburger::after {
            transform: rotate(-90deg) translateX(-1px);
            opacity: 0;
        }

        .nav-logo {
            font-size: 20px;
            font-weight: 600;
            position: relative;
            transition: transform 0.3s ease;
        }

        .nav-logo:hover {
            transform: scale(1.05);
            color: var(--apple-blue);
        }

        .nav-links {
            display: flex;
            list-style: none;
        }

        .nav-links li {
            margin-left: 30px;
            position: relative;
        }

        .nav-links a {
            text-decoration: none;
            color: var(--apple-dark);
            font-size: 14px;
            transition: all 0.3s ease;
            padding: 5px 0;
        }

        .nav-links a:hover {
            color: var(--apple-blue);
        }

        /* Underline animation for nav links */
        .nav-links a::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: -3px;
            left: 0;
            background-color: var(--apple-blue);
            transition: width 0.3s ease;
        }

        .nav-links a:hover::after {
            width: 100%;
        }

        /* Hero Section */
        .hero {
            background-color: var(--apple-gray);
            text-align: center;
            padding: 120px 20px;
            transition: background-color 0.5s ease;
        }

        .hero:hover {
            background-color: #e8e8ed;
        }

        .hero h1 {
            font-size: 48px;
            font-weight: 700;
            margin-bottom: 10px;
            transition: transform 0.5s ease, color 0.5s ease;
        }

        .hero:hover h1 {
            transform: scale(1.05);
            color: var(--apple-blue);
        }

        .hero p {
            font-size: 24px;
            color: var(--apple-text);
            max-width: 600px;
            margin: 0 auto 30px;
            transition: transform 0.5s ease;
        }

        .hero:hover p {
            transform: translateY(5px);
        }

        .hero-button {
            background-color: var(--apple-blue);
            color: white;
            border: none;
            border-radius: 20px;
            padding: 10px 20px;
            font-size: 16px;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .hero-button:hover {
            background-color: #0062c0;
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(0, 113, 227, 0.3);
        }

        .hero-button:active {
            transform: translateY(0);
            box-shadow: 0 5px 10px rgba(0, 113, 227, 0.2);
        }
        
        /* Button pulse effect */
        .hero-button::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 150px;
            height: 150px;
            background-color: rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            transform: translate(-50%, -50%) scale(0);
            opacity: 0;
            transition: transform 0.8s, opacity 0.8s;
        }
        
        .hero-button:hover::after {
            transform: translate(-50%, -50%) scale(1);
            opacity: 1;
        }

        /* Section Styles */
        section {
            padding: 60px 20px;
            max-width: 1000px;
            margin: 0 auto;
            transition: transform 0.5s ease;
        }

        section:hover {
            transform: translateY(-5px);
        }

        .section-title {
            font-size: 32px;
            text-align: center;
            margin-bottom: 40px;
            position: relative;
            display: inline-block;
            left: 50%;
            transform: translateX(-50%);
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 0;
            width: 0;
            height: 3px;
            background-color: var(--apple-blue);
            transition: width 0.5s ease;
        }

        section:hover .section-title::after {
            width: 100%;
        }

        /* About Me Section */
        .about-content {
            background-color: white;
            border-radius: 18px;
            padding: 30px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
            transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            position: relative;
            z-index: 1;
            overflow: hidden;
            text-align: left;
        }

        .about-content:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
        }

        .about-content p {
            font-size: 18px;
            line-height: 1.6;
            color: var(--apple-text);
        }

        /* Experience Section */
        .experience-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
            gap: 30px;
        }

        .experience-card {
            background-color: white;
            border-radius: 18px;
            padding: 30px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
            transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            position: relative;
            z-index: 1;
            overflow: hidden;
        }

        .experience-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgba(0, 113, 227, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
            opacity: 0;
            z-index: -1;
            transition: opacity 0.5s ease;
        }

        .experience-card:hover {
            transform: translateY(-15px) scale(1.03);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
        }

        .experience-card:hover::before {
            opacity: 1;
        }

        .experience-title {
            font-size: 20px;
            margin-bottom: 6px;
            transition: color 0.3s ease;
        }

        .experience-card:hover .experience-title {
            color: var(--apple-blue);
        }

        .experience-company {
            font-size: 16px;
            color: var(--apple-blue);
            margin-bottom: 6px;
            transition: transform 0.3s ease;
        }

        .experience-card:hover .experience-company {
            transform: translateX(5px);
        }

        .experience-date {
            font-size: 14px;
            color: var(--apple-text);
            margin-bottom: 15px;
        }

        .experience-description {
            font-size: 16px;
            color: var(--apple-dark);
            transition: opacity 0.3s ease;
        }

        .experience-card:hover .experience-description {
            opacity: 0.8;
        }

        /* Skills Section */
        .skills-container {
            text-align: center;
        }

        .skill-category {
            margin-bottom: 40px;
            transition: transform 0.3s ease;
        }

        .skill-category:hover {
            transform: translateY(-5px);
        }

        .skill-category h3 {
            font-size: 24px;
            margin-bottom: 20px;
            position: relative;
            display: inline-block;
        }

        .skill-category h3::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background-color: var(--apple-blue);
            transition: width 0.5s ease;
        }

        .skill-category:hover h3::after {
            width: 100%;
        }

        .skill-pills {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 12px;
        }

        .skill-pill {
            background-color: var(--apple-gray);
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 16px;
            transition: all 0.3s ease;
            cursor: default;
            position: relative;
            overflow: hidden;
        }

        .skill-pill:hover {
            background-color: var(--apple-blue);
            color: white;
            transform: translateY(-3px) scale(1.1);
            box-shadow: 0 5px 15px rgba(0, 113, 227, 0.3);
        }

        .skill-pill::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 120px;
            height: 120px;
            background-color: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            transform: translate(-50%, -50%) scale(0);
            opacity: 0;
            transition: transform 0.5s, opacity 0.5s;
        }
        
        .skill-pill:hover::after {
            transform: translate(-50%, -50%) scale(1);
            opacity: 1;
        }

        /* Education Section */
        .education-item {
            margin-bottom: 30px;
            padding-bottom: 30px;
            border-bottom: 1px solid var(--apple-gray);
            transition: all 0.3s ease;
            padding: 20px;
            border-radius: 10px;
        }

        /* Kontakt header with avatar */
        .contact-header {
            display: flex;
            align-items: center;
            gap: 20px;
            justify-content: center; /* centers both avatar and title in section */
            margin-bottom: 20px;
        }

        .contact-avatar {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            object-fit: cover;
            box-shadow: 0 8px 20px rgba(0,0,0,0.12);
            border: 4px solid white;
            transform: translateY(0);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .contact-avatar:hover {
            transform: translateY(-6px) scale(1.02);
            box-shadow: 0 18px 30px rgba(0,0,0,0.18);
        }

        /* On small screens stack vertically and keep avatar left-aligned to title */
        @media (max-width: 640px) {
            .contact-header {
                flex-direction: column;
                gap: 12px;
            }
            .section-title {
                left: 0;
                transform: none;
                text-align: center;
            }
        }

        /* Hobbys section */
        .hobbies-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 24px;
            align-items: start;
            overflow: visible; /* allow hovered cards to overflow and overlap */
        }

        .hobby-card {
            background-color: white;
            border-radius: 14px;
            padding: 18px;
            box-shadow: 0 6px 20px rgba(0,0,0,0.06);
            text-align: center;
            transition: transform 0.35s cubic-bezier(0.2,0.8,0.2,1), box-shadow 0.35s ease, padding 0.35s ease;
        }

        .hobby-card:hover {
            /* lift slightly but do not scale content (prevents cropping) */
            transform: translateY(-8px);
            box-shadow: 0 30px 80px rgba(0,0,0,0.18);
            padding: 12px 18px 28px 18px; /* give more room for expanded image area */
            z-index: 40; /* sits above neighbors */
        }

        .hobby-image-wrap {
            width: 100%;
            height: 420px; /* expanded by default */
            overflow: hidden;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(180deg, #fafafa, #f2f4f8);
            margin-bottom: 12px;
            transition: height 0.45s cubic-bezier(0.2,0.8,0.2,1);
        }

        .hobby-image {
            /* show full image inside the frame; width auto lets contain keep aspect */
            width: auto;
            height: 100%;
            object-fit: contain;
            transition: all 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
            max-width: 100%;
        }

        .hobby-title {
            font-size: 20px;
            margin-bottom: 6px;
        }

        .hobby-desc {
            color: var(--apple-text);
            font-size: 15px;
        }

    /* On hover show the whole image (no cropping) instead of zooming-in */
    /* when hovering, expand the image container so the whole card grows and show full image */
    .hobby-card:hover .hobby-image-wrap {
        height: 460px; /* slightly larger on hover */
    }

    .hobby-card:hover .hobby-image {
        object-fit: contain; /* ensure the entire image is visible */
        width: auto;
        height: 100%;
    }

        /* On small screens keep the hobby images smaller to fit layout */
        @media (max-width: 480px) {
            .hobby-image-wrap {
                height: 220px;
            }
            .hobby-card:hover .hobby-image-wrap {
                height: 260px;
            }
        }

    /* Respect user preference for reduced motion */
        @media (prefers-reduced-motion: reduce) {
                .hobby-image,
                .hobby-card {
                    transition: none !important;
                }
                .hobby-card:hover {
                    transform: none !important;
                }
        }

        .education-item:hover {
            background-color: var(--apple-gray);
            transform: translateX(10px);
            padding-left: 30px;
        }

        .education-item:last-child {
            border-bottom: none;
        }

        .education-degree {
            font-size: 20px;
            margin-bottom: 6px;
            transition: color 0.3s ease;
        }

        .education-item:hover .education-degree {
            color: var(--apple-blue);
        }

        .education-institution {
            font-size: 16px;
            color: var(--apple-blue);
            margin-bottom: 6px;
            transition: transform 0.3s ease;
        }

        .education-item:hover .education-institution {
            transform: translateX(5px);
        }

        .education-date {
            font-size: 14px;
            color: var(--apple-text);
        }

        /* Contact Section */
        .contact-container {
            background-color: var(--apple-gray);
            border-radius: 18px;
            padding: 40px;
            text-align: center;
            transition: all 0.5s ease;
        }

        .contact-container:hover {
            background-color: #e8e8ed;
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
            transform: scale(1.02);
        }

        .contact-info {
            display: flex;
            justify-content: center;
            gap: 40px;
            margin-top: 30px;
        }

        .contact-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            transition: all 0.3s ease;
        }

        .contact-item:hover {
            transform: translateY(-8px) scale(1.05);
        }

        .contact-icon {
            font-size: 24px;
            margin-bottom: 10px;
            transition: transform 0.3s ease;
        }

        .contact-item:hover .contact-icon {
            transform: scale(1.2);
        }

        .contact-text {
            color: var(--apple-blue);
            text-decoration: none;
            position: relative;
            transition: all 0.3s ease;
        }

        .contact-text::after {
            content: '';
            position: absolute;
            bottom: -3px;
            left: 0;
            width: 0;
            height: 1px;
            background-color: var(--apple-blue);
            transition: width 0.3s ease;
        }

        .contact-text:hover::after {
            width: 100%;
        }

        /* Languages */
        .language-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px;
            margin-bottom: 15px;
            background-color: white;
            border-radius: 12px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
            transition: all 0.3s ease;
        }

        .language-item:hover {
            transform: translateX(10px);
            box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
        }

        .language-name {
            font-size: 18px;
            font-weight: 500;
        }

        .language-level {
            font-size: 16px;
            color: var(--apple-blue);
        }

        /* Soft Skills */
        .soft-skills-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 20px;
        }

        .soft-skill-item {
            background-color: white;
            border-radius: 12px;
            padding: 20px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
        }

        .soft-skill-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
            background-color: #f9f9fb;
        }

        .soft-skill-icon {
            font-size: 24px;
            margin-right: 15px;
            color: var(--apple-blue);
        }

        .soft-skill-text {
            font-size: 16px;
        }

        /* Footer */
        footer {
            background-color: var(--apple-dark);
            color: white;
            text-align: center;
            padding: 20px;
            font-size: 14px;
            transition: all 0.3s ease;
        }

        footer:hover {
            background-color: #2d2d2f;
            padding: 25px;
        }

        /* Scrollbar Styling */
        ::-webkit-scrollbar {
            width: 10px;
        }

        ::-webkit-scrollbar-track {
            background: var(--apple-gray); 
        }
        
        ::-webkit-scrollbar-thumb {
            background: var(--apple-text); 
            border-radius: 5px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: var(--apple-blue); 
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .hero h1 {
                font-size: 36px;
            }
            
            .hero p {
                font-size: 18px;
            }
            
            .experience-grid {
                grid-template-columns: 1fr;
            }
            
            .contact-info {
                flex-direction: column;
                gap: 20px;
            }

            .personal-info-grid {
                grid-template-columns: 1fr;
            }

            .soft-skills-grid {
                grid-template-columns: 1fr;
            }

            /* Mobile nav behaviour */
            .nav-links {
                display: none;
                position: absolute;
                top: 64px;
                left: 0;
                right: 0;
                /* translucent white with subtle blur to show content underneath (less transparent) */
                background: rgba(255,255,255,0.95);
                backdrop-filter: blur(6px);
                -webkit-backdrop-filter: blur(6px);
                flex-direction: column;
                gap: 0;
                padding: 10px 16px;
                box-shadow: 0 8px 30px rgba(0,0,0,0.08);
                z-index: 80;
            }

            .nav-links li {
                margin: 0;
                border-bottom: 1px solid var(--apple-gray);
            }

            .nav-links li a {
                display: block;
                padding: 12px 8px;
            }

            .nav-toggle {
                display: flex;
            }

            .nav-links.open {
                display: flex;
            }
        }
