/* Grundlayout */
body {
    font-family: Segoe UI, Arial, sans-serif;
    background: #f3f3f3;
    padding: 20px;
    color: #222;
}

h2 {
    margin-bottom: 5px;
}

p {
    margin-bottom: 15px;
    color: #555;
}

#status {
    margin-top: 10px;
    font-size: 13px;
    color: #0078d4;
}

/* Wrapper für horizontales Scrollen */
.excel-wrapper {
    max-width: 100%;
    overflow-x: auto;
}

/* Tabelle im Excel-Look */
table.excel {
    border-collapse: collapse;
    background: #ffffff;
    border: 1px solid #b7b7b7;
    box-shadow: 0 0 8px rgba(0,0,0,0.08);
    table-layout: fixed;
}

/* Zellen allgemein */
table.excel th,
table.excel td {
    border: 1px solid #d4d4d4;
    padding: 4px 6px;
    font-size: 13px;
    min-width: 80px;
    height: 22px;
    box-sizing: border-box;
}

/* Spaltenköpfe A–H */
.col-header {
    background: linear-gradient(#f4f4f4, #e4e4e4);
    font-weight: 600;
    text-align: center;
    color: #333;
}

/* Zeilenköpfe (1,2,3...) */
.row-header {
    background: linear-gradient(#f4f4f4, #e4e4e4);
    font-weight: 600;
    text-align: center;
    width: 40px;
    color: #333;
}

/* Spielerzellen */
.player-cell {
    background: #ffffff;
    cursor: text;
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Fokus wie Excel-Auswahl */
.player-cell:focus {
    outline: 2px solid #4a90e2;
    outline-offset: -2px;
}

/* Hover-Effekt */
.player-cell:hover {
    background: #f9f9ff;
}

/* Tische farblich hervorheben */
.tisch1, .tisch2, .tisch3, .tisch4,
.tisch5, .tisch6, .tisch7, .tisch8 {
    font-weight: 600;
    text-align: center;
    color: #1f4e79;
}

/* Unterschiedliche Farben pro Tischreihe */
.tisch1 { background: #d9ead3; }
.tisch2 { background: #fce5cd; }
.tisch3 { background: #cfe2f3; }
.tisch4 { background: #fff2cc; }
.tisch5 { background: #d9d2e9; }
.tisch6 { background: #f4cccc; }
.tisch7 { background: #c9daf8; }
.tisch8 { background: #e2f0d9; }

/* Leere Zellen neben Tischen etwas neutraler */
tr td:nth-child(3),
tr td:nth-child(5),
tr td:nth-child(7),
tr td:nth-child(9) {
    background: #fafafa;
}

/* Drag & Drop Feedback */
.player-cell.drag-source {
    background: #fff8dc;
    border: 1px dashed #f1c232;
}

.player-cell.drag-target {
    background: #e7f3ff;
    border: 1px dashed #4a90e2;
}

.player-input {
    width: 100%;
    height: 100%;
    border: none;
    padding: 4px;
    box-sizing: border-box;
    background: transparent;
}
.player-cell {
    padding: 0;
}

.cdf-image {
    width: 100px;
    border-radius: 10px;
    transition: transform 0.2s ease;
}

.cdf-image:hover {
    transform: scale(1.05);
}

.cdf-image {
    cursor: pointer;
    border: 3px solid #333;
    border-radius: 12px;
}

