/* Ferienhäuser Lahnstein – Buchung & Verfügbarkeit */
.flb, .flb-grid {
	--flb-green: #8ab44c;
	--flb-green-dark: #6f9636;
	--flb-green-soft: #eef4e4;
	--flb-ink: #333338;
	--flb-text: #67615a;
	--flb-line: #e2e0da;
	--flb-busy: #ecebe7;
	--flb-busy-ink: #b3ada5;
	--flb-bg: #f7f6f2;
	color: var(--flb-text);
	text-align: left;
}
.flb { max-width: 1100px; margin: 0 auto; min-width: 0; width: 100%; box-sizing: border-box; }
.flb *, .flb-grid * { box-sizing: border-box; }
.flb-intro { text-align: center; margin: 0 0 22px; font-size: 17px; line-height: 1.6; }
.flb-widget { margin: 0 0 8px; }
.flb-widget be-widget { display: block; }

/* Kalender */
.flb-cal { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--flb-line); position: relative; }
.flb-cal-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; margin-bottom: 16px; }
.flb-cal-title { margin: 0 !important; font-size: 24px !important; color: var(--flb-ink); letter-spacing: .5px; text-transform: uppercase; }
.flb-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
.flb-legend span { display: inline-flex; align-items: center; gap: 7px; }
.flb-dot { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.flb-dot.is-free { background: var(--flb-green-soft); box-shadow: inset 0 0 0 1px #cfe0b4; }
.flb-dot.is-busy { background: var(--flb-busy); }
.flb-dot.is-sel { background: var(--flb-green); }
.flb-cal-nav { position: relative; height: 0; display: flex; justify-content: space-between; pointer-events: none; z-index: 2; }
.flb-cal-nav button { margin-top: 0; }
.flb-cal-nav button, .flb-grid-nav button {
	pointer-events: auto; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--flb-line); background: #fff;
	color: var(--flb-ink); font-size: 24px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
	transition: background .15s, border-color .15s, color .15s; padding: 0 0 3px;
}
.flb-cal-nav button:hover:not(:disabled), .flb-grid-nav button:hover:not(:disabled) { background: var(--flb-green); border-color: var(--flb-green); color: #fff; }
.flb-cal-nav button:disabled, .flb-grid-nav button:disabled { opacity: .35; cursor: default; }
.flb-months { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 48px; padding: 0 52px; min-height: 300px; }
.flb-month-name { text-align: center; font-weight: 600; color: var(--flb-ink); font-size: 18px; margin: 6px 0 14px; }
.flb-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.flb-wd { text-align: center; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--flb-text); padding-bottom: 4px; }
.flb-day {
	appearance: none; -webkit-appearance: none; border: 0; margin: 0; padding: 0; font: inherit; font-size: 15px;
	aspect-ratio: 1 / 1; min-height: 36px; border-radius: 4px; display: flex; align-items: center; justify-content: center;
	background: transparent; color: var(--flb-ink); cursor: pointer; position: relative; transition: background .12s, color .12s, transform .12s;
}
.flb-day.is-empty { visibility: hidden; }
.flb-day.is-past { color: #cfcac3; cursor: default; background: transparent; }
.flb-day.is-free { background: var(--flb-green-soft); }
.flb-day.is-free:hover:not(:disabled) { background: #dcebc6; }
.flb-day.is-busy { background: var(--flb-busy); color: var(--flb-busy-ink); text-decoration: line-through; cursor: default; }
.flb-day:disabled { cursor: default; }
.flb-day.is-possible { box-shadow: inset 0 0 0 2px var(--flb-green); color: var(--flb-ink); text-decoration: none; cursor: pointer; }
.flb-day.is-range { background: #cfe3ae !important; color: var(--flb-ink); text-decoration: none; }
.flb-day.is-sel { background: var(--flb-green) !important; color: #fff !important; font-weight: 700; text-decoration: none; }
.flb-day:focus-visible { outline: 2px solid var(--flb-ink); outline-offset: 2px; }
.flb-loading { grid-column: 1 / -1; text-align: center; padding: 60px 10px; color: var(--flb-text); font-style: italic; }
.flb-selection { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; margin-top: 22px; min-height: 48px; }
.flb-hint { margin: 0 !important; font-size: 15px; color: var(--flb-ink); text-align: center; }
.flb-book {
	display: inline-block; background: var(--flb-green); color: #fff !important; padding: 13px 34px; border-radius: 4px;
	font-size: 16px; text-decoration: none !important; letter-spacing: .5px; text-transform: uppercase; transition: background .15s;
}
.flb-book:hover { background: var(--flb-green-dark); }
.flb-book[hidden] { display: none; }
.flb-contact { text-align: center; font-size: 15px; margin: 26px 0 0 !important; }
.flb-contact a { color: var(--flb-green-dark) !important; font-weight: 600; white-space: nowrap; }

/* Belegungsübersicht */
.flb-grid { max-width: 1200px; margin: 0 auto; }
.flb-grid-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.flb-grid-nav { display: flex; align-items: center; gap: 14px; }
.flb-grid-range { font-weight: 600; color: var(--flb-ink); min-width: 190px; text-align: center; }
.flb-grid-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--flb-line); border-radius: 6px; background: #fff; }
.flb-table { border-collapse: separate; border-spacing: 0; width: 100%; margin: 0 !important; font-size: 13px; table-layout: auto; }
.flb-table th, .flb-table td { border: 0 !important; padding: 0 !important; background: transparent; }
.flb-table .flb-th-name, .flb-table .flb-td-name {
	position: sticky; left: 0; z-index: 1; background: #fff !important; text-align: left; white-space: nowrap;
	padding: 6px 14px !important; min-width: 190px; box-shadow: 1px 0 0 var(--flb-line); font-weight: 500;
}
.flb-table .flb-th-name { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--flb-text); vertical-align: bottom; }
.flb-table .flb-td-name { color: var(--flb-ink); font-size: 14px; border-top: 1px solid #f0eee9 !important; }
.flb-td-name a { color: var(--flb-ink) !important; text-decoration: none; }
.flb-td-name a:hover { color: var(--flb-green-dark) !important; text-decoration: underline; }
.flb-table .flb-th-day { text-align: center; padding: 6px 0 !important; min-width: 28px; color: var(--flb-text); font-weight: 400; position: relative; line-height: 1.15; }
.flb-th-day.is-we { background: #f6f5f1 !important; }
.flb-th-day.is-m1, .flb-cell.is-m1 { box-shadow: inset 2px 0 0 #d6d2ca; }
.flb-th-wd { display: block; font-size: 10px; text-transform: uppercase; }
.flb-th-d { display: block; font-size: 13px; color: var(--flb-ink); font-weight: 600; }
.flb-th-m { display: block; font-size: 10px; color: var(--flb-green-dark); font-weight: 700; text-transform: uppercase; }
.flb-cell { height: 34px; border-top: 1px solid #f0eee9 !important; }
.flb-cell.is-we { background: #fbfaf8 !important; }
.flb-cell > a, .flb-cell > span { display: block; height: 24px; margin: 0 1px; border-radius: 3px; }
.flb-cell > a.is-free { background: var(--flb-green-soft); box-shadow: inset 0 0 0 1px #d4e5b9; transition: background .12s; }
.flb-cell > a.is-free:hover { background: var(--flb-green); }
.flb-cell > span.is-busy { background: var(--flb-busy); }
.flb-cell.is-loading::after { content: ''; display: block; height: 24px; margin: 0 1px; border-radius: 3px; background: linear-gradient(90deg, #f3f2ee, #fafaf8, #f3f2ee); background-size: 200% 100%; animation: flbShimmer 1.2s infinite; }
.flb-cell.is-na::after { content: '–'; display: block; text-align: center; color: #ccc; }
.flb-table tbody td.flb-loading { padding: 40px !important; }
.flb-grid-hint { font-size: 14px; margin: 12px 0 0 !important; text-align: center; }
@keyframes flbShimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

@media (max-width: 700px) {
	.flb-intro { font-size: 15px; }
	.flb-months { grid-template-columns: 1fr; padding: 0; min-height: 260px; gap: 0; }
	.flb-cal-nav button { width: 34px; height: 34px; font-size: 22px; }
	.flb-month-name { margin: 4px 0 14px; line-height: 34px; }
	.flb-days { gap: 3px; }
	.flb-cal { margin-top: 24px; padding-top: 22px; }
	.flb-cal-head { justify-content: center; text-align: center; }
	.flb-day { font-size: 13px; min-height: 0; }
	.flb-table .flb-th-name, .flb-table .flb-td-name { min-width: 128px; max-width: 128px; white-space: normal; font-size: 12px; padding: 4px 8px !important; line-height: 1.2; }
}
.flb-month { width: 100%; max-width: 400px; margin: 0 auto; }
