/* ==========================
   LOGIN – visuelles Upgrade
   (wirkt nur auf die Login-Ansicht)
   ========================== */

.mbb-ep-portal > .mbb-ep-inner > .mbb-ep-card {
    max-width: 440px;
    width: 100%;
    margin: 48px auto;
    padding: 28px 28px 26px;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbfc 100%);
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08), 0 2px 8px rgba(17, 24, 39, 0.06);
    border: 1px solid #e5e7eb;
}

/* Brand-Zeile mit Logo + Titel */
.mbb-ep-login-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
}
.mbb-ep-login-logo {
    height: 44px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.mbb-ep-login-title {
    font-size: 22px;
    line-height: 1.25;
    letter-spacing: .2px;
    color: #0f172a;
    font-weight: 800;
}

/* Hinweis-/Fehlermeldungen */
.mbb-ep-alert {
    border-radius: 10px;
    padding: 10px 12px;
    margin: 10px 0 16px;
    font-size: 14px;
}
.mbb-ep-alert--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* WP Login Form – Felder hübscher machen */
#mbb_ep_loginform {
    margin: 6px 0 0;
}
#mbb_ep_loginform p {
    margin: 0 0 14px;
}
#mbb_ep_loginform label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}
#mbb_ep_loginform input[type="text"],
#mbb_ep_loginform input[type="password"] {
    display: block;
    width: 100%;
    padding: 12px 12px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #0f172a;
    outline: none;
    transition: box-shadow .2s ease, border-color .2s ease;
}
#mbb_ep_loginform input[type="text"]:focus,
#mbb_ep_loginform input[type="password"]:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59,130,246,0.15);
}

/* Remember + Submit Row */
#mbb_ep_loginform .login-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}
#mbb_ep_loginform .login-remember label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-weight: 500;
    color: #4b5563;
}
#mbb_ep_rememberme {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid #9ca3af;
}

/* Button */
#mbb_ep_wp_submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 6px;
    padding: 12px 14px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(180deg, #42aed6 0%, #2a99c4 100%);
    color: #ffffff;
    font-weight: 700;
    letter-spacing: .2px;
    cursor: pointer;
    transition: transform .06s ease, box-shadow .2s ease, opacity .2s ease;
    box-shadow: 0 6px 16px rgba(66, 174, 214, 0.35);
}
#mbb_ep_wp_submit:hover {
    box-shadow: 0 10px 24px rgba(66, 174, 214, 0.45);
}
#mbb_ep_wp_submit:active {
    transform: translateY(1px);
}

/* Kleinere Meta-Links unter dem Button (falls Theme welche einfügt) */
.mbb-ep-portal .mbb-ep-card .login .nav,
.mbb-ep-portal .mbb-ep-card .forgetmenot + .submit + p {
    text-align: center;
    margin-top: 10px;
}
.mbb-ep-portal .mbb-ep-card .login .nav a {
    color: #2563eb;
    text-decoration: none;
}
.mbb-ep-portal .mbb-ep-card .login .nav a:hover {
    text-decoration: underline;
}

/* Responsive Tweaks */
@media (max-width: 480px) {
    .mbb-ep-portal > .mbb-ep-inner > .mbb-ep-card {
        margin: 24px auto;
        padding: 22px 18px 20px;
        border-radius: 14px;
    }
}
/* Google-Bar: nutze die Standard-Marker, aber größer und im Balken */
.mbb-ep-google-progress-bar .mbb-ep-progress-marker {
    top: 50%;
    transform: translate(-50%, -50%);
}

.mbb-ep-google-progress-bar .mbb-ep-marker-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid rgba(0,0,0,0.2);
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.mbb-ep-pill-blue {
    display: inline-block;
    background: var(--mbb-primary);
    color: #ffffff;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 6px;
}
.mbb-ep-google-multi {
    color: #FBBC05;
    font-weight: 900;
}
/* MBB Employee Portal - Frontend Styles */

:root {
    --mbb-primary: #42aed6;
    --mbb-primary-dark: #2e92b5;
    --mbb-primary-light: #e0f6ff;
    --mbb-accent: #8b5cf6;
    --mbb-accent-light: #ede9fe;
    --mbb-bg: #f8fafc;
    --mbb-text-primary: #111827;
    --mbb-text-secondary: #6b7280;
    --mbb-border: #e5e7eb;
    --mbb-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    --mbb-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --mbb-radius: 16px;
    --mbb-radius-sm: 12px;
}

/* Portal Container */
.mbb-ep-portal {
    width: 100%;
    margin: 0;
    padding: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--mbb-text-primary);
    background: var(--mbb-bg);
    min-height: 80vh;
    box-sizing: border-box;
}

/* Alerts */
.mbb-ep-alert {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin: 0 0 1rem 0;
    font-weight: 700;
}
.mbb-ep-alert--error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Login Input Error */
#mbb_ep_user_login.mbb-ep-input-error,
#mbb_ep_user_pass.mbb-ep-input-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

/* Welcome Header */
.mbb-ep-welcome {
    background: linear-gradient(135deg, var(--mbb-primary) 0%, var(--mbb-primary-dark) 100%);
    color: white;
    padding: 2.5rem 2rem;
    border-radius: var(--mbb-radius);
    margin-bottom: 2rem;
    box-shadow: var(--mbb-shadow-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.mbb-ep-welcome-content {
    flex: 1;
}

.mbb-ep-welcome-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

.mbb-ep-welcome-subtitle {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.95;
    color: #ffffff;
}

/* Name-Badge im Welcome Header */
.mbb-ep-welcome-name {
    display: inline-block;
    background: #ffffff;
    color: var(--mbb-primary);
    padding: 0.15rem 0.5rem;
    border-radius: 8px;
    font-weight: 900;
}

.mbb-ep-logout-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.mbb-ep-logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Main Container */
.mbb-ep-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    align-items: start;
}

/* Sidebar Navigation */
.mbb-ep-sidebar {
    position: sticky;
    top: 2rem;
}

.mbb-ep-nav {
    background: white;
    border-radius: var(--mbb-radius);
    padding: 1rem;
    box-shadow: var(--mbb-shadow);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mbb-ep-menu-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: var(--mbb-radius-sm);
    text-decoration: none;
    color: var(--mbb-text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.mbb-ep-menu-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--mbb-primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.mbb-ep-menu-link:hover {
    background: var(--mbb-primary-light);
    color: var(--mbb-primary-dark);
    transform: translateX(4px);
}

.mbb-ep-menu-link.is-active {
    background: linear-gradient(135deg, var(--mbb-primary) 0%, var(--mbb-primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(66, 174, 214, 0.3);
}

.mbb-ep-menu-link.is-active::before {
    transform: scaleY(1);
}

.mbb-ep-menu-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.mbb-ep-menu-text {
    flex: 1;
}

/* Content Area */
.mbb-ep-content {
    position: relative;
    min-height: 400px;
}

.mbb-ep-view {
    display: none;
    animation: fadeIn 0.4s ease;
}

.mbb-ep-view.is-active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* View Header */
.mbb-ep-view-header {
    margin-bottom: 2rem;
}

.mbb-ep-view-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 0 0.5rem 0;
    color: var(--mbb-text-primary);
}

.mbb-ep-view-subtitle {
    font-size: 1rem;
    margin: 0;
    color: var(--mbb-text-secondary);
}

/* Data Cards Grid */
.mbb-ep-data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.mbb-ep-data-card {
    background: white;
    border: 2px solid var(--mbb-border);
    border-radius: var(--mbb-radius-sm);
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    transition: all 0.3s ease;
    box-shadow: var(--mbb-shadow);
}

.mbb-ep-data-card:hover {
    border-color: var(--mbb-primary);
    box-shadow: var(--mbb-shadow-lg);
    transform: translateY(-2px);
}

.mbb-ep-data-card--full {
    grid-column: 1 / -1;
}

.mbb-ep-data-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mbb-primary-light);
    border-radius: 12px;
}

.mbb-ep-data-content {
    flex: 1;
    min-width: 0;
}

.mbb-ep-data-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--mbb-text-secondary);
    margin-bottom: 0.5rem;
}

.mbb-ep-data-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--mbb-text-primary);
    word-wrap: break-word;
}

/* Empty State */
.mbb-ep-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: var(--mbb-radius);
    box-shadow: var(--mbb-shadow);
}

.mbb-ep-empty-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.6;
}

.mbb-ep-empty-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    color: var(--mbb-text-primary);
}

.mbb-ep-empty-text {
    font-size: 1rem;
    margin: 0;
    color: var(--mbb-text-secondary);
}

/* Provision Section */
.mbb-ep-provision-filter {
    background: white;
    border-radius: var(--mbb-radius-sm);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--mbb-shadow);
}

.mbb-ep-filter-form {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}

.mbb-ep-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-width: 150px;
}

.mbb-ep-filter-label {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--mbb-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mbb-ep-filter-select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--mbb-border);
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--mbb-text-primary);
    background: white;
    transition: border-color 0.3s ease;
    cursor: pointer;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.mbb-ep-filter-select:hover {
    border-color: var(--mbb-primary);
}

.mbb-ep-filter-select:focus,
.mbb-ep-filter-select:focus-visible {
    outline: none !important;
    border-color: var(--mbb-primary) !important;
    box-shadow: none !important;
}

.mbb-ep-filter-btn {
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, var(--mbb-primary) 0%, var(--mbb-primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--mbb-shadow);
}

.mbb-ep-filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 174, 214, 0.4);
}

/* Provision Slider */
.mbb-ep-provision-slider {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

.mbb-ep-slider-container {
    flex: 1;
    overflow: hidden;
    border-radius: var(--mbb-radius);
    width: 100%;
    box-sizing: border-box;
}

.mbb-ep-slider-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    box-sizing: border-box;
}

.mbb-ep-provision-card {
    background: linear-gradient(135deg, var(--mbb-primary) 0%, var(--mbb-primary-dark) 100%);
    color: white;
    border-radius: var(--mbb-radius);
    padding: 3rem 2.5rem;
    box-shadow: var(--mbb-shadow-lg);
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    overflow: visible;
    transition: all 0.3s ease;
    min-width: 100%;
    flex-shrink: 0;
    opacity: 0.3;
    box-sizing: border-box;
}

.mbb-ep-provision-card.is-active {
    opacity: 1;
}

/* Mystery-Background für Card 2 */
.mbb-ep-provision-card--mystery {
    background: linear-gradient(135deg, #6d28d9 0%, #4c1d95 100%) !important;
}

/* Status Badge oben rechts */
.mbb-ep-month-status {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10;
    text-align: right;
}

.mbb-ep-month-status--active {
    background: rgba(255, 255, 255, 0.95);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-left: 4px solid #10b981;
}

.mbb-ep-status-date {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.mbb-ep-status-days {
    font-size: 0.75rem;
    font-weight: 600;
    color: #10b981;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mbb-ep-month-status--closed {
    background: rgba(107, 114, 128, 0.95);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.mbb-ep-status-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mbb-ep-provision-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 0;
}

/* Kreis-Hintergrund bei individueller und Team-Provision entfernen */
.mbb-ep-provision-card--detailed::before,
.mbb-ep-provision-card--team::before {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: none !important;
    border: 0 !important;
}

.mbb-ep-slider-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--mbb-primary);
    background: white;
    color: var(--mbb-primary);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.mbb-ep-slider-arrow:hover {
    background: var(--mbb-primary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(66, 174, 214, 0.3);
}

.mbb-ep-slider-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: scale(1);
}

.mbb-ep-slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0rem;
}

.mbb-ep-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--mbb-border);
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.mbb-ep-dot:hover {
    border-color: var(--mbb-primary);
    transform: scale(1.2);
}

.mbb-ep-dot.is-active {
    background: var(--mbb-primary);
    border-color: var(--mbb-primary);
    transform: scale(1.3);
}

.mbb-ep-provision-icon {
    font-size: 5rem;
    line-height: 1;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    z-index: 1;
}

/* Team Provision: Icon oberhalb der Überschrift */
.mbb-ep-provision-card--team .mbb-ep-provision-icon--stack {
    display: block;
    margin: 0 auto 0.75rem auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.mbb-ep-provision-card--google .mbb-ep-provision-icon--stack {
    display: block;
    margin: 0 auto 0.5rem auto;
}

.mbb-ep-provision-content {
    flex: 1;
    z-index: 1;
    overflow: visible;
}

.mbb-ep-provision-content--full {
    width: 100%;
    overflow: visible;
}



.mbb-ep-provision-label {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.mbb-ep-provision-amount {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Google Reviews Card */
.mbb-ep-provision-card--google {
    background: linear-gradient(135deg, var(--mbb-primary) 0%, var(--mbb-primary-dark) 100%);
}

/* Team Provision Card */
.mbb-ep-provision-card--team {
    background: linear-gradient(135deg, #0ea5e9 0%, #0ea5e9 40%, #059669 100%);
}

.mbb-ep-google-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.5rem;
    margin: 0.75rem 0 1.25rem 0;
}

.mbb-ep-google-chip {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    padding: 0.5rem 0.85rem;
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mbb-ep-google-chip--blue { box-shadow: inset 0 0 0 2px rgba(66,133,244,0.35); }
.mbb-ep-google-chip--green { box-shadow: inset 0 0 0 2px rgba(52,168,83,0.35); }
.mbb-ep-google-chip--yellow { box-shadow: inset 0 0 0 2px rgba(251,188,5,0.45); }
.mbb-ep-google-chip--red { box-shadow: inset 0 0 0 2px rgba(234,67,53,0.35); }

.mbb-ep-google-progress {
    margin-top: 0.5rem;
}

.mbb-ep-google-title {
    margin: 0 0 0.75rem 0;
    font-size: 1.35rem;
    font-weight: 900;
    background: linear-gradient(90deg, #4285F4, #EA4335, #FBBC05, #34A853);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (min-width: 769px) {
    .mbb-ep-google-title {
        font-size: 1.85rem;
    }
}

.mbb-ep-google-progress-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: #fff;
    margin-bottom: 0.5rem;
}

.mbb-ep-google-progress-label {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
}

/* Prozentanzeige entfällt */

.mbb-ep-google-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin: 0.5rem 0 1.25rem 0;
}

.mbb-ep-google-stat {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 12px;
    padding: 0.9rem 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.mbb-ep-google-stat-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9);
    margin-bottom: 0.35rem;
}

.mbb-ep-google-stat-value {
    font-size: 1.6rem;
    font-weight: 900;
    color: #fff;
}

.mbb-ep-google-stat--team { border-left: 4px solid #4285F4; }
.mbb-ep-google-stat--perhead { border-left: 4px solid #34A853; }
.mbb-ep-google-stat--mentions { border-left: 4px solid #FBBC05; }
.mbb-ep-google-stat--mentions-bonus { border-left: 4px solid #EA4335; }

.mbb-ep-google-progress-bar {
    position: relative;
    height: 20px;
    background: rgba(255,255,255,0.25);
    border-radius: 999px;
    overflow: visible;
    border: 1px solid rgba(255,255,255,0.3);
    margin-bottom: 0.5rem;
}

.mbb-ep-google-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, #4285F4, #EA4335, #FBBC05, #34A853);
    border-radius: 999px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.mbb-ep-google-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
}

.mbb-ep-google-marker-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid rgba(0,0,0,0.2);
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

/* Marker-Tick-Linie deaktiviert – Punkte sitzen im Balken */
.mbb-ep-google-marker::before { display: none; }

.mbb-ep-google-marker--blue .mbb-ep-google-marker-dot { border-color: #4285F4; }
.mbb-ep-google-marker--yellow .mbb-ep-google-marker-dot { border-color: #FBBC05; }
.mbb-ep-google-marker--green .mbb-ep-google-marker-dot { border-color: #34A853; }
.mbb-ep-google-marker--red .mbb-ep-google-marker-dot { border-color: #EA4335; }

.mbb-ep-google-marker.is-reached .mbb-ep-google-marker-dot {
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255,255,255,0.35), 0 0 18px rgba(255,255,255,0.8);
}

.mbb-ep-google-marker-label {
    display: block;
    margin-top: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255,255,255,0.95);
    white-space: nowrap;
}

/* Aktuelles Level hervorheben */
.mbb-ep-google-marker.is-current-level .mbb-ep-google-marker-label {
    background: #ffffff;
    color: #4285F4;
    padding: 4px 8px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.05);
}

.mbb-ep-google-marker.is-current-level .mbb-ep-google-marker-dot {
    transform: scale(1.15);
    box-shadow: 0 0 0 6px rgba(66,133,244,0.35), 0 0 18px rgba(66,133,244,0.7);
}

.mbb-ep-google-marker-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(calc(-50% + 8px)) scale(0.9);
    background: rgba(17, 24, 39, 0.95);
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}

.mbb-ep-google-marker.is-tooltip-left .mbb-ep-google-marker-tooltip {
    left: auto;
    right: -40px; /* noch weiter nach rechts */
    transform: translateX(0) scale(0.9);
}

.mbb-ep-google-marker.is-tooltip-left .mbb-ep-google-marker-tooltip::after {
    left: auto;
    right: 12px; /* Pfeil näher an den rechten Rand */
}

.mbb-ep-google-marker.is-tooltip-right .mbb-ep-google-marker-tooltip {
    left: 0;
    transform: translateX(0) scale(0.9);
}

.mbb-ep-google-marker.is-tooltip-right .mbb-ep-google-marker-tooltip::after {
    left: 10px;
}

.mbb-ep-google-marker-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(17, 24, 39, 0.95);
}

.mbb-ep-google-marker:hover .mbb-ep-google-marker-tooltip,
.mbb-ep-google-marker:focus .mbb-ep-google-marker-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(calc(-50% + 8px)) scale(1);
}

.mbb-ep-google-next {
    display: inline-block;
    margin-top: 0.6rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.mbb-ep-google-next-title {
    font-size: 1rem;
    font-weight: 800;
    color: #ffffff;
}

.mbb-ep-level-pill {
    display: inline-block;
    background: #ffffff;
    color: #4285F4;
    font-weight: 900;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    line-height: 1.2;
}

.mbb-ep-google-next-sub {
    font-size: 0.9rem;
    font-weight: 700;
    color: rgba(255,255,255,0.95);
    margin-top: 4px;
}

/* Grüne Box für Gesamtprovision (nur in Card 1) */
.mbb-ep-total-highlight {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
    margin-bottom: 1.5rem;
    display: inline-block;
    text-align: left;
}

.mbb-ep-total-highlight .mbb-ep-provision-label {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1rem;
}

.mbb-ep-total-highlight .mbb-ep-provision-amount {
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.75rem;
}

.mbb-ep-total-highlight .mbb-ep-provision-period {
    color: rgba(255, 255, 255, 0.9);
}

.mbb-ep-provision-period {
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0.95;
    margin-top: 0.5rem;
}

/* Provision Breakdown (Gesamtprovision) */
.mbb-ep-provision-breakdown {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid rgba(255, 255, 255, 0.25);
}

.mbb-ep-breakdown-title {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1rem;
    text-align: left;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.mbb-ep-breakdown-item {
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    border-left: 3px solid var(--mbb-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.mbb-ep-breakdown-item:last-child {
    margin-bottom: 0;
}

.mbb-ep-breakdown-calculation {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.mbb-ep-breakdown-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1f2937;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mbb-ep-breakdown-formula {
    font-size: 0.95rem;
    color: #111827;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.mbb-ep-breakdown-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.mbb-ep-breakdown-amount {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--mbb-primary);
}

.mbb-ep-breakdown-percent {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    background: rgba(16, 185, 129, 0.1);
    padding: 0.5rem 0.85rem;
    border-radius: 20px;
}

.mbb-ep-percent-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: #10b981;
    line-height: 1;
}

.mbb-ep-percent-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #059669;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

/* Provision Details */
.mbb-ep-provision-details {
    margin-top: 2.5rem;
    overflow: visible;
    width: 100%;
    box-sizing: border-box;
}

.mbb-ep-provision-calculation {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mbb-ep-calc-label {
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mbb-ep-calc-formula {
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.mbb-ep-provision-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.mbb-ep-provision-sales,
.mbb-ep-provision-rate {
    font-size: 1rem;
    opacity: 0.95;
}

.mbb-ep-provision-level {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.mbb-ep-level-mystery {
    background: rgba(255, 215, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.5);
}

.mbb-ep-level-top {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Progress Bar */
.mbb-ep-progress-wrapper {
    margin-top: 2rem;
    overflow: visible;
    width: 100%;
    box-sizing: border-box;
}

.mbb-ep-progress-info {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.mbb-ep-progress-label {
    display: inline-block;
}

.mbb-ep-progress-percent {
    display: none;
}

.mbb-ep-progress-bar {
    position: relative;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    overflow: visible;
    backdrop-filter: blur(10px);
    margin-bottom: 3.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mbb-ep-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, #059669, #10b981, #14b8a6);
    border-radius: 999px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.mbb-ep-progress-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: progressShine 4s infinite;
}

@keyframes progressShine {
    0% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}

.mbb-ep-progress-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    cursor: pointer;
}

/* Tooltip */
.mbb-ep-marker-tooltip {
    position: absolute;
    bottom: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background: rgba(17, 24, 39, 0.95);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    z-index: 100;
}

/* Verhindere Abschneiden rechts/links bei generischen Markern */
.mbb-ep-progress-marker.is-tooltip-left .mbb-ep-marker-tooltip {
    left: auto;
    right: -40px; /* Standard für rechte Marker */
    transform: translateX(0) scale(0.8);
}

.mbb-ep-progress-marker.is-tooltip-left .mbb-ep-marker-tooltip::after {
    left: auto;
    right: 12px; /* Pfeil näher an den rechten Rand */
}

/* Google: rechter Marker noch weiter nach rechts (zusätzliche 12px) */
.mbb-ep-google-progress-bar .mbb-ep-progress-marker.is-tooltip-left .mbb-ep-marker-tooltip {
    right: -62px;
}

.mbb-ep-progress-marker.is-tooltip-right .mbb-ep-marker-tooltip {
    left: 0;
    transform: translateX(0) scale(0.8);
}

.mbb-ep-progress-marker.is-tooltip-right .mbb-ep-marker-tooltip::after {
    left: 10px;
}

.mbb-ep-marker-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(17, 24, 39, 0.95);
}

.mbb-ep-progress-marker:hover .mbb-ep-marker-tooltip,
.mbb-ep-progress-marker:active .mbb-ep-marker-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}

/* Gold Tooltip für erreichte Level */
.mbb-ep-progress-marker.is-reached .mbb-ep-marker-tooltip {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1f2937;
    font-weight: 700;
}

.mbb-ep-progress-marker.is-reached .mbb-ep-marker-tooltip::after {
    border-top-color: #FFA500;
}

/* Mystery Tooltip - spezielle lila Farbe */
.mbb-ep-progress-marker.is-mystery .mbb-ep-marker-tooltip {
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
    color: white;
    font-weight: 800;
    max-width: 300px;
    white-space: normal;
    text-align: center;
}

.mbb-ep-progress-marker.is-mystery .mbb-ep-marker-tooltip::after {
    border-top-color: #8b5cf6;
}

.mbb-ep-marker-dot {
    display: block;
    width: 22px;
    height: 22px;
    background: rgba(255, 255, 255, 0.5);
    border: 4px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.mbb-ep-progress-marker.is-reached .mbb-ep-marker-dot {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-color: #FFD700;
    box-shadow: 0 0 0 5px rgba(255, 215, 0, 0.3), 0 0 15px rgba(255, 215, 0, 0.4);
}

.mbb-ep-marker-label {
    position: absolute;
    top: -38px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0.9;
}

/* Mystery Label auf Desktop ausblenden (Mobile hat die Box!) */
.mbb-ep-progress-marker.is-mystery .mbb-ep-marker-label {
    display: none !important;
}

/* Auf Desktop: Mystery Amount und Label anzeigen */
@media (min-width: 769px) {
    .mbb-ep-progress-marker.is-mystery .mbb-ep-marker-label {
        display: block !important;
    }
    
    /* Mystery Text (Box) auf Desktop ausblenden */
    .mbb-ep-progress-marker.is-mystery .mbb-ep-mystery-text {
        display: none !important;
    }
    
    .mbb-ep-progress-marker.is-mystery .mbb-ep-mystery-amount {
        font-size: 0.85rem !important;
        font-weight: 700;
        color: rgba(255, 255, 255, 0.95);
        background: none !important;
        -webkit-background-clip: initial !important;
        -webkit-text-fill-color: initial !important;
        background-clip: initial !important;
        animation: none !important;
        margin: 0 !important;
        display: block;
    }
    
    .mbb-ep-progress-marker.is-mystery .mbb-ep-mystery-label {
        position: absolute;
        top: 70px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 0.7rem;
        font-weight: 600;
        color: rgba(167, 139, 250, 1);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        white-space: nowrap;
        display: block;
    }
}

.mbb-ep-marker-percent {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.25);
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    line-height: 1.3;
    text-align: center;
}

.mbb-ep-progress-marker.is-mystery .mbb-ep-marker-dot {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
    border-color: var(--mbb-accent);
    border-width: 5px;
    box-shadow: 0 0 0 6px rgba(139, 92, 246, 0.3), 0 0 25px rgba(139, 92, 246, 0.6);
    animation: mysteryPulse 2s infinite;
    cursor: pointer;
}

.mbb-ep-progress-marker.is-mystery .mbb-ep-marker-dot:hover {
    transform: scale(1.15);
    box-shadow: 0 0 0 8px rgba(139, 92, 246, 0.4), 0 0 35px rgba(139, 92, 246, 0.8);
}

.mbb-ep-progress-marker.is-mystery .mbb-ep-marker-percent {
    background: rgba(139, 92, 246, 0.3);
    border-color: rgba(139, 92, 246, 0.4);
    color: white;
    font-weight: 800;
    font-size: 0.9rem;
    padding: 6px 12px;
    top: 35px;
}

.mbb-ep-progress-marker.is-mystery.is-reached .mbb-ep-marker-dot {
    animation: mysteryGlow 1.5s infinite;
}

@keyframes mysteryPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

@keyframes mysteryGlow {
    0%, 100% { 
        box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.4), 0 0 20px rgba(139, 92, 246, 0.5);
    }
    50% { 
        box-shadow: 0 0 0 6px rgba(139, 92, 246, 0.6), 0 0 30px rgba(139, 92, 246, 0.8);
    }
}

.mbb-ep-motivation {
    margin-top: 4rem;
    padding: 1.5rem 1.75rem;
    background: #ffffff;
    border-radius: 12px;
    text-align: center;
    border: 3px solid var(--mbb-primary);
    box-shadow: 0 6px 20px rgba(66, 174, 214, 0.25);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mbb-ep-motivation-text {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.5;
    color: #374151;
}

.mbb-ep-motivation-text strong {
    font-weight: 800;
    color: var(--mbb-primary);
}

.mbb-ep-motivation-goal {
    font-size: 0.95rem;
    padding-top: 1rem;
    border-top: 2px solid var(--mbb-primary);
    font-weight: 500;
    color: #374151;
}

.mbb-ep-motivation-goal strong {
    font-weight: 800;
    color: var(--mbb-primary);
}

@keyframes motivationPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 6px 20px rgba(66, 174, 214, 0.25);
    }
    50% { 
        transform: scale(1.02);
        box-shadow: 0 8px 28px rgba(66, 174, 214, 0.4);
    }
}

/* Mystery Level - Spezielle Darstellung */
.mbb-ep-provision-card--detailed {
    align-items: stretch;
}

/* Visuelle Zentrierung in der individuellen Provisionskarte (Inhalt etwas nach unten) */
.mbb-ep-provision-card--detailed .mbb-ep-provision-icon,
.mbb-ep-provision-card--detailed .mbb-ep-provision-content {
    margin-top: 0.75rem;
}

/* Mehr Top-Padding nur für die individuelle Provisionskarte, damit oben/unten optisch gleich viel Platz ist */
@media (min-width: 769px) {
    .mbb-ep-provision-card--detailed {
        padding-top: 9rem;
    }
    .mbb-ep-provision-card--detailed .mbb-ep-provision-icon {
        margin-top: 1rem;
    }
    .mbb-ep-provision-card--detailed .mbb-ep-provision-content {
        padding-top: 0.5rem;
    }
}

.mbb-ep-mystery-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 0;
    z-index: 1;
}

.mbb-ep-mystery-icon {
    font-size: 6rem;
    margin-bottom: 1.5rem;
    animation: mysteryFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 8px 16px rgba(255, 215, 0, 0.5));
}

@keyframes mysteryFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.mbb-ep-mystery-content {
    width: 100%;
    max-width: 600px;
}

.mbb-ep-mystery-amount {
    font-size: 4rem !important;
    background: linear-gradient(135deg, #FFD700, #FFA500, #FFD700);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: mysteryShine 3s linear infinite;
    margin: 1rem 0;
}

@keyframes mysteryShine {
    to { background-position: 200% center; }
}

.mbb-ep-mystery-badge {
    display: inline-block;
    padding: 1rem 2rem;
    background: rgba(255, 215, 0, 0.2);
    border: 3px solid #FFD700;
    border-radius: 999px;
    font-size: 1.1rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 1.5rem 0;
    animation: mysteryPulse 2s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5), inset 0 0 20px rgba(255, 215, 0, 0.2);
}

/* Mystery Eigenumsatz Box */
.mbb-ep-mystery-sales-box {
    background: rgba(255, 255, 255, 0.15);
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.25);
}

.mbb-ep-mystery-sales-label {
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.mbb-ep-mystery-sales-amount {
    font-size: 2rem;
    font-weight: 900;
    color: white;
}

/* Mystery Zielerreichung Section */
.mbb-ep-mystery-progress-section {
    margin: 1.5rem 0;
}

.mbb-ep-mystery-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.mbb-ep-mystery-progress-label {
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.9;
}

.mbb-ep-mystery-progress-percent {
    font-size: 1.5rem;
    font-weight: 900;
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.mbb-ep-mystery-progress-bar {
    width: 100%;
    height: 30px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    overflow: hidden;
    border: 2px solid rgba(255, 215, 0, 0.4);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

.mbb-ep-mystery-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FFD700, #FFA500, #FFD700);
    background-size: 200% auto;
    border-radius: 999px;
    animation: mysteryShine 3s linear infinite;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    transition: width 0.6s ease;
}

.mbb-ep-mystery-congrats {
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0.95;
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

/* Payroll Section */
.mbb-ep-year-filter {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.mbb-ep-year-btn {
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid var(--mbb-border);
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--mbb-text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--mbb-shadow);
}

.mbb-ep-year-btn:hover {
    border-color: var(--mbb-primary);
    color: var(--mbb-primary);
    transform: translateY(-2px);
    box-shadow: var(--mbb-shadow-lg);
}

.mbb-ep-year-btn.is-active {
    background: linear-gradient(135deg, var(--mbb-primary) 0%, var(--mbb-primary-dark) 100%);
    color: white;
    border-color: var(--mbb-primary);
    box-shadow: 0 4px 12px rgba(66, 174, 214, 0.3);
}

.mbb-ep-year-block {
    display: none;
}

.mbb-ep-year-block[data-year].is-active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.mbb-ep-payroll-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.mbb-ep-payroll-card {
    background: white;
    border: 2px solid var(--mbb-border);
    border-radius: var(--mbb-radius-sm);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    transition: all 0.3s ease;
    box-shadow: var(--mbb-shadow);
}

.mbb-ep-payroll-card:hover {
    border-color: var(--mbb-primary);
    box-shadow: var(--mbb-shadow-lg);
    transform: translateY(-2px);
}

.mbb-ep-payroll-icon {
    font-size: 2.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.mbb-ep-payroll-content {
    flex: 1;
    min-width: 0;
}

.mbb-ep-payroll-month {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: var(--mbb-text-primary);
    white-space: nowrap;          /* Default: kompakt */
    word-break: keep-all;
    hyphens: none;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mbb-ep-payroll-file {
    font-size: 0.85rem;
    margin: 0;
    color: var(--mbb-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mbb-ep-payroll-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.mbb-ep-payroll-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.25rem;
    background: var(--mbb-primary-light);
    border: 2px solid var(--mbb-primary);
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--mbb-primary-dark);
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
}

.mbb-ep-payroll-btn:hover {
    background: var(--mbb-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 174, 214, 0.3);
}

.mbb-ep-payroll-btn--view {
    border-color: var(--mbb-primary);
}

.mbb-ep-payroll-btn--download {
    border-color: var(--mbb-primary-dark);
    background: rgba(46, 146, 181, 0.1);
    color: var(--mbb-primary-dark);
}

.mbb-ep-payroll-btn--download:hover {
    background: var(--mbb-primary-dark);
    color: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .mbb-ep-container {
        grid-template-columns: 1fr;
    }

    .mbb-ep-sidebar {
        position: static;
    }

    .mbb-ep-nav {
        flex-direction: row;
        overflow-x: auto;
    }

    .mbb-ep-menu-link {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        padding: 1rem;
        min-width: 100px;
    }

    .mbb-ep-menu-link:hover {
        transform: translateY(-2px);
    }

    .mbb-ep-menu-icon {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    /* Mobile: Basis-Kreis-Hintergrund global entfernen */
    .mbb-ep-provision-card::before,
    .mbb-ep-provision-card::after {
        content: none !important;
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        background: none !important;
        border: 0 !important;
    }
    /* Sicherheit: Teamkarte schneidet alles außerhalb ab */
    .mbb-ep-provision-card--team {
        overflow: hidden !important;
    }
    /* Level-Pill zusammenhalten und nicht umbrechen */
    .mbb-ep-level-pill {
        white-space: nowrap !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
    }
    /* Extra viel Abstand in Motivationsboxen (nur Motivationsspruch-Boxen) */
    .mbb-ep-motivation .mbb-ep-motivation-text { line-height: 2.2 !important; }
    .mbb-ep-motivation .mbb-ep-motivation-goal { line-height: 2.0 !important; }
    .mbb-ep-motivation .mbb-ep-motivation-text .mbb-ep-pill-blue {
        margin-top: 4px !important;
        margin-bottom: 4px !important;
        padding: 2px 8px !important;
    }
    /* Mehr vertikaler Abstand in der Google-Bewertungs-Box */
    .mbb-ep-provision-card--google .mbb-ep-google-progress { margin-top: 1rem; }
    .mbb-ep-provision-card--google .mbb-ep-google-progress-header { margin-bottom: 2rem; }
    .mbb-ep-provision-card--google .mbb-ep-google-progress-bar { margin-bottom: 1rem; }
    .mbb-ep-provision-card--google .mbb-ep-google-next { margin-top: 1rem; }
    .mbb-ep-provision-card--google .mbb-ep-google-next-title { margin-bottom: 0.25rem; }
    /* Month status badge (oben rechts) kompakter auf Mobile */
    .mbb-ep-month-status {
        top: 0.75rem;
        right: 0.75rem;
    }

    .mbb-ep-month-status--active {
        padding: 0.5rem 0.6rem;
        border-radius: 8px;
        border-left-width: 3px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    }

    .mbb-ep-status-date {
        font-size: 0.8rem;
        margin-bottom: 0.15rem;
    }

    .mbb-ep-status-days {
        font-size: 0.65rem;
        letter-spacing: 0.3px;
    }

    .mbb-ep-month-status--closed {
        padding: 0.4rem 0.6rem;
        border-radius: 16px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    }
    .mbb-ep-portal {
        padding: 1rem;
    }

    .mbb-ep-welcome {
        padding: 2rem 1.5rem;
    }

    .mbb-ep-welcome-title {
        font-size: 1.5rem;
    }

    .mbb-ep-welcome-subtitle {
        font-size: 1rem;
    }

    .mbb-ep-data-grid {
        grid-template-columns: 1fr;
    }

    .mbb-ep-payroll-grid {
        grid-template-columns: 1fr;
    }

    .mbb-ep-view-title {
        font-size: 1.5rem;
    }

    .mbb-ep-provision-slider {
        display: block !important;
        gap: 0;
        width: 100%;
        max-width: 100%;
        overflow: visible;
    }

    .mbb-ep-slider-arrow {
        display: none !important;
    }
    
    .mbb-ep-slider-container {
        width: 100%;
        max-width: 100%;
        overflow: visible;
    }
    
    .mbb-ep-slider-track {
        display: block !important;
        width: 100%;
        max-width: 100%;
        transform: none !important;
    }

    .mbb-ep-provision-card {
        display: flex !important;
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1rem;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: visible;
        opacity: 1 !important;
        margin-bottom: 1.5rem;
    }

    .mbb-ep-provision-icon {
        font-size: 3.5rem;
    }

    .mbb-ep-provision-amount {
        font-size: 2rem;
    }
    
    .mbb-ep-provision-card--detailed {
        padding: 1.5rem 1rem;
    }
    
    .mbb-ep-provision-meta {
        gap: 0.5rem;
    }
    
    .mbb-ep-provision-sales {
        font-size: 0.85rem;
    }
    
    .mbb-ep-provision-level {
        font-size: 0.85rem;
        padding: 0.4rem 0.75rem;
    }
    
    .mbb-ep-provision-details {
        margin-top: 1.5rem;
    }
    
    .mbb-ep-provision-calculation {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
    
    .mbb-ep-calc-label {
        font-size: 0.8rem;
    }
    
    .mbb-ep-calc-formula {
        font-size: 0.85rem;
    }

    .mbb-ep-provision-meta {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .mbb-ep-marker-label {
        font-size: 0.65rem;
        top: -30px;
    }

    .mbb-ep-marker-percent {
        font-size: 0.6rem;
        padding: 3px 6px;
        top: 26px;
    }
    
    .mbb-ep-progress-bar {
        height: 28px;
        margin-bottom: 3rem;
    }
    
    .mbb-ep-marker-dot {
        width: 18px;
        height: 18px;
        border-width: 3px;
    }
    
    .mbb-ep-progress-marker.is-mystery .mbb-ep-marker-dot {
        width: 26px;
        height: 26px;
        border-width: 4px;
    }
    
    .mbb-ep-progress-marker.is-mystery .mbb-ep-marker-percent {
        font-size: 0.65rem;
        padding: 4px 8px;
        top: 30px;
    }
    
    .mbb-ep-progress-info {
        margin-bottom: 0.6rem;
        font-size: 0.8rem;
        text-align: center;
    }
    
    .mbb-ep-progress-label {
        font-size: 0.8rem;
    }
    
    /* Breakdown Items kompakter */
    .mbb-ep-breakdown-item {
        padding: 0.5rem;
    }
    
    .mbb-ep-breakdown-calculation {
        flex-direction: column;
        gap: 0.25rem;
        text-align: left;
    }
    
    .mbb-ep-breakdown-result {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
        padding-top: 0.5rem;
    }
    
    .mbb-ep-breakdown-amount {
        font-size: 1.15rem;
    }
    
    .mbb-ep-breakdown-percent {
        align-self: flex-start;
    }

    .mbb-ep-next-goal {
        font-size: 0.85rem;
    }

    .mbb-ep-provision-sales {
        font-size: 0.9rem;
    }

    .mbb-ep-provision-level {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }

    .mbb-ep-mystery-icon {
        font-size: 3.5rem;
    }

    .mbb-ep-mystery-amount {
        font-size: 2.25rem !important;
    }

    .mbb-ep-mystery-badge {
        font-size: 0.85rem;
        padding: 0.7rem 1.25rem;
        margin: 1rem 0;
    }
    
    .mbb-ep-mystery-sales-box {
        padding: 1rem 1.25rem;
        margin: 1rem 0;
    }
    
    .mbb-ep-mystery-sales-label {
        font-size: 0.75rem;
    }
    
    .mbb-ep-mystery-sales-amount {
        font-size: 1.5rem;
    }
    
    .mbb-ep-mystery-progress-section {
        margin: 1rem 0;
    }
    
    .mbb-ep-mystery-progress-label {
        font-size: 0.75rem;
    }
    
    .mbb-ep-mystery-progress-percent {
        font-size: 1.25rem;
    }
    
    .mbb-ep-mystery-progress-bar {
        height: 24px;
    }
    
    .mbb-ep-mystery-congrats {
        font-size: 0.95rem;
    }

    .mbb-ep-mystery-details {
        grid-template-columns: 1fr;
    }

    .mbb-ep-provision-calculation {
        padding: 0.75rem 1rem;
    }

    .mbb-ep-calc-formula {
        font-size: 1rem;
    }

    .mbb-ep-motivation {
        padding: 1.25rem 1.5rem;
    }

    .mbb-ep-motivation .mbb-ep-motivation-text {
        font-size: 1rem;
        line-height: 2.2;
    }

    .mbb-ep-motivation .mbb-ep-motivation-goal {
        font-size: 0.9rem;
        line-height: 2.0;
    }

    .mbb-ep-filter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .mbb-ep-filter-group {
        min-width: 100%;
    }

    .mbb-ep-filter-btn {
        width: 100%;
    }

    .mbb-ep-slider-dots {
        display: none !important;
    }

    .mbb-ep-provision-details,
    .mbb-ep-mystery-wrapper,
    .mbb-ep-mystery-content,
    .mbb-ep-provision-content,
    .mbb-ep-provision-content--full {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }
    
    .mbb-ep-progress-wrapper,
    .mbb-ep-progress-bar {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }
    
    .mbb-ep-provision-calculation {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .mbb-ep-calc-formula {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .mbb-ep-total-highlight {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .mbb-ep-provision-breakdown {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .mbb-ep-breakdown-item {
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 480px) {
    .mbb-ep-payroll-month {
        font-size: 1rem;
        white-space: nowrap;     /* alles in einer Zeile halten */
        overflow: visible;
        text-overflow: clip;
        word-break: keep-all;    /* keine Trennung in der Mitte */
        hyphens: none;
        line-height: 1.25;
        margin-bottom: 0.75rem;
    }
    .mbb-ep-portal {
        padding: 0.75rem;
    }

    .mbb-ep-welcome {
        padding: 1.5rem 1rem;
    }

    .mbb-ep-welcome-title {
        font-size: 1.25rem;
    }

    .mbb-ep-menu-link {
        padding: 0.75rem 0.5rem;
        min-width: 80px;
        font-size: 0.85rem;
    }

    .mbb-ep-data-card,
    .mbb-ep-payroll-card {
        padding: 1rem;
    }

    .mbb-ep-data-icon {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .mbb-ep-payroll-btn {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }

    /* Lohnabrechnung: Titel volle Breite, Buttons darunter */
    .mbb-ep-payroll-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .mbb-ep-payroll-content,
    .mbb-ep-payroll-actions {
        width: 100%;
        flex: 0 0 auto;
    }

    /* Google Fortschritt: Verhindere, dass Label rechts rausläuft */
    .mbb-ep-google-progress-bar .mbb-ep-progress-marker.is-tooltip-left .mbb-ep-marker-label {
        left: auto;
        right: 2px;
        transform: translateX(0);
        max-width: 140px;
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
        text-align: right;
        line-height: 1.2;
    }

    /* Level-Pill: zusammenhalten und etwas größer */
    .mbb-ep-level-pill {
        font-size: 0.9rem;
        padding: 3px 10px;
        max-width: 100%;
        white-space: nowrap; /* Level und Zahl zusammenhalten */
        overflow: visible;
        text-overflow: clip;
        display: inline-block;
    }

    /* Titel leicht nach links verschieben (Platz rechts) */
    .mbb-ep-google-next-title {
        display: block;
        white-space: normal;
        word-break: keep-all;
        overflow-wrap: anywhere;
        padding-right: 12px;
    }

    .mbb-ep-provision-slider {
        display: block !important;
        gap: 0;
        width: 100%;
        max-width: 100%;
        overflow: visible;
        margin: 0;
    }

    .mbb-ep-slider-arrow {
        display: none !important;
    }
    
    .mbb-ep-slider-container {
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible;
    }
    
    .mbb-ep-slider-track {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        transform: none !important;
    }

    .mbb-ep-provision-card {
        display: flex !important;
        flex-direction: column;
        padding: 1.5rem 1rem !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: visible !important;
        margin: 0 0 1.5rem 0 !important;
        opacity: 1 !important;
    }
    
    .mbb-ep-provision-card--detailed {
        display: flex !important;
        flex-direction: column;
        padding: 1.5rem 1rem !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: visible !important;
        margin: 0 0 1.5rem 0 !important;
        opacity: 1 !important;
    }
    
    .mbb-ep-progress-wrapper,
    .mbb-ep-progress-bar {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    .mbb-ep-provision-icon {
        font-size: 2.5rem;
    }

    .mbb-ep-provision-amount {
        font-size: 1.75rem;
        word-wrap: break-word;
    }
    
    .mbb-ep-provision-label {
        font-size: 0.85rem;
    }
    
    .mbb-ep-provision-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
        text-align: center;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .mbb-ep-provision-sales {
        font-size: 0.85rem;
        word-wrap: break-word;
    }
    
    .mbb-ep-provision-level {
        font-size: 0.85rem;
        padding: 0.4rem 0.75rem;
    }
    
    .mbb-ep-provision-details {
        margin-top: 1.25rem;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }
    
    .mbb-ep-provision-calculation {
        padding: 0.65rem 0.85rem;
        font-size: 0.8rem;
        margin-bottom: 1.5rem;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .mbb-ep-provision-content,
    .mbb-ep-provision-content--full {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden;
    }
    
    .mbb-ep-calc-label {
        font-size: 0.75rem;
    }
    
    .mbb-ep-calc-formula {
        font-size: 0.8rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .mbb-ep-mystery-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        padding: 1.5rem 0.5rem !important;
    }
    
    .mbb-ep-mystery-content {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .mbb-ep-mystery-sales-box {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Säulen-Design für Mobile - aufsteigende Höhen wie Treppen */
    .mbb-ep-progress-bar {
        display: flex !important;
        justify-content: space-between;
        align-items: flex-end;
        height: 220px;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        margin-bottom: 0.5rem;
        margin-top: 2.5rem;
        padding: 0;
        gap: 0.3rem;
        width: 100%;
        max-width: 100%;
        backdrop-filter: none !important;
        position: relative;
    }
    
    .mbb-ep-progress-fill {
        display: none;
    }
    
    .mbb-ep-progress-bar .mbb-ep-progress-marker {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
    }
    
    /* Individuelle Höhen für jeden Marker - Treppen-Effekt */
    .mbb-ep-progress-bar .mbb-ep-progress-marker:nth-child(2) { height: 80px; }   /* 3k - kleinste */
    .mbb-ep-progress-bar .mbb-ep-progress-marker:nth-child(3) { height: 110px; }  /* 6k */
    .mbb-ep-progress-bar .mbb-ep-progress-marker:nth-child(4) { height: 140px; }  /* 8k */
    .mbb-ep-progress-bar .mbb-ep-progress-marker:nth-child(5) { height: 170px; }  /* 9k */
    .mbb-ep-progress-bar .mbb-ep-progress-marker:nth-child(6) { height: 190px; }  /* 12k */
    .mbb-ep-progress-bar .mbb-ep-progress-marker:nth-child(7) { height: 220px; }  /* 14k */
    
    /* Mystery - höchste Säule */
    .mbb-ep-progress-bar .mbb-ep-progress-marker.is-mystery {
        height: 220px !important;
    }
    
    .mbb-ep-progress-bar .mbb-ep-marker-dot {
        display: none;
    }
    
    /* Säulen-Container - nimmt 100% der Parent-Höhe */
    .mbb-ep-progress-bar .mbb-ep-progress-marker::before {
        content: '';
        width: 100%;
        height: 100%;
        background: linear-gradient(to top, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
        border: 2px solid rgba(255, 255, 255, 0.25);
        border-radius: 8px;
        transition: all 0.5s ease;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        order: 2;
    }
    
    /* Füll-Effekt - Ausgeblichenes Gelb für teilweise gefüllt */
    .mbb-ep-progress-bar .mbb-ep-progress-marker::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        background: linear-gradient(to top, rgba(255, 215, 0, 0.3), rgba(255, 215, 0, 0.2));
        border: 2px solid rgba(255, 215, 0, 0.4);
        border-radius: 8px;
        transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 2px 8px rgba(255, 215, 0, 0.2);
        height: var(--fill-height, 0%);
        z-index: 1;
    }
    
    /* Voll erreichte Levels - Leuchtendes Gold! */
    .mbb-ep-progress-bar .mbb-ep-progress-marker.is-reached::after {
        background: linear-gradient(to top, #FF8C00, #FFD700, #FFED4E);
        border-color: #FFD700;
        box-shadow: 0 4px 25px rgba(255, 215, 0, 0.8), 0 0 40px rgba(255, 215, 0, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.3);
    }
    
    /* Hover-Effekt für erreichte Balken */
    .mbb-ep-progress-bar .mbb-ep-progress-marker.is-reached {
        transition: all 0.3s ease;
    }
    
    .mbb-ep-progress-bar .mbb-ep-progress-marker.is-reached:hover::after {
        transform: scale(1.05);
        box-shadow: 0 6px 40px rgba(255, 215, 0, 1), 0 0 60px rgba(255, 215, 0, 0.9), inset 0 0 30px rgba(255, 255, 255, 0.5) !important;
    }
    
    .mbb-ep-progress-bar .mbb-ep-progress-marker.is-reached:hover .mbb-ep-marker-label {
        transform: translateX(-50%) scale(1.1);
        text-shadow: 0 2px 8px rgba(255, 215, 0, 0.6);
    }
    
    /* Hover für Mystery erreicht */
    .mbb-ep-progress-bar .mbb-ep-progress-marker.is-mystery.is-reached:hover::after {
        transform: scale(1.05);
        box-shadow: 0 6px 40px rgba(139, 92, 246, 1), 0 0 60px rgba(139, 92, 246, 0.9), inset 0 0 30px rgba(255, 255, 255, 0.5) !important;
    }
    
    .mbb-ep-progress-bar .mbb-ep-progress-marker.is-mystery.is-reached:hover .mbb-ep-mystery-text {
        transform: scale(1.05);
    }
    
    /* Mystery teilweise gefüllt - Ausgeblichenes Lila (special!) */
    .mbb-ep-progress-bar .mbb-ep-progress-marker.is-mystery:not(.is-reached)::after {
        background: linear-gradient(to top, rgba(139, 92, 246, 0.3), rgba(167, 139, 250, 0.2));
        border: 2px solid rgba(139, 92, 246, 0.4);
        box-shadow: 0 2px 8px rgba(139, 92, 246, 0.2);
    }
    
    /* Mystery voll erreicht - Leuchtendes Lila! */
    .mbb-ep-progress-bar .mbb-ep-progress-marker.is-mystery.is-reached::after {
        background: linear-gradient(to top, #8b5cf6, #a78bfa, #c4b5fd);
        border-color: #a78bfa;
        box-shadow: 0 4px 25px rgba(139, 92, 246, 0.8), 0 0 40px rgba(139, 92, 246, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.3);
    }
    
    /* Mystery Label mit Sternen-Animation */
    .mbb-ep-progress-bar .mbb-ep-progress-marker.is-mystery.is-reached .mbb-ep-marker-label {
        animation: starShine 1.5s infinite;
    }

/* Final Override: Entferne jeglichen Kreis-Hintergrund bei Team- und Detail-Karten */
.mbb-ep-provision-card--team::before,
.mbb-ep-provision-card--team::after,
.mbb-ep-provision-card--detailed::before,
.mbb-ep-provision-card--detailed::after {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: none !important;
    border: 0 !important;
}

@media (max-width: 768px) {
    .mbb-ep-provision-card--team::before,
    .mbb-ep-provision-card--team::after,
    .mbb-ep-provision-card--detailed::before,
    .mbb-ep-provision-card--detailed::after {
        content: none !important;
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        background: none !important;
        border: 0 !important;
    }
}
    
    @keyframes starShine {
        0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
        50% { opacity: 0.8; transform: translateX(-50%) scale(1.1); }
    }
    
    .mbb-ep-progress-bar .mbb-ep-marker-label {
        position: absolute;
        top: -2rem;
        left: 50%;
        transform: translateX(-50%);
        font-size: 0.85rem;
        font-weight: 700;
        white-space: normal; /* darf umbrechen */
        overflow: visible;
        text-overflow: clip;
        max-width: 140px;
        color: rgba(255, 255, 255, 0.95);
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        line-height: 1.2;
        z-index: 10;
        order: 1;
    }
    
    .mbb-ep-progress-bar .mbb-ep-marker-percent {
        display: none !important;
    }
    
    /* Mystery Label - auf Desktop ausblenden */
    .mbb-ep-progress-bar .mbb-ep-progress-marker.is-mystery .mbb-ep-marker-label {
        display: none;
    }
    
    .mbb-ep-mystery-text {
        display: none;
        font-size: 0.65rem;
        letter-spacing: 0.3px;
        line-height: 1.4;
        text-align: center;
        animation: mysteryBoxFloat 2s ease-in-out infinite;
    }
    
    @keyframes mysteryBoxFloat {
        0%, 100% { 
            transform: translateY(0);
        }
        50% { 
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(139, 92, 246, 0.7), 0 0 25px rgba(139, 92, 246, 0.5);
        }
    }
    
    .mbb-ep-progress-bar .mbb-ep-marker-tooltip {
        display: none;
    }
    
    /* Mystery Label auf Mobile - LILA BOX anzeigen */
    .mbb-ep-progress-marker.is-mystery .mbb-ep-marker-label {
        display: block !important;
        top: -4.5rem;
    }
    
    /* Mystery Text - die LILA BOX auf Mobile */
    .mbb-ep-mystery-text {
        display: block !important;
        background: linear-gradient(135deg, #8b5cf6, #a78bfa);
        padding: 0.5rem 0.7rem;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(139, 92, 246, 0.5), 0 0 20px rgba(139, 92, 246, 0.3);
        border: 2px solid #a78bfa;
        color: white;
        font-weight: 800;
        font-size: 0.65rem;
        letter-spacing: 0.3px;
        line-height: 1.4;
        text-align: center;
        animation: mysteryBoxFloat 2s ease-in-out infinite;
    }
    
    /* Mystery Amount und Label auf Mobile ausblenden (nur Box zeigen!) */
    .mbb-ep-progress-marker.is-mystery .mbb-ep-mystery-amount,
    .mbb-ep-progress-marker.is-mystery .mbb-ep-mystery-label {
        display: none !important;
    }
    
    
    /* Mobile Popup für Progress-Marker Infos */
    .mbb-ep-marker-popup {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        z-index: 10000;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        padding: 1rem;
        box-sizing: border-box;
    }
    
    .mbb-ep-marker-popup.is-visible {
        opacity: 1;
        visibility: visible;
    }
    
    .mbb-ep-marker-popup-content {
        background: white;
        padding: 1.5rem;
        border-radius: 16px;
        max-width: 90%;
        width: 100%;
        max-width: 400px;
        position: relative;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        transform: scale(0.9);
        transition: transform 0.3s ease;
    }
    
    .mbb-ep-marker-popup.is-visible .mbb-ep-marker-popup-content {
        transform: scale(1);
    }
    
    .mbb-ep-marker-popup-close {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
        width: 2rem;
        height: 2rem;
        border: none;
        background: rgba(0, 0, 0, 0.1);
        border-radius: 50%;
        font-size: 1.5rem;
        line-height: 1;
        cursor: pointer;
        color: #666;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
    }
    
    .mbb-ep-marker-popup-close:hover {
        background: rgba(0, 0, 0, 0.2);
        color: #000;
    }
    
    .mbb-ep-marker-popup-text {
        font-size: 1rem;
        line-height: 1.6;
        color: #1f2937;
        font-weight: 600;
    }
    
    .mbb-ep-progress-info {
        margin-bottom: 0.6rem;
        font-size: 0.8rem;
        text-align: center;
    }
    
    .mbb-ep-progress-label {
        font-size: 0.8rem;
    }
    
    /* Breakdown Items kompakter */
    .mbb-ep-breakdown-item {
        padding: 0.5rem;
    }
    
    .mbb-ep-breakdown-calculation {
        flex-direction: column;
        gap: 0.25rem;
        text-align: left;
    }
    
    .mbb-ep-breakdown-result {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding-top: 0.5rem;
    }
    
    .mbb-ep-breakdown-amount {
        font-size: 1.15rem;
    }
    
    .mbb-ep-breakdown-percent {
        flex-shrink: 0;
    }

    .mbb-ep-next-goal {
        font-size: 0.85rem;
    }

    .mbb-ep-provision-sales {
        font-size: 0.9rem;
    }

    .mbb-ep-provision-level {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }

    .mbb-ep-mystery-icon {
        font-size: 3.5rem;
    }

    .mbb-ep-mystery-amount {
        font-size: 2.5rem !important;
    }

    .mbb-ep-mystery-badge {
        font-size: 0.75rem;
        padding: 0.6rem 1rem;
        letter-spacing: 0.5px;
        word-wrap: break-word;
        max-width: 100%;
        box-sizing: border-box;
    }

    .mbb-ep-mystery-value {
        font-size: 1.2rem;
    }

    .mbb-ep-mystery-congrats {
        font-size: 0.9rem;
        padding: 0.75rem;
        word-wrap: break-word;
    }
    
    .mbb-ep-mystery-progress-section {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .mbb-ep-mystery-progress-bar {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .mbb-ep-calc-formula {
        font-size: 0.95rem;
    }

    .mbb-ep-motivation {
        padding: 1rem 1.25rem;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .mbb-ep-motivation .mbb-ep-motivation-text {
        font-size: 0.95rem;
        word-wrap: break-word;
        line-height: 2.2 !important;
    }

    .mbb-ep-motivation .mbb-ep-motivation-goal {
        font-size: 0.85rem;
        padding-top: 0.75rem;
        word-wrap: break-word;
        line-height: 2.0 !important;
    }

    /* Blaue Pills in Motivationsboxen kompakter, damit Zeilen sich nicht berühren */
    .mbb-ep-motivation .mbb-ep-motivation-text .mbb-ep-pill-blue {
        padding: 2px 8px;
        line-height: 1.1;
        margin-top: 4px !important;
        margin-bottom: 4px !important;
        outline: 2px solid #ffffff;
        outline-offset: 0;
    }
    
    /* Mystery Elemente zusätzlich absichern */
    .mbb-ep-mystery-sales-amount {
        font-size: 1.5rem;
        word-wrap: break-word;
    }
    
    .mbb-ep-mystery-progress-label {
        font-size: 0.7rem;
        word-wrap: break-word;
    }
    
    /* Breakdown speziell für Mobile */
    .mbb-ep-breakdown-formula {
        font-size: 0.8rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .mbb-ep-breakdown-label {
        font-size: 0.75rem;
    }
    
    .mbb-ep-total-highlight {
        padding: 1rem 1.25rem !important;
        margin-bottom: 1rem !important;
    }
    
    .mbb-ep-provision-breakdown {
        margin-top: 1.5rem !important;
        padding-top: 1rem !important;
    }
}
