/* mod_cio_tumorboards - alle Regeln sind auf .cio-tb begrenzt. */

.cio-tb {
	--cio-tb-bg: #f2f6fa;
	--cio-tb-bg-active: #e4effb;
	--cio-tb-accent: #bc2b30;
	--cio-tb-time: #5d95cf;
	--cio-tb-border: #ccc;
	margin: 0 0 2rem;
}

/* ---------- Kacheln (Tabs) ---------- */

.cio-tb__tablist {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 10px;
}

.cio-tb__tab {
	flex: 1 1 calc(50% - 5px);
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	margin: 0;
	padding: 15px 10px;
	background: var(--cio-tb-bg);
	font-size: 14px;
	text-align: center;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

@media (min-width: 768px) {
	.cio-tb__tab {
		flex: 1 1 0;
	}
}

.cio-tb__tab:hover,
.cio-tb__tab[aria-selected="true"] {
	background: var(--cio-tb-bg-active);
}

.cio-tb__tab:focus-visible {
	outline: 2px solid var(--cio-tb-accent);
	outline-offset: 2px;
}

.cio-tb__icon {
	display: block;
	width: 90px;
	height: 90px;
	max-width: 100%;
	object-fit: contain;
}

.cio-tb .cio-tb__tablabel {
	margin: 0;
}

/* Ohne JavaScript: Kacheln ausblenden, alle Inhalte untereinander zeigen. */
.cio-tb:not(.cio-tb--js) .cio-tb__tablist {
	display: none;
}

.cio-tb--js .cio-tb__paneltitle {
	display: none;
}

/* ---------- Tab-Inhalte ---------- */

.cio-tb__panel {
	padding: 20px 0;
}

.cio-tb__panel[hidden] {
	display: none !important;
}

.cio-tb__panel > h3:first-child,
.cio-tb__heading {
	margin-top: 0;
	border-top: 0;
}

.cio-tb__text {
	margin: 0 0 1rem;
}

/* ---------- Boards (Akkordeon) ---------- */

.cio-tb__board {
	margin: 0 0 10px;
	border: 1px solid var(--cio-tb-border);
	border-radius: 5px;
	background: var(--cio-tb-bg);
}

.cio-tb__summary {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px;
	cursor: pointer;
	list-style: none;
}

.cio-tb__summary::-webkit-details-marker {
	display: none;
}

.cio-tb__summary::before {
	content: "\25B6";
	flex: 0 0 auto;
	color: var(--cio-tb-accent);
	font-size: 0.85em;
	transition: transform 0.3s ease;
}

.cio-tb__board[open] > .cio-tb__summary::before {
	transform: rotate(90deg);
}

.cio-tb__summary:focus-visible {
	outline: 2px solid var(--cio-tb-accent);
	outline-offset: -2px;
}

.cio-tb__name {
	flex: 1 1 auto;
	color: #000;
}

.cio-tb__time {
	margin-left: auto;
	color: var(--cio-tb-time);
	white-space: nowrap;
}

@media (max-width: 600px) {
	.cio-tb__summary {
		flex-wrap: wrap;
	}

	.cio-tb__time {
		flex-basis: 100%;
		margin-left: 1.6em;
		white-space: normal;
	}
}

.cio-tb__body {
	padding: 0;
}

/* Immer ausgeklappte Darstellung */
.cio-tb__board--list {
	border: 0;
	background: none;
}

.cio-tb__boardtitle {
	margin-top: 0;
}

/* ---------- Angaben im Board (wie bisheriger Seiten-Code) ---------- */

.cio-tb .cio-tb__details {
	margin: 0 !important;
	padding: 0;
}

.cio-tb__body .cio-tb__details > li {
	padding: 10px 10px 10px 56px !important;
}

.cio-tb__board--list .cio-tb__details > li {
	padding: 5px 0 5px 1.5em;
}

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