
/* Tabs für GameModal: Messe Txt / BGG Desc / Review */
.tabs-content {
    background: #dedcde;
    padding: 5px;
    border-radius: 3px;
  }
  
.description-tabs .tabs-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.description-tabs .tab-btn {
    padding: 6px 10px;
    border: 1px solid #ccc;
    background: var(--coral-gray);
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease; /* Sanfte Transition nur für Hintergrundfarbe */
}

.description-tabs .tab-btn.active {
    background: var(--coral-gray);
    border-color: #999;
    font-weight: 600;
}


.description-tabs .tab-pane {
    display: none; /* Sichtbarkeit wird per Inline-Style und JS gesteuert */
}
/* Explizit Hover-Effekte für Tabs deaktivieren */
.description-tabs .tab-btn:hover,
.description-tabs .tab-btn:focus,
.description-tabs .tab-btn:active {
    transform: none !important;
    box-shadow: none !important;
}

/* Gewünschter Hover-Hintergrund ohne Translate/Scale */
.description-tabs .tab-btn:hover {
    background: #605561;
}
/* ===== GAME-SPECIFIC COMPONENTS ===== */

/* ===== GAME CARDS ===== */
.game-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: var(--radius-lg);
    padding: 1.2rem;
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--milka-blue);
}

.game-title-container {
    background: linear-gradient(135deg, var(--milka-blue) 0%, var(--milka-blue-purple) 100%);
    color: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    position: relative;
    overflow: hidden;
}

.game-title-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.game-title {
    font-size: 1.5rem; /* Basis-Schriftgröße */
    font-weight: 700;
    margin: 0;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    line-height: 1.2; /* Kompaktere Zeilenhöhe für bessere Platzausnutzung */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Dynamische Schriftgröße für verschiedene Titel-Längen */
.game-title.dynamic-size {
    font-size: 1.5rem; /* Standard-Größe */
}

.game-title.dynamic-size.small {
    font-size: 1.3rem;
}

.game-title.dynamic-size.medium {
    font-size: 1.4rem;
}

.game-title.dynamic-size.large {
    font-size: 1.5rem;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .game-title {
        font-size: 1.2rem;
    }
    
    .game-title.dynamic-size.small {
        font-size: 1.1rem;
    }
    
    .game-title.dynamic-size.medium {
        font-size: 1.15rem;
    }
    
    .game-title.dynamic-size.large {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .game-title {
        font-size: 1.1rem;
    }
    
    .game-title.dynamic-size.small {
        font-size: 1.0rem;
    }
    
    .game-title.dynamic-size.medium {
        font-size: 1.05rem;
    }
    
    .game-title.dynamic-size.large {
        font-size: 1.1rem;
    }
}

.game-year {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: var(--spacing-xs);
    position: relative;
    z-index: 1;
}

.game-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
}

.game-publisher {
    color: var(--milka-blue);
    font-weight: 500;
}

.game-language {
    display: inline-block;
    background: #e8f4f8;
    color: #2c5282;
    padding: 2px 8px;
    border-radius: var(--radius-lg);
    font-size: 0.8rem;
    margin-top: var(--spacing-sm);
}

/* ===== GAME META GRID ===== */
.game-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 0.6rem;
    background: #f8f9fa;
    border-radius: var(--radius-md);
    border-left: 3px solid var(--milka-blue);
    transition: all var(--transition-fast);
}

.meta-item:hover {
    background: #e9ecef;
    transform: scale(1.02);
}

.meta-item.players-combined {
    grid-column: span 2;
    justify-content: space-between;
    padding: 0.8rem 1rem;
}

.meta-item.players-combined .meta-value {
    margin-right: var(--spacing-md);
}

.meta-item.players-combined i:last-of-type {
    margin-left: auto;
}

.meta-item i {
    color: var(--milka-blue);
    width: 16px;
    text-align: center;
    font-size: 0.9rem;
}

.meta-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: #495057;
}

/* ===== GAME CATEGORIES ===== */
.game-categories {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.85rem;
    color: #6c757d;
    padding: var(--spacing-sm);
    background: #e9ecef;
    border-radius: 6px;
    border-left: 3px solid var(--success-green);
}

.game-categories i {
    color: var(--success-green);
    font-size: 0.8rem;
}

/* ===== GAME MODAL ===== */
.game-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}

.game-modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 20px;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-xl);
}

.game-header {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.game-title-section {
    flex: 1; /* Nimmt verfügbaren Platz ein */
    min-width: 0; /* Ermöglicht Textumbruch */
    margin: 0 10px;

}

.game-header h2 {
    margin: 0;
}

.game-header h2 a {
    color: #333;
    text-decoration: none;
    transition: color var(--transition-normal);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.game-header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-shrink: 0; /* Verhindert Schrumpfen */
}

.game-header h2 a:hover {
    color: var(--milka-blue);
}

.game-thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 2px solid #eee;
    flex-shrink: 0;
}

.game-aka {
    font-size: 0.9em;
    color: #666;
    font-style: italic;
    /* margin-top: var(--spacing-sm); */
}

/* ===== GAME DETAIL INFO ===== */
.game-detail-info {
    margin-top: var(--spacing-sm);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.detail-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    align-items: center;
}

.detail-element {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 0.15rem 0.2rem;
    background: transparent;
    border-radius: var(--radius-sm);
    border-left: none;
    transition: all var(--transition-fast);
    font-size: 0.9rem;
    /* flex-shrink: 0; */
    position: relative;
}

/* .detail-element:hover {
    background: transparent;
    transform: scale(1.01);
} */

.detail-element strong {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: inherit;
    font-weight: 500;
    color: #495057;
    margin: 0;
    padding: 0;
}

.detail-element i {
    color: var(--milka-blue) !important;
    width: 12px;
    text-align: center;
    font-size: 0.8rem;
    flex-shrink: 0;
    margin: 0;
    margin-right: 5px;
}

/* ===== SECURITY BAR STYLES ===== */
.security-bar-background {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--milka-blue);
    opacity: 0.2;
    border-radius: 1px;
    z-index: 0;
}

.security-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--milka-blue);
    opacity: 0.6;
    border-radius: 1px;
    transition: width var(--transition-fast);
    z-index: 1;
    margin-top: 17px;
}

.detail-element {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 0.15rem 0.2rem;
    background: transparent;
    border-radius: var(--radius-sm);
    border-left: none;
    /* transition: all var(--transition-fast); */
    font-size: 0.9rem;
    /* flex-shrink: 0; */
    position: relative;
}

.detail-element strong {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
    font-size: inherit;
    font-weight: 500;
    color: #495057;
    margin: 0;
    padding: 0;
}

.detail-element-value {
    margin-left: 4px;
}

/* Spezielle Gruppen-Styles */
.detail-group.year-publisher-group {
    justify-content: flex-start;
}

.detail-group.players-time-group {
    justify-content: space-between;
}

.detail-group.rating-complexity-group {
    justify-content: space-between;
}

.detail-group.price-group {
    justify-content: flex-start;
}

/* Preis-spezifische Styles */
.detail-element.price-element {
    /* background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left-color: var(--milka-blue); */
    min-width: 250px;
}

.detail-element.price-element .current-price,
.detail-element.price-element .best-price,
.detail-element.price-element .messe-price,
.detail-element.price-element .messe-app-price {
    display: flex;
    align-items: center;
    gap: 3px;
}

.detail-element.price-element .separator {
    color: #666;
    font-weight: bold;
    margin: 0 0.3rem;
}

.detail-element.price-element a {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
    transition: opacity var(--transition-fast);
}

.detail-element.price-element .messe-price,
.detail-element.price-element .messe-app-price {
    color: inherit;
    font-weight: 500;
}

.detail-element.price-element .messe-price img,
.detail-element.price-element .messe-app-price img {
    border-radius: 2px;
}

.detail-element.price-element a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* Beschreibung nimmt die volle Breite ein */
.detail-element.description-element {
    grid-column: 1 / -1;
    background: #f9f9f9;
    border-left-color: #17a2b8;
    padding: 0.3rem;
    align-items: flex-start;
    width: 100%;
}

.detail-element.description-element strong {
    align-items: flex-start;
    margin-bottom: 0.2rem;
}

.game-description {
    padding: 0.2rem;
    /* background: #f0f0f0; */
    border-radius: 3px;
    font-size: 0.8rem;
    line-height: 1.2;
    margin-top: 0.2rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    /* white-space: pre-line; Erhält Zeilenumbrüche und Einrückungen */
}
.game-description p{
    margin-bottom: 5px;
}

.game-description ul{
    margin-left: 25px;
    margin-bottom: 5px;
}

/* .game-description button{
    white-space: none;
} */
/* ===== USER NOTES STYLING ===== */
.user_notes {
    background-color: var(--blue-gray);
    color: var(--baby-blue);
    padding: 2px 4px;
    border-radius: 3px;
}

.user_notes.external-link {
    color: var(--baby-blue);
    text-decoration: none;
  }
  

/* ===== EXTERNAL LINKS STYLING ===== */
/* .external-link {
    color: var(--milka-blue);
    text-decoration: underline;
    transition: color 0.2s ease;
} */

.external-link:hover {
    color: var(--baby-blue);
    text-decoration: none;
}

.external-link i {
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.external-link:hover i {
    opacity: 1;
}

/* ===== MESSE GAME LINK STYLING ===== */
.messe-game-link {
    cursor: pointer;
    text-decoration: none;
    color: var(--milka-blue);
    transition: color var(--transition-normal);
}

.messe-game-link:hover {
    color: var(--dark-blue);
    text-decoration: underline;
}

.messe-game-link small {
    color: inherit;
    opacity: 0.8;
}

/* ===== BGG RATING CONTAINER ===== */
.bgg-rating-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0; /* Verhindert Schrumpfen */
}

/* ===== BGG RATING HEXAGON ===== */
.bgg-rating-hexagon {
    position: relative;
    min-width: 26px;
    height: 32px;
    background-color: var(--milka-blue);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Security-Bar für BGG-Rating Container - Höchste Spezifität */
.bgg-rating-container .security-bar-background {
    position: absolute !important;
    bottom: -4px !important; /* Unterhalb des Hexagons */
    left: 5% !important;
    /* transform: translateX(-50%) !important; */
    width: 26px !important; /* Feste Breite für Background-Bar */
    height: 3px !important; /* Dicker für bessere Sichtbarkeit */
    background: var(--milka-blue) !important;
    opacity: 0.3 !important;
    border-radius: 2px !important;
    z-index: 10 !important; /* Höher als das Hexagon */
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    font-size: 0 !important;
    color: transparent !important;
    user-select: none !important;
    box-sizing: border-box !important;
}

/* Höchste Spezifität für Security-Bar - überschreibt alle anderen Regeln */
.bgg-rating-container .security-bar.security-bar-dynamic {
    position: absolute !important;
    bottom: -4px !important; /* Unterhalb des Hexagons */
    left: 5% !important;
    /* transform: translateX(-50%) !important; */
    max-width: 26px !important; /* Begrenzt auf Background-Breite */
    height: 3px !important; /* Dicker für bessere Sichtbarkeit */
    background: var(--milka-blue) !important;
    opacity: 0.8 !important; /* Höhere Opacity für bessere Sichtbarkeit */
    border-radius: 2px !important;
    transition: width var(--transition-fast) !important;
    z-index: 11 !important; /* Höher als Background-Bar */
    min-width: 2px !important; /* Mindestbreite für sehr niedrige Werte */
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    font-size: 0 !important;
    color: transparent !important;
    user-select: none !important;
    box-sizing: border-box !important;
    /* KEIN width: !important - dynamische Breite wird durch inline style gesetzt */
}

.bgg-rating-number {
    color: var(--white);
    font-size: 12px;
    line-height: 1;
}

/* Wishlist Button Container */
.wishlist-button-container {
    flex-shrink: 0; /* Verhindert Schrumpfen */
}

.bgg-rating-number {
    color: var(--white);
    font-size: 12px;
    line-height: 1;
}

/* Responsive Anpassungen für das Hexagon */
@media (max-width: 768px) {
    .game-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .game-title-section {
        position: relative;
        margin: 0;
    }
    
    .game-header-actions {
        align-self: flex-end;
        margin-top: var(--spacing-sm);
    }
    
    .bgg-rating-hexagon {
        height: 28px;
    }
    
    .bgg-rating-container .security-bar-background {
        height: 2px !important; /* Angepasste Höhe für mobile Geräte */
        bottom: -3px !important; /* Angepasste Position für mobile Geräte */
        width: 24px !important; /* Angepasste Breite für mobile Geräte */
    }
    
    .bgg-rating-container .security-bar.security-bar-dynamic {
        height: 2px !important; /* Angepasste Höhe für mobile Geräte */
        bottom: -3px !important; /* Angepasste Position für mobile Geräte */
        max-width: 24px !important; /* Begrenzt auf Background-Breite */
        /* KEIN width: !important - dynamische Breite wird durch inline style gesetzt */
    }
    
    .bgg-rating-number {
        font-size: 11px;
    }
    
    .game-title {
        font-size: 1.2rem;
    }
    
    .game-title.dynamic-size.small {
        font-size: 1.1rem;
    }
    
    .game-title.dynamic-size.medium {
        font-size: 1.15rem;
    }
    
    .game-title.dynamic-size.large {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .game-header-actions {
        gap: var(--spacing-xs);
    }
    
    .game-title-section {
        position: absolute;
        left: 10px;
        max-width: 240px;
    }
    
    /* NEU: game-aka kann über die game-title-section hinausragen */
    .game-aka {
        position: absolute !important;
        left: 0 !important;
        right: 10px !important; /* Abstand zum rechten Rand */
        max-width: none !important;
        width: calc(100% - 20px) !important; /* Volle Breite minus Abstände */
        margin-top: 2px !important; /* Kleiner Abstand zum Titel */
        z-index: 1 !important;
        /* Begrenze die Höhe und behandle Überlauf für lange Texte */
        height: 20px !important;
        line-height: 20px !important;
        overflow: hidden !important;
        white-space: nowrap !important;
        text-overflow: ellipsis !important;
    }
    
    .bgg-rating-hexagon {
        height: 26px;
    }
    
    .bgg-rating-container .security-bar-background {
        height: 2px !important; /* Angepasste Höhe für sehr kleine Geräte */
        bottom: -3px !important; /* Angepasste Position für sehr kleine Geräte */
        width: 22px !important; /* Angepasste Breite für sehr kleine Geräte */
    }
    
    .bgg-rating-container .security-bar.security-bar-dynamic {
        height: 2px !important; /* Angepasste Höhe für sehr kleine Geräte */
        bottom: -3px !important; /* Angepasste Position für sehr kleine Geräte */
        max-width: 22px !important; /* Begrenzt auf Background-Breite */
        /* KEIN width: !important - dynamische Breite wird durch inline style gesetzt */
    }
    
    .bgg-rating-number {
        font-size: 10px;
    }
    
    .game-title {
        font-size: 1.1rem;
    }
    
    .game-title.dynamic-size.small {
        font-size: 1.0rem;
    }
    
    .game-title.dynamic-size.medium {
        font-size: 1.05rem;
    }
    
    .game-title.dynamic-size.large {
        font-size: 1.1rem;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .game-meta-grid {
        grid-template-columns: 1fr;
    }
    
    .meta-item.players-combined {
        grid-column: span 1;
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }
    
    .meta-item.players-combined .meta-value {
        margin-right: 0;
    }
    
    .meta-item.players-combined i:last-of-type {
        margin-left: 0;
    }
    
    .game-title {
        font-size: 1.1rem;
    }
    
    .game-card {
        padding: var(--spacing-md);
    }
    
    .detail-group.players-time-group {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 0.3rem;
    }
    
    .detail-group.rating-complexity-group {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 0.3rem;
    }
    
    .detail-element {
        padding: 0.1rem 0.15rem;
        font-size: 0.85rem;
    }
    
    .detail-element strong {
        padding: 0;
    }
    
    .security-bar {
        height: 1.5px; /* Dünnere Security-Bar auf mobilen Geräten */
    }
    
    .security-bar-background {
        height: 1.5px; /* Dünnere Hintergrund-Bar auf mobilen Geräten */
    }
    
    /* BGG-Rating Security-Bar überschreibt allgemeine Regeln */
    .bgg-rating-container .security-bar-background {
        height: 2px !important; /* Angepasste Höhe für mobile Geräte */
        bottom: -3px !important; /* Angepasste Position für mobile Geräte */
        width: 24px !important; /* Angepasste Breite für mobile Geräte */
    }
    
    .bgg-rating-container .security-bar.security-bar-dynamic {
        height: 2px !important; /* Angepasste Höhe für mobile Geräte */
        bottom: -3px !important; /* Angepasste Position für mobile Geräte */
        max-width: 24px !important; /* Begrenzt auf Background-Breite */
        left: 35% !important;
        /* KEIN width: !important - dynamische Breite wird durch inline style gesetzt */
    }
    
    .detail-element i {
        width: 10px;
        font-size: 0.75rem;
    }
    
    .detail-element.price-element {
        min-width: 200px;
    }
    
    .bgg-rating-hexagon {
        /* width: 60px; */
        height: 32px;
        margin-left: 8px;
    }
    
    .bgg-rating-container .security-bar-background {
        height: 2px !important; /* Angepasste Höhe für mobile Geräte */
        bottom: -3px !important; /* Angepasste Position für mobile Geräte */
        width: 30px !important; /* Angepasste Breite für mobile Geräte */
        left: 35% !important;
    }
    
    .bgg-rating-container .security-bar.security-bar-dynamic {
        height: 2px !important; /* Angepasste Höhe für mobile Geräte */
        bottom: -3px !important; /* Angepasste Position für mobile Geräte */
        max-width: 30px !important; /* Begrenzt auf Background-Breite */
        
        /* KEIN width: !important - dynamische Breite wird durch inline style gesetzt */
    }
    
    .bgg-rating-number {
font-size: 12px;
    }
}

@media (max-width: 480px) {
    .game-detail-info {
        gap: 0.15rem;
        /* Verhindert Überlappung mit game-aka durch padding-top statt margin-top */
        margin-top: 0 !important;
        padding-top: 30px !important; /* Mehr Platz für game-aka */
    }
    
    .detail-group {
        gap: 0.15rem;
    }
    
    /* Kompakteres Layout für sehr kleine Bildschirme */
    .detail-group.year-publisher-group {
        justify-content: flex-start;
        gap: 0.2rem;
    }
    
    .detail-group.players-time-group {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 0.2rem;
    }
    
    .detail-group.rating-complexity-group {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 0.2rem;
    }
    
    .detail-group.price-group {
        justify-content: flex-start;
    }
    
    .detail-element {
        padding: 0.08rem 0.1rem;
        font-size: 0.8rem;
        /* flex-shrink: 0; */
    }
    
    .detail-element strong {
        padding: 0;
    }
    
    .security-bar {
        height: 2px; /* Dickere Security-Bar auf sehr kleinen Geräten */
    }
    
    .security-bar-background {
        height: 2px; /* Dickere Hintergrund-Bar auf sehr kleinen Geräten */
    }
    
    /* BGG-Rating Security-Bar überschreibt allgemeine Regeln */
    .bgg-rating-container .security-bar-background {
        height: 2px !important; /* Angepasste Höhe für sehr kleine Geräte */
        bottom: -3px !important; /* Angepasste Position für sehr kleine Geräte */
        width: 22px !important; /* Angepasste Breite für sehr kleine Geräte */
    }
    
    .bgg-rating-container .security-bar.security-bar-dynamic {
        height: 2px !important; /* Angepasste Höhe für sehr kleine Geräte */
        bottom: -3px !important; /* Angepasste Position für sehr kleine Geräte */
        max-width: 22px !important; /* Begrenzt auf Background-Breite */
        /* KEIN width: !important - dynamische Breite wird durch inline style gesetzt */
    }
    
    .detail-element i {
        width: 8px;
        font-size: 0.7rem;
    }
    
    .detail-element.price-element {
        min-width: auto;
        flex: 1;
    }
    
    /* Zusätzliche Optimierungen für sehr kleine Bildschirme */
    .detail-element.players-element,
    .detail-element.playtime-element {
        flex: 1;
        min-width: 0;
        text-align: center;
    }
    
    .detail-element.recommended-players-element {
        
        min-width: auto;
        text-align: left;
    }
    
    .detail-element.rating-element,
    .detail-element.complexity-element,
    .detail-element.language-element {
        flex: 1;
        min-width: 0;
        text-align: center;
    }
    
    /* Bei sehr kleinen Bildschirmen: Elemente können umbrechen */
    @media (max-width: 360px) {
        .detail-group.players-time-group,
        .detail-group.rating-complexity-group {
            flex-wrap: wrap;
        }
        
        .detail-element.players-element,
        .detail-element.playtime-element,
        .detail-element.rating-element,
        .detail-element.complexity-element,
        .detail-element.language-element {
            flex: 1 1 45%;
        }
        
        .detail-element.recommended-players-element {
            /* flex: 0 0 auto; */
            margin-bottom: 0.1rem;
        }
    }
}


/* Element | https://boardgames.ulrichlang.de/ */

.recommended-players-element {
    margin-left: 5px;
    opacity: 0.5;
    position: relative;
    display: inline-block;
}



/* ===== RECOMMENDED AGE ELEMENT ===== */

.recommended-age-element {
    margin: -3px;
    position: relative;
    display: inline-block;
}

.recommended-age-element .security-bar-background,
.recommended-age-element .security-bar {
    bottom: -2px;
}

.recommended-age-element > i {
    margin: 1px;
}

.recommended-age-value {
    color: var(--milka-blue);
    opacity: 0.8;
}

.recommended-age-value > i {
    margin-left: -5px;
}

.detail-element.age-element {
    display: flex;
    /* flex-direction: column; */
}

.detail-element.age-element > strong > i,
.detail-element.age-element > strong > span {
    margin: 0;
}

/* ===== MECHANICS TAGS ===== */


.mechanics-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.5rem;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    overflow-wrap: break-word;
    box-sizing: border-box;
}

.mechanic-tag {
    display: inline-block;
    background: #97a8f7;
    color: var(--white);
    padding: 0.15rem 0.4rem;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    margin-bottom: 0.25rem;
    margin-right: 0.25rem;
    flex-shrink: 0;
    max-width: calc(100% - 0.5rem);
    box-sizing: border-box;
}

.mechanic-tag:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--milka-blue-purple) 0%, var(--milka-blue) 100%);
}

/* Responsive adjustments for mechanics */
@media (max-width: 768px) {
    .mechanics-container {
        gap: 0.2rem;
    }
    
    .mechanic-tag {
        font-size: 0.65rem;
        padding: 0.1rem 0.35rem;
        margin-bottom: 0.2rem;
    }
}

@media (max-width: 480px) {
  .mechanics-container {
    /* display: block; */
    /* display: flow-root; */
    /* display: grid; */
    /* display: initial; */
    /* display: inline-flex; */
    /* display: inline-table; */
    display: revert;
  }
}


/* Element | https://boardgames.ulrichlang.de/ */

.mechanics-container {
  font-size: 0.1em;
}