/* Container Layout */
.solver-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 100px; /* Genug Abstand zur Navbar */
    position: relative;
    z-index: 10;
}

h2 {
    color: #e0e0e0; /* Helles Grau statt Cyan */
    font-family: 'Roboto Mono', monospace;
    letter-spacing: 4px;
    font-size: 1.2rem;
    /* Der Schatten ist jetzt weiß statt blau */
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5); 
    margin-bottom: 10px;
}

/* --- DAS SUDOKU GITTER --- */
#sudoku-board {
    display: grid;
    grid-template-columns: repeat(9, 40px);
    grid-template-rows: repeat(9, 40px);
    /* Kein fetter Hintergrund mehr, nur Lücken */
    gap: 0; 
    background-color: transparent; 
    
    /* Ein dicker Außenrahmen um das ganze Spiel */
    border: 2px solid #e0e0e0;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.1);
}

/* --- DIE EINGABEFELDER (CELLS) --- */
.cell {
    width: 40px;
    height: 40px;
    background-color: #050510; 
    
    /* ÄNDERUNG: Die dünnen Gitterlinien in transparentem Weiß */
    border: 1px solid rgba(255, 255, 255, 0.2); 
    
    color: white;
    font-family: 'Roboto Mono', monospace;
    font-size: 20px;
    text-align: center;
    outline: none;
    transition: all 0.3s ease;
    appearance: none; 
    -moz-appearance: textfield; 
    border-radius: 0;
}

/* Entfernt die kleinen Pfeile bei Zahlen-Inputs (Chrome, Safari, Edge, Opera) */
.cell::-webkit-outer-spin-button,
.cell::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Effekt wenn man reinklickt */
.cell:focus {
    background-color: rgba(0, 243, 255, 0.1);
    border-color: #00f3ff;
    box-shadow: inset 0 0 10px rgba(0, 243, 255, 0.2);
    color: #00f3ff;
    z-index: 5; /* Bringt das aktive Feld nach vorne */
}

/* --- DIE 3x3 LINIEN (OPTISCHES TUNING) --- */
/* Rechte Ränder für Spalte 3 und 6 */
.cell:nth-child(3n) {
    /* ÄNDERUNG: Dickerer grauer Strich rechts */
    border-right: 2px solid #e0e0e0;
}
/* Aber nicht am ganz rechten Rand */
.cell:nth-child(9n) {
    /* Den ganz rechten Rand wieder dünn/transparent machen */
    border-right: 1px solid rgba(255, 255, 255, 0.2); 
}

/* Untere Ränder für Zeile 3 und 6 müssen wir im JS lösen oder per Grid-Gap */
/* Wir machen es hier simpel: */
#sudoku-board {
    /* Alternative: Wir nutzen Gap für die dicken Linien */
    gap: 0; 
}


/* --- BUTTONS --- */
.controls {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

button {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #00f3ff;
    color: #00f3ff;
    padding: 12px 24px;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: 0.3s;
    box-shadow: 0 0 5px rgba(0, 243, 255, 0.2);
}

button:hover {
    background: #00f3ff;
    color: #000;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.8);
}

button.secondary {
    border-color: #ff0055;
    color: #ff0055;
    box-shadow: 0 0 5px rgba(255, 0, 85, 0.2);
}

button.secondary:hover {
    background: #ff0055;
    color: white;
    box-shadow: 0 0 20px rgba(255, 0, 85, 0.8);
}

#status-msg {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.8rem;
    color: #666;
    margin-top: 10px;
    letter-spacing: 1px;
    min-height: 20px; /* Verhindert Springen */
}

/* Mobile Anpassung */
@media (max-width: 500px) {
    #sudoku-board {
        grid-template-columns: repeat(9, 34px);
        grid-template-rows: repeat(9, 34px);
    }
    .cell {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }
}