.main-container {
    display: flex;
    padding: 20px;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: flex-start;
}

.controls {
    width: 260px;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.control-group label {
    display: block;
    font-size: 0.85em;
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 3px;
}

.control-group select, .control-group input {
    width: 100%;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.input-row { display: flex; align-items: center; gap: 5px; }
.input-row input { width: 60px; }

/* Das Gitter */
.grid-scroll-container {
    background: #333;
    padding: 20px;
    border-radius: 8px;
    overflow: auto;
    max-height: 600px;
    border: 4px solid #444;
}

.pixel-grid {
    display: grid;
    gap: 2px;
    margin: 0 auto;
}

.pixel-dot {
    width: 20px;
    height: 20px;
    background: #555;
    border-radius: 50%;
    cursor: crosshair;
    border: 1px solid #222;
    transition: transform 0.1s;
}

.pixel-dot:hover { transform: scale(1.2); background: #777; }

/* Werkzeuge & Output wie gehabt */
.color-tools { display: flex; gap: 10px; margin-top: 10px; }
#colorPicker { width: 50px; height: 40px; border: none; cursor: pointer; }
.btn-tool { flex-grow: 1; border-radius: 4px; font-weight: bold; cursor: pointer; border: 2px solid #ccc; }
.eraser-active { background: #e74c3c; color: white; border-color: #c0392b; }

#output-string {
    width: 100%;
    background: #222;
    color: #00ff00;
    font-family: 'Consolas', monospace;
    padding: 10px;
    border-radius: 4px;
    border: none;
    margin-top: 10px;
}