/**
 * DPP Public Mobile & Desktop Viewer — public_pass.css
 * 
 * Clean, Swiss-inspired, Luxury-Grade Light Mode für Endverbraucher & Prüfer.
 * Ausgelegt für Apple-, Porsche- & LVMH-Niveau.
 */

.dpp-public-wrapper {
    max-width: 680px;
    margin: 0 auto;
    min-height: 100vh;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .dpp-public-wrapper {
        max-width: 800px;
        margin: 24px auto;
        border-radius: var(--radius-lg);
        overflow: hidden;
        border: 1px solid var(--border-hairline);
        box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
        min-height: auto;
    }
}

/* Modern Wide Desktop View (>= 1040px) */
@media (min-width: 1040px) {
    .dpp-public-wrapper {
        max-width: 1420px;
        margin: 36px auto;
        border-radius: var(--radius-lg);
        overflow: hidden;
        border: 1px solid var(--border-hairline);
        box-shadow: 0 16px 45px -10px rgba(15, 23, 42, 0.08);
    }

    .dpp-public-main-grid {
        display: grid;
        grid-template-columns: 480px 1fr;
        align-items: start;
        background: #ffffff;
        border-bottom: 1px solid var(--border-hairline);
    }

    .dpp-public-sidebar {
        border-right: 1px solid var(--border-hairline);
        background: #fbfcfe;
        position: sticky;
        top: 20px;
    }

    .dpp-public-hero {
        border-bottom: none;
        padding: 40px 32px 28px;
    }

    .dpp-public-product-image-wrap {
        max-width: 400px;
        height: 260px;
    }

    .dpp-metrics-bar {
        border-top: 1px solid var(--border-hairline);
        border-bottom: none;
    }

    .dpp-sections-list {
        padding: 32px;
    }
}

/* RTL Support */
[dir="rtl"] {
    text-align: right;
}
[dir="rtl"] .dpp-public-header,
[dir="rtl"] .dpp-public-brand,
[dir="rtl"] .dpp-block-title-group,
[dir="rtl"] .dpp-block-header {
    flex-direction: row-reverse;
}
[dir="rtl"] .dpp-data-row {
    flex-direction: row-reverse;
}
[dir="rtl"] .dpp-data-value {
    text-align: left;
}
@media (min-width: 1040px) {
    [dir="rtl"] .dpp-public-main-grid {
        grid-template-columns: 1fr 480px;
    }
    [dir="rtl"] .dpp-public-sidebar {
        border-right: none;
        border-left: 1px solid var(--border-hairline);
    }
}

/* Header */
.dpp-public-header {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-hairline);
    background: #ffffff;
}

.dpp-public-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dpp-public-brand-title {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--text-strong);
    letter-spacing: -0.02em;
}

.dpp-public-badge-eu {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--color-esg);
    background: var(--color-esg-bg);
    border: 1px solid var(--color-esg-border);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.02em;
}

/* Hero */
.dpp-public-hero {
    background: #fbfcfe;
    border-bottom: 1px solid var(--border-hairline);
    text-align: center;
    padding: 36px 24px 28px;
}

.dpp-public-product-box {
    width: 90px;
    height: 90px;
    margin: 0 auto 16px;
    border-radius: var(--radius-md);
    background: #ffffff;
    border: 1px solid var(--border-hairline);
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dpp-public-product-image-wrap {
    max-width: 320px;
    height: 200px;
    margin: 0 auto 20px;
    border-radius: var(--radius-md);
    background: #ffffff;
    border: 1px solid var(--border-hairline);
    box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.dpp-public-product-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: calc(var(--radius-md) - 4px);
    transition: transform 0.3s ease;
}

.dpp-public-product-image-wrap:hover .dpp-public-product-img {
    transform: scale(1.03);
}

.dpp-public-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-strong);
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.dpp-public-model {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 4px;
    font-family: var(--font-mono);
}

/* Metriken */
.dpp-metrics-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #ffffff;
    border-bottom: 1px solid var(--border-hairline);
    text-align: center;
}

.dpp-metric-item {
    padding: 18px 12px;
    border-right: 1px solid var(--border-hairline);
}
.dpp-metric-item:last-child {
    border-right: none;
}

.dpp-metric-val {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-strong);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.dpp-metric-lbl {
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Abschnitte (Akkordeon) */
.dpp-sections-list {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dpp-block {
    background: #ffffff;
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition);
}

.dpp-block:hover {
    border-color: var(--border-hover);
}

.dpp-block-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    background: #ffffff;
    user-select: none;
}

.dpp-block-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dpp-block-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-strong);
}

.dpp-block-content {
    display: none;
    padding: 20px;
    border-top: 1px solid var(--border-hairline);
    background: #fbfcfe;
    font-size: 0.88rem;
    color: var(--text-regular);
}

.dpp-block.open .dpp-block-content {
    display: block;
}

.dpp-data-row {
    display: flex;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.86rem;
}
.dpp-data-row:last-child {
    border-bottom: none;
}

.dpp-data-label {
    color: var(--text-muted);
}

.dpp-data-value {
    font-weight: 600;
    color: var(--text-strong);
    text-align: right;
}

/* Recycler Gate */
.dpp-expert-gate {
    margin: 20px 0 8px;
    padding: 20px;
    background: var(--bg-app);
    border: 1px dashed var(--border-card);
    border-radius: var(--radius-md);
    text-align: center;
}

.dpp-expert-gate-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-strong);
    margin-bottom: 4px;
}

.dpp-expert-gate-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 14px;
}

/* Footer */
.dpp-public-footer {
    padding: 24px;
    border-top: 1px solid var(--border-hairline);
    background: #ffffff;
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Responsive Helpers for Language Selector */
@media (min-width: 641px) {
    .dpp-show-mobile { display: none !important; }
}
@media (max-width: 640px) {
    .dpp-hide-mobile { display: none !important; }
}
