/* ==========================================================================
   BlockBande – Theme-Styles
   ========================================================================== */

/* --- Schriften (selbst gehostet, keine Verbindung zu Google) -------------- */

@font-face {
	font-family: "Montserrat";
	src: url("../fonts/montserrat.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Roboto";
	src: url("../fonts/roboto.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Roboto";
	src: url("../fonts/roboto-italic.woff2") format("woff2");
	font-weight: 100 900;
	font-style: italic;
	font-display: swap;
}

/* --- Farben & Maße ------------------------------------------------------- */

:root {
	--bb-blue: #2ac1f6;
	--bb-blue-dark: rgba(4, 103, 151, 0.85);
	--bb-cart-dark: #005591;
	--bb-yellow: #f5ba00;
	--bb-yellow-dark: #bb7200;
	--bb-white: #fff;

	--bb-bg: #0c0f23;
	--bb-footer: #0b0f26;
	--bb-footer-bar: #080b1e;
	--bb-text: #fff;
	--bb-text-muted: rgba(255, 255, 255, 0.51);

	--bb-font-head: "Montserrat", system-ui, sans-serif;
	--bb-font-body: "Roboto", system-ui, sans-serif;

	--bb-width: 1000px;
	--bb-width-text: 900px;
	--bb-gutter: 20px;
	--bb-header-h: 100px;
}

/* --- Grundlagen ---------------------------------------------------------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	margin: 0;
	background: var(--bb-bg);
	color: var(--bb-text);
	font-family: var(--bb-font-body);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

img,
svg {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--bb-blue);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.bb-skip-link:focus {
	position: fixed !important;
	top: 8px;
	left: 8px;
	z-index: 1000;
	width: auto;
	height: auto;
	margin: 0;
	padding: 10px 16px;
	clip: auto;
	background: var(--bb-white);
	color: #000;
	border-radius: 5px;
}

:focus-visible {
	outline: 2px solid var(--bb-yellow);
	outline-offset: 3px;
}

.bb-icon {
	width: 1em;
	height: 1em;
	max-width: none;
	flex: none;
	fill: currentColor;
}

.bb-container {
	width: 100%;
	max-width: calc(var(--bb-width) + 2 * var(--bb-gutter));
	margin: 0 auto;
	padding: 0 var(--bb-gutter);
}

.bb-container--text {
	max-width: calc(var(--bb-width-text) + 2 * var(--bb-gutter));
}

/* --- Buttons (gleiche Form wie die Header-Buttons) ------------------------ */

.bb-button,
.bb-nav__link--blue,
.bb-nav__link--yellow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 12px 40px;
	border-radius: 5px;
	color: var(--bb-white);
	font-family: var(--bb-font-head);
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
	text-decoration: none;
	transition: transform 0.3s;
}

.bb-button--blue,
.bb-nav__link--blue {
	background: var(--bb-blue);
	box-shadow: 0 5px 0 var(--bb-blue-dark), 0 0 70px 3px var(--bb-blue);
}

.bb-button--yellow,
.bb-nav__link--yellow {
	background: var(--bb-yellow);
	box-shadow: 0 5px 0 var(--bb-yellow-dark), 0 0 70px 3px var(--bb-yellow);
}

.bb-button {
	box-shadow: 0 5px 0 var(--bb-blue-dark);
	border: 0;
	cursor: pointer;
}

.bb-button--small {
	padding: 10px 22px;
	font-size: 14px;
}

.bb-button--green {
	background: #29e019;
	box-shadow: 0 5px 0 #1a9a0f;
}

.bb-button--yellow {
	box-shadow: 0 5px 0 var(--bb-yellow-dark);
}

/* --- Header -------------------------------------------------------------- */

/* Liegt wie bisher über dem Seitenanfang; die Seiten halten oben Platz dafür frei. */
.bb-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	background: rgba(0, 0, 0, 0.28);
}

.admin-bar .bb-header {
	top: 32px;
}

.bb-header__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	max-width: var(--bb-width);
	min-height: var(--bb-header-h);
	margin: 0 auto;
	padding: 30px 0;
}

.bb-nav {
	grid-column: 2;
}

.bb-nav__list {
	display: flex;
	align-items: center;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bb-nav__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--bb-font-head);
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	color: var(--bb-white);
	text-decoration: none;
	transition: transform 0.3s;
}

.bb-nav__link--plain {
	padding: 12px 24px;
	margin: 0 20px;
}

.bb-nav__link:hover,
.bb-nav__link:focus-visible,
.bb-cart:hover,
.bb-cart:focus-visible,
.bb-button:hover,
.bb-button:focus-visible {
	transform: scale(1.1);
}

.bb-nav__link .bb-icon {
	font-size: 15px;
}

.bb-cart {
	grid-column: 3;
	justify-self: end;
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 10px 5px;
	border-radius: 10px;
	background: var(--bb-blue);
	box-shadow: 0 5px 0 var(--bb-cart-dark);
	color: var(--bb-white);
	transition: transform 0.3s;
}

.bb-cart .bb-icon {
	width: 25px;
	height: 25px;
}

.bb-cart__count {
	position: absolute;
	top: -8px;
	right: -8px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 8px;
	background: var(--bb-white);
	color: #000;
	font-family: var(--bb-font-body);
	font-size: 10px;
	font-weight: 600;
	line-height: 16px;
	text-align: center;
}

/* --- Seitenkopf (Textseiten, Konto, 404, Produktseiten – wie Landania) ---- */

.bb-page-hero {
	position: relative;
	padding: var(--bb-header-h) 0 10px;
	background: linear-gradient(180deg, rgba(12, 15, 35, 0.55), var(--bb-bg) 95%), var(--bb-page-hero-bg) center top / cover no-repeat;
	background-color: var(--bb-bg);
}

.bb-page-hero__title {
	margin: 0;
	padding: 40px 0 20px;
	font-family: var(--bb-font-head);
	font-size: clamp(26px, 4vw, 36px);
	font-weight: 800;
	line-height: 1.2;
	text-align: center;
}

/* --- Hauptbereich -------------------------------------------------------- */

.bb-main {
	display: block;
	flex: 1 0 auto;
	padding: 30px 0 70px;
}

/* Elementor-Seiten und der Shop bringen ihren Platz für den Header selbst mit. */
.bb-main--builder,
.bb-main--shop {
	padding: 0;
}

/* --- Inhaltsseiten (Rechtstexte) – wie Landania ------------------------- */

.bb-content {
	color: rgba(255, 255, 255, 0.82);
	font-family: var(--bb-font-body);
	font-size: 16px;
	line-height: 1.65;
	overflow-wrap: break-word;
}

.bb-content h1,
.bb-content h2,
.bb-content h3,
.bb-content h4 {
	margin: 1.6em 0 0.5em;
	color: #fff;
	font-family: var(--bb-font-head);
	line-height: 1.25;
}

.bb-content > :first-child {
	margin-top: 0;
}

.bb-content h1 { font-size: 30px; }
.bb-content h2 { font-size: 24px; }
.bb-content h3 { font-size: 20px; }

.bb-content a {
	color: var(--bb-blue);
}

.bb-content strong,
.bb-content b {
	color: #fff;
}

.bb-content ul,
.bb-content ol {
	padding-left: 1.4em;
}

/* --- 404 – wie Landania --------------------------------------------------- */

.bb-404 {
	text-align: center;
	color: rgba(255, 255, 255, 0.82);
}

.bb-404 p {
	margin: 0 0 28px;
	font-size: 18px;
}

/* --- Kurze Meldung (z. B. „IP-Adresse kopiert!“) -------------------------- */

.bb-toast {
	position: fixed;
	top: 20px;
	left: 50%;
	z-index: 9999;
	padding: 10px 20px;
	border-radius: 8px;
	background: #2ecc71;
	color: #fff;
	font-family: var(--bb-font-body);
	font-size: 14px;
	font-weight: 600;
	opacity: 0;
	pointer-events: none;
	transform: translateX(-50%) translateY(-60px);
	transition: all 0.3s ease;
}

.bb-toast.show {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

.bb-toast:empty {
	visibility: hidden;
}

/* --- Footer -------------------------------------------------------------- */

.bb-footer {
	position: relative;
	background: var(--bb-footer);
	color: var(--bb-text);
}

.bb-footer__inner {
	display: grid;
	grid-template-columns: 1fr 2fr 1fr;
	align-items: end;
	padding-top: 30px;
}

.bb-footer__figure {
	position: relative;
	z-index: 2;
	display: block;
	width: 100%;
	max-width: 237px;
	margin: 0 auto -40px;
}

.bb-footer__center {
	align-self: start;
	text-align: center;
}

.bb-social {
	display: flex;
	justify-content: center;
	gap: 40px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bb-social a {
	display: block;
	color: var(--bb-white);
	font-size: 32px;
	line-height: 1;
	transition: transform 0.3s;
}

.bb-social a:hover,
.bb-social a:focus-visible {
	transform: scale(1.1);
}

.bb-legal__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 35px;
	margin: 4em 0 0;
	padding: 0;
	list-style: none;
}

.bb-legal a {
	color: var(--bb-white);
	font-family: var(--bb-font-body);
	font-size: 16px;
	font-style: italic;
	text-transform: uppercase;
	text-decoration: none;
}

.bb-legal a:hover,
.bb-legal a:focus-visible {
	text-decoration: underline;
}

.bb-footer__copy {
	position: relative;
	z-index: 1;
	margin: 0;
	padding: 10px var(--bb-gutter) 18px;
	background: var(--bb-footer-bar);
	color: var(--bb-text-muted);
	font-size: 17px;
	line-height: 20px;
	text-align: center;
}

/* --- Tablet --------------------------------------------------------------- */

@media (max-width: 1024px) {
	.bb-header__inner {
		padding: 30px var(--bb-gutter);
	}

	.bb-footer__inner {
		padding: 30px 30px 10px;
	}
}

/* --- Handy ---------------------------------------------------------------- */

@media (max-width: 767px) {
	:root {
		--bb-header-h: 80px;
	}

	.bb-page-hero__title {
		padding: 28px 0 12px;
	}

	.bb-header__inner {
		display: flex;
		justify-content: center;
		gap: 12px;
		padding: 20px var(--bb-gutter);
	}

	.bb-nav__list {
		gap: 12px;
	}

	/* Bisher überlappten „Ränge“ und „Shop“ auf schmalen Handys – jetzt alle drei gleich groß. */
	.bb-nav__link,
	.bb-nav__link--blue,
	.bb-nav__link--yellow {
		font-size: 12px;
		padding: 9px 9px 7px;
	}

	.bb-nav__link--plain {
		margin: 0;
		text-transform: uppercase;
	}

	.bb-nav__link .bb-icon {
		font-size: 12px;
	}

	.bb-nav__link--blue,
	.bb-nav__link--yellow {
		box-shadow: 0 5px 0 var(--bb-blue-dark), 0 0 40px 2px var(--bb-blue);
	}

	.bb-nav__link--yellow {
		box-shadow: 0 5px 0 var(--bb-yellow-dark), 0 0 40px 2px var(--bb-yellow);
	}

	.bb-cart {
		padding: 9px 9px 6px;
	}

	.bb-cart .bb-icon {
		width: 16px;
		height: 16px;
	}

	.admin-bar .bb-header {
		top: 46px;
	}

	.bb-footer__inner {
		display: flex;
		flex-direction: column;
		align-items: center;
		padding: 40px var(--bb-gutter) 0;
	}

	.bb-footer__center {
		align-self: stretch;
	}

	.bb-footer__figure--left {
		display: none;
	}

	.bb-footer__figure--right {
		max-width: 170px;
		margin: 24px auto 0;
	}

	.bb-legal__list {
		flex-direction: column;
		gap: 11px;
		margin-top: 20px;
	}
}
