/* =========================================================
   Haus Magnussen – Availability Teaser (flach & breit)
   [hmb_availability_teaser]
   ========================================================= */

.hmb-teaser {
	--t-ocean:   #2C5F6E;
	--t-ocean-l: #3A7A8C;
	--t-moss:    #4A7C59;
	--t-gold:    #C9963A;
	--t-sand:    #F5F1EB;
	--t-dune:    #E2D9CB;
	--t-ink:     #1C2B30;
	--t-mist:    #7A8E93;
	--t-purple:  #9b8fc4;
	--t-unavailable: #FF746C;

	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	background: #fff;
	border-radius: 10px;
	border: 1px solid var(--t-dune);
	box-shadow: 0 2px 12px rgba(44,95,110,.08);
	overflow: hidden;
	width: 100%;
}

/* ── Header – eine schmale Leiste ────────────────────────── */
.hmb-teaser__head {
	background: var(--t-ocean);
	padding: 8px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
}
.hmb-teaser__title {
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.02em;
}
.hmb-teaser__legend {
	display: flex;
	gap: 12px;
	font-size: 10px;
	color: rgba(255,255,255,.8);
}
.hmb-teaser__legend span { display: flex; align-items: center; gap: 4px; }
.hmb-tdot {
	display: inline-block;
	width: 8px; height: 8px;
	border-radius: 2px;
	flex-shrink: 0;
}
.hmb-tdot--free    { background: var(--t-moss); }
.hmb-tdot--booked  { background: var(--t-unavailable); }
.hmb-tdot--pending { background: var(--t-gold); }
.hmb-tdot--owner   { background: var(--t-purple); }

/* ── Body: Monate nebeneinander + CTA-Spalte ─────────────── */
.hmb-teaser__body {
	display: flex;
	align-items: stretch;
	background: var(--t-sand);
}

/* Kalender-Bereich nimmt den ganzen Platz */
.hmb-teaser__months {
	display: flex;
	flex: 1;
	gap: 0;
	padding: 10px 12px;
	overflow: hidden;
}

/* Trennlinie zwischen Monaten */
.hmb-teaser__month + .hmb-teaser__month {
	border-left: 1px solid var(--t-dune);
	padding-left: 12px;
	margin-left: 12px;
}

/* Einzelner Monat */
.hmb-teaser__month { flex: 1; min-width: 0; }

.hmb-teaser__mname {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--t-ocean);
	text-align: center;
	margin-bottom: 5px;
}
.hmb-teaser__grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 2px;
}

/* Wochentag-Header */
.hmb-twd {
	text-align: center;
	font-size: 7.5px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--t-mist);
	padding-bottom: 2px;
}

/* Tages-Zellen */
.hmb-tday {
	aspect-ratio: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 3px;
	font-size: 9px;
	font-weight: 500;
	line-height: 1;
}
.hmb-tday--empty   { background: transparent; }
.hmb-tday--free    { background: rgba(74,124,89,.18);  color: #1e5030; }
.hmb-tday--booked  { background: rgba(255,116,108,.18); color: #b23c34; text-decoration: line-through; opacity: .85; }
.hmb-tday--pending { background: rgba(201,150,58,.18); color: #7a5a0a; }
.hmb-tday--owner   { background: rgba(155,143,196,.18);color: #4a3d80; }
.hmb-tday--blocked { background: rgba(255,116,108,.12); color: var(--t-unavailable); opacity: .7; }
.hmb-tday--past    { opacity: .28; }

/* ── CTA-Spalte rechts ───────────────────────────────────── */
.hmb-teaser__cta {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 16px;
	background: var(--t-ocean);
	min-width: 130px;
	text-align: center;
	flex-shrink: 0;
}

.hmb-teaser__hint {
	font-size: 10px;
	color: rgba(255,255,255,.8);
	line-height: 1.4;
}
.hmb-teaser__hint strong {
	display: block;
	color: #fff;
	font-size: 12px;
	margin-bottom: 2px;
}

.hmb-teaser__btn {
	display: inline-block;
	background: #fff;
	color: var(--t-ocean) !important;
	text-decoration: none !important;
	padding: 7px 14px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 700;
	font-family: inherit;
	letter-spacing: 0.01em;
	white-space: nowrap;
	transition: background 0.15s, color 0.15s;
	border: 2px solid rgba(255,255,255,.3);
}
.hmb-teaser__btn:hover {
	background: var(--t-ocean-l);
	color: #fff !important;
	border-color: transparent;
}

/* ── Responsive: unter 560px untereinander ───────────────── */
@media (max-width: 560px) {
	.hmb-teaser__body    { flex-direction: column; }
	.hmb-teaser__months  { flex-direction: column; padding: 10px 12px 6px; }
	.hmb-teaser__month + .hmb-teaser__month {
		border-left: none;
		border-top: 1px solid var(--t-dune);
		padding-left: 0;
		margin-left: 0;
		padding-top: 10px;
		margin-top: 6px;
	}
	.hmb-teaser__cta {
		flex-direction: row;
		justify-content: space-between;
		min-width: auto;
		padding: 10px 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hmb-teaser__btn { transition: none; }
}
