/* ========================================
   CSS Variables & Reset
======================================== */
:root {
    --color-black: #000000;
    --color-white: #ffffff;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;

    --font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --container-width: 1200px;
    --navbar-height: 56px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-gray-900);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   Floating Navigation
======================================== */
.navbar {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: var(--color-white);
    border-radius: 100px;
    padding: 8px 8px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--color-gray-200);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 4px;
}

.nav-list a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: var(--color-gray-700);
    font-size: 14px;
    font-weight: 500;
    border-radius: 100px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-list a:hover {
    background-color: var(--color-gray-100);
    color: var(--color-black);
}

/* ========================================
   Mobile Burger Menu
======================================== */
.burger-btn {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    width: 48px;
    height: 48px;
    background: var(--color-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(0, 0, 0, 0.1);
}

.burger-line {
    width: 20px;
    height: 2px;
    background-color: var(--color-gray-800);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-white);
    z-index: 1000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: none;
    border: 1px solid var(--color-gray-200);
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: var(--color-gray-800);
}

.mobile-nav-list {
    list-style: none;
    text-align: center;
}

.mobile-nav-list li {
    margin: 16px 0;
}

.mobile-nav-list a {
    font-size: 24px;
    font-weight: 500;
    color: var(--color-gray-800);
    text-decoration: none;
    transition: color 0.2s ease;
}

.mobile-nav-list a:hover {
    color: var(--color-black);
}

/* ========================================
   Hero Section
======================================== */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 32px;
    text-align: center;
    padding-top: 140px;
    overflow: hidden;
}

.hero-content {
    padding: 0 24px;
}

.hero-title {
    font-size: clamp(40px, 8vw, 72px);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-black);
    margin-bottom: 16px;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: clamp(18px, 3vw, 24px);
    font-weight: 400;
    color: var(--color-gray-500);
}

.hero-photo {
    display: grid;
    align-items: end;
    justify-items: center;
    overflow: hidden;
    min-height: 58vh;
    background-color: #ffffff;
}

.hero-photo img {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hero-photo img.loaded {
    opacity: 1;
}

.hero-photo img {
    width: 100%;
    max-width: 900px;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    clip-path: inset(0 0 100px 0);
    margin-bottom: -100px;
}

/* ========================================
   Logo Bar
======================================== */
.logo-bar {
    background-color: var(--color-black);
    padding: 24px 0;
    overflow: hidden;
}

.logo-bar-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
    padding: 0 24px;
}

img.logo-item {
    width: 120px;
    height: 40px;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

img.logo-item:hover {
    opacity: 1;
}

/* Individual logo adjustments for visual balance */
.logo-lidl {
    height: 60px;
}

.logo-wirecard {
    width: 100px;
    height: 32px;
}

.logo-ulysses {
    height: 44px;
}

/* ========================================
   Highlights Section
======================================== */
.highlights {
    background-color: #f7f7f7;
    padding: 100px 0;
}

.section-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-gray-500);
    margin-bottom: 48px;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px 32px;
    align-items: start;
}

.highlight-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.highlight-logo-wrapper {
    height: 40px;
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.highlight-logo {
    height: 28px;
    width: auto;
    max-width: 100px;
    object-fit: contain;
    object-position: left;
    filter: brightness(0);
    opacity: 0.5;
}

/* Individual logo adjustments for visual balance */
.logo-ccw {
    height: 32px;
}

.logo-lidl-highlight {
    height: 36px;
}

.logo-wirecard-highlight {
    height: 22px;
    max-width: 80px;
}

.highlight-headline {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-black);
    line-height: 1.3;
}

.highlight-text {
    font-size: 15px;
    color: var(--color-gray-600);
    line-height: 1.6;
}

/* ========================================
   Work Section
======================================== */
.work {
    background-color: var(--color-white);
    padding: 100px 0;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.work-card {
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: 16px;
    padding: 32px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.work-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.work-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.work-company {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-gray-500);
}

.work-period {
    font-size: 12px;
    color: var(--color-gray-400);
}

.work-role {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 16px;
}

.work-description {
    font-size: 15px;
    color: var(--color-gray-600);
    margin-bottom: 24px;
    line-height: 1.6;
}

.work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    font-size: 12px;
    font-weight: 500;
    padding: 6px 12px;
    background-color: var(--color-gray-100);
    color: var(--color-gray-700);
    border-radius: 100px;
}

/* ========================================
   Footer
======================================== */
.footer {
    background-color: #f7f7f7;
    padding: 32px 0;
}

.footer-content {
    text-align: center;
}

.impressum {
    font-size: 13px;
    color: var(--color-gray-500);
    margin-bottom: 8px;
}

.impressum a {
    color: var(--color-gray-500);
    text-decoration: none;
    transition: color 0.2s ease;
}

.impressum a:hover {
    color: var(--color-black);
}

.copyright {
    font-size: 13px;
    color: var(--color-gray-400);
}

/* ========================================
   Responsive Design
======================================== */
@media (max-width: 768px) {
    .navbar {
        display: none;
    }

    .burger-btn {
        display: flex;
    }

    .mobile-nav {
        display: flex;
    }

    .hero {
        padding-top: 100px;
        grid-template-rows: auto 1fr;
    }

    .hero-content {
        padding: 0 24px 24px;
    }

    .hero-photo {
        width: 100%;
        min-height: 60vh;
    }

    .hero-photo img {
        width: 140%;
        max-width: none;
        height: 100%;
        object-fit: cover;
        object-position: center top;
        clip-path: inset(0 0 60px 0);
        margin-bottom: -60px;
    }

    .logo-bar {
        display: none;
    }

    .hero {
        overflow: visible;
    }

    .hero-photo {
        margin-bottom: -60px;
    }

    .hero-photo img {
        clip-path: none;
        margin-bottom: 0;
    }

    .highlights {
        border-radius: 24px 24px 0 0;
        position: relative;
        z-index: 10;
    }

    .highlights,
    .work {
        padding: 80px 0;
    }

    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .work-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .nav-list {
        gap: 2px;
    }

    .nav-list a {
        padding: 8px 10px;
        font-size: 12px;
    }

    .work-card {
        padding: 24px;
    }

    .work-role {
        font-size: 20px;
    }
}
