/* Google Fonts Import - MUST be at the very top */
@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@200;300;400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400&display=swap');

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

body {
    font-family: 'Hanken Grotesk', sans-serif;
    background-color: #ffffff;
    color: #0a0a0d;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 16px;
    font-weight: 300;
}

/* Headlines use Space Grotesk */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
}

/* Wrapper fÃ¼r Content um Footer nach unten zu drÃ¼cken */
#header-placeholder,
main {
    flex-shrink: 0;
}

#footer-placeholder {
    margin-top: auto;
}

/* Header Navigation */
header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    z-index: 1000;
    transition: all 0.3s ease-in-out;
}

header.header-sticky {
    position: fixed;
    top: 0;
}

header.header-hidden {
    transform: translateY(-100%);
}

nav {
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.logo {
    font-family: 'Hanken Grotesk', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: #0a0a0d;
    text-decoration: none;
    text-transform: uppercase;
    transition: opacity 0.3s;
}

.logo:hover {
    opacity: 0.6;
}

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
    margin-right: 55px;
}

.nav-links a {
    text-decoration: none;
    color: #0a0a0d;
    font-size: 16px;
    font-weight: 200;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.6;
}

.cv-link {
    text-decoration: none;
    color: #0a0a0d;
    font-size: 16px;
    font-weight: 200;
    transition: opacity 0.3s;
}

.cv-link:hover {
    opacity: 0.6;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 25px;
}

.icon-link {
    display: flex;
    align-items: center;
    transition: opacity 0.3s;
}

.icon-link:hover {
    opacity: 0.6;
}

.header-icon {
    height: 18px;
    width: auto;
}

.header-icon[alt="Email"] {
    height: 12px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
    width: 40px;
    height: 16px;
    position: relative;
}

.mobile-menu-btn::before,
.mobile-menu-btn::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    width: 40px;
    height: 1px;
    background-color: #0a0a0d;
    transition-property: top, bottom, transform;
    transition-duration: 0.3s;
    transition-timing-function: ease-in-out;
}

.mobile-menu-btn::before {
    top: 0px;
    transform: rotate(0deg);
}

.mobile-menu-btn::after {
    bottom: 0px;
    transform: rotate(0deg);
}

/* Animated X state */
.mobile-menu-btn.active::before {
    top: 7.5px;
    transform: rotate(45deg);
}

.mobile-menu-btn.active::after {
    bottom: 7.5px;
    transform: rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    z-index: 999; /* Below header */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 80px; /* Space for header */
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu-overlay.active {
    transform: translateY(0);
}

.mobile-menu-overlay .nav-links {
    display: flex;
    flex-direction: column;
    gap: 25px;
    list-style: none;
    text-align: center;
    margin-bottom: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-top: -35px;
    width: 100%;
}

.mobile-menu-overlay .nav-links a {
    font-size: 30px;
    font-weight: 200;
    color: #0a0a0d;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0;
    transition: opacity 0.3s;
}

.mobile-menu-overlay .nav-links a:hover {
    opacity: 0.6;
}

/* Footer area with gray background */
.mobile-menu-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #DCDCDC;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile-social-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.mobile-social-links a {
    display: block;
    transition: opacity 0.3s;
}

.mobile-social-links a:hover {
    opacity: 0.6;
}

.mobile-linkedin-icon,
.mobile-mail-icon {
    display: block;
    width: auto;
    height: auto;
}

.mobile-menu-close {
    display: none;
}

/* Main Content */
main#work {
    padding: 140px 40px 60px 40px;
}

/* Hero Section */
.hero {
    margin-bottom: 80px;
}

.hero h1 {
    font-size: 50px;
    font-weight: 400;
    margin-bottom: 30px;
    color: #0a0a0d;
    max-width: 900px;
}

.hero p {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.5;
    color: #0a0a0d;
    max-width: 900px;
}

/* Content Section (für Imprint, Contact etc.) */
main.content-page {
    padding: 140px 40px 80px 40px;
}

.content-section {
    max-width: 900px;
}

.content-section h1 {
    font-size: 40px;
    font-weight: 400;
    margin-bottom: 40px;
    color: #0a0a0d;
}

.content-section p {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.5;
    color: #0a0a0d;
    margin-bottom: 20px;
}

.content-section a {
    color: #0a0a0d;
    text-decoration: none;
    transition: opacity 0.3s;
}

.content-section a:hover {
    opacity: 0.6;
}

/* Contact Page Specific */
#contact {
    min-height: auto;
    display: block;
    padding: 140px 40px 80px 40px;
}

.contact-header {
    margin-bottom: 53px;
}

.contact-image-section {
    margin-bottom: 20px;
}

.contact-image-wrapper {
    max-width: 600px;
}

.contact-image-wrapper img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}

.contact-info-section a {
    color: #0a0a0d;
    text-decoration: none;
    transition: opacity 0.3s;
}

.contact-info-section a:hover {
    opacity: 0.6;
}

.contact-hero {
    margin-bottom: 60px;
    max-width: 900px;
}

.contact-hero h1 {
    font-size: 40px;
    font-weight: 400;
    line-height: 1.4;
    color: #0a0a0d;
    margin: 0;
}

.contact-info {
    max-width: 600px;
}

.contact-info h2 {
    font-size: 40px;
    font-weight: 400;
    margin-bottom: 30px;
    color: #0a0a0d;
}

.contact-info p {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.5;
    color: #0a0a0d;
    margin-bottom: 20px;
}

.contact-info a {
    color: #0a0a0d;
    text-decoration: none;
    transition: opacity 0.3s;
}

.contact-info a:hover {
    opacity: 0.6;
}

.download-cv {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid #0a0a0d;
    color: #0a0a0d;
    font-size: 16px;
    font-weight: 300;
    text-decoration: none;
    transition: all 0.3s;
    margin-top: 10px;
}

.download-cv:hover {
    background: #0a0a0d;
    color: #fff;
    opacity: 1;
}

/* Project Detail Page */
#project-detail {
    padding: 140px 40px 60px 40px;
}

.project-header {
    max-width: 65%;
    margin-bottom: 80px;
}

.project-header h1 {
    font-size: 40px;
    font-weight: 400;
    margin-bottom: 30px;
    color: #0a0a0d;
}

.project-meta {
    margin-bottom: 40px;
}

.project-meta p {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.5;
    color: #0a0a0d;
    margin-bottom: 5px;
}

.project-intro {
    max-width: 65%;
    margin-bottom: 80px;
}

.project-intro h2,
.project-content h2 {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 30px;
    padding-bottom: 20px;
    color: #0a0a0d;
    position: relative;
}

.project-intro h2::after,
.project-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 150px;
    height: 1px;
    background-color: #0a0a0d;
}

.project-intro p:first-of-type,
.project-content p:first-of-type {
    margin-top: 0;
}

.project-intro p,
.project-content p {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.5;
    color: #0a0a0d;
    margin-bottom: 20px;
}

.project-image {
    width: 100%;
    margin-bottom: 80px;
}

.project-image img {
    width: 100%;
    height: auto;
    display: block;
}

.project-content {
    max-width: 65%;
    margin-bottom: 80px;
}

/* Two Column Layout */
.project-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.project-column {
}

.project-column h2 {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 30px;
    padding-bottom: 20px;
    color: #0a0a0d;
    position: relative;
}

.project-column h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 150px;
    height: 1px;
    background-color: #0a0a0d;
}

.project-column p {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.5;
    color: #0a0a0d;
    margin-bottom: 20px;
}

.project-column p:first-of-type {
    margin-top: 0;
}

/* Two Images Side by Side */
.project-two-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 80px;
}

.project-image-half {
    width: 100%;
}

.project-image-half img {
    width: 100%;
    height: auto;
    display: block;
}

/* Four Images in a Row */
.project-four-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 80px;
    width: 100%;
}

.project-image-quarter {
    width: 100%;
}

.project-image-quarter img {
    width: 100%;
    height: auto;
    display: block;
}

/* Project CTA Buttons */
.project-cta-buttons {
    display: flex;
    gap: 30px;
    margin-top: 80px;
    margin-bottom: 80px;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid #0a0a0d;
    background: transparent;
    color: #0a0a0d;
    font-size: 16px;
    font-weight: 400;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    font-family: 'Space Grotesk', sans-serif;
}

.cta-button:hover {
    background: #0a0a0d;
    color: #ffffff;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 80px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.portfolio-item img,
.portfolio-video {
    width: 100%;
    height: auto;
    aspect-ratio: 1400/1094;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.portfolio-item:hover img,
.portfolio-item:hover .portfolio-video {
    transform: scale(1.05);
}

.portfolio-item h3 {
    margin-top: 15px;
    font-size: 18px;
    font-weight: 300;
    color: #0a0a0d;
}

/* Back to Top */
.back-to-top {
    text-align: center;
    margin: 60px 0;
}

.back-to-top a {
    text-decoration: none;
    color: #0a0a0d;
    font-size: 16px;
    font-weight: 300;
    transition: opacity 0.3s;
}

.back-to-top a:hover {
    opacity: 0.6;
}

/* Footer */
footer {
    background: #ffffff;
    padding: 40px 40px;
    text-align: center;
    border-top: none;
    margin: 0 auto;
    width: 100%;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer p {
    font-size: 14px;
    font-weight: 300;
    color: #0a0a0d;
    margin: 0;
}

footer a {
    color: #0a0a0d;
    font-size: 14px;
    font-weight: 300;
    text-decoration: none;
    transition: opacity 0.3s;
}

footer a:hover {
    opacity: 0.6;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 20px 40px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1001;
    display: none;
}

.cookie-banner.show {
    display: flex;
}

.cookie-banner p {
    font-size: 16px;
    font-weight: 300;
    color: #0a0a0d;
    margin-right: 20px;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
}

.cookie-buttons button {
    padding: 10px 25px;
    border: 1px solid #0a0a0d;
    background: #fff;
    color: #0a0a0d;
    cursor: pointer;
    font-size: 16px;
    font-weight: 300;
    font-family: 'Hanken Grotesk', sans-serif;
    transition: all 0.3s;
}

.cookie-buttons button:first-child {
    background: #0a0a0d;
    color: #fff;
}

.cookie-buttons button:hover {
    opacity: 0.8;
}

/* Animation Classes */
.animate-fade {
    opacity: 0 !important;
    transition: opacity 1s ease-out;
}

.animate-fade.visible {
    opacity: 1 !important;
}

.animate-slide-left {
    opacity: 0 !important;
    transform: translateX(-80px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-slide-left.visible {
    opacity: 1 !important;
    transform: translateX(0);
}

.animate-slide-right {
    opacity: 0 !important;
    transform: translateX(80px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-slide-right.visible {
    opacity: 1 !important;
    transform: translateX(0);
}

.animate-slide-up {
    opacity: 0 !important;
    transform: translateX(-80px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-slide-up.visible {
    opacity: 1 !important;
    transform: translateX(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    nav {
        padding: 20px 30px;
    }

    main {
        padding: 140px 30px 60px 30px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .portfolio-grid {
        gap: 30px;
    }

    /* Two Columns stapeln auf Tablet */
    .project-two-columns {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Two Images stapeln auf Tablet */
    .project-two-images {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .nav-right {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

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

    .hero h1 {
        font-size: 32px;
    }

    main,
    main#work {
        padding: 120px 20px 40px 20px;
    }

    nav {
        padding: 20px;
    }

    footer {
        padding: 30px 20px;
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }

    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }

    .cookie-banner p {
        margin-bottom: 15px;
        margin-right: 0;
    }

    /* Contact Page Mobile */
    #contact,
    #imprint {
        padding: 140px 20px 60px 20px;
    }

    .contact-hero h1 {
        font-size: 28px;
    }

    .contact-info h2 {
        font-size: 28px;
    }

    /* Project Detail Mobile */
    #project-detail {
        padding: 120px 20px 40px 20px;
    }
    
    /* Content Page Mobile */
    main.content-page {
        padding: 140px 20px 80px 20px;
    }

    .project-header {
        max-width: 100%;
        margin-bottom: 60px;
    }

    .project-header h1 {
        font-size: 32px;
    }

    .project-intro {
        max-width: 100%;
        margin-bottom: 60px;
    }

    .project-intro h2,
    .project-content h2 {
        font-size: 16px;
    }

    .project-intro p,
    .project-content p {
        font-size: 16px;
    }

    .project-image {
        margin-bottom: 60px;
    }

    .project-content {
        max-width: 100%;
        margin-bottom: 60px;
    }

    /* Two Columns auf Mobile stapeln */
    .project-two-columns {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .project-column h2,
    .project-column p {
        font-size: 16px;
    }

    /* Two Images auf Mobile stapeln */
    .project-two-images {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Four Images auf Mobile: 2x2 Grid */
    .project-four-images {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    /* CTA Buttons Mobile */
    .project-cta-buttons {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 15px;
    }

    .portfolio-grid {
        gap: 30px;
    }
}
/* Dark Mode */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #0a0a0d;
        color: #ffffff;
    }
    
    /* Header */
    header {
        background: #0a0a0d;
    }
    
    .logo,
    .nav-links a,
    .cv-link {
        color: #ffffff;
    }
    
    .mobile-menu-header .logo {
        color: #ffffff;
    }
    
    .header-icon {
        filter: invert(1) brightness(100);
    }
    
    .mobile-menu-btn::before,
    .mobile-menu-btn::after {
        background-color: #ffffff;
    }
    
    /* Mobile Menu */
    .mobile-menu-overlay {
        background: #0a0a0d;
    }
    
    .mobile-menu-overlay .nav-links a {
        color: #ffffff;
    }
    
    .mobile-menu-footer {
        background: #1a1a1d;
    }
    
    /* Main Content */
    .hero h1,
    .hero p,
    .content-section h1,
    .content-section p,
    .content-section a {
        color: #ffffff;
    }
    
    /* Portfolio */
    .portfolio-item h3 {
        color: #ffffff;
    }
    
    /* Project Detail */
    .project-header h1,
    .project-meta p,
    .project-intro h2,
    .project-intro p,
    .project-content h2,
    .project-content p,
    .project-column h2,
    .project-column p {
        color: #ffffff;
    }
    
    .project-intro h2::after,
    .project-content h2::after,
    .project-column h2::after {
        background-color: #ffffff;
    }
    
    /* Contact Page */
    .contact-hero h1,
    .contact-info h2,
    .contact-info p,
    .contact-info a,
    .contact-info-section a {
        color: #ffffff;
    }
    
    .download-cv {
        border-color: #ffffff;
        color: #ffffff;
    }
    
    .download-cv:hover {
        background: #ffffff;
        color: #0a0a0d;
    }
    
    .cta-button {
        border-color: #ffffff;
        color: #ffffff;
    }
    
    .cta-button:hover {
        background: #ffffff;
        color: #0a0a0d;
    }
    
    /* Footer */
    footer {
        background: #0a0a0d;
    }
    
    footer p,
    footer a {
        color: #ffffff;
    }
    
    /* Cookie Banner */
    .cookie-banner {
        background: #0a0a0d;
        border-top: 1px solid #333;
    }
    
    .cookie-banner p {
        color: #ffffff;
    }
    
    .cookie-buttons button {
        border-color: #ffffff;
        background: #0a0a0d;
        color: #ffffff;
    }
    
    .cookie-buttons button:first-child {
        background: #ffffff;
        color: #0a0a0d;
    }
}