/* Seitenrahmen: gemeinsame Schrift, Hintergrund und Textausrichtung. */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1a1a1a;
    color: #ffffff;
    margin: 0;
    padding: 20px;
    text-align: center;
}

/* JavaScript setzt oder entfernt diese Klasse, um Ansichten und einzelne
   Bedienelemente ein- beziehungsweise auszublenden. */
.hidden {
    display: none !important;
}

/* Jede Hauptansicht wird als zentrierte Karte dargestellt. */
.screen {
    max-width: 400px;
    margin: 0 auto;
    background-color: #2d2d2d;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

/* Systemhinweise liegen oberhalb der aktuellen Ansicht und blockieren das
   Spiel nicht. Die gelbe Gestaltung unterscheidet sie von roten Spielalarmen. */
.system-warning {
    max-width: 400px;
    margin: 0 auto 15px;
    padding: 15px;
    box-sizing: border-box;
    border: 2px solid #f9a825;
    border-radius: 10px;
    background-color: #4b3a08;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.system-warning h2 {
    margin-top: 0;
    color: #ffd54f;
    font-size: 20px;
}

.system-warning p {
    line-height: 1.4;
}

.system-warning button.secondary {
    margin-bottom: 0;
}

.runtime-status {
    max-width: 400px;
    margin: 0 auto 15px;
    padding: 8px 10px;
    box-sizing: border-box;
    border: 1px solid #607d8b;
    border-radius: 8px;
    background-color: #242424;
    color: #cfd8dc;
    font-size: 13px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.runtime-status[data-state="warning"] {
    border-color: #f9a825;
    color: #ffd54f;
}

/* Gemeinsames Aussehen aller Text- und Zahleneingaben. */
input {
    width: 90%;
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
    border: none;
    font-size: 16px;
    box-sizing: border-box;
}

/* Gemeinsames Basisaussehen aller Buttons. Spezifische Varianten können diese
   Werte über zusätzliche Klassen wie "danger" überschreiben. */
button {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
    border: none;
    background-color: #4CAF50;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* Gefahr- und Notfallaktionen erhalten eine rote Kennzeichnung. */
button.danger {
    background-color: #f44336;
}

button.secondary {
    background-color: #616161;
}

/* Audiofreigabe auf der Startseite. Die Meldung ist nicht nur farbig, sondern
   enthält immer auch Text, damit der Zustand eindeutig erkennbar bleibt. */
.audio-setup {
    margin-bottom: 15px;
    padding: 12px;
    border: 1px solid #555555;
    border-radius: 8px;
    background-color: #242424;
}

.audio-setup button {
    margin-top: 0;
}

.audio-status {
    min-height: 1.4em;
    margin: 0;
    font-size: 15px;
}

.audio-status[data-state="pending"] {
    color: #dddddd;
}

.audio-status[data-state="ready"] {
    color: #7ee787;
}

.audio-status[data-state="error"] {
    color: #ff8a80;
}

.session-summary {
    padding: 10px;
    border-radius: 6px;
    background-color: #363636;
    font-weight: bold;
}

.session-help {
    margin-top: 20px;
    color: #dddddd;
    font-size: 14px;
    line-height: 1.4;
}

.setting-guidance {
    margin: -2px 0 14px;
    color: #dddddd;
    font-size: 13px;
    line-height: 1.4;
    text-align: left;
}

/* Taskfortschritt ist für alle Rollen sichtbar; nur der persönliche Stand
   wird auf Crewmates begrenzt. */
.task-progress-summary {
    margin: 15px 0;
    padding: 12px;
    border-radius: 8px;
    background-color: #242424;
}

.task-progress-summary p {
    margin: 6px 0;
}

.task-progress-summary progress {
    width: 100%;
    height: 20px;
    margin-top: 8px;
    accent-color: #4CAF50;
}

/* Spielerlisten verwenden eigene Karten anstelle normaler Aufzählungszeichen. */
ul {
    list-style-type: none;
    padding: 0;
}

li {
    background-color: #3d3d3d;
    margin: 5px 0;
    padding: 10px;
    border-radius: 5px;
}

.alert-text {
    color: #f44336;
}
