/* ==========================================================================
   Lilylee – header-tabs.css
   Header mit Überschrift, Textfeld, Fakten, Links und Inplay-Tabs.
   Klassennamen wie im ursprünglichen Header, Farben und Schriften aus
   global.css (Variablen --ll-…).
   ========================================================================== */

/******************* RASTER (optional) *******************/

/* Mehrere Header-Spalten nebeneinander: <div class="tab-grid"> … </div> */
.tab-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
	text-align: left;
}

.tab-col {
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: var(--ll-row);
	border: 1px solid var(--ll-border);
	border-radius: 0;
	overflow: hidden;
}

/* Bereiche mit schwebenden Fakten (links/rechts) umschließen */
.tab-col > div {
	display: flow-root;
}

/******************* GRUNDGERÜST *******************/

.tab-headline {
	background: linear-gradient(180deg, rgba(87, 87, 87, 0.75) 0%, rgba(61, 61, 61, 0.75) 100%);
	border-bottom: 2px solid var(--ll-contrast);
	padding: 6px 12px 4px;
	text-align: center;
	font-family: var(--ll-font-highlight);
	font-weight: var(--ll-font-highlight-weight);
	font-size: 26px;
	line-height: 1.1;
	color: var(--ll-contrast);
}

.tab-body {
	height: 170px;
	overflow: auto;
	background: transparent;
	padding: 14px 16px;
	font-family: var(--ll-font-text);
	font-size: 14px;
	line-height: 1.6;
	color: var(--ll-text);
	text-align: justify;
	hyphens: auto;
}

.tab-body b {
	color: var(--ll-contrast);
	font-family: var(--ll-font-ui);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/******************* FAKTEN & LINKS *******************/

.tab-facts,
.tab-facts-l,
.tab-facts-r {
	min-width: 90px;
	box-sizing: border-box;
	background: var(--ll-basic);
	border: 1px solid var(--ll-border);
	border-left: 3px solid var(--ll-contrast);
	border-radius: 0;
	font-family: var(--ll-font-ui);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	color: var(--ll-text);
	text-transform: uppercase;
	text-align: center;
	padding: 5px 10px;
	display: inline-block;
	margin: 6px 6px 6px 6px;
}

.tab-facts-l {
	float: left;
	margin: 6px 10px 6px 6px;
}

.tab-facts-r {
	float: right;
	margin: 6px 6px 6px 10px;
}

.tab-facts i,
.tab-facts-l i,
.tab-facts-r i {
	margin-right: 5px;
	color: var(--ll-contrast);
}

.tab-links {
	width: 160px;
	max-width: 100%;
	box-sizing: border-box;
	background: var(--ll-basic);
	border: 1px solid var(--ll-border);
	border-radius: 0;
	font-family: var(--ll-font-ui);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	color: var(--ll-text);
	text-transform: uppercase;
	padding: 5px 10px;
	margin: 6px auto 0;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.tab-links a:link,
.tab-links a:visited {
	display: block;
	color: var(--ll-text);
	text-decoration: none;
}

.tab-links:hover {
	border-color: var(--ll-contrast);
	background: var(--ll-contrast-soft);
}

.tab-links:hover a {
	color: var(--ll-highlight);
}

.tab-links i {
	width: 16px;
	margin-right: 6px;
	color: var(--ll-contrast);
	text-align: center;
}

/******************* TABS BEI 'INPLAY' *******************/

.tabs input[type=radio] {
	position: absolute;
	display: none;
}

.tabs {
	width: 100%;
	max-width: 280px;
	height: 170px;
	float: none;
	list-style: none;
	position: relative;
	padding: 0;
	margin: 0 auto;
	text-align: center;
}

.tabs li {
	text-align: center;
	display: inline;
}

/* Symbole für die einzelnen Tabs (Font Awesome, z. B. <i class="fa-solid fa-calendar-days"></i>) */
.tabs label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 46px;
	height: 46px;
	margin: 4px;
	color: var(--ll-text-muted);
	background: var(--ll-basic);
	font-size: 20px;
	border: 2px solid var(--ll-border);
	border-radius: 0;
	cursor: pointer;
	position: relative;
	top: 0;
	transition: all 0.2s ease-in-out;
}

.tabs label:hover {
	color: var(--ll-highlight);
	border-color: var(--ll-contrast);
}

/* Ausgewählter Tab (nur innerhalb von .tabs, damit andere Formulare im Forum unberührt bleiben) */
.tabs [type=radio]:checked ~ label {
	color: var(--ll-on-accent);
	background: var(--ll-contrast);
	border-color: var(--ll-contrast);
	box-shadow: 0 0 12px rgba(205, 102, 0, 0.45);
	top: 0;
}

.tabs [type=radio]:checked ~ label ~ .tab-content {
	display: block;
}

/* Tab-Inhalt */
.tab-content {
	width: 100%;
	height: 108px;
	overflow: auto;
	background: var(--ll-basic);
	border: 1px solid var(--ll-border);
	border-radius: 0;
	font-family: var(--ll-font-text);
	font-size: 13px;
	line-height: 1.55;
	color: var(--ll-text);
	text-align: left;
	padding: 8px 10px;
	z-index: 2;
	display: none;
	position: absolute;
	top: 62px;
	left: 0;
	box-sizing: border-box;
	animation: ll-tab-fade 0.3s ease;
}

.tab-content b {
	color: var(--ll-contrast);
}

@keyframes ll-tab-fade {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

/******************* SCROLLBARS *******************/

.tab-scroll,
.tab-body,
.tab-content {
	scrollbar-width: thin;
	scrollbar-color: var(--ll-contrast) var(--ll-basic);
}

.tab-scroll::-webkit-scrollbar,
.tab-body::-webkit-scrollbar,
.tab-content::-webkit-scrollbar {
	width: 6px;
}

.tab-scroll::-webkit-scrollbar-track-piece,
.tab-body::-webkit-scrollbar-track-piece,
.tab-content::-webkit-scrollbar-track-piece {
	background-color: var(--ll-basic);
}

.tab-scroll::-webkit-scrollbar-thumb:vertical,
.tab-body::-webkit-scrollbar-thumb:vertical,
.tab-content::-webkit-scrollbar-thumb:vertical {
	height: 10px;
	background-color: var(--ll-contrast);
	border-radius: 0;
}
