/* EP Hallen 1.4.1 – Optik passend zu eisloewen-power.de (Kader-Seite) */
.eph-welcome,
.eph-profile,
.eph-list {
	--eph-blue-c: var(--eph-blue, #2b62e3);
	--eph-navy-c: var(--eph-navy, #0f1b45);
	--eph-page-c: var(--eph-page, #eef1f8);
	--eph-line-c: var(--eph-line, #dde2ec);
	--eph-muted: #5b6478;
	--eph-cond: "Barlow Condensed", "Arial Narrow", sans-serif;
	--eph-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	box-sizing: border-box;
	font-family: var(--eph-sans);
	color: var(--eph-navy-c);
}
.eph-welcome *, .eph-profile *, .eph-list * { box-sizing: border-box; }

/* ---------- Schutz gegen Überbreite auf dem Handy ---------- */
.eph-welcome, .eph-profile, .eph-list { width: 100%; max-width: 100%; min-width: 0; }
.eph-welcome img, .eph-profile img, .eph-list img,
.eph-welcome svg, .eph-profile svg, .eph-list svg { max-width: 100%; height: auto; }
.eph-body, .eph-info, .eph-card__body { overflow-wrap: anywhere; word-break: normal; }
.eph-info a, .eph-body a { overflow-wrap: anywhere; }
/* Sicherheitsnetz: nichts darf die Hallen-Seite auf dem Handy breiter als den Bildschirm machen */
body.eph-single { overflow-x: clip; }

/* Falls das Theme doch ein Beitragsbild zeigt (Filter eph_show_theme_thumbnail): klein halten */
.eph-single .wp-post-image {
	display: block;
	width: auto !important;
	max-width: min(100%, 320px) !important;
	height: auto !important;
	max-height: 220px;
	object-fit: contain;
	margin: 0 auto 1.5rem;
}

/* ---------- Panel ---------- */
.eph-welcome,
.eph-profile {
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 4px 18px rgba(15, 27, 69, .06);
	overflow: hidden;
	margin: 0 0 2rem;
}
.eph-body { padding: clamp(18px, 4.5vw, 40px); }

/* Navy-Kopf mit dezenten Diagonalstreifen wie der Seitenheader */
.eph-welcome__head,
.eph-profile__head {
	display: flex;
	gap: 18px;
	align-items: center;
	padding: clamp(18px, 4.5vw, 32px) clamp(18px, 4.5vw, 40px);
	background:
		repeating-linear-gradient(115deg, rgba(255,255,255,.035) 0 2px, transparent 2px 46px),
		var(--eph-navy-c);
	color: #fff;
	border-bottom: 4px solid var(--eph-blue-c);
}
.eph-welcome__logo {
	flex: 0 0 76px;
	width: 76px; height: 76px;
	border-radius: 50%;
	background: #fff;
	border: 3px solid var(--eph-blue-c);
	padding: 8px;
	display: grid;
	place-items: center;
}
.eph-welcome__logo { overflow: hidden; }
.eph-welcome__logo img, .eph-welcome__logo svg { width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; }
.eph-welcome__head > div, .eph-profile__head > div { min-width: 0; }

.eph-kicker {
	display: inline-block;
	margin: 0 0 8px;
	padding: 4px 22px 4px 10px;
	background: var(--eph-blue-c);
	color: #fff;
	font-family: var(--eph-cond);
	font-weight: 700;
	font-size: .85rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.eph-welcome__title {
	margin: 0;
	font-family: var(--eph-cond);
	font-weight: 800;
	font-size: clamp(1.6rem, 5vw, 2.4rem);
	line-height: 1.05;
	text-transform: uppercase;
	color: #fff;
}
.eph-welcome__match {
	margin: 6px 0 0;
	font-family: var(--eph-cond);
	font-weight: 600;
	font-size: 1.1rem;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: rgba(255,255,255,.75);
}
.eph-welcome__match span { color: #8fb0ff; padding: 0 .25em; }

/* ---------- Schräges blaues Label (wie „TORHÜTER“) ---------- */
.eph-tag {
	display: inline-block;
	margin: 34px 0 18px;
	padding: 12px 44px 12px 20px;
	background: var(--eph-blue-c);
	color: #fff;
	font-family: var(--eph-cond);
	font-weight: 800;
	font-size: 1.15rem;
	line-height: 1;
	letter-spacing: .12em;
	text-transform: uppercase;
	clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 100%, 0 100%);
}
.eph-body > .eph-tag:first-child { margin-top: 0; }

/* ---------- Kennzahlen: Zahl wie Rückennummer ---------- */
.eph-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr));
	gap: 12px;
}
.eph-stat {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px 18px;
	background: #fff;
	border: 1px solid var(--eph-line-c);
	border-left: 5px solid var(--eph-blue-c);
}
.eph-stat__value {
	font-family: var(--eph-cond);
	font-style: italic;
	font-weight: 800;
	font-size: 2rem;
	line-height: 1;
	color: var(--eph-blue-c);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.eph-stat__label {
	font-size: .78rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--eph-muted);
}

/* ---------- Infokarten (wie Spielerzeilen) ---------- */
.eph-welcome__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
	gap: 12px;
}
.eph-info {
	padding: 18px 20px;
	background: #fff;
	border: 1px solid var(--eph-line-c);
	border-left: 5px solid var(--eph-blue-c);
}
.eph-info h3 {
	margin: 0 0 8px;
	font-family: var(--eph-cond);
	font-weight: 800;
	font-size: 1.25rem;
	letter-spacing: .03em;
	text-transform: uppercase;
	color: var(--eph-navy-c);
}
.eph-info p { margin: 0 0 .5em; font-size: .95rem; line-height: 1.55; color: #2f3850; }
.eph-info p:last-child { margin-bottom: 0; }
.eph-info a { color: var(--eph-blue-c); }

.eph-profile__intro { margin-top: 24px; line-height: 1.6; }
.eph-profile__intro a { color: var(--eph-blue-c); }

.eph-address {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 16px;
	align-items: center;
	justify-content: space-between;
	margin-top: 12px;
	padding: 16px 20px;
	background: var(--eph-page-c);
	border-left: 5px solid var(--eph-navy-c);
}
.eph-address strong { font-family: var(--eph-cond); text-transform: uppercase; letter-spacing: .06em; }

.eph-welcome__bilanz { margin-top: 0; }

/* ---------- Buttons ---------- */
.eph-welcome__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 24px;
}
.eph-btn {
	display: inline-block;
	padding: 12px 34px 12px 18px;
	background: var(--eph-blue-c);
	color: #fff !important;
	font-family: var(--eph-cond);
	font-weight: 700;
	font-size: 1.05rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	text-decoration: none !important;
	clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
	transition: background .15s ease;
}
.eph-btn:hover { background: var(--eph-navy-c); }
.eph-btn:focus-visible { outline: 3px solid var(--eph-navy-c); outline-offset: 3px; clip-path: none; }
.eph-btn--ghost { background: var(--eph-navy-c); }
.eph-btn--ghost:hover { background: var(--eph-blue-c); }

/* ---------- Hallen-Liste ---------- */
.eph-list {
	margin: 0 0 2rem;
	padding: clamp(18px, 4.5vw, 40px);
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 4px 18px rgba(15, 27, 69, .06);
}
.eph-search {
	width: 100%;
	padding: 14px 16px;
	margin-bottom: 18px;
	border: 1px solid var(--eph-line-c);
	border-left: 5px solid var(--eph-blue-c);
	border-radius: 0;
	font-size: 1rem;
	font-family: var(--eph-sans);
	color: var(--eph-navy-c);
	background: #fff;
}
.eph-search:focus { outline: 2px solid var(--eph-blue-c); outline-offset: 1px; }
.eph-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
	gap: 12px;
}
.eph-card {
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 20px;
	background: #fff;
	border: 1px solid var(--eph-line-c);
	border-left: 5px solid var(--eph-blue-c);
	color: var(--eph-navy-c) !important;
	text-decoration: none !important;
	transition: background .15s ease, transform .15s ease;
}
.eph-card:hover, .eph-card:focus-visible { background: var(--eph-page-c); transform: translateX(3px); }
.eph-card--home { border-left-color: var(--eph-navy-c); background: var(--eph-page-c); }
.eph-card__logo {
	flex: 0 0 48px;
	width: 48px; height: 48px;
	display: grid;
	place-items: center;
}
.eph-card__logo img { max-width: 100%; max-height: 100%; height: auto; object-fit: contain; }
.eph-card__logo span {
	width: 44px; height: 44px;
	display: grid; place-items: center;
	border-radius: 50%;
	background: var(--eph-navy-c);
	color: #fff;
	font-family: var(--eph-cond);
	font-weight: 800;
	font-size: 1.3rem;
}
.eph-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.eph-card__team {
	font-family: var(--eph-cond);
	font-weight: 800;
	font-size: 1.3rem;
	line-height: 1.1;
	letter-spacing: .02em;
	text-transform: uppercase;
}
.eph-card__hall {
	font-size: .8rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--eph-muted);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.eph-card__km {
	font-family: var(--eph-cond);
	font-style: italic;
	font-weight: 800;
	font-size: 1.9rem;
	line-height: 1;
	color: var(--eph-blue-c);
	text-align: right;
	font-variant-numeric: tabular-nums;
}
.eph-card__km small {
	display: block;
	font-style: normal;
	font-size: .7rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--eph-muted);
}
.eph-badge {
	align-self: flex-start;
	padding: 2px 14px 2px 8px;
	background: var(--eph-blue-c);
	color: #fff;
	font-family: var(--eph-cond);
	font-weight: 700;
	font-size: .72rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}
.eph-badge--muted { background: var(--eph-navy-c); }
.eph-empty { color: var(--eph-muted); }

@media (max-width: 480px) {
	.eph-welcome__logo { flex-basis: 58px; width: 58px; height: 58px; }
	.eph-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.eph-stat { padding: 14px 12px; min-width: 0; }
	.eph-stat__value { font-size: 1.45rem; }
	.eph-card { padding: 14px 14px; gap: 12px; }
	.eph-card__km { font-size: 1.5rem; }
	.eph-btn { flex: 1 1 100%; text-align: center; }
	.eph-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.eph-btn, .eph-card { transition: none; }
}
