/* ==========================================================================
   DEALOO LOUNGE – BEITRAGSSEITE (Runde 55, 02.10.2026)
   Baut auf css/deal-detail.css (.ddx …) und css/dealoo-comments.css (Kommentare Variante A) auf.
   Gilt nur innerhalb von <div class="ddx ddx-lounge"> bzw. für die Fenster der Seite.
   Dezent: Grau/Weiß + Dealoo-Grün.
   ========================================================================== */

.ddx-lounge .ddx-wrap { max-width: 1180px; }
@media (min-width: 992px) {
    .ddx-lounge .ddx-grid { grid-template-columns: minmax(0, 1fr) 330px; }
    .ddx-lounge .ddx-side { grid-row: 1; }
}
@media (max-width: 991px) {
    .ddx-lounge .ddx-wrap { padding-bottom: 40px; }
    body:has(.bottom-nav-bar) .ddx-lounge .ddx-wrap { padding-bottom: 120px; }
}

/* ---------- Kopf ---------- */
.ddx-lounge .ddx-chip.solved { background: var(--as); color: var(--ai); border-color: transparent; }
.ddx-lounge .ddx-chip.pin { color: var(--ink); }
.ddx-lounge .ddx-chip.topic { color: var(--muted); font-weight: 800; }
.ddx-banner.solved { background: var(--as); border: 1px solid #cfe5db; color: var(--ai); }
.ddx-banner.muted { background: #fff; border: 1px solid var(--line); color: var(--body); }

/* ---------- Beitrag ---------- */
.ddx-post { display: grid; gap: 14px; }
.ddx-post .user-html { color: var(--ink) !important; font-size: 1rem; line-height: 1.7; overflow-wrap: anywhere; }
.ddx-post .user-html p { margin: 0 0 10px; font-size: inherit !important; line-height: inherit !important; color: inherit; }
.ddx-post .user-html a { color: var(--ai) !important; font-weight: 700; text-decoration: underline; }
.ddx-post .user-html ul, .ddx-post .user-html ol { margin: 0 0 10px 20px; padding: 0; }
.ddx-post .user-html blockquote { margin: 0 0 10px; padding: 8px 14px; border-left: 3px solid var(--a); background: var(--field); border-radius: 0 10px 10px 0; color: var(--body); }
.ddx-post .user-html img { max-width: 100%; height: auto; border-radius: 10px; }

.ddx-post-imgs { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.ddx-post-img { position: relative; display: block; border-radius: 12px; overflow: hidden; background: var(--field); border: 1px solid var(--line); aspect-ratio: 4 / 3; max-width: 100%; }
.ddx-post-imgs.single { grid-template-columns: minmax(0, 1fr); }
.ddx-post-imgs.single .ddx-post-img { aspect-ratio: auto; max-height: 460px; display: grid; place-items: center; }
.ddx-post-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ddx-post-imgs.single .ddx-post-img img { width: auto; max-width: 100%; height: auto; max-height: 460px; object-fit: contain; }
.ddx-post-img.is-nsfw img { filter: blur(28px); transform: scale(1.1); transition: filter .3s ease, transform .3s ease; }
.ddx-post-img.is-nsfw.revealed img { filter: none; transform: none; }
.ddx-nsfw-btn { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 6px; border: 0; background: rgba(15, 23, 42, .35); color: #fff; font: 800 0.85rem var(--font); cursor: pointer; }
.ddx-nsfw-btn i { font-size: 1.4rem; }
.ddx-post-img.revealed .ddx-nsfw-btn { display: none; }

.ddx-lounge .ddx-post-actions { padding-top: 14px !important; border-top: 1px solid var(--line) !important; }
.ddx-lounge .ddx-post-actions .action-btn.is-solve { border-color: #cfe5db !important; color: var(--ai) !important; background: var(--as) !important; }
.ddx-lounge .ddx-post-actions .action-btn.push-right { margin-left: auto !important; }
@media (max-width: 480px) {
    .ddx-lounge .ddx-post-actions .action-btn.push-right { margin-left: 0 !important; }
}

/* ---------- Seitenspalte ---------- */
.ddx-lounge .ddx-side h2 { margin-bottom: 12px !important; }
.ddx-lounge .ddx-share { display: flex; flex-wrap: wrap; gap: 8px; }
.ddx-lounge .ddx-share a, .ddx-lounge .ddx-share button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--body) !important; display: grid; place-items: center; font-size: 1rem; cursor: pointer; text-decoration: none !important; padding: 0; transition: border-color .15s, color .15s; }
.ddx-lounge .ddx-share a:hover, .ddx-lounge .ddx-share button:hover { border-color: var(--a); color: var(--ai) !important; }
.ddx-start p { margin: 0 0 12px; font-size: 0.88rem; line-height: 1.5; color: var(--body); }
.ddx-start-btn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: 12px; background: var(--ink); color: #fff !important; font: 900 0.92rem var(--font); text-decoration: none !important; }
.ddx-start-btn:hover { background: #000; }
.ddx-rules { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ddx-rules li { display: flex; gap: 8px; align-items: flex-start; font-size: 0.84rem; line-height: 1.45; color: var(--body); }
.ddx-rules li i { color: var(--a); margin-top: 3px; font-size: 0.8rem; flex-shrink: 0; }

/* ---------- Kommentare: Grundregeln (wie auf der Deal-Seite) ---------- */
.ddx-lounge .comments-layout-fix { padding: 0; }
.ddx-lounge .ddx-comments { margin: 0 !important; }
.ddx-lounge .write-comment.hidden, .ddx-lounge .hidden { display: none; }
.ddx-lounge .comment-content.clamped { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; max-height: 95px; }
.ddx-lounge .read-more-trigger { cursor: pointer; display: inline-block; margin-top: 4px; }
.ddx-lounge .hidden-reply { display: none !important; }
.ddx-lounge .loader { display: inline-block; width: 16px; height: 16px; border: 2px solid #ccc; border-top-color: #6fac93; border-radius: 50%; animation: dlxSpin 1s linear infinite; }
@keyframes dlxSpin { to { transform: rotate(360deg); } }
.spoiler-content { display: inline-block; vertical-align: middle; background-color: #333; color: #333; padding: 2px 8px; border-radius: 4px; cursor: pointer; user-select: none; font-size: 0.85em; line-height: 1.4; margin: 0 2px; }
a.spoiler-content { color: #fff !important; }
.spoiler-content.revealed { background-color: #f0f0f0; color: #333 !important; cursor: text; user-select: text; }
.ddx-lounge .empty-comment-wrapper { padding: 4px 0 0; }
.ddx-lounge .empty-state-card { display: flex; align-items: center; gap: 16px; padding: 18px; text-decoration: none !important; cursor: pointer; transition: border-color .2s, background .2s; }
.ddx-lounge .empty-state-card:hover { border-color: #6fac93; background: #f4faf7; }
.ddx-lounge .es-icon-anim { width: 46px; height: 46px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 20px; color: #9aa4a0; flex-shrink: 0; box-shadow: 0 2px 8px rgba(0, 0, 0, .05); }
.ddx-lounge .empty-state-card:hover .es-icon-anim { background: #6fac93; color: #fff; }
.ddx-lounge .es-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ddx-lounge .es-text strong { font-size: 15px; color: #111827; font-weight: 900; }
.ddx-lounge .es-text span { font-size: 13px; color: #6b7280; line-height: 1.4; }
.ddx-lounge .es-arrow { color: #9aa4a0; }
@media (max-width: 480px) { .ddx-lounge .es-arrow { display: none; } }

/* ---------- Promo (hell, wie Deal-Seite) ---------- */
.ddx-lounge .bottom-promo-banner { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 36px 24px; text-align: center; margin: 0; }
.ddx-lounge .bottom-promo-banner h3 { font: 900 1.4rem/1.25 var(--font); color: var(--ink); margin: 0 0 10px; }
.ddx-lounge .bottom-promo-banner p { color: var(--body); font-size: 0.98rem; line-height: 1.6; max-width: 600px; margin: 0 auto 22px !important; }
.ddx-lounge .promo-features { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.ddx-lounge .promo-feat-item { display: inline-flex; align-items: center; gap: 8px; font-size: 0.86rem; font-weight: 700; color: var(--ink); background: var(--field); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; }
.ddx-lounge .promo-feat-item i { color: var(--a); }
.ddx-lounge .promo-cta-btn { display: inline-block; padding: 12px 30px; border-radius: 999px; background: var(--a); color: #fff !important; font: 900 0.95rem var(--font); text-decoration: none !important; }
.ddx-lounge .promo-cta-btn:hover { background: #5f9c83; }
.ddx-lounge .promo-cta-btn.gray { background: var(--field); color: var(--ink) !important; border: 1px solid var(--line); }

/* ---------- Fenster: Teilen + Melden ---------- */
.share-modal-overlay, .popup-report, .popup-reportcomment { display: none; position: fixed; z-index: 99999 !important; inset: 0; background: rgba(15, 23, 42, .45); align-items: center; justify-content: center; padding: 16px; }
.share-modal-content, .popup-report-content { background: #fff; width: 100%; max-width: 420px; border-radius: 16px; box-shadow: 0 20px 50px rgba(15, 23, 42, .2); overflow: hidden; max-height: 85vh; overflow-y: auto; font-family: "Nunito", "Helvetica Neue", Helvetica, Arial, sans-serif; }
.share-modal-header, .report-header { padding: 14px 18px; border-bottom: 1px solid #e2e8f0; display: flex; justify-content: space-between; align-items: center; }
.share-modal-header h3, .report-header h2 { margin: 0; font-size: 16px; font-weight: 900; color: #0f172a; }
.close-share-modal, .close-report { cursor: pointer; font-size: 24px; color: #94a3b8; line-height: 1; padding: 2px 6px; order: 2; }
.close-share-modal:hover, .close-report:hover { color: #0f172a; }
.share-grid-list { display: grid; padding: 6px 0; }
.share-option-row { display: flex; align-items: center; gap: 14px; padding: 11px 18px; color: #334155 !important; text-decoration: none !important; font-weight: 700; font-size: 14px; cursor: pointer; }
.share-option-row:hover { background: #f8fafc; }
.share-option-icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #f1f5f9; color: #475569; }
.report-options { padding: 10px 12px; }
.report-option-label { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-radius: 8px; cursor: pointer; font-size: 14px; color: #334155; margin: 0; }
.report-option-label:hover { background: #f8fafc; }
.report-option-label input[type="radio"] { width: 18px; height: 18px; margin: 0; accent-color: #6fac93; cursor: pointer; }
.report-footer { padding: 12px 18px 16px; border-top: 1px solid #e2e8f0; display: flex; justify-content: flex-end; }
.reportsubmitdeal, .reportsubmitcomment { background: #0f172a; color: #fff; border: 0; padding: 10px 20px; border-radius: 999px; font-weight: 800; font-size: 14px; cursor: pointer; }
.reportsubmitdeal:hover, .reportsubmitcomment:hover { background: #000; }
.reportsubmitdeal[disabled], .reportsubmitcomment[disabled] { opacity: .6; cursor: default; }
.dlx-report-err { display: none; margin: 10px 18px 0; padding: 9px 12px; border-radius: 10px; background: #fef2f2; color: #991b1b; font-size: 13px; font-weight: 700; }
.dlx-guest { display: none; padding: 12px 18px 0; }
.dlx-guest label { display: block; font-size: 12px; font-weight: 800; color: #334155; margin: 0 0 6px; }
.dlx-guest input { width: 100%; padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 10px; font-size: 16px; }
@media (max-width: 600px) {
    .share-modal-overlay, .popup-report, .popup-reportcomment { align-items: flex-end; padding: 0; }
    .share-modal-content, .popup-report-content { max-width: none; border-radius: 22px 22px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
}

/* 03.10.2026: ruhigere Zeilenhoehe und Abstaende auf dem Handy */
@media (max-width: 767px) {
    .ddx-post .user-html { line-height: 1.55; }
    .ddx-post .user-html p { margin: 0 0 8px; }
}
