/* Grundlegendes Reset und Schriftart */
* {
    box-sizing: border-box;
    font-family: system-ui, -apple-system, sans-serif;
}

body {
    background-color: #f4f4f9;
    color: #333;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    line-height: 1.6;
}

header {
    border-bottom: 2px solid #2c3e50;
    margin-bottom: 20px;
}

section {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Formular-Styling (Funktional, ohne extra Klassen) */
form {
    display: grid;
    gap: 12px;
}

label {
    font-weight: bold;
    margin-top: 5px;
}

input[type="number"], select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

fieldset {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

fieldset label {
    font-weight: normal;
    margin-top: 0;
    cursor: pointer;
}

button {
    background-color: #2c3e50;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

button:hover:not(:disabled) {
    background-color: #1a252f;
}

button:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

/* Tabellen-Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th, td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

th {
    background-color: #ecf0f1;
}

.hinweis {
    background-color: #e8f4f8;
    padding: 10px;
    border-left: 4px solid #3498db;
}

/* Modal für Spiel-Übersicht */
#spiel-preview-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
}

#spiel-preview-dialog {
    background: #ffffff;
    max-width: 480px;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    padding: 20px;
}

#spiel-preview-dialog h2 {
    margin-top: 0;
    margin-bottom: 10px;
}

#spiel-preview-body {
    margin-top: 10px;
    margin-bottom: 16px;
}

#spiel-preview-body dl {
    margin: 0;
}

#spiel-preview-body dt {
    font-weight: bold;
    margin-top: 6px;
}

#spiel-preview-body dd {
    margin: 0 0 4px 0;
}

#spiel-preview-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

#spiel-preview-actions button {
    flex: 1 1 120px;
}
