/* Responsive Layout */
.sdj-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.sdj-introduction {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #0073aa;
}

.sdj-year-navigation {
    margin: 30px 0;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
}

.sdj-year-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sdj-year-link {
    padding: 8px 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.sdj-year-link:hover {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

/* Jahr-Sektion */
.sdj-year-section {
    margin-bottom: 60px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
}

.sdj-year-title {
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
    margin-bottom: 30px;
    color: #0073aa;
}

/* Gewinner und Nominierte - Desktop Layout */
.sdj-winner-nominated-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.sdj-winner-section,
.sdj-nominated-section {
    flex: 1;
    min-width: 300px;
}

/* Spiel Eintrag */
.sdj-game-entry {
    display: flex;
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 6px;
    background: #f9f9f9;
    transition: all 0.3s ease;
}

.sdj-game-entry:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: #0073aa;
}

.sdj-game-image {
    flex-shrink: 0;
    margin-right: 20px;
}

.sdj-game-image img {
    width: 100px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.sdj-game-image.award img {
    width: 100px;
    height: 154px;
    object-fit: contain;
}

.sdj-game-details {
    flex-grow: 1;
}

.sdj-game-details p {
    margin: 5px 0;
}

.sdj-review-link {
    margin-top: 10px;
    display: inline-block;
    color: #0073aa;
    text-decoration: none;
    padding: 5px 10px;
    background: #f0f7ff;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.sdj-review-link:hover {
    text-decoration: underline;
    background: #e1f0ff;
}

/* Empfehlungen und Sonderpreise */
.sdj-recommended-section,
.sdj-special-section {
    width: 100%;
    margin-top: 30px;
}

.sdj-special-award {
    font-style: italic;
    color: #666;
    font-size: 0.9em;
    margin-bottom: 5px;
}

/* Verbesserte Barrierefreiheit für Links */
.sdj-game-title-link,
.sdj-publisher-link,
.sdj-author-link,
.sdj-review-link {
    color: #0073aa;
    text-decoration: none;
    position: relative;
}

.sdj-game-title-link:hover,
.sdj-publisher-link:hover,
.sdj-author-link:hover,
.sdj-review-link:hover {
    text-decoration: underline;
    color: #005177;
}

/* Tooltip-ähnliche Effekte für Links mit title-Tags */
.sdj-game-title-link:hover::after,
.sdj-publisher-link:hover::after,
.sdj-author-link:hover::after,
.sdj-review-link:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.sdj-game-title-link:hover::after,
.sdj-publisher-link:hover::after,
.sdj-author-link:hover::after {
    opacity: 1;
}

/* Verbesserte Tab-Navigation für Barrierefreiheit */
.sdj-game-title-link:focus,
.sdj-publisher-link:focus,
.sdj-author-link:focus,
.sdj-review-link:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
    text-decoration: underline;
}

/* Autor-Container für bessere Struktur */
.sdj-author-container {
    margin-bottom: 10px;
}

.sdj-missing-data {
    color: #999;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sdj-winner-nominated-container {
        flex-direction: column;
    }
    
    .sdj-game-entry {
        flex-direction: column;
    }
    
    .sdj-game-image {
        margin-right: 0;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .sdj-game-image img {
        width: 80px;
        height: 64px;
    }
    
    .sdj-game-image.award img {
        width: 80px;
        height: 123px;
    }
    
    .sdj-year-links {
        justify-content: center;
    }
    
    /* Tooltips auf mobilen Geräten ausblenden */
    .sdj-game-title-link:hover::after,
    .sdj-publisher-link:hover::after,
    .sdj-author-link:hover::after,
    .sdj-review-link:hover::after {
        display: none;
    }
    
    .sdj-review-link {
        display: inline-block;
        margin-top: 10px;
        padding: 8px 15px;
        background: #0073aa;
        color: white;
        border-radius: 4px;
        text-align: center;
        width: 100%;
        text-align: center;
    }
    
    .sdj-review-link:hover {
        background: #005177;
        text-decoration: none;
    }
}

@media (max-width: 480px) {
    .sdj-container {
        padding: 10px;
    }
    
    .sdj-year-section {
        padding: 15px;
    }
    
    .sdj-year-link {
        padding: 6px 12px;
        font-size: 0.9em;
    }
    
    .sdj-game-details p {
        font-size: 0.9em;
    }
}