/* HEBA Marktplatz */
.hmp { --hmp-accent: #1f3864; --hmp-accent-2: #2e75b6; --hmp-line: #e3e6ea; --hmp-muted: #6b7280; --hmp-bg: #f6f7f9; font-size: 15px; }
.hmp *, .hmp *::before, .hmp *::after { box-sizing: border-box; }
.hmp-btn { display: inline-block; padding: 10px 18px; border: 1px solid var(--hmp-line); border-radius: 6px; background: #fff; color: #222; font-weight: 600; cursor: pointer; text-decoration: none; line-height: 1.2; }
.hmp-btn:hover { border-color: var(--hmp-accent-2); color: var(--hmp-accent-2); }
.hmp-btn-primary { background: var(--hmp-accent); border-color: var(--hmp-accent); color: #fff; }
.hmp-btn-primary:hover { background: var(--hmp-accent-2); border-color: var(--hmp-accent-2); color: #fff; }
.hmp-note { padding: 16px; background: var(--hmp-bg); border-radius: 8px; color: var(--hmp-muted); }
.hmp-small { font-size: 13px; color: var(--hmp-muted); }

/* Übersicht */
.hmp-head { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 16px; }
.hmp-intro { margin: 0; max-width: 640px; color: #444; }
.hmp-filter { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; padding: 12px; background: var(--hmp-bg); border-radius: 10px; margin-bottom: 10px; }
.hmp-filter input[type=search] { grid-column: 1 / -1; }
.hmp-filter input, .hmp-filter select { width: 100%; height: 42px; padding: 0 10px; border: 1px solid var(--hmp-line); border-radius: 6px; background: #fff; margin: 0; }
.hmp-count { color: var(--hmp-muted); font-size: 13px; margin: 6px 0 12px; }
.hmp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.hmp-card { display: flex; flex-direction: column; border: 1px solid var(--hmp-line); border-radius: 10px; overflow: hidden; background: #fff; color: inherit; text-decoration: none; transition: box-shadow .15s, transform .15s; }
.hmp-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.08); transform: translateY(-2px); color: inherit; }
.hmp-card-img { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--hmp-bg); }
.hmp-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hmp-noimg { display: block; width: 100%; height: 100%; min-height: 160px; background: var(--hmp-bg) center / 48px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b0b6bf' stroke-width='1.5'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='9' cy='11' r='2'/%3E%3Cpath d='m21 17-5-5-8 7'/%3E%3C/svg%3E"); }
.hmp-card-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.hmp-card-title { font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.hmp-card-meta { font-size: 13px; color: var(--hmp-muted); }
.hmp-card-price { font-size: 18px; font-weight: 700; color: var(--hmp-accent); margin-top: 4px; }
.hmp-card-price small { font-size: 12px; font-weight: 600; color: var(--hmp-muted); margin-left: 4px; }
.hmp-badge { display: inline-block; padding: 3px 9px; border-radius: 20px; font-size: 12px; font-weight: 600; background: #e7eef8; color: var(--hmp-accent); }
.hmp-card-img .hmp-badge { position: absolute; top: 10px; left: 10px; }
.hmp-badge-neu { background: #e3f5e8; color: #1b7a3a; }
.hmp-badge-defekt { background: #fde8e8; color: #b42318; }
.hmp-pages { display: flex; gap: 6px; justify-content: center; margin: 24px 0; }
.hmp-pages a { padding: 6px 12px; border: 1px solid var(--hmp-line); border-radius: 6px; text-decoration: none; }
.hmp-pages a.is-active { background: var(--hmp-accent); color: #fff; border-color: var(--hmp-accent); }
.hmp-info { margin-top: 28px; padding: 16px; border-left: 4px solid var(--hmp-accent-2); background: var(--hmp-bg); border-radius: 0 8px 8px 0; font-size: 14px; }

/* Detail */
.hmp-back { margin: 0 0 14px; font-size: 14px; }
.hmp-single-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(280px, 2fr); gap: 28px; align-items: start; }
.hmp-gallery-main { aspect-ratio: 4 / 3; background: var(--hmp-bg); border-radius: 10px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.hmp-gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.hmp-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.hmp-thumb { width: 72px; height: 72px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: none; cursor: pointer; }
.hmp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hmp-thumb.is-active { border-color: var(--hmp-accent-2); }
.hmp-price-box { padding: 16px; border: 1px solid var(--hmp-line); border-radius: 10px; margin-bottom: 14px; }
.hmp-price { font-size: 28px; font-weight: 700; color: var(--hmp-accent); }
.hmp-vb { color: var(--hmp-muted); font-size: 14px; margin: 2px 0 8px; }
.hmp-specs { width: 100%; border-collapse: collapse; margin-bottom: 14px; font-size: 14px; }
.hmp-specs th, .hmp-specs td { padding: 7px 4px; border-bottom: 1px solid var(--hmp-line); text-align: left; vertical-align: top; }
.hmp-specs th { width: 38%; color: var(--hmp-muted); font-weight: 500; }
.hmp-contact { padding: 16px; border: 1px solid var(--hmp-line); border-radius: 10px; margin-bottom: 14px; }
.hmp-contact h3 { font-size: 16px; margin: 0 0 10px; }
.hmp-contact .hmp-btn { width: 100%; text-align: center; }
.hmp-c-name { font-weight: 600; }
.hmp-c-line { display: block; padding: 8px 0; font-size: 16px; }
.hmp-twint { padding: 14px 16px; background: var(--hmp-bg); border-radius: 10px; font-size: 14px; }
.hmp-twint p { margin: 6px 0 0; }
.hmp-desc { margin-top: 28px; }
.hmp-desc h2 { font-size: 20px; }
.hmp-disclaimer { margin-top: 24px; font-size: 12px; color: var(--hmp-muted); }

/* Konto */
.hmp-account-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.hmp-own-row { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--hmp-line); }
.hmp-own-img img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; display: block; }
.hmp-own-main { display: flex; flex-direction: column; gap: 3px; }
.hmp-own-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; align-items: flex-start; }
.hmp-own-actions form { margin: 0; }
.hmp-link { background: none; border: 0; padding: 0; color: var(--hmp-accent-2); cursor: pointer; font: inherit; font-size: 14px; text-decoration: underline; }
.hmp-link-danger { color: #b42318; }
.hmp-sold summary { list-style: none; }
.hmp-sold[open] form { display: flex; gap: 8px; align-items: end; margin-top: 8px; flex-wrap: wrap; }
.hmp-sold input { width: 110px; }
.hmp-status { display: inline-block; width: fit-content; padding: 2px 8px; border-radius: 20px; font-size: 12px; font-weight: 600; background: #fff4e0; color: #9a5b00; }
.hmp-status-live { background: #e3f5e8; color: #1b7a3a; }
.hmp-status-sold { background: #e7eef8; color: var(--hmp-accent); }
.hmp-status-expired { background: #eee; color: #555; }
.hmp-msg { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; }
.hmp-msg ul { margin: 0; padding-left: 18px; }
.hmp-msg-ok { background: #e3f5e8; color: #1b5e30; }
.hmp-msg-err { background: #fde8e8; color: #8a1c13; }
.hmp-msg-info { background: #e7eef8; color: var(--hmp-accent); }

/* Formular */
.hmp-form fieldset { border: 1px solid var(--hmp-line); border-radius: 10px; padding: 16px 18px 6px; margin: 0 0 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.hmp-form legend { font-weight: 700; padding: 0 6px; }
.hmp-form fieldset > p { grid-column: 1 / -1; margin-top: 0; }
.hmp-form label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.hmp-form .hmp-full, .hmp-form .hmp-uploader { grid-column: 1 / -1; }
.hmp-form input[type=text], .hmp-form input[type=number], .hmp-form input[type=tel], .hmp-form input[type=email], .hmp-form select, .hmp-form textarea { width: 100%; padding: 9px 10px; border: 1px solid #cfd4da; border-radius: 6px; font-weight: 400; background: #fff; }
.hmp-form .hmp-check { flex-direction: row; align-items: flex-start; gap: 8px; font-weight: 400; }
.hmp-form .hmp-check input { margin-top: 3px; }
.hmp-form .hmp-inline { align-self: center; margin-top: 18px; }
.hmp-radios { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; font-size: 14px; font-weight: 600; }
.hmp-form .hmp-radio { flex-direction: row; align-items: center; gap: 6px; font-weight: 400; margin: 0; }
.hmp-agb { padding: 12px 14px; background: var(--hmp-bg); border-radius: 8px; }
.hmp-uploader { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.hmp-images { list-style: none; margin: 0; padding: 0; display: contents; }
.hmp-images li { position: relative; width: 110px; height: 110px; border-radius: 8px; overflow: hidden; background: var(--hmp-bg); border: 2px solid transparent; cursor: grab; margin: 0; }
.hmp-images li img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.hmp-images li.is-main { border-color: var(--hmp-accent-2); }
.hmp-images li.is-main::after { content: "Hauptbild"; position: absolute; left: 0; right: 0; bottom: 0; background: var(--hmp-accent-2); color: #fff; font-size: 11px; text-align: center; padding: 2px; }
.hmp-images li.is-drag { opacity: .4; }
.hmp-img-del { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 16px; line-height: 24px; padding: 0; cursor: pointer; }
.hmp-add-img { display: inline-flex !important; align-items: center; justify-content: center; width: 110px; height: 110px; border: 2px dashed #b9c0c8; border-radius: 8px; cursor: pointer; color: var(--hmp-accent-2); text-align: center; font-size: 13px; }
.hmp-add-img input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.hmp-upload-status { flex-basis: 100%; min-height: 20px; font-size: 13px; color: var(--hmp-muted); }
.hmp-upload-status.is-err { color: #b42318; }
.hmp-spin { position: absolute; inset: 0; margin: auto; width: 28px; height: 28px; border: 3px solid #cfd4da; border-top-color: var(--hmp-accent-2); border-radius: 50%; animation: hmpspin .8s linear infinite; }
@keyframes hmpspin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
	.hmp-filter { grid-template-columns: 1fr 1fr; }
	.hmp-filter input[type=search], .hmp-filter button { grid-column: 1 / -1; }
	.hmp-single-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.hmp-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
	.hmp-card-body { padding: 10px; }
	.hmp-card-price { font-size: 16px; }
	.hmp-form fieldset { grid-template-columns: 1fr; }
	.hmp-own-row { grid-template-columns: 56px 1fr; }
	.hmp-own-img img { width: 56px; height: 56px; }
	.hmp-own-actions { grid-column: 1 / -1; justify-content: flex-start; }
	.hmp-images li, .hmp-add-img { width: 90px; height: 90px; }
}
.hmp-badge-heba { background: #1f3864; color: #fff; }
.hmp-card-heba { border-color: #c9d3e3; }
.hmp-card-price del { font-size: 13px; color: var(--hmp-muted); font-weight: 400; margin-right: 4px; }
.hmp-card-price ins { text-decoration: none; }
.hmp-card-price .woocommerce-price-suffix { display: none; }
