/* HMF Terminkarten – Frontend-Styles
   Akzentfarbe = Orange der Seite. Änderbar über
   .hmf-termin { --hmf-accent: #…; } in Divi → Theme-Optionen → Custom CSS */

.hmf-termin {
	--hmf-accent: #e0882b;
	--hmf-accent-dark: #c7741f;
	--hmf-accent-soft: #fdf3e7;
	--hmf-text: #333;
	--hmf-muted: #777;
	--hmf-border: #e9e4dc;

	position: relative;
	background: #fff;
	border: 1px solid var(--hmf-border);
	border-top: 4px solid var(--hmf-accent);
	border-radius: 10px;
	padding: 28px 28px 24px;
	margin: 0 0 30px;
	color: var(--hmf-text);
	font-size: 16px;
	line-height: 1.55;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
	box-sizing: border-box;
	text-align: left;
}

.hmf-termine > .hmf-termin:last-child {
	margin-bottom: 0;
}

.hmf-termin__head {
	margin-bottom: 18px;
}

.hmf-termin h3.hmf-termin__title {
	margin: 0 0 4px;
	padding: 0;
	font-size: 24px;
	line-height: 1.2;
	color: var(--hmf-accent);
	display: inline;
}

.hmf-termin__badge {
	display: inline-block;
	vertical-align: middle;
	margin-left: 10px;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--hmf-accent-soft);
	color: var(--hmf-accent);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	white-space: nowrap;
}

.hmf-termin__subtitle {
	margin: 6px 0 0;
	padding: 0;
	font-style: italic;
	color: var(--hmf-muted);
}

.hmf-termin__rows {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.hmf-termin__row {
	display: grid;
	grid-template-columns: 22px 72px 1fr;
	gap: 0 12px;
	align-items: start;
	padding: 10px 0;
	border-top: 1px dashed var(--hmf-border);
	list-style: none;
}

.hmf-termin__row:first-child {
	border-top: 0;
}

.hmf-termin__icon svg,
.hmf-termin__notice svg,
.hmf-termin--hint > svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: var(--hmf-accent);
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
	margin-top: 2px;
	flex: none;
}

.hmf-termin__label {
	font-weight: 700;
}

.hmf-termin__muted {
	color: var(--hmf-muted);
	font-size: 0.94em;
}

.hmf-termin__notice {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 14px 0 0;
	padding: 10px 14px;
	border-radius: 8px;
	background: var(--hmf-accent-soft);
	font-size: 15px;
}

.hmf-termin__body {
	margin-top: 18px;
}

.hmf-termin__body p {
	margin: 0 0 12px;
	padding: 0;
}

.hmf-termin__body p:last-child {
	margin-bottom: 0;
}

.hmf-termin__buttons {
	margin-top: 18px;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.hmf-termin a.hmf-termin__button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 18px;
	border-radius: 6px;
	background: var(--hmf-accent);
	color: #fff;
	font-weight: 700;
	font-size: 15px;
	line-height: 1.2;
	text-decoration: none;
	transition: background 0.15s, transform 0.15s;
}

.hmf-termin a.hmf-termin__button svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.hmf-termin a.hmf-termin__button:hover {
	background: var(--hmf-accent-dark);
	color: #fff;
	transform: translateY(-1px);
}

.hmf-termin a.hmf-termin__button--secondary {
	background: #fff;
	color: var(--hmf-accent);
	border: 2px solid var(--hmf-accent);
	padding: 9px 16px;
}

.hmf-termin a.hmf-termin__button--secondary:hover {
	background: var(--hmf-accent-soft);
	color: var(--hmf-accent);
}

/* Kurzer Hinweis */
.hmf-termin--hint {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	border-top: 1px solid var(--hmf-border);
	background: #faf8f4;
	padding: 18px 22px;
	box-shadow: none;
}

.hmf-termin--hint p {
	margin: 0 0 8px;
	padding: 0;
}

.hmf-termin--hint p:last-child {
	margin-bottom: 0;
}

/* Divi */
.et_pb_text .hmf-termin,
.et_pb_code .hmf-termin {
	max-width: 100%;
}

@media (max-width: 480px) {
	.hmf-termin {
		padding: 20px 18px;
	}
	.hmf-termin__row {
		grid-template-columns: 22px 1fr;
	}
	.hmf-termin__label,
	.hmf-termin__value {
		grid-column: 2;
	}
	.hmf-termin h3.hmf-termin__title {
		display: block;
	}
	.hmf-termin__badge {
		margin: 8px 0 0;
	}
}
