/**
 * 🔮 Glass Morphism Effects
 * Wiederverwendbare Glas-Effekte für das gesamte Projekt
 */

/* ═══════════════════════════════════════════════════════════
   IMAGE GLASS (image-glas.html.twig)
   ═══════════════════════════════════════════════════════════ */

.glass-layer-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.inner-depth-shadow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.8), 
                inset 0 0 10px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.glass-wrapped-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.67;
    display: block;
    transition: opacity 0.3s ease;
}

.top-reflection-sheen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(
        135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.02) 50%, 
        transparent 100%
    );
    z-index: 4;
    pointer-events: none;
}

.glass-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.1);
    font-weight: bold;
    letter-spacing: 2px;
}

/* ═══════════════════════════════════════════════════════════
   MODAL GLASS (milch-glas.html.twig)
   ═══════════════════════════════════════════════════════════ */

.glass-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    display: grid;
    place-items: center;
}

.glass-content-box {
    position: relative;
    z-index: 100;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    min-width: 350px;
    max-width: 90vw;
    display: flex;
    flex-direction: column;
}

.glass-body {
    position: relative;
    z-index: 50;
    pointer-events: auto;
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 5px;
    color: #fff;
}

.glass-body::-webkit-scrollbar {
    width: 6px;
}

.glass-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}