/* Marktplatz Core – Basis-Styles (Theme kann alles über CSS-Variablen überschreiben) */
.mp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.mp-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .4em;
	padding: .7em 1.2em; border-radius: var(--mp-radius-sm, 10px); border: 2px solid var(--mp-accent, #ff5a3c);
	background: var(--mp-accent, #ff5a3c); color: #fff; font: inherit; font-weight: 700; line-height: 1.2;
	text-decoration: none; cursor: pointer; transition: transform .12s, box-shadow .12s, background .12s;
}
.mp-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.14); color: #fff; }
.mp-btn--ghost { background: transparent; color: var(--mp-ink, #1b1f3b); border-color: var(--mp-line, #d9d6cc); }
.mp-btn--ghost:hover { color: var(--mp-ink, #1b1f3b); border-color: var(--mp-ink, #1b1f3b); box-shadow: none; }
.mp-btn--danger { background: transparent; color: #b3261e; border-color: #e5b4b0; }
.mp-btn--danger:hover { background: #b3261e; color: #fff; }
.mp-btn--small { padding: .4em .8em; font-size: .85rem; }
.mp-btn--lg { padding: .9em 1.6em; font-size: 1.05rem; }

.mp-box { background: var(--mp-card, #fff); border: 1px solid var(--mp-line, #e6e3da); border-radius: var(--mp-radius, 16px); padding: 1.2rem; margin: 1rem 0; }
.mp-box--narrow { max-width: 480px; margin-left: auto; margin-right: auto; }
.mp-muted { color: var(--mp-muted, #6b6f85); }
.mp-small { font-size: .85rem; }

.mp-notice { padding: .8rem 1rem; border-radius: var(--mp-radius-sm, 10px); margin: 1rem 0; font-weight: 600; }
.mp-notice--ok { background: #e6f6ee; color: #14613a; }
.mp-notice--error { background: #fdeceb; color: #8c1d18; }

/* Formulare */
.mp-form .mp-field { margin: 0 0 1rem; }
.mp-form label { display: block; font-weight: 600; margin-bottom: .3rem; }
.mp-form input[type=text], .mp-form input[type=email], .mp-form input[type=password], .mp-form input[type=number],
.mp-form input[type=tel], .mp-form select, .mp-form textarea, .mp-form input[type=file], .mp-filter input, .mp-filter select {
	width: 100%; padding: .7em .85em; border: 1.5px solid var(--mp-line, #d9d6cc); border-radius: var(--mp-radius-sm, 10px);
	background: #fff; font: inherit; color: inherit; box-sizing: border-box;
}
.mp-form input:focus, .mp-form select:focus, .mp-form textarea:focus, .mp-filter input:focus, .mp-filter select:focus {
	outline: 3px solid color-mix(in srgb, var(--mp-accent, #ff5a3c) 30%, transparent); border-color: var(--mp-accent, #ff5a3c);
}
.mp-field-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.mp-field-row .mp-field { flex: 1 1 150px; }
.mp-field--grow { flex: 2 1 240px !important; }
.mp-field--radio { border: 0; padding: 0; display: flex; gap: 1.5rem; flex-wrap: wrap; }
.mp-field--radio label, .mp-check { display: inline-flex; gap: .5rem; align-items: center; font-weight: 500; }
.mp-form .mp-check input, .mp-field--radio input { width: auto; }
.mp-previews { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .6rem; }
.mp-preview { display: inline-flex; flex-direction: column; gap: .2rem; font-size: .8rem; font-weight: 500; }
.mp-preview img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; }
.screen-reader-text { position: absolute; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }

/* Merkliste */
.mp-fav {
	display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0;
	border-radius: 50%; border: 0; background: rgba(255,255,255,.92); cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.mp-fav svg { fill: none; stroke: var(--mp-ink, #1b1f3b); stroke-width: 2; }
.mp-fav:hover svg { stroke: var(--mp-accent, #ff5a3c); }
.mp-fav.is-active svg { fill: var(--mp-accent, #ff5a3c); stroke: var(--mp-accent, #ff5a3c); }

/* Mein Konto */
.mp-account__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.mp-account__actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.mp-myads { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.mp-myads__item { display: flex; gap: 1rem; align-items: center; background: var(--mp-card, #fff); border: 1px solid var(--mp-line, #e6e3da); border-radius: var(--mp-radius, 16px); padding: .8rem; flex-wrap: wrap; }
.mp-myads__thumb { width: 72px; height: 72px; border-radius: 10px; overflow: hidden; background: #eee; flex: none; }
.mp-myads__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mp-myads__info { flex: 1 1 200px; min-width: 0; }
.mp-myads__buttons { display: flex; gap: .4rem; flex-wrap: wrap; }
.mp-myads__buttons form { margin: 0; }
.mp-chip { display: inline-block; font-size: .72rem; font-weight: 700; padding: .15em .6em; border-radius: 999px; background: #eee; margin-left: .4rem; }
.mp-chip--publish { background: #e6f6ee; color: #14613a; }
.mp-chip--pending { background: #fff4d6; color: #7a5600; }
.mp-chip--expired { background: #eee; color: #555; }

/* Nachrichten */
.mp-convs { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.mp-conv { position: relative; background: var(--mp-card, #fff); border: 1px solid var(--mp-line, #e6e3da); border-radius: var(--mp-radius-sm, 12px); }
.mp-conv a { display: block; padding: .9rem 3rem .9rem 1rem; text-decoration: none; color: inherit; }
.mp-conv__text { display: block; color: var(--mp-muted, #6b6f85); font-size: .92rem; margin-top: .15rem; }
.mp-conv.is-unread { border-color: var(--mp-accent, #ff5a3c); }
.mp-badge { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); background: var(--mp-accent, #ff5a3c); color: #fff; border-radius: 999px; font-size: .75rem; font-weight: 700; min-width: 1.5em; text-align: center; padding: .15em .5em; }
.mp-bubbles { display: flex; flex-direction: column; gap: .6rem; margin: 1rem 0; }
.mp-bubble { max-width: 80%; padding: .7rem .9rem; border-radius: 16px; line-height: 1.45; word-wrap: break-word; }
.mp-bubble time { display: block; font-size: .72rem; opacity: .65; margin-top: .3rem; }
.mp-bubble--me { align-self: flex-end; background: var(--mp-ink, #1b1f3b); color: #fff; border-bottom-right-radius: 4px; }
.mp-bubble--them { align-self: flex-start; background: #ece9e0; border-bottom-left-radius: 4px; }

/* PreisCheck */
.mp-pricecheck { border-radius: var(--mp-radius, 16px); padding: .9rem 1rem; margin: 1rem 0; background: #f1f1f1; }
.mp-pricecheck__head { display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.mp-pricecheck__bar { position: relative; height: 8px; border-radius: 99px; margin: .7rem 0 .5rem; background: linear-gradient(90deg, #1aa37a 0%, #1aa37a 33%, #e3b341 50%, #e0603c 67%, #e0603c 100%); }
.mp-pricecheck__bar i { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #fff; border: 3px solid var(--mp-ink, #1b1f3b); }
.mp-pricecheck small { color: var(--mp-muted, #6b6f85); }
.mp-pricecheck--cheap { background: #e6f6ee; }
.mp-pricecheck--fair { background: #fff7de; }
.mp-pricecheck--high { background: #fdeceb; }

/* Vertrauens-Score */
.mp-trust { display: flex; gap: .8rem; align-items: center; margin: .5rem 0; }
.mp-trust__score { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; color: #fff; background: #9a9db0; }
.mp-trust--proven .mp-trust__score { background: #3b82c4; }
.mp-trust--trusted .mp-trust__score { background: #1aa37a; }
.mp-trust--top .mp-trust__score { background: linear-gradient(135deg, #ffb020, #ff5a3c); }
.mp-trust__text { display: flex; flex-direction: column; font-size: .88rem; }
.mp-trust__text span { color: var(--mp-muted, #6b6f85); }
.mp-ratings { list-style: none; margin: .6rem 0 0; padding: 0; font-size: .9rem; display: grid; gap: .4rem; }
.mp-stars { color: #e3a008; letter-spacing: 1px; }

/* Werbebanner */
.mp-ad { position: relative; margin: 1rem auto; text-align: center; max-width: 100%; overflow: hidden; }
.mp-ad img { max-width: 100%; height: auto; display: inline-block; vertical-align: middle; }
.mp-ad__label { display: block; font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mp-muted, #8a8da0); margin-bottom: 2px; }
.mp-ad--placeholder { border: 2px dashed #c9c5b8; border-radius: 12px; padding: 1.2rem; color: #8a8da0; font-size: .85rem; background: repeating-linear-gradient(45deg, transparent 0 10px, rgba(0,0,0,.02) 10px 20px); }
.mp-ad--mobile { display: none; }
@media (max-width: 760px) {
	.mp-ad--mobile { display: block; }
	.mp-ad--desktop { display: none; }
}

/* Brotkrumen */
.mp-breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; margin: 0 0 1rem; padding: 0; font-size: .85rem; color: var(--mp-muted, #6b6f85); }
.mp-breadcrumbs li + li::before { content: "›"; margin-right: .3rem; }
.mp-breadcrumbs a { color: inherit; }

/* Konto: zwei Spalten privat / gewerblich */
.mp-two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; align-items: start; margin: 1.5rem 0 2rem; }
.mp-col { background: rgba(255,255,255,.55); border: 1px solid var(--mp-line, #e6e3da); border-radius: var(--mp-radius, 18px); padding: 1.1rem; min-width: 0; }
.mp-col--private { border-top: 5px solid var(--mp-accent, #ff5a3c); }
.mp-col--business { border-top: 5px solid #3b4fd8; }
.mp-col__head { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; flex-wrap: wrap; margin-bottom: .8rem; }
.mp-col__head h3 { margin: 0; font-size: 1.3rem; }
.mp-stats { display: flex; gap: .8rem; font-size: .82rem; color: var(--mp-muted, #6b6f85); flex-wrap: wrap; }
.mp-stats strong { color: var(--mp-ink, #1b1f3b); font-size: 1rem; }
.mp-col .mp-box { margin: .6rem 0; }
.mp-details > summary { cursor: pointer; font-weight: 700; margin-top: .8rem; }
.mp-bizform .mp-field { margin-bottom: .8rem; }
.mp-note { margin-top: .5rem; padding: .5rem .7rem; border-radius: 10px; background: #f1f1f1; font-size: .85rem; }
.mp-note--review { background: #fff4d6; color: #7a5600; }
.mp-chip--in_review { background: #fde1c8; color: #8a3b00; }
.mp-chip--draft { background: #fdeceb; color: #8c1d18; }
.mp-imprint { margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--mp-line, #e6e3da); font-size: .88rem; }
.mp-imprint h4 { margin: 0 0 .4rem; font-size: .9rem; }
.mp-imprint .mp-facts { gap: .2rem .8rem; }
@media (max-width: 900px) { .mp-two-col { grid-template-columns: 1fr; } }
