body { font-family: 'Segoe UI', sans-serif; background-color: #1a252f; color: #ecf0f1; margin: 0; padding: 20px; display: flex; flex-direction: column; align-items: center; min-height: 100vh; box-sizing: border-box; }
.container { background-color: #2c3e50; padding: 35px 30px; border-radius: 20px; box-shadow: 0 15px 35px rgba(0,0,0,0.5); width: 100%; max-width: 600px; border: 1px solid #34495e; box-sizing: border-box; margin-bottom: 20px; }
.container-wide { max-width: 1000px; }
.container-fluid {
    width: calc(100% - 40px);
    max-width: none;
    margin: 0 20px;
    box-sizing: border-box;
    padding: 35px 30px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

h1, h2, h3 { color: #ffffff; margin-top: 0; }
a { text-decoration: none; transition: 0.2s; }

/* Buttons */
.btn { padding: 12px 20px; color: white; border: none; border-radius: 8px; font-weight: bold; cursor: pointer; text-align: center; display: inline-flex; align-items: center; justify-content: center; transition: background 0.2s; box-sizing: border-box; text-decoration: none; }
.btn-primary, .btn-blue { background: #3498db; } .btn-primary:hover, .btn-blue:hover { background: #2980b9; }
.btn-secondary { background: #4f5d73; } .btn-secondary:hover { background: #3a4659; }
.btn-danger { background: #e74c3c; } .btn-danger:hover { background: #c0392b; }
.btn-green { background: #2ecc71; } .btn-green:hover { background: #27ae60; }
.btn-orange { background: #e67e22; } .btn-orange:hover { background: #d35400; }
.btn-block { width: 100%; margin-bottom: 15px; }

/* Formulare */
input { width: 100%; padding: 12px; border-radius: 8px; border: 1px solid #34495e; background-color: #1a252f; color: white; box-sizing: border-box; margin-bottom: 15px; }
input:focus { border-color: #3498db; outline: none; }

/* Tabellen */
.table-responsive { width: 100%; overflow-x: auto; border-radius: 8px; }
table { width: 100%; border-collapse: collapse; background-color: #1a252f; }
th, td { padding: 12px; text-align: center; border: 1px solid #34495e; border-color: rgb(25, 28, 42);}
th { background-color: #34495e; color: #bdc3c7; font-weight: bold; }
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { background-color: #4f5d73; color: #fff; }
th.sortable::after { content: ' ↕'; font-size: 0.8em; color: #7f8c8d; }

/* Spezifische Tabellen-Klassen */
.winner-row td { color: #f1c40f !important; font-weight: bold !important; background-color: rgba(241, 196, 15, 0.05) !important;}
.winner-row input.score-input { color: #f1c40f !important; font-weight: bold;}

/* Alerts & Status */
.alert { padding: 15px; border-radius: 8px; text-align: center; margin-bottom: 20px; width: 100%; box-sizing: border-box; }
.success { background: rgba(46, 204, 113, 0.2); color: #2ecc71; border: 1px solid #2ecc71; }
.error { background: rgba(231, 76, 60, 0.2); color: #e74c3c; border: 1px solid #e74c3c; }

/* Header Navbar */
.header-bar { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 1000px; margin-bottom: 20px; background-color: #2c3e50; padding: 15px 25px; border-radius: 12px; border: 1px solid #34495e; box-sizing: border-box; }
.header-actions { display: flex; gap: 20px; align-items: center; }

@media (max-width: 600px) {
    body { padding: 10px; }
    .container, .header-bar { padding: 15px; flex-direction: column; text-align: center; gap: 10px; }
    th, td { padding: 8px 5px; font-size: 0.9em; }
}