/*
 * PSC Nachweise -- eigenes Stylesheet, nutzt ausschliesslich die
 * bestehenden Theme-Variablen (--psc-*) aus powersmartcoat-v2/style.css.
 * Nur auf der Seite /nachweise/ eingebunden (is_page-Scope im mu-plugin).
 */

/* Seite etwas breiter als die 780px-Standardbreite der Rechtsseiten, weil
   hier Kacheln/Karten in mehreren Spalten stehen -- ohne die Theme-Datei
   page.php anzufassen (:has() wirkt nur, wenn .psc-nachweise im Inhalt
   steckt, sonst bleiben alle anderen Seiten bei 780px). */
.psc-prose:has(.psc-nachweise) {
	max-width: 1040px;
}

.psc-nachweise {
	--psc-nw-gap: 20px;
}

.psc-nachweise .psc-nw-stand {
	color: var(--psc-text-dim);
	font-size: 0.86rem;
	margin: -0.4rem 0 1.4rem;
}

.psc-nachweise blockquote.psc-nw-kurzantwort {
	background: var(--psc-bg-card);
	border: 1px solid var(--psc-border);
	border-left: 3px solid var(--psc-accent);
	border-radius: var(--psc-radius);
	padding: 18px 22px;
	margin: 0 0 1.6rem;
	font-style: normal;
	color: var(--psc-text);
}

/* Kacheln: Kernzahlen oben */
.psc-nw-tiles {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--psc-nw-gap);
	margin: 1.6rem 0 2.2rem;
}

.psc-nw-tile {
	background: var(--psc-bg-card);
	border: 1px solid var(--psc-border);
	border-radius: var(--psc-radius);
	padding: 18px 16px;
	text-align: left;
}

.psc-nw-tile__label {
	font-size: 0.82rem;
	color: var(--psc-text-muted);
	margin: 0 0 6px;
}

.psc-nw-tile__value {
	font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem);
	font-weight: 700;
	color: var(--psc-white);
	margin: 0 0 4px;
	line-height: 1.15;
}

.psc-nw-tile__sub {
	font-size: 0.78rem;
	color: var(--psc-text-dim);
	margin: 0;
}

/* Gegliederte Karten je Abschnitt */
.psc-nw-cards {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--psc-nw-gap);
	margin: 1.2rem 0 1.8rem;
}

.psc-nw-card {
	background: var(--psc-bg-card);
	border: 1px solid var(--psc-border);
	border-radius: var(--psc-radius);
	padding: 18px 20px;
}

.psc-nw-card__title {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 1.02rem;
	font-weight: 700;
	color: var(--psc-white);
	margin: 0 0 8px;
}

.psc-nw-card__check {
	flex: 0 0 auto;
	color: var(--psc-proven);
	line-height: 1.3;
}

.psc-nw-card__value {
	margin: 0 0 8px;
	color: var(--psc-text);
}

.psc-nw-card__inst {
	font-size: 0.86rem;
	color: var(--psc-text-muted);
	margin: 0 0 6px;
}

.psc-nw-card__caveat {
	font-size: 0.84rem;
	color: var(--psc-claimed);
	background: var(--psc-claimed-soft);
	border-radius: 8px;
	padding: 6px 10px;
	margin: 6px 0 0;
}

.psc-nw-card__doc {
	display: inline-block;
	margin-top: 10px;
	font-size: 0.86rem;
}

.psc-nw-note {
	background: var(--psc-accent-soft);
	border: 1px solid var(--psc-border-strong);
	border-radius: var(--psc-radius);
	padding: 16px 20px;
	margin: 0.4rem 0 1.8rem;
	font-size: 0.94rem;
	color: var(--psc-text);
}

.psc-nw-note__doc {
	display: inline-block;
	margin-top: 8px;
	font-size: 0.86rem;
}

.psc-nw-leitaussage {
	border: 1px solid var(--psc-border-strong);
	border-left: 3px solid var(--psc-proven);
	border-radius: var(--psc-radius);
	padding: 16px 20px;
	margin: 0 0 2rem;
	font-weight: 600;
	color: var(--psc-white);
}

/* FAQ-Akkordeon, nativ, crawlbar */
.psc-nw-faq details {
	border: 1px solid var(--psc-border);
	border-radius: var(--psc-radius);
	margin: 0 0 10px;
	overflow: hidden;
}

.psc-nw-faq summary {
	cursor: pointer;
	padding: 14px 18px;
	font-weight: 600;
	color: var(--psc-white);
	list-style: none;
}

.psc-nw-faq summary::-webkit-details-marker {
	display: none;
}

.psc-nw-faq summary::after {
	content: '+';
	float: right;
	color: var(--psc-accent);
}

.psc-nw-faq details[open] summary::after {
	content: '−';
}

.psc-nw-faq details p {
	padding: 0 18px 16px;
	margin: 0;
	color: var(--psc-text);
}

/* CTA-Leiste */
.psc-nw-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	background: var(--psc-bg-raised);
	border: 1px solid var(--psc-border-strong);
	border-radius: var(--psc-radius-lg);
	padding: 24px 26px;
	margin: 1.6rem 0 2.2rem;
}

.psc-nw-cta__text h3 {
	margin: 0 0 4px;
	color: var(--psc-white);
}

.psc-nw-cta__text p {
	margin: 0;
	color: var(--psc-text-muted);
}

.psc-nw-cta__actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.psc-nw-btn {
	display: inline-block;
	border-radius: 999px;
	padding: 11px 22px;
	font-weight: 600;
	font-size: 0.94rem;
	text-decoration: none !important;
	white-space: nowrap;
}

.psc-nw-btn--primary {
	background: var(--psc-accent);
	color: var(--psc-bg) !important;
}

.psc-nw-btn--secondary {
	background: transparent;
	border: 1px solid var(--psc-border-strong);
	color: var(--psc-white) !important;
}

.psc-nw-downloads {
	list-style: none;
	margin: 0 0 1.6rem;
	padding: 0;
}

.psc-nw-downloads li {
	padding: 10px 0;
	border-bottom: 1px solid var(--psc-border);
}

.psc-nw-downloads li:last-child {
	border-bottom: none;
}

.psc-nw-downloads__note {
	font-size: 0.86rem;
	color: var(--psc-text-dim);
	margin-top: 12px;
}

.psc-nw-tuev-badge {
	height: 60px;
	width: auto;
	display: block;
	margin: 6px 0 2px;
}

/* Mobil: Kacheln/Karten werden einspaltig -- echte Karten statt Tabellen,
   deshalb keine data-label-Umschaltung noetig. */
@media (max-width: 599px) {
	.psc-nw-tiles,
	.psc-nw-cards {
		grid-template-columns: 1fr;
	}

	.psc-nw-cta {
		flex-direction: column;
		align-items: stretch;
	}

	.psc-nw-cta__actions {
		flex-direction: column;
	}

	.psc-nw-btn {
		text-align: center;
	}
}

@media (min-width: 600px) and (max-width: 899px) {
	.psc-nw-tiles {
		grid-template-columns: repeat(2, 1fr);
	}
}
