/* SchalkeTOTAL – App-Bereiche: Fanzone, Forum, Profil */

.st-app { max-width: 900px; padding-bottom: 40px; }
.st-app-head { padding: var(--st-page-top) var(--st-gutter) 14px; }
.st-app-head p { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--st-text-soft); }
.st-app-head h1 { margin: 0; font-size: clamp(32px, 9vw, 48px); font-weight: 800; letter-spacing: -.01em; text-transform: uppercase; line-height: 1; }
.st-app-section { padding: 0 var(--st-gutter); }

/* ---------- Nächstes Spiel ---------- */

.st-nextmatch {
	position: relative;
	display: block;
	overflow: hidden;
	padding: 18px var(--st-gutter) 20px;
	color: #fff;
	text-align: center;
	background:
		linear-gradient(105deg, rgba(0, 20, 55, .5) 0 49.8%, rgba(255, 255, 255, .06) 50.2% 100%),
		linear-gradient(180deg, var(--st-blue-deep), var(--st-blue-deeper));
}
.st-nextmatch::after {
	content: 'MATCHDAY';
	position: absolute;
	left: 50%;
	top: 50%;
	font-size: 92px;
	font-weight: 800;
	letter-spacing: -.04em;
	color: rgba(255, 255, 255, .04);
	transform: translate(-50%, -50%);
	white-space: nowrap;
	pointer-events: none;
}
.st-nextmatch-label { position: relative; display: inline-flex; align-items: center; padding: 4px 10px; background: #fff; color: var(--st-blue); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.st-nextmatch.is-live .st-nextmatch-label { background: var(--st-live); color: #fff; }
.st-nextmatch.is-live .st-live-dot { background: #fff; }
.st-nextmatch-board { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; margin-top: 18px; }
.st-nextmatch-team { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.st-nextmatch-team img { width: 68px; height: 68px; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(0, 10, 30, .4)); }
.st-nextmatch-team strong { font-size: 15px; font-weight: 700; line-height: 1.2; }
.st-nextmatch-mid { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 90px; }
.st-nextmatch-time { font-size: 36px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.st-nextmatch-score { font-size: 44px; font-weight: 800; line-height: 1; }
.st-nextmatch-mid small { font-size: 13px; font-weight: 700; color: var(--st-text-soft); }
.st-nextmatch-countdown { position: relative; }
.st-nextmatch-countdown span { min-width: 58px; }
.st-nextmatch-cta { position: relative; display: inline-block; margin-top: 16px; padding: 10px 18px; border: 2px solid #fff; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; transition: background .15s, color .15s; }
.st-nextmatch:hover .st-nextmatch-cta { background: #fff; color: var(--st-blue); }

/* ---------- Mini-Apps ---------- */

.st-apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 0 calc(-1 * var(--st-gutter)); }
.st-appcard {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-height: 150px;
	padding: 16px;
	background: var(--st-blue-deep);
	color: #fff;
	transition: background .15s;
}
a.st-appcard:hover { background: #00428c; }
.st-appcard-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 4px; background: #fff; color: var(--st-blue); }
.st-appcard strong { font-size: 17px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
.st-appcard small { font-size: 13px; line-height: 1.4; color: var(--st-text-soft); }
.st-appcard.is-soon { opacity: .6; }
.st-appcard.is-soon .st-appcard-icon { background: rgba(255, 255, 255, .15); color: #fff; }
.st-appcard em { position: absolute; top: 14px; right: 14px; padding: 2px 8px; border: 1.5px solid rgba(255, 255, 255, .5); font-size: 10px; font-style: normal; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Forum (folgt) ---------- */

.st-app-soon { margin: 0 var(--st-gutter); padding: 32px 22px; background: var(--st-blue-deep); text-align: center; }
.st-app-soon h2 { margin: 14px 0 8px !important; font-size: 22px; font-weight: 800; }
.st-app-soon p { margin: 0 auto; max-width: 420px; color: var(--st-text-soft); }
.st-app-soon .st-more-btn { display: inline-block; margin-top: 20px; padding: 12px 22px; }

/* ---------- Profil ---------- */

.st-account-card { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; margin: 0 0 6px; padding: 20px var(--st-gutter); background: linear-gradient(180deg, var(--st-blue-deep), var(--st-blue-deeper)); }
.st-account-avatar { width: 64px; height: 64px; object-fit: cover; box-shadow: 0 0 0 2px #fff; }
.st-account-avatar--empty { display: grid; place-items: center; background: rgba(255, 255, 255, .1); box-shadow: none; }
.st-account-text { display: flex; flex-direction: column; gap: 3px; }
.st-account-text strong { font-size: 19px; font-weight: 800; }
.st-account-text small { font-size: 13px; line-height: 1.4; color: var(--st-text-soft); }
.st-account-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.st-account-actions .st-more-btn { margin: 0; padding: 12px; }
.st-more-btn--ghost { border-color: rgba(255, 255, 255, .45) !important; }
.st-account-actions .st-more-btn:only-child { grid-column: 1 / -1; background: #fff; color: var(--st-blue); }
.st-saved-empty { margin: 0; padding: 18px var(--st-gutter); }
.st-saved-remove { flex: none; align-self: center; width: 34px; height: 34px; border: 0; background: none; color: var(--st-text-soft); cursor: pointer; }
.st-saved-remove:hover { color: #fff; }

@media (min-width: 640px) {
	.st-apps { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
	.st-nextmatch-team img { width: 96px; height: 96px; }
	.st-nextmatch-time { font-size: 48px; }
	.st-nextmatch::after { font-size: 160px; }
}

/* Gemerkte Artikel: Entfernen-Knopf neben der Zeile */
[data-st-saved] .st-row { display: flex; align-items: center; gap: 4px; }
[data-st-saved] .st-row > a { flex: 1; min-width: 0; }

/* Login-Formular: assets/auth.css (auch als Fenster auf allen Seiten) */

/* Kontrast: zweiter Knopf transparent mit weißem Rahmen (auch als <button>) */
.st .st-more-btn--ghost { background: transparent !important; color: #fff !important; border: 2px solid rgba(255, 255, 255, .7) !important; }
.st .st-more-btn--ghost:hover { background: #fff !important; color: var(--st-blue) !important; }
.st-auth .st-account-actions { grid-template-columns: 1fr; margin-top: 22px; }
.st-auth .st-account-actions button { width: 100%; padding: 13px; cursor: pointer; font: inherit; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }

/* Profilbild ändern */
.st-avatar-edit { position: relative; flex: none; cursor: pointer; }
.st-avatar-edit .st-account-avatar { width: 72px; height: 72px; }
.st-avatar-edit-badge { position: absolute; right: -6px; bottom: -6px; display: grid; place-items: center; width: 28px; height: 28px; background: #fff; color: var(--st-blue); box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.st-avatar-edit:hover .st-avatar-edit-badge { background: #eef3fb; }
.st-link-btn { justify-self: start; margin-top: 6px; padding: 0; border: 0; background: none; color: var(--st-text-soft); font: inherit; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.st-auth-me .st-account-text strong { font-size: 20px; }

/* Profilname mit @ */
.st-handle-input { display: flex; align-items: center; border: 1px solid var(--st-line); background: var(--st-blue-deeper); }
.st-handle-input:focus-within { border-color: rgba(255, 255, 255, .6); }
.st-handle-input b { padding: 0 2px 0 14px; font-size: 16px; font-weight: 800; color: var(--st-text-soft); }
.st .st-handle-input input { border: 0 !important; background: none !important; padding-left: 2px; }
.st .st-auth-hint { margin: -4px 0 0; font-size: 12px; color: var(--st-text-soft); }

/* Lieblingsspieler */
.st-favs { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--st-line); }
.st .st-favs h3 { margin: 0 0 6px; font-size: 17px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.st-favs .st-auth-hint { margin: 0 0 14px; }
.st-fav-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.st .st-fav {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 8px 6px 6px;
	border: 1.5px solid transparent;
	background: rgba(255, 255, 255, .07);
	color: #fff;
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: background .15s, border-color .15s;
}
.st-fav img { flex: none; width: 40px; height: 40px; object-fit: cover; object-position: top; background: linear-gradient(180deg, #fff, #dfe9f7); }
.st-fav span { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.st-fav strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-fav small { font-size: 11px; color: var(--st-text-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st .st-fav.is-on { border-color: #fff; background: rgba(255, 255, 255, .18); }
.st-fav.is-on::after { content: '✓'; margin-left: auto; font-weight: 800; }
@media (min-width: 640px) { .st-fav-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
