/* VDTL Brevet System – Frontend */
.vdtl-bs {
	--vdtl-primary: #1670AE;
	--vdtl-dark: #0B3D66;
	--vdtl-light: #D6ECF9;
	--vdtl-line: 3px;
	--vdtl-gap: 44px;
	--vdtl-c: 24%; /* Mitte der Kurskarte innerhalb der Spalte */
	--vdtl-col-gap: 48px;
	--vdtl-pad: 48px;
	box-sizing: border-box;
	color: var(--vdtl-dark);
	background: linear-gradient(180deg, #F2F9FE 0%, #E3F2FC 100%);
	border-radius: 16px;
	overflow: hidden;
	line-height: 1.45;
	font-size: 15px;
}
.vdtl-bs *, .vdtl-bs *::before, .vdtl-bs *::after { box-sizing: border-box; }
.vdtl-bs ol, .vdtl-bs ul { list-style: none; margin: 0; padding: 0; }
.vdtl-bs li { margin: 0; padding: 0; }
.vdtl-bs li::marker { content: none; }
.vdtl-bs a { text-decoration: none; box-shadow: none; color: inherit; }
.vdtl-bs h2, .vdtl-bs h3, .vdtl-bs p { margin: 0; padding: 0; }

/* Kopfbereich */
.vdtl-bs-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 36px var(--vdtl-pad);
	background: linear-gradient(160deg, var(--vdtl-dark) 0%, var(--vdtl-primary) 60%, #3FA3DE 100%);
	color: #fff;
}
.vdtl-bs-kicker { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: #BFE3F8; }
.vdtl-bs .vdtl-bs-title { font-size: clamp(30px, 5vw, 56px); line-height: 1.15; font-weight: 800; color: #fff; margin: 6px 0 8px; }
.vdtl-bs-subtitle { font-size: clamp(15px, 1.8vw, 20px); color: #E3F3FD; }
.vdtl-bs-logo { width: 160px; height: 160px; flex: 0 0 auto; filter: drop-shadow(0 4px 10px rgba(0,0,0,.25)); }

/* Laufbahn */
.vdtl-bs-path {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	column-gap: var(--vdtl-col-gap);
	padding: 32px var(--vdtl-pad) 0;
}
.vdtl-bs-col { display: flex; flex-direction: column; min-width: 0; }
.vdtl-bs .vdtl-bs-col-title,
.vdtl-bs .vdtl-bs-section-title { font-size: 26px; line-height: 1.3; font-weight: 800; color: var(--vdtl-dark); margin: 0 0 20px; }
.vdtl-bs-col-title a:hover, .vdtl-bs-section-title a:hover { color: var(--vdtl-primary); }
.vdtl-bs-steps { display: flex; flex-direction: column; flex: 1 1 auto; }
.vdtl-bs-step { position: relative; }

/* Pfeile – linke Spalte (abwärts) */
.vdtl-bs-step.has-arrow { margin-top: var(--vdtl-gap); }
.vdtl-bs-step.has-arrow::before {
	content: "";
	position: absolute;
	left: calc(var(--vdtl-c) - var(--vdtl-line) / 2);
	width: var(--vdtl-line);
	height: var(--vdtl-gap);
	background: var(--vdtl-primary);
}
.vdtl-bs-step.has-arrow::after {
	content: "";
	position: absolute;
	left: calc(var(--vdtl-c) - 8px);
	border-left: 8px solid transparent;
	border-right: 8px solid transparent;
}
.vdtl-bs-step.has-arrow::before { top: calc(-1 * var(--vdtl-gap)); }
.vdtl-bs-step.has-arrow::after { top: -11px; border-top: 11px solid var(--vdtl-primary); }
.vdtl-bs-step.is-dashed::before {
	background: repeating-linear-gradient(to bottom, var(--vdtl-primary) 0 6px, transparent 6px 12px);
}
.vdtl-bs-arrow-label {
	position: absolute;
	left: calc(var(--vdtl-c) + 14px);
	font-size: 13px;
	font-style: italic;
	color: var(--vdtl-primary);
	white-space: nowrap;
}
.vdtl-bs-arrow-label { top: calc(-1 * var(--vdtl-gap) / 2 - 10px); }

/* Hinweis am Ende der linken Spalte */
.vdtl-bs-next-pill {
	display: inline-block;
	padding: 8px 16px;
	border: 2px solid var(--vdtl-primary);
	border-radius: 999px;
	background: #fff;
	color: var(--vdtl-primary);
	font-size: 14px;
	font-weight: 700;
}
.vdtl-bs-next-mob { display: none; }
a.vdtl-bs-next-pill:hover, a.vdtl-bs-next-pill:focus-visible { background: var(--vdtl-primary); color: #fff; }
.vdtl-bs-path { padding-bottom: 56px; }

/* Kurskarte + Info */
.vdtl-bs-brevet {
	display: grid;
	grid-template-columns: 48% minmax(0, 1fr);
	column-gap: 16px;
	align-items: stretch;
}
.vdtl-bs-card {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 64px;
	padding: 12px 26px;
	text-align: center;
	background: var(--vdtl-primary);
	color: #fff;
	border-radius: 10px;
	font-size: 17px;
	line-height: 1.3;
	font-weight: 700;
	box-shadow: 0 2px 6px rgba(11, 61, 102, .18);
	transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.vdtl-bs-go { position: absolute; right: 12px; top: 50%; transform: translateY(-52%); font-size: 24px; line-height: 1; opacity: .75; }
.vdtl-bs-info {
	display: block;
	padding: 10px 14px;
	background: #fff;
	border: 1.5px solid color-mix(in srgb, var(--vdtl-primary) 45%, #fff);
	border-radius: 8px;
	font-size: 14px;
	line-height: 1.45;
	color: var(--vdtl-dark);
}
a.vdtl-bs-brevet:hover .vdtl-bs-card,
a.vdtl-bs-brevet:focus-visible .vdtl-bs-card {
	background: var(--vdtl-dark);
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(11, 61, 102, .28);
}
a.vdtl-bs-brevet:hover .vdtl-bs-info { border-color: var(--vdtl-primary); }
.vdtl-bs a:focus-visible { outline: 3px solid #F5A623; outline-offset: 3px; border-radius: 10px; }

/* Voraussetzungen */
.vdtl-bs-req {
	padding: 12px 16px;
	background: var(--vdtl-light);
	border-radius: 8px;
	font-size: 14px;
	line-height: 1.5;
}
.vdtl-bs-req a:not(.vdtl-bs-chip) { color: var(--vdtl-primary); text-decoration: underline; }
.vdtl-bs-chips { margin-top: 4px; }
.vdtl-bs-req-text + .vdtl-bs-chips { margin-top: 8px; }
.vdtl-bs-chip {
	display: inline-block;
	margin: 4px 6px 0 0;
	padding: 3px 12px;
	border: 1.5px solid var(--vdtl-primary);
	border-radius: 999px;
	background: #fff;
	color: var(--vdtl-primary);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.5;
	transition: background-color .15s ease, color .15s ease;
}
.vdtl-bs a.vdtl-bs-chip:hover, .vdtl-bs a.vdtl-bs-chip:focus-visible { background: var(--vdtl-primary); color: #fff; }

/* Apnoe + Weiterbildungen */
.vdtl-bs-section { padding: 0 var(--vdtl-pad) 40px; }
.vdtl-bs .vdtl-bs-section-title { margin-bottom: 4px; }
.vdtl-bs-intro { font-size: 14px; color: #3D6485; margin-bottom: 20px; }
.vdtl-bs-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.vdtl-bs-row > li { position: relative; display: flex; }
.vdtl-bs-row--flow > li:not(:last-child)::after {
	content: "›";
	position: absolute;
	right: -24px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 30px;
	font-weight: 700;
	color: var(--vdtl-primary);
}
.vdtl-bs-tile {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
	padding: 18px 20px;
	background: #fff;
	border: 1.5px solid color-mix(in srgb, var(--vdtl-primary) 45%, #fff);
	border-top: 6px solid var(--vdtl-primary);
	border-radius: 10px;
	font-size: 14px;
	line-height: 1.5;
	transition: transform .15s ease, box-shadow .15s ease;
}
.vdtl-bs-tile--soft { background: var(--vdtl-light); border: 0; }
a.vdtl-bs-tile:hover, a.vdtl-bs-tile:focus-visible { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(11, 61, 102, .18); }
.vdtl-bs-tile-title { font-size: 18px; line-height: 1.3; font-weight: 700; color: var(--vdtl-primary); }
.vdtl-bs-tile--soft .vdtl-bs-tile-title { color: var(--vdtl-dark); }
.vdtl-bs-tile-list { display: flex; flex-direction: column; gap: 2px; }
.vdtl-bs-tile-list span::before { content: "· "; color: var(--vdtl-primary); font-weight: 700; }
.vdtl-bs-tile-desc { color: #3D6485; }
.vdtl-bs-badge {
	align-self: flex-start;
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--vdtl-primary);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
}
.vdtl-bs-more { margin-top: auto; padding-top: 6px; font-weight: 700; color: var(--vdtl-primary); }

.vdtl-bs-footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	margin: 0 var(--vdtl-pad);
	padding: 16px 0 28px;
	border-top: 1px solid #B7DAF0;
	font-size: 13px;
	color: #3D6485;
}

/* Tablet & Handy: eine Spalte, alles abwärts */
@media (max-width: 900px) {
	.vdtl-bs { --vdtl-pad: 24px; }
	.vdtl-bs-path { grid-template-columns: minmax(0, 1fr); }
	.vdtl-bs-col--right { margin-top: 48px; }
	.vdtl-bs-next-desk { display: none; }
	.vdtl-bs-next-mob { display: inline; }
	.vdtl-bs-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
	.vdtl-bs-row--flow > li::after { display: none; }
	.vdtl-bs-logo { width: 110px; height: 110px; }
	.vdtl-bs-header { padding-top: 28px; padding-bottom: 28px; }
}
@media (max-width: 560px) {
	.vdtl-bs { --vdtl-c: 50%; border-radius: 0; }
	.vdtl-bs-brevet { grid-template-columns: minmax(0, 1fr); row-gap: 8px; }
	.vdtl-bs-row { grid-template-columns: minmax(0, 1fr); }
	.vdtl-bs-header { flex-direction: column-reverse; align-items: flex-start; }
	.vdtl-bs-logo { width: 88px; height: 88px; }
}
@media (prefers-reduced-motion: reduce) {
	.vdtl-bs * { transition: none !important; }
}
