/*
Theme Name: Joshua Rzepka 2025
Theme URI: https://joshuarzepka.com
Author: Joshua Rzepka
Author URI: https://joshuarzepka.com
Description: A custom WordPress theme for Joshua Rzepka's portfolio.
Version: 1.0
Text Domain: joshuarzepka2025
*/

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poiret+One:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Didact+Gothic&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    text-decoration: none;
    cursor: auto !important; /* CURSOR KOMPLETT DEAKTIVIERT */
}

/* Alle interaktiven Elemente - Normal Cursor */
a, button, input, textarea, select, [onclick], .hover, .clickable {
    cursor: pointer !important; /* NORMAL CURSOR */
}

/* Bilder und Container explizit - Normal Cursor */
img, .image-container, .image-container-history, .item, .item-history {
    cursor: pointer !important; /* NORMAL CURSOR */
}

/* Custom schwarzer Punkt Cursor */
:root {
    --cursor-x: 0px;
    --cursor-y: 0px;
}

/* Custom Cursor KOMPLETT DEAKTIVIERT */
body::before {
    display: none !important;
}

body.cursor-hover::before {
    display: none !important;
}

/* Custom Cursor auf mobilen Geräten verstecken */
@media (max-width: 900px) {
    * {
        cursor: auto !important; /* Standardcursor auf Mobile wieder anzeigen */
    }
    
    body::before {
        display: none !important; /* Custom Cursor verstecken */
    }
    
    body.cursor-hover::before {
        display: none !important; /* Hover-Effekt verstecken */
    }
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    background-color: #ffffff;
    position: relative;
    overflow-x: hidden;
    scroll-behavior: smooth;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    padding: 1rem 6%;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    display: inline-block;
}

/* Überschriften: Poiret One */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poiret One', sans-serif;
    font-weight: 400;
    letter-spacing: 0.78px;
    color: #000000;
    margin-bottom: 0.5em;
}
/* Fließtext: Didact Gothic */
body, p, li, span, a, input, textarea, select, button {
    font-family: 'Poiret One', sans-serif;
    font-weight: 400;
    color: #000;
}

/* Scrollbar komplett ausblenden */
::-webkit-scrollbar {
    width: 0px;
    height: 0px;
    display: none;
}
::-webkit-scrollbar-thumb {
    display: none;
}
::-webkit-scrollbar-track {
    display: none;
}
::-webkit-scrollbar-button {
    display: none;
}
::-webkit-scrollbar-thumb:hover {
    display: none;
}

/* Firefox Scrollbar ausblenden */
* {
    scrollbar-width: none;
}

/* Internet Explorer/Edge Scrollbar ausblenden */
body {
    -ms-overflow-style: none;
}

/* Zusätzliche Sicherheit für alle Elemente */
html, body, div, main, section, article, aside, header, footer, nav {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
}


/* Navbar */
#navbar {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
}

.navbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    margin-bottom: 70px;
    width: 100%;
    display: flex;
    justify-content: center; /* Zentriert den Container */
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 42px;
    max-width: 2000px;
    width: 100%;
    margin: 0 auto;
    padding-left: 6%; /* Gleiche Seitenabstände wie Footer/Galerie */
    padding-right: 6%;
    box-sizing: border-box;
}

.navbar .logo {
    height: 58px;
    overflow: hidden;
}

.navbar .logo img {
    position: relative;
    width: 260px;
    height: 58px;
}

.navbar ul {
    display: flex;
    list-style: none;
    gap: 60px;
    margin-right: 20px;
}

.navbar ul li {
    margin: 0;
    padding: 0;
}

.navbar ul a {
    font-family: 'Poiret One', sans-serif !important;
    font-size: 20px;
    font-weight: 400;
    color: black;
    text-transform: lowercase;
    position: relative;
    padding-bottom: 5px;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.navbar ul a::after {
    content: '';
    position: absolute;
    height: 1px;
    left: 0;
    bottom: 0;
    width: 0;
    background: #444444;
    transition: width .5s ease-in-out;
}

.navbar ul a:hover::after,
.navbar ul a.active::after {
    width: 100%;
    background: #000;
}

.navbar ul a:hover,
.navbar ul a.active {
    color: #000;
}

/* Mobile Toggle Button */
.menu-toggle {
    display: none;
    font-size: 2.2rem;
    color: #000;
    margin-left: auto;
    z-index: 1100;
    background: none;
    border: none;
}

/* Burger icon (falls verwendet) */
.burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}

.burger span {
    width: 25px;
    height: 1px;
    background: #000;
    transition: all 0.3s ease-in-out;
    transform-origin: center;
}

/* Burger Animation */
.burger span.active:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger span.active:nth-child(2) {
    transform: rotate(-45deg);
}


/* Mobile Navigation Overlay */
@media (max-width: 900px) {
    .navbar .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: relative;
        padding-top: 40px;
        padding-right: 0;
    }
    
    .navbar .logo {
        flex: 0 1 auto;
        min-width: 0;
        margin-right: auto;
        transition: opacity 0.3s ease;
        height: 45px; /* Reduziert von 58px */
    }
    
    .navbar .logo img {
        width: 200px; /* Reduziert von 260px */
        height: 45px; /* Reduziert von 58px */
    }
    
    /* Logo ausblenden wenn Menü offen ist */
    .navbar .logo.hidden {
        opacity: 0;
        pointer-events: none;
    }
    
    /* Toggle Button anzeigen */
    .menu-toggle {
        display: block;
        margin-top: 10px;
        margin-right: 1rem;
        position: relative;
        right: 0;
        z-index: 1002;
    }
    
    /* Burger Icon anzeigen */
    .burger {
        display: flex;
        margin-right: 1rem;
        position: relative;
        right: 0;
        z-index: 1002;
    }
    
    /* X-Icon für geschlossenes Menü */
    .menu-toggle.open {
        position: fixed;
        top: 2rem;
        right: 2rem;
        font-size: 3rem;
        color: #000;
        z-index: 1002;
    }
    
    /* Mobile Navigation - Overlay von rechts nach links */
    .navbar ul {
        position: fixed;
        top: 0;
        right: 0; /* Startet rechts außerhalb des Bildschirms */
        bottom: 0;
        background: #ffffff;
        flex-direction: column;
        width: 100vw;
        height: 100vh;
        gap: 0;
        display: flex; /* Immer flex, aber außerhalb des Bildschirms */
        z-index: 1001;
        align-items: flex-start;
        justify-content: center;
        padding: 0 0 0 4rem;
        margin: 0;
        /* Animation vorbereiten */
        transform: translateX(100%); /* Startet komplett rechts außerhalb */
        transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smooth Easing */
    }
    
    /* Overlay eingeschoben - von rechts nach links */
    .navbar ul.show {
        transform: translateX(0); /* Schiebt sich nach links rein */
    }
    
    /* Menü-Titel - größer und mit mehr Abstand links */
    .navbar ul::before {
        content: 'menü';
        position: absolute;
        top: 4rem;
        left: 4rem;
        transform: none;
        font-size: 4rem;
        font-weight: 300;
        color: #000;
        font-family: 'Poiret One', sans-serif;
        letter-spacing: 3px;
        /* Menü-Titel Animation */
        opacity: 0;
        transform: translateX(50px);
        transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
    }
    
    /* Menü-Titel eingeblendet */
    .navbar ul.show::before {
        opacity: 1;
        transform: translateX(0);
    }
    
    /* Navigation Items - linksbündig mit Animation */
    .navbar ul li {
        border-bottom: none;
        padding: 2.5rem 0;
        width: auto;
        text-align: left;
        align-self: flex-start;
        margin-left: 0;
        /* Items Animation */
        opacity: 0;
        transform: translateX(30px);
        transition: opacity 0.5s ease, transform 0.5s ease;
    }
    
    /* Staggered Animation für Navigation Items */
    .navbar ul li:nth-child(1) { transition-delay: 0.3s; }
    .navbar ul li:nth-child(2) { transition-delay: 0.4s; }
    .navbar ul li:nth-child(3) { transition-delay: 0.5s; }
    
    /* Navigation Items eingeblendet */
    .navbar ul.show li {
        opacity: 1;
        transform: translateX(0);
    }
    
    .navbar ul li:last-child {
        border-bottom: none;
    }
    
    .navbar ul a {
        font-family: 'Poiret One', sans-serif !important;
        font-size: 2rem;
        font-weight: 300;
        color: #000;
        text-decoration: none;
        position: relative;
        letter-spacing: 1px;
        text-align: left;
    }
    
    /* Unterstrich für aktiven Link - linksbündig */
    .navbar ul a.active::after {
        content: '';
        position: absolute;
        bottom: -0.5rem;
        left: 0;
        transform: none;
        width: 60px;
        height: 1px;
        background: #000;
    }
    
    /* Hover-Effekt entfernen für Mobile */
    .navbar ul a::after {
        display: none;
    }
    
    .navbar ul a:hover::after {
        display: none;
    }
}

/* Scrollen deaktivieren wenn Menü offen ist */
body.menu-open {
    overflow: hidden !important;
}

/* Main Content Area - Flexbox Layout für Sticky Footer */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0; /* Wichtig für Flex-Wachstum */
}

/* Content Wrapper - nimmt verfügbaren Platz ein */
.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Alle Haupt-Content-Bereiche sollen flex: 1 haben */
.joshua-hero,
.item-gallery,
.item-gallery-history,
.kontakt-modul,
.legal-page,
.projekt-header,
.custom-gallery-grid {
    flex: 1;
}







/* Footer-Layout Container - STICKY FOOTER */
.container_footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 2000px;
    margin: 0 auto;
    padding: 2rem 6%;
    width: 100%;
    box-sizing: border-box;
    background-color: #ffffff;
}

footer {
    margin-top: auto; /* Footer am unteren Rand */
    flex-shrink: 0; /* Verhindert Schrumpfung */
    width: 100%;
}

/* Footer Links Links */
.footer-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 80px;
    margin: 0;
    padding: 0;
    font-size: 1.1rem;
    font-family: 'Poiret One', sans-serif !important;
    justify-content: flex-start;
    list-style: none;
}

.footer-links a {
    position: relative;
    color: #222;
    text-decoration: none;
    transition: color 0.2s;
    font-family: 'Poiret One', sans-serif !important;
}

.footer-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: #000;
    transition: width 0.4s cubic-bezier(.4,0,.2,1);
}

.footer-links a:hover {
    color: #000;
}

.footer-links a:hover::after {
    width: 100%;
}

/* Footer Social Icons Rechts */
.footer_rechts {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 32px;
    margin: 0;
    padding: 0;
    font-size: 1.5rem;
    justify-content: flex-end;
    list-style: none;
}

.footer_rechts a {
    color: #000;
    text-decoration: none;
    transition: transform 0.2s, color 0.2s;
}

.footer_rechts a i {
    font-size: 1.7rem;
    transition: transform 0.2s, color 0.2s;
    color: #000;
    display: inline-block;
}

.footer_rechts a:hover i {
    transform: scale(1.1);
    color: #000;
}

/* Responsive Design */
@media (max-width: 900px) {
    .container_footer {
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem 6%;
        align-items: center;
        text-align: center;
    }
    
    /* Social Icons zuerst - oben */
    .footer_rechts {
        order: 1;
        gap: 2rem;
        justify-content: center;
        margin-bottom: 1rem;
    }
    
    /* Footer Links danach - unten */
    .footer-links {
        order: 2;
        gap: 0;
        font-size: 1rem;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        line-height: 2.5;
    }
    
    .footer-links li {
        margin-bottom: 0.5rem;
    }
}

/* Copyright Text Styling */
.copyright,
.footer-copyright,
[class*="copyright"],
footer p,
footer span {
    font-family: 'Poiret One', sans-serif !important;
    font-size: 1.1rem !important;
    font-weight: 300 !important;
    letter-spacing: 0.5px !important;
    color: #000 !important;
}




/* Kontaktmodul */
.kontakt-modul {
    text-align: center;
    margin: 120px auto 80px auto; /* Mehr Weißraum oben (120px) und unten (80px) */
    font-family: 'Poiret One', sans-serif;
    background-color: #ffffff;
    max-width: 2000px; /* Gleiche max-width wie Footer */
    width: 100%; /* Volle Breite bis zur max-width */
    padding: 0 6%; /* Gleiche Seitenabstände wie Footer */
    box-sizing: border-box;
}

.kontakt-modul h2 {
    font-family: 'Poiret One', sans-serif !important;
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.kontakt-details {
    font-family: 'Poiret One', sans-serif !important;
    font-size: 1.1rem;
    color: #222;
    line-height: 1.7;
}

.kontakt-details a {
    font-family: 'Poiret One', sans-serif !important;
    color: #222;
    text-decoration: none;
    position: relative;
    transition: color 0.2s;
}

.kontakt-details a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: #000;
    transition: width 0.4s cubic-bezier(.4,0,.2,1);
}

.kontakt-details a:hover {
    color: #000;
}

.kontakt-details a:hover::after {
    width: 100%;
}

@media (max-width: 700px) {
    .kontakt-modul {
        margin: 48px 0 24px 0;
    }
    .kontakt-modul h2 {
        font-size: 1.3rem;
    }
    .kontakt-details {
        font-size: 1rem;
    }
}


/*Start-Gallery*/
.item-gallery {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
    background-color: #ffffff;
    max-width: 2000px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 6%;
    box-sizing: border-box;
    overflow: hidden;
}


.item {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    width: 100%;
}


.image-container {
    position: relative;
    overflow: hidden;
    border: 1px solid #000;
    width: 100%;
    height: auto;
    max-width: 100%; /* Begrenzt die Breite */
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.image-container:hover img {
    transform: scale(1.05);
}


.text-content {
    text-align: left;
    padding-top: 10px;
    width: 100%;
    margin-top: 10px;
    max-width: 100%; /* Begrenzt die Textbreite */
}

/* Kategorie-Text auf der Hauptseite schwarz machen */
.text-content p {
    color: #000000 !important;
    font-family: "Poiret One", sans-serif;
    font-size: 1rem;
    font-weight: 300;
    margin: 0;
    padding: 0;
}

/* Projekt-Titel auf der Hauptseite */
.text-content h1 {
    color: #000000;
    font-family: "Poiret One", sans-serif;
    font-size: 1.2rem;
    font-weight: 300;
    margin: 0 0 0.3rem 0;
}

/* Entfernte alle negativen Margins und ersetzte sie durch prozentuale Werte */
.item-1 .image-container { 
    max-width: 60%; 
    height: 475px; 
    margin-left: auto;
    margin-right: 40%;
}
.item-1 .text-content { 
    width: 60%; 
    margin-left: auto;
    margin-right: 40%;
}

.item-2 .image-container { 
    max-width: 35%; 
    height: 433px; 
    margin-top: -350px; 
    margin-left: 65%;
}
.item-2 .text-content { 
    width: 35%; 
    margin-left: 65%;
}

.item-3 .image-container { 
    max-width: 35%; 
    height: 708px; 
    margin-top: -80px; 
    margin-right: 65%;
}
.item-3 .text-content { 
    width: 35%; 
    margin-right: 65%;
}

.item-4 .image-container { 
    max-width: 50%; 
    height: 489px; 
    margin-top: -630px; 
    margin-left: 50%;
}
.item-4 .text-content { 
    width: 50%; 
    margin-left: 50%;
}

.item-5 .image-container { 
    max-width: 55%; 
    height: 489px; 
    margin-top: 200px; 
    margin-right: 45%;
}
.item-5 .text-content { 
    width: 55%; 
    margin-right: 45%;
}

.item-6 .image-container { 
    max-width: 40%; 
    height: 770px; 
    margin-top: -700px; 
    margin-left: 60%;
}
.item-6 .text-content { 
    width: 40%; 
    margin-left: 60%;
}

.item-7 .image-container { 
    max-width: 35%; 
    height: 708px; 
    margin-top: 10px; 
    margin-right: 65%; /* Gleich wie item-3 für linksbündige Ausrichtung */
}
.item-7 .text-content { 
    width: 35%; 
    margin-right: 65%; /* Gleich wie item-3 für linksbündige Ausrichtung */
}

.item-8 .image-container { 
    max-width: 55%; 
    height: 570px; 
    margin-top: -720px; 
    margin-left: 45%;
}
.item-8 .text-content { 
    width: 55%; 
    margin-left: 45%;
}

.item-9 .image-container { 
    max-width: 55%; 
    height: 570px; 
    margin-top: 120px; 
    margin-right: 45%;
}
.item-9 .text-content { 
    width: 55%; 
    margin-right: 45%;
}

.item-10 .image-container { 
    max-width: 35%; 
    height: 780px; 
    margin-top: -730px; 
    margin-left: 65%;
}
.item-10 .text-content { 
    width: 35%; 
    margin-left: 65%;
}

.item-10 {
    margin-bottom: 150px;
}

/* Responsive Design für Galerie */
@media (max-width: 1200px) {
    .item-gallery {
        display: block; /* Ändert von flex zu block */
        padding: 0.5rem 6%; /* Reduziert von 2rem auf 0.5rem für weniger Abstand zum Header */
    }
    .item {
        margin-bottom: 3rem; /* Abstand zwischen den Items */
        width: 100%;
        display: flex;
        flex-direction: column;
    }
    
    /* Items die ursprünglich links waren - linksbündig */
    .item-1,
    .item-3,
    .item-5,
    .item-7,
    .item-9 {
        align-items: flex-start; /* Linksbündig */
    }
    
    /* Items die ursprünglich rechts waren - rechtsbündig */
    .item-2,
    .item-4,
    .item-6,
    .item-8,
    .item-10 {
        align-items: flex-end; /* Rechtsbündig */
    }
    
    /* Alle Items behalten ihre ursprünglichen Proportionen - ALLE 400px hoch auf Mobile */
    .item-1 .image-container {
        max-width: 90%; /* Behält ursprüngliche Breite */
        height: 400px; /* Einheitlich 400px auf Mobile */
        margin: 0 !important; /* Entfernt Positionierungs-Margins */
    }
    .item-1 .text-content { 
        width: 90%; 
        margin: 10px 0 0 0 !important;
        text-align: left;
    }

    .item-2 .image-container { 
        max-width: 90%; 
        height: 400px; /* Einheitlich 400px auf Mobile */
        margin: 0 !important;
    }
    .item-2 .text-content { 
        width: 90%; 
        margin: 10px 0 0 0 !important;
        text-align: left;
    }

    .item-3 .image-container { 
        max-width: 90%; 
        height: 400px; /* Einheitlich 400px auf Mobile */
        margin: 0 !important;
    }
    .item-3 .text-content { 
        width: 90%; 
        margin: 10px 0 0 0 !important;
        text-align: left;
    }

    .item-4 .image-container { 
        max-width: 90%; 
        height: 400px; /* Einheitlich 400px auf Mobile */
        margin: 0 !important;
    }
    .item-4 .text-content { 
        width: 90%; 
        margin: 10px 0 0 0 !important;
        text-align: left;
    }

    .item-5 .image-container { 
        max-width: 90%; 
        height: 400px; /* Einheitlich 400px auf Mobile */
        margin: 0 !important;
    }
    .item-5 .text-content { 
        width: 90%; 
        margin: 10px 0 0 0 !important;
        text-align: left;
    }

    .item-6 .image-container { 
        max-width: 90%; 
        height: 400px; /* Einheitlich 400px auf Mobile */
        margin: 0 !important;
    }
    .item-6 .text-content { 
        width: 90%; 
        margin: 10px 0 0 0 !important;
        text-align: left;
    }

    .item-7 .image-container { 
        max-width: 90%; 
        height: 400px; /* Einheitlich 400px auf Mobile */
        margin: 0 !important;
    }
    .item-7 .text-content { 
        width: 90%; 
        margin: 10px 0 0 0 !important;
        text-align: left;
    }

    .item-8 .image-container { 
        max-width: 90%; /* Auch 90% statt 55% */
        height: 400px; /* Einheitlich 400px auf Mobile */
        margin: 0 !important;
    }
    .item-8 .text-content { 
        width: 90%; /* Auch 90% statt 55% */
        margin: 10px 0 0 0 !important;
        text-align: left;
    }

    .item-9 .image-container { 
        max-width: 90%; 
        height: 400px; /* Einheitlich 400px auf Mobile */ 
        margin: 0 !important;
    }
    .item-9 .text-content { 
        width: 90%; 
        margin: 10px 0 0 0 !important;
        text-align: left;
    }

    .item-10 .image-container { 
        max-width: 90%; 
        height: 400px; /* Einheitlich 400px auf Mobile wie alle anderen */
        margin: 0 !important;
    }
    .item-10 .text-content { 
        width: 90%; 
        margin: 10px 0 0 0 !important;
        text-align: left;
    }

    .item-10 {
        margin-bottom: 3rem;
    }
}
/* Reveal on Scroll Animation - FÜR ALLE SEITENTYPEN */
.item,
.joshua-hero,
.kontakt-modul,
.projekt-header,
.legal-page {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.item.reveal,
.joshua-hero.reveal,
.kontakt-modul.reveal,
.projekt-header.reveal,
.legal-page.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Delays für verschiedene Items */
.item-1 { transition-delay: 0.05s; }
.item-2 { transition-delay: 0.05s; }
.item-3 { transition-delay: 0.05s; }
.item-4 { transition-delay: 0.05s; }
.item-5 { transition-delay: 0.05s; }
.item-6 { transition-delay: 0.05s; }
.item-7 { transition-delay: 0.05s; }
.item-8 { transition-delay: 0.05s; }
.item-9 { transition-delay: 0.05s; }
.item-10 { transition-delay: 0.05s; }


/* ===================== */
/* MODAL GALLERY MOBILE  */
/* ===================== */
.project-modal-image-header {
    overflow: hidden !important;
    position: relative !important;
}

/*Projektseite*/
.projekt-header {
    background-size: cover;
    background-position: center;
    min-height: 800px; /* Erhöht von 600px auf 800px */
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    padding: 0;
    width: 100%;
    max-width: 2000px; /* Gleiche max-width wie Header/Footer */
    box-sizing: border-box;
    /* Gleiche Seitenabstände wie Header/Footer */
    padding-left: 6%;
    padding-right: 6%;
}

/* Fade-In Animation nur für echte Projektseiten (nicht im Modal) */
body:not(.modal-active) .projekt-header {
    opacity: 0;
    animation: fadeInHeader 0.6s ease-out 0.2s forwards;
}

@keyframes fadeInHeader {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.projekt-header-inhalt {
    position: relative;
    z-index: 2;
    margin: 0 0 2.5rem 0; /* Entfernt seitliche Margins */
    display: block; /* Ändert von inline-block zu block */
    color: #fff;
    box-shadow: none;
    width: 100%; /* Volle Breite nutzen */
    font-family: 'Poiret One', sans-serif;
    background: none;
    text-align: left; /* Explizit linksbündig */
}

.projekt-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.20);
    z-index: 1;
}

.projekt-header-titel {
    font-family: 'Poiret One', sans-serif !important;
    font-size: 5rem;
    margin: 0 0 0.5rem 0;
    color: #ffffff;
    font-weight: 300;
    letter-spacing: 1.5px;
    text-align: left; /* Explizit linksbündig */
}

.projekt-header-kategorie {
    font-family: 'Poiret One', sans-serif !important;
    font-size: 3rem;
    margin-top: 0.2rem;
    color: #ffffff;
    font-weight: 300;
    letter-spacing: 1px;
    text-align: left; /* Explizit linksbündig */
}

/* Responsive Anpassung */
@media (max-width: 900px) {
    .projekt-header {
        padding-left: 4%;
        padding-right: 4%;
        min-height: 600px; /* Erhöht von 400px auf 600px */
    }
    
    .projekt-header-titel {
        font-size: 3rem;
    }
    
    .projekt-header-kategorie {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {
    .projekt-header {
        padding-left: 10%;
        padding-right: 2%;
        min-height: 500px; /* Erhöht von 300px auf 500px */
    }
    .projekt-header-titel {
        font-size: 2.5rem;
        margin-bottom: 1.5rem !important;
        line-height: 1.0;
    }
    .projekt-header-kategorie {
        font-size: 1.5rem;
    }
}



/* Joshua Hero */
.joshua-hero {
    margin: 4rem auto 2rem auto; /* auto für horizontale Zentrierung */
    display: flex;
    justify-content: center; /* Container zentriert */
    max-width: 2000px;
    width: 100%;
    padding: 0 6%; /* Gleiche Seitenabstände wie andere Bereiche */
    box-sizing: border-box;
    background-color: #ffffff; /* Entfernt das blaue Background */
}

.joshua-hero-inner {
    display: flex;
    width: 100%;
    max-width: none; /* Entfernt die Begrenzung */
    gap: 4rem;
    align-items: stretch;
    justify-content: flex-start; /* Inhalt linksbündig innerhalb des zentrierten Containers */
}

.joshua-hero-img {
    flex: 0 0 40%; /* Reduziert von 50% auf 40% der verfügbaren Breite */
    height: 600px; /* Feste Höhe für das Bild bleibt gleich */
    display: flex;
    align-items: stretch;
    min-width: 0;
}

.joshua-hero-img img {
    width: 100%; /* 100% des Containers statt feste 400px */
    height: 100%;
    object-fit: cover;
    background: #f5f5f5;
    display: block;
    border: 1px solid #000;
}

.joshua-hero-text {
    flex: 1; /* Nimmt den restlichen Platz ein */
    margin-top: 2rem;
    min-width: 0;
    text-align: left !important; /* Explizit linksbündig mit !important */
}

.joshua-hero-text h1 {
    font-family: 'Poiret One', sans-serif !important;
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 0.2em;
    text-align: left !important; /* Explizit linksbündig mit !important */
}

.joshua-hero-sub {
    font-family: 'Poiret One', sans-serif !important;
    font-size: 1.5rem;
    color: #888;
    margin-bottom: 1.5em;
    text-align: left !important; /* Explizit linksbündig mit !important */
}

.joshua-hero-text p {
    font-family: 'Didact Gothic', sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    color: #222;
    font-weight: 200;
    text-align: left !important; /* Explizit linksbündig */
}

/* Spezifische Regel für Text-Elemente in der Joshua Hero Section */
.joshua-hero h1,
.joshua-hero .joshua-hero-sub,
.joshua-hero .joshua-hero-text,
.joshua-hero .joshua-hero-text * {
    text-align: left !important;
}

/* ULTRA-SPEZIFISCHE REGEL FÜR JOSHUA ÜBERSCHRIFT */
.joshua-hero .joshua-hero-text h1,
.joshua-hero-text h1,
.joshua-hero h1 {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    display: block !important;
    width: 100% !important;
}

/* ULTRA-SPEZIFISCHE REGEL FÜR PHOTOGRAPHER UNTERTITEL */
.joshua-hero .joshua-hero-sub,
.joshua-hero-sub,
.joshua-hero .joshua-hero-text .joshua-hero-sub {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    display: block !important;
    width: 100% !important;
}

/* ANTI-ZENTRIERUNGS-REGEL FÜR JOSHUA HERO SECTION - NUR FÜR TEXT */
.joshua-hero .joshua-hero-text,
.joshua-hero .joshua-hero-text h1,
.joshua-hero .joshua-hero-sub,
.joshua-hero .joshua-hero-text p {
    text-align: left !important;
    margin-left: 0 !important;
}

/* ZUSÄTZLICHE REGEL FÜR ALLE MÖGLICHEN UNTERTITEL-SELEKTOREN */
.joshua-hero .joshua-hero-text .joshua-hero-sub,
.joshua-hero-text .joshua-hero-sub,
.joshua-hero div.joshua-hero-sub,
.joshua-hero p.joshua-hero-sub,
.joshua-hero span.joshua-hero-sub {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: auto !important;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .joshua-hero {
        padding: 0 6%;
    }
    
    .joshua-hero-inner {
        gap: 3rem;
    }
    
    .joshua-hero-img {
        flex: 0 0 40%; /* Auch bei mittleren Bildschirmen 40% */
        height: 500px; /* Feste Höhe auch bei mittleren Bildschirmen */
    }
    
    .joshua-hero-text h1 {
        font-size: 2.5rem;
        text-align: left !important; /* Explizit linksbündig mit !important */
    }
    
    .joshua-hero-sub {
        font-size: 1.3rem;
        text-align: left !important; /* Explizit linksbündig mit !important */
    }
}

@media (max-width: 900px) {
    .joshua-hero {
        padding: 0 4%;
        margin: 0.5rem auto 0 auto; /* Noch kleinere Abstände */
    }
    
    /* Container als Grid für gleichmäßige Höhenverteilung */
    .joshua-hero-inner {
        display: grid !important;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        gap: 1rem; /* Noch kleinerer Gap */
        align-items: start;
        justify-items: center; /* Zentriert die Grid-Items */
    }
    
    .joshua-hero-img {
        grid-row: 1;
        width: 100%; /* Volle Breite für zentrierte Ausrichtung */
        aspect-ratio: 4/3;
        min-height: 250px; /* Noch weitere Reduzierung */
        max-width: 100%;
        justify-self: center; /* Zentriert das Bild */
        display: flex;
        align-items: stretch;
    }
    
    .joshua-hero-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .joshua-hero-text {
        grid-row: 2;
        width: 100%; /* Volle Breite für Text */
        margin-top: 0;
        text-align: left !important;
        max-width: 100%;
        justify-self: center; /* Zentriert den Text-Container */
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        min-height: auto;
    }
    
    .joshua-hero-text h1 {
        font-size: 1.8rem; /* Noch kleiner */
        text-align: left !important;
        margin-bottom: 0.3rem; /* Kleinerer Abstand */
    }
    
    .joshua-hero-sub {
        font-size: 1rem; /* Noch kleiner */
        text-align: left !important;
        margin-bottom: 1rem; /* Kleinerer Abstand */
    }
}

@media (max-width: 600px) {
    .projekt-header {
        padding-left: 10%;
        padding-right: 2%;
        min-height: 500px; /* Erhöht von 300px auf 500px */
    }
    .projekt-header-titel {
        font-size: 2.5rem;
        margin-bottom: 1.5rem !important;
        line-height: 1.0;
    }
    .projekt-header-kategorie {
        font-size: 1.5rem;
    }
}



/* Joshua Timeline */
.joshua-timeline {
    width: 100%;
    max-width: 1200px;
    margin: 4rem auto 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 2rem;
    justify-items: center;
}
.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.timeline-img {
    width: 180px;
    height: 180px;
    border: 1px solid #ccc;
    background: #fff;
    margin-bottom: 0.5rem;
}
.timeline-label {
    font-family: 'Poiret One', sans-serif !important;
}
.timeline-year {
    font-family: 'Poiret One', sans-serif !important;
    font-size: 1.5rem;
    font-weight: 300;
}
.timeline-desc {
    font-family: 'Didact Gothic', sans-serif !important;
    font-size: 1rem;
    color: #444;
}

/* Beispielhafte Positionierung für die Timeline-Items */
.year-2024 { grid-column: 3 / span 2; grid-row: 1; }
.year-2023 { grid-column: 1 / span 2; grid-row: 1; }
.year-2021a { grid-column: 1 / span 2; grid-row: 2; }
.year-2021b { grid-column: 3 / span 1; grid-row: 2; }
.year-2021c { grid-column: 4 / span 1; grid-row: 2; }
.year-2020 { grid-column: 1 / span 1; grid-row: 3; }
.year-2016 { grid-column: 4 / span 1; grid-row: 3; }
.year-2002 { grid-column: 2 / span 1; grid-row: 4; }










/* Historie-Galerie */
.item-gallery-history {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
    background-color: #ffffff;
    max-width: 2000px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 6%;
    box-sizing: border-box;
    overflow: hidden;
}

.item-history {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    width: 100%;
}

.image-container-history {
    position: relative;
    overflow: hidden;
    border: 1px solid #000000;
    width: 100%;
    height: auto;
    max-width: 100%;
    background: #ffffff;
}

.image-container-history img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: none; /* Entfernt Hover-Animation */
}

/* Entfernt Hover-Effekt */
.image-container-history:hover img {
    transform: none;
}

.text-content-history {
    text-align: left;
    padding-top: 8px;
    width: 100%;
    margin-top: 8px;
    max-width: 100%;
    font-size: 0.9rem;
    color: #000000;
}

.item-1 .image-container-history { 
    max-width: 25%; 
    height: 280px; 
    margin-left: 40%; 
    margin-top: 0;
}
.item-1 .text-content-history { 
    width: 25%; 
    margin-left: 40%; 
}

.item-2 .image-container-history { 
    max-width: 30%; 
    height: 300px; 
    margin-top: -120px; 
    margin-right: 30%;
}
.item-2 .text-content-history { 
    width: 30%; 
    margin-right: 30%; 
}

.item-3 .image-container-history { 
    max-width: 20%; 
    height: 450px; 
    margin-left: 40%; 
    margin-top: -140px;
}
.item-3 .text-content-history { 
    width: 20%; 
    margin-left: 40%; 
}

.item-4 .image-container-history { 
    max-width: 25%; 
    height: 250px; 
    margin-top: -220px; 
    margin-right: 25%;
}
.item-4 .text-content-history { 
    width: 25%; 
    margin-right: 25%; 
}

.item-5 .image-container-history { 
    max-width: 30%; 
    height: 300px; 
    margin-top: 20px; 
    margin-left: 35%;
}
.item-5 .text-content-history { 
    width: 30%; 
    margin-left: 40%; 
}

.item-6 .image-container-history { 
    max-width: 25%; 
    height: 300px; 
    margin-top: -250px; 
    margin-right: 40%;
}
.item-6 .text-content-history { 
    width: 28%; 
    margin-right: 35%; 
}

.item-7 .image-container-history { 
    max-width: 20%; 
    height: 400px; 
    margin-top: -50px; 
    margin-left: 30%;
}
.item-7 .text-content-history { 
    width: 20%; 
    margin-left: 30%; 
}

.item-8 .image-container-history { 
    max-width: 30%; 
    height: 300px; 
    margin-top: -280px; 
    margin-right: 35%;
}
.item-8 .text-content-history { 
    width: 30%; 
    margin-right: 35%; 
}

.item-9 .image-container-history { 
    max-width: 25%; 
    height: 250px; 
    margin-top: -10px; 
    margin-left: 30%;
}
.item-9 .text-content-history { 
    width: 25%; 
    margin-left: 30%; 
}

.item-10 .image-container-history { 
    max-width: 30%; 
    height: 190px; 
    margin-top: -80px; 
    margin-right: 35%;
}
.item-10 .text-content-history { 
    width: 30%; 
    margin-right: 35%; 
}

.item-10 {
    margin-bottom: 10px; /* Reduziert von 150px */
}

/* Timeline-Stil Text-Formatierung - kompakter */
.text-content-history h3 {
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 0.2rem;
    color: #000000;
}

.text-content-history p {
    font-size: 1rem;
    color: #000000;
    line-height: 1.3;
	margin-top: -10px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .item-gallery-history {
        display: block;
        padding: 2rem 6%;
    }
    
    .item-history {
        margin-bottom: 2rem; /* Reduziert von 3rem */
        width: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .item-history:nth-child(odd) {
        align-items: flex-start;
    }
    
    .item-history:nth-child(even) {
        align-items: flex-end;
    }
    
    /* Alle Items auf mobile Ansicht */
    .item-1 .image-container-history,
    .item-2 .image-container-history,
    .item-3 .image-container-history,
    .item-4 .image-container-history,
    .item-5 .image-container-history,
    .item-6 .image-container-history,
    .item-7 .image-container-history,
    .item-8 .image-container-history,
    .item-9 .image-container-history,
    .item-10 .image-container-history {
        max-width: 90%;
        height: 200px; /* Reduziert von 250px */
        margin: 0 !important;
    }
    
    .item-1 .text-content-history,
    .item-2 .text-content-history,
    .item-3 .text-content-history,
    .item-4 .text-content-history,
    .item-5 .text-content-history,
    .item-6 .text-content-history,
    .item-7 .text-content-history,
    .item-8 .text-content-history,
    .item-9 .text-content-history,
    .item-10 .text-content-history {
        width: 90%;
        margin: 8px 0 0 0 !important;
        text-align: left;
    }

    .item-10 {
        margin-bottom: 2rem; /* Reduziert von 3rem */
    }
}

@media (max-width: 900px) {
    .item-gallery-history {
        padding: 0 4%;
    }
}

/* Legal Pages (Impressum, Datenschutz, AGBs) */
.legal-page {
    background-color: #ffffff;
    min-height: calc(100vh - 200px);
    padding: 4rem 0;
}

.legal-container {
    max-width: 2000px;
    margin: 0 auto;
    padding: 0 6%;
    box-sizing: border-box;
}

.legal-title {
    font-family: 'Poiret One', sans-serif;
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 3rem;
    text-align: left !important;
    color: #000;
    letter-spacing: 1px;
}

.legal-content {
    font-family: 'Didact Gothic', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
    text-align: left !important;
}

/* Alle Elemente im Legal Content linksbündig */
.legal-content * {
    text-align: left !important;
    font-family: 'Didact Gothic', sans-serif !important;
}

.legal-content h2 {
    font-family: 'Poiret One', sans-serif !important;
    font-size: 1.8rem;
    font-weight: 300;
    margin: 2.5rem 0 1.5rem 0;
    color: #000;
    letter-spacing: 0.5px;
    text-align: left !important;
}

.legal-content h3 {
    font-family: 'Poiret One', sans-serif !important;
    font-size: 1.4rem;
    font-weight: 300;
    margin: 2rem 0 1rem 0;
    color: #000;
    letter-spacing: 0.5px;
    text-align: left !important;
}

.legal-content h4,
.legal-content h5,
.legal-content h6 {
    font-family: 'Poiret One', sans-serif !important;
    font-weight: 300;
    color: #000;
    text-align: left !important;
}

.legal-content p {
    margin-bottom: 1.5rem;
    font-family: 'Didact Gothic', sans-serif !important;
    text-align: left !important;
}

.legal-content ul,
.legal-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
    font-family: 'Didact Gothic', sans-serif !important;
    text-align: left !important;
}

.legal-content li {
    margin-bottom: 0.8rem;
    font-family: 'Didact Gothic', sans-serif !important;
    text-align: left !important;
}

.legal-content a {
    color: #000;
    text-decoration: underline;
    transition: color 0.2s;
    font-family: 'Didact Gothic', sans-serif !important;
}

.legal-content a:hover {

.legal-content h2 {
    font-family: 'Poiret One', sans-serif !important;
    font-size: 1.8rem;
    font-weight: 300;
    margin: 2.5rem 0 1.5rem 0;
    color: #000;
    letter-spacing: 0.5px;
    text-align: left !important;
}

.legal-content h3 {
    font-family: 'Poiret One', sans-serif !important;
    font-size: 1.4rem;
    font-weight: 300;
    margin: 2rem 0 1rem 0;
    color: #000;
    letter-spacing: 0.5px;
    text-align: left !important;
}

.legal-content h4,
.legal-content h5,
.legal-content h6 {
    font-family: 'Poiret One', sans-serif !important;
    font-weight: 300;
    color: #000;
    text-align: left !important;
}

.legal-content p {
    margin-bottom: 1.5rem;
    font-family: 'Didact Gothic', sans-serif !important;
    text-align: left !important;
}

.legal-content ul,
.legal-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
    font-family: 'Didact Gothic', sans-serif !important;
    text-align: left !important;
}

.legal-content li {
    margin-bottom: 0.8rem;
    font-family: 'Didact Gothic', sans-serif !important;
    text-align: left !important;
}

.legal-content a {
    color: #000;
    text-decoration: underline;
    transition: color 0.2s;
    font-family: 'Didact Gothic', sans-serif !important;
}

.legal-content a:hover {
    color: #666;
}

.legal-content strong {
    font-weight: 600;
    color: #000;
    font-family: 'Didact Gothic', sans-serif !important;
}

.legal-content em {
    font-style: italic;
    font-family: 'Didact Gothic', sans-serif !important;
}

/* Responsive Design für Legal Pages */
@media (max-width: 900px) {
    .legal-page {
        padding: 2rem 0;
    }
    
    .legal-container {
        padding: 0 4%;
    }
    
    .legal-title {
        font-size: 2.2rem;
        margin-bottom: 2rem;
    }
    
    .legal-content {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .legal-content h2 {
        font-size: 1.5rem;
        margin: 2rem 0 1rem 0;
    }
    
    .legal-content h3 {
        font-size: 1.2rem;
        margin: 1.5rem 0 0.8rem 0;
    }
}

@media (max-width: 600px) {
    .legal-container {
        padding: 0 6%; /* Erhöht von 2% auf 6% für mehr seitlichen Abstand */
    }
    
    .legal-title {
        font-size: 1.8rem;
    }
    
    .legal-content {
        font-size: 0.9rem;
    }
}

/* Globale Scrollbar ausblenden */
body {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

body::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none; /* Chrome, Safari, Opera */
}

/* Scrollbar auch für alle anderen scrollbaren Elemente ausblenden */
* {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

*::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none; /* Chrome, Safari, Opera */
}

/* Projekt Modal System */
.modal-active {
    overflow: hidden !important;
    position: fixed !important; /* Verhindert Scrollen auf Mobile */
    width: 100% !important;
    height: 100% !important;
}

.project-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; /* Startet unsichtbar */
    overflow-x: hidden;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modal sichtbar machen */
.project-modal-overlay.show {
    opacity: 1;
    background: rgba(0, 0, 0, 0.6);
}

.project-modal-content {
    background: white;
    width: 85%;
    max-width: 1200px;
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    z-index: 10001; /* Niedriger als custom cursor */
    margin: 12vh 7.5vw 8vh 7.5vw; /* Noch mehr Abstand auf allen Seiten */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
    transform: scale(0.8) translateY(50px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Scrollbar für alle Browser ausblenden */
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE 10+ */
}

.project-modal-content::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
}

/* Modal Content sichtbar machen */
.project-modal-overlay.show .project-modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.project-modal-content::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none; /* Chrome, Safari, Opera */
}

.project-modal-animated-image {
    z-index: 10002; /* Während Animation über Modal, aber unter Cursor */
}

.project-modal-close {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #000;
    border-radius: 50%;
    font-size: 2.5rem;
    cursor: pointer;
    color: #000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: monospace;
    line-height: 1;
    padding: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100010 !important;
    position: fixed !important;
    top: 32px !important;
    right: 32px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transform: scale(0.8);
    opacity: 0;
}

/* Close Button Animation */
.project-modal-overlay.show .project-modal-close {
    transform: scale(1.1);
    opacity: 1;
    transition-delay: 0.2s; /* Erscheint etwas später */
}

.project-modal-header {
    display: none; /* Header komplett ausblenden */
}

.project-modal-body {
    flex: 1;
    padding: 0 0 3rem 0; /* Unteren Padding hinzugefügt für Abstand zur letzten Reihe */
    overflow-y: auto;
    overflow-x: hidden;
    /* Scrollbar für Modal Body ausblenden */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE 10+ */
}
.project-modal-body::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
}

.project-modal-body::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none; /* Chrome, Safari, Opera */
}

/* Modal Header mit Bild-Hintergrund */
.project-modal-image-header {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    overflow: hidden;
}

.project-modal-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 4rem;
    overflow: hidden;
}

.project-modal-header-content {
    color: white;
    text-align: left;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0 2.5rem 2.5rem 2.5rem;
    z-index: 2;
}

.project-modal-title {
    font-family: "Poiret One", sans-serif;
    font-size: 5rem;
    margin: 0 0 0.5rem 0;
    font-weight: 300;
    letter-spacing: 2px;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.project-modal-category {
    font-family: "Poiret One", sans-serif;
    font-size: 2.5rem;
    margin: 0;
    color: #ffffff;
    text-transform: lowercase;
    letter-spacing: 2px;
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.no-gallery {
    display: none; /* "Keine Galerie" Nachricht ausblenden */
}

/* Galerie Container im Modal - DEAKTIVIERT */
.project-modal-gallery-container {
    display: none; /* Galerie komplett ausblenden */
}

/* Content Section im Modal */
.project-modal-content-section {
    padding: 3rem 4rem; /* Gleiche horizontale Ausrichtung wie Header */
    background: white;
    /* border-bottom entfernt - kein Trennstrich mehr */
}

/* ULTRA-SPEZIFISCHE SCHRIFTART-REGELN FÜR MODAL-TEXT */
.project-modal-overlay .project-modal-content .project-modal-body .project-modal-content-section .project-modal-text-content,
.project-modal-overlay .project-modal-content .project-modal-body .project-modal-content-section .project-modal-text-content *,
.project-modal-content-section .project-modal-text-content,
.project-modal-content-section .project-modal-text-content *,
.project-modal-text-content,
.project-modal-text-content * {
    font-family: 'Didact Gothic', sans-serif !important;
}

/* NOCH SPEZIFISCHERE REGEL - ÜBERSCHREIBT AUCH INLINE STYLES */
.project-modal-overlay .project-modal-content .project-modal-body .project-modal-content-section .project-modal-text-content p[style*="font-family"],
.project-modal-content-section .project-modal-text-content p[style*="font-family"],
.project-modal-text-content p[style*="font-family"],
.project-modal-text-content p {
    font-family: 'Didact Gothic', sans-serif !important;
}

.project-modal-text-content {
    max-width: 70%; /* Begrenzt auf 70% der Modal-Breite */
    margin: 0; /* Linksbündig ausgerichtet */
    text-align: left; /* Explizit linksbündig */
    font-family: 'Didact Gothic', sans-serif !important; /* Basis-Schriftart für alle Kinder */
}

.project-modal-text-content p {
    font-family: 'Didact Gothic', sans-serif !important;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #000;
    margin: 0;
    text-align: left;
}

/* ZUSÄTZLICHE SPEZIFISCHE REGELN FÜR ALLE MÖGLICHEN TEXT-ELEMENTE */
.project-modal-text-content p,
.project-modal-text-content span,
.project-modal-text-content div,
.project-modal-text-content h1,
.project-modal-text-content h2,
.project-modal-text-content h3,
.project-modal-text-content h4,
.project-modal-text-content h5,
.project-modal-text-content h6,
.project-modal-text-content strong,
.project-modal-text-content em,
.project-modal-text-content i,
.project-modal-text-content b {
    font-family: 'Didact Gothic', sans-serif !important;
}

.project-modal-gallery-grid {
    display: none; /* Galerie-Grid ausblenden */
}

/* Mobile: Bilder untereinander */
@media (max-width: 600px) {
    .project-modal-gallery-grid {
        grid-template-columns: 1fr; /* Eine Spalte auf Mobile */
        gap: 1rem;
    }
}

.project-modal-gallery-item {
    display: none; /* Galerie-Items ausblenden */
}

.project-modal-gallery-item img {
    display: none; /* Galerie-Bilder ausblenden */
}

/* Modal Box-Sizing Fix */
.project-modal-content *,
.project-modal-flexible-module *,
.project-modal-flexible-item * {
    box-sizing: border-box;
}

/* Flexible Module für verschiedene Layouts */
.project-modal-flexible-module {
    margin-top: 2rem; /* Gleich wie row-gap für einheitliche Abstände */
    margin-left: 0; /* Keine negativen Margins */
    margin-right: 0; /* Keine negativen Margins */
    padding: 0 1rem; /* Kleineres Padding */
    box-sizing: border-box;
    width: 100%; /* Volle Breite */
    display: block; /* Basis-Display für Überschreibung */
}

/* Erstes Modul hat keinen oberen Abstand */
.project-modal-flexible-module:first-of-type {
    margin-top: 0;
}

/* STANDARD FALLBACK - Falls keine spezifische Layout-Klasse vorhanden ist */
.project-modal-body .project-modal-flexible-module:not([class*="project-modal-module-layout"]) {
    display: grid !important;
    grid-template-columns: 1fr !important;
    column-gap: 0 !important;
    row-gap: 2rem !important;
    width: 100% !important;
}

/* Layout 1/1 - Vollbild */
.project-modal-body .project-modal-flexible-module.project-modal-module-layout-1-1 {
    display: grid !important;
    grid-template-columns: 1fr !important;
    column-gap: 0; /* Kein horizontaler Abstand bei einer Spalte */
    row-gap: 2rem; /* Vertikaler Abstand zwischen Zeilen */
}

/* Layout 1/2 1/2 - Zwei gleiche Spalten */
.project-modal-body .project-modal-flexible-module.project-modal-module-layout-1-2-1-2 {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    column-gap: 2rem !important; /* Horizontaler Abstand zwischen Spalten */
    row-gap: 2rem !important; /* Vertikaler Abstand zwischen Zeilen */
    align-items: stretch !important; /* Gleiche Höhe für alle Items */
    width: 100% !important;
    padding: 0 1rem !important;
    margin-top: 2rem !important;
    box-sizing: border-box !important;
}

/* Layout 1/3 2/3 - Links schmal, rechts breit */
.project-modal-body .project-modal-flexible-module.project-modal-module-layout-1-3-2-3 {
    display: grid !important;
    grid-template-columns: 1fr 2fr !important;
    column-gap: 2rem !important; /* Horizontaler Abstand zwischen Spalten */
    row-gap: 2rem !important; /* Vertikaler Abstand zwischen Zeilen */
    align-items: stretch !important; /* Gleiche Höhe für alle Items */
    width: 100% !important;
    padding: 0 1rem !important;
    margin-top: 2rem !important;
    box-sizing: border-box !important;
}

/* Layout 2/3 1/3 - Links breit, rechts schmal */
.project-modal-body .project-modal-flexible-module.project-modal-module-layout-2-3-1-3 {
    display: grid !important;
    grid-template-columns: 2fr 1fr !important;
    column-gap: 2rem !important; /* Horizontaler Abstand zwischen Spalten */
    row-gap: 2rem !important; /* Vertikaler Abstand zwischen Zeilen */
    align-items: stretch !important; /* Gleiche Höhe für alle Items */
    width: 100% !important;
    padding: 0 1rem !important;
    margin-top: 2rem !important;
    box-sizing: border-box !important;
}

/* Layout 1/3 1/3 1/3 - Drei gleiche Spalten */
.project-modal-body .project-modal-flexible-module.project-modal-module-layout-1-3-1-3-1-3 {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    column-gap: 2rem !important; /* Horizontaler Abstand zwischen Spalten */
    row-gap: 2rem !important; /* Vertikaler Abstand zwischen Zeilen */
    align-items: stretch !important; /* Gleiche Höhe für alle Items */
    width: 100% !important;
    padding: 0 1rem !important;
    margin-top: 2rem !important;
    box-sizing: border-box !important;
}

.project-modal-flexible-item {
    position: relative;
    overflow: hidden;
    border: none;
    background: #f5f5f5;
    display: block; /* Geändert von flex zu block */
    width: 100%; /* Volle Breite des Grid-Items */
    box-sizing: border-box; /* Padding und Border inbegriffen */
    /* Keine festen Höhen oder aspect-ratios - komplett natürlich */
}

/* Vollbild Layout - natürliche Proportionen */
.project-modal-module-layout-1-1 .project-modal-flexible-item {
    width: 100%;
}

/* Drei-Spalten Layout - natürliche Proportionen */
.project-modal-module-layout-1-3-1-3-1-3 .project-modal-flexible-item {
    width: 100%;
}

/* Spezifische Layouts - natürliche Proportionen */
/* Alle Layouts verwenden natürliche Bildproportionen - keine spezifischen Regeln nötig */

.project-modal-flexible-item img {
    width: 100%;
    height: auto; /* Automatische Höhe für natürliche Proportionen */
    object-fit: none; /* Kein object-fit - natürliche Bilddarstellung */
    display: block;
    max-width: 100%; /* Begrenzt die Breite auf Container */
}

/* Mobile: Alle Layouts werden einspurig */
@media (max-width: 600px) {
    .project-modal-flexible-module {
        margin-top: 2rem !important; /* Gleicher Abstand wie zu den Rändern */
        margin-left: 0 !important; /* Kein negativer Margin */
        margin-right: 0 !important; /* Kein negativer Margin */
        padding: 0 2rem !important; /* Gleicher Padding wie Modal-Seitenabstand */
    }
    
    /* Erstes Modul hat keinen oberen Abstand auf Mobile */
    .project-modal-flexible-module:first-of-type {
        margin-top: 0 !important;
    }
    
    /* ULTIMATIVE MOBILE GRID OVERRIDE - ALLE Layout-Klassen werden überschrieben */
    .project-modal-body .project-modal-flexible-module,
    .project-modal-body .project-modal-flexible-module[class*="project-modal-module-layout"],
    .project-modal-body .project-modal-flexible-module.project-modal-module-layout-1-1,
    .project-modal-body .project-modal-flexible-module.project-modal-module-layout-1-2-1-2,
    .project-modal-body .project-modal-flexible-module.project-modal-module-layout-1-3-2-3,
    .project-modal-body .project-modal-flexible-module.project-modal-module-layout-2-3-1-3,
    .project-modal-body .project-modal-flexible-module.project-modal-module-layout-1-3-1-3-1-3,
    .project-modal-body .project-modal-flexible-module:not([class*="project-modal-module-layout"]) {
        display: block !important; /* Block statt Grid für ultimative Kontrolle */
        grid-template-columns: none !important; 
        column-gap: 0 !important; 
        row-gap: 0 !important;
        width: 100% !important;
        padding: 0 2rem !important;
        margin-top: 2rem !important;
        box-sizing: border-box !important;
    }
    
    /* Erstes Layout-Modul ohne oberen Margin */
    .project-modal-body .project-modal-flexible-module:first-of-type,
    .project-modal-body .project-modal-flexible-module:first-of-type[class*="project-modal-module-layout"],
    .project-modal-body .project-modal-flexible-module:first-of-type.project-modal-module-layout-1-1,
    .project-modal-body .project-modal-flexible-module:first-of-type.project-modal-module-layout-1-2-1-2,
    .project-modal-body .project-modal-flexible-module:first-of-type.project-modal-module-layout-1-3-2-3,
    .project-modal-body .project-modal-flexible-module:first-of-type.project-modal-module-layout-2-3-1-3,
    .project-modal-body .project-modal-flexible-module:first-of-type.project-modal-module-layout-1-3-1-3-1-3,
    .project-modal-body .project-modal-flexible-module:first-of-type:not([class*="project-modal-module-layout"]) {
        margin-top: 0 !important;
    }
    
    /* ALLE Bilder auf Mobile - als Block-Elemente untereinander mit natürlichen Proportionen */
    .project-modal-flexible-item,
    [class*="project-modal-module-layout"] .project-modal-flexible-item,
    .project-modal-module-layout-1-1 .project-modal-flexible-item,
    .project-modal-module-layout-1-2-1-2 .project-modal-flexible-item,
    .project-modal-module-layout-1-3-2-3 .project-modal-flexible-item,
    .project-modal-module-layout-2-3-1-3 .project-modal-flexible-item,
    .project-modal-module-layout-1-3-1-3-1-3 .project-modal-flexible-item {
        display: block !important; /* Block-Element für vertikale Anordnung */
        /* aspect-ratio entfernt - natürliche Bildproportionen auch auf Mobile */
        width: 100% !important; /* Alle Bilder gleich breit */
        margin-bottom: 2rem !important; /* Abstand zwischen Bildern */
        float: none !important; /* Kein Float */
        clear: both !important; /* Clear für saubere Anordnung */
        /* min-height entfernt - natürliche Höhe */
    }
    
    /* Letztes Bild ohne unteren Margin */
    .project-modal-flexible-item:last-child {
        margin-bottom: 0 !important;
    }
    
    /* Text auf Mobile kleiner machen - ULTRA-SPEZIFISCHE REGELN */
    .project-modal-overlay .project-modal-content .project-modal-body .project-modal-content-section .project-modal-text-content p,
    .project-modal-content-section .project-modal-text-content p,
    .project-modal-text-content p {
        font-family: 'Didact Gothic', sans-serif !important; /* Explizit Didact Gothic */
        font-size: 0.85rem !important; /* Noch kleinere Schrift auf Mobile */
        line-height: 1.4 !important; /* Reduzierter Zeilenabstand */
    }
    
    /* ALLE TEXT-ELEMENTE auf Mobile - Ultra-spezifisch */
    .project-modal-overlay .project-modal-content .project-modal-body .project-modal-content-section .project-modal-text-content *,
    .project-modal-content-section .project-modal-text-content *,
    .project-modal-text-content * {
        font-family: 'Didact Gothic', sans-serif !important;
    }
}

/* Responsive Modal Header */
@media (max-width: 900px) {
    .project-modal-image-header {
        height: 60vh;
        min-height: 400px;
    }
    
    .project-modal-header-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
        display: flex;
        align-items: flex-end;
        justify-content: flex-start;
        padding: 2.5rem;
    }
    
    .project-modal-title {
        font-size: 3.5rem;
    }
    
    .project-modal-category {
        font-size: 2rem;
        color: #ffffff;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    }
    
    .project-modal-gallery-container {
        padding: 2rem;
    }
    
    .project-modal-content-section {
        padding: 2rem 2.5rem; /* Angepasst an Header-Padding bei 900px */
    }
    
    /* Flexible Module auch auf Tablet bis zu den Rändern */
    .project-modal-flexible-module {
        margin-top: 1.5rem; /* Gleich wie row-gap auf Tablet */
        margin-left: -2rem; /* Angepasst an Tablet-Padding */
        margin-right: -2rem; /* Angepasst an Tablet-Padding */
        padding: 0 2rem; /* Padding für den Gap */
    }
    
    /* Erstes Modul hat keinen oberen Abstand auf Tablet */
    .project-modal-flexible-module:first-of-type {
        margin-top: 0;
    }
    
    .project-modal-body .project-modal-flexible-module.project-modal-module-layout-1-2-1-2,
    .project-modal-body .project-modal-flexible-module.project-modal-module-layout-1-3-2-3,
    .project-modal-body .project-modal-flexible-module.project-modal-module-layout-2-3-1-3,
    .project-modal-body .project-modal-flexible-module.project-modal-module-layout-1-3-1-3-1-3 {
        column-gap: 1.5rem; /* Etwas weniger horizontaler Abstand auf Tablet */
        row-gap: 1.5rem; /* Etwas weniger vertikaler Abstand auf Tablet */
    }
}

@media (max-width: 600px) {
    .project-modal-image-header {
        height: 50vh;
        min-height: 300px;
    }
    
    .project-modal-header-overlay {
        padding: 2rem;
    }
    
    .project-modal-title {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }
    
    .project-modal-category {
        font-size: 1.5rem;
        letter-spacing: 1px;
        color: #ffffff;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    }
    
    .project-modal-gallery-container {
        padding: 1.5rem;
    }
    
    .project-modal-content-section {
        padding: 1.5rem 2rem; /* Angepasst an Header-Padding bei 600px */
    }
    
    .project-modal-text-content p {
        font-size: 1rem;
        line-height: 1.6;
    }
}

.project-modal-close:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 1);
    color: #000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.project-modal-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    
    100% { transform: rotate(360deg); }
}

.project-modal-close {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #000;
    border-radius: 30px;
    font-size: 3rem;
    cursor: pointer;
    color: #000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: monospace;
    line-height: 1;
    padding: 8px 12px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99998;
    position: absolute;
    top: 20px;
    right: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transform: scale(0.8);
    opacity: 0;
}
    .project-modal-close {
        width: 35px;
        height: 35px;
        font-size: 1.3rem;
        top: 15px;
        right: 15px;
    }
}

@media (max-width: 600px) {
    .project-modal-content {
        width: 90%;
        max-height: 80vh;
        margin: 6vh 5vw 5vh 5vw; /* Mehr Abstand auch auf Mobile */
        border: none;
    }
    
    .project-modal-text-content {
        max-width: 90%; /* Auf Mobile noch breiter für bessere Lesbarkeit */
    }
    
    .project-modal-body .dynamic-gallery-grid {
        padding: 0 0.5rem 1rem 0.5rem;
    }
    
    .project-modal-close {
        width: 30px;
        height: 30px;
        font-size: 1.2rem;
        top: 10px;
        right: 10px;
    }
}

/* Floating Email Button */
.floating-email-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #fff; /* Weiß statt schwarz */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #000; /* Schwarzes Icon */
    font-size: 1.5rem;
    z-index: 9998; /* Unter Custom Cursor aber über Content */
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid #000; /* Schwarzer Rand */
}

.floating-email-btn:hover {
    background: #f5f5f5; /* Leichtes Grau beim Hover */
    color: #000;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #000; /* Schwarzer Rand bleibt */
}

.floating-email-btn i {
    font-size: 1.5rem;
    color: #000; /* Schwarzes Icon */
    transition: color 0.3s ease;
    font-weight: 100; /* Dünnere Kontur */
}

.floating-email-btn:hover i {
    color: #000; /* Bleibt schwarz beim Hover */
}

/* Responsive Design für Floating Button */
@media (max-width: 900px) {
    .floating-email-btn {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
    
    .floating-email-btn i {
        font-size: 1.3rem;
    }
}

@media (max-width: 600px) {
    .floating-email-btn {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .floating-email-btn i {
        font-size: 1.2rem;
    }
}

/* ZUSÄTZLICHE MODAL SCROLLBAR ENTFERNUNG */
/* Alle Modal-bezogenen Scrollbars komplett entfernen */
.project-modal-overlay,
.project-modal-overlay *,
.project-modal-content,
.project-modal-content *,
.project-modal-body,
.project-modal-body *,
.simple-modal,
.simple-modal *,
.modal,
.modal * {
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE 10+ */
}

.project-modal-overlay::-webkit-scrollbar,
.project-modal-overlay *::-webkit-scrollbar,
.project-modal-content::-webkit-scrollbar,
.project-modal-content *::-webkit-scrollbar,
.project-modal-body::-webkit-scrollbar,
.project-modal-body *::-webkit-scrollbar,
.simple-modal::-webkit-scrollbar,
.simple-modal *::-webkit-scrollbar,
.modal::-webkit-scrollbar,
.modal *::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
    background: transparent !important;
}

/* AGGRESSIVE SCHRIFTART-ÜBERSCHREIBUNG - AM ENDE DER CSS FÜR HÖCHSTE PRIORITÄT */
.project-modal-text-content,
.project-modal-text-content *,
.project-modal-text-content p,
.project-modal-text-content span,
.project-modal-text-content div,
.project-modal-content-section .project-modal-text-content,
.project-modal-content-section .project-modal-text-content *,
.project-modal-content-section .project-modal-text-content p {
    font-family: 'Didact Gothic', sans-serif !important;
    font-weight: normal !important;
}

/* Mobile Schriftgröße - aggressiv überschreiben */
@media (max-width: 600px) {
    .project-modal-text-content,
    .project-modal-text-content *,
    .project-modal-text-content p,
    .project-modal-content-section .project-modal-text-content,
    .project-modal-content-section .project-modal-text-content *,
    .project-modal-content-section .project-modal-text-content p {
        font-family: 'Didact Gothic', sans-serif !important;
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
    }
}