/**
 * Hausmeister-App Updates – Frontend-Styles
 * Alle Selektoren mit .hm-cl- Prefix gescoped.
 */

:root {
	--hm-orange: #F39C12;
	--hm-navy: #0D1B2A;
	--hm-blue: #1F77D4;
	--hm-green: #1A9E5C;
	--hm-grey-light: #F5F6F8;
	--hm-grey-border: #E2E5EA;
	--hm-text: #1A2230;
	--hm-text-muted: #6B7480;
	--hm-white: #FFFFFF;
	--hm-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
	--hm-radius-card: 12px;
	--hm-radius-button: 8px;
	--hm-shadow-card: 0 2px 16px rgba(13, 27, 42, 0.08);
	--hm-shadow-video: 0 4px 24px rgba(13, 27, 42, 0.12);
	--hm-max-width: 1140px;
}

.hm-cl-main * {
	box-sizing: border-box;
}

.hm-cl-eyebrow {
	display: inline-block;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--hm-orange) !important;
	margin-bottom: 8px;
	font-family: var(--hm-font);
}

.hm-cl-title {
	font-family: var(--hm-font);
	font-size: 40px;
	font-weight: 700;
	color: var(--hm-navy) !important;
	margin: 0 0 16px;
	line-height: 1.2;
}

.hm-cl-lead {
	font-family: var(--hm-font);
	font-size: 17px;
	line-height: 1.6;
	color: var(--hm-text);
	margin: 0 0 32px;
}

.hm-cl-h2 {
	font-family: var(--hm-font);
	font-size: 28px;
	font-weight: 700;
	color: var(--hm-navy) !important;
	margin: 40px 0 20px;
}

/* -------------------------------------------------- */
/* Archiv                                              */
/* -------------------------------------------------- */

.hm-cl-archive-inner {
	max-width: var(--hm-max-width);
	margin: 0 auto;
	padding: 64px 24px;
}

/* -------------------------------------------------- */
/* Karten-Grid (Shortcode + Archiv)                    */
/* -------------------------------------------------- */

.hm-cl-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
	margin-top: 8px;
}

.hm-cl-empty {
	font-family: var(--hm-font);
	color: var(--hm-text-muted);
	font-size: 15px;
}

.hm-cl-card {
	display: block;
	background: var(--hm-white) !important;
	border: 1px solid var(--hm-grey-border);
	border-radius: var(--hm-radius-card);
	box-shadow: var(--hm-shadow-card);
	padding: 24px;
	text-decoration: none !important;
	color: var(--hm-text);
	font-family: var(--hm-font);
	transition: transform .15s ease, box-shadow .15s ease;
}

.hm-cl-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 24px rgba(13, 27, 42, 0.14);
}

.hm-cl-card-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
	min-height: 22px;
}

.hm-cl-card-date {
	font-size: 12px;
	color: var(--hm-text-muted) !important;
}

.hm-cl-card-title {
	font-size: 19px;
	font-weight: 700;
	color: var(--hm-navy) !important;
	margin: 0 0 8px;
}

.hm-cl-card-summary {
	font-size: 14px;
	line-height: 1.5;
	color: var(--hm-text-muted) !important;
	margin: 0 0 12px;
}

.hm-cl-card-video {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--hm-orange) !important;
}

/* -------------------------------------------------- */
/* Badge                                               */
/* -------------------------------------------------- */

.hm-cl-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--hm-white) !important;
}

/* -------------------------------------------------- */
/* Detailseite                                         */
/* -------------------------------------------------- */

.hm-cl-single-inner {
	max-width: 760px;
	margin: 0 auto;
	padding: 48px 24px 96px;
}

.hm-cl-breadcrumb {
	font-family: var(--hm-font);
	font-size: 13px;
	color: var(--hm-text-muted);
	margin-bottom: 20px;
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.hm-cl-breadcrumb a {
	color: var(--hm-text-muted) !important;
	text-decoration: none;
}

.hm-cl-breadcrumb a:hover {
	color: var(--hm-orange) !important;
}

.hm-cl-breadcrumb-current {
	color: var(--hm-text);
	font-weight: 600;
}

.hm-cl-meta-row {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
	flex-wrap: wrap;
}

.hm-cl-date,
.hm-cl-version {
	font-family: var(--hm-font);
	font-size: 13px;
	color: var(--hm-text-muted);
}

.hm-cl-version {
	background: var(--hm-grey-light);
	border-radius: 6px;
	padding: 2px 8px;
	font-weight: 600;
}

/* -------------------------------------------------- */
/* Video-Embed                                         */
/* -------------------------------------------------- */

.hm-cl-video-wrapper {
	position: relative;
	width: 100%;
	padding-top: 56.25%;
	border-radius: 12px;
	box-shadow: var(--hm-shadow-video);
	overflow: hidden;
	margin-bottom: 32px;
	background: var(--hm-navy);
}

.hm-cl-video-wrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* -------------------------------------------------- */
/* Feature-Liste ("Was ist neu")                       */
/* -------------------------------------------------- */

.hm-cl-feature-list {
	list-style: none;
	margin: 0 0 32px;
	padding: 0;
}

.hm-cl-feature-list li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-family: var(--hm-font);
	font-size: 15px;
	line-height: 1.6;
	color: var(--hm-text);
	padding: 8px 0;
	border-bottom: 1px solid var(--hm-grey-border);
}

.hm-cl-feature-list li:last-child {
	border-bottom: none;
}

.hm-cl-feature-icon {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: rgba(26, 158, 92, 0.12);
	color: var(--hm-green) !important;
	font-weight: 700;
	font-size: 13px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* -------------------------------------------------- */
/* Freitext (WYSIWYG)                                  */
/* -------------------------------------------------- */

.hm-cl-freetext {
	font-family: var(--hm-font);
	font-size: 15px;
	line-height: 1.6;
	color: var(--hm-text);
	margin-bottom: 40px;
}

.hm-cl-freetext img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

/* -------------------------------------------------- */
/* Prev/Next-Navigation                                */
/* -------------------------------------------------- */

.hm-cl-prev-next {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	border-top: 1px solid var(--hm-grey-border);
	padding-top: 32px;
	margin-bottom: 40px;
}

.hm-cl-nav-btn {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 13px 20px;
	border: 1px solid var(--hm-grey-border);
	border-radius: var(--hm-radius-button);
	text-decoration: none !important;
	color: var(--hm-navy) !important;
	font-weight: 600;
	font-size: 14px;
	max-width: 300px;
	font-family: var(--hm-font);
}

.hm-cl-nav-btn:hover {
	border-color: var(--hm-orange);
}

.hm-cl-nav-btn i {
	color: var(--hm-orange) !important;
}

.hm-cl-nav-btn--next {
	margin-left: auto;
	text-align: right;
}

.hm-cl-nav-btn small {
	display: block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--hm-text-muted) !important;
	margin-bottom: 2px;
}

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

.hm-cl-cta {
	background: var(--hm-grey-light);
	border-radius: var(--hm-radius-card);
	padding: 28px 24px;
	text-align: center;
}

.hm-cl-cta p {
	font-family: var(--hm-font);
	font-size: 15px;
	color: var(--hm-text);
	margin: 0 0 16px;
}

.hm-cl-btn-primary {
	background: var(--hm-orange) !important;
	color: var(--hm-white) !important;
	padding: 13px 24px;
	border-radius: var(--hm-radius-button);
	font-weight: 700;
	font-size: 15px;
	border: none;
	cursor: pointer;
	text-decoration: none !important;
	display: inline-block;
	font-family: var(--hm-font);
}

/* -------------------------------------------------- */
/* Mobile                                              */
/* -------------------------------------------------- */

@media (max-width: 600px) {
	.hm-cl-title {
		font-size: 28px;
	}

	.hm-cl-h2 {
		font-size: 22px;
	}

	.hm-cl-prev-next {
		flex-direction: column;
	}

	.hm-cl-nav-btn,
	.hm-cl-nav-btn--next {
		max-width: 100%;
		width: 100%;
		text-align: left;
		margin-left: 0;
	}

	.hm-cl-single-inner {
		padding: 32px 20px 64px;
	}

	.hm-cl-archive-inner {
		padding: 40px 20px;
	}
}
