/* Container */
.smart-slides-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    background: #e0e0e0;
    /* Aspect Ratio wird inline gesetzt */
}

.smart-slides-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
}

.smart-slide {
    min-width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    line-height: 0;
    font-size: 0; 
}

.smart-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block; 
    opacity: 0;
    transition: opacity 0.5s;
}

.smart-slide img.loaded {
    opacity: 1 !important;
}

/* --- STATISCHES OVERLAY (Verbessert für Gutenberg) --- */
.smart-static-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    z-index: 50; 
    pointer-events: none; /* Lässt Klicks durch leere Bereiche durch */
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Der innere Container für den Text/Buttons */
.smart-static-layer .smart-static-content-inner {
    pointer-events: auto; /* WICHTIG: Macht Buttons klickbar */
    max-width: 90%;
    padding: 20px;
}

/* Reset für Texte im Overlay */
.smart-static-layer .smart-static-content-inner p,
.smart-static-layer .smart-static-content-inner h1,
.smart-static-layer .smart-static-content-inner h2,
.smart-static-layer .smart-static-content-inner h3 {
    line-height: 1.5;
    margin-bottom: 15px;
    color: #fff; /* Standardmäßig weiß, weil meist auf Bildern */
    text-shadow: 0 2px 5px rgba(0,0,0,0.5); /* Lesbarkeit erhöhen */
}

/* Gutenberg Buttons Support */
.smart-static-layer .wp-block-button__link {
    pointer-events: auto;
}

/* Navigation */
.smart-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 24px;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 60;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.smart-slides-container:hover .smart-nav {
    opacity: 1;
}

.prev { left: 10px; }
.next { right: 10px; }

/* Folien Overlays */
.type-overlay .smart-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 4px;
    max-width: 60%;
    z-index: 5;
    line-height: 1.5;
    font-size: 16px;
}

.type-content {
    background: #333;
    color: #fff;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    line-height: 1.5;
    font-size: 16px;
}