/* Fotobox Laubach – Buchungskalender */
.fblb {
	--fb-ink: var(--wp--preset--color--ink, #2A1D15);
	--fb-muted: var(--wp--preset--color--muted, #5E4A3B);
	--fb-accent: var(--wp--preset--color--accent, #E2A062);
	--fb-accent-dark: var(--wp--preset--color--accent-dark, #8C4E16);
	--fb-cream: var(--wp--preset--color--cream, #F6EFE4);
	--fb-sand: var(--wp--preset--color--sand, #EFE4D3);
	--fb-paper: var(--wp--preset--color--paper, #FFFCF7);
	--fb-line: var(--wp--preset--color--line, #E6D9C6);
	--fb-free: #3F7A4A;
	--fb-free-bg: #E4F0E2;
	color: var(--fb-ink);
	font-size: 1rem;
	line-height: 1.5;
	margin-top: 32px;
}
.fblb *, .fblb *::before, .fblb *::after { box-sizing: border-box; }
.fblb button { font: inherit; color: inherit; }

.fblb-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.fblb-main { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.fblb-step { background: var(--fb-paper); border: 1px solid var(--fb-line); border-radius: 22px; padding: 28px; }
.fblb-step-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.fblb-num {
	flex: 0 0 auto; width: 38px; height: 38px; border-radius: 999px; background: var(--fb-ink); color: var(--fb-paper);
	display: inline-flex; align-items: center; justify-content: center; font-weight: 700;
	font-family: var(--wp--preset--font-family--display, Georgia, serif);
}
.fblb .fblb-h { margin: 0; font-size: 1.5rem; line-height: 1.2; }
.fblb-note { font-size: .9375rem; color: var(--fb-muted); margin: 8px 0 0; }

/* Kalender */
.fblb-calnav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.fblb-month { font-family: var(--wp--preset--font-family--display, Georgia, serif); font-size: 1.35rem; font-weight: 600; }
.fblb-navbtn {
	width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--fb-line); background: var(--fb-cream);
	font-size: 1.5rem !important; line-height: 1; cursor: pointer;
}
.fblb-navbtn:hover:not(:disabled) { background: var(--fb-sand); }
.fblb-navbtn:disabled { opacity: .35; cursor: default; }
.fblb-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.fblb-dow { text-align: center; font-size: .8125rem; font-weight: 700; color: var(--fb-muted); padding: 4px 0; text-transform: uppercase; letter-spacing: .05em; }
.fblb-day {
	position: relative; height: 56px; border-radius: 12px; border: 2px solid transparent;
	background: var(--fb-cream); display: flex; align-items: center; justify-content: center; cursor: pointer;
	font-weight: 600; transition: transform .1s, background .15s, border-color .15s; padding: 0;
}
.fblb-day--empty { background: transparent; cursor: default; }
.fblb-day--free { background: var(--fb-free-bg); color: #24502C; }
.fblb-day--partial { background: #FBEBD6; color: var(--fb-accent-dark); }
.fblb-day--full { background: repeating-linear-gradient(135deg, #EDE4D8, #EDE4D8 5px, #E4D8C8 5px, #E4D8C8 10px); color: #A8988A; text-decoration: line-through; cursor: not-allowed; }
.fblb-day--past { background: transparent; color: #C4B6A6; cursor: default; }
.fblb-day--wait { background: var(--fb-cream); color: #B5A594; cursor: progress; }
.fblb-day--today { border-color: var(--fb-line); }
.fblb-day:not(:disabled):hover { transform: translateY(-1px); border-color: var(--fb-accent); }
.fblb-day.is-selected { background: var(--fb-ink) !important; color: var(--fb-paper) !important; border-color: var(--fb-ink); }
.fblb-dot { position: absolute; bottom: 6px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 99px; background: currentColor; }
.fblb-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; font-size: .875rem; color: var(--fb-muted); align-items: center; }
.fblb-leg { display: inline-flex; align-items: center; gap: 8px; }
.fblb-sw { display: inline-block; width: 16px; height: 16px; border-radius: 5px; }
.fblb-sw--free { background: var(--fb-free-bg); border: 1px solid #B9D6B4; }
.fblb-sw--partial { background: #FBEBD6; border: 1px solid #EBC89D; }
.fblb-sw--full { background: #E4D8C8; }
.fblb-loading { font-style: italic; }

/* Boxen */
.fblb-boxes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.fblb-box {
	display: flex; flex-direction: column; text-align: left; padding: 0; overflow: hidden; cursor: pointer;
	background: var(--fb-cream); border: 2px solid var(--fb-line); border-radius: 18px; transition: border-color .15s, transform .1s;
}
.fblb-box img { display: block; width: 100%; height: 150px; object-fit: cover; border-radius: 0; }
.fblb-box-body { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 14px; }
.fblb-box-state { font-size: .875rem; color: var(--fb-muted); }
.fblb-box:not(:disabled):hover { border-color: var(--fb-accent); transform: translateY(-1px); }
.fblb-box.is-selected { border-color: var(--fb-ink); box-shadow: 0 0 0 2px var(--fb-ink) inset; }
.fblb-box.is-selected .fblb-box-state { color: var(--fb-free); font-weight: 600; }
.fblb-box.is-taken { opacity: .5; cursor: not-allowed; }
.fblb-box.is-taken img { filter: grayscale(1); }

/* Pakete */
.fblb-pakete { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.fblb-paket {
	display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 18px 20px; cursor: pointer;
	background: var(--fb-cream); border: 2px solid var(--fb-line); border-radius: 18px;
}
.fblb-paket-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.fblb-paket-name { font-size: 1.0625rem; }
.fblb-paket-price { font-family: var(--wp--preset--font-family--display, Georgia, serif); font-size: 1.6rem; font-weight: 700; white-space: nowrap; }
.fblb-paket-desc { font-size: .9375rem; color: var(--fb-muted); }
.fblb-paket:hover { border-color: var(--fb-accent); }
.fblb-paket.is-selected { background: var(--fb-ink); color: var(--fb-paper); border-color: var(--fb-ink); }
.fblb-paket.is-selected .fblb-paket-desc { color: #E9DCC8; }
.fblb-paket.is-selected .fblb-paket-price { color: var(--fb-accent); }

/* Formular */
.fblb-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.fblb-field { display: flex; flex-direction: column; gap: 6px; }
.fblb-field--full { grid-column: 1 / -1; }
.fblb-label { font-weight: 600; font-size: .9375rem; }
.fblb-input {
	width: 100%; font: inherit; font-size: 1rem; color: var(--fb-ink); background: #fff;
	border: 1.5px solid var(--fb-line); border-radius: 12px; padding: 12px 14px; min-height: 48px;
}
textarea.fblb-input { resize: vertical; min-height: 110px; }
.fblb-input:focus { outline: none; border-color: var(--fb-accent-dark); box-shadow: 0 0 0 3px rgba(226, 160, 98, .3); }
.fblb-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.fblb-check { display: flex; gap: 12px; align-items: flex-start; margin: 20px 0 4px; font-size: .9375rem; color: var(--fb-muted); cursor: pointer; }
.fblb-check input { width: 22px; height: 22px; flex: 0 0 auto; margin-top: 1px; accent-color: var(--fb-ink); }
.fblb-check a { color: var(--fb-accent-dark); }
.fblb-submit {
	margin-top: 18px; width: 100%; border: 0; border-radius: 999px; cursor: pointer; padding: 16px 28px;
	background: var(--fb-accent); color: var(--fb-ink) !important; font-weight: 700 !important; font-size: 1.0625rem !important;
}
.fblb-submit:hover:not(:disabled) { background: #EAB37F; }
.fblb-submit:disabled { opacity: .6; cursor: progress; }
.fblb-msg { margin-top: 16px; padding: 14px 16px; border-radius: 12px; font-weight: 600; }
.fblb-msg--error { background: #FBE3DC; color: #8A2C14; }
.fblb-msg--warn { background: #FBEBD6; color: var(--fb-accent-dark); }
.fblb-msg a { color: inherit; }

/* Bezahlen */
.fblb-pay { margin-top: 20px; padding: 22px; border-radius: 18px; background: var(--fb-cream); border: 2px solid var(--fb-accent); }
.fblb .fblb-pay-title { margin: 0 0 6px; font-size: 1.3rem; }
.fblb-pay-text { margin: 0 0 16px; font-size: .9375rem; color: var(--fb-muted); }
.fblb-pp { max-width: 420px; }
.fblb-pay.is-busy { opacity: .55; pointer-events: none; }
.fblb-dl--pay { margin-top: 14px; font-size: .9375rem; }

/* Zusammenfassung */
.fblb-summary { position: sticky; top: 110px; }
.fblb-summary-inner { background: var(--fb-ink); color: #E9DCC8; border-radius: 22px; padding: 26px; }
.fblb .fblb-summary-title { color: var(--fb-paper); margin: 0 0 14px; font-size: 1.4rem; }
.fblb-dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; }
.fblb-dl dt { font-size: .875rem; text-transform: uppercase; letter-spacing: .06em; opacity: .75; padding-top: 2px; }
.fblb-dl dd { margin: 0; font-weight: 600; }
.fblb-dl dd.is-empty { font-weight: 400; opacity: .6; font-style: italic; }
.fblb-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid rgba(233, 220, 200, .25); margin-top: 18px; padding-top: 16px; }
.fblb-total strong { font-family: var(--wp--preset--font-family--display, Georgia, serif); font-size: 2.2rem; color: var(--fb-accent); }
.fblb-summary .fblb-note { color: #CDBBA3; }
.fblb-summary a { color: var(--fb-accent); font-weight: 700; }

/* Erfolg */
.fblb-success { background: var(--fb-paper); border: 1px solid var(--fb-line); border-radius: 22px; padding: 40px 32px; max-width: 46rem; }
.fblb-success-icon { width: 60px; height: 60px; border-radius: 999px; background: var(--fb-free-bg); color: var(--fb-free); display: flex; align-items: center; justify-content: center; font-size: 1.9rem; font-weight: 700; margin-bottom: 16px; }
.fblb-success .fblb-lead { font-size: 1.125rem; margin: 10px 0 18px; }
.fblb-success .fblb-dl { background: var(--fb-cream); border-radius: 14px; padding: 16px 18px; margin-bottom: 18px; }
.fblb-success .fblb-dl dt { color: var(--fb-muted); opacity: 1; }
.fblb-success a { color: var(--fb-accent-dark); font-weight: 700; }
.fblb-hinweis { background: var(--fb-cream, #F6EFE4); border-radius: 18px; padding: 20px 24px; }

/* Mobil */
@media (max-width: 960px) {
	.fblb-grid { grid-template-columns: 1fr; }
	.fblb-summary { position: static; }
}
@media (max-width: 640px) {
	.fblb-step { padding: 20px 16px; border-radius: 18px; }
	.fblb .fblb-h { font-size: 1.3rem; }
	.fblb-cal { gap: 4px; }
	.fblb-day { border-radius: 9px; font-size: .9375rem; height: 44px; }
	.fblb-boxes { grid-template-columns: 1fr; }
	.fblb-box { flex-direction: row; align-items: stretch; }
	.fblb-box img { width: 110px; height: 96px; flex: 0 0 110px; }
	.fblb-box-body { justify-content: center; }
	.fblb-pakete, .fblb-fields { grid-template-columns: 1fr; }
	.fblb-summary-inner { padding: 20px; }
}
