/*
 * Meltingplot — Material Comparison Styles
 * Only loaded on /materialien/
 */

/* Desktop table */
.mp-mat-desktop {
	overflow-x: auto;
}

.mp-mat-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.85rem;
	table-layout: fixed;
}

.mp-mat-table th,
.mp-mat-table td {
	padding: 0.6rem 0.75rem;
	border-bottom: 1px solid var(--wp--preset--color--surface);
	text-align: left;
	vertical-align: top;
	line-height: 1.4;
}

/* Eigenschaft-Spalte schmaler, Datenspalten gleichmäßig */
.mp-mat-table th:first-child,
.mp-mat-table td:first-child {
	width: 15%;
	font-size: 0.8rem;
	color: var(--wp--preset--color--muted);
}

.mp-mat-table th {
	font-weight: 600;
	border-bottom: 2px solid var(--wp--preset--color--surface);
	padding-bottom: 0.75rem;
}

.mp-mat-table th:nth-child(2) {
	border-bottom-color: var(--wp--preset--color--accent);
}

.mp-mat-table tr:nth-child(even) {
	background: var(--wp--preset--color--surface);
}

.mp-mat-table td:nth-child(2) {
	color: var(--wp--preset--color--accent);
}

/* Tablet icon matrix */
.mp-mat-tablet {
	display: none;
}

.mp-mat-icons {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.85rem;
}

.mp-mat-icons th,
.mp-mat-icons td {
	padding: 0.5rem 0.4rem;
	text-align: center;
	border-bottom: 1px solid var(--wp--preset--color--surface);
}

.mp-mat-icons td:first-child,
.mp-mat-icons th:first-child {
	text-align: left;
	font-weight: 500;
	font-size: 0.8rem;
	width: 25%;
}

.mp-mat-icons th {
	font-weight: 600;
	font-size: 0.8rem;
	border-bottom: 2px solid var(--wp--preset--color--surface);
	padding-bottom: 0.6rem;
}

.mp-mat-icons td {
	font-size: 0.9rem;
	letter-spacing: 1px;
	color: var(--wp--preset--color--accent);
}

.mp-mat-icons tr:nth-child(even) {
	background: var(--wp--preset--color--surface);
}

/* Mobile cards */
.mp-mat-mobile {
	display: none;
}

.mp-mat-card {
	border: 1px solid var(--wp--preset--color--surface);
	border-radius: var(--wp--custom--border-radius--medium);
	padding: 1.25rem;
	margin-bottom: 1rem;
	background: #FFFFFF;
}

.mp-mat-card.mp-mat-highlight {
	border: 2px solid var(--wp--preset--color--accent);
}

.mp-mat-card h3 {
	margin: 0 0 0.25rem;
	font-size: 1.1rem;
	font-weight: 700;
}

.mp-mat-badge {
	display: inline-block;
	font-size: 0.65rem;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--wp--preset--color--accent);
	font-weight: 600;
	border: 1px solid var(--wp--preset--color--accent);
	border-radius: 3px;
	padding: 2px 6px;
	vertical-align: middle;
	margin-left: 0.5rem;
}

.mp-mat-sub {
	font-size: 0.8rem;
	color: var(--wp--preset--color--muted);
	margin: 0 0 0.75rem;
}

.mp-mat-card ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.mp-mat-card li {
	font-size: 0.85rem;
	padding: 0.3rem 0;
	border-bottom: 1px solid var(--wp--preset--color--surface);
}

.mp-mat-card li:last-child {
	border-bottom: none;
}

/* Tablet: icon matrix instead of full table */
@media (max-width: 1024px) {
	.mp-mat-desktop {
		display: none;
	}

	.mp-mat-tablet {
		display: block;
	}
}

/* Tablet: also show cards below icon matrix */
@media (max-width: 1024px) {
	.mp-mat-mobile {
		display: block;
	}
}
