@font-face {
    font-family: 'SatoshiVariable';
    src: url('fonts/Satoshi-Variable.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'SatoshiVariable';
    src: url('fonts/Satoshi-VariableItalic.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

/* Grundlegende Styles */
body, main, .header-container, .work-section, .alt-grid, .about-container, .contact-container, .project-info, .project-video-wrapper, .project-image-link {
    box-sizing: border-box;
    padding-left: 10px;
    padding-right: 10px;
}
body {
    font-family: 'SatoshiVariable', Arial, Helvetica, sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    margin: 0;
    padding: 0 10px 0 10px;
    background: #101010;
    color: #fff;
    padding-top: 90px;
    overflow-y: auto; /* Scrollen erlauben, aber Scrollbar verstecken */
}
/* Scrollbar für alle Browser ausblenden */
html, body {
    scrollbar-width: none; /* Firefox */
}
body::-webkit-scrollbar, html::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}
header, .header-container, .logo, nav, nav a {
    font-family: 'SatoshiVariable', Arial, sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
}
header {
    background: #000;
    color: #fff;
    padding: 1.5rem 0;
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.header-container {
    max-width: 920px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: relative; /* Wichtig für absolute Positionierung des Hamburger-Buttons */
}
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    font-family: 'SatoshiVariable', Arial, sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    line-height: 1.1;
    white-space: nowrap;
}
nav ul { list-style: none; margin: 0; display: flex; gap: 2rem; }
nav a { color: #fff; text-decoration: none; font-weight: bold; transition: color 0.2s; }
nav a:hover { color: #ffd700; }

main {
    width: 100%;
    margin: 2% 0;
    background: transparent;
    
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
footer {
    background: #000 !important;
    color: #fff;
    text-align: center;
    width: 100%;
    min-height: 220px;
}

/* Showreel Section */
.showreel {
    padding: 0 0 2.5rem 0;
    width: 100%;
}
.showreel-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}
.showreel-video-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    aspect-ratio: 4/3;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.showreel-video {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background: #000;
    border-radius: 16px;
}

/* Showreel Overlay für pausiertes Video */
.showreel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    border-radius: 16px;
    z-index: 10;
}

.showreel-overlay.show {
    opacity: 1;
}

.showreel-title {
    font-family: 'SatoshiVariable', Arial, sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    letter-spacing: 1px;
}

.work-section, .alt-grid {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}
.work-section {
    padding: 0;
    overflow-x: visible;
    display: flex;
    justify-content: center;
}
.alt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 1fr);
    gap: 24px;
    aspect-ratio: unset;
}
.tile-vert { grid-row: span 2; grid-column: span 1; }
.tile-horiz { grid-row: span 2; grid-column: span 2; }
.tile-vert img, .tile-horiz img, .work-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.work-tile {
    background: #181818;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    min-width: 0; min-height: 0; max-width: 100%; max-height: 100%;
}
.work-tile img {
    max-width: 100%;
    aspect-ratio: 16/9;
    height: auto;
    object-position: center 30%;
    display: block;
    max-height: 100vh;
}
.tile-desc {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    position: absolute;
    left: 0; right: 0; bottom: 0; top: 0;
    background: rgba(16,16,16,0.92);
    color: #ffd700;
    font-weight: bold;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    border-radius: 10px;
    padding: 1.2rem;
    padding-right: 1.2rem;
    width: 100%;
    box-sizing: border-box;
}
.tile-title, .tile-text {
    color: #fff;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    padding-right: 10px;
}
.tile-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}
.tile-text {
    font-size: 1rem;
    font-weight: normal;
    margin: 0;
    line-height: 1.3;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}
.work-tile:hover .tile-desc { opacity: 1; pointer-events: auto; }

.about-section {
    width: 100%;
    max-width: none;
    display: flex;
    justify-content: left;
    align-items: left;
    margin: 4rem 0;
    padding: 0;
}
.about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1100px;
    width: 100%;
    background: none;
    border-radius: 0;
    box-shadow: none;
    padding: 2.5rem 2rem;
    position: relative;
    gap: 10px;
    margin: 0 auto;
}
.about-image, .about-text {
    flex: 1 1 0;
    max-width: 100%;
    width: 100%;
}
.about-image {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 1;
    margin: 0;
}
.about-image img {
    width: auto;
    height: auto;
    max-width: 140%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    background: #222;
    display: block;
    image-rendering: high-quality;
    image-rendering: -webkit-optimize-contrast;
    backface-visibility: hidden;
    filter: none;
}
.about-text {
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    margin: 0 0 0 20px;
    z-index: 1;
}
.about-text h2 { margin-bottom: 0.5rem; align-self: flex-start; }
.about-text p { margin-top: 0.2rem; }

.contact-section {
    width: 100vw; max-width: 100vw;
    display: flex; justify-content: center; align-items: center;
    margin: 0 0 0 0; padding: 0;
}
.contact-container {
    background: none; padding: 0 1.5rem; border-radius: 12px;
    margin-bottom: 2rem; text-align: center; max-width: 500px; width: 90vw; color: #fff; box-shadow: none;
}
.contact-message {
    font-family: 'SatoshiVariable', Arial, sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    color: #ffd700;
    letter-spacing: 0.2px;
    line-height: 1.2;
}
.contact-links { font-size: 1.1rem; color: #fff; }
.contact-email, .contact-instagram {
    color: #fff; text-decoration: none; transition: color 0.2s; word-break: break-all;
}
.contact-email:hover, .contact-instagram:hover { color: #ffd700; }

.work-tile-link {
    display: block; height: 100%; width: 100%; text-decoration: none; color: inherit;
}
.work-tile-link:focus .work-tile,
.work-tile-link:hover .work-tile {
    /* Entfernt den gelben Glow und die Transformation */
    box-shadow: none;
    transform: translateY(-2px) scale(1.02);
    transition: none;
}

.project-video-wrapper, .project-image-link {
    width: 100%; max-width: 900px; margin: 0 auto 2.5rem auto; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,0.18); display: flex; align-items: center; justify-content: center;
}
.project-video {
    width: 100%; height: 100%; min-height: 320px; border: none; display: block; background: #000;
}
.project-info {
    max-width: 900px; margin: 0 auto 2.5rem auto; display: flex; flex-direction: row; gap: 2.5rem; background: none; align-items: flex-start; justify-content: space-between;
}
.project-abstract, .project-info-block {
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    padding-left: 5px;
    padding-right: 5px;
    margin-left: 0;
    margin-right: 0;
    display: block;
    box-sizing: border-box;
}
.project-abstract {
    margin-bottom: 1.2rem;
    order: 1;
}
.project-credits-roles-row {
    display: flex;
    flex-direction: row;
    gap: 2.5rem;
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    padding-left: 5px;
    padding-right: 5px;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
    order: 2;
}
.project-credits, .project-roles {
    flex: 1 1 0;
    min-width: 0;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}
.project-title {
    margin: 2.5rem auto 0.5rem auto;
    max-width: 880px;
    width: 100%;
    display: block;
    padding: 10px;
    text-align: left;
    box-sizing: border-box;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    overflow-x: hidden;
}
.project-abstract h2, .project-credits h3, .project-roles h3 {
    margin: 0 0 0.2rem 0; color: #fff; font-size: 1.2rem; font-weight: bold; text-align: left;
}
.project-abstract p, .project-credits p, .project-roles p {
    margin: 0; color: #fff; font-size: 1.05rem; font-weight: normal; text-align: left; word-break: break-word;
}
.project-image-link img {
    width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/9; display: block; border-radius: 16px; background: #000;
}

/* Hamburger Button Grundstil */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 3001;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    box-shadow: none;
    outline: none;
}
.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    margin: 5px 0;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s;
    opacity: 1;
    visibility: visible;
}

/* Hamburger-Button und Navigation für kleine Displays */
@media (max-width: 490px) {
    .header-container {
        position: relative;
    }
    nav ul {
        display: none !important;
    }
    .hamburger {
        display: flex !important;
    }
    nav.open ul {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        left: auto;
        background: #181818;
        border-radius: 8px;
        box-shadow: 0 4px 16px rgba(0,0,0,0.18);
        padding: 1rem 2rem;
        gap: 1.2rem;
        z-index: 3000;
    }
}

/* Hamburger-Button Animation für "open" Zustand */
.hamburger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
    opacity: 0;
}
.hamburger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 900px) {
    .about-section { justify-content: center; }
    .about-container {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        padding: 1.5rem 1rem;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }
    .about-image, .about-text { max-width: 100%; width: 100%; }
    .about-text { margin: 0; text-align: center; align-items: center; }
    .about-image { justify-content: center; }
    .about-container::before { display: none; }
    .about-image {
        width: 100%;
        box-sizing: border-box;
    }
    .about-image img {
        width: 100%;
        max-width: 320px;
        height: auto;
        object-fit: cover;
        margin: 0;
        box-sizing: border-box;
        display: block;
    }
}

/* Remove global centering for .about-text and children */
.about-text, .about-text *, .about-text h2, .about-text p {
    text-align: left;
    align-items: flex-start;
    justify-content: flex-start;
}

@media (max-width: 1100px) and (min-width: 661px) {
    .alt-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(3, 1fr);
        width: 98vw;
        max-width: 98vw;
    }
}
@media (max-width: 650px) {
    .alt-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        aspect-ratio: unset;
        gap: 20px;
        width: 98vw;
        max-width: 98vw;
    }
    .work-tile {
        position: static;
        background: transparent;
        box-shadow: none;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }
    .work-tile img {
        aspect-ratio: 16/9;
        border-radius: 10px;
        display: block;
    }
    .tile-desc {
        position: static;
        opacity: 1;
        pointer-events: auto;
        background: transparent;
        color: #fff;
        padding: 0.7rem 0 1.2rem 0;
        border-radius: 0;
        margin-bottom: 1.5rem;
        transition: none;
        display: block;
        width: 100%;
        z-index: auto;
        left: 0.2rem;
        right: 0.2rem;
        max-width: calc(100% - 0.4rem);
    }
    .work-tile:hover .tile-desc { opacity: 1; }
    .tile-title, .tile-text { color: #fff; text-align: left; }
    .tile-title { margin-top: 0.5rem; margin-bottom: 0.2rem; }
    .tile-text { margin: 0; }
    .project-info {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
        max-width: 100vw;
        margin: 0;
        padding: 0;
    }
    .project-abstract, .project-info-block {
        width: 100%;
        max-width: 100vw;
        min-width: 0;
        padding-left: 5px;
        padding-right: 5px;
        margin-left: 0;
        margin-right: 0;
        display: block;
        box-sizing: border-box;
    }
    .project-abstract {
        margin-bottom: 1.2rem;
        order: 1;
    }
    .project-credits-roles-row {
        display: flex;
        flex-direction: row;
        gap: 2.5rem;
        width: 100%;
        max-width: 100vw;
        min-width: 0;
        padding-left: 5px;
        padding-right: 5px;
        margin-left: 0;
        margin-right: 0;
        box-sizing: border-box;
        order: 2;
    }
    .project-credits, .project-roles {
        flex: 1 1 0;
        min-width: 0;
        max-width: 300px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    .project-title {
        max-width: 100vw;
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Fotokarussell Styles */
.photo-carousel {
    width: 100%;
    max-width: 900px;
    margin: 2.5rem auto 1cm auto;
    position: relative;
    background: #181818;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    padding-bottom: 1cm;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #000;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-nav:hover {
    background: rgba(255, 215, 0, 0.8);
    color: #000;
}

.carousel-prev {
    left: 15px;
}

.carousel-next {
    right: 15px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.carousel-dot.active {
    background: #ffd700;
}

.carousel-dot:hover {
    background: rgba(255, 215, 0, 0.7);
}

.photo-carousel-placeholder {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2a2a2a;
    color: #888;
    font-size: 1.1rem;
    text-align: center;
    border-radius: 16px;
}

/* Mobile Anpassungen für das Karussell */
@media (max-width: 650px) {
    .carousel-container {
        height: 250px;
    }
    
    .photo-carousel-placeholder {
        height: 250px;
        font-size: 1rem;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
    
    .carousel-dots {
        padding: 12px;
    }
    
    .carousel-dot {
        width: 10px;
        height: 10px;
    }
}
