/*
Theme Name:  R-S-T Elektrokontakt (Expert Electrician Child)
Theme URI:   https://www.rst-elektrokontakt.de
Description: Child-Theme für die R-S-T Elektrokontakt GmbH – komplettes Redesign mit eigenen Seitentemplates (Startseite, Leistungen, Über uns & Kontakt, Impressum, Datenschutz) und integriertem Kontaktformular.
Author:      R-S-T Elektrokontakt GmbH
Template:    expert-electrician
Version:     1.4.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: expert-electrician-child
*/

:root {
	--rst-dark:       #161616;
	--rst-dark-soft:  #222522;
	--rst-accent:     #c9d400;
	--rst-accent-dk:  #a8b100;
	--rst-text:       #2b2d2b;
	--rst-muted:      #5f635f;
	--rst-bg:         #ffffff;
	--rst-bg-alt:     #f4f6f0;
	--rst-border:     #e2e5dd;
	--rst-radius:     10px;
	--rst-shadow:     0 6px 24px rgba(0, 0, 0, .08);
}

/* ---------- Basis ---------- */

body {
	margin: 0;
	font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 17px;
	line-height: 1.65;
	color: var(--rst-text);
	background: var(--rst-bg);
}

.rst-container {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 20px;
}

#rst-main a { color: var(--rst-accent-dk); }
#rst-main a:hover { color: var(--rst-dark); }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
}

/* ---------- Topbar ---------- */

.rst-topbar {
	background: var(--rst-dark);
	color: #fff;
	font-size: 14px;
}

.rst-topbar-inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 8px 24px;
	padding: 8px 0;
}

.rst-topbar-contacts {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 22px;
}

.rst-topbar a { color: #fff; text-decoration: none; }
.rst-topbar a:hover { color: var(--rst-accent); }
.rst-topbar i { color: var(--rst-accent); margin-right: 6px; }
.rst-topbar-note { color: var(--rst-accent); font-weight: 600; }

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

.rst-header {
	background: #fff;
	border-bottom: 3px solid var(--rst-accent);
	position: sticky;
	top: 0;
	z-index: 999;
	box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

.rst-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding-top: 10px;
	padding-bottom: 10px;
	position: relative;
}

.rst-logo img { height: 64px; width: auto; display: block; }

.rst-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 4px;
}

.rst-nav a {
	display: block;
	padding: 10px 16px;
	color: var(--rst-dark);
	font-weight: 600;
	font-size: 15.5px;
	text-decoration: none;
	border-radius: 6px;
	transition: background .15s, color .15s;
}

.rst-nav a:hover { background: var(--rst-bg-alt); color: var(--rst-dark); }
.rst-nav .rst-current a { background: var(--rst-dark); color: var(--rst-accent); }

.rst-nav-toggle { display: none; }
.rst-nav-burger { display: none; cursor: pointer; padding: 10px; }
.rst-nav-burger span {
	display: block;
	width: 26px; height: 3px;
	background: var(--rst-dark);
	margin: 5px 0;
	border-radius: 2px;
}

@media (max-width: 900px) {
	.rst-nav-burger { display: block; }
	.rst-nav {
		display: none;
		position: absolute;
		top: 100%; left: 0; right: 0;
		background: #fff;
		border-bottom: 3px solid var(--rst-accent);
		box-shadow: var(--rst-shadow);
	}
	.rst-nav-toggle:checked ~ .rst-nav { display: block; }
	.rst-nav ul { flex-direction: column; padding: 10px; }
	.rst-topbar-note { display: none; }
}

/* ---------- Hero ---------- */

.rst-hero {
	position: relative;
	background: var(--rst-dark) center/cover no-repeat;
	color: #fff;
}

.rst-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, rgba(15,16,14,.92) 25%, rgba(15,16,14,.55) 70%, rgba(15,16,14,.35));
}

.rst-hero-inner {
	position: relative;
	padding: 110px 20px;
	max-width: 1180px;
	margin: 0 auto;
}

.rst-hero h1 {
	font-size: clamp(30px, 4.5vw, 52px);
	line-height: 1.15;
	margin: 0 0 18px;
	max-width: 720px;
	color: #fff;
}

.rst-hero h1 strong { color: var(--rst-accent); font-weight: 800; }

.rst-hero p {
	font-size: 19px;
	max-width: 640px;
	margin: 0 0 30px;
	color: #e8e8e4;
}

.rst-hero-small .rst-hero-inner { padding: 60px 20px; }
.rst-hero-small h1 { font-size: clamp(26px, 3.5vw, 40px); }

/* ---------- Buttons ---------- */

.rst-btn {
	display: inline-block;
	padding: 13px 28px;
	border-radius: 6px;
	font-weight: 700;
	font-size: 16px;
	text-decoration: none;
	border: 2px solid var(--rst-accent);
	transition: all .15s;
	cursor: pointer;
}

.rst-btn-primary { background: var(--rst-accent); color: var(--rst-dark) !important; }
.rst-btn-primary:hover { background: transparent; color: var(--rst-accent) !important; }
.rst-btn-ghost { background: transparent; color: #fff !important; }
.rst-btn-ghost:hover { background: var(--rst-accent); color: var(--rst-dark) !important; }
.rst-btn-dark { background: var(--rst-dark); border-color: var(--rst-dark); color: #fff !important; }
.rst-btn-dark:hover { background: var(--rst-accent); border-color: var(--rst-accent); color: var(--rst-dark) !important; }
.rst-hero .rst-btn { margin-right: 12px; margin-bottom: 10px; }

/* ---------- Sektionen ---------- */

.rst-section { padding: 72px 0; }
.rst-section-alt { background: var(--rst-bg-alt); }
.rst-section-dark { background: var(--rst-dark); color: #fff; }
.rst-section-dark h2 { color: #fff; }

.rst-kicker {
	display: inline-block;
	text-transform: uppercase;
	letter-spacing: .14em;
	font-size: 13px;
	font-weight: 800;
	color: var(--rst-accent-dk);
	margin-bottom: 10px;
}

.rst-section-dark .rst-kicker { color: var(--rst-accent); }

.rst-section h2 {
	font-size: clamp(26px, 3vw, 36px);
	margin: 0 0 14px;
	color: var(--rst-dark);
	line-height: 1.2;
}

.rst-section-lead {
	max-width: 780px;
	color: var(--rst-muted);
	font-size: 18px;
	margin-bottom: 40px;
}

.rst-center { text-align: center; }
.rst-center .rst-section-lead { margin-left: auto; margin-right: auto; }

/* ---------- Karten (Kategorien) ---------- */

.rst-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 26px;
}

.rst-card {
	background: #fff;
	border: 1px solid var(--rst-border);
	border-radius: var(--rst-radius);
	padding: 30px 28px;
	box-shadow: var(--rst-shadow);
	display: flex;
	flex-direction: column;
}

.rst-card-icon {
	width: 54px; height: 54px;
	border-radius: 8px;
	background: var(--rst-dark);
	color: var(--rst-accent);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	margin-bottom: 18px;
}

.rst-card h3 { margin: 0 0 10px; font-size: 21px; color: var(--rst-dark); }
.rst-card p { margin: 0 0 14px; color: var(--rst-muted); }

.rst-card ul { margin: 0 0 18px; padding: 0; list-style: none; }
.rst-card li { padding: 5px 0 5px 26px; position: relative; }
.rst-card li::before {
	content: "\2713";
	position: absolute; left: 0;
	color: var(--rst-accent-dk);
	font-weight: 800;
}

.rst-card .rst-btn { margin-top: auto; align-self: flex-start; }

.rst-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.rst-tags li {
	background: var(--rst-bg-alt);
	border: 1px solid var(--rst-border);
	border-radius: 99px;
	padding: 4px 14px;
	font-size: 14px;
	font-weight: 600;
	color: var(--rst-dark);
}
.rst-tags li::before { content: none; }

/* ---------- USP-Leiste ---------- */

.rst-usps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 26px;
}

.rst-usp { text-align: center; padding: 10px; }
.rst-usp i { font-size: 30px; color: var(--rst-accent); margin-bottom: 12px; }
.rst-usp h3 { font-size: 18px; margin: 0 0 8px; color: #fff; }
.rst-usp p { color: #c9cbc5; font-size: 15px; margin: 0; }

/* ---------- Leistungs-Detailblöcke ---------- */

.rst-service {
	display: grid;
	grid-template-columns: 64px 1fr;
	gap: 20px;
	background: #fff;
	border: 1px solid var(--rst-border);
	border-left: 5px solid var(--rst-accent);
	border-radius: var(--rst-radius);
	padding: 28px;
	margin-bottom: 22px;
	box-shadow: var(--rst-shadow);
}

.rst-service-icon {
	width: 56px; height: 56px;
	border-radius: 8px;
	background: var(--rst-dark);
	color: var(--rst-accent);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
}

.rst-service h3 { margin: 2px 0 10px; font-size: 22px; color: var(--rst-dark); }
.rst-service h4 { margin: 16px 0 6px; font-size: 16px; color: var(--rst-dark); }
.rst-service p { margin: 0 0 10px; }

.rst-service ul { margin: 8px 0 4px; padding: 0; list-style: none; }
.rst-service li { padding: 4px 0 4px 26px; position: relative; }
.rst-service li::before {
	content: "\2713";
	position: absolute; left: 0;
	color: var(--rst-accent-dk);
	font-weight: 800;
}

@media (max-width: 620px) {
	.rst-service { grid-template-columns: 1fr; }
}

/* ---------- Bildergalerie ---------- */

.rst-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 18px;
}

.rst-gallery img {
	width: 100%;
	height: 240px;
	object-fit: cover;
	border-radius: var(--rst-radius);
	box-shadow: var(--rst-shadow);
	display: block;
}

/* ---------- Über uns / Kontakt ---------- */

.rst-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: start;
}

@media (max-width: 860px) {
	.rst-split { grid-template-columns: 1fr; }
}

.rst-contact-box {
	background: var(--rst-dark);
	color: #fff;
	border-radius: var(--rst-radius);
	padding: 30px;
}

.rst-contact-box h3 { color: var(--rst-accent); margin: 0 0 16px; }
.rst-contact-box a { color: #fff; text-decoration: none; }
.rst-contact-box a:hover { color: var(--rst-accent); }
.rst-contact-box i { color: var(--rst-accent); width: 22px; }
.rst-contact-box p { margin: 0 0 12px; }

/* ---------- Qualifikationen (Über uns) ---------- */

.rst-quali {
	margin-top: 26px;
	background: var(--rst-bg-alt);
	border: 1px solid var(--rst-border);
	border-left: 5px solid var(--rst-accent);
	border-radius: var(--rst-radius);
	padding: 22px 24px;
}

.rst-quali h3 {
	margin: 0 0 12px;
	font-size: 17px;
	color: var(--rst-dark);
	display: flex;
	align-items: center;
	gap: 10px;
}

.rst-quali h3 i { color: var(--rst-accent-dk); }

.rst-quali ul { margin: 0; padding: 0; list-style: none; }

.rst-quali li {
	position: relative;
	padding: 6px 0 6px 28px;
	font-size: 15.5px;
	color: var(--rst-text);
}

.rst-quali li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	color: var(--rst-accent-dk);
	font-weight: 800;
}

/* ---------- Formular ---------- */

.rst-form { display: grid; gap: 16px; }

.rst-form label { font-weight: 700; font-size: 15px; color: var(--rst-dark); display: block; margin-bottom: 6px; }

.rst-form input[type="text"],
.rst-form input[type="email"],
.rst-form input[type="tel"],
.rst-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--rst-border);
	border-radius: 6px;
	font: inherit;
	background: #fff;
	box-sizing: border-box;
}

.rst-form input:focus,
.rst-form textarea:focus {
	outline: none;
	border-color: var(--rst-accent-dk);
	box-shadow: 0 0 0 3px rgba(201, 212, 0, .25);
}

.rst-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .rst-form-row { grid-template-columns: 1fr; } }

.rst-form .rst-privacy-note { font-size: 14px; color: var(--rst-muted); }
.rst-hp { position: absolute !important; left: -9999px !important; }

.rst-alert { padding: 14px 18px; border-radius: 6px; font-weight: 600; }
.rst-alert-ok { background: #e7f3d9; border: 1px solid #b4d388; color: #2d5016; }
.rst-alert-err { background: #fbe4e4; border: 1px solid #eeb2b2; color: #8a1f1f; }

/* ---------- CTA-Band ---------- */

.rst-cta-band {
	background: linear-gradient(100deg, var(--rst-dark), var(--rst-dark-soft));
	border-top: 4px solid var(--rst-accent);
	border-bottom: 4px solid var(--rst-accent);
	color: #fff;
	text-align: center;
	padding: 56px 20px;
}

.rst-cta-band h2 { color: #fff; margin: 0 0 10px; font-size: clamp(24px, 3vw, 34px); }
.rst-cta-band p { color: #c9cbc5; margin: 0 0 26px; font-size: 18px; }

/* ---------- Rechtstexte ---------- */

.rst-legal { max-width: 860px; }
.rst-legal h2 { font-size: 24px; margin: 34px 0 10px; }
.rst-legal h3 { font-size: 19px; margin: 24px 0 8px; }
.rst-legal p, .rst-legal li { color: var(--rst-text); }

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

.rst-footer { background: var(--rst-dark); color: #d4d6d0; font-size: 15px; }

.rst-footer-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 36px;
	padding: 56px 0 40px;
}

.rst-footer h3 {
	color: var(--rst-accent);
	font-size: 16px;
	text-transform: uppercase;
	letter-spacing: .08em;
	margin: 0 0 14px;
}

.rst-footer a { color: #d4d6d0; text-decoration: none; }
.rst-footer a:hover { color: var(--rst-accent); }
.rst-footer i { color: var(--rst-accent); margin-right: 6px; }
.rst-footer ul { list-style: none; margin: 0; padding: 0; }
.rst-footer li { padding: 4px 0; }
.rst-footer-logo { height: 56px; width: auto; margin-bottom: 14px; background: #fff; padding: 6px 10px; border-radius: 6px; }
.rst-footer-tax { font-size: 13.5px; color: #9a9d97; }

.rst-footer-bottom {
	border-top: 1px solid #2e312d;
	padding: 16px 0;
	font-size: 14px;
	color: #9a9d97;
}

.rst-footer-bottom p { margin: 0; }

/* ---------- 404-Seite ---------- */

.rst-404 { padding: 90px 0; }

.rst-404-code {
	font-size: clamp(90px, 16vw, 170px);
	font-weight: 900;
	line-height: 1;
	margin: 0 0 10px;
	color: var(--rst-dark);
	letter-spacing: .02em;
}

.rst-404-bolt {
	display: inline-block;
	color: var(--rst-accent);
	transform: translateY(-4px);
	animation: rst-flicker 3s infinite;
}

@keyframes rst-flicker {
	0%, 100% { opacity: 1; }
	41% { opacity: 1; }
	42% { opacity: .25; }
	44% { opacity: 1; }
	78% { opacity: 1; }
	79% { opacity: .4; }
	81% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
	.rst-404-bolt { animation: none; }
}

.rst-404 h1 { font-size: clamp(26px, 4vw, 40px); color: var(--rst-dark); margin: 0 0 14px; }

.rst-404-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
	margin: 30px 0 26px;
}

.rst-404-actions .rst-btn i { margin-right: 8px; }

.rst-404-hint { color: var(--rst-muted); }

/* ---------- Cookie-Hinweis ---------- */

.rst-cookie {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 100001;
	max-width: 1180px;
	margin: 0 auto;
	background: var(--rst-dark);
	color: #e9eae6;
	border: 1px solid #2e312d;
	border-top: 4px solid var(--rst-accent);
	border-radius: var(--rst-radius);
	box-shadow: 0 12px 40px rgba(0, 0, 0, .4);
	transform: translateY(140%);
	opacity: 0;
	transition: transform .3s ease, opacity .3s ease;
}

.rst-cookie[hidden] { display: none; }
.rst-cookie.is-visible { transform: translateY(0); opacity: 1; }

.rst-cookie-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px 30px;
	padding: 22px 26px;
}

.rst-cookie-text { flex: 1 1 420px; }

.rst-cookie-title {
	margin: 0 0 8px;
	font-size: 17px;
	color: #fff;
	display: flex;
	align-items: center;
	gap: 10px;
}

.rst-cookie-title i { color: var(--rst-accent); }

.rst-cookie-text p {
	margin: 0;
	font-size: 14.5px;
	line-height: 1.6;
	color: #c9cbc5;
}

.rst-cookie-text a { color: var(--rst-accent); text-decoration: underline; }

.rst-cookie-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	flex: 0 0 auto;
}

.rst-cookie-actions .rst-btn { padding: 11px 22px; font-size: 15px; }

@media (max-width: 640px) {
	.rst-cookie { left: 10px; right: 10px; bottom: 10px; }
	.rst-cookie-actions { width: 100%; }
	.rst-cookie-actions .rst-btn { flex: 1 1 auto; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
	.rst-cookie { transition: opacity .3s ease; transform: none; }
}

/* ---------- Anruf-Button (sticky) ---------- */

.rst-call-fab {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 9999;
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--rst-accent);
	color: var(--rst-dark) !important;
	text-decoration: none;
	font-weight: 800;
	font-size: 16px;
	padding: 16px 18px;
	border-radius: 999px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
	transition: transform .15s, background .15s;
}

.rst-call-fab i {
	font-size: 20px;
	animation: rst-ring 2.4s ease-in-out infinite;
}

.rst-call-fab:hover {
	background: var(--rst-dark);
	color: var(--rst-accent) !important;
	transform: scale(1.06);
}

.rst-call-fab::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 999px;
	box-shadow: 0 0 0 0 rgba(201, 212, 0, .55);
	animation: rst-pulse 2.4s ease-out infinite;
	pointer-events: none;
}

@keyframes rst-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(201, 212, 0, .55); }
	70%  { box-shadow: 0 0 0 16px rgba(201, 212, 0, 0); }
	100% { box-shadow: 0 0 0 0 rgba(201, 212, 0, 0); }
}

@keyframes rst-ring {
	0%, 86%, 100% { transform: rotate(0); }
	88% { transform: rotate(-14deg); }
	90% { transform: rotate(12deg); }
	92% { transform: rotate(-10deg); }
	94% { transform: rotate(8deg); }
	96% { transform: rotate(-4deg); }
}

@media (max-width: 620px) {
	.rst-call-fab-label { display: none; }
	.rst-call-fab { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
	.rst-call-fab i, .rst-call-fab::before { animation: none; }
}

/* ---------- Zertifikate-Katalog ---------- */

.rst-catalog {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
}

.rst-cat-item {
	margin: 0;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--rst-border);
	border-radius: var(--rst-radius);
	overflow: hidden;
	box-shadow: var(--rst-shadow);
	transition: transform .18s ease, box-shadow .18s ease;
}

.rst-cat-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 16px 36px rgba(0, 0, 0, .14);
}

.rst-cat-figure {
	display: block;
	position: relative;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-bottom: 1px solid var(--rst-border);
	background: var(--rst-bg-alt);
	aspect-ratio: 1 / 1.16;
	overflow: hidden;
	cursor: zoom-in;
	line-height: 0;
}

.rst-cat-figure img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	display: block;
	transition: transform .3s ease;
}

.rst-cat-item:hover .rst-cat-figure img { transform: scale(1.05); }

.rst-cat-figure::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(22,22,22,0) 58%, rgba(22,22,22,.34));
	opacity: 0;
	transition: opacity .2s ease;
	pointer-events: none;
}

.rst-cat-item:hover .rst-cat-figure::before { opacity: 1; }

.rst-cat-zoom {
	position: absolute;
	left: 50%;
	bottom: 16px;
	transform: translate(-50%, 10px);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--rst-accent);
	color: var(--rst-dark);
	font-weight: 800;
	font-size: 14px;
	line-height: 1;
	padding: 10px 16px;
	border-radius: 999px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
	opacity: 0;
	transition: opacity .2s ease, transform .2s ease;
	pointer-events: none;
}

.rst-cat-item:hover .rst-cat-zoom,
.rst-cat-figure:focus-visible .rst-cat-zoom {
	opacity: 1;
	transform: translate(-50%, 0);
}

.rst-cat-figure:focus-visible { outline: 3px solid var(--rst-accent-dk); outline-offset: -3px; }

.rst-cat-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 24px 26px 28px;
}

.rst-cat-issuer {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	text-transform: uppercase;
	letter-spacing: .1em;
	font-size: 12.5px;
	font-weight: 800;
	color: var(--rst-accent-dk);
	margin-bottom: 8px;
}

.rst-cat-body h3 {
	margin: 0 0 10px;
	font-size: 19px;
	line-height: 1.3;
	color: var(--rst-dark);
}

.rst-cat-body p {
	margin: 0 0 20px;
	font-size: 15px;
	color: var(--rst-muted);
}

.rst-cat-pdf {
	margin-top: auto;
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	font-size: 14.5px;
	text-decoration: none;
	color: var(--rst-dark) !important;
	border-bottom: 2px solid var(--rst-accent);
	padding-bottom: 2px;
	transition: color .15s, border-color .15s;
}

.rst-cat-pdf i { color: #c0392b; }
.rst-cat-pdf:hover { color: var(--rst-accent-dk) !important; border-color: var(--rst-accent-dk); }

.rst-certs-note {
	margin: 30px 0 0;
	text-align: center;
	font-size: 14.5px;
	color: var(--rst-muted);
}

/* ---------- Zertifikate-Lightbox ---------- */

.rst-lb {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 4vh 16px;
	background: rgba(12, 13, 11, .92);
}

.rst-lb.is-open { display: flex; }

.rst-lb-figure {
	position: relative;
	margin: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: min(92vw, 760px);
}

.rst-lb-img {
	max-width: 100%;
	max-height: 82vh;
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}

.rst-lb-caption {
	margin-top: 16px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px 18px;
	color: #fff;
	text-align: center;
}

.rst-lb-title { font-weight: 700; font-size: 16px; }

.rst-lb-pdf {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--rst-accent);
	color: var(--rst-dark) !important;
	font-weight: 800;
	font-size: 14px;
	text-decoration: none;
	padding: 8px 16px;
	border-radius: 999px;
	transition: background .15s;
}

.rst-lb-pdf:hover { background: #fff; }

.rst-lb-btn {
	position: absolute;
	z-index: 3;
	width: 46px; height: 46px;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, .14);
	color: #fff;
	font-size: 18px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .15s, color .15s;
}

.rst-lb-btn:hover { background: var(--rst-accent); color: var(--rst-dark); }

.rst-lb-close { top: 18px; right: 18px; }
.rst-lb-prev  { left: 18px; top: 50%; transform: translateY(-50%); }
.rst-lb-next  { right: 18px; top: 50%; transform: translateY(-50%); }

@media (max-width: 620px) {
	.rst-lb-prev { left: 8px; }
	.rst-lb-next { right: 8px; }
	.rst-lb-close { top: 10px; right: 10px; }
	.rst-lb-img { max-height: 74vh; }
}

@media (prefers-reduced-motion: reduce) {
	.rst-cat-item,
	.rst-cat-figure img,
	.rst-cat-zoom { transition: none; }
}
