/* ==========================================================================
   1. GLOBAL RESET & WHITE CUBE CONTAINER
   ========================================================================== */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    background-color: #ffffff; /* Reinweißer Galerie-Raum */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: #000000;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

#header ul, #header li,
.breadcrumb-navigation ul, .breadcrumb-navigation li {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* ==========================================================================
   2. HEADER & NAVIGATIONEN (ANTI-HAMBURGER-KONZEPT)
   ========================================================================== */
#header {
    width: 100%;
    display: block;
    border-bottom: 1px solid #eeeeee;
    padding-top: 30px;
    padding-bottom: 25px;
    padding-left: clamp(20px, 4vw, 50px);
    padding-right: clamp(20px, 4vw, 50px);
}

/* REPARATUR: Verhindert, dass Contao-Modul-Wrapper das Logo unsichtbar machen */
#header .mod_html,
#header .mod_global,
#header .custom-html {
    display: block;
    width: 100%;
}

#logo-anchor {
    display: block;
    text-align: left;
    margin-left: 0;
    padding-left: 0;
    margin-bottom: 25px;
}

#logo {
    display: block;
    max-width: 100%;
    height: auto;
    width: 240px; /* Synchronisiert mit der HTML-Breitenvorgabe von 240px */
}

/* Hauptnavigation: Text bleibt immer sichtbar, wird mobil kompakt */
.main-navigation ul {
    display: flex;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: clamp(15px, 3vw, 30px);
    padding: 0;
    padding-left: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Versteckt Scrollbalken in Firefox */
}

.main-navigation ul::-webkit-scrollbar {
    display: none; /* Versteckt Scrollbalken in Safari und Chrome */
}

.main-navigation a, .main-navigation strong {
    font-size: clamp(15px, 1.5vw, 18px);
    letter-spacing: 1px;
    text-transform: lowercase;
    text-decoration: none;
    color: #555555;
    font-weight: 300;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.main-navigation a:hover { color: #000000; }
.main-navigation strong.active { color: #000000; font-weight: bold; }

/* BREADCRUMB-NAVIGATION (ZENTRIERTE ORIENTIERUNG) */
.breadcrumb-navigation {
    width: 100%;
    max-width: 1400px;
    margin: 30px auto 0 auto;
    padding: 0 clamp(20px, 4vw, 50px);
    box-sizing: border-box;
}

.breadcrumb-navigation ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 0;
}

.breadcrumb-navigation a, .breadcrumb-navigation li {
    font-size: clamp(13px, 1.2vw, 16px);
    text-transform: lowercase;
    text-decoration: none;
    color: #666666;
}

/* ==========================================================================
   3. RESPONSIVE THUMB-ZEILE (DESKTOP GRAB-SWIPER & MOBIL-STRIP)
   ========================================================================== */
#surrealnavi, #surrealnavi.utility-strip {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center; /* Perfekte Zentrierung auf PCs und Tablets im Querformat */
    align-items: center;
    gap: clamp(12px, 1.8vw, 24px);
    margin: 40px auto 60px auto;
    width: 100%;
    max-width: 1400px;
    padding: 0 clamp(20px, 4vw, 50px) 40px clamp(20px, 4vw, 50px);
    box-sizing: border-box;
    border-bottom: 1px solid #f5f5f5;

    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: none;
    scrollbar-width: none;

    cursor: grab !important;
    scroll-behavior: auto;
    touch-action: pan-x !important;
}

#surrealnavi::-webkit-scrollbar,
#surrealnavi.utility-strip::-webkit-scrollbar {
    display: none;
}

#surrealnavi.grabbing,
#surrealnavi.grabbing a,
#surrealnavi.grabbing img {
    cursor: grabbing !important;
}

#surrealnavi a, #surrealnavi.utility-strip a {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 1 clamp(65px, 7vw, 120px);
    aspect-ratio: 1 / 1;
    text-decoration: none;
    line-height: 0;
    background-color: #fafafa;
    transition: background-color 0.35s ease;
    scroll-snap-align: start;

    cursor: grab !important;
    user-select: none !important;
    -webkit-user-drag: none !important;
}

#surrealnavi.grabbing a {
    pointer-events: none;
}

#surrealnavi.utility-strip img {
    border: none;
    max-width: 75%;
    max-height: 75%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
    filter: grayscale(20%) brightness(97%);

    cursor: grab !important;
    pointer-events: none;
    user-select: none !important;
    -webkit-user-drag: none !important;
}

@media (hover: hover) {
    #surrealnavi a:hover { background-color: #f3f3f3; }
    #surrealnavi a:hover img { transform: scale(1.1); filter: grayscale(0%) brightness(100%); }
}

#surrealnavi p { display: none; }

/* ==========================================================================
   4. DIE KUNST-TEXTE & IMMERSIVE BILD-KASKADE (FLUID & MOBIL-STARK)
   ========================================================================== */
#main {
    width: 100%;
    padding: 0;
    margin: 0;
}

.art-zone-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: clamp(40px, 8vw, 80px);
}

.mod_article {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.art-zone-container .content-text,
.art-zone-container .content-text p,
.art-zone-container .content-text h1,
.art-zone-container .content-text h2,
.art-zone-container .content-text h3,
.art-zone-container .content-text h4 {
    width: 100%;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.artist-name {
    font-size: clamp(16px, 1.8vw, 20px);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 4px;
}

.art-main-brand {
    font-size: clamp(28px, 4.5vw, 54px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: clamp(1.5px, 0.3vw, 3px);
    display: block;
    margin-bottom: 6px;
    line-height: 1.1;
}

.art-disciplines {
    font-size: clamp(14px, 1.4vw, 16px);
    font-style: italic;
    color: #666666;
    letter-spacing: 1px;
    display: block;
    margin-bottom: clamp(35px, 5vw, 50px);
}

.art-werkstitel {
    font-size: clamp(22px, 3.2vw, 38px);
    font-weight: 400;
    display: block;
    margin-bottom: 10px;
}

.art-werk-specs {
    font-size: clamp(14px, 1.4vw, 16px);
    color: #333333;
    display: block;
    margin-bottom: 4px;
}

.art-unikat {
    font-size: clamp(13px, 1.3vw, 15px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 6px;
}

.art-material {
    font-size: clamp(15px, 1.6vw, 18px);
    font-weight: 300;
    color: #444444;
    display: block;
    margin-bottom: clamp(40px, 6vw, 60px);
}

.mod_article img,
.ce_image img,
.art-zone-container picture img,
.art-zone-container figure img {
    display: block;
    width: 100%;
    max-width: 1000px;
    height: auto;
    object-fit: contain;
    background-color: #ffffff;
    margin: 0 auto;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.02);
}

/* ==========================================================================
   5. FOOTER
   ========================================================================== */
#footer {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto 0 auto;
    padding: 30px 20px;
    box-sizing: border-box;
    text-align: center;
    font-size: 13px;
    color: #999999;
    border-top: 1px solid #eeeeee;
}

/* ==========================================================================
   6. SMARTPHONE-BREAKPOINT (FLUIDER ÜBERGANG)
   ========================================================================== */
@media (max-width: 767px) {
    #header {
        text-align: center;
        padding-top: 20px;
        padding-bottom: 20px;
    }
    #logo-anchor {
        text-align: center;
        margin-bottom: 15px;
    }
    .main-navigation ul {
        justify-content: center;
        padding-left: 0;
    }

    #surrealnavi, #surrealnavi.utility-strip {
        margin-top: 25px;
        margin-bottom: 35px;
        padding: 0 20px 20px 20px;
        gap: 12px;
        justify-content: flex-start;
        scroll-snap-type: x mandatory;
    }

    #surrealnavi a, #surrealnavi.utility-strip a {
        flex: 0 0 75px;
        width: 75px;
        height: 75px;
    }
}
