/* CSS Document */
@charset "UTF-8";

.cl_kopf, footer {
	background: #C8C8C8;
}

.cl_flex_container {
	display: flex;
	justify-content:space-between;
	padding-top: 5px;
	/*border: 1px dotted blue;*/
}

.cl_modal {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.6);
	z-index: 1000;
	padding: 1rem;
}

.cl_modal_aktiv {
	display: flex;
}

.cl_modal_box {
	background: #ffffff;
	color: #000000;
	max-width: 520px;
	width: min(520px, 96vw);
	max-height: 90vh;
	overflow-y: auto;
	border-radius: 8px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
	padding: 0rem 1rem 1rem 1rem;
	position: relative;
	box-sizing: border-box;
}

.cl_modal_close {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	background: none;
	border: none;
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
}

.cl_modal_titel {
	margin: 0 0 0.2rem 0;
}

.cl_modal_meta {
	color: #444;
	font-size: 0.95rem;
	margin-bottom: 0.75rem;
}

.cl_modal_body {
	font-size: 1.05rem;
	line-height: 1.4;
}

/* Spielerliste */
.cl_spielerliste {
	display: table;
	width: 100%;
	border-spacing: 0;
}

.cl_spieler_row {
	display: table-row;
}

.cl_spieler_row:nth-child(even) {
	background-color: #ffffff;
}

.cl_spieler_row:nth-child(odd) {
	background-color: #f1f3f4;
}

.cl_spieler_name {
	display: table-cell;
	padding: 0.4rem 1rem 0.4rem 0;
	vertical-align: middle;
	width: 50%;
}

.cl_spieler_radio {
	display: table-cell;
	padding: 0.4rem 0;
	vertical-align: middle;
	white-space: nowrap;
}

.cl_spieler_radio input[type="radio"] {
	margin: 0 0.2rem 0 0.8rem;
}

.cl_spieler_radio input[type="radio"]:first-child {
	margin-left: 0;
}

.cl_spieler_radio label.cl_radio {
	cursor: pointer;
	margin-right: 0.3rem;
	font-size: 1.2rem;
}

.cl_delete_btn {
	margin-left: 0.5rem;
	padding: 0.2rem 0.4rem;
	border: none;
	border-radius: 3px;
	font-size: 0.7rem;
	font-weight: bold;
	cursor: pointer;
	transition: background 0.2s;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	vertical-align: middle;
}

.cl_delete_btn:hover {
	background: #cc0000;
}

/* Summen-Anzeige */
.cl_summen_section {
	display: flex;
	justify-content: space-around;
	gap: 1rem;
	padding: 0.5rem;
	background: #f9f9f9;
	border-radius: 6px;
	margin-top: 5px
}

.cl_summe {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 1.1rem;
}

.cl_summe_icon {
	font-size: 1.4rem;
}

.cl_summe_zahl {
	font-weight: bold;
	font-size: 1.3rem;
	min-width: 1.5rem;
	text-align: center;
}

/* Captain-Auswahl */
.cl_captain_section {
	margin-top: 0.5rem;
	padding-top: 0.5rem;
	border-top: 1px solid #ddd;
}

.cl_captain_section h4 {
	margin: 0 0 0.2rem 0;
	font-size: 1rem;
	font-weight: normal;
	color: #444;
}

.cl_captain_group {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.cl_captain_group input[type="radio"] {
	display: none;
}

.cl_captain_label {
	display: inline-block;
	padding: 0.4rem 0.8rem;
	background: #f0f0f0;
	border: 2px solid #ccc;
	border-radius: 4px;
	cursor: pointer;
	font-weight: bold;
	transition: all 0.2s;
}

.cl_captain_label:hover {
	background: #e0e0e0;
	border-color: #999;
}

.cl_captain_group input[type="radio"]:checked + .cl_captain_label {
	background: #4CAF50;
	border-color: #4CAF50;
	color: white;
}
