/*
Theme Name: Fotobox Laubach
Theme URI: https://fotoboxlaubach.com
Author: Fotobox Laubach
Description: Eigenes Block-Theme für Fotobox Laubach – warmer Vintage-Look, Box-Seiten, Pakete mit Festpreis.
Version: 1.0.6
Requires at least: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fotobox-laubach
*/

/* ---------- Grundlagen ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
img { max-width: 100%; height: auto; }
.wp-block-image img { border-radius: 20px; display: block; }

/* ---------- Kopfbereich ---------- */
.fbl-header {
	position: sticky; top: 0; z-index: 50;
	background: var(--wp--preset--color--paper);
	border-bottom: 1px solid var(--wp--preset--color--line);
	padding: 10px 24px !important;
	gap: 12px 28px;
}
.admin-bar .fbl-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .fbl-header { top: 0; position: relative; } }
.fbl-brand-wrap { gap: 12px !important; }
.fbl-brand-wrap .wp-block-image img { border-radius: 0; width: 60px; height: 60px; }
.fbl-brand { font-family: var(--wp--preset--font-family--display); font-size: 1.375rem; font-weight: 600; margin: 0; }
.fbl-brand a { color: var(--wp--preset--color--ink); text-decoration: none; }
.fbl-nav { font-weight: 600; }
.fbl-nav a { color: var(--wp--preset--color--ink) !important; text-decoration: none; }
.fbl-nav a:hover { color: var(--wp--preset--color--accent-dark) !important; }

/* ---------- Abschnitte ---------- */
.fbl-section { padding-top: clamp(56px, 8vw, 96px) !important; padding-bottom: clamp(56px, 8vw, 96px) !important; }
.fbl-section--dark { background: var(--wp--preset--color--ink); color: #E9DCC8; }
.fbl-section--dark h1, .fbl-section--dark h2, .fbl-section--dark h3 { color: var(--wp--preset--color--paper); }
.fbl-section--dark a:not(.wp-element-button) { color: var(--wp--preset--color--accent); }
.fbl-section--sand { background: var(--wp--preset--color--sand); }
.fbl-section--paper { background: var(--wp--preset--color--paper); }
.fbl-intro { max-width: 46rem; }
.fbl-lead { font-size: 1.125rem !important; line-height: 1.6 !important; color: var(--wp--preset--color--muted); }
.fbl-section--dark .fbl-lead { color: #E9DCC8; }
.fbl-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; font-size: .875rem; color: var(--wp--preset--color--accent-dark); margin-bottom: 0; }
.fbl-hero-title em { color: var(--wp--preset--color--accent-dark); }
.fbl-muted { color: var(--wp--preset--color--muted); }
.fbl-small { font-size: .9375rem; color: var(--wp--preset--color--muted); }
.fbl-tagline { font-family: var(--wp--preset--font-family--display); font-style: italic; font-size: 1.6rem; color: var(--wp--preset--color--accent-dark); margin-top: 0; }

/* ---------- Bilder ---------- */
.fbl-hero-img img { width: 100%; height: clamp(320px, 42vw, 540px); object-fit: cover; border-radius: 24px; }
.fbl-box-img img { width: 100%; height: 360px; object-fit: cover; border-radius: 20px 20px 0 0; }
.fbl-detail-img img { width: 100%; height: clamp(380px, 50vw, 640px); object-fit: cover; border-radius: 24px; }
.fbl-gallery-img img { width: 100%; height: 260px; object-fit: cover; border-radius: 16px; }
.fbl-props-img img { width: 100%; height: 420px; object-fit: cover; border-radius: 24px; }

/* ---------- Karten ---------- */
.fbl-card { background: var(--wp--preset--color--paper); border-radius: 22px; padding: 28px !important; }
.fbl-card--border { border: 2px solid var(--wp--preset--color--line); }
.fbl-card--dark { background: var(--wp--preset--color--ink); color: #E9DCC8; position: relative; }
.fbl-card--dark h3, .fbl-card--dark .fbl-price strong { color: var(--wp--preset--color--paper); }
.fbl-card--flush { padding: 0 !important; overflow: hidden; display: flex; flex-direction: column; }
.fbl-card--flush > *:not(.wp-block-image) { margin-left: 24px; margin-right: 24px; }
.fbl-card--flush > *:last-child { margin-bottom: 24px; }
.fbl-card--flush .wp-block-image { margin: 0 !important; }
.fbl-feature { background: var(--wp--preset--color--cream); border-radius: 16px; padding: 20px !important; }
.fbl-feature h3 { font-family: var(--wp--preset--font-family--body); font-size: 1.125rem; font-weight: 700; margin: 0 0 4px; }
.fbl-feature p { margin: 0; color: var(--wp--preset--color--muted); }
.fbl-badge { display: inline-block; background: var(--wp--preset--color--accent); color: var(--wp--preset--color--ink); font-weight: 700; font-size: .875rem; padding: 4px 14px; border-radius: 999px; margin: 0; }
.fbl-price { margin: 4px 0; }
.fbl-price strong { font-family: var(--wp--preset--font-family--display); font-size: 3.25rem; line-height: 1; margin-right: 6px; }
.fbl-price-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.fbl-price-box p { margin: 0; }

/* ---------- Listen ---------- */
.fbl-checklist { list-style: none; padding-left: 0 !important; }
.fbl-checklist li { position: relative; padding-left: 32px; margin-bottom: 10px; }
.fbl-checklist li::before {
	content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px;
	background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238C4E16' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.fbl-card--dark .fbl-checklist li::before, .fbl-section--dark .fbl-checklist li::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E2A062' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.fbl-checklist--inline { display: flex; flex-wrap: wrap; gap: 6px 24px; font-weight: 600; }
.fbl-checklist--inline li { margin-bottom: 0; }
.fbl-checklist--cols { columns: 2 280px; column-gap: 40px; }
.fbl-checklist--cols li { break-inside: avoid; }
.fbl-chips { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 10px; }
.fbl-chips li { border: 1px solid #8A715C; border-radius: 999px; padding: 6px 16px; font-weight: 600; }

/* ---------- Ablauf ---------- */
.fbl-step-num {
	width: 48px; height: 48px; border-radius: 999px; background: var(--wp--preset--color--ink); color: var(--wp--preset--color--paper);
	display: flex; align-items: center; justify-content: center; font-family: var(--wp--preset--font-family--display); font-size: 1.375rem; font-weight: 700; margin: 0;
}
.fbl-step h3 { font-family: var(--wp--preset--font-family--body); font-size: 1.3rem; font-weight: 700; }

/* ---------- Buttons ---------- */
.wp-block-button.is-style-outline .wp-block-button__link { border: 2px solid currentColor; background: transparent; color: var(--wp--preset--color--ink); padding: 12px 24px; }
.fbl-section--dark .wp-block-button.is-style-outline .wp-block-button__link { color: var(--wp--preset--color--paper); }
.fbl-btn-accent .wp-block-button__link { background: var(--wp--preset--color--accent); color: var(--wp--preset--color--ink); }
.fbl-btn-accent .wp-block-button__link:hover { background: #EAB37F; color: var(--wp--preset--color--ink); }
.fbl-header .wp-block-button__link { padding: 11px 20px; font-size: 1rem; }

/* ---------- Zitate, FAQ, Platzhalter ---------- */
.fbl-quote { background: var(--wp--preset--color--cream); border-radius: 20px; padding: 28px !important; border: 0 !important; margin: 0; }
.fbl-quote p { font-family: var(--wp--preset--font-family--display); font-style: italic; font-size: 1.25rem; line-height: 1.45; }
.fbl-quote cite { font-style: normal; font-weight: 600; color: var(--wp--preset--color--muted); }
.fbl-faq .wp-block-details { background: var(--wp--preset--color--paper); border-radius: 16px; padding: 18px 24px; }
.fbl-faq summary { font-weight: 700; font-size: 1.15rem; cursor: pointer; }
.fbl-faq .wp-block-details p { color: var(--wp--preset--color--muted); margin-top: 10px; }
.fbl-placeholder {
	border: 2px dashed #CDBBA3; background: var(--wp--preset--color--sand); border-radius: 18px; min-height: 240px;
	display: flex; align-items: center; justify-content: center; text-align: center; font-weight: 600; color: var(--wp--preset--color--muted);
}
.fbl-section--dark .fbl-placeholder { background: #3B2A1F; border-color: #8A715C; color: #E9DCC8; aspect-ratio: 16 / 9; }

/* ---------- Fußbereich ---------- */
.fbl-footer { font-size: .9375rem; color: var(--wp--preset--color--muted); padding-top: 40px !important; padding-bottom: 40px !important; }
.fbl-footer .wp-block-image img { border-radius: 0; width: 56px; height: 56px; }
.fbl-footer p { margin: 0; }

/* ---------- Buchung (Platzhalter bis zum Kalender) ---------- */
.fbl-buchung-hinweis { max-width: 46rem; }

/* ---------- 1.0.2: Bilder füllen ihre Karten, Fließtext kompakter ---------- */
body { font-size: 1rem; line-height: 1.6; }
.fbl-card--flush { align-items: stretch; }
.fbl-card--flush .wp-block-image,
.fbl-card--flush .wp-block-image a,
.fbl-hero-img, .fbl-detail-img, .fbl-props-img, .fbl-gallery-img { display: block; width: 100%; }
.fbl-box-img img, .fbl-hero-img img, .fbl-detail-img img, .fbl-props-img img, .fbl-gallery-img img { width: 100% !important; max-width: 100%; }
.fbl-tagline { font-size: 1.4rem; }
.fbl-feature p, .fbl-muted { font-size: 1rem; }

/* ---------- 1.0.3: Rechtstexte ---------- */
.page-template-page-text .wp-block-post-content h2 { font-size: 1.4rem; margin-top: 2.2em; margin-bottom: .4em; }
.page-template-page-text .wp-block-post-content p, .page-template-page-text .wp-block-post-content li { font-size: 1rem; line-height: 1.65; }
.page-template-page-text .wp-block-post-content { overflow-wrap: anywhere; }

/* ---------- 1.0.5: Überschriften in Fließtext-Seiten (z. B. Rechtstexte) ---------- */
.wp-block-post-content > h2.wp-block-heading { font-size: clamp(1.3rem, 2.2vw, 1.6rem) !important; line-height: 1.25; margin-top: 2.2em; margin-bottom: .5em; }
.wp-block-post-content > h3.wp-block-heading { font-size: 1.2rem !important; line-height: 1.3; margin-top: 1.6em; }
.wp-block-post-content > h2.wp-block-heading:first-child { margin-top: .5em; }
