@charset "UTF-8";

/* =============================================================
   ESV Mainz — Design tokens
   Brand: indigo #333299. Accent: rose → blue.
   Centralized so any future re-skin happens in one place.
   ============================================================= */
:root {
	/* Brand */
	--esv-brand: #333299;
	--esv-brand-600: #2a2a85;
	--esv-brand-700: #232270;
	--esv-brand-50:  #eef0fb;
	--esv-brand-100: #d8dcf4;

	/* Accent (kept from legacy gradient, refined) */
	--esv-accent-rose: #b2293b;
	--esv-accent-blue: #0d599e;
	--esv-accent-gradient: linear-gradient(90deg, var(--esv-accent-rose) 0%, var(--esv-accent-blue) 100%);

	/* Neutrals */
	--esv-ink:        #1a1d2b;
	--esv-ink-muted: #4a4f63;
	--esv-line:       #e6e8ef;
	--esv-line-soft: #f1f2f7;
	--esv-bg-soft:   #f7f8fb;
	--esv-bg:         #ffffff;

	/* Feedback */
	--esv-success: #2f9b6e;
	--esv-warning: #ffc107;
	--esv-danger:  #dc3545;

	/* Typography */
	--esv-font-sans: 'Inter', 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif;

	/* Radii */
	--esv-radius-sm: 6px;
	--esv-radius:    12px;
	--esv-radius-lg: 18px;
	--esv-radius-pill: 999px;

	/* Elevation — soft, layered, 2026-style */
	--esv-shadow-xs: 0 1px 2px rgba(26, 29, 43, 0.05);
	--esv-shadow-sm: 0 2px 6px rgba(26, 29, 43, 0.06), 0 1px 2px rgba(26, 29, 43, 0.04);
	--esv-shadow-md: 0 8px 24px rgba(26, 29, 43, 0.08), 0 2px 6px rgba(26, 29, 43, 0.04);
	--esv-shadow-lg: 0 18px 48px rgba(26, 29, 43, 0.12), 0 4px 12px rgba(26, 29, 43, 0.06);
	--esv-shadow-brand: 0 10px 30px rgba(51, 50, 153, 0.22);

	/* Motion */
	--esv-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
	--esv-fast: 160ms;
	--esv-base: 240ms;

	/* Focus ring */
	--esv-focus-ring: 0 0 0 3px rgba(51, 50, 153, 0.28);
}

/* =============================================================
   Base
   ============================================================= */
body {
	font-family: var(--esv-font-sans);
	color: var(--esv-ink);
	font-feature-settings: 'cv11', 'ss01', 'ss03';
	font-variant-numeric: tabular-nums;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
	color: var(--esv-ink);
	letter-spacing: -0.01em;
	font-weight: 700;
}

h1 { letter-spacing: -0.02em; font-weight: 800; }

p, .lead {
	color: var(--esv-ink-muted);
}

a {
	color: var(--esv-brand);
	text-decoration: none;
	transition: color var(--esv-fast) var(--esv-ease);
}

a:hover {
	color: var(--esv-brand-700);
}

/* Accessible focus — keyboard only, branded ring */
:where(a, button, .btn, input, select, textarea, [tabindex]):focus-visible {
	outline: none;
	box-shadow: var(--esv-focus-ring);
	border-radius: var(--esv-radius-sm);
}

/* Selection color */
::selection {
	background: var(--esv-brand-100);
	color: var(--esv-brand-700);
}

#content {
	padding-top: 76px !important;
}

@media (min-width: 1200px) {
	#content {
		padding-top: 106px !important;
	}
	.util #content {
		padding-top: 90px !important;
	}
}

/* Fluid section padding — scales smoothly from mobile to desktop */
section {
	padding: clamp(3rem, 6vw, 5rem) 0;
}

@media (max-width: 767px) {
	section.first {
		padding-top: 75px;
	}
}

/* =============================================================
   Scroll-to-top — branded, round, properly elevated
   ============================================================= */
.scroll-to-top {
	position: fixed;
	right: 18px;
	bottom: 18px;
	display: none;
	width: 48px;
	height: 48px;
	text-align: center;
	color: white;
	background: var(--esv-brand);
	border-radius: var(--esv-radius-pill);
	line-height: 48px;
	z-index: 5;
	box-shadow: var(--esv-shadow-brand);
	transition: transform var(--esv-fast) var(--esv-ease),
	            background var(--esv-fast) var(--esv-ease);
}

.scroll-to-top:focus,
.scroll-to-top:hover {
	color: white;
	background: var(--esv-brand-700);
	transform: translateY(-2px);
}

.scroll-to-top i {
	font-weight: 800;
}

/* =============================================================
   Navigation
   ============================================================= */
#mainNav.navbar-landingpage a:focus {
	outline: none; /* focus-visible above provides accessible alternative */
}

#mainNav.navbar-landingpage {
	background: rgba(255, 255, 255, 0.85);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid transparent;
	transition: background var(--esv-base) var(--esv-ease),
	            border-color var(--esv-base) var(--esv-ease),
	            box-shadow var(--esv-base) var(--esv-ease),
	            padding var(--esv-base) var(--esv-ease);
}

#mainNav.navbar-landingpage .navbar-brand {
	font-size: 1.1rem;
	color: var(--esv-brand);
	font-weight: 700;
}

.landingpage #mainNav.navbar-landingpage .navbar-brand.active,
#mainNav.navbar-landingpage .navbar-brand:active,
#mainNav.navbar-landingpage .navbar-brand:focus,
#mainNav.navbar-landingpage .navbar-brand:hover {
	color: var(--esv-brand-700);
}

#mainNav.navbar-landingpage .navbar-nav {
	letter-spacing: 0.2px;
	padding: 1rem;
}

#mainNav.navbar-landingpage .navbar-nav li.nav-item a.nav-link {
	color: var(--esv-ink);
	font-weight: 600;
	margin-left: 0.25rem;
	padding: 0.5rem 0.85rem;
	border-radius: var(--esv-radius-sm);
	transition: color var(--esv-fast) var(--esv-ease),
	            background var(--esv-fast) var(--esv-ease);
}

#mainNav.navbar-landingpage .navbar-nav li.nav-item a.nav-link:hover {
	color: var(--esv-brand);
	background: var(--esv-brand-50);
	outline: none;
}

#mainNav.navbar-landingpage .navbar-nav li.nav-item a.nav-link:active,
#mainNav.navbar-landingpage .navbar-nav li.nav-item a.nav-link:focus {
	color: var(--esv-brand);
}

#mainNav.navbar-landingpage .navbar-toggler {
	font-size: 14px;
	padding: 10px 12px;
	color: white;
	border: 1px solid var(--esv-brand);
	background: var(--esv-brand);
	border-radius: var(--esv-radius-sm);
}

#mainNav.navbar-landingpage .navbar-toggler:focus,
#mainNav.navbar-landingpage .navbar-toggler:hover {
	color: white;
	background-color: var(--esv-brand-700);
	border-color: var(--esv-brand-700);
}

#mainNav.navbar-landingpage.navbar-shrink,
.admin .navbar {
	background: rgba(255, 255, 255, 0.92);
	border-bottom: 1px solid var(--esv-line);
	-webkit-box-shadow: var(--esv-shadow-sm);
	box-shadow: var(--esv-shadow-sm);
}

#mainNav img,
#adminNav img {
	max-height: 48px;
}

@media (min-width: 992px) {
	#mainNav {
		-webkit-transition: padding-top 0.3s, padding-bottom 0.3s;
		-moz-transition: padding-top 0.3s, padding-bottom 0.3s;
		transition: padding-top 0.3s, padding-bottom 0.3s;
		-webkit-box-shadow: none;
		box-shadow: none;
	}
	#mainNav .navbar-brand {
		font-size: 2em;
		-webkit-transition: all 0.3s;
		-moz-transition: all 0.3s;
		transition: all 0.3s;
	}
	.landingpage #mainNav .navbar-nav > li.nav-item > a.nav-link.active {
		color: white;
		border-radius: var(--esv-radius-sm);
		background: var(--esv-brand);
	}
	.landingpage #mainNav .navbar-nav > li.nav-item > a.nav-link.active:active,
	.landingpage #mainNav.navbar-landingpage .navbar-nav > li.nav-item > a.nav-link.active:focus,
	.landingpage #mainNav.navbar-landingpage .navbar-nav > li.nav-item > a.nav-link.active:hover {
		color: white;
		background: var(--esv-brand-700);
	}
	#mainNav.navbar-shrink {
		padding-top: 0;
		padding-bottom: 0;
	}
	#mainNav.navbar-shrink .navbar-brand {
		font-size: 1.5em;
	}
	/* Main nav logo */
	#mainNav.navbar-landingpage img {
		position: absolute;
		top: 2.2rem;
		transition: top var(--esv-base) var(--esv-ease),
		            width var(--esv-base) var(--esv-ease);
	}
	#mainNav.navbar-landingpage.navbar-shrink img {
		position: relative;
		width: 100px;
		top: 0.2rem;
	}
	#mainNav img,
	#adminNav img {
		max-height: none;
	}
}

/* =============================================================
   Sidebar (admin)
   ============================================================= */
.sidebar {
	width: 250px;
	position: fixed;
	top: 0;
	left: 0;
	height: 100%;
	background-color: var(--esv-bg-soft);
	border-right: 1px solid var(--esv-line);
	overflow-x: hidden;
	padding-top: 106px;
}

.sidebar a {
	padding: 10px 16px;
	text-decoration: none;
	font-size: 1rem;
	font-weight: 500;
	color: var(--esv-ink);
	display: block;
	border-radius: var(--esv-radius-sm);
	margin: 2px 8px;
	transition: background var(--esv-fast) var(--esv-ease),
	            color var(--esv-fast) var(--esv-ease);
}

.sidebar a:hover {
	color: var(--esv-brand);
	background: var(--esv-brand-50);
}

/* =============================================================
   Buttons & utility classes
   ============================================================= */
.btn-round {
	border-radius: var(--esv-radius-pill);
}

/* Modernize Bootstrap buttons globally without losing existing semantics */
.btn {
	font-weight: 600;
	letter-spacing: 0.1px;
	border-radius: var(--esv-radius-sm);
	padding: 0.55rem 1.1rem;
	transition: transform var(--esv-fast) var(--esv-ease),
	            box-shadow var(--esv-fast) var(--esv-ease),
	            background-color var(--esv-fast) var(--esv-ease),
	            color var(--esv-fast) var(--esv-ease),
	            border-color var(--esv-fast) var(--esv-ease);
}

.btn:active {
	transform: translateY(1px);
}

/* Keep Bootstrap's size modifiers proportional after the .btn padding override above */
.btn-sm {
	padding: 0.3rem 0.6rem;
	font-size: 0.85rem;
	border-radius: var(--esv-radius-sm);
}

.btn-lg {
	padding: 0.7rem 1.4rem;
	font-size: 1.05rem;
	border-radius: var(--esv-radius);
}

.btn-primary {
	background-color: var(--esv-brand);
	border-color: var(--esv-brand);
}

.btn-primary:hover,
.btn-primary:focus {
	background-color: var(--esv-brand-700);
	border-color: var(--esv-brand-700);
	box-shadow: var(--esv-shadow-sm);
}

.btn-outline-primary {
	color: var(--esv-brand);
	border-color: var(--esv-brand);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
	background-color: var(--esv-brand);
	border-color: var(--esv-brand);
	color: white;
}

.text-primary { color: var(--esv-brand) !important; }
.bg-primary   { background-color: var(--esv-brand) !important; }
.border-primary { border-color: var(--esv-brand) !important; }


/* =============================================================
   Cards — refined elevation & hover
   ============================================================= */
.card {
	border: 1px solid var(--esv-line);
	border-radius: var(--esv-radius);
	box-shadow: var(--esv-shadow-xs);
	transition: transform var(--esv-base) var(--esv-ease),
	            box-shadow var(--esv-base) var(--esv-ease);
}

.shadow-sm.card,
.card.shadow-sm {
	box-shadow: var(--esv-shadow-sm) !important;
}

.card:hover {
	box-shadow: var(--esv-shadow-md);
}

/* =============================================================
   Page header — used on Matches, Stats, etc.
   Replaces the bare "breadcrumb → active" entry into a page.
   ============================================================= */
.page-header {
	margin: 0.25rem 0 1.75rem;
}

.page-title {
	font-size: clamp(1.65rem, 1.2rem + 1.8vw, 2.25rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	margin: 0;
	color: var(--esv-ink);
}

.page-subtitle {
	margin: 0.35rem 0 0;
	color: var(--esv-ink-muted);
	font-size: 1rem;
}

/* =============================================================
   Match list & match card
   ============================================================= */
.match-list {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.match-card.list-group-item {
	border: 1px solid var(--esv-line);
	border-radius: var(--esv-radius);
	padding: 1rem 1.25rem;
	background: white;
	box-shadow: var(--esv-shadow-xs);
	transition: transform var(--esv-fast) var(--esv-ease),
	            box-shadow var(--esv-base) var(--esv-ease),
	            border-color var(--esv-fast) var(--esv-ease);
}

.match-card.list-group-item:hover,
.match-card.list-group-item:focus {
	transform: translateY(-1px);
	border-color: var(--esv-brand-100);
	box-shadow: var(--esv-shadow-sm);
}

.match-card.list-group-item.active {
	background: white;
	border-color: var(--esv-brand);
	color: var(--esv-ink);
}

/* Score: tabular, large, brand-tinted; dash is de-emphasized */
.match-score {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	line-height: 1;
	margin-bottom: 0.35rem;
}

.match-score-num {
	font-size: clamp(2rem, 1.4rem + 1.6vw, 2.6rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--esv-ink);
	font-variant-numeric: tabular-nums;
}

.match-score-sep {
	font-size: 1.6rem;
	color: var(--esv-ink-muted);
	font-weight: 500;
}

.match-team-icon {
	font-size: 1rem;
	opacity: 0.85;
}

.match-time {
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--esv-ink);
	font-variant-numeric: tabular-nums;
	margin-bottom: 0.15rem;
}

.match-location {
	font-size: 0.85rem;
	color: var(--esv-ink-muted);
}

/* =============================================================
   Match result editor — per-player +/- steppers (MatchEditor)
   Tap a stepper to add, long-press to subtract.
   ============================================================= */
.stat-row {
	margin-bottom: 0.5rem;
}

.stat-player-name {
	font-weight: 700;
	color: var(--esv-ink);
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Full-width, comfortable tap target; number is the hero, + is a hint */
.stat-stepper {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.3rem;
	min-height: 2.5rem;
	padding-inline: 0.4rem;
	font-variant-numeric: tabular-nums;
}

.stat-stepper-icon {
	font-size: 0.7rem;
	opacity: 0.6;
}

.stat-stepper-value {
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1;
}

/* Column headers above the steppers (Tor / Assist / Eigentor) */
.stat-col-label {
	font-size: 0.7rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--esv-ink-muted);
	text-align: center;
	white-space: nowrap;
}

/* =============================================================
   sb-admin stat cards (Dashboard / Stats)
   Fix the invisible `text-light` icons and refine the value/label.
   ============================================================= */
/* Right-side icons were `text-light` (#f8f9fa) on a white card — invisible.
   Re-tint to a soft neutral that still recedes but is actually visible. */
.card .col-auto .fa-2x.text-light,
.card .col-auto .fa-3x.text-light {
	color: var(--esv-line) !important;
	opacity: 1;
}

/* Larger, more confident metric value */
.card .h5.font-weight-bold,
.card .h5.fw-bold {
	font-size: 1.6rem;
	letter-spacing: -0.01em;
	font-variant-numeric: tabular-nums;
}

/* Tiny uppercase label — keep, but better tracking */
.card .text-xs.font-weight-bold,
.card .text-xs.fw-bold {
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-size: 0.72rem;
}

/* Slightly thicker accent bars (sb-admin border-start-*) */
.card.border-start-primary { border-left-width: 4px !important; }
.card.border-start-success { border-left-width: 4px !important; }
.card.border-start-info    { border-left-width: 4px !important; }
.card.border-start-warning { border-left-width: 4px !important; }
.card.border-start-danger  { border-left-width: 4px !important; }

/* Stat-card data tables: tighter, calmer, tabular numerals */
.card .table-sm th,
.card .table-sm td {
	padding: 0.4rem 0.5rem;
	font-variant-numeric: tabular-nums;
	vertical-align: middle;
}

.card .table-sm thead th {
	font-size: 0.72rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--esv-ink-muted);
	font-weight: 600;
	border-bottom-color: var(--esv-line);
}

/* =============================================================
   Hero / start
   ============================================================= */
#start {
	background-image: url("https://files.esv-mainz.ebalde.com/IMG_2172.jpg");
	background-size: cover;
	background-position: center 35%;
	height: 93vh;
	position: relative;
}

/* Subtle bottom-to-clear scrim improves legibility regardless of crop */
#start::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.25) 100%);
	pointer-events: none;
}

#start > * {
	position: relative;
	z-index: 1;
}

#start .title {
	font-size: 1.9rem;
	font-weight: 800;
	letter-spacing: -0.015em;
	color: #1A2E36;
	line-height: 1.25;
}

/* Frosted-glass title plate — modern, recognizable, accessible */
#start .title.title-with-bg {
	background-color: rgba(255, 255, 255, 0.72);
	-webkit-backdrop-filter: blur(8px) saturate(140%);
	backdrop-filter: blur(8px) saturate(140%);
	padding: 0.5rem 0.85rem;
	border-radius: var(--esv-radius);
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
	display: inline;
	line-height: 1.6;
	box-shadow: var(--esv-shadow-sm);
}

#start .subtitle {
	font-size: 1.6rem;
	color: var(--esv-ink-muted);
}

@media (min-width: 576px) {
	#start .title    { font-size: 2.2rem; }
	#start .subtitle { font-size: 1.7rem; }
}

@media (min-width: 768px) {
	#start .title    { font-size: 2.6rem; }
	#start .subtitle { font-size: 1.8rem; }
}

@media (min-width: 992px) {
	#start { padding-top: 10vh; }
	#start .title    { font-size: 3.2rem; }
	#start .subtitle { font-size: 2rem; }
}

@media (min-width: 1200px) {
	#start { padding-top: 7vh; }
	#start .title    { font-size: 4rem; }
	#start .subtitle { font-size: 2.3rem; }
}

/* =============================================================
   About / dashboard pieces
   ============================================================= */
#about-us .col-12 {
	display: flex;
}

.gradient-box {
	border: 0 transparent;
	border-radius: var(--esv-radius);
	background-image:
		linear-gradient(white, white),
		var(--esv-accent-gradient);
	background-origin: border-box;
	background-clip: content-box, border-box;
	box-shadow: var(--esv-shadow-sm);
}

.number-box {
	height: 4.5rem;
	width: 4.5rem;
	position: relative;
	top: -2.5rem;
	border-radius: var(--esv-radius-pill);
	box-shadow: var(--esv-shadow-brand);
}

.gradient-box-content {
	position: relative;
	top: -1.5rem;
}

#highlight-panel {
	position: relative;
	top: -3rem;
	margin-bottom: -3rem;
	background: white;
	min-height: 18rem;
	border-radius: var(--esv-radius-lg);
	box-shadow: var(--esv-shadow-md);
}

@media (min-width: 430px) {
	#highlight-panel { top: -5rem; margin-bottom: -5rem; }
}

@media (min-width: 576px) {
	#highlight-panel { top: -7rem; margin-bottom: -7rem; }
}

@media (min-width: 768px) {
	#highlight-panel { top: -9rem; margin-bottom: -9rem; }
}

@media (min-width: 992px) {
	#highlight-panel { top: -11rem; margin-bottom: -11rem; }
}

/* =============================================================
   Gallery
   ============================================================= */
#galerie a img,
#study-groups a img,
#study-groups img {
	filter: none;
}

#galerie a:hover img,
#study-groups a:hover img {
	filter: grayscale(100%);
}

/* =============================================================
   Misc
   ============================================================= */
.navbar .nav-item > a > span.flag-icon {
	filter: grayscale(0.6);
	border-radius: 4px;
	transition: filter var(--esv-fast) var(--esv-ease);
}

.navbar .nav-item > a:hover > span.flag-icon {
	filter: grayscale(0);
}

/* avoid the border on the info window close button, on map marker click */
.gm-style-iw-c button:focus {
	outline: none !important;
}

.lightboxOverlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.breadcrumb {
	background-color: transparent;
	font-size: 0.9rem;
	color: var(--esv-ink-muted);
}

.wide-tooltip .tooltip-inner {
	width: 400px;
	max-width: 400px;
	text-align: left;
}

/* Form controls — tighter, friendlier focus */
.form-control:focus,
.form-select:focus {
	border-color: var(--esv-brand);
	box-shadow: var(--esv-focus-ring);
}

/* =============================================================
   Timer animations
   ============================================================= */
@-webkit-keyframes blink-halftime {
	0%, 100% { opacity: 1;   background-color: #ffc107; }
	50%      { opacity: 0.4; background-color: #ffdb58; }
}
@keyframes blink-halftime {
	0%, 100% { opacity: 1;   background-color: #ffc107; }
	50%      { opacity: 0.4; background-color: #ffdb58; }
}

@-webkit-keyframes blink-ending {
	0%, 100% { opacity: 1;   background-color: #dc3545; }
	50%      { opacity: 0.4; background-color: #ff6b6b; }
}
@keyframes blink-ending {
	0%, 100% { opacity: 1;   background-color: #dc3545; }
	50%      { opacity: 0.4; background-color: #ff6b6b; }
}

.timer-blink-halftime {
	-webkit-animation: blink-halftime 0.8s ease-in-out infinite !important;
	animation:         blink-halftime 0.8s ease-in-out infinite !important;
	background-color: #ffc107 !important;
	color: #000 !important;
}

.timer-blink-ending {
	-webkit-animation: blink-ending 0.4s ease-in-out infinite !important;
	animation:         blink-ending 0.4s ease-in-out infinite !important;
	background-color: #dc3545 !important;
	color: #fff !important;
}

.timer-paused {
	opacity: 0.6 !important;
}

/* =============================================================
   Reduced motion — respect user preference (a11y)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}

	.timer-blink-halftime,
	.timer-blink-ending {
		animation: none !important;
	}
}
