/* ---- Partnerprogramm ---- */
body.is-team-member .nav-item-partner {
    display: none;
}

.pp-page {
    --pp-card: var(--profile-white);
    --pp-green: var(--accent-solid);
    --pp-blue: #3b82f6;
    --pp-amber: #d97706;
    --pp-purple: #8b5cf6;
    --pp-red: #e5484d;
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding-bottom: 40px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--profile-text);
}

.pp-page button {
    font-family: inherit;
}

/* Buttons */
.pp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.pp-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.pp-btn:active {
    transform: scale(0.98);
}

.pp-btn.is-light {
    background: #ffffff;
    color: #0f5f50;
}

.pp-btn.is-light:hover {
    background: #eafaf6;
}

.pp-btn.is-glass {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.pp-btn.is-glass:hover {
    background: rgba(255, 255, 255, 0.18);
}

.pp-btn.is-done {
    border-color: transparent;
    background: #d7f5ee;
    color: #0f5f50;
}

.pp-btn.is-outline {
    border-color: var(--profile-border);
    background: var(--pp-card);
    color: var(--profile-text);
}

.pp-btn.is-outline:hover {
    border-color: var(--pp-green);
    color: var(--pp-green);
}

/* Hero */
.pp-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
    align-items: center;
    gap: 32px;
    padding: 32px;
    overflow: hidden;
    border: 1px solid var(--profile-border);
    border-radius: 24px;
    background:
        radial-gradient(640px 260px at 0% 0%, rgba(21, 144, 121, 0.13), transparent 70%),
        radial-gradient(520px 240px at 70% 120%, rgba(59, 130, 246, 0.07), transparent 70%),
        var(--pp-card);
}

.pp-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border: 1px solid rgba(21, 144, 121, 0.25);
    border-radius: 999px;
    background: rgba(21, 144, 121, 0.08);
    color: var(--pp-green);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.pp-badge svg {
    width: 15px;
    height: 15px;
}

.pp-hero-title {
    max-width: 620px;
    margin: 16px 0 10px;
    font-size: clamp(22px, 2.4vw, 30px);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.025em;
}

.pp-hero-sub {
    max-width: 600px;
    margin: 0;
    color: var(--profile-text-muted);
    font-size: 14.5px;
    line-height: 1.6;
}

.pp-perks {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.pp-perk {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px 12px 12px;
    border: 1px solid var(--profile-border);
    border-radius: 16px;
    background: var(--pp-card);
}

.pp-perk b {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
}

.pp-perk span:not(.pp-perk-ic) {
    color: var(--profile-text-muted);
    font-size: 12.5px;
}

.pp-perk-ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(21, 144, 121, 0.1);
    color: var(--pp-green);
}

.pp-perk-ic.is-strong {
    background: var(--accent-gradient);
    color: #ffffff;
    box-shadow: 0 8px 18px var(--accent-shadow);
}

.pp-perk-ic svg {
    width: 19px;
    height: 19px;
}

/* Code-Karte (Gutschein-Optik) */
.pp-code-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 26px;
    overflow: hidden;
    border-radius: 22px;
    background:
        radial-gradient(260px 160px at 100% 0%, rgba(255, 255, 255, 0.16), transparent 70%),
        linear-gradient(140deg, #1aa58a 0%, #159079 45%, #0d6656 100%);
    color: #ffffff;
    box-shadow: 0 22px 44px rgba(21, 144, 121, 0.32);
}

/* Gutschein-Kerben links/rechts */
.pp-code-card::before,
.pp-code-card::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--pp-card);
    transform: translateY(-50%);
}

.pp-code-card::before {
    left: -11px;
}

.pp-code-card::after {
    right: -11px;
}

.pp-code-label {
    color: rgba(255, 255, 255, 0.78);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.pp-code-value {
    width: 100%;
    padding: 14px 16px;
    box-sizing: border-box;
    border: 1.5px dashed rgba(255, 255, 255, 0.45);
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.12);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: clamp(20px, 2vw, 25px);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-align: center;
    user-select: all;
}

.pp-code-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
}

.pp-code-note,
.pp-code-text {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12.5px;
    line-height: 1.5;
}

.pp-code-card.is-locked {
    background:
        radial-gradient(260px 160px at 100% 0%, rgba(255, 255, 255, 0.08), transparent 70%),
        linear-gradient(140deg, #2a2d33 0%, #1d1f24 100%);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.pp-code-card.is-locked .pp-code-text {
    font-size: 13.5px;
}

.pp-code-ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
}

.pp-code-ic svg {
    width: 22px;
    height: 22px;
}

/* Kennzahlen */
.pp-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.pp-kpi {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--profile-border);
    border-radius: 18px;
    background: var(--pp-card);
}

.pp-kpi-ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 14px;
}

.pp-kpi-ic svg {
    width: 21px;
    height: 21px;
}

.pp-kpi-ic.is-green { background: rgba(21, 144, 121, 0.12); color: var(--pp-green); }
.pp-kpi-ic.is-blue { background: rgba(59, 130, 246, 0.12); color: var(--pp-blue); }
.pp-kpi-ic.is-amber { background: rgba(217, 119, 6, 0.12); color: var(--pp-amber); }
.pp-kpi-ic.is-purple { background: rgba(139, 92, 246, 0.12); color: var(--pp-purple); }

.pp-kpi-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.pp-kpi-label {
    color: var(--profile-text-muted);
    font-size: 12px;
    font-weight: 600;
}

.pp-kpi-value {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

/* Karten */
.pp-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.pp-card {
    padding: 24px;
    border: 1px solid var(--profile-border);
    border-radius: 20px;
    background: var(--pp-card);
}

.pp-card-title {
    margin: 0 0 18px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.pp-steps,
.pp-rules {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pp-steps li,
.pp-rules li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.pp-steps li > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
}

.pp-rule-ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--profile-surface);
    color: var(--pp-green);
}

.pp-rule-ic svg {
    width: 17px;
    height: 17px;
}

.pp-steps b,
.pp-rules b {
    display: block;
    margin-top: 1px;
    font-size: 14px;
    font-weight: 700;
}

.pp-steps p,
.pp-rules p {
    margin: 3px 0 0;
    color: var(--profile-text-muted);
    font-size: 13px;
    line-height: 1.55;
}

/* Empfehlungen */
.pp-legend {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 12px 0 6px;
    padding: 0;
    list-style: none;
}

.pp-legend li {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 14px;
    border: 1px solid var(--profile-border);
    border-radius: 14px;
    background: var(--profile-surface);
    color: var(--profile-text-muted);
    font-size: 12.5px;
    line-height: 1.4;
}

.pp-legend .pp-status {
    padding: 4px 10px;
    font-size: 12px;
}

@media (max-width: 760px) {
    .pp-legend {
        grid-template-columns: 1fr;
    }

    .pp-legend li {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }
}

.pp-list-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.pp-list-head .pp-card-title {
    margin: 0;
}

.pp-count {
    padding: 2px 9px;
    border-radius: 999px;
    background: var(--profile-surface);
    color: var(--profile-text-muted);
    font-size: 12px;
    font-weight: 700;
}

.pp-rows {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pp-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto minmax(110px, auto);
    align-items: center;
    gap: 14px;
    padding: 14px 4px;
    border-top: 1px solid var(--profile-border);
}

.pp-row:first-child {
    border-top: none;
}

.pp-row.is-new {
    animation: ppRowIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes ppRowIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
}

.pp-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 10px auto 0;
    padding: 6px 10px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--profile-text-muted);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.18s ease;
}

.pp-more:hover {
    color: var(--pp-green);
}

.pp-more-count {
    opacity: 0.7;
}

.pp-more svg {
    width: 14px;
    height: 14px;
}

.pp-row-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--profile-surface);
    color: var(--profile-text-label);
    font-size: 13px;
    font-weight: 700;
}

.pp-row-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.pp-row-name {
    overflow: hidden;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.pp-row-date {
    color: var(--profile-text-muted);
    font-size: 12.5px;
}

.pp-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.pp-status i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.pp-status.is-green { background: rgba(21, 144, 121, 0.12); color: var(--pp-green); }
.pp-status.is-amber { background: rgba(217, 119, 6, 0.12); color: var(--pp-amber); }
.pp-status.is-red { background: rgba(229, 72, 77, 0.12); color: var(--pp-red); }

.pp-row-reward {
    color: var(--pp-green);
    font-size: 14px;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

.pp-row-reward.is-none {
    color: var(--profile-text-muted);
    font-weight: 500;
}

.pp-row-reward.is-pending {
    color: var(--pp-amber);
    font-weight: 600;
}

.pp-empty,
.pp-locked {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 34px 20px 26px;
    text-align: center;
}

.pp-empty b,
.pp-locked h3 {
    margin: 4px 0 0;
    font-size: 15px;
    font-weight: 700;
}

.pp-empty p,
.pp-locked p {
    max-width: 380px;
    margin: 0 0 6px;
    color: var(--profile-text-muted);
    font-size: 13.5px;
    line-height: 1.55;
}

.pp-empty-ic,
.pp-locked-ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--profile-surface);
    color: var(--profile-text-muted);
}

.pp-empty-ic svg,
.pp-locked-ic svg {
    width: 24px;
    height: 24px;
}

.pp-locked {
    padding: 64px 20px;
    border: 1px solid var(--profile-border);
    border-radius: 22px;
    background: var(--pp-card);
}

/* Ladezustand */
.pp-skel {
    border-radius: 20px;
    background: linear-gradient(90deg, var(--profile-surface) 25%, var(--profile-hover-bg) 50%, var(--profile-surface) 75%);
    background-size: 200% 100%;
    animation: ppShimmer 1.2s linear infinite;
}

.pp-skel-hero { height: 290px; border-radius: 24px; }
.pp-skel-kpi { height: 82px; }
.pp-skel-list { height: 220px; }

@keyframes ppShimmer {
    to { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
    .pp-skel {
        animation: none;
    }

    .pp-row.is-new {
        animation: none;
    }
}

html.reduce-motion .pp-skel,
html.reduce-motion .pp-row.is-new {
    animation: none;
}

/* Responsiv */
@media (max-width: 1180px) {
    .pp-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .pp-hero {
        grid-template-columns: 1fr;
    }

    .pp-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .pp-page {
        gap: 16px;
    }

    .pp-hero {
        padding: 22px 18px;
        gap: 22px;
    }

    .pp-code-card {
        padding: 22px 18px;
    }

    .pp-kpis {
        grid-template-columns: 1fr;
    }

    .pp-card {
        padding: 20px 16px;
    }

    .pp-row {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .pp-row .pp-status {
        grid-column: 2;
        justify-self: start;
    }

    .pp-row-reward {
        grid-column: 3;
        grid-row: 1;
    }
}
