/* BSI Fodbold – design-tillæg oven på CargoPress-temaet.
   Slet denne fil og bsi-design.php i wp-content/mu-plugins for at få det gamle udseende tilbage. */

:root {
	--bsi-red: #dd3333;
	--bsi-red-dark: #b82323;
	--bsi-navy: #101a27;
	--bsi-navy-2: #1b2a3d;
	--bsi-ink: #1d2733;
	--bsi-text: #46505c;
	--bsi-line: #e6e9ee;
	--bsi-soft: #f5f6f8;
	--bsi-radius: 14px;
	--bsi-shadow: 0 10px 30px rgba(16, 26, 39, 0.10);
	--bsi-shadow-hover: 0 18px 44px rgba(16, 26, 39, 0.18);
	--bsi-display: "Barlow Condensed", "Source Sans Pro", Helvetica, Arial, sans-serif;
}

/* ---------- Grundtypografi ---------- */
body {
	color: var(--bsi-text);
	font-size: 16px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6,
.hentry__title a,
.page-box__title a {
	font-family: var(--bsi-display);
	font-weight: 700;
	letter-spacing: 0.01em;
	line-height: 1.12;
	color: var(--bsi-ink);
}

/* ---------- Forside-slider ---------- */
.jumbotron {
	margin-bottom: 0;
	background-color: var(--bsi-navy) !important;
	overflow: hidden;
}
.jumbotron .carousel { position: relative; }
.jumbotron .carousel-inner > .item > img,
.jumbotron .carousel-inner > .item > a > img {
	width: 100%;
	/* Samme højde på alle slides. Udsnittet holdes mod toppen, så hoveder ikke skæres af. */
	height: 50vw;
	object-fit: cover;
	object-position: center 12%;
}
.jumbotron-content { padding: 26px 0 30px; }
/* Mobil/tablet: samme højde på tekstfeltet under billedet på alle slides */
@media (max-width: 991px) {
	.jumbotron-content {
		box-sizing: border-box;
		min-height: 260px;
		display: flex;
		flex-direction: column;
		justify-content: center;
	}
}
.jumbotron-content__title h1 {
	color: #fff;
	font-size: 38px;
	line-height: 1.02;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	margin-bottom: 12px;
}
.jumbotron-content__title h1::before {
	content: "";
	display: block;
	width: 64px;
	height: 5px;
	margin-bottom: 18px;
	border-radius: 4px;
	background: var(--bsi-red);
}
.jumbotron-content__description,
.jumbotron-content__description p {
	color: rgba(255, 255, 255, 0.88);
	font-size: 17px;
	line-height: 1.55;
}
.jumbotron-content__description p:last-child { margin-bottom: 0; }

/* Pile */
.jumbotron .carousel > .container {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 0;
	margin: 0 auto;
	z-index: 5;
}
.jumbotron__control,
body.boxed .jumbotron__control {
	top: calc(25vw - 22px);
	width: 44px;
	height: 44px;
	line-height: 42px;
	margin: 0 !important;
	font-size: 18px;
	border-radius: 50% !important;
	border: 1px solid rgba(255, 255, 255, 0.45);
	background-color: rgba(16, 26, 39, 0.45);
	color: #fff;
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.jumbotron__control:hover,
.jumbotron__control:focus {
	background-color: var(--bsi-red);
	border-color: var(--bsi-red);
	color: #fff;
	text-decoration: none;
}
.jumbotron__control.left { left: 12px; right: auto; }
.jumbotron__control.right { right: 12px; left: auto; }

@media (min-width: 992px) {
	.jumbotron .carousel-inner > .item > img,
	.jumbotron .carousel-inner > .item > a > img {
		height: clamp(320px, 31.25vw, 600px);
	}
	/* Mørk toning, så teksten altid kan læses */
	.jumbotron--with-captions .carousel-inner > .item::after {
		content: "";
		position: absolute;
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
		background: linear-gradient(90deg, rgba(16, 26, 39, 0.82) 0%, rgba(16, 26, 39, 0.52) 28%, rgba(16, 26, 39, 0.06) 56%, rgba(16, 26, 39, 0) 100%);
		pointer-events: none;
		z-index: 1;
	}
	.jumbotron .carousel-inner > .item > .container {
		position: absolute;
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
		margin: 0 auto;
		z-index: 2;
		display: flex;
		align-items: center;
	}
	.jumbotron-content {
		position: static !important;
		width: 620px;
		max-width: 62%;
		padding: 0 0 20px;
	}
	.jumbotron-content__title h1 {
		font-size: clamp(36px, 3.6vw, 58px);
		text-shadow: 0 2px 22px rgba(0, 0, 0, 0.35);
		margin-bottom: 16px;
	}
	.jumbotron-content__description,
	.jumbotron-content__description p { font-size: 19px; }

	.jumbotron .carousel > .container {
		top: auto;
		bottom: 74px;
	}
	.jumbotron__control,
	body.boxed .jumbotron__control {
		top: 0;
		width: 50px;
		height: 50px;
		line-height: 48px;
	}
	/* Pile nederst til højre, så de aldrig dækker teksten */
	.jumbotron__control.left { left: auto; right: 75px; }
	.jumbotron__control.right { left: auto; right: 15px; }
	.jumbotron-content__description { max-width: 520px; }
}
@media (min-width: 992px) and (max-width: 1399px) {
	.jumbotron-content { padding-bottom: 20px; }
	.jumbotron-content__title h1 { font-size: 40px; margin-bottom: 10px; }
	.jumbotron-content__description,
	.jumbotron-content__description p { font-size: 15px; line-height: 1.45; }
	.jumbotron-content__description p { margin-bottom: 8px; }
}
@media (min-width: 1500px) {
	.jumbotron .carousel > .container { bottom: 150px; }
	.jumbotron-content { padding-bottom: 110px; }
}

a { transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease; }

.hentry__content a,
.textwidget a { color: var(--bsi-red); }
.hentry__content a:hover,
.textwidget a:hover { color: var(--bsi-red-dark); }

::selection { background: var(--bsi-red); color: #fff; }

/* ---------- Header ---------- */
.header__widgets .widget { font-size: 14px; }
.header .icon-box__title { color: #7b8591 !important; }
.header .icon-box__subtitle { color: var(--bsi-ink) !important; font-weight: 600; }

.main-navigation > li > a {
	font-family: var(--bsi-display);
	font-weight: 600;
	font-size: 18px;
	line-height: 24px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

@media (min-width: 992px) {
	.main-navigation > .current-menu-item > a::after,
	.main-navigation > li:hover > a::after,
	.main-navigation > li:focus > a::after {
		background-color: #fff !important;
		height: 3px;
		bottom: 10px;
		border-radius: 3px;
	}
	.main-navigation ul.sub-menu {
		border-radius: 0 0 12px 12px;
		box-shadow: 0 16px 34px rgba(16, 26, 39, 0.18);
		overflow: hidden;
		padding: 6px 0;
	}
	.main-navigation .sub-menu > li > a {
		color: var(--bsi-text) !important;
		font-weight: 500;
		padding-top: 11px;
		padding-bottom: 11px;
	}
	.main-navigation .sub-menu > li > a:hover {
		color: var(--bsi-red) !important;
		background-color: var(--bsi-soft) !important;
	}
	.is-sticky-nav .header__navigation { box-shadow: 0 6px 20px rgba(16, 26, 39, 0.22); }
}

/* Mobilmenu */
@media (max-width: 991px) {
	.header__container { box-shadow: 0 2px 14px rgba(16, 26, 39, 0.10); }
	.navbar-toggle { border-radius: 10px; }
	.main-navigation > li > a {
		font-size: 20px;
		padding: 13px 0;
		border-bottom: 1px solid var(--bsi-line);
		color: var(--bsi-ink) !important;
	}
	.main-navigation .sub-menu > li > a {
		font-size: 16px;
		padding-top: 10px;
		padding-bottom: 10px;
		color: var(--bsi-text) !important;
	}
	.header__logo img { max-height: 76px; width: auto; }
	.header__widgets {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 2px 22px;
		padding: 8px 0 10px;
		margin-bottom: 0;
	}
	.header__widgets .widget {
		border: 0 !important;
		margin: 0 !important;
		padding: 4px 0 !important;
		width: auto;
		float: none;
		text-align: left;
	}
	.header__widgets .widget .icon-box {
		display: flex;
		align-items: center;
		gap: 7px;
		margin: 0;
		padding: 0;
		border: 0;
	}
	.header__widgets .icon-box__title { margin: 0; font-size: 14px; }
	.header__widgets .icon-box__subtitle { display: none; }
	.header__widgets .widget .btn { display: none; }
}

/* ---------- Knapper ---------- */
.btn,
input[type="submit"],
.wpcf7-submit {
	font-family: var(--bsi-display);
	font-weight: 600;
	font-size: 17px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	border-radius: 999px !important;
	padding: 13px 28px 12px;
	line-height: 1.15;
	transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.btn-info,
.btn-primary,
input[type="submit"],
.wpcf7-submit {
	background-color: var(--bsi-navy) !important;
	border-color: var(--bsi-navy) !important;
	color: #fff !important;
}
.btn-info:hover, .btn-info:focus,
.btn-primary:hover, .btn-primary:focus,
input[type="submit"]:hover,
.wpcf7-submit:hover {
	background-color: var(--bsi-red) !important;
	border-color: var(--bsi-red) !important;
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(221, 51, 51, 0.30);
}

/* ---------- Sidetitel og brødkrumme ---------- */
.main-title {
	position: relative;
	background: linear-gradient(115deg, var(--bsi-navy) 0%, var(--bsi-navy-2) 62%, #2a3c55 100%) !important;
	padding: 56px 0 52px;
	margin-bottom: 0;
	overflow: hidden;
}
.main-title::after {
	content: "";
	position: absolute;
	right: -80px;
	top: 0;
	bottom: 0;
	width: 38%;
	background: var(--bsi-red);
	transform: skewX(-24deg);
	opacity: 0.92;
}
.main-title .container { position: relative; z-index: 1; }
.main-title h1,
.main-title h2,
.main-title__primary {
	color: #fff !important;
	font-size: 46px;
	letter-spacing: 0.02em;
}
.main-title__primary::after {
	content: "";
	display: block;
	width: 64px;
	height: 4px;
	margin-top: 16px;
	border-radius: 4px;
	background: var(--bsi-red);
}
.main-title h3,
.main-title__secondary { color: rgba(255, 255, 255, 0.72) !important; }

.breadcrumbs {
	box-shadow: none;
	border-top: 0;
	border-bottom: 1px solid var(--bsi-line);
	font-size: 13px;
	margin-bottom: 44px;
}
.breadcrumbs a { font-weight: 600; font-size: 13px; }
.breadcrumbs a:hover { color: var(--bsi-red) !important; }

@media (max-width: 767px) {
	.main-title { padding: 36px 0 34px; }
	.main-title::after { width: 30%; right: -60px; opacity: 0.85; }
	.main-title h1,
	.main-title__primary { font-size: 32px; }
	.breadcrumbs { margin-bottom: 28px; }
}

/* ---------- Indhold ---------- */
.hentry__content { font-size: 17px; line-height: 1.75; }
.hentry__content p { margin-bottom: 1.15em; }
.hentry__content h2 { font-size: 34px; margin-top: 1.5em; margin-bottom: 0.5em; }
.hentry__content h3 { font-size: 27px; margin-top: 1.4em; margin-bottom: 0.45em; }
.hentry__content h4 { font-size: 22px; margin-top: 1.3em; }

.hentry__content img,
.hentry__content .wp-block-image img,
.hentry__content .blocks-gallery-item img {
	border-radius: var(--bsi-radius);
	box-shadow: var(--bsi-shadow);
}
.hentry__content img.alignleft { margin: 6px 28px 18px 0; }
.hentry__content img.alignright { margin: 6px 0 18px 28px; }

.hentry__content ul,
.hentry__content ol { padding-left: 1.3em; margin-bottom: 1.2em; }
.hentry__content li { margin-bottom: 0.4em; }
.hentry__content ul li::marker { color: var(--bsi-red); }

.hentry__content blockquote {
	border-left: 4px solid var(--bsi-red);
	background: var(--bsi-soft);
	border-radius: 0 var(--bsi-radius) var(--bsi-radius) 0;
	padding: 18px 24px;
	font-size: 18px;
	color: var(--bsi-ink);
}

.hentry__content table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--bsi-line);
	border-radius: var(--bsi-radius);
	overflow: hidden;
	margin-bottom: 1.5em;
}
.hentry__content th {
	background: var(--bsi-navy);
	color: #fff;
	font-family: var(--bsi-display);
	font-size: 17px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-align: left;
}
.hentry__content th,
.hentry__content td { padding: 12px 16px; border-bottom: 1px solid var(--bsi-line); }
.hentry__content tr:last-child td { border-bottom: 0; }
.hentry__content tbody tr:nth-child(even) td { background: var(--bsi-soft); }

@media (max-width: 767px) {
	.hentry__content { font-size: 16px; }
	.hentry__content h2 { font-size: 28px; }
	.hentry__content h3 { font-size: 23px; }
	.hentry__content img.alignleft,
	.hentry__content img.alignright { float: none; display: block; margin: 0 0 18px 0; width: 100%; height: auto; }
	.hentry__content table { display: block; overflow-x: auto; }
}

/* ---------- Forside: kort ---------- */
.featured-widget {
	border-radius: var(--bsi-radius);
	border-top: 4px solid var(--bsi-red);
	box-shadow: var(--bsi-shadow);
	padding: 28px 28px 24px;
}
.featured-widget .widget-title { font-size: 30px; margin-bottom: 16px; }
.featured-widget .textwidget p {
	margin: 0;
	padding: 9px 0;
	border-bottom: 1px solid var(--bsi-line);
	font-size: 15px;
	line-height: 1.45;
}
.featured-widget .textwidget p:last-child { border-bottom: 0; padding-bottom: 0; }

.page-box--block {
	background: #fff;
	border-radius: var(--bsi-radius);
	box-shadow: var(--bsi-shadow);
	overflow: hidden;
	transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.page-box--block:hover {
	transform: translateY(-4px);
	box-shadow: var(--bsi-shadow-hover);
}
.page-box--block .page-box__picture {
	display: block;
	overflow: hidden;
	aspect-ratio: 3 / 2;
	background: var(--bsi-soft);
}
.page-box--block .page-box__picture img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #fff;
	margin: 0;
	transition: transform 0.45s ease;
}
.page-box--block:hover .page-box__picture img { transform: scale(1.05); }
.page-box--block .page-box__content { padding: 20px 22px 22px; font-size: 15px; line-height: 1.6; }
.page-box--block .page-box__title { font-size: 25px; margin: 0 0 10px; text-transform: uppercase; }
.page-box--block .page-box__title a:hover { color: var(--bsi-red) !important; text-decoration: none; }

.read-more,
.page-box .read-more {
	font-family: var(--bsi-display);
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.06em;
	color: var(--bsi-red) !important;
}
.read-more:hover { color: var(--bsi-red-dark) !important; text-decoration: none; }

.home [role="main"] { padding-bottom: 20px; }
.home .header__container + [role="main"] { padding-top: 34px; }
.home .jumbotron + [role="main"] { padding-top: 30px; }

/* Lige høje kort på forsiden */
@media (min-width: 992px) {
	.home .jumbotron-overlap .panel-grid-cell > .so-panel,
	.home .jumbotron-overlap .panel-grid-cell > .so-panel > .featured-widget,
	.home .jumbotron-overlap .panel-grid-cell > .so-panel > .page-box--block { height: 100%; }
	.home .jumbotron-overlap .panel-grid-cell > .so-panel { margin-bottom: 0 !important; }
	.home .jumbotron-overlap .page-box--block { display: flex; flex-direction: column; }
	.home .jumbotron-overlap .page-box--block .page-box__content { flex: 1; display: flex; flex-direction: column; }
	.home .jumbotron-overlap .page-box--block .page-box__content > p:last-child { margin-top: auto; margin-bottom: 0; }
}
@media (max-width: 991px) {
	.home .panel-grid-cell { margin-bottom: 24px !important; }
}

/* ---------- Formularer ---------- */
.hentry__content input[type="text"],
.hentry__content input[type="email"],
.hentry__content input[type="tel"],
.hentry__content input[type="number"],
.hentry__content select,
.hentry__content textarea {
	width: 100%;
	max-width: 100%;
	border: 1px solid #cfd5dd;
	border-radius: 10px;
	padding: 12px 14px;
	font-size: 16px;
	color: var(--bsi-ink);
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.hentry__content input:focus,
.hentry__content select:focus,
.hentry__content textarea:focus {
	outline: 0;
	border-color: var(--bsi-red);
	box-shadow: 0 0 0 3px rgba(221, 51, 51, 0.18);
}

/* ---------- Footer ---------- */
.footer-top,
.footer::before,
.footer::after,
.footer-top::before,
.footer-top::after { background-color: var(--bsi-navy) !important; }

.footer-top { color: #b9c2cd !important; font-size: 15px; }
.footer-top .textwidget { color: #b9c2cd !important; }
.footer-top .textwidget strong,
.footer-top .textwidget b { color: #fff; }
.footer-top__headings {
	color: #fff !important;
	font-size: 23px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	margin-bottom: 18px;
	padding-bottom: 12px;
	position: relative;
}
.footer-top__headings::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 38px;
	height: 3px;
	border-radius: 3px;
	background: var(--bsi-red);
}
.footer-top a,
.footer .widget_nav_menu ul > li > a { color: #dfe4ea !important; }
.footer-top a:hover,
.footer .widget_nav_menu ul > li > a:hover { color: #fff !important; text-decoration: none; }
.footer .widget_nav_menu ul > li > a { padding: 5px 0; display: inline-block; }
.footer-top .read-more { color: #ff6b6b !important; }

.footer-bottom {
	background-color: #0b121c !important;
	color: #8a95a3 !important;
	font-size: 13px;
}
.footer-bottom a { color: #dfe4ea !important; }
.footer-bottom a:hover { color: #fff !important; }
@media (min-width: 992px) {
	.footer-top::before,
	.footer-top::after { display: none; }
}
@media (max-width: 991px) {
	.footer-top .widget { margin-bottom: 28px; }
	.footer-bottom__left,
	.footer-bottom__right { text-align: center; }
}

/* ---------- Tilgængelighed ---------- */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
	outline: 3px solid rgba(221, 51, 51, 0.55);
	outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; }
}
