:root {
	--mdc-accent: #0a7d3b;
	--mdc-win: #1a8f3c;
	--mdc-draw: #8a8a8a;
	--mdc-loss: #c62828;
	--mdc-border: rgba(127, 127, 127, .25);
}

.mdc-list { list-style: none; margin: 0; padding: 0; }
.mdc-match { display: grid; grid-template-columns: 1fr auto; gap: .25rem .75rem; padding: .6rem 0; border-bottom: 1px solid var(--mdc-border); }
.mdc-match time { grid-column: 1 / -1; font-size: .8em; opacity: .7; }
.mdc-match__meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; margin: 0; font-size: 1em; }
.mdc-match__meta time { opacity: .7; }
.mdc-match__team { display: inline-block; padding: .05em .55em; border-radius: 999px; background: var(--mdc-accent); color: var(--mdc-on-accent, #fff); font-size: .72em; font-weight: 700; letter-spacing: .02em; line-height: 1.5; }
.mdc-match__league { font-size: .75em; opacity: .7; }
.mdc-match a { display: grid; grid-template-columns: 1fr auto 1fr; gap: .75rem; align-items: center; text-decoration: none; color: inherit; }
.mdc-match a .mdc-team:last-child { text-align: right; }
.mdc-score { font-variant-numeric: tabular-nums; font-size: 1.15em; }
.mdc-badge { align-self: center; width: 1.6em; height: 1.6em; line-height: 1.6em; text-align: center; border-radius: 50%; color: #fff; font-size: .8em; font-weight: 700; }
.mdc-badge--W { background: var(--mdc-win); }
.mdc-badge--D { background: var(--mdc-draw); }
.mdc-badge--L { background: var(--mdc-loss); }
.mdc-filter { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }

.mdc-table-wrap { overflow-x: auto; }
.mdc-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.mdc-table th, .mdc-table td { padding: .45rem .5rem; border-bottom: 1px solid var(--mdc-border); text-align: center; }
.mdc-table th:first-child, .mdc-table td:first-child { text-align: left; }

.mdc-squad { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; }
.mdc-squad a { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.mdc-photo { width: 100%; height: auto; aspect-ratio: var(--mdc-photo-ratio, 2 / 3); object-fit: cover; border-radius: 8px; display: block; }
.mdc-photo--empty { background: linear-gradient(160deg, var(--mdc-border), transparent); }
.mdc-number { font-weight: 700; color: var(--mdc-accent); margin-top: .4rem; }
.mdc-pos { font-size: .85em; opacity: .7; }

.mdc-ticker__head { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; font-size: 1.2em; }
.mdc-ticker__head .mdc-team:last-child { text-align: right; }
.mdc-ticker__head .mdc-score { font-size: 2em; }
.mdc-ticker__head > * { min-width: 0; overflow-wrap: anywhere; }
/* Played, no result yet (0.35.12): readable text instead of the big digits. */
.mdc-ticker__head .mdc-score.is-pending, .mdc-m-score .is-pending { font-size: clamp(.95rem, 2.4vw, 1.25rem); font-weight: 700; text-align: center; line-height: 1.2; }
.mdc-ticker__status { text-align: center; opacity: .7; }
.mdc-ticker__status.is-live { color: var(--mdc-loss); opacity: 1; font-weight: 700; }
.mdc-ticker__events { list-style: none; padding: 0; }
.mdc-ev { display: grid; grid-template-columns: 3em 2em 1fr; gap: .5rem; padding: .4rem 0; border-bottom: 1px solid var(--mdc-border); }
.mdc-ev--goal { font-weight: 700; }

/* Mobile editor */
.mdc-mobile { max-width: 520px; margin: 0 auto; }
.mdc-mobile label { display: block; margin: .6rem 0; }
.mdc-mobile input:not([type=checkbox]), .mdc-mobile select { display: block; width: 100%; font-size: 16px; padding: .6rem; box-sizing: border-box; }
.mdc-mobile button { font-size: 1rem; padding: .9rem .5rem; border-radius: 10px; border: 1px solid var(--mdc-border); cursor: pointer; }
.mdc-mobile button.is-big { background: var(--mdc-accent); color: #fff; }
.mdc-mobile .is-wide { grid-column: 1 / -1; width: 100%; }
.mdc-m-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: 1rem; }
.mdc-m-tabs .is-active { background: var(--mdc-accent); color: #fff; }
.mdc-m-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.mdc-m-score { display: grid; grid-template-columns: 1fr auto 1fr; gap: .5rem; align-items: center; font-size: 1.1em; }
.mdc-m-score strong { font-size: 2em; }
.mdc-m-score span:last-child { text-align: right; }
.mdc-m-events { padding-left: 1.2rem; }
.mdc-m-events button { padding: .2rem .5rem; }
.mdc-m-file { text-align: center; padding: 1.2rem; border: 2px dashed var(--mdc-border); border-radius: 10px; }
.mdc-m-preview { width: 100%; height: auto; border-radius: 8px; }
.mdc-m-check input { margin-right: .4rem; }
.mdc-toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); background: var(--mdc-win); color: #fff; padding: .7rem 1.2rem; border-radius: 999px; z-index: 9999; }
.mdc-toast.is-error { background: var(--mdc-loss); }

/* ---------- Club colours (set in "Verein einrichten") ---------- */
:root { --mdc-primary: #0b7a3b; --mdc-secondary: #ffffff; --mdc-ink: #0d1b12; --mdc-accent: var(--mdc-primary); --mdc-on-accent: #fff; }

/* ---------- Person cards: one look everywhere ---------- */
.mdc-cards__title { margin: 1.5rem 0 .75rem; }
.mdc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1.25rem; margin: 0 0 1.5rem; }
.mdc-cards--small { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .9rem; }
.mdc-card { position: relative; display: flex; flex-direction: column; background: #fff; color: var(--mdc-ink); border-radius: 12px; overflow: hidden; box-shadow: 0 4px 18px rgba(0,0,0,.12); transition: transform .2s ease, box-shadow .2s ease; }
.mdc-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0,0,0,.18); }
.mdc-card .mdc-photo { width: 100%; height: auto; aspect-ratio: var(--mdc-photo-ratio, 2 / 3); object-fit: cover; border-radius: 0; display: block; }
.mdc-card .mdc-photo--empty { background: linear-gradient(160deg, color-mix(in srgb, var(--mdc-accent) 35%, #fff), var(--mdc-accent)); position: relative; }
.mdc-card .mdc-photo--empty::after { content: ""; position: absolute; inset: 22% 28% 30%; border-radius: 50% 50% 40% 40%; background: rgba(255,255,255,.35); }
.mdc-card__body { position: relative; padding: .7rem .8rem .9rem; border-top: 4px solid var(--mdc-accent); }
.mdc-card__number { position: absolute; right: .6rem; top: -2.1rem; min-width: 2.4rem; height: 2.4rem; padding: 0 .3rem; border-radius: 999px; background: var(--mdc-accent); color: var(--mdc-secondary); font: 800 1.15rem/2.4rem system-ui, sans-serif; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.mdc-card__name { font-size: 1rem; line-height: 1.2; margin: 0; font-weight: 700; }
.mdc-card__meta { margin: .2rem 0 0; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--mdc-accent); font-weight: 600; }
.mdc-card__text { font-size: .85rem; margin: .5rem 0 0; font-style: italic; opacity: .85; }
.mdc-card__contact { font-size: .82rem; margin: .5rem 0 0; display: flex; flex-direction: column; gap: .15rem; word-break: break-word; }
.mdc-cards--small .mdc-card__number { width: auto; min-width: 1.9rem; height: 1.9rem; line-height: 1.9rem; font-size: .95rem; top: -1.6rem; }
.mdc-cards--small .mdc-card__name { font-size: .85rem; }

/* ---------- Line-up on half a pitch ---------- */
.mdc-lineup { margin: 1rem 0 2rem; }
.mdc-pitch { position: relative; width: 100%; max-width: none; margin: 0; aspect-ratio: 68 / 64; border-radius: 14px; overflow: hidden;
	background: repeating-linear-gradient(180deg, #2f8f3a 0 8.33%, #2a8234 8.33% 16.66%);
	box-shadow: inset 0 0 0 3px rgba(255,255,255,.85), 0 10px 30px rgba(0,0,0,.25); }
.mdc-pitch > span { position: absolute; border: 2px solid rgba(255,255,255,.8); pointer-events: none; }
.mdc-pitch__center { left: 35%; width: 30%; top: -15%; aspect-ratio: 1; border-radius: 50%; }
.mdc-pitch__box { left: 20%; width: 60%; bottom: 0; height: 27%; border-bottom: 0 !important; }
.mdc-pitch__goalbox { left: 36%; width: 28%; bottom: 0; height: 9%; border-bottom: 0 !important; }
.mdc-pitch__arc { left: 41%; width: 18%; bottom: 23%; aspect-ratio: 2 / 1; border-radius: 50% 50% 0 0 / 100% 100% 0 0; border-bottom: 0 !important; clip-path: inset(0 0 22% 0); }
.mdc-pitch__formation { top: .6rem; left: .8rem; border: 0 !important; color: #fff; font: 800 1rem system-ui, sans-serif; letter-spacing: .08em; opacity: .9; }
.mdc-slot { position: absolute; transform: translate(-50%, -50%); width: clamp(48px, 12%, 86px); display: flex; flex-direction: column; align-items: center; text-align: center; }
.mdc-slot .mdc-photo { width: 100%; height: auto; aspect-ratio: var(--mdc-photo-ratio, 2 / 3); object-fit: cover; border-radius: 8px; border: 2px solid #fff; box-shadow: 0 4px 12px rgba(0,0,0,.35); background: color-mix(in srgb, var(--mdc-accent) 60%, #fff); }
.mdc-slot__name { margin-top: .25rem; padding: .1rem .4rem; border-radius: 4px; background: rgba(0,0,0,.65); color: #fff; font-size: clamp(.58rem, 1.5vw, .78rem); line-height: 1.3; white-space: nowrap; }
.mdc-slot__name b { color: #ffd34d; }
.mdc-bench { margin: 1.2rem 0 0; }
.mdc-bench__title { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Scoreboard ("Anzeigetafel") ---------- */
.mdc-board { display: block; position: relative; margin: 0 0 1.5rem; padding: 1.1rem 1rem 1rem; border-radius: 16px; color: #fff; text-decoration: none !important;
	background: var(--mdc-board-bg, radial-gradient(120% 140% at 50% 0%, #26313a 0%, #0d1317 70%)); box-shadow: 0 12px 30px rgba(0,0,0,.3), inset 0 0 0 1px rgba(255,255,255,.08); overflow: hidden; }
.mdc-board::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--mdc-accent); }
.mdc-board:hover { color: #fff; }
.mdc-board__title { display: flex; justify-content: center; align-items: center; gap: .6rem; font: 700 .78rem system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.mdc-board__teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .5rem; margin: .9rem 0 .6rem; }
.mdc-board__team { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.mdc-board__logo { width: clamp(56px, 22vw, 96px) !important; height: clamp(56px, 22vw, 96px) !important; object-fit: contain; border-radius: 50%; background: #fff; padding: 6px; box-shadow: 0 0 0 3px rgba(255,255,255,.15); }
.mdc-board__logo--badge { display: grid; place-items: center; padding: 0; background: linear-gradient(145deg, #3b4752, #1b232a); color: #fff; font: 800 clamp(1.1rem, 5vw, 1.8rem) system-ui, sans-serif; }
.mdc-board__name { margin-top: .5rem; font-weight: 700; font-size: clamp(.8rem, 3.4vw, 1rem); line-height: 1.2; }
.mdc-board__side { font-size: max(11px, .65rem); letter-spacing: .12em; text-transform: uppercase; opacity: .6; }
.mdc-board__score { display: flex; align-items: center; gap: .25rem; }
.mdc-board__digit { display: inline-block; min-width: 1.15em; padding: .05em .12em; border-radius: 8px; background: #000; color: #ffcc33; text-align: center;
	font: 800 clamp(2.4rem, 11vw, 4.2rem)/1.05 "Courier New", ui-monospace, monospace; text-shadow: var(--mdc-board-glow, 0 0 14px rgba(255,204,51,.6)); box-shadow: var(--mdc-board-box, inset 0 0 0 2px #1d2329, inset 0 -6px 12px rgba(255,255,255,.05)); }
.mdc-board__colon { font: 800 clamp(2rem, 9vw, 3.4rem) system-ui, sans-serif; color: #ffcc33; opacity: .9; }
.mdc-board__dash { font: 800 clamp(2.6rem, 12vw, 4.4rem) system-ui, sans-serif; color: #ffcc33; padding: 0 .3em; }
.mdc-board__info { text-align: center; font-size: .85rem; opacity: .85; }
.mdc-board__live { background: #e53935; color: #fff; padding: .1rem .5rem; border-radius: 4px; letter-spacing: .1em; animation: mdc-pulse 1.4s infinite; }
.mdc-board__result { padding: .1rem .5rem; border-radius: 4px; letter-spacing: .06em; }
.mdc-board__result--W { background: #1a8f3c; } .mdc-board__result--D { background: #6b7280; } .mdc-board__result--L { background: #c62828; }
.mdc-board--empty p { text-align: center; margin: 1rem 0 .3rem; opacity: .8; }
@keyframes mdc-pulse { 50% { opacity: .55; } }

/* ---------- Team / board hero image ---------- */
.mdc-hero { position: relative; margin: 0 0 1.5rem; border-radius: 16px; overflow: hidden; aspect-ratio: 1500 / 600; background: linear-gradient(135deg, var(--mdc-accent), #0d1317); }
.mdc-hero__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mdc-hero__caption { position: absolute; inset: auto 0 0; padding: 2.5rem 1.2rem 1rem; background: linear-gradient(transparent, rgba(0,0,0,.75)); color: #fff; display: flex; flex-direction: column; }
.mdc-hero--empty .mdc-hero__caption { inset: 0; justify-content: flex-end; }
.mdc-hero__name { font: 800 clamp(1.5rem, 5vw, 2.8rem)/1.05 system-ui, sans-serif; text-transform: uppercase; letter-spacing: .02em; }
.mdc-hero__league { font-size: .9rem; opacity: .85; text-transform: uppercase; letter-spacing: .1em; }

/* ---------- Team list ---------- */
.mdc-teamlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin: 1rem 0 2rem; }
.mdc-teamlist__item { position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 5 / 2; border-radius: 12px; overflow: hidden; color: var(--mdc-on-accent) !important; text-decoration: none !important; background: linear-gradient(135deg, var(--mdc-accent), color-mix(in srgb, var(--mdc-accent) 85%, #000)); box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.mdc-teamlist__item img, .mdc-teamlist__ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.mdc-teamlist__item:hover img { transform: scale(1.05); }
.mdc-teamlist__item:has(img) { color: #fff !important; }
.mdc-teamlist__item:not(:has(img))::after { display: none; }
.mdc-teamlist__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(0,0,0,.75)); }
.mdc-teamlist__name, .mdc-teamlist__league { position: relative; z-index: 1; padding: 0 1rem; }
.mdc-teamlist__name { font: 800 1.3rem system-ui, sans-serif; text-transform: uppercase; }
.mdc-teamlist__league { padding-bottom: .8rem; font-size: .8rem; opacity: .85; }

/* ---------- Sponsors: uniform tiles with a 1 mm frame ---------- */
.mdc-sponsors { margin: 0 0 2rem; }
.mdc-sponsors__title { font-size: 1.1rem; text-transform: uppercase; letter-spacing: .1em; text-align: center; margin: 0 0 1rem; }
.mdc-sponsors__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--mdc-sponsor-w, 140px), 1fr)); gap: 1rem; }
.mdc-sponsors--l { --mdc-sponsor-w: 220px; } .mdc-sponsors--m { --mdc-sponsor-w: 170px; } .mdc-sponsors--s { --mdc-sponsor-w: 120px; }
.mdc-sponsors__item a, .mdc-sponsors__item > img, .mdc-sponsors__item > span { display: grid; place-items: center; aspect-ratio: 3 / 2; padding: 6%; background: var(--mdc-sponsor-bg, #fff); border: 1mm solid var(--mdc-sponsor-border, var(--mdc-accent)); border-radius: 8px; transition: transform .2s ease; }
.mdc-sponsors__item a:hover { transform: scale(1.04); }
.mdc-sponsors__item img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.mdc-sponsors__name { font-weight: 700; color: var(--mdc-ink); text-align: center; }

.mdc-ticker__title { text-align: center; text-transform: uppercase; letter-spacing: .08em; font-size: 1rem; }

.mdc-sfv { margin: 0 0 2rem; align-self: stretch; min-width: min(300px, calc(100vw - 32px)); }
.mdc-sfv__source { font-size: .75rem; opacity: .7; text-align: right; margin: .3rem 0 0; }
.mdc-training th[scope=row] { text-align: left; white-space: nowrap; }
.mdc-sponsors__name small { display: block; font-weight: 400; font-size: .75em; opacity: .7; }
.mdc-sponsors__name { font-size: .85rem; line-height: 1.25; hyphens: auto; overflow-wrap: anywhere; }
.mdc-sponsors--s { --mdc-sponsor-w: 150px; }

/* Goals in the ticker: which team scored */
.mdc-ev.is-ours, .mdc-ev.is-opponent { border-left: 5px solid; padding-left: .5rem; border-radius: 4px; }
.mdc-ev.is-ours { border-color: var(--mdc-accent); background: color-mix(in srgb, var(--mdc-accent) 12%, transparent); }
.mdc-ev.is-opponent { border-color: #c2410c; background: rgba(194, 65, 12, .1); }
.mdc-ev__team { display: inline-block; margin-right: .4rem; padding: .05rem .45rem; border-radius: 4px; color: #fff; font-size: .85em; }
.mdc-ev.is-ours .mdc-ev__team { background: var(--mdc-accent); }
.mdc-ev.is-opponent .mdc-ev__team { background: #c2410c; }
.mdc-ticker__head .mdc-team.is-ours { color: var(--mdc-accent); font-weight: 700; }
.mdc-m-events li.is-ours { border-left: 4px solid var(--mdc-accent); padding-left: .4rem; }
.mdc-m-events li.is-opponent { border-left: 4px solid #c2410c; padding-left: .4rem; }
.mdc-team-tag { padding: 0 .3rem; border-radius: 3px; color: #fff; background: #c2410c; }
.mdc-m-events li.is-ours .mdc-team-tag { background: var(--mdc-accent); }
.mdc-m-hint { font-size: .85rem; opacity: .7; }

/* Line-up: the pitch fills the block (like a real half pitch), players as portrait cards in the club's photo format */
.mdc-slot { width: calc(clamp(64px, 9%, 132px) * var(--mdc-slot-scale, 1)); }
.mdc-pitch--r4 .mdc-slot { width: calc(clamp(60px, 7%, 110px) * var(--mdc-slot-scale, 1)); }
.mdc-slot .mdc-photo { border-radius: 8px; object-position: 50% 20%; }
.mdc-slot__name { margin-top: .3rem; font-size: var(--mdc-slot-name-size, max(11px, clamp(.7rem, 1.1vw, .9rem))); line-height: 1.2; white-space: normal; max-width: 150%; overflow-wrap: normal; }
.mdc-bench .mdc-cards { grid-template-columns: repeat(auto-fill, minmax(clamp(96px, 11%, 150px), 1fr)); gap: .8rem; }
.mdc-bench .mdc-card__body { padding: .5rem .55rem .6rem; }
.mdc-bench .mdc-card__name { font-size: max(12px, .85rem); }
/* Tablets and phones: a taller pitch, so four cards per row and the names keep their room */
@media (max-width: 900px) { .mdc-pitch { aspect-ratio: 68 / 100; } .mdc-slot { width: calc(clamp(60px, 13%, 110px) * var(--mdc-slot-scale, 1)); } .mdc-pitch--r4 .mdc-slot { width: calc(clamp(56px, 12%, 100px) * var(--mdc-slot-scale, 1)); } }
@media (max-width: 600px) { .mdc-pitch { aspect-ratio: 68 / 146; } .mdc-slot { width: calc(18.5% * min(var(--mdc-slot-scale, 1), 1)); } .mdc-pitch--r4 .mdc-slot { width: calc(16.5% * min(var(--mdc-slot-scale, 1), 1)); } .mdc-slot__name { padding: .1rem .3rem; } }
@media (max-width: 420px) { .mdc-pitch--r4 { aspect-ratio: 68 / 160; } }
/* Background around the pitch: white frame or stadium (stands as stripes, apron in a darker green) */
.mdc-lineup.is-frame .mdc-lineup__field { padding: clamp(8px, 1.4vw, 16px); background: #fff; border-radius: 18px; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.mdc-lineup.is-frame .mdc-pitch { box-shadow: inset 0 0 0 3px var(--mdc-pitch-line, rgba(255,255,255,.85)); }
.mdc-lineup.is-stadium .mdc-lineup__field { padding: clamp(14px, 3.5vw, 48px) clamp(10px, 2.5vw, 34px); border-radius: 20px;
	background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,0) 35%), repeating-linear-gradient(0deg, #3d4955 0 9px, #34404b 9px 18px); box-shadow: 0 14px 40px rgba(0,0,0,.3); }
.mdc-lineup.is-stadium .mdc-pitch { box-shadow: inset 0 0 0 3px var(--mdc-pitch-line, rgba(255,255,255,.85)), 0 0 0 clamp(6px, 1.2vw, 14px) color-mix(in srgb, var(--mdc-pitch-color, #2f8f3a) 70%, #000), 0 10px 30px rgba(0,0,0,.45); }

/* Match page */
.mdc-report__summary { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 0 0 2rem; }
.mdc-report__col { padding: .8rem 1rem; border-radius: 12px; background: #fff; border-top: 5px solid #9ca3af; box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.mdc-report__col.is-ours { border-top-color: var(--mdc-accent); }
.mdc-report__col.is-opponent { border-top-color: #c2410c; }
.mdc-report__col h3 { margin: 0 0 .5rem; font-size: 1rem; }
.mdc-report__col ul { list-style: none; margin: 0; padding: 0; }
.mdc-report__col li { padding: .2rem 0; }
.mdc-report__none { opacity: .5; }
@media (max-width: 480px) { .mdc-report__summary { gap: .5rem; } .mdc-report__col { padding: .6rem; font-size: .9rem; } }
.mdc-sponsors__grid { grid-template-columns: repeat(auto-fill, minmax(min(var(--mdc-sponsor-w, 140px), 44%), 1fr)); }
.mdc-card__name, .mdc-card__meta { overflow-wrap: anywhere; hyphens: auto; }

/* Tables become stacked rows on phones */
@media (max-width: 600px) {
	.mdc-training thead { display: none; }
	.mdc-training tr { display: block; padding: .6rem 0; border-bottom: 1px solid var(--mdc-border); }
	.mdc-training th, .mdc-training td { display: block; border: 0; padding: .1rem 0; text-align: left; }
	.mdc-training th[scope=row] { font-weight: 800; color: var(--mdc-accent); }
}

/* ---------- Front-page banner ---------- */
.mdc-hero2 { position: relative; overflow: hidden; display: grid; place-items: center; min-height: clamp(420px, 72vh, 720px); padding: 4rem 1.25rem 3.5rem; color: #fff; text-align: center; isolation: isolate;
	background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--mdc-accent) 85%, #fff 0%), #071009 75%); }
.mdc-hero2__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.04); animation: mdc-kenburns 18s ease-out both; }
.mdc-hero2::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4,10,6,.35) 0%, rgba(4,10,6,.55) 55%, color-mix(in srgb, var(--mdc-accent) 70%, #000) 100%); }
.mdc-hero2::after { content: ""; position: absolute; inset: auto -5% -1px -5%; height: 70px; z-index: -1; background: var(--wp--preset--color--light, #f3f5f4); clip-path: polygon(0 100%, 100% 30%, 100% 100%); }
.mdc-hero2__inner { max-width: 820px; display: flex; flex-direction: column; align-items: center; gap: .6rem; animation: mdc-rise .9s cubic-bezier(.2,.8,.2,1) both; }
.mdc-hero2__logo { width: clamp(84px, 16vw, 132px); height: auto; padding: clamp(6px, 1.2vw, 12px); background: rgba(255,255,255,.94); border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.mdc-hero2__club { margin: .2rem 0 0; font-family: var(--wp--preset--font-family--condensed, system-ui); font-weight: 800; font-size: clamp(2.8rem, 11vw, 6.5rem); line-height: .92; letter-spacing: .01em; text-transform: uppercase; text-shadow: 0 6px 30px rgba(0,0,0,.45); }
.mdc-hero2__place { margin: 0; font-size: clamp(.95rem, 2.4vw, 1.2rem); letter-spacing: .18em; text-transform: uppercase; opacity: .9; }
.mdc-hero2__next { margin-top: 1rem; display: grid; gap: .1rem; padding: .8rem 1.4rem; border-radius: 14px; color: #fff !important; text-decoration: none !important; background: rgba(0,0,0,.35); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.25); transition: transform .2s ease, background .2s ease; }
.mdc-hero2__next:hover { transform: translateY(-2px); background: rgba(0,0,0,.5); }
.mdc-hero2__count { font-family: var(--wp--preset--font-family--condensed, system-ui); font-weight: 800; font-size: 1.6rem; text-transform: uppercase; color: #ffcc33; letter-spacing: .04em; }
.mdc-hero2__vs { font-weight: 700; font-size: 1.05rem; }
.mdc-hero2__date { font-size: .85rem; opacity: .85; }
.mdc-hero2__live { background: #e53935; color: #fff; padding: .05rem .5rem; border-radius: 4px; animation: mdc-pulse 1.4s infinite; }
.mdc-hero2__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 1.2rem; }
.mdc-btn { display: inline-block; padding: .75rem 1.5rem; border-radius: 999px; background: #fff; color: var(--mdc-ink) !important; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .9rem; text-decoration: none !important; box-shadow: 0 6px 18px rgba(0,0,0,.25); transition: transform .2s ease, box-shadow .2s ease; }
.mdc-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.3); }
.mdc-btn--ghost { background: transparent; color: #fff !important; border: 2px solid rgba(255,255,255,.85); box-shadow: none; }
@keyframes mdc-kenburns { to { transform: scale(1.12); } }
@keyframes mdc-rise { from { opacity: 0; transform: translateY(24px); } }
@media (prefers-reduced-motion: reduce) { .mdc-hero2__bg, .mdc-hero2__inner { animation: none; } }
.mdc-board__comp{display:block;margin-top:.25em;font-size:max(11px, .85em);opacity:.75}

/* ---------- Block design settings: hover effect (global in step 1, per block in the editor) ---------- */
.mdc-block.is-hover-zoom { --mdc-hover-tf: scale(1.05); }
.mdc-block.is-hover-lift { --mdc-hover-tf: translateY(-6px); }
.mdc-block.is-hover-none { --mdc-hover-tf: none; }
.mdc-block { color: inherit; }
/* Builders of the add-on (also .mdc-block since 0.34) keep their own spacing */
.mdc-block.has-background:not(:where(.mdc-board2, .mdc-pk, .mdc-lk)) { padding: clamp(1rem, 3vw, 2rem); }
:is(.mdc-card, .mdc-teamlist__item, a.mdc-board, .mdc-sponsors__tile, .mdc-btn, .mdc-hero2__next) { transition: transform .25s ease, box-shadow .25s ease; }
:is(.mdc-card, .mdc-teamlist__item, a.mdc-board, .mdc-sponsors__tile, .mdc-btn, .mdc-hero2__next):hover { transform: var(--mdc-hover-tf, scale(1.05)); z-index: 2; box-shadow: 0 14px 32px rgba(0,0,0,.25); }
.mdc-teamlist__item:hover img { transform: none; }
@media (prefers-reduced-motion: reduce) { :is(.mdc-card, .mdc-teamlist__item, a.mdc-board, .mdc-sponsors__tile, .mdc-btn, .mdc-hero2__next):hover { transform: none; } }
.mdc-empty { padding: 1rem; border: 2px dashed #c5cdc8; border-radius: 10px; color: #5b6660; font-size: .9rem; text-align: center; }

/* ---------- Instagram images ---------- */
.mdc-share { margin: 1.5rem 0; padding: 1rem 1.2rem; border-radius: 14px; background: #fff; color: var(--mdc-ink); box-shadow: 0 6px 20px rgba(0,0,0,.1); border-left: 5px solid var(--mdc-accent); }
.mdc-share__head { display: flex; flex-wrap: wrap; gap: .3rem .8rem; align-items: baseline; margin-bottom: .8rem; }
.mdc-share__head span { font-size: .9rem; opacity: .7; }
.mdc-share__buttons { display: flex; flex-wrap: wrap; gap: .6rem; }
.mdc-btn.mdc-btn--dark { background: var(--mdc-ink); color: #fff !important; border: 0; cursor: pointer; font: inherit; font-weight: 700; padding: .7rem 1.2rem; }
.mdc-btn--dark:disabled { opacity: .6; cursor: wait; }
.mdc-share__preview { display: block; width: 100%; max-width: 320px; margin-top: 1rem; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.mdc-share__tpl { display: flex; align-items: center; gap: .4rem; font-weight: 600; } .mdc-share__tpl select { padding: .55rem .6rem; border-radius: 8px; }
.mdc-share__photo .mdc-file { margin: 0; font-size: .9rem; } .mdc-share__photo .mdc-file__hint { display: none; }

/* ---------- Sign-up forms and helper shifts ---------- */
.mdc-form-wrap { margin: 2rem 0; scroll-margin-top: 90px; }
.mdc-form { padding: clamp(1rem, 3vw, 1.8rem); border-radius: 16px; background: #fff; color: var(--mdc-ink); box-shadow: 0 8px 26px rgba(0,0,0,.08); border-top: 5px solid var(--mdc-accent); }
.mdc-form__title { margin: 0 0 1rem; text-transform: uppercase; letter-spacing: .03em; }
.mdc-form__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, max(300px, calc((100% - 2.2rem) / 3))), 1fr)); gap: 0 1.1rem; align-items: stretch; }
/* At most 3 fields per row; a column is at least 300 px wide, so the form gets 2 or 1 per row when it is narrower
   (tablets, columns, phones) and the longest choice ("Weiss nicht – bitte beraten") is never cut off. No container
   query (0.35.10): containment took the width of a form in a row group (flex), it shrank to 58 px. */
:where(.is-layout-flex, .wp-block-group-is-layout-flex) > :is(.mdc-form-wrap, .wp-block-mdc-form, .mdc-block:has(> .mdc-form-wrap)) { flex: 1 1 320px; min-width: min(100%, 300px); }
/* Phones: a row group with a form wraps, the form gets the whole width (a row of the editor is not responsive). */
@media (max-width: 600px) { .is-layout-flex:has(> :is(.mdc-form-wrap, .wp-block-mdc-form, .mdc-block:has(> .mdc-form-wrap))) { flex-wrap: wrap !important; } }
/* The fields of a row stand on the same height: the label above, the field at the bottom of the cell (0.35.9). */
.mdc-form__field { margin: 0 0 .9rem; display: flex; flex-direction: column; justify-content: flex-end; gap: .3rem; min-width: 0; }
.mdc-form__field label { line-height: 1.3; }
.mdc-form__field select { text-overflow: ellipsis; }
/* Text fields and selects of a row exactly the same height (browsers draw selects a little lower). */
.mdc-form :is(input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], select) { height: calc(1.5em + 1.4rem + 4px); line-height: 1.5; }
.mdc-form__field--checkbox { grid-column: 1 / -1; justify-content: flex-start; }
.mdc-form__field--textarea { grid-column: 1 / -1; }
.mdc-form__field label { font-weight: 700; font-size: .9rem; }
.mdc-form__field label span { color: #c62828; }
.mdc-form :is(input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], select, textarea) { width: 100%; box-sizing: border-box; padding: .7rem .8rem; border: 2px solid #d5ddd8; border-radius: 10px; font: inherit; background: #fff; color: #0d1b12; transition: border-color .2s, box-shadow .2s; }
.mdc-form :is(input, select, textarea):focus { outline: none; border-color: var(--mdc-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--mdc-accent) 20%, transparent); }
.mdc-form__privacy { font-size: .88rem; }
.mdc-form__privacy input { margin-right: .4rem; }
.mdc-form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mdc-form__notice { padding: .9rem 1.1rem; border-radius: 10px; font-weight: 700; }
.mdc-form__notice.is-ok { background: #e3f6ea; color: #14532d; border-left: 5px solid #16a34a; }
.mdc-form__notice.is-error { background: #fdecec; color: #7f1d1d; border-left: 5px solid #dc2626; }
.mdc-shifts { margin: 2rem 0; scroll-margin-top: 90px; }
.mdc-shifts__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.mdc-shift { display: grid; grid-template-columns: 84px 1fr; gap: 1rem; padding: 1rem; border-radius: 14px; background: #fff; color: var(--mdc-ink); box-shadow: 0 6px 18px rgba(0,0,0,.07); }
.mdc-shift__date { display: grid; place-content: center; text-align: center; border-radius: 12px; background: var(--mdc-accent); color: var(--mdc-on-accent); aspect-ratio: 1; }
.mdc-shift__date b { font-size: 2rem; line-height: 1; font-family: var(--wp--preset--font-family--condensed, system-ui); }
.mdc-shift__date span { text-transform: uppercase; font-size: .8rem; letter-spacing: .1em; font-weight: 700; }
.mdc-shift__body h3 { margin: 0; font-size: 1.15rem; }
.mdc-shift__body p { margin: .2rem 0; }
.mdc-shift__bar { height: 8px; margin: .5rem 0 .2rem; border-radius: 99px; background: #e5ebe7; overflow: hidden; }
.mdc-shift__bar span { display: block; height: 100%; width: var(--fill); background: var(--mdc-accent); border-radius: inherit; }
.mdc-shift__free { font-size: .88rem; font-weight: 700; }
.mdc-shift.is-full { opacity: .6; }
.mdc-shift__signup { margin-top: .6rem; }
.mdc-shift__signup > summary { list-style: none; display: inline-block; }
.mdc-shift__signup > summary::-webkit-details-marker { display: none; }
.mdc-shift__signup[open] > summary { display: none; }
.mdc-shift__signup .mdc-form { margin-top: .4rem; box-shadow: none; border: 1px solid #e3e8e5; border-top: 4px solid var(--mdc-accent); }
@media (max-width: 520px) { .mdc-shift { grid-template-columns: 1fr; } .mdc-shift__date { aspect-ratio: auto; grid-auto-flow: column; gap: .4rem; justify-content: start; padding: .4rem .8rem; } }

/* ---------- Design settings (page "Design" and per block): every value falls back to the default look ---------- */
/* Headings in club content follow the design settings (the theme leaves them alone). The prefix wins over WordPress' global heading styles. */
:is(.mdc-block, .mdc-report) :is(h1, h2, h3, h4) { font-family: var(--mdc-heading-font, inherit); color: var(--mdc-heading-color, inherit); }
/* Titles of sections */
:is(.mdc-block, .mdc-report) :is(.mdc-sponsors__title, .mdc-cards__title, .mdc-cards__group, .mdc-ticker__title, .mdc-form__title, .mdc-shifts > h2, .mdc-report__col h3, .mdc-bench__title, h2.wp-block-heading),
:is(.mdc-sponsors__title, .mdc-cards__title, .mdc-cards__group, .mdc-ticker__title, .mdc-form__title, .mdc-shifts > h2, .mdc-report__col h3, .mdc-bench__title) {
	font-family: var(--mdc-title-font, var(--mdc-heading-font, inherit)); color: var(--mdc-title-color, var(--mdc-heading-color, inherit)); }
.mdc-sponsors__title { font-size: var(--mdc-title-size, 1.1rem); }
:is(.mdc-cards__title, .mdc-shifts > h2) { font-size: var(--mdc-title-size, revert); }
:is(.mdc-ticker__title, .mdc-report__col h3, .mdc-bench__title) { font-size: var(--mdc-title-size, 1rem); }
.mdc-form__title { font-size: var(--mdc-title-size, 1.3rem); }
/* Names */
:is(.mdc-card__name, .mdc-teamlist__name, .mdc-sponsors__name, .mdc-shift__body h3) { font-family: var(--mdc-name-font, inherit); }
/* Names that are headings (person cards, shifts, news) */
:is(.mdc-block, .mdc-report) :is(.mdc-card__name, .mdc-shift__body h3, .mdc-news2__name) { font-family: var(--mdc-name-font, var(--mdc-heading-font, inherit)); color: var(--mdc-name-color, var(--mdc-heading-color, inherit)); }
.mdc-card__name { font-size: var(--mdc-name-size, 1rem); color: var(--mdc-name-color, inherit); }
.mdc-cards--small .mdc-card__name { font-size: var(--mdc-name-size, .85rem); }
.mdc-teamlist__name { font-family: var(--mdc-name-font, system-ui, sans-serif); font-size: var(--mdc-name-size, 1.3rem); color: var(--mdc-name-color, inherit); }
.mdc-sponsors__name { font-size: var(--mdc-name-size, 1rem); color: var(--mdc-name-color, var(--mdc-ink)); }
.mdc-shift__body h3 { font-size: var(--mdc-name-size, 1.15rem); color: var(--mdc-name-color, inherit); }
/* Running text */
:is(.mdc-card__text, .mdc-card__contact, .mdc-shift__body p, .mdc-form__field label, .mdc-form__privacy, .mdc-training, .mdc-report__col li, .mdc-teamlist__league, .mdc-sponsors__name small) {
	font-family: var(--mdc-text-font, inherit); color: var(--mdc-text-color, inherit); }
:is(.mdc-card__text, .mdc-card__contact) { font-size: var(--mdc-text-size, .85rem); }
:is(.mdc-shift__body p, .mdc-form__field label, .mdc-training, .mdc-report__col li) { font-size: var(--mdc-text-size, inherit); }
.mdc-teamlist__league { font-size: var(--mdc-text-size, .8rem); }
/* Tiles: background, frame, corners */
:is(.mdc-card, .mdc-form, .mdc-shift, .mdc-report__col) {
	background: var(--mdc-tile-bg, #fff); border: var(--mdc-tile-border-w, 0) solid var(--mdc-tile-border-c, transparent); }
.mdc-card { border-radius: var(--mdc-tile-radius, 12px); }
:is(.mdc-form, .mdc-shift, .mdc-report__col) { border-radius: var(--mdc-tile-radius, 14px); }
.mdc-form { border-top: 5px solid var(--mdc-accent); }
.mdc-teamlist__item { border-radius: var(--mdc-tile-radius, 12px); border: var(--mdc-tile-border-w, 0) solid var(--mdc-tile-border-c, transparent); }
/* Tile width: how wide each tile is at least (the grid fills the row) */
.mdc-cards { grid-template-columns: repeat(auto-fill, minmax(min(calc(50% - .7rem), var(--mdc-tile-size, 150px)), 1fr)); }
.mdc-cards--small { grid-template-columns: repeat(auto-fill, minmax(min(calc(50% - .5rem), var(--mdc-tile-size, 110px)), 1fr)); }
/* Person blocks: fixed number of columns or fixed card width (block settings); on phones at most two columns */
.mdc-cards.has-cols { grid-template-columns: repeat(var(--mdc-cols), minmax(0, 1fr)); }
.mdc-cards.has-width { grid-template-columns: repeat(auto-fill, min(100%, var(--mdc-card-w))); }
@media (max-width: 600px) { .mdc-cards.has-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mdc-cards.has-width { grid-template-columns: repeat(auto-fill, minmax(min(calc(50% - .7rem), var(--mdc-card-w)), 1fr)); } }
/* Block "Team – people": one section per group */
.mdc-team-people__group .mdc-cards { margin-bottom: 1.2rem; }
.mdc-cards__group { margin: 1.4rem 0 .7rem; font-size: var(--mdc-title-size, 1.15rem); }
.mdc-team-people > .mdc-team-people__group:first-child .mdc-cards__group { margin-top: .4rem; }
.mdc-teamlist { grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--mdc-tile-size, 240px)), 1fr)); }

/* Sponsors: every tile exactly the same size, logo fitted inside, whatever the picture size */
.mdc-sponsors__grid { grid-template-columns: repeat(auto-fill, minmax(min(calc(50% - .5rem), var(--mdc-tile-size, var(--mdc-sponsor-w, 140px))), 1fr)); }
.mdc-sponsors__item { min-width: 0; }
.mdc-sponsors__item .mdc-sponsors__tile {
	position: relative; display: block; box-sizing: border-box; width: 100%; height: auto; aspect-ratio: 3 / 2; overflow: hidden; padding: 0;
	background: var(--mdc-tile-bg, var(--mdc-sponsor-bg, #fff));
	border: var(--mdc-tile-border-w, 3px) solid var(--mdc-tile-border-c, var(--mdc-sponsor-border, var(--mdc-accent)));
	border-radius: var(--mdc-tile-radius, 8px); text-decoration: none; }
.mdc-sponsors__tile img { position: absolute; inset: 10%; width: 80%; height: 80%; max-width: none; max-height: none; object-fit: contain; }
.mdc-sponsors__tile .mdc-sponsors__name { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; padding: 8%; line-height: 1.2; text-align: center; }
.mdc-sponsors__tile .mdc-sponsors__name small { font-weight: 400; font-size: .8em; opacity: .7; }
:is(.mdc-sponsors__name, .mdc-card__name, .mdc-teamlist__name, .mdc-shift__body h3) { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; word-break: normal; }

/* ---------- Push button ---------- */
.mdc-push { margin: 1.5rem 0; display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; }
.mdc-push__teams summary { cursor: pointer; font-size: .9rem; font-weight: 600; }
.mdc-push__teams > div { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .3rem 1rem; padding: .6rem 0; font-size: .9rem; }
.mdc-push__state, .mdc-push__ios { margin: 0; font-size: .9rem; }
.mdc-push__ios { padding: .7rem .9rem; border-radius: 10px; background: #fff7e0; color: #5b4300; }
/* Buttons (forms, shifts, push, Instagram images) */
.mdc-btn.mdc-btn--dark { background: var(--mdc-btn-bg, var(--mdc-ink)); color: var(--mdc-btn-color, #fff) !important; font-family: var(--mdc-btn-font, inherit); font-size: var(--mdc-btn-size, inherit); border-radius: var(--mdc-btn-radius, 999px); }

/* ---------- Design settings, part 2: every element of the plugin ---------- */
.mdc-card__meta { color: var(--mdc-role-color, var(--mdc-accent)); font-family: var(--mdc-text-font, inherit); font-size: var(--mdc-text-size, .82rem); } /* role on the card: "Text: size" too */
.mdc-bench .mdc-card__meta { font-size: var(--mdc-text-size, .68rem); }
:is(.mdc-cards, .mdc-teamlist, .mdc-sponsors__grid, .mdc-shifts__list) { gap: var(--mdc-tile-gap, 1rem); }
:is(.mdc-card, .mdc-teamlist__item, .mdc-form, .mdc-shift, .mdc-report__col) { box-shadow: 0 6px 20px rgba(0,0,0, calc(var(--mdc-tile-shadow, .6) * .2)); }

/* Front-page banner */
.mdc-hero2 { min-height: var(--mdc-hero-height, clamp(420px, 72vh, 720px)); color: var(--mdc-hero-color, #fff);
	background: var(--mdc-hero-bg, radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--mdc-accent) 85%, #fff 0%), #071009 75%)); }
.mdc-hero2::before { background: linear-gradient(180deg, rgba(4,10,6, calc(var(--mdc-hero-overlay, .5) * .7)) 0%, rgba(4,10,6, var(--mdc-hero-overlay, .5)) 55%, color-mix(in srgb, var(--mdc-accent) 70%, #000) 100%); }
/* Club name always light on the photo (themes often colour headings dark), with a shadow for bright photos */
.mdc-hero2 .mdc-hero2__club { font-family: var(--mdc-hero-font, var(--wp--preset--font-family--condensed, system-ui)); font-size: var(--mdc-hero-size, clamp(2.8rem, 10vw, 6rem)); color: var(--mdc-hero-color, #fff); text-shadow: 0 2px 6px rgba(0,0,0,.55), 0 6px 30px rgba(0,0,0,.45); }
.mdc-hero2__next { color: var(--mdc-hero-color, #fff) !important; }
.mdc-hero2__count { color: var(--mdc-hero-count, #ffd34d); }
.mdc-hero2 .mdc-btn:not(.mdc-btn--ghost) { background: var(--mdc-hero-btn-bg, #fff); color: var(--mdc-hero-btn-color, var(--mdc-ink)) !important; }
.mdc-hero2 .mdc-btn--ghost { color: var(--mdc-hero-btn-bg, #fff) !important; border-color: var(--mdc-hero-btn-bg, rgba(255,255,255,.85)); }

/* Scoreboard */
.mdc-board, .mdc-board:hover { color: var(--mdc-board-color, #fff); border: var(--mdc-board-border-w, 0) solid var(--mdc-board-border-c, transparent); border-radius: var(--mdc-board-radius, 16px); }
.mdc-board__digit { background: var(--mdc-board-digit-bg, #000); color: var(--mdc-board-digit, #ffcc33); }
.mdc-board__score .mdc-board__digit { font-size: var(--mdc-board-digit-size, clamp(2.6rem, 12vw, 4.4rem)); }
:is(.mdc-board__colon, .mdc-board__dash) { color: var(--mdc-board-digit, #ffcc33); }
.mdc-board__name { font-size: var(--mdc-board-name-size, clamp(.8rem, 3.4vw, 1rem)); }

/* Pitch */
.mdc-pitch { background: repeating-linear-gradient(180deg, var(--mdc-pitch-color, #2f8f3a) 0 8.33%, color-mix(in srgb, var(--mdc-pitch-color, #2f8f3a) 88%, #000) 8.33% 16.66%);
	box-shadow: inset 0 0 0 3px var(--mdc-pitch-line, rgba(255,255,255,.85)), 0 10px 30px rgba(0,0,0,.25); }
.mdc-pitch > span:not(.mdc-pitch__formation) { border-color: var(--mdc-pitch-line, rgba(255,255,255,.8)); }
.mdc-pitch__formation { color: var(--mdc-pitch-line, #fff); }
.mdc-slot__name { background: var(--mdc-pitch-name-bg, rgba(0,0,0,.65)); color: var(--mdc-pitch-name, #fff); }
.mdc-slot__name b { color: var(--mdc-pitch-number, #ffd34d); }
.mdc-slot .mdc-photo { border-color: var(--mdc-pitch-photo, #fff); }

/* Ticker and match report */
.mdc-ticker__events, .mdc-report { font-size: var(--mdc-ticker-size, inherit); }
.mdc-ev.is-ours { border-color: var(--mdc-ours, var(--mdc-accent)); background: color-mix(in srgb, var(--mdc-ours, var(--mdc-accent)) 12%, transparent); }
.mdc-ev.is-opponent { border-color: var(--mdc-opp, #c2410c); background: color-mix(in srgb, var(--mdc-opp, #c2410c) 10%, transparent); }
.mdc-ev.is-ours .mdc-ev__team, .mdc-m-events li.is-ours .mdc-team-tag { background: var(--mdc-ours, var(--mdc-accent)); }
.mdc-ev.is-opponent .mdc-ev__team { background: var(--mdc-opp, #c2410c); }
.mdc-report__col.is-ours { border-top-color: var(--mdc-ours, var(--mdc-accent)); }
.mdc-report__col.is-opponent { border-top-color: var(--mdc-opp, #c2410c); }
.mdc-ticker__head .mdc-team.is-ours { color: var(--mdc-ours, var(--mdc-accent)); }

/* Tables and fixtures */
:is(.mdc-table, .mdc-list) { font-size: var(--mdc-table-size, inherit); font-family: var(--mdc-text-font, inherit); color: var(--mdc-text-color, inherit); }
.mdc-table thead th { background: var(--mdc-table-head-bg, transparent); color: var(--mdc-table-head, inherit); }

/* Team picture */
.mdc-hero { border-radius: var(--mdc-teamimg-radius, 16px); }
.mdc-hero__caption { color: var(--mdc-teamimg-color, #fff); background: linear-gradient(transparent, rgba(0,0,0, var(--mdc-teamimg-overlay, .75))); }
.mdc-hero__name { font-family: var(--mdc-teamimg-font, system-ui, sans-serif); font-size: var(--mdc-teamimg-size, clamp(1.5rem, 5vw, 2.8rem)); }
/* Team name and club name as H1, H2 or paragraph (block setting "Heading level"): the same look as the plain text
   before – no heading margins, colours or fonts of the theme */
.mdc-hero .mdc-hero__name { margin: 0; color: inherit; font-weight: 800; line-height: 1.05; letter-spacing: .02em; text-transform: uppercase; hyphens: inherit; overflow-wrap: inherit; word-break: inherit; font-family: var(--mdc-teamimg-font, system-ui, sans-serif); font-size: var(--mdc-teamimg-size, clamp(1.5rem, 5vw, 2.8rem)); }
.mdc-hero2 :is(h2, p).mdc-hero2__club { hyphens: auto; overflow-wrap: normal; word-break: normal; }
.mdc-share__private { flex-basis: 100%; font-size: .8rem; font-style: normal; opacity: .65; }

/* ---------- Scoreboard construction kit (mdc/matchboard + parts) ----------
   Parts sit freely on the board: left/top/width in %, sizes in cqw (share of the board width), so phones show the same picture smaller. */
.mdc-board2 { position: relative; container-type: inline-size; margin: 0 0 1.5rem; aspect-ratio: 100 / 56; border-radius: var(--mdc-board-radius, 16px); color: var(--mdc-board-color, #fff);
	background: var(--mdc-board-bg, radial-gradient(120% 140% at 50% 0%, #26313a 0%, #0d1317 70%)); box-shadow: 0 12px 30px rgba(0,0,0,.3), inset 0 0 0 1px rgba(255,255,255,.08);
	border: var(--mdc-board-border-w, 0) solid var(--mdc-board-border-c, transparent); overflow: hidden; }
.mdc-board2::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--mdc-accent); pointer-events: none; }
.mdc-board2__link { position: absolute; inset: 0; z-index: 1; }
.mdc-board2__empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; opacity: .8; }
/* No transform here: the editor animates blocks with inline transforms, which made parts jump. Empty space in a part lets clicks through to the parts below. */
.mdc-board2 > .mdc-bp { position: absolute; transform: none !important; margin: 0 !important; box-sizing: border-box; pointer-events: none; }
.mdc-board2 > .mdc-bp > *, .mdc-board2 > .mdc-bp.is-selected, .mdc-board2 > .mdc-bp :is(img, .mdc-board__logo) { pointer-events: auto !important; }
.mdc-bp { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-width: 0; font-size: max(11px, calc(var(--fs, 3) * 1cqw)); line-height: 1.2; }
/* Phones: a taller board, so the text that cannot shrink below 11 px still has room */
@media (max-width: 600px) { .mdc-board2 { aspect-ratio: 100 / 80 !important; } }
.mdc-bp :is(.mdc-board__name, .mdc-board__side, .mdc-bp__text) { font-family: inherit; color: inherit; margin: 0; }
.mdc-bp--board-title { flex-direction: row; flex-wrap: wrap; gap: .6em; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.mdc-bp--board-title .mdc-bp__text { opacity: .85; }
.mdc-bp--board-title :is(.mdc-board__result, .mdc-board__live) { font-size: max(11px, .9em); } /* small print on the board never below 11 px */
.mdc-bp--board-logo .mdc-board__logo { width: calc(var(--mdc-b-logo, 17) * 1cqw) !important; height: calc(var(--mdc-b-logo, 17) * 1cqw) !important; max-width: none; object-fit: contain; border-radius: var(--mdc-b-round, 50%);
	box-shadow: 0 0 0 var(--mdc-b-ring-w, 0) var(--mdc-b-ring, var(--mdc-accent)), 0 8px 20px rgba(0,0,0,.35); }
.mdc-bp--board-logo img.mdc-board__logo { padding: calc(var(--mdc-b-logo, 17) * .12cqw); background: #fff; } /* a wide club logo stays whole inside the round frame */
.mdc-bp--board-logo .mdc-board__logo--badge { display: flex; align-items: center; justify-content: center; font-size: calc(var(--mdc-b-logo, 17) * .36cqw); }
.mdc-bp--board-name { font-weight: 700; }
.mdc-bp--board-name .mdc-board__name { font-size: 1em; font-weight: inherit; }
.mdc-bp--board-name .mdc-board__side { font-size: max(11px, .6em); letter-spacing: .12em; text-transform: uppercase; opacity: .6; margin-top: .2em; }
.mdc-bp--board-score { flex-direction: row; gap: .08em; }
:where(.mdc-bp--board-score) { font-family: "Courier New", ui-monospace, monospace; font-weight: 800; }
.mdc-bp--board-score :is(.mdc-board__digit, .mdc-board__dash) { font-size: 1em; font-family: inherit; font-weight: inherit; line-height: 1.05; }
.mdc-bp--board-score.is-plain .mdc-board__digit { background: transparent; box-shadow: none; min-width: 0; }
.mdc-bp--board-score .mdc-board__digit { border-radius: var(--mdc-b-digit-radius, 8px); }
.mdc-bp--board-score .mdc-board__colon { color: var(--mdc-b-colon, var(--mdc-board-digit, #ffcc33)); font-size: .8em; font-family: inherit; font-weight: inherit; }
.mdc-bp--board-info .mdc-bp__text { opacity: .85; }
.mdc-bp--board-info .mdc-board__comp { font-size: max(11px, .85em); }
/* Editor helpers */
.mdc-board2 > .mdc-bp.is-selected { z-index: 3; outline: 1px dashed #3858e9; outline-offset: 3px; cursor: move; }
.mdc-bp-empty { font-size: 12px; opacity: .7; }
.mdc-bp-h { position: absolute; z-index: 6; width: 14px; height: 14px; border-radius: 50%; background: #3858e9; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.mdc-bp-h--move { left: -10px; top: -10px; cursor: move; }
.mdc-bp-h--size { right: -10px; bottom: -10px; cursor: nwse-resize; border-radius: 3px; }
.mdc-board2__handle { position: absolute; right: 2px; bottom: 2px; z-index: 5; width: 18px; height: 18px; cursor: nwse-resize; border-right: 3px solid #3858e9; border-bottom: 3px solid #3858e9; border-radius: 0 0 4px 0; background: rgba(56,88,233,.15); }
.mdc-bp-logo-btn { position: absolute !important; left: 50%; bottom: -1.2em; transform: translateX(-50%); z-index: 6; white-space: nowrap; font-size: 12px !important; }
.mdc-bp [contenteditable] { outline-offset: 2px; cursor: text; }
.mdc-upgrade { margin: .5rem 0 0 !important; }

/* ---------- Picture carousel (mdc/slider) ---------- */
.mdc-slider { position: relative; margin: 0 0 2.4rem; }
.mdc-slider.has-shadow { box-shadow: 0 34px 30px -26px rgba(0,0,0,.55); }
.mdc-slider__stage { position: relative; height: min(var(--mdc-slider-h, 520px), 62vw); overflow: hidden; background: #111; }
.mdc-slider__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .7s ease, transform .7s ease; }
.mdc-slider__slide.is-active { opacity: 1; z-index: 1; }
.mdc-slider__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mdc-slider.is-tiles .mdc-slider__slide { transition: none; }
.mdc-slider.is-slide .mdc-slider__slide { opacity: 1; transform: translateX(100%); }
.mdc-slider.is-slide .mdc-slider__slide.is-active { transform: none; }
.mdc-slider.is-slide.is-back .mdc-slider__slide:not(.is-active) { transform: translateX(-100%); }
.mdc-slider__tiles { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.mdc-slider__tiles span { position: absolute; background-repeat: no-repeat; opacity: 0; transform: scale(.6); animation: mdc-tile .55s ease forwards; }
@keyframes mdc-tile { to { opacity: 1; transform: none; } }
.mdc-slider__arrow { position: absolute; top: 50%; z-index: 3; width: 44px; height: 44px; margin-top: -22px; border: 0; background: none; cursor: pointer; opacity: .85; }
.mdc-slider__arrow::before { content: ""; position: absolute; inset: 12px; border: solid #fff; border-width: 0 0 3px 3px; filter: drop-shadow(0 1px 3px rgba(0,0,0,.6)); }
.mdc-slider__arrow.is-prev { left: 12px; } .mdc-slider__arrow.is-prev::before { transform: rotate(45deg); }
.mdc-slider__arrow.is-next { right: 12px; } .mdc-slider__arrow.is-next::before { transform: rotate(-135deg); }
.mdc-slider__arrow:hover { opacity: 1; }
.mdc-slider__dots { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 3; display: flex; justify-content: center; gap: 8px; }
.mdc-slider__dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.55); cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.mdc-slider__dots button.is-active { background: #fff; transform: scale(1.25); }

/* Sponsor tiles without logo: name max. 3 lines, place one line, never outside the tile */
.mdc-sponsors__tile .mdc-sponsors__name { overflow: hidden; }
.mdc-sponsors__name b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; font-weight: 700; max-width: 100%; }
.mdc-sponsors__name small { display: block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mdc-sponsors__grid { row-gap: 1rem; }
/* Sponsor strip (one row, rotating) */
.mdc-sponsors--strip .mdc-sponsors__item { transition: opacity .4s ease, transform .4s ease; }
.mdc-sponsors--strip .mdc-sponsors__item.is-out { opacity: 0; transform: scale(.92); }
.mdc-sponsors--strip .mdc-sponsors__item.is-in { animation: mdc-sp-in .5s ease; }
/* Sponsors in full rows (0.35.4): sponsors.js sets the number of columns (computers: as many tiles of at least
   --mdc-strip-w as fit, phones: the fixed number). Without JavaScript the normal grid, on phones the first ones only. */
.mdc-sponsors--strip { --mdc-strip-w: 130px; }
.mdc-sponsors--strip.is-js .mdc-sponsors__grid { grid-template-columns: repeat(var(--mdc-strip-cols, 3), minmax(0, 1fr)); }
@media (max-width: 600px) {
	.mdc-sponsors--strip:not(.is-js) .mdc-sponsors__grid { grid-template-columns: repeat(var(--mdc-strip-m, 3), minmax(0, 1fr)); }
	.mdc-sponsors--strip:not(.is-js) .mdc-sponsors__item.is-xm { display: none !important; }
}
@keyframes mdc-sp-in { from { opacity: 0; transform: scale(.92); } }

/* Scoreboards side by side always the same height: team names max. 2 lines, info lines one line each */
.mdc-board__name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 2.4em; }
.mdc-board__info { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mdc-board__comp { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mdc-slider__auto { font-size: 13px; margin: 0 0 .5rem; opacity: .8; }
.mdc-sponsors__item[hidden] { display: none !important; }
/* Two scoreboards side by side (columns): both as high as the higher one, with any theme */
.wp-block-column > .mdc-block:only-child:has(> .mdc-board) { height: 100%; }
.wp-block-column > .mdc-block:only-child > .mdc-board { height: 100%; box-sizing: border-box; margin-bottom: 0; }

/* ---------- News & Termine (mdc/news): picture left, title, text, date ---------- */
.mdc-news2 { display: grid; gap: 1.6rem; margin: 0 0 2rem; }
.mdc-news2__item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 2rem; align-items: start; padding: 1rem 1.4rem 1.2rem .6rem; background: var(--mdc-tile-bg, #f6f7f9); border-radius: var(--mdc-tile-radius, 0); }
.mdc-news2__item.no-img { grid-template-columns: 1fr; padding-left: 1.4rem; }
.mdc-news2__img img { display: block; width: 100%; height: auto; max-height: 220px; object-fit: contain; }
.mdc-news2__name { margin: .4rem 0 .6rem; font-size: var(--mdc-name-size, clamp(1.15rem, 2.4vw, 1.6rem)); font-weight: 700; line-height: 1.2; font-family: var(--mdc-name-font, inherit); }
.mdc-news2__name a { color: var(--mdc-name-color, inherit); text-decoration: none; }
.mdc-news2__name a:hover { color: var(--mdc-accent); }
.mdc-news2__text { margin: 0 0 .6rem; font-size: var(--mdc-text-size, .95rem); color: var(--mdc-text-color, inherit); }
.mdc-news2__date { margin: 0; font-size: var(--mdc-text-size, .85rem); font-weight: 600; color: var(--mdc-role-color, var(--mdc-accent)); }
.mdc-news2__kind { display: inline-block; margin-right: .4rem; padding: .05rem .5rem; border-radius: 4px; background: var(--mdc-accent); color: var(--mdc-on-accent, #fff); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }
@media (max-width: 700px) { .mdc-news2__item { grid-template-columns: 1fr; gap: .6rem; padding: 1rem; } }
/* News & Termine: tiles side by side, picture on top */
.mdc-news2.is-tiles { grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
.mdc-news2.is-tiles .mdc-news2__item { grid-template-columns: 1fr; gap: .6rem; padding: 0 0 1rem; overflow: hidden; }
.mdc-news2.is-tiles .mdc-news2__img img { max-height: none; aspect-ratio: 16 / 10; object-fit: cover; }
.mdc-news2.is-tiles .mdc-news2__body { padding: 0 1rem; }
.mdc-news2.is-tiles .mdc-news2__text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
/* News & Termine: compact – date and title in a row */
.mdc-news2.is-compact { gap: .5rem; }
.mdc-news2.is-compact .mdc-news2__item { grid-template-columns: 1fr; padding: .7rem 1rem; border-left: 4px solid var(--mdc-accent); }
.mdc-news2.is-compact :is(.mdc-news2__img, .mdc-news2__text) { display: none; }
.mdc-news2.is-compact .mdc-news2__body { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem 1rem; }
.mdc-news2.is-compact .mdc-news2__name { order: 2; margin: 0; font-size: 1.05rem; }
.mdc-news2.is-compact .mdc-news2__date { order: 1; min-width: 12rem; }

/* ---------- Instagram (mdc/instagram) ---------- */
.mdc-ig { display: grid; grid-template-columns: repeat(var(--mdc-ig-cols, 3), minmax(0, 1fr)); gap: var(--mdc-tile-gap, 8px); margin: 0 0 1rem; }
.mdc-ig.is-strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .4rem; }
.mdc-ig.is-strip .mdc-ig__item { flex: 0 0 calc(100% / var(--mdc-ig-cols, 3) - 6px); scroll-snap-align: start; }
.mdc-ig__item { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--mdc-tile-radius, 4px); background: #eee; }
.mdc-ig__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.mdc-ig__item:hover img { transform: scale(1.05); }
.mdc-ig__item.is-video::after { content: "▶"; position: absolute; top: 8px; right: 10px; color: #fff; font-size: 1.1rem; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.mdc-ig__cap { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: .8rem; background: linear-gradient(transparent 35%, rgba(0,0,0,.75)); color: #fff; font-size: .85rem; line-height: 1.35; opacity: 0; transition: opacity .25s ease; }
.mdc-ig__item:hover .mdc-ig__cap, .mdc-ig__item:focus .mdc-ig__cap { opacity: 1; }
.mdc-ig__follow { text-align: center; margin: .6rem 0 2rem; }
@media (max-width: 600px) { .mdc-ig.is-grid { grid-template-columns: repeat(min(var(--mdc-ig-cols, 3), 3), minmax(0, 1fr)); } .mdc-ig__cap { display: none; } }

/* Push button: left, centre or right – also inside a row (e.g. header) */
.mdc-push.is-center { align-items: center; text-align: center; }
.mdc-push.is-right { align-items: flex-end; text-align: right; }
.mdc-block:has(> .mdc-push.is-center) { margin-left: auto; margin-right: auto; }
.mdc-block:has(> .mdc-push.is-right) { margin-left: auto; }
.mdc-push.is-right .mdc-push__teams > div { text-align: left; }

/* Sponsor tiles without logo: text size follows the tile, name max. 2 lines + "…", place one line */
.mdc-sponsors__grid:not(.mdc-top__sponsors *) .mdc-sponsors__tile { container-type: inline-size; }
.mdc-sponsors__tile .mdc-sponsors__name { gap: .15em; padding: 6% 8%; hyphens: manual; -webkit-hyphens: manual; }
.mdc-sponsors__tile .mdc-sponsors__name b { font-size: min(1em, 11.5cqw); line-height: 1.2; -webkit-line-clamp: 2; overflow-wrap: break-word; word-break: normal; }
.mdc-sponsors__tile .mdc-sponsors__name small { font-size: min(.8em, 9cqw); flex: none; }
/* Push "Nur Glocke": round button, small window below */
.mdc-push.is-bell { position: relative; }
.mdc-push__bell { width: 46px; height: 46px; border-radius: 50%; border: 2px solid currentColor; background: var(--mdc-btn-bg, rgba(255,255,255,.12)); color: inherit; font-size: 1.35rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: transform .2s ease; }
.mdc-push__bell:hover { transform: rotate(-12deg) scale(1.06); }
.mdc-push__pop { position: absolute; top: calc(100% + 10px); z-index: 60; box-sizing: border-box; width: min(320px, calc(100vw - 24px)); padding: 1.1rem 1rem 1rem; border-radius: 12px; background: #fff; color: #222; text-align: left; box-shadow: 0 14px 40px rgba(0,0,0,.25); display: flex; flex-direction: column; align-items: stretch; gap: .6rem; }
.mdc-push.is-left .mdc-push__pop { left: 0; } .mdc-push.is-right .mdc-push__pop { right: 0; } .mdc-push.is-center .mdc-push__pop { left: 50%; transform: translateX(-50%); }
.mdc-push__pop[hidden] { display: none; }
.mdc-push__pop .mdc-btn { width: 100%; justify-content: center; }
.mdc-push__note { margin: 0 1.2rem 0 0; font-size: .9rem; line-height: 1.4; }
.mdc-push__close { position: absolute; top: .3rem; right: .5rem; border: 0; background: none; font-size: 1.4rem; line-height: 1; cursor: pointer; color: #666; }
.mdc-push__pop :is(.mdc-push__teams summary, .mdc-push__state) { color: #222 !important; }

/* ---------- Trainingszeiten / Spielplan: Darstellungen ---------- */
.mdc-training td[data-label="Trainer"] { white-space: normal; }
.mdc-training__coach { display: block; }
.mdc-training__coach + .mdc-training__coach { margin-top: .3rem; }
.mdc-training__tel { display: block; font-size: .85em; opacity: .75; color: inherit; text-decoration: none; }
.mdc-training__tel:hover { text-decoration: underline; }
.mdc-training.is-striped tbody tr:nth-child(odd) { background: var(--mdc-tile-bg, rgba(0,0,0,.035)); }
.mdc-training.is-cards { border-collapse: separate; border-spacing: 0 .6rem; }
.mdc-training.is-cards tbody tr { background: var(--mdc-tile-bg, #fff); box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.mdc-training.is-cards tbody :is(th, td) { border: 0; }
.mdc-training.is-cards tbody th { border-left: 4px solid var(--mdc-accent); }
.mdc-fixtures.is-striped .mdc-match:nth-child(odd) { background: var(--mdc-tile-bg, rgba(0,0,0,.035)); }
.mdc-fixtures.is-cards { display: grid; gap: .6rem; border: 0; }
.mdc-fixtures.is-cards .mdc-match { background: var(--mdc-tile-bg, #fff); box-shadow: 0 2px 10px rgba(0,0,0,.08); border: 0; border-left: 4px solid var(--mdc-accent); border-radius: var(--mdc-tile-radius, 6px); }
@media (max-width: 600px) {
	.mdc-training thead { display: none; }
	.mdc-training tr { display: grid; grid-template-columns: 1fr; padding: .6rem 0; }
	.mdc-training :is(th, td) { border: 0 !important; padding: .1rem .6rem !important; text-align: left !important; }
}
/* Editor: type directly into the table */
.mdc-training__input { width: 100%; border: 1px dashed transparent; background: transparent; font: inherit; color: inherit; text-align: inherit; padding: .2rem .3rem; border-radius: 4px; }
.mdc-training__input:hover, .mdc-training__input:focus { border-color: #3858e9; background: #fff; outline: 0; }
.mdc-training__hint { font-size: 12px; opacity: .65; margin: .4rem 0 0; }
.mdc-fixtures:is(.is-cards, .is-striped) .mdc-match { padding: .6rem 1rem; }

/* Team tiles: fixed grid (columns, height), single tiles wider/higher */
.mdc-teamlist { grid-template-columns: repeat(var(--mdc-tl-cols, 4), minmax(0, 1fr)); grid-auto-flow: dense; }
.mdc-teamlist__item { aspect-ratio: auto; min-height: 0; height: auto; }
.mdc-teamlist__item::before { content: ""; display: block; padding-top: calc(var(--mdc-tl-ratio, 40) * 1%); }
.mdc-teamlist__item.is-wide { grid-column: span 2; }
.mdc-teamlist__item.is-wide::before { padding-top: calc(var(--mdc-tl-ratio, 40) * .5%); }
.mdc-teamlist__item.is-tall { grid-row: span 2; }
.mdc-teamlist__item.is-big { grid-column: span 2; grid-row: span 2; }
.mdc-teamlist__item:is(.is-tall, .is-big)::before { padding-top: 0; }
/* Tablets and phones: own number per row (Pro team tiles), else 2 / 1 */
@media (max-width: 900px) { .mdc-teamlist { grid-template-columns: repeat(var(--mdc-tl-cols-t, min(var(--mdc-tl-cols, 4), 2)), minmax(0, 1fr)); } }
@media (max-width: 520px) { .mdc-teamlist { grid-template-columns: repeat(var(--mdc-tl-cols-m, 1), minmax(0, 1fr)); } .mdc-teamlist__item:is(.is-wide, .is-big) { grid-column: auto; } }
/* Small tiles (5–6 per row, 2–3 on phones): name and league shrink with the tile */
.mdc-teamlist__item { container-type: inline-size; }
.mdc-teamlist__name { font-size: min(var(--mdc-name-size, 1.3rem), 10.5cqi); }
.mdc-teamlist__league { font-size: min(var(--mdc-text-size, .8rem), 7cqi); }
.mdc-teamlist__name, .mdc-teamlist__league { padding-inline: min(1rem, 6cqi); }
/* Team tiles in the editor: swap by dragging */
.mdc-teamlist.is-editing .mdc-teamlist__item { cursor: grab; }
.mdc-teamlist.is-editing .mdc-teamlist__item.is-active { outline: 3px solid #3858e9; outline-offset: 2px; }
.mdc-teamlist.is-editing .mdc-teamlist__item.is-dragging { opacity: .85; z-index: 20; box-shadow: 0 16px 40px rgba(0,0,0,.35); transition: none; }
.mdc-teamlist.is-editing .mdc-teamlist__item { touch-action: none; user-select: none; }
.mdc-teamlist.is-editing .mdc-teamlist__item.is-target { outline: 3px dashed #3858e9; outline-offset: 3px; }
.mdc-teamlist__move { position: absolute; top: 6px; right: 6px; z-index: 5; display: flex; gap: 4px; }
.mdc-teamlist__move button { width: 30px; height: 30px; border: 0; border-radius: 4px; background: rgba(255,255,255,.92); color: #1e1e1e; font-size: 16px; line-height: 1; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.mdc-teamlist__move button:focus-visible { outline: 2px solid #3858e9; outline-offset: 2px; }
.mdc-teamlist__move button:disabled { opacity: .4; cursor: default; }

/* Push button placed freely in a corner of the surrounding area (header, group …) */
:is(.wp-block-group, .mdc-top):has(> .mdc-block > .mdc-push.is-at) { position: relative; }
.mdc-block:has(> .mdc-push.is-at) { position: static !important; margin: 0 !important; }
.mdc-push.is-at { position: absolute; z-index: 20; margin: 0; }
.mdc-push.is-at-tl { top: var(--mdc-push-y); left: var(--mdc-push-x); }
.mdc-push.is-at-tr { top: var(--mdc-push-y); right: var(--mdc-push-x); }
.mdc-push.is-at-bl { bottom: var(--mdc-push-y); left: var(--mdc-push-x); }
.mdc-push.is-at-br { bottom: var(--mdc-push-y); right: var(--mdc-push-x); }
.mdc-push.is-at-tc { top: var(--mdc-push-y); left: 50%; transform: translateX(-50%); }
.mdc-push.is-at-bc { bottom: var(--mdc-push-y); left: 50%; transform: translateX(-50%); }
.mdc-push.is-at :is(.mdc-push__teams, .mdc-push__state) { white-space: nowrap; }
.mdc-push:is(.is-at-tr, .is-at-br) { align-items: flex-end; }
.mdc-push:is(.is-at-tr, .is-at-br) .mdc-push__pop { right: 0; left: auto; }
.mdc-push:is(.is-at-bl, .is-at-br, .is-at-bc) .mdc-push__pop { top: auto; bottom: calc(100% + 10px); }
/* Text and font settings of the block reach the button itself */
.mdc-block.has-text-color > .mdc-push .mdc-btn, .mdc-block.has-text-color > .mdc-push .mdc-push__bell { color: inherit !important; border-color: currentColor; }
.mdc-block > .mdc-push .mdc-btn { letter-spacing: var(--mdc-btn-spacing, .06em); }
.mdc-block[style*="text-transform"] > .mdc-push .mdc-btn, .mdc-block[class*="has-text-transform"] > .mdc-push .mdc-btn { text-transform: inherit; }
/* Editor: the small window shows while the block is selected, so title and text can be checked */
.block-editor-block-list__block.is-selected .mdc-push .mdc-push__pop[hidden] { display: flex; }
/* Editor: same corner placement (the editor wraps the preview in extra boxes) */
.wp-block-group:has(> .block-editor-block-list__block .mdc-push.is-at) { position: relative; }
.block-editor-block-list__block.mdc-block:has(.mdc-push.is-at), .block-editor-block-list__block.mdc-block:has(.mdc-push.is-at) > div { position: static !important; margin: 0 !important; }

/* Block with its own background colour (block settings): room around the content, unless the block sets its own padding */
.mdc-block.has-background:not([style*="padding"]):not(:where(.mdc-board2, .mdc-pk, .mdc-lk)) { padding: 1rem 1.25rem; border-radius: 12px; }

/* Person photos: cut to fit with the head in view; "whole picture" (setting or block): nothing cut off, nothing stretched,
   the free space in light club colour or with a blurred copy of the photo (tiny image stretched by the browser) */
.mdc-photo:not(.mdc-photo--empty) { object-position: 50% 20%; }
.is-photo-whole .mdc-photo:not(.mdc-photo--empty) { object-fit: contain; object-position: 50% 50%; background: color-mix(in srgb, var(--mdc-accent) 14%, #fff); }
.is-photo-blur .mdc-photo:not(.mdc-photo--empty) { background: var(--mdc-photo-tiny, none) center / cover no-repeat, color-mix(in srgb, var(--mdc-accent) 14%, #fff); }

/* ---------- 0.35: match clock, editing ticker entries ---------- */
.mdc-clock { display: flex; justify-content: center; align-items: baseline; gap: .6rem; margin: .4rem 0; font-variant-numeric: tabular-nums; }
.mdc-clock[hidden] { display: none; }
.mdc-clock__time { font: 800 1.6em/1 system-ui, sans-serif; letter-spacing: .02em; }
.mdc-clock__state { font-size: .8em; text-transform: uppercase; letter-spacing: .08em; opacity: .7; }
.mdc-clock.is-running .mdc-clock__time { color: var(--mdc-loss, #c0392b); }
.mdc-clock.is-running .mdc-clock__time::before { content: ""; display: inline-block; width: .45em; height: .45em; margin-right: .35em; border-radius: 50%; background: currentColor; vertical-align: .2em; animation: mdc-blink 1.2s ease-in-out infinite; }
@keyframes mdc-blink { 50% { opacity: .2; } }
@media (prefers-reduced-motion: reduce) { .mdc-clock.is-running .mdc-clock__time::before { animation: none; } }
.mdc-m-min { display: grid; grid-template-columns: 1fr 1fr auto; gap: .5rem; align-items: end; }
.mdc-m-min label { margin: .6rem 0 0; }
.mdc-mobile .mdc-m-now { padding: .6rem .7rem; }
/* Half-time forgotten (0.38.2): one small line under the clock, never a blocking error */
.mdc-m-forgot { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .3rem .6rem; margin: 0 0 .4rem; font-size: .85rem; }
.mdc-m-forgot[hidden] { display: none; }
.mdc-mobile .mdc-m-forgot button { padding: .35rem .7rem; font-size: .85rem; background: transparent; color: inherit; text-decoration: underline; }
.mdc-mobile button.is-next { outline: 3px solid var(--mdc-accent); outline-offset: 1px; font-weight: 700; }
.mdc-m-sub { font-size: 1rem; margin: 1.2rem 0 .4rem; }
.mdc-tedit { margin: 1.5rem 0; padding: .8rem 1rem; border: 1px dashed var(--mdc-border, #ccc); border-radius: 8px; }
.mdc-tedit > summary { cursor: pointer; font-weight: 600; }
.mdc-tedit__list { list-style: none; margin: .6rem 0; padding: 0; }
.mdc-tedit__item { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; padding: .45rem 0; border-bottom: 1px solid var(--mdc-border, #e5e5e5); }
.mdc-tedit__item.is-ours { border-left: 4px solid var(--mdc-ours, var(--mdc-accent)); padding-left: .5rem; }
.mdc-tedit__item.is-opponent { border-left: 4px solid #c2410c; padding-left: .5rem; }
.mdc-tedit__text { flex: 1 1 12rem; min-width: 0; }
.mdc-tedit__btns { display: flex; gap: .3rem; }
.mdc-tedit__btns button, .mdc-tedit__actions button, .mdc-tedit__resetbtn { padding: .35rem .7rem; border-radius: 6px; border: 1px solid var(--mdc-border, #ccc); background: #fff; color: #222; cursor: pointer; font-size: .95rem; }
.mdc-tedit__form { flex: 1 1 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .4rem .8rem; padding: .6rem 0; }
.mdc-tedit__form label { display: block; margin: 0; font-size: .9rem; }
.mdc-tedit__form :is(input, select) { display: block; width: 100%; box-sizing: border-box; font-size: 16px; padding: .4rem; }
.mdc-tedit__min { display: flex; align-items: center; gap: .3rem; }
.mdc-tedit__min input { width: 4.5em !important; }
.mdc-tedit__actions { grid-column: 1 / -1; margin: 0; display: flex; gap: .4rem; }
.mdc-tedit__resetbtn { color: #b32d2e !important; border-color: #b32d2e !important; }
.mdc-m-events.mdc-m-events { padding-left: 0; }
.mdc-tedit__item.is-ours .mdc-team-tag { background: var(--mdc-ours, var(--mdc-accent)); }

/* ---------- File fields (0.35.9, class MDC_File_Field) ----------
   Without JavaScript: the input itself with a styled button. With it (.is-ready): the input is only hidden visually
   (still focused and sent), the label is the button + drop area, the file name next to it. */
.mdc-file { --mdc-file-c: var(--mdc-accent, #0a7d3b); display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; max-width: 100%; margin: .2rem 0; }
.mdc-file__input::file-selector-button { margin-right: .7rem; padding: .5em 1.1em; border: 0; border-radius: 999px; background: var(--mdc-file-c); color: var(--mdc-on-accent, #fff); font: inherit; font-weight: 600; cursor: pointer; }
.mdc-file:not(.is-ready) :is(.mdc-file__zone, .mdc-file__name) { display: none; }
.mdc-file.is-ready .mdc-file__input { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); border: 0; white-space: nowrap; opacity: 0; }
.mdc-file__zone { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; padding: .55rem .7rem; border: 2px dashed color-mix(in srgb, var(--mdc-file-c) 45%, transparent); border-radius: 12px; background: color-mix(in srgb, var(--mdc-file-c) 6%, transparent); cursor: pointer; transition: background .2s ease, border-color .2s ease; max-width: 100%; box-sizing: border-box; }
.mdc-file__zone:hover, .mdc-file.is-over .mdc-file__zone { border-color: var(--mdc-file-c); background: color-mix(in srgb, var(--mdc-file-c) 14%, transparent); }
.mdc-file__btn { display: inline-flex; align-items: center; gap: .45em; padding: .5em 1.1em; border-radius: 999px; background: var(--mdc-file-c); color: var(--mdc-on-accent, #fff); font-weight: 600; line-height: 1.2; white-space: nowrap; }
.mdc-file__hint { font-size: .85em; opacity: .75; }
.mdc-file__name { font-size: .9em; opacity: .8; overflow-wrap: anywhere; min-width: 0; }
.mdc-file.has-file .mdc-file__name { opacity: 1; font-weight: 600; }
.mdc-file.has-file .mdc-file__name::before { content: "✓ "; color: var(--mdc-file-c); }
.mdc-file.is-wrong .mdc-file__name { color: #b32d2e; opacity: 1; }
.mdc-file__input:focus-visible + .mdc-file__zone { outline: 2px solid var(--mdc-file-c); outline-offset: 2px; }
.mdc-file__input:focus-visible + .mdc-file__zone .mdc-file__btn { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--mdc-file-c); }
/* Admin: like the buttons of WordPress (secondary button), in the admin colour */
.mdc-file--admin { --mdc-file-c: var(--wp-admin-theme-color, #2271b1); }
.mdc-file--admin .mdc-file__zone { border-radius: 4px; border-width: 1px; padding: .45rem .6rem; }
.mdc-file--admin .mdc-file__btn, .mdc-file--admin .mdc-file__input::file-selector-button { border-radius: 3px; border: 1px solid var(--mdc-file-c); background: #f6f7f7; color: var(--mdc-file-c); font-weight: 400; padding: 0 10px; min-height: 30px; line-height: 2.15384615; font-size: 13px; }
.mdc-file--admin .mdc-file__zone:hover .mdc-file__btn { background: #f0f0f1; color: color-mix(in srgb, var(--mdc-file-c) 80%, #000); }
.mdc-file--admin .mdc-file__hint, .mdc-file--admin .mdc-file__name { font-size: 13px; }

/* Played, no result yet (0.35.11): "Result to follow" under the dash, no draw badge. */
:is(.mdc-board__score, .mdc-bp):has(> .mdc-board__pending) { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; }
.mdc-board__pending { display: block; font-size: clamp(.85rem, 1.5vw, 1.2rem); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; opacity: .8; white-space: nowrap; }

/* Match page while the match runs (0.36.0): the live ticker at the very top, the scoreboard below it. */
.mdc-ticker--top { margin-top: 0; margin-bottom: 1.5rem; }
.mdc-ticker--top .mdc-ticker__head .mdc-score:not(.is-pending) { font-size: clamp(1.8rem, 6vw, 2.6rem); }

/* ---------- 0.38.0 ---------- */
/* Live ticker: bar with LIVE badge, both teams with logo, big score, the latest events */
.mdc-ticker { border: 1px solid var(--mdc-border); border-radius: 12px; overflow: hidden; background: #fff; color: #17201b; margin: 0 0 1.5rem; box-shadow: 0 6px 22px rgba(13,19,23,.08); }
.mdc-ticker__bar { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; padding: .6rem 1rem; background: #0d1317; color: #fff; }
.mdc-ticker__bar .mdc-ticker__title { margin: 0; flex: 1 1 auto; text-align: left; font-size: .95rem; letter-spacing: .06em; color: inherit; }
.mdc-ticker__badge { display: inline-flex; align-items: center; gap: .4em; padding: .15em .65em; border-radius: 999px; font-weight: 800; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; background: #3a4650; color: #fff; }
.mdc-ticker.is-live .mdc-ticker__badge { background: #c62828; }
.mdc-ticker.is-live .mdc-ticker__badge::before { content: ""; width: .55em; height: .55em; border-radius: 50%; background: #fff; animation: mdc-pulse 1.2s ease-in-out infinite; }
@keyframes mdc-pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .mdc-ticker.is-live .mdc-ticker__badge::before { animation: none; } }
.mdc-ticker__when { font-size: .85rem; color: #d7dde1; }
.mdc-ticker.is-live .mdc-ticker__when { display: none; }
.mdc-ticker .mdc-ticker__head { padding: 1.1rem 1rem .4rem; font-size: 1.05em; grid-template-columns: 1fr auto 1fr; }
.mdc-ticker__side { display: flex; flex-direction: column; align-items: center; gap: .45rem; text-align: center; min-width: 0; }
.mdc-ticker__side .mdc-board__logo { width: clamp(44px, 9vw, 72px); height: clamp(44px, 9vw, 72px); object-fit: contain; }
.mdc-ticker__side .mdc-board__logo--badge { display: grid; place-items: center; border-radius: 50%; background: #eef1ef; color: #17201b; font-weight: 800; font-size: clamp(.9rem, 2.4vw, 1.2rem); }
.mdc-ticker__side .mdc-team { font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.mdc-ticker .mdc-ticker__head .mdc-team:last-child { text-align: center; }
.mdc-ticker .mdc-ticker__head .mdc-score:not(.is-pending) { font-size: clamp(2.2rem, 8vw, 3.6rem); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; letter-spacing: .02em; }
.mdc-ticker .mdc-ticker__status { margin: .2rem 0; font-size: .9rem; }
.mdc-ticker .mdc-ticker__clock { margin: 0 auto .4rem; }
.mdc-ticker .mdc-ticker__events { margin: 0; padding: 0 1rem .4rem; }
.mdc-ticker:not(.is-all) .mdc-ticker__events .mdc-ev:nth-child(n+7) { display: none; }
.mdc-ticker__more { margin: 0; padding: 0 1rem 1rem; text-align: center; }
.mdc-ticker__all { background: none; border: 1px solid var(--mdc-border); border-radius: 999px; padding: .35rem 1rem; font: inherit; font-size: .85rem; cursor: pointer; color: inherit; }
.mdc-ticker__all:hover, .mdc-ticker__all:focus-visible { border-color: currentColor; }
@media (max-width: 480px) { .mdc-ticker .mdc-ticker__head { gap: .5rem; padding: .9rem .6rem .3rem; } .mdc-ev { grid-template-columns: 2.6em 1.6em 1fr; } }
/* Team photo with caption: small, italics, muted colour below the photo */
.mdc-teamphoto { margin: 0 0 1.5rem; }
.mdc-teamphoto .mdc-hero { margin-bottom: .6rem; }
.mdc-hero__legend, .mdc-legend { font-size: .875rem; font-style: italic; line-height: 1.5; color: #4d5852; margin: 0; }
.mdc-hero__legend strong { font-weight: 700; font-style: italic; color: #2b332e; }
.mdc-team-info--text p { margin: 0 0 .9em; }
/* An empty column next to a full one (hidden empty blocks, 0.38.3): keeps its place on computers, so the other
   column stays as wide as before; stacked columns on phones leave it out (no extra gap). */
.wp-block-columns > .mdc-empty-col { min-height: 0; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; }
@media (max-width: 781px) { .wp-block-columns:not(.is-not-stacked-on-mobile) > .mdc-empty-col { display: none; } }
/* Editor: note on blocks that are hidden while empty */
.mdc-empty--hidden small { opacity: .8; }
/* People without photo: plain shirt in the club colours (or the club's own picture) */
.mdc-photo.mdc-photo--shirt { background: var(--mdc-shirt) center 58% / 66% auto no-repeat, linear-gradient(170deg, #f5f7f6 10%, color-mix(in srgb, var(--mdc-primary, #0b7a3b) 16%, #fff)) !important; }
.mdc-photo.mdc-photo--custom { background: var(--mdc-shirt) center / cover no-repeat, #eef1ef !important; }
.mdc-card .mdc-photo--shirt::after, .mdc-card .mdc-photo--custom::after { content: none; }
.mdc-placeholder-set { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: flex-start; }
.mdc-placeholder-set__shirt { margin: 0; text-align: center; font-size: .8rem; max-width: 120px; }
.mdc-placeholder-set__shirt img { display: block; margin: 0 auto .3rem; background: #f3f5f4; border-radius: 8px; padding: 8px; }
/* Phone ticker: substitution in one step, "Correct" (ticker app) */
.mdc-m-subst[hidden] { display: none; }
.mdc-m-subst { display: grid; gap: .6rem; padding: .8rem; margin: .4rem 0 .8rem; border: 2px solid var(--mdc-accent); border-radius: 12px; background: color-mix(in srgb, var(--mdc-accent) 6%, #fff); }
.mdc-m-fix { margin: 1.2rem 0 0; border: 1px solid var(--mdc-border); border-radius: 12px; background: #fff; }
.mdc-m-fix > summary { cursor: pointer; padding: .9rem 1rem; font-weight: 700; font-size: 1.05rem; list-style: none; }
.mdc-m-fix > summary::-webkit-details-marker { display: none; }
.mdc-m-fix[open] > summary { border-bottom: 1px solid var(--mdc-border); }
.mdc-m-fix > :not(summary) { margin-left: 1rem; margin-right: 1rem; }
.mdc-m-fix h3 { margin: 1rem 1rem .4rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: #4d5852; }
.mdc-m-setscore { display: grid; grid-template-columns: 1fr auto 1fr; gap: .5rem; align-items: end; }
.mdc-m-setscore label { display: grid; gap: .2rem; font-size: .85rem; min-width: 0; }
.mdc-m-setscore label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mdc-m-setscore input { font-size: 1.4rem; text-align: center; padding: .4rem; }
.mdc-m-setscore b { font-size: 1.4rem; padding-bottom: .4rem; }
.mdc-m-setscore button { grid-column: 1 / -1; min-height: 46px; }
.mdc-m-danger { display: block; width: calc(100% - 2rem); min-height: 48px; margin-bottom: 1rem; border: 2px solid #a31515; border-radius: 10px; background: #fff; color: #a31515; font: 700 1rem system-ui, sans-serif; cursor: pointer; }
.mdc-toast--undo { display: flex; align-items: center; gap: .8rem; }
.mdc-toast--undo button { border: 0; border-radius: 999px; padding: .35rem .9rem; background: #fff; color: #17201b; font: 700 .9rem system-ui, sans-serif; cursor: pointer; }
/* 0.38.4 (S-5): «Team players» on team pages – on phones 2 cards per row (customer's choice; up to 0.38.3 one per
   row, 47 players made the page 37 000 px long). One switch: --mdc-players-phone-cols (1 = one card per row again),
   e.g. in Additional CSS: :root { --mdc-players-phone-cols: 1; } */
@media (max-width: 600px) { .mdc-team-sec--players .mdc-kit--teampeoplekit:not(.has-tiles) .mdc-pk__grid { grid-template-columns: repeat(var(--mdc-players-phone-cols, 2), minmax(0, 1fr)); gap: min(var(--mdc-pk-gap, 20px), 12px); } }
