/* Basisstile für den Desktop */

* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: black;
    color: white;
    scroll-behavior: smooth;
    cursor: none;
}

header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
}

#header-logo {
    width: 550px;
    max-width: 800px;   /* maximale Größe auf großen Screens */
    height: auto;       /* Proportionen beibehalten */
    margin-top: 25px;
}

/* Für Tablets */
@media (max-width: 768px) {
    #header-logo {
        max-width: 400px;
    }
}

/* Für Smartphones */
@media (max-width: 480px) {
    #header-logo {
        max-width: 200px;
    }
}



.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    position: relative;
    margin-top: 10px; /* zusätzlicher Abstand nach oben */
}

.nav-left,
.nav-right {
    flex: 1;
}

#header-logo-container {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.nav-left {
    justify-content: flex-start;
    display: flex;
}

.nav-right {
    justify-content: flex-end;
    display: flex;
}

.nav-links ul {
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links:last-child {
    margin-right: 40px;
}

.nav-links a {
    color: gold;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s;
    position: relative;
}

.nav-links a::before, .nav-links a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: gold;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-links a::before {
    top: 0;
    left: 0;
    transform-origin: right;
}

.nav-links a::after {
    bottom: 0;
    right: 0;
    transform-origin: left;
}

.nav-links a:hover::before, .nav-links a:hover::after {
    transform: scaleX(1);
}

.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
    color: gold;
    padding: 0 20px;
}

.hero-background-image {
    position: absolute;
    top: 0;
    right: 0;
    height: 100vh;
    z-index: -1;
}

@keyframes glow {
    0% {
        text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    }
    50% {
        text-shadow: 0 0 50px rgba(255, 215, 0, 0.7);
    }
    100% {
        text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    }
}

.hero h1 {
    font-size: 3em;
    margin: 0;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5); /* Hinzugefügter Textschatten */
    animation: glow 1.5s ease-in-out infinite;
}

.hero p {
    font-size: 1.2em;
    margin: 20px 0;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.3); /* Hinzugefügter Textschatten */
    animation: glow 1.5s ease-in-out infinite;
}


.cta-button {
    background-color: gold;
    color: black;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 1.2em;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: inline-block;
    margin-top: 20px;
}

.cta-button:hover {
    background-color: darkgoldenrod;
    transform: scale(1.05);
}

main {
    position: relative;
}

@media screen and (max-width: 768px) {
    .cursor-glow {
        display: none; /* Komplett ausblenden auf mobilen Geräten */
    }
}


.cursor-glow {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: transparent;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 30px 15px rgba(255, 215, 0, 0.5);
    z-index: 3000;
}

.latest-works {
    padding: 60px 20px;
    background-color: #121212;
    color: white;
}

.section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: gold;
}

.works-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.work-item {
    background-color: #1e1e1e;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 300px;
}

.work-item img {
    width: 100%;
    height: auto;
    display: block;
}

.work-item h3 {
    margin: 15px 0 10px;
    font-size: 1.5em;
    color: gold;
    text-align: center;
}

.work-item p {
    padding: 0 15px 15px;
    font-size: 1em;
    text-align: center;
}

.work-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(255, 215, 0, 0.2);
}

footer {
    background-color: black;
    color: white;
    padding: 40px 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-section {
    margin: 20px 0;
    flex-basis: calc(33.333% - 40px);
    text-align: center; /* Zentriert den Text innerhalb der Sektion */
}

.footer-section h3 {
    margin-bottom: 15px;
    font-size: 1.5em;
    color: gold;
}

.footer-section p, .footer-section ul, .footer-section a {
    color: white;
    font-size: 1em;
    text-decoration: none;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid gold;
    margin-top: 20px;
    font-size: 0.9em;
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Erlaubt es den Buttons, auf mehrere Zeilen zu brechen */
    width: 100%; /* Erlaubt den Buttons die volle Breite einzunehmen */
    gap: 10px; /* Abstand zwischen den Buttons */
}

.social-button {
    flex: 1 1 auto;
    background-color: gold;
    border: none;
    padding: 10px 20px;
    color: black;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    width: 150px; /* Einheitliche Breite für alle Buttons */
    max-width: 100%;
    text-align: center;
}

.social-button:hover {
    background-color: darkgoldenrod;
}

.wa-button {
    display: inline-block;
    background-color: gold;
    color: black; /* Textfarbe sollte hier schwarz sein */
    padding: 15px 20px;
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none; /* Entfernt den Standardrahmen des Buttons */
    cursor: pointer; /* Zeigt an, dass es sich um einen klickbaren Button handelt */
    margin-top: 20px; /* Abstand zum Text darüber */
}

.wa-button:hover {
    background-color: darkgoldenrod;
    transform: scale(1.05); /* Leichter Vergrößerungseffekt beim Hover */
}

/* --- Burger-Button und Overlay-Menü --- */
.burger {
    display: none;
    position: absolute;
    right: 30px;
    top: 18px;
    z-index: 2101;
    background: none;
    border: none;
    color: gold;
    font-size: 2.3em;
    cursor: pointer;
    transition: color 0.2s;
}

.menu-overlay {
    display: none;
    position: fixed;
    z-index: 3002;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.97);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.menu-overlay.active {
    display: flex;
}

.menu-overlay ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.menu-overlay ul li {
    margin: 30px 0;
}

.menu-overlay ul li a {
    color: gold;
    font-size: 2em;
    text-decoration: none;
    transition: color 0.2s;
}

.menu-overlay ul li a:hover {
    color: #fffbe6;
}

.menu-overlay .close-menu-overlay {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 2.5em;
    color: gold;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 3100;
}

/* --- Responsive: Desktop vs. Mobile --- */
@media screen and (max-width: 900px) {
    .burger {
        display: block;
    }
    .nav-left,
    .nav-right,
    .nav-links {
        display: none !important;
    }
    #header-logo-container {
        position: static;
        transform: none;
        margin: 0 auto;
        top: unset;
        left: unset;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100vw;
        max-width: 100vw;
    }
    .navbar {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        width: 100vw;
        max-width: 100vw;
        min-width: 0;
        margin-top: 0;
        padding: 0 0;
        box-sizing: border-box;
        height: 70px;
        position: relative;
    }
    header {
        padding: 0;
        min-width: 0;
        width: 100vw;
        max-width: 100vw;
        height: 70px;
    }
    .burger {
        right: 16px;
        top: 20px;
    }
}

/* Optimierung für 900px bis 769px: Logo kleiner, Burger besser positioniert */
@media screen and (max-width: 900px) and (min-width: 769px) {
    .burger {
        font-size: 2em;
        top: 22px;
    }
}

/* Fix für kleine Smartphones: Header und Navbar volle Breite, kein Overflow */
@media screen and (max-width: 480px) {
    header,
    .navbar {
        width: 100vw !important;
        max-width: 100vw !important;
        min-width: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    #header-logo-container {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* Suchleiste */
.search-form {
    display: flex;
    margin-top: 20px;
    width: 100%;
    max-width: 600px;
}

.search-form input {
    flex: 1;
    padding: 10px;
    border: 1px solid gold;
    border-radius: 5px 0 0 5px;
    background-color: black;
    color: white;
    font-size: 16px;
}

/* Effekt beim Fokussieren des Input-Feldes */
.search-form input[type="text"]:focus + button,
.search-form input[type="text"]:focus ~ button {
    box-shadow: 0 0 30px 15px rgba(255, 215, 0, 0.5);
}

.search-form button {
    padding: 10px;
    border: 1px solid gold;
    border-radius: 0 5px 5px 0;
    background-color: gold;
    color: black;
    cursor: pointer;
    font-size: 16px;
}

.search-form button i {
    font-size: 18px;
}

/* Kein Ergebnis Fenster */
.noresult {
    display: none; /* Standardmäßig versteckt */
    position: fixed;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    width: 80%;
    max-width: 500px;
    text-align: center;

    background-color: rgba(0, 0, 0, 0.8); /* Dunkler Hintergrund für mehr Tiefe */
    border: 2px solid gold; /* Goldene Umrandung für mehr Eleganz */
    border-radius: 10px; /* Abgerundete Ecken für ein modernes Design */
    padding: 20px;
    color: white;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8); /* Leichter goldener Schein */
}

.noresult .close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
}

.noresult p {
    font-size: 18px;
    color: gold;
}

/* Burger-Menue */
.open-menu, .close-menu {
    color: gold;
    cursor: pointer;
    font-size: 30px;
    display: none;
}

.open-menu, .close-menu {
    margin: 20px 20px 20px 40px;
}

/* Galerie Container */
.gallery {
    padding: 50px 20px;
}

.section-title {
    color: gold;
    font-size: 2em;
    margin-bottom: 20px;
    text-align: center;
}

/* Thumbnails */
.gallery-thumbnails {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    white-space: normal;
    flex-wrap: wrap;
    justify-content: space-between;
}

.gallery-thumbnail {
    position: relative;
    display: inline-block;
    width: 150px;
    height: 150px;
    background-color: black;
    border: 2px solid gold;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-sizing: border-box;
}

.gallery-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0;
    transition: opacity 0.3s ease;
}

@media screen and (max-width: 1024px) {
    .gallery-thumbnail img {
        opacity: 1;
    }
    
    .thumbnail-overlay {
        display:none;
    }
}

.gallery-thumbnail:hover img {
    opacity: 1;
}

.thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    background: rgba(0, 0, 0, 0.6);
    transition: opacity 0.3s ease;
    opacity: 1;
}

.gallery-thumbnail:hover .thumbnail-overlay {
    opacity: 1;
}

.thumbnail-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    text-align: center;
    padding: 5px;
    font-size: 14px;
    box-sizing: border-box;
}

/* Galerie Item */
.gallery-items {
    position: relative;
    display: flex;
    justify-content: center;
}

.gallery-item {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.6); /* Kleinere anfängliche Größe */
    width: 70%; /* Flexible Breite */
    max-width: 500px; /* Optionale maximale Breite */
    height: 100vh; /* Dynamische Höhe */
    background-color: rgba(0, 0, 0, 0.9);
    border: 2px solid gold;
    border-radius: 10px;
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8); /* Verstärkter Schatten */
    transition: transform 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
}

@media screen and (max-width:768px){
    .gallery-item {
        height: 80vh;
    }
}

.gallery-item.open {
    display: flex;
    z-index: 2000;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1); /* Normale Größe */
}

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

.gallery-item-images {
    position: relative;
    width: 100%;
    height: 80%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-item-images picture {
    display: none;
}

.gallery-item-images picture.active {
    display: block;
}


.gallery-image {
    max-width: 100%; /* Verhindert, dass das Bild größer als sein Container wird */
    max-height: 100%; /* Verhindert, dass das Bild größer als sein Container wird */
    object-fit: contain; /* Bild anpassen, ohne es zuzuschneiden */
    border: 2px solid gold;
    border-radius: 10px;
}

.gallery-item.open .gallery-image {
    display: block; /* Zeigt das Bild an, wenn das Item geöffnet ist */
}

.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: gold;
    border: none;
    height: 35px;
    width: 35px;
    cursor: pointer;
    font-size: 20px; /* Angepasst, um besser in die Schaltfläche zu passen */
    line-height: 35px; /* Entspricht der Höhe des Buttons */
    text-align: center;
    border-radius: 50%;
    z-index: 100;
}

.nav-button.prev {
    left: 10px;
}

.nav-button.next {
    right: 10px;
}

/* Galerie Item Close Button */
.close {
    position: absolute;
    top: 10px; /* Positionierung vom oberen Rand */
    right: 10px; /* Positionierung vom rechten Rand */
    font-size: 36px; /* Größere Schriftgröße für den Button */
    cursor: pointer;
    color: gold;
    z-index: 1500; /* Höherer z-index, damit er über dem Bild bleibt */
    background-color: rgba(0, 0, 0, 0.6); /* Hintergrund für bessere Sichtbarkeit */
    border-radius: 50%; /* Runde Form */
    padding: 15px; /* Innenabstand erhöht für bessere Klickfläche */
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.8); /* Schatten für bessere Sichtbarkeit */
    transition: background-color 0.3s, transform 0.3s; /* Übergänge für Hintergrundfarbe und Transformation */
    text-align: center; /* Text zentrieren */
    line-height: 1; /* Zeilenhöhe für zentrierte Position */
    width: 15px; /* Feste Breite für den Button */
    height: 15px; /* Feste Höhe für den Button */
    display: flex; /* Flexbox für zentrierten Inhalt */
    justify-content: center; /* Zentriert den Inhalt horizontal */
    align-items: center; /* Zentriert den Inhalt vertikal */
}

.close:hover {
    background-color: rgba(0, 0, 0, 0.8); /* Dunklerer Hintergrund bei Hover */
    transform: scale(1.1); /* Vergrößert den Button leicht beim Hover */
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.gallery-item.open {
    animation: fadeIn 0.3s ease-in-out;
}

@media screen and (max-width: 768px) {
    .nav-links ul {
        flex-direction: column;
        position: fixed;
        top: 70px;
        left: 0;
        display: none;
        background-color: rgba(0, 0, 0, 0.9);
        width: 100%;
        height: 100vh;
        justify-content: center;
        align-items: center;
        transition: left 0.3s ease;
    }

    .nav-links ul li {
        margin-top: 40px;
    }

    .open-menu {
        display: flex;
    }
}
/* Media Queries */

/* Tablets und kleine Laptops im Querformat (min-width: 768px und max-width: 1024px) */
@media screen and (max-width: 1024px) {
    .navbar .logo img {
        height: 100px;
    }

    .hero h1 {
        font-size: 2.5em;
    }

    .cta-button {
        font-size: 1em;
        padding: 8px 16px;
    }

    .works-container {
        flex-direction: column;
        align-items: center;
    }

    .work-item {
        max-width: 90%;
    }

}

@media screen and (max-width:768px) {
    .art-title {
        font-size: 12px;
    }   
}

/* Smartphones und Tablets im Hochformat (max-width: 768px) */
@media screen and (max-width: 768px) {

    .navbar .logo img {
        height: 80px;
    }

    .hero h1 {
        font-size: 2em;
    }

    .hero p {
        font-size: 1em;
    }

    .cta-button {
        font-size: 0.9em;
        padding: 8px 16px;
    }

    .work-item {
        max-width: 90%;
    }

    .social-links {
        justify-content: center; /* Zentriert die Buttons auch auf kleineren Bildschirmen */
        gap: 5px; /* Reduziert den Abstand auf mobilen Geräten */
    }

    .social-button {
        flex: 0 1 100%; /* Nimmt die volle Breite des Containers ein, um zentriert zu bleiben */
        max-width: 300px; /* Optional: maximale Breite für die Buttons */
        margin: 5px auto;  /* Zentriert die Buttons durch automatischen linken und rechten Rand */
    }

    .wa-button {
        font-size: 12px;
    }
}

/* Kleine Smartphones (max-width: 480px) */
@media screen and (max-width: 480px) {

    .navbar .logo img {
        height: 60px;
    }

    .hero h1 {
        font-size: 1.8em;
    }

    .hero p {
        font-size: 0.9em;
    }

    .cta-button {
        font-size: 0.8em;
        padding: 6px 12px;
    }

    .work-item {
        max-width: 95%;
    }

    .open-menu, .close-menu {
        font-size: 20px;
    }
}

#header-logo-container img {
    max-width: 200px; /* Maximale Breite des Logos */
    height: auto; /* Proportionen beibehalten */
    display: block;
}

@media screen and (max-width: 768px) {
    #header-logo-container img {
        max-width: 150px; /* Kleinere Breite für Tablets und Smartphones */
    }
}

@media screen and (max-width: 480px) {
    #header-logo-container img {
        max-width: 120px; /* Noch kleinere Breite für kleine Smartphones */
    }
}