/* HF-Gestalter */
.hfg-box{border:1px solid #d9d9d9;border-radius:4px;margin:0 0 16px;padding:14px 16px;background:#fafafa}
.hfg-box.hfg-fehlt{border-color:#c0392b;background:#fdf3f2}
.hfg-box-kopf{font-weight:700;margin-bottom:6px}
.hfg-box-text{margin:0 0 10px;font-size:.95em}
.hfg-box-vorschau{margin:0 0 10px}
.hfg-box-vorschau img{display:block;width:100%;height:auto;border:1px solid #ddd;background:#fff}
.hfg-box-knoepfe{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px}
.hfg-box-knoepfe .button{margin:0}
.hfg-link{background:none;border:0;padding:0;margin:0;color:#03a696;text-decoration:underline;cursor:pointer;font:inherit;min-height:0;line-height:1.4;text-transform:none;letter-spacing:0}
.hfg-link:disabled{color:#aaa;cursor:default;text-decoration:none}
.hfg-link.aktiv{font-weight:700;text-decoration:none;color:#333}
.hfg-rot,.hfg-link.hfg-rot{color:#c0392b}

html.hfg-offen,html.hfg-offen body{overflow:hidden}
.hfg-modal{position:fixed;inset:0;z-index:100000;background:rgba(0,0,0,.55);display:flex;align-items:flex-start;justify-content:center;padding:4vh 16px 16px}
.hfg-modal[hidden]{display:none}
.hfg-fenster{background:#fff;width:100%;max-width:1400px;max-height:100%;display:flex;flex-direction:column;border-radius:4px;box-shadow:0 10px 40px rgba(0,0,0,.3)}
.hfg-kopf{display:flex;align-items:center;gap:16px;padding:12px 16px;border-bottom:1px solid #e5e5e5;flex-wrap:wrap}
.hfg-kopf h2{font-size:1.15em;margin:0;line-height:1.3}
.hfg-mass{font-size:.85em;color:#666}
.hfg-tabs{display:flex;gap:4px;margin-left:auto}
.hfg-tabknopf{background:#f1f1f1;border:1px solid #ddd;border-radius:3px;padding:6px 12px;cursor:pointer;font:inherit;font-size:.9em;margin:0;min-height:0;line-height:1.3;text-transform:none;letter-spacing:0;color:#333}
.hfg-tabknopf.aktiv{background:#03a696;border-color:#03a696;color:#fff}
.hfg-zu{background:none;border:0;font-size:28px;line-height:1;cursor:pointer;padding:0 4px;margin:0;color:#555;min-height:0}
.hfg-rumpf{padding:12px 16px;overflow:auto;flex:1}
.hfg-werkzeuge{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin-bottom:12px}
.hfg-knopf.button{margin:0}
.hfg-hg{display:inline-flex;align-items:center;gap:6px;font-size:.9em}
.hfg-hg input[type=color],.hfg-ezeile input[type=color]{width:38px;height:30px;padding:0;border:1px solid #ccc;margin:0;cursor:pointer;background:#fff}
.hfg-zoom{margin-left:auto;display:inline-flex;gap:4px}
.hfg-zoomknopf{background:#f1f1f1;border:1px solid #ddd;border-radius:3px;min-width:34px;height:30px;padding:0 8px;cursor:pointer;font:inherit;margin:0;line-height:1;min-height:0;color:#333}
.hfg-buehne{overflow-x:auto;overflow-y:hidden;background:#e9ecef;padding:24px 0 10px;border-radius:3px;-webkit-overflow-scrolling:touch}
.hfg-buehne-innen{position:relative;margin:0 auto;width:max-content}
.hfg-felder{position:absolute;left:0;top:-20px;height:18px}
.hfg-feld{position:absolute;top:0;font-size:11px;line-height:18px;color:#555;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hfg-feld-klebe{color:#888}
.hfg-feld-eng{font-size:9px}
.hfg-buehne canvas{box-shadow:0 1px 4px rgba(0,0,0,.2)}
.hfg-legende{font-size:12px;color:#666;margin:8px 0 0}
.hfg-legende span{display:inline-block;width:18px;height:0;vertical-align:middle;margin:0 4px 0 8px}
.hfg-legende span:first-child{margin-left:0}
.hfg-l-schnitt{border-top:2px solid #e6007e}
.hfg-l-kante{border-top:1px dashed #0a9bb5}
.hfg-l-sicher{border-top:1px dashed rgba(3,166,150,.7)}
.hfg-eigenschaften{margin-top:12px;padding:10px 12px;background:#f6f8f8;border-radius:3px}
.hfg-eigenschaften[hidden],.hfg-ezeile[hidden]{display:none}
.hfg-ezeile{display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px 16px}
.hfg-ezeile+.hfg-ezeile{margin-top:10px}
.hfg-ezeile label{display:flex;flex-direction:column;font-size:12px;color:#555;gap:2px;margin:0}
.hfg-ezeile input[type=text]{min-width:220px;margin:0;height:34px}
.hfg-ezeile select{margin:0;height:34px;min-width:200px}
.hfg-ezeile input[type=number]{width:80px;margin:0;height:34px}
.hfg-dpi{font-size:13px}
.hfg-dpi.gut{color:#1e7e34}
.hfg-dpi.mittel{color:#b8860b}
.hfg-dpi.schlecht{color:#c0392b;font-weight:700}
.hfg-tipp{font-size:12px;color:#777;margin:10px 0 0}
.hfg-meldungen ul{margin:12px 0 8px;padding:10px 12px 10px 28px;background:#fff8e5;border:1px solid #f0d58c;border-radius:3px;font-size:.9em}
.hfg-meldungen li{margin:2px 0}
.hfg-service p{max-width:760px}
.hfg-dateiliste{margin:10px 0;padding-left:20px;font-size:.9em}
.hfg-klein{font-size:12px;color:#777}
.hfg-block{display:block;margin-top:12px;max-width:760px}
.hfg-block textarea{width:100%;margin-top:4px}
.hfg-fuss{display:flex;align-items:center;gap:10px;padding:12px 16px;border-top:1px solid #e5e5e5}
.hfg-status{margin-right:auto;font-size:.9em;color:#555}
.hfg-fuss .button{margin:0}
@media (max-width:640px){
	.hfg-modal{padding:0}
	.hfg-fenster{height:100%;border-radius:0}
	.hfg-tabs{margin-left:0;width:100%}
	.hfg-tabknopf{flex:1}
	.hfg-zu{position:absolute;right:10px;top:8px}
	.hfg-kopf{position:relative;padding-right:44px}
	.hfg-zoom{margin-left:0}
	.hfg-ezeile input[type=text],.hfg-ezeile select{min-width:0;width:100%}
	.hfg-ezeile label{flex:1 1 140px}
}

/* Version 0.2: Verlauf, Aufteilungen, Transparentpapier, Logo-Bibliothek */
.hfg-trenner{display:inline-block;width:8px}
.hfg-zoomknopf:disabled{opacity:.35;cursor:default}
.hfg-zoomknopf[aria-label="Rückgängig"],.hfg-zoomknopf[aria-label="Wiederholen"]{font-size:18px;font-weight:700}
.hfg-knopf-hell.button{background:#fff;color:#333;border:1px solid #bbb}
.hfg-aufteilung{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;margin:0 0 10px}
.hfg-auft{display:inline-flex;align-items:center;gap:6px;background:#fff;border:1px solid #d5d5d5;border-radius:3px;padding:4px 8px;cursor:pointer;font:inherit;font-size:12px;color:#444;margin:0;min-height:0;line-height:1.3;text-transform:none;letter-spacing:0}
.hfg-auft:hover{border-color:#03a696}
.hfg-auft.aktiv{border-color:#03a696;box-shadow:0 0 0 1px #03a696;color:#222}
.hfg-schachtel{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;margin:0 0 10px}
.hfg-schachtel[hidden],.hfg-logoliste[hidden]{display:none}
.hfg-sw{width:26px;height:26px;border-radius:50%;border:1px solid rgba(0,0,0,.2);padding:0;margin:0;cursor:pointer;min-height:0}
.hfg-sw[aria-pressed="true"]{box-shadow:0 0 0 2px #fff,0 0 0 4px #03a696}
.hfg-logoliste{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px;padding:10px;background:#f6f8f8;border-radius:3px}
.hfg-logo-wahl{width:84px;height:56px;background:#fff;border:1px solid #ddd;border-radius:3px;padding:4px;margin:0;cursor:pointer;display:flex;align-items:center;justify-content:center;min-height:0}
.hfg-logo-wahl:hover{border-color:#03a696}
.hfg-logo-wahl img{max-width:100%;max-height:100%;object-fit:contain}
.hfg-meldungen .button{margin:0 0 8px}

/* Kundenkonto: Meine Gestaltungen */
.hfg-konto-intro{color:#555}
.hfg-karte{display:flex;gap:16px;align-items:flex-start;padding:16px 0;border-top:1px solid #e5e5e5}
.hfg-karte-bild{flex:0 0 260px;max-width:40%;background:#f4f4f4;border:1px solid #e5e5e5;display:flex;align-items:center;justify-content:center;min-height:60px}
.hfg-karte-bild img{display:block;width:100%;height:auto}
.hfg-karte-bild span{font-size:12px;color:#777;padding:12px}
.hfg-karte-text{flex:1;min-width:0}
.hfg-karte-kopf{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}
.hfg-karte-detail{font-size:13px;color:#666;margin:4px 0 10px}
.hfg-karte-aktionen{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px}
.hfg-karte-aktionen form{margin:0;display:inline-flex;align-items:center;gap:6px}
.hfg-karte-aktionen input[type=number]{width:80px;margin:0;height:36px}
.hfg-karte-aktionen .button{margin:0}
.hfg-status-marke{font-size:11px;line-height:1;padding:4px 8px;border-radius:10px;background:#eee;color:#444;white-space:nowrap}
.hfg-st-offen{background:#fff3cd;color:#7a5b00}
.hfg-st-frei,.hfg-st-geliefert{background:#e3f4f1;color:#03735f}
.hfg-st-service{background:#e8eef7;color:#2c4a73}
.hfg-st-storniert{background:#f8e1e1;color:#8a1f1f}
@media (max-width:640px){.hfg-karte{flex-direction:column}.hfg-karte-bild{flex:none;max-width:100%;width:100%}}
.hfg-modal [hidden],.hfg-box [hidden]{display:none!important}

/* Version 0.3: Adventskalender */
.hfg-l-perfo{border-top:1px solid #1e9e5a}
.hfg-motivliste{gap:10px}
.hfg-motiv-wahl{width:132px;height:auto;flex-direction:column;gap:4px;padding:4px}
.hfg-motiv-wahl img{width:100%;height:78px;object-fit:cover;max-height:none}
.hfg-motiv-wahl span{font-size:11px;line-height:1.2;color:#444;text-align:center}
.hfg-zahlenleiste select{height:30px;margin:0;width:auto;min-width:170px;max-width:220px;font-size:13px;flex:0 0 auto}
.hfg-zahlenleiste input[type=color]{width:34px;height:28px;padding:0;border:1px solid #ccc;margin:0;cursor:pointer;background:#fff}
.hfg-kontur{display:inline-flex;align-items:center;gap:6px;margin:0 0 0 6px}.hfg-kontur input[type=checkbox]{margin:0}.hfg-kontur input[type=color]:disabled{opacity:.35}

/* Version 0.4.3: Spalten-Layout – auf dem Laptop alles ohne Scrollen erreichbar */
.hfg-zoom{display:flex;justify-content:flex-end;gap:4px;margin:0 0 8px}
.hfg-eleer{font-size:13px;color:#777;margin:0 0 10px}
.hfg-eleer[hidden]{display:none}
@media (min-width:1000px) and (min-height:560px){
	.hfg-modal{padding:12px}
	.hfg-fenster{height:100%;max-width:1600px}
	.hfg-kopf{padding:10px 16px}
	.hfg-rumpf{display:flex;flex-direction:column;overflow:hidden;padding:0;min-height:0}
	.hfg-rumpf>.hfg-service{overflow:auto;padding:16px}
	.hfg-rumpf>.hfg-meldungen{padding:0 16px}
	.hfg-selbst{display:grid;grid-template-columns:250px minmax(0,1fr) 290px;flex:1;min-height:0}
	.hfg-selbst[hidden]{display:none}
	.hfg-links,.hfg-rechts{overflow-y:auto;padding:14px;min-height:0}
	.hfg-links{border-right:1px solid #e5e5e5;background:#fafafa}
	.hfg-rechts{border-left:1px solid #e5e5e5;background:#fafafa}
	.hfg-mitte{display:flex;flex-direction:column;min-width:0;min-height:0;padding:10px 14px}
	.hfg-mitte .hfg-zoom{margin:0 0 8px}
	.hfg-mitte .hfg-buehne{flex:1;min-height:0;overflow:auto;display:flex;padding:28px 10px 10px}
	.hfg-mitte .hfg-buehne-innen{margin:auto}
	.hfg-mitte .hfg-legende{margin:6px 0 0;font-size:11px;line-height:1.5}
	/* Werkzeuge untereinander */
	.hfg-links .hfg-werkzeuge{flex-direction:column;align-items:stretch;gap:8px;margin:0 0 14px}
	.hfg-links .hfg-werkzeuge .button{width:100%;text-align:center;justify-content:center}
	.hfg-links .hfg-hg{margin-top:4px}
	.hfg-links .hfg-aufteilung,.hfg-links .hfg-schachtel,.hfg-links .hfg-zahlenleiste{margin:0 0 14px;padding-top:12px;border-top:1px solid #e5e5e5}
	.hfg-links .hfg-aufteilung>.hfg-klein,.hfg-links .hfg-schachtel>.hfg-klein,.hfg-links .hfg-zahlenleiste>.hfg-klein{flex:0 0 100%}
	.hfg-links .hfg-auft{flex:0 0 100%}
	.hfg-links .hfg-zahlenleiste select{flex:0 0 100%;max-width:none;min-width:0;width:100%}
	.hfg-links .hfg-kontur{margin:0}
	.hfg-links .hfg-logoliste{padding:8px;gap:6px;background:#fff;border:1px solid #e5e5e5}
	.hfg-links .hfg-logo-wahl{width:calc(50% - 3px)}
	.hfg-links .hfg-motiv-wahl{width:calc(50% - 3px)}
	.hfg-links .hfg-motiv-wahl img{height:62px}
	/* Eigenschaften untereinander */
	.hfg-rechts .hfg-eigenschaften{margin:0 0 12px;background:#fff;border:1px solid #e5e5e5}
	.hfg-rechts .hfg-ezeile{flex-direction:column;align-items:stretch;gap:8px}
	.hfg-rechts .hfg-ezeile input[type=text],.hfg-rechts .hfg-ezeile select{min-width:0;width:100%}
	.hfg-rechts .hfg-ezeile .hfg-link{text-align:left}
	.hfg-rechts .hfg-meldungen ul{margin:0 0 8px}
	.hfg-rechts .hfg-tipp{margin:12px 0 0}
}
.hfg-motiv-wahl span{text-transform:none;letter-spacing:0;font-weight:400;white-space:normal}

/* Version 0.4.5: Kaufbox – Gestaltung-Kasten ohne großen Abstand nach dem letzten Auswahlschritt */
form.variations_form:has(.hfg-box) table.variations tr:last-child{margin-bottom:0}
form.variations_form:has(.hfg-box) .single_variation_wrap{margin-top:0}
form.variations_form:has(.hfg-box) .woocommerce-variation-add-to-cart{margin-top:0;padding-top:0}

/* Version 0.4.6: Motivkacheln auf der Produktseite (großer Kalender) */
.hfg-motivwahl{margin:0 0 16px}
.hfg-motivwahl-kopf{font-size:13px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:#333;margin:0 0 10px}
.hfg-kacheln{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.hfg-kachel{display:flex;flex-direction:column;align-items:stretch;gap:0;margin:0;padding:0;min-height:0;background:#fff;border:1px solid #e6e0d4;border-radius:0;cursor:pointer;text-transform:none;letter-spacing:0;font-weight:400;line-height:1.2;color:#333;overflow:hidden;transition:border-color .15s,box-shadow .15s}
.hfg-kachel img{display:block;width:100%;aspect-ratio:3/2;object-fit:cover;margin:0}
.hfg-kachel span{display:block;font-size:12px;padding:6px 4px 7px;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hfg-kachel:hover{border-color:#03a696}
.hfg-kachel[aria-pressed="true"]{border-color:#03a696;box-shadow:inset 0 0 0 1px #03a696,0 0 0 1px #03a696}
.hfg-kachel[aria-pressed="true"] span{color:#028678;font-weight:600;background:#e6f5f3}
.hfg-kachel-eigen{border-style:dashed;border-color:#03a696;color:#028678}
.hfg-kachel-eigen .hfg-kachel-plus{flex:1;display:flex;align-items:center;justify-content:center;aspect-ratio:3/2;font-size:28px;font-weight:300;padding:0;color:#03a696;background:#f6fbfa}
.hfg-kachel-eigen[aria-pressed="true"]{border-style:solid}
@media (max-width:549px){.hfg-kacheln{grid-template-columns:repeat(3,minmax(0,1fr))}}
/* Kleiner Kalender: Kachel „Kartonstege“ mit Hinweis plastikfrei */
.postid-7904 .hf-chip[data-value="kartonstege"]::after{content:" · 100 % plastikfrei";color:#028678;font-size:13px;font-weight:600}

/* Version 0.5.0: Kalender-Ansicht im Gestalter */
.hfg-ansicht-knopf{margin-right:auto!important;font-size:13px!important;padding:0 10px!important;color:#028678!important;border-color:#03a696!important;background:#fff!important}
.hfg-ansicht{position:absolute;inset:0;z-index:5;background:rgba(0,0,0,.45);display:flex;align-items:center;justify-content:center;padding:16px}
.hfg-ansicht-innen{position:relative;background:#fff;padding:16px 16px 10px;border-radius:4px;max-width:min(760px,100%);max-height:100%;overflow:auto;box-shadow:0 10px 40px rgba(0,0,0,.3)}
.hfg-ansicht-innen img{display:block;width:100%;height:auto;max-height:calc(100vh - 140px);object-fit:contain}
.hfg-ansicht-innen .hfg-zu{position:absolute;right:8px;top:4px}
.hfg-ansicht-innen p{margin:6px 0 0;text-align:center}
.hfg-fenster{position:relative}
