.gwdws {
	--gwdws-green: #0b7a3b;
	--gwdws-green-dark: #075a2b;
	--gwdws-green-soft: #f1f8f3;
	--gwdws-grey: #6b7280;
	--gwdws-line: #e6e8eb;
	font-size: 15px;
	line-height: 1.35;
	margin: 0 0 1.5em;
}
.gwdws * { box-sizing: border-box; }

.gwdws-title { margin: 0 0 4px; }
.gwdws-range {
	color: var(--gwdws-grey);
	font-size: .85em;
	margin-bottom: 14px;
}

/* Tag */
.gwdws-day { margin-bottom: 18px; }
.gwdws-day-title {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin: 0 0 4px !important;
	padding: 0 0 6px;
	border-bottom: 2px solid var(--gwdws-green);
	font-size: 1em !important;
	color: var(--gwdws-green-dark);
}
.gwdws-day-title span { font-weight: 400; font-size: .8em; color: var(--gwdws-grey); text-transform: none; }

/* Liste */
.gwdws-list { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.gwdws-game {
	list-style: none !important;
	margin: 0 !important;
	padding: 10px 10px 10px 12px;
	border-bottom: 1px solid var(--gwdws-line);
	border-left: 3px solid transparent;
}
.gwdws-game:last-child { border-bottom: 0; }
.gwdws-game.is-home { border-left-color: var(--gwdws-green); background: var(--gwdws-green-soft); }
.gwdws-game.is-cancelled { opacity: .55; }
.gwdws-game.is-cancelled .gwdws-name { text-decoration: line-through; }

/* Kopfzeile eines Spiels */
.gwdws-row-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 7px;
	font-size: .8em;
	color: var(--gwdws-grey);
}
.gwdws-info { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-width: 0; }
.gwdws-time {
	font-size: 1.15em;
	font-weight: 700;
	color: #111827;
	font-variant-numeric: tabular-nums;
	min-width: 3.1em;
}
.gwdws-age { font-weight: 700; color: var(--gwdws-green-dark); text-transform: uppercase; letter-spacing: .02em; }
.gwdws-comp::before { content: "·"; margin-right: 8px; color: #c4c8ce; }
.gwdws-type { background: #fff4d6; color: #7a5b00; padding: 0 6px; border-radius: 3px; }
.gwdws-badge {
	flex: none;
	margin-top: 2px;
	font-size: .85em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .03em;
	padding: 2px 8px;
	border-radius: 999px;
	background: #eceef1;
	color: #4b5563;
}
.is-home .gwdws-badge { background: var(--gwdws-green); color: #fff; }

/* Mannschaften untereinander */
.gwdws-teams { display: flex; flex-direction: column; gap: 5px; padding-left: 2px; }
.gwdws-team { display: flex; align-items: center; gap: 10px; min-height: 28px; }
.gwdws-name { font-weight: 600; color: #111827; overflow-wrap: anywhere; }

.gwdws-logo {
	position: relative;
	flex: none;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #e9ecef;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
/* Kürzel als Fallback, wird vom Logo überdeckt */
.gwdws-logo::before {
	content: attr(data-initials);
	font-size: 10px;
	font-weight: 700;
	color: #4b5563;
	letter-spacing: .02em;
}
.is-home .gwdws-team:first-child .gwdws-logo,
.is-away .gwdws-team:last-child .gwdws-logo { background: #d7ecdf; }
.gwdws-logo img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #fff;
	border-radius: 0;
	margin: 0 !important;
	box-shadow: none !important;
}

.gwdws-note { font-size: .8em; color: #b45309; margin-top: 5px; padding-left: 40px; }

.gwdws-empty { padding: 12px; background: #f6f7f8; border-radius: 6px; }
.gwdws-admin-note { font-size: .8em; color: #b91c1c; }
.gwdws-source { font-size: .72em; color: var(--gwdws-grey); margin-top: 4px; }
.gwdws-source a { color: inherit; }

/* ---------- Kompakte Ansicht ---------- */
.gwdws-compact .gwdws-day { margin-bottom: 12px; }
.gwdws-compact .gwdws-day-title { padding-bottom: 4px; margin-bottom: 2px !important; }

.gwdws-game.gwdws-c {
	display: grid;
	grid-template-columns: 3.1em 1fr auto;
	align-items: center;
	column-gap: 8px;
	padding: 6px 8px 6px 9px;
}
.gwdws-c-left { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; align-self: start; padding-top: 2px; }
.gwdws-c .gwdws-time { font-size: .95em; min-width: 0; line-height: 1.2; }
.gwdws-c-main { min-width: 0; }
.gwdws-c-opp { display: flex; align-items: center; gap: 7px; min-width: 0; }
.gwdws-c .gwdws-logo { width: 22px; height: 22px; }
.gwdws-c .gwdws-logo::before { font-size: 8px; }
.gwdws-c .gwdws-name {
	font-size: .95em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	min-width: 0;
}
.gwdws-c-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 6px;
	margin-top: 1px;
	padding-left: 29px;
	font-size: .72em;
	color: var(--gwdws-grey);
	line-height: 1.35;
}
.gwdws-c-meta .gwdws-comp::before { margin-right: 6px; }
.gwdws-tag {
	background: #e3efe7;
	color: var(--gwdws-green-dark);
	font-weight: 700;
	padding: 0 5px;
	border-radius: 3px;
}
.gwdws-c-meta .gwdws-type { padding: 0 5px; }
.gwdws-c-meta .gwdws-note { margin: 0; padding: 0; }
.gwdws-c .gwdws-badge { margin: 0; padding: 0 6px; font-size: .58em; line-height: 1.6; }

/* Ergebnis */
.gwdws-result {
	min-width: 2.6em;
	text-align: center;
	font-weight: 800;
	font-size: .9em;
	font-variant-numeric: tabular-nums;
	padding: 2px 6px;
	border-radius: 5px;
	background: #eceef1;
	color: #374151;
}
.gwdws-result.is-empty { background: none; padding: 0; min-width: 0; }
.gwdws-result.is-win  { background: var(--gwdws-green); color: #fff; }
.gwdws-result.is-draw { background: #d9dde2; color: #1f2937; }
.gwdws-result.is-loss { background: #c62828; color: #fff; }
