/* generated logo: size it + hide the text site-title when a logo is present */
.zf-logo { display: flex; align-items: center; }
.zf-logo svg { height: 56px; width: auto; max-width: 300px; display: block; }
.zf-header:has(.zf-logo svg) .zf-sitetitle { display: none; }
/* screenshot/print mode (nospin): bigger logo so it reads on the postcard.
   Sized large on purpose — the 1280px-wide shot is scaled to ~1/3 inside the
   postcard browser mockup, so the logo needs to be ~240px here to read in print. */
.zf-shot .zf-logo svg { height: 240px; max-width: 1200px; }
/* uploaded/custom image logo (custom-logo img) — scale it up for the postcard like the SVG */
.zf-shot .zf-header .wp-block-site-logo img, .zf-shot .zf-header .zf-logo img { max-height: 240px; height: 240px; width: auto; max-width: 1200px; }
.zf-shot .zf-header .wp-block-group { min-height: 280px; }
/* postcard shot: drop the menu + CTA — at shot width they get clipped/unreadable,
   and the card only needs the logo + hero. (Live browsing keeps them.) */
.zf-shot .zf-header .wp-block-navigation,
.zf-shot .zf-header .wp-block-navigation__responsive-container-open,
.zf-shot .zf-header .zf-cta,
.zf-shot .zf-header .wp-block-button { display: none !important; }

/* zimplifi Design spinner — floating panel */
.zf-spin { position: fixed; right: 18px; bottom: 18px; z-index: 9999; font-family: Inter, system-ui, sans-serif; }
/* Toggle = the demo's primary action → matches the bright CTA orange (#ea580c,
   same as .zf-proposal-cta / .zf-claim-cta), NOT the muted site accent (#c0793a),
   so it pops out as "do this". Testers were missing it when it blended in. */
.zf-spin-toggle {
	background: #ea580c; color: #fff; border: 0; border-radius: 999px;
	padding: .9rem 1.45rem; font-weight: 800; font-size: 1.02rem; cursor: pointer;
	box-shadow: 0 10px 30px #ea580c66, 0 4px 12px #0004;
	animation: zf-attn 1s ease-in-out 6;
}
.zf-spin-toggle:hover { background: #c2410c; }
@keyframes zf-attn {
	0%, 100% { transform: scale(1); }
	50%      { transform: scale(1.07); box-shadow: 0 12px 34px #ea580c99, 0 4px 12px #0004; }
}

/* bouncing arrow hint that points at the toggle (bounces 5×, then rests until opened) */
.zf-spin-hint { position: absolute; right: 10px; bottom: 64px; display: flex; flex-direction: column; align-items: center; pointer-events: none; animation: zf-bounce .8s ease-in-out 5; }
.zf-spin-hint b { background: #1f2a20; color: #fff; font-size: .82rem; font-weight: 700; padding: .4rem .7rem; border-radius: .55rem; white-space: nowrap; box-shadow: 0 6px 20px #0004; }
.zf-spin-hint i { width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 10px solid #1f2a20; margin-top: -1px; }
.zf-spin-hint.zf-gone { display: none; }
@keyframes zf-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(9px); } }
.zf-spin-panel {
	position: absolute; right: 0; bottom: 56px; width: 280px;
	background: #fff; border: 1px solid #0001; border-radius: 14px;
	box-shadow: 0 16px 50px #0003; padding: .4rem 1.1rem 1rem;
	max-height: 78vh; overflow-y: auto; overscroll-behavior: contain;
}
/* collapsible sections */
.zf-grp + .zf-grp, .zf-grp + .zf-spin-save { border-top: 1px solid #0000000f; }
.zf-grp-head { width: 100%; display: flex; align-items: center; justify-content: space-between;
	background: none; border: 0; cursor: pointer; padding: .6rem .1rem;
	font-weight: 700; font-size: .85rem; color: #1f2a20; }
.zf-grp-x { font-size: .7rem; opacity: .55; transition: transform .15s; }
.zf-grp:not(.zf-open) .zf-grp-body { display: none; }
.zf-grp:not(.zf-open) .zf-grp-x { transform: rotate(-90deg); }
.zf-grp-body { padding-bottom: .3rem; }
/* One-time attention "peek": the panel slides open on load, holds, then closes,
   so the lead sees the design tool exists. Driven by spinner.js (adds .zf-peek,
   removes it / hides on animationend, or cancels if the lead clicks first). */
@keyframes zf-peek {
	0%   { opacity: 0; transform: translateY(14px) scale(.96); }
	10%  { opacity: 1; transform: translateY(0)   scale(1);   }
	82%  { opacity: 1; transform: translateY(0)   scale(1);   }
	100% { opacity: 0; transform: translateY(14px) scale(.96); }
}
.zf-spin-panel.zf-peek { animation: zf-peek 2.8s ease-in-out forwards; transform-origin: bottom right; }
.zf-spin-h { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #94a3b8; margin: .2rem 0 .5rem; }
.zf-spin-h + * { margin-bottom: .9rem; }
.zf-spin-row { display: flex; flex-wrap: wrap; gap: .4rem; }
/* Uniform 3-per-row tiles (≈30% each, minus the row gap) so swatch rows line up
   evenly regardless of label length. Centered; reduced side padding so longer
   labels (Terrakotta, Blattgrün, …) still fit on one line. */
.zf-swatch { box-sizing: border-box; flex: 0 0 calc(33.333% - .27rem); text-align: center; border: 0; border-radius: .5rem; padding: .45rem .35rem; font-size: .8rem; font-weight: 600; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zf-swatch.zf-rnd { background: #eef2f5; color: #334155; }
.zf-swatch.zf-lay, .zf-swatch.zf-tpl { background: #eef2f5; color: #334155; }
/* Branche: two per row, the trade names are long */
.zf-swatch.zf-trade { flex: 0 0 calc(50% - .2rem); background: #eef2f5; color: #1f2a20; font-size: .76rem; }
.zf-swatch.zf-font, .zf-swatch.zf-lfont, .zf-swatch.zf-llay, .zf-swatch.zf-motion, .zf-swatch.zf-snapbtn { background: #eef2f5; color: #1f2a20; }
/* logo mark grid: smaller square swatches, 5 per row */
.zf-swatch.zf-mark { flex: 0 0 calc(20% - .32rem); padding: .35rem; line-height: 0; background: #eef2f5; color: #334155; }
.zf-swatch.zf-mark svg { display: inline-block; vertical-align: middle; }
.zf-llay { font-size: .72rem !important; }
.zf-logoacts { display: flex; gap: .4rem; margin-top: .45rem; }
.zf-logoacts .zf-spin-btn { width: auto; flex: 1; text-align: center; margin: 0; }
.zf-logo-up { display: inline-flex; align-items: center; justify-content: center; }
.zf-swatch.zf-active { outline: 2.5px solid #1f2a20; outline-offset: 1px; }
.zf-spin-btn, .zf-spin-save {
	width: 100%; border: 1px solid #0002; background: #f8fafc; color: #1f2a20;
	border-radius: .6rem; padding: .55rem .8rem; font-weight: 600; font-size: .85rem; cursor: pointer;
}
.zf-spin-save { margin-top: .9rem; border: 0; background: #c0793a; color: #fff; }
.zf-spin-save:disabled { opacity: .7; }
