/* ==========================================================================
   Belu Seminare – Single Template
   ========================================================================== */

.sem-single {
	--sem-white:   var(--color-white, #fff);
	--sem-light:   var(--color-grey-light, #faf7f5);
	--sem-grey:    var(--color-grey, #eceae3);
	--sem-black:   var(--color-default-dark, #313e47);
	--sem-gold:    var(--color-primary, #459524);
	--sem-gold-dk: #367a1c;
	--sem-red:     var(--color-secondary, #12729b);
	--sem-silver:  #8a9399;
	--sem-muted:   var(--color-black, #464646);
	--sem-trans:   0.2s ease;
}

body.single-seminare {
	overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   Back link
   -------------------------------------------------------------------------- */

.sem-single__back-wrap {
	background: var(--sem-light);
	border-bottom: 1px solid var(--sem-grey);
	padding: 14px 0;
}

.sem-single__back {
	align-items: center;
	color: var(--sem-black);
	display: inline-flex;
	font-family: var(--font-family);
	font-size: 13px;
	gap: 8px;
	letter-spacing: 0.1em;
	text-decoration: none;
	text-transform: uppercase;
	transition: color var(--sem-trans);
}

.sem-single__back:hover { color: var(--sem-gold); }

.sem-single__back-arrow {
	display: inline-block;
	transition: transform var(--sem-trans);
}

.sem-single__back:hover .sem-single__back-arrow {
	transform: translateX(-4px);
}

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

.sem-single__hero {
	background: var(--sem-black);
	overflow: hidden;
	padding: 56px 0 48px;
	position: relative;
}

.sem-single__hero::before {
	background: var(--sem-gold);
	content: '';
	height: 3px;
	left: 0;
	position: absolute;
	right: 0;
	top: 0;
}

.sem-single__hero::after {
	background: repeating-linear-gradient(
		135deg,
		rgba(69, 149, 36, 0.03) 0px,
		rgba(69, 149, 36, 0.03) 1px,
		transparent 1px,
		transparent 40px
	);
	content: '';
	inset: 0;
	pointer-events: none;
	position: absolute;
}

.sem-single__overline {
	color: var(--sem-gold);
	display: block;
	font-family: var(--font-family);
	font-size: 11px;
	letter-spacing: 0.22em;
	margin-bottom: 14px;
	position: relative;
	text-transform: uppercase;
	z-index: 1;
}

.sem-single__overline::before {
	background: var(--sem-gold);
	content: '';
	display: inline-block;
	height: 1px;
	margin-right: 10px;
	vertical-align: middle;
	width: 24px;
}

.sem-single__title {
	color: var(--sem-white);
	font-family: var(--font-family);
	font-size: clamp(1.7rem, 4vw, 2.8rem);
	font-weight: 400;
	line-height: 1.12;
	margin: 0 0 22px;
	position: relative;
	z-index: 1;
}

.sem-single__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
	position: relative;
	z-index: 1;
}

.sem-single__badge {
	align-items: center;
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.15);
	color: rgba(255, 255, 255, 0.75);
	display: inline-flex;
	font-family: var(--font-family);
	font-size: 13px;
	gap: 6px;
	letter-spacing: 0.04em;
	padding: 6px 14px;
}

.sem-single__badge .ph { font-size: 13px; }

.sem-single__badge--gold {
	background: rgba(69, 149, 36, 0.15);
	border-color: rgba(69, 149, 36, 0.45);
	color: var(--sem-gold);
}

.sem-single__badge--expired {
	background: rgba(69, 149, 36, 0.18);
	border-color: rgba(69, 149, 36, 0.65);
	color: #7dcea0;
	font-family: var(--font-family);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Fact strip
   -------------------------------------------------------------------------- */

.sem-single__strip {
	background: var(--sem-white);
	border-bottom: 1px solid var(--sem-grey);
	padding: 0;
}

.sem-single__facts {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	margin: 0;
	padding: 0;
}

.sem-single__fact {
	align-items: center;
	border-right: 1px solid var(--sem-grey);
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	gap: 3px;
	justify-content: center;
	min-width: 100px;
	padding: 18px 16px;
	text-align: center;
}

.sem-single__fact:last-child { border-right: none; }

.sem-single__fact-icon {
	color: var(--sem-silver);
	font-size: 16px;
	height: 16px;
	width: 16px;
}

.sem-single__fact--gold .sem-single__fact-icon { color: var(--sem-gold); }

.sem-single__fact-label {
	color: var(--sem-muted);
	font-family: var(--font-family);
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.sem-single__fact-value {
	color: var(--sem-black);
	font-family: var(--font-family);
	font-size: 14px;
	line-height: 1.3;
}

.sem-single__fact--gold .sem-single__fact-value { color: var(--sem-gold-dk); }

/* --------------------------------------------------------------------------
   Layout wrap
   -------------------------------------------------------------------------- */

.sem-single__layout-wrap {
	background: #fff;
	padding: 3rem 0 4rem;
}

/* --------------------------------------------------------------------------
   Sidebar
   -------------------------------------------------------------------------- */

.sem-single__sidebar {
	display: flex;
	flex-direction: column;
	gap: 16px;
	position: sticky;
	top: 32px;
}

.sem-single__card {
	background: var(--sem-light);
	border: 1px solid var(--sem-grey);
	border-top: 3px solid var(--sem-gold);
	padding: 20px 22px 18px;
}

.sem-single__card--contact {
	border-top-color: var(--sem-red);
}

.sem-single__card-title {
	align-items: center;
	border-bottom: 1px solid var(--sem-grey);
	color: var(--sem-black);
	display: flex;
	font-family: var(--font-family);
	font-size: 0.95rem;
	font-weight: 400;
	gap: 7px;
	letter-spacing: 0.03em;
	margin: 0 0 14px;
	padding-bottom: 12px;
}

.sem-single__card-title .ph {
	color: var(--sem-gold);
	font-size: 15px;
}

.sem-single__card--contact .sem-single__card-title .ph {
	color: var(--sem-red);
}

.sem-single__card-name {
	color: var(--sem-black);
	font-family: var(--font-family);
	font-size: 15px;
	margin: 0 0 6px;
}

.sem-single__card-address {
	color: var(--sem-muted);
	font-family: var(--font-family);
	font-size: 13px;
	line-height: 1.5;
	margin: 0 0 10px;
}

.sem-single__card-person {
	align-items: center;
	color: var(--sem-muted);
	display: flex;
	font-family: var(--font-family);
	font-size: 14px;
	gap: 6px;
	margin: 0 0 12px;
}

.sem-single__card-person .ph {
	color: var(--sem-silver);
	font-size: 14px;
}

.sem-single__card-links {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.sem-single__ver-link {
	align-items: center;
	color: var(--sem-red);
	display: flex;
	font-family: var(--font-family);
	font-size: 13px;
	gap: 6px;
	text-decoration: none;
	transition: color var(--sem-trans);
	word-break: break-all;
}

.sem-single__ver-link:hover { color: var(--sem-black); }

.sem-single__ver-link .ph {
	color: var(--sem-red);
	flex-shrink: 0;
	font-size: 14px;
}

.sem-single__apply-btn {
	background: var(--sem-red);
	border: 1px solid var(--sem-red);
	color: #fff;
	cursor: pointer;
	font-family: var(--font-family);
	font-size: 13px;
	letter-spacing: .08em;
	margin-top: 14px;
	padding: 10px 14px;
	text-transform: uppercase;
	transition: background var(--sem-trans), border-color var(--sem-trans);
	width: 100%;
}

.sem-single__apply-btn:hover {
	background: var(--sem-black);
	border-color: var(--sem-black);
}

.sem-single__ort-maps {
	align-items: center;
	color: var(--sem-gold);
	display: inline-flex;
	font-family: var(--font-family);
	font-size: 12px;
	gap: 5px;
	letter-spacing: 0.06em;
	margin-top: 4px;
	text-decoration: none;
	text-transform: uppercase;
	transition: color var(--sem-trans);
}

.sem-single__ort-maps:hover { color: var(--sem-gold-dk); }

.sem-single__ort-maps .ph { font-size: 13px; }

/* --------------------------------------------------------------------------
   Slide-in form panel (closed by default – do not show on page load)
   -------------------------------------------------------------------------- */

.sem-apply-overlay {
	background: rgba(49, 62, 71, 0.55);
	bottom: 0 !important;
	inset: auto;
	left: 0 !important;
	opacity: 0;
	pointer-events: none;
	position: fixed !important;
	right: 0 !important;
	top: 0 !important;
	transition: opacity .25s ease;
	visibility: hidden;
	z-index: 100098 !important;
}

.sem-apply-overlay.is-open {
	opacity: 1;
	pointer-events: auto;
	visibility: visible;
}

.sem-apply-panel {
	background: var(--sem-white, #fff);
	bottom: 0 !important;
	box-shadow: -12px 0 40px rgba(49, 62, 71, 0.18);
	display: flex;
	flex-direction: column;
	height: 100vh !important;
	height: 100dvh !important;
	left: auto !important;
	margin: 0 !important;
	max-width: 640px;
	pointer-events: none;
	position: fixed !important;
	right: 0 !important;
	top: 0 !important;
	transform: translate3d(105%, 0, 0);
	transition: transform .32s ease, visibility .32s ease;
	visibility: hidden;
	width: min(92vw, 640px);
	z-index: 100099 !important;
}

.sem-apply-panel.is-open {
	pointer-events: auto;
	transform: translate3d(0, 0, 0);
	visibility: visible;
}

body.sem-apply-open {
	overflow: hidden;
}

.sem-apply-panel__head {
	align-items: center;
	background: var(--sem-light, #faf7f5);
	border-bottom: 1px solid var(--sem-grey, #eceae3);
	display: flex;
	justify-content: space-between;
	padding: 1rem 1.25rem;
}

.sem-apply-panel__head h2 {
	color: var(--sem-black, #313e47);
	font-family: var(--font-family);
	font-size: 1.15rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	margin: 0;
	text-transform: uppercase;
}

.sem-apply-panel__close {
	align-items: center;
	background: transparent;
	border: 0;
	border-radius: 0.375rem;
	color: var(--sem-black, #313e47);
	cursor: pointer;
	display: inline-flex;
	font-size: 1.75rem;
	height: 2.25rem;
	justify-content: center;
	line-height: 1;
	padding: 0;
	transition: background 0.2s ease, color 0.2s ease;
	width: 2.25rem;
}

.sem-apply-panel__close:hover {
	background: rgba(69, 149, 36, 0.12);
	color: var(--sem-gold, #459524);
}

.sem-apply-panel__body {
	flex: 1;
	overflow: auto;
	padding: 1.25rem 1.35rem 1.75rem;
}

/* CFF inside apply panel */
.sem-apply-panel__body .cff-form,
.sem-apply-panel__body .cp_cff_13 {
	margin: 0;
	max-width: none;
	padding: 0;
	box-shadow: none;
	border: 0;
	background: transparent;
}

.sem-apply-panel__body .pbSubmit {
	background: var(--sem-red, #12729b) !important;
	border: 0 !important;
	border-radius: 0.375rem;
	color: #fff !important;
}

/* --------------------------------------------------------------------------
   Main content
   -------------------------------------------------------------------------- */

.sem-single__section {
	border-bottom: 1px solid var(--sem-grey);
	margin-bottom: 40px;
	padding-bottom: 40px;
}

.sem-single__section:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.sem-single__section-title {
	color: var(--sem-black);
	font-family: var(--font-family); 
	font-weight: 400;
	margin: 0 0 20px;
	padding-left: 16px;
	position: relative;
}

.sem-single__section-title::before {
	background: var(--sem-gold);
	bottom: 2px;
	content: '';
	left: 0;
	position: absolute;
	top: 2px;
	width: 3px;
}

.sem-single__termine-hint {
	color: var(--sem-muted);
	font-family: var(--font-family);
	font-size: 14px;
	margin: 0 0 16px;
}

.sem-single__section-body {
	color: var(--sem-black);
	font-family: var(--font-family);
	font-size: 16px;
	line-height: 1.3;
}

.sem-single__section-body p { margin: 0 0 14px; }
.sem-single__section-body p:last-child { margin-bottom: 0; }

/* Fallback für Inhalte ohne <p> (z.B. nur Textblöcke/Divs nach h3) */
.sem-single__section-body > :not(h3):not(ul):not(ol):not(p) {
	line-height: 1.3;
	margin: 0 0 14px;
}

.sem-single__section-body h3 {
	color: var(--sem-black);
	font-family: var(--font-family);
	font-size: 1.2rem;
	font-weight: 400;
	margin: 26px 0 8px;
}

.sem-single__section-body h3:first-child { margin-top: 0; }

.sem-single__section-body ul,
.sem-single__section-body ol {
	list-style: none;
	margin: 0 0 14px;
	padding: 0;
}

.sem-single__section-body li { padding: 4px 0 4px 20px; position: relative; }

.sem-single__section-body ul li::before {
	color: var(--sem-gold);
	content: '\2014';
	left: 0;
	position: absolute;
}

.sem-single__section-body ol { counter-reset: sem-ol; }
.sem-single__section-body ol li { counter-increment: sem-ol; }
.sem-single__section-body ol li::before {
	color: var(--sem-gold);
	content: counter(sem-ol) '.';
	font-size: 12px;
	left: 0;
	position: absolute;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 991px) {
	/* Sidebar über den Content auf Mobile */
	.sem-single__content { order: 2; }
	aside.col-12 { order: 1; }

	.sem-single__sidebar {
		display: grid;
		grid-template-columns: 1fr 1fr;
		position: static;
	}
}

@media (max-width: 767px) {
	/* Fact strip: 2-col grid */
	.sem-single__facts {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}

	.sem-single__fact {
		border-bottom: 1px solid var(--sem-grey);
		border-right: none;
		flex: unset;
	}

	/* Rechte Spalte bekommt Border-Right zurück */
	.sem-single__fact:nth-child(odd) {
		border-right: 1px solid var(--sem-grey);
	}

	/* Letzte Zeile kein Border-Bottom */
	.sem-single__fact:nth-last-child(-n+2) {
		border-bottom: none;
	}

	.sem-single__sidebar {
		grid-template-columns: 1fr;
	}

	.sem-single__hero { padding: 40px 0 36px; }
}
