/* Spielbrett Styles */
.board-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 70vh;
}

.board {
    position: relative;
    width: 100%;
    max-width: 650px;
    aspect-ratio: 1.2/1;
    margin: 0 auto;
    background-color: var(--board-light);
    border: 8px solid var(--board-border);
    border-radius: 8px;
    display: flex;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.points-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.point {
    position: relative;
    width: calc(100% / 12);
    height: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-right: 1px;
    padding-left: 1px;
}

.point-top {
    justify-content: flex-end;
    padding-bottom: 30px;
}

.point-bottom {
    padding-top: 30px;
}

.point-triangle {
    height: 100%;
    position: relative;
}

.point-index {
    position: absolute;
    font-size: 0.7rem;
    opacity: 0.7;
    background-color: rgba(255, 255, 255, 0.7);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.point-top .point-index {
    top: 5px;
}

.point-bottom .point-index {
    bottom: 5px;
}

.point:nth-child(odd) .point-triangle {
    background-color: var(--point-color-dark);
}

.point:nth-child(even) .point-triangle {
    background-color: var(--point-color-light);
}

.point-top:nth-child(even) .point-triangle {
    background-color: var(--point-color-light);
}

.point-top:nth-child(odd) .point-triangle {
    background-color: var(--point-color-dark);
}

.point-bottom:nth-child(odd) .point-triangle {
    background-color: var(--point-color-light);
}

.point-bottom:nth-child(even) .point-triangle {
    background-color: var(--point-color-dark);
}

.point-top .point-triangle {
    clip-path: polygon(50% 100%, 0 0, 100% 0);
}

.point-bottom .point-triangle {
    clip-path: polygon(50% 0, 0 100%, 100% 100%);
}

/* Spielsteine Styles */
.checker {
    width: var(--checker-size);
    height: var(--checker-size);
    border-radius: 50%;
    margin: 1px;
    z-index: 10;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 
        0 3px 6px rgba(0, 0, 0, 0.3),
        0 1px 2px rgba(0, 0, 0, 0.2),
        inset 0 -3px 10px rgba(0, 0, 0, 0.2),
        inset 0 1px 10px rgba(255, 255, 255, 0.5);
}

.checker::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    width: 70%;
    height: 70%;
    border-radius: 50%;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        inset 0 1px 5px rgba(0, 0, 0, 0.2),
        inset 0 -1px 5px rgba(255, 255, 255, 0.3);
}

.checker.player1 {
    background-color: var(--player1-color);
    background-image: 
        radial-gradient(circle at 30% 30%, 
            rgba(255, 255, 255, 0.6) 0%, 
            rgba(255, 255, 255, 0.2) 40%, 
            rgba(255, 255, 255, 0) 70%),
        linear-gradient(
            to bottom,
            var(--player1-color) 0%,
            #d32f2f 75%,
            #b71c1c 100%
        );
}

.checker.player2 {
    background-color: var(--player2-color);
    background-image: 
        radial-gradient(circle at 30% 30%, 
            rgba(255, 255, 255, 0.6) 0%, 
            rgba(255, 255, 255, 0.2) 40%, 
            rgba(255, 255, 255, 0) 70%),
        linear-gradient(
            to bottom,
            var(--player2-color) 0%,
            #0d47a1 75%,
            #01579b 100%
        );
}

.checker-counter {
    font-size: 0.8rem;
    color: white;
    text-align: center;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    line-height: 24px;
    position: absolute;
    font-weight: bold;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.4),
        inset 0 1px 3px rgba(255, 255, 255, 0.3),
        inset 0 -1px 3px rgba(0, 0, 0, 0.2);
    z-index: 15;
    left: 50%;
    transform: translateX(-50%);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.checker-counter.player1 {
    background: linear-gradient(to bottom, #e63946, #d32f2f);
}

.checker-counter.player2 {
    background: linear-gradient(to bottom, #1d3557, #0d47a1);
}

.checker.selected {
    transform: translateX(-50%) scale(1.25);
    box-shadow: 
        0 0 20px rgba(0, 0, 0, 0.8),
        0 0 10px rgb(0, 0, 0),
        0 8px 15px rgba(0, 0, 0, 0.5),
        inset 0 -3px 10px rgba(0, 0, 0, 0.2),
        inset 0 1px 10px rgba(255, 255, 255, 0.5);
    z-index: 30;
}

.checker.selected::before {
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 
        inset 0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 -2px 8px rgba(255, 255, 255, 0.4);
}

.player1.selected {
    background-image: 
        radial-gradient(circle at 30% 30%, 
            rgba(255, 255, 255, 0.8) 0%, 
            rgba(255, 255, 255, 0.3) 40%, 
            rgba(255, 255, 255, 0) 70%),
        linear-gradient(
            to bottom,
            var(--player1-color) 0%,
            #d32f2f 75%,
            #b71c1c 100%
        );
}

.player2.selected {
    background-image: 
        radial-gradient(circle at 30% 30%, 
            rgba(255, 255, 255, 0.8) 0%, 
            rgba(255, 255, 255, 0.3) 40%, 
            rgba(255, 255, 255, 0) 70%),
        linear-gradient(
            to bottom,
            var(--player2-color) 0%,
            #0d47a1 75%,
            #01579b 100%
        );
}

.valid-move {
    cursor: pointer;
}

/* Spielzug-Hinweise */
.move-hint, .home-hint {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(76, 175, 80, 0.5);
    z-index: 5;
    animation: pulseHint 1.5s infinite;
}

.point-top .move-hint {
    top: 1px;
    left: 50%;
    transform: translateX(-50%);
}

.point-bottom .move-hint {
    bottom: 1px;
    left: 50%;
    transform: translateX(-50%);
}

.home-hint {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes pulseHint {
    0% { transform: translate(-50%, 0) scale(0.8); opacity: 0.6; }
    50% { transform: translate(-50%, 0) scale(1.2); opacity: 1; }
    100% { transform: translate(-50%, 0) scale(0.8); opacity: 0.6; }
}

.touch-active {
    opacity: 0.8;
}

/* Responsive Design für das Spielbrett */
@media (max-width: 768px) {
    .board {
        max-width: 100%;
        aspect-ratio: 1/1.2;
    }
    
    .point-index {
        font-size: 0.6rem;
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    .board {
        border-width: 5px;
    }
    
    .point-index {
        width: 12px;
        height: 12px;
        font-size: 0.5rem;
    }
}

/* Schwebender Checker für Desktop */
.floating-checker {
    pointer-events: none !important;
    position: fixed;
    will-change: transform;
    opacity: 0.7;
    z-index: 100;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
    transition: none !important; /* Deaktiviere Animationen für flüssigere Bewegung */
}

.floating-checker::before {
    opacity: 0.8;
} 