/*
 * Alemannia Matchcenter – Spiel-Bausteine (Ergebnis, Tabelle, Verlauf, Kachel).
 * Fast alle Selektoren stehen in :where() (Spezifität 0); nur Überschriften, Tabellen, Links und Buttons sind gegen
 * Theme-Resets abgesichert (2 Klassen). Elementor-Widget-Einstellungen (3+ Klassen) gewinnen trotzdem immer. Farben/Abstände sind CSS-Variablen mit Standardwerten auf :root –
 * Elementor-Widgets setzen sie auf ihrem Wrapper, die Bausteine erben sie:
 * Einstellungen in Elementor (Widget-Stil, Site Settings, eigenes CSS) gewinnen immer.
 */
:root {
	--amc-ink: #0b0b0b;
	--amc-paper: #fff;
	--amc-text: #121212;
	--amc-muted: #5a5a5a;
	--amc-line: #e2e2e2;
	--amc-grey: #f4f4f2;
	--amc-radius: 6px;
	--amc-yellow: #f2c200;
	--amc-red: #d93036;
	--amc-font-display: var(--e-global-typography-primary-font-family, "Barlow Condensed"), "Arial Narrow", sans-serif;
	--amc-font: inherit;
}
:where(.amc-score, .amc-table, .amc-timeline, .amc-links, .amc-tile) {
	box-sizing: border-box;
	font-family: var(--amc-font);
}
:where(.amc-score, .amc-table, .amc-timeline, .amc-links, .amc-tile) *,
:where(.amc-score, .amc-table, .amc-timeline, .amc-links, .amc-tile) *::before { box-sizing: border-box; }

:where(.amc-sr) { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
:where(.amc-note) { margin: 0; font-size: 14px; color: var(--amc-muted); }
:where(.amc-block-head) { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; margin-bottom: 16px; }
.amc-table .amc-block-title, .amc-timeline .amc-block-title { letter-spacing: .01em; margin: 0; font-family: var(--amc-font-display); font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; line-height: 1.05; text-transform: uppercase; }

/* Badge (Wappen oder Kürzel) */
:where(.amc-badge) { width: var(--amc-badge-size, 56px); height: var(--amc-badge-size, 56px); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; background: var(--amc-grey); color: var(--amc-muted); font-family: var(--amc-font-display); font-weight: 800; font-size: calc(var(--amc-badge-size, 56px) * .32); }
:where(img.amc-badge--crest) { background: none; border-radius: 0; object-fit: contain; }

/* ---------- Ergebnis ---------- */
:where(.amc-score) { --amc-badge-size: 92px; background: var(--amc-score-bg, var(--amc-ink)); color: var(--amc-score-fg, #fff); padding: var(--amc-score-pad, 48px 16px); text-align: center; }
:where(.amc-score__eyebrow) { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
:where(.amc-score__date) { margin: 8px 0 32px; font-size: 15px; opacity: .9; }
:where(.amc-score__row) { max-width: 920px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 24px; }
:where(.amc-score__team) { display: flex; flex-direction: column; align-items: center; gap: 14px; }
:where(.amc-score .amc-badge) { background: transparent; border: 2px solid currentColor; color: inherit; opacity: .85; }
:where(.amc-score .amc-badge.is-us) { background: var(--amc-score-fg, #fff); color: var(--amc-score-bg, var(--amc-ink)); opacity: 1; }
:where(.amc-score img.amc-badge--crest) { border: 0; opacity: 1; filter: drop-shadow(1.5px 0 0 #fff) drop-shadow(-1.5px 0 0 #fff) drop-shadow(0 1.5px 0 #fff) drop-shadow(0 -1.5px 0 #fff); }
:where(.amc-score__name) { font-family: var(--amc-font-display); text-transform: uppercase; font-size: clamp(18px, 2.6vw, 28px); font-weight: 800; line-height: 1.05; }
:where(.amc-score__result) { display: flex; flex-direction: column; align-items: center; gap: 8px; }
:where(.amc-score__goals) { margin: 0; font-family: var(--amc-font-display); font-size: clamp(72px, 11vw, 136px); font-weight: 800; line-height: .85; }
:where(.amc-score__goals span) { margin: 0 .08em; opacity: .7; }
:where(.amc-score__goals--open) { opacity: .5; font-size: clamp(44px, 6vw, 72px); }
:where(.amc-score__ht) { margin: 0; font-size: 14px; opacity: .75; }
:where(.amc-score__outcome) { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; border: 1px solid currentColor; }
:where(.amc-score__outcome--sieg) { background: var(--amc-score-fg, #fff); color: var(--amc-score-bg, var(--amc-ink)); border-color: transparent; }
:where(.amc-score__outcome--niederlage) { opacity: .75; }
:where(.amc-score__facts) { margin: 32px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; }
:where(.amc-score__facts dt) { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
:where(.amc-score__facts dd) { margin: 2px 0 0; font-weight: 600; }

/* ---------- Tabelle ---------- */
:where(.amc-table__scroll) { overflow-x: auto; border: 1px solid var(--amc-line); border-radius: var(--amc-radius); }
.amc-table .amc-league { width: 100%; margin: 0; border-collapse: collapse; border-spacing: 0; font-size: 14px; color: var(--amc-text); }
/* Theme-Tabellenstile (Rahmen, Zebra, Hover) neutralisieren – Spezifität bewusst höher als typische Theme-Resets */
.amc-table .amc-league tbody tr > *, .amc-table .amc-league thead tr > * { padding: 10px 8px; border: 0; border-top: 1px solid #ececec; background: transparent; text-align: center; white-space: nowrap; }
.amc-table .amc-league thead tr > th { border-top: 0; font-size: 12px; font-weight: 600; color: var(--amc-muted); background: var(--amc-grey); }
.amc-table .amc-league tbody tr > th, .amc-table .amc-league thead tr > th:nth-child(2) { text-align: left; font-weight: 600; white-space: normal; }
.amc-table .amc-league abbr { text-decoration: none; border: 0; }
.amc-table .amc-league tbody tr.is-us > * { background: var(--amc-highlight, var(--amc-ink)); color: var(--amc-highlight-text, #fff); border-top-color: var(--amc-highlight, var(--amc-ink)); }
:where(.amc-table > .amc-note) { margin-top: 8px; }

/* ---------- Spielverlauf ---------- */
:where(.amc-legend) { display: flex; gap: 16px; flex-wrap: wrap; }
:where(.amc-legend > span) { display: inline-flex; align-items: center; gap: 6px; }
:where(.amc-dot) { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
:where(.amc-dot--home) { background: var(--amc-ink); }
:where(.amc-dot--away) { background: var(--amc-paper); border: 2px solid var(--amc-ink); }
:where(.amc-tl) { list-style: none; margin: 0; padding: 0; position: relative; color: var(--amc-text); }
:where(.amc-tl)::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: var(--amc-line); }
:where(.amc-tl__item) { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); align-items: center; min-height: 52px; padding: 4px 0; }
:where(.amc-tl__min) { grid-column: 2; grid-row: 1; justify-self: center; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: var(--amc-ink); color: var(--amc-paper); font-family: var(--amc-font-display); font-size: 15px; font-weight: 700; clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%); }
:where(.amc-tl__item--wechsel, .amc-tl__item--gelb) :where(.amc-tl__min) { background: var(--amc-paper); color: var(--amc-ink); clip-path: none; border-radius: 50%; width: 38px; height: 38px; border: 2px solid var(--amc-ink); }
:where(.amc-tl__body) { grid-row: 1; display: flex; align-items: center; gap: 10px; }
:where(.amc-tl__item--home .amc-tl__body) { grid-column: 1; justify-self: end; flex-direction: row-reverse; text-align: right; padding-right: 14px; }
:where(.amc-tl__item--away .amc-tl__body) { grid-column: 3; justify-self: start; padding-left: 14px; }
:where(.amc-tl__icon) { flex: none; display: inline-flex; align-items: center; color: var(--amc-ink); }
:where(.amc-tl__text) { display: flex; flex-direction: column; }
:where(.amc-tl__label) { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--amc-muted); }
:where(.amc-tl__item--tor .amc-tl__label) { color: var(--amc-ink); }
:where(.amc-tl__who) { font-size: 15px; font-weight: 600; }
:where(.amc-tl__score) { font-family: var(--amc-font-display); font-size: 22px; font-weight: 800; background: var(--amc-ink); color: var(--amc-paper); padding: 2px 10px; border-radius: 4px; }
:where(.amc-tl__divider) { position: relative; display: flex; justify-content: center; gap: 10px; margin: 14px 0; }
:where(.amc-tl__divider span, .amc-tl__divider strong) { position: relative; background: var(--amc-grey); padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
:where(.amc-tl__divider strong) { background: var(--amc-ink); color: var(--amc-paper); letter-spacing: 0; font-size: 13px; }
:where(.amc-card) { display: inline-block; width: 12px; height: 16px; border-radius: 2px; }
:where(.amc-card--yellow) { background: var(--amc-yellow); }
:where(.amc-card--red) { background: var(--amc-red); }
:where(.amc-card--stack) { margin-left: -5px; transform: rotate(10deg); }

/* ---------- Links ---------- */
:where(.amc-links) { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.amc-links .amc-extlink { align-self: stretch; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 16px; padding: 20px 24px; background: var(--amc-paper); border: 1px solid var(--amc-line); border-radius: var(--amc-radius); text-decoration: none; color: var(--amc-ink); }
.amc-links .amc-extlink:hover { border-color: var(--amc-ink); }
:where(.amc-extlink__eyebrow) { font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--amc-muted); }
:where(.amc-extlink__title) { grid-column: 1; font-family: var(--amc-font-display); text-transform: uppercase; font-size: 24px; font-weight: 800; line-height: 1.05; }
:where(.amc-extlink svg) { grid-column: 2; grid-row: 1 / span 2; }
.amc-links .amc-button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--amc-ink); border-radius: 4px; color: var(--amc-ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.amc-links .amc-button:hover { background: var(--amc-ink); color: var(--amc-paper); }

/* ---------- Kachel ---------- */
:where(.amc-tile) { --amc-badge-size: 52px; height: 100%; display: flex; flex-direction: column; gap: 18px; padding: 24px; background: var(--amc-tile-bg, var(--amc-paper)); color: var(--amc-tile-fg, var(--amc-text)); border: 1px solid var(--amc-line); border-radius: var(--amc-radius); }
:where(.amc-tile--next) { background: var(--amc-tile-next-bg, var(--amc-ink)); color: var(--amc-tile-next-fg, #fff); border-color: transparent; }
:where(.amc-tile--next .amc-badge) { background: rgba(255,255,255,.12); color: #cfcfcf; }
:where(.amc-tile__eyebrow) { margin: 0; display: flex; justify-content: space-between; gap: 12px; font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; opacity: .75; }
:where(.amc-tile__teams) { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
:where(.amc-tile__team) { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 14px; font-weight: 600; }
:where(.amc-tile__result) { font-family: var(--amc-font-display); font-size: 44px; font-weight: 800; white-space: nowrap; }
:where(.amc-tile__vs) { font-size: 30px; opacity: .6; }
:where(.amc-tile__when) { margin: 0; text-align: center; font-size: 14px; opacity: .8; }
.amc-tile .amc-tile__link { margin-top: auto; font-size: 14px; font-weight: 600; color: inherit; }

/* ---------- Handy ---------- */
@media (max-width: 760px) {
	:where(.amc-score) { --amc-badge-size: 56px; padding: 32px 12px; }
	:where(.amc-score__row) { gap: 10px; }
	:where(.amc-score__name) { font-size: 16px; }
	:where(.amc-hide-xs) { display: none; }
	:where(.amc-tl)::before { left: 22px; }
	:where(.amc-tl__item) { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; }
	:where(.amc-tl__min) { grid-column: 1; }
	:where(.amc-tl__item--home .amc-tl__body, .amc-tl__item--away .amc-tl__body) { grid-column: 2; justify-self: stretch; flex-direction: row; text-align: left; padding: 6px 0 6px 12px; border-left: 3px solid var(--amc-ink); }
	:where(.amc-tl__item--away .amc-tl__body) { border-left-style: dotted; }
	:where(.amc-tl__score) { margin-left: auto; }
	:where(.amc-tl__divider) { justify-content: flex-start; }
}
