/* Info Screen Basis-Styling */
#info-screen-container {
    position: relative;
    background-color: #000;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#info-screen-content {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

/* Loading-Animation */
.info-screen-loading {
    color: #fff;
    font-size: 18px;
    text-align: center;
    padding: 20px;
}

.info-screen-loading::after {
    content: '...';
    animation: loading-dots 1.5s infinite;
}

@keyframes loading-dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

/* Fehler-Styling */
.info-screen-error {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    padding: 20px;
    border-radius: 4px;
    text-align: center;
    font-size: 16px;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

/* Bild-Container */
.info-screen-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.info-screen-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

/* Navigation */
.info-screen-nav {
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 10px;
    border-radius: 20px;
    color: white;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-screen-nav button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s;
}

.info-screen-nav button:hover {
    background: rgba(255, 255, 255, 0.3);
}

#info-screen-counter {
    font-size: 12px;
    color: #ccc;
    min-width: 40px;
    text-align: center;
}

/* Vollbild-Button */
#info-screen-fullscreen {
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
}

#info-screen-fullscreen:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* Iframe-Styling */
#info-screen-content iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .info-screen-nav {
        font-size: 12px;
        padding: 4px 8px;
    }
    
    .info-screen-nav button {
        padding: 3px 6px;
        font-size: 11px;
    }
    
    #info-screen-fullscreen {
        padding: 6px;
        font-size: 14px;
    }
}

/* Vollbild-Modus */
#info-screen-container:-webkit-full-screen {
    width: 100vw !important;
    height: 100vh !important;
}

#info-screen-container:-moz-full-screen {
    width: 100vw !important;
    height: 100vh !important;
}

#info-screen-container:fullscreen {
    width: 100vw !important;
    height: 100vh !important;
}

/* Fade-Effekte */
.info-screen-fade-in {
    animation: fadeIn 0.3s ease-in;
}

.info-screen-fade-out {
    animation: fadeOut 0.3s ease-out;
}

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

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* PDF-spezifische Anpassungen */
#info-screen-content iframe[type="application/pdf"] {
    background: #525659;
}

/* Hover-Effekte für interaktive Elemente */
#info-screen-container:hover .info-screen-nav,
#info-screen-container:hover #info-screen-fullscreen {
    opacity: 1;
    transition: opacity 0.3s;
}

.info-screen-nav,
#info-screen-fullscreen {
    opacity: 0.7;
    transition: opacity 0.3s;
}

/* Print-Styling ausblenden */
@media print {
    #info-screen-container {
        display: none;
    }
}