/* Entferne weiße Leiste oben und setze Hintergrundfarbe komplett */
body.mv-psy-dashboard-page,
html body.mv-psy-dashboard-page,
html.mv-psy-dashboard-page body,
body.mv-psy-dashboard-page,
html body .mv-psy-dashboard,
.mv-psy-dashboard {
    padding-top: 0 !important;
    margin-top: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Setze Hintergrundfarbe für body und html */
body.mv-psy-dashboard-page,
html body.mv-psy-dashboard-page {
    background: #fff !important;
    background-color: #fff !important;
}

html.mv-psy-dashboard-page,
html.mv-psy-dashboard-page body {
    background: #fff !important;
    background-color: #fff !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Login Container - !important um Elementor-Überschreibung zu verhindern */
.mv-psy-login-container {
    max-width: 400px !important;
    margin: 60px auto !important;
    padding: 40px !important;
    background: #fff !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important;
}

.mv-psy-login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.mv-psy-login-logo img {
    max-width: 200px;
    height: auto;
}

.mv-psy-login-container h2 {
    text-align: center !important;
    margin-bottom: 30px !important;
    color: #3D4E60 !important;
    font-family: 'Roboto Slab', Georgia, serif !important;
    font-size: 24px !important;
    font-weight: 600 !important;
}

.mv-psy-login-error {
    background: #ffebeb !important;
    border: 1px solid #d63638 !important;
    color: #d63638 !important;
    padding: 12px 16px !important;
    border-radius: 8px !important;
    margin-bottom: 20px !important;
    font-size: 14px !important;
    text-align: center !important;
}

#mv-psy-login-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

#mv-psy-login-form p {
    margin: 0 !important;
}

#mv-psy-login-form label {
    display: block !important;
    margin-bottom: 8px !important;
    font-weight: 600 !important;
    color: #3D4E60 !important;
    font-size: 14px !important;
}

#mv-psy-login-form input[type=\"text\"],
#mv-psy-login-form input[type=\"password\"] {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-family: 'Roboto Slab', Georgia, serif !important;
    color: #3D4E60 !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s !important;
}

#mv-psy-login-form input[type=\"text\"]:focus,
#mv-psy-login-form input[type=\"password\"]:focus {
    outline: none !important;
    border-color: #3D4E60 !important;
}

#mv-psy-login-form input[type=\"checkbox\"] {
    margin-right: 8px !important;
    width: 18px !important;
    height: 18px !important;
    cursor: pointer !important;
}

#mv-psy-login-form .forgetmenot {
    display: flex !important;
    align-items: center !important;
    font-size: 14px !important;
    color: #6c757d !important;
}

#mv-psy-login-form .forgetmenot label {
    margin: 0 !important;
    font-weight: 400 !important;
    cursor: pointer !important;
}

#mv-psy-login-form .submit {
    margin-top: 10px !important;
}

#mv-psy-login-form #wp-submit {
    width: 100% !important;
    padding: 14px 24px !important;
    background: #3D4E60 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    font-family: 'Roboto Slab', Georgia, serif !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
}

#mv-psy-login-form #wp-submit:hover {
    background: #2b3a46 !important;
}

.mv-psy-login-forgot {
    margin-top: 20px !important;
    text-align: center !important;
}

.mv-psy-login-container a {
    color: #3D4E60 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    transition: color 0.2s !important;
}

.mv-psy-login-container a:hover {
    color: #2b3a46 !important;
    text-decoration: underline !important;
}

/* Dashboard Container - Flexbox Layout */
.mv-psy-dashboard {
    display: flex;
    min-height: 100vh;
    font-family: 'Roboto Slab', Georgia, serif;
    color: #3D4E60;
    background: #fff !important;
    background-color: #fff !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Elementor-Überschreibung: Entferne Padding/Margin nur vom Dashboard-Container, nicht vom Hauptinhalt */
.elementor-page .mv-psy-dashboard,
.elementor-widget .mv-psy-dashboard,
.elementor-container .mv-psy-dashboard {
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    background-color: #fff !important;
}

/* Hauptinhalt: margin-left nur auf Desktop (Sidebar links), auf Mobile in @media (max-width: 768px) auf 0 */
@media (min-width: 769px) {
    .elementor-page .mv-psy-main-content,
    .elementor-widget .mv-psy-main-content,
    .elementor-container .mv-psy-main-content {
        margin-left: 280px !important;
        margin-top: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 0 !important;
        padding: 0 !important;
        background: #fff !important;
        background-color: #fff !important;
    }
}

/* Mobile Menu Toggle - Elementor-Überschreibung verhindern */
.mv-psy-sidebar-toggle,
body .mv-psy-sidebar-toggle,
html body .mv-psy-sidebar-toggle,
.elementor-page .mv-psy-sidebar-toggle,
.elementor-widget .mv-psy-sidebar-toggle,
.elementor-element .mv-psy-sidebar-toggle {
    display: none !important;
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 1001 !important;
    background: #fff !important;
    background-color: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    padding: 12px !important;
    cursor: pointer !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    color: #3D4E60 !important;
}

.mv-psy-sidebar-toggle:hover,
body .mv-psy-sidebar-toggle:hover,
html body .mv-psy-sidebar-toggle:hover,
.elementor-page .mv-psy-sidebar-toggle:hover,
.elementor-widget .mv-psy-sidebar-toggle:hover,
.elementor-element .mv-psy-sidebar-toggle:hover {
    background: #f9fafb !important;
    background-color: #f9fafb !important;
    color: #3D4E60 !important;
}

/* SVG-Farben im Toggle-Button schützen */
.mv-psy-sidebar-toggle svg,
body .mv-psy-sidebar-toggle svg,
html body .mv-psy-sidebar-toggle svg,
.elementor-page .mv-psy-sidebar-toggle svg,
.elementor-widget .mv-psy-sidebar-toggle svg,
.elementor-element .mv-psy-sidebar-toggle svg {
    stroke: #3D4E60 !important;
    fill: none !important;
    color: #3D4E60 !important;
}

.mv-psy-sidebar-toggle:hover svg,
body .mv-psy-sidebar-toggle:hover svg,
html body .mv-psy-sidebar-toggle:hover svg,
.elementor-page .mv-psy-sidebar-toggle:hover svg,
.elementor-widget .mv-psy-sidebar-toggle:hover svg,
.elementor-element .mv-psy-sidebar-toggle:hover svg {
    stroke: #3D4E60 !important;
    fill: none !important;
    color: #3D4E60 !important;
}

/* Sidebar Overlay (Mobile) */
.mv-psy-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none; /* wenn nicht aktiv: Klicks durchlassen */
}

.mv-psy-sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto; /* wenn aktiv: Klicks zum Schließen empfangen */
}

/* Sidebar */
.mv-psy-sidebar {
    width: 280px;
    background: #fff;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 1000;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

/* Mobile: Sidebar bleibt links (nur Toggle-Button ist rechts) */

/* Schließen-Button: auf Desktop ausblenden, Stil gegen Theme-Überschreibung absichern */
.mv-psy-sidebar-close-mobile,
.mv-psy-dashboard .mv-psy-sidebar-close-mobile,
.mv-psy-sidebar .mv-psy-sidebar-close-mobile,
body .mv-psy-sidebar-close-mobile,
html body .mv-psy-sidebar-close-mobile,
.elementor-page .mv-psy-sidebar-close-mobile,
.elementor-widget .mv-psy-sidebar-close-mobile {
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    background-color: transparent !important;
    color: #6c757d !important;
    cursor: pointer !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}
.mv-psy-sidebar-close-mobile:hover,
.mv-psy-dashboard .mv-psy-sidebar-close-mobile:hover,
.mv-psy-sidebar .mv-psy-sidebar-close-mobile:hover,
body .mv-psy-sidebar-close-mobile:hover {
    background: #f3f4f6 !important;
    background-color: #f3f4f6 !important;
    color: #3D4E60 !important;
}
.mv-psy-sidebar-close-mobile svg,
.mv-psy-dashboard .mv-psy-sidebar-close-mobile svg,
.mv-psy-sidebar .mv-psy-sidebar-close-mobile svg {
    stroke: currentColor !important;
    fill: none !important;
    color: inherit !important;
}
/* Desktop: Close-Button immer ausblenden */
@media (min-width: 769px) {
    .mv-psy-sidebar-close-mobile,
    .mv-psy-dashboard .mv-psy-sidebar-close-mobile,
    .mv-psy-sidebar .mv-psy-sidebar-close-mobile,
    body .mv-psy-sidebar-close-mobile {
        display: none !important;
    }
}

.mv-psy-sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #fff;
    position: relative;
}

.mv-psy-sidebar-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.mv-psy-sidebar-logo {
    flex-shrink: 0;
    display: block !important;
}

.mv-psy-sidebar-logo a {
    display: block;
}

.mv-psy-sidebar-logo img {
    max-width: 140px !important;
    width: auto !important;
    height: 36px !important;
    max-height: 40px !important;
    display: block !important;
    object-fit: contain;
}

.mv-psy-sidebar-user {
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

.mv-psy-sidebar-user-name {
    font-size: 15px;
    font-weight: 600;
    color: #3D4E60;
    margin-bottom: 4px;
}

.mv-psy-sidebar-user-email {
    font-size: 13px;
    color: #6c757d;
}

/* Sidebar Navigation */
.mv-psy-sidebar-nav {
    flex: 1;
    padding: 16px 0;
    overflow-y: auto;
}

/* Verhindere CSS-Konflikte mit Mental Health Participant Plugin */
.mv-psy-dashboard .mv-psy-sidebar-item,
.mv-psy-sidebar-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 20px !important;
    color: #6c757d !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.2s !important;
    border-left: 3px solid transparent !important;
    position: relative !important;
    flex: none !important;
    justify-content: flex-start !important;
    border: none !important;
    background: transparent !important;
    background-color: transparent !important;
    border-radius: 0 !important;
    cursor: pointer !important;
    white-space: normal !important;
    box-shadow: none !important;
}

.mv-psy-dashboard .mv-psy-sidebar-item:hover,
.mv-psy-sidebar-item:hover {
    background: #f9fafb !important;
    background-color: #f9fafb !important;
    color: #3D4E60 !important;
    transform: none !important;
}

.mv-psy-dashboard .mv-psy-sidebar-item.active,
.mv-psy-sidebar-item.active {
    background: #FFF8E4 !important;
    background-color: #FFF8E4 !important;
    color: #3D4E60 !important;
    border-left-color: #3D4E60 !important;
    font-weight: 600 !important;
    box-shadow: none !important;
}

.mv-psy-sidebar-item svg {
    flex-shrink: 0;
    width: 20px !important;
    height: 20px !important;
}

.mv-psy-sidebar-item span {
    flex: 1;
}

/* Explizit verhindern, dass Mental Health Participant CSS die Sidebar beeinflusst */
.mv-psy-dashboard .mv-psy-sidebar-item.mhp-main-tab,
.mv-psy-dashboard .mhp-main-tab,
.mv-psy-sidebar-item.mhp-main-tab {
    /* Überschreibe alle Mental Health Participant Tab-Styles */
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    padding: 12px 20px !important;
    border: none !important;
    background: transparent !important;
    background-color: transparent !important;
    border-radius: 0 !important;
    color: #6c757d !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    box-shadow: none !important;
    flex: none !important;
    white-space: normal !important;
}

.mv-psy-dashboard .mv-psy-sidebar-item.active.mhp-main-tab,
.mv-psy-dashboard .mv-psy-sidebar-item.active,
.mv-psy-sidebar-item.active.mhp-main-tab {
    background: #FFF8E4 !important;
    background-color: #FFF8E4 !important;
    color: #3D4E60 !important;
    border-left: 3px solid #3D4E60 !important;
    box-shadow: none !important;
}

.mv-psy-sidebar-item .mv-psy-badge {
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
    margin-left: auto;
}

/* Journal Club – ganz unten, eigene Farbe */
.mv-psy-sidebar-item-journal-club,
.mv-psy-dashboard .mv-psy-sidebar-item-journal-club {
    color: #5a6c7d !important;
    margin-top: 8px;
    padding-top: 12px !important;
    border-top: 1px solid #e8eaed !important;
}
.mv-psy-sidebar-item-journal-club:hover,
.mv-psy-dashboard .mv-psy-sidebar-item-journal-club:hover {
    background: #e8eef5 !important;
    background-color: #e8eef5 !important;
    color: #4a6280 !important;
}
.mv-psy-sidebar-item-journal-club.active,
.mv-psy-dashboard .mv-psy-sidebar-item-journal-club.active {
    background: #e0e8f2 !important;
    background-color: #e0e8f2 !important;
    color: #3d5270 !important;
    border-left-color: #5a7a9e !important;
}
.mv-psy-sidebar-item-journal-club svg,
.mv-psy-dashboard .mv-psy-sidebar-item-journal-club svg {
    stroke: currentColor !important;
}

/* Sidebar Footer */
.mv-psy-sidebar-footer {
    padding: 16px 12px 16px 8px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mv-psy-sidebar-footer .mv-psy-sidebar-logout {
    flex: 1;
    min-width: 0;
    padding-left: 8px !important;
    padding-right: 12px !important;
}

.mv-psy-sidebar-footer .mv-psy-sidebar-help-button,
.mv-psy-sidebar-footer .mv-psy-help-button {
    flex-shrink: 0;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    padding: 0 !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #3D4E60 !important;
    cursor: pointer !important;
    position: static !important;
    top: auto !important;
    right: auto !important;
}

.mv-psy-sidebar-footer .mv-psy-sidebar-help-button:hover,
.mv-psy-sidebar-footer .mv-psy-help-button:hover {
    background: #f9fafb !important;
    border-color: #3D4E60 !important;
    color: #3D4E60 !important;
}

.mv-psy-sidebar-logout {
    color: #ef4444;
}

.mv-psy-sidebar-logout:hover {
    background: #fef2f2;
    color: #dc2626;
}

/* Tab-Info-Button (oben rechts auf jedem Tab) */
.mv-psy-tab-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.mv-psy-tab-info-wrap {
    position: relative;
    display: inline-flex;
}
.mv-psy-tab-info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    color: #3D4E60;
    cursor: pointer;
}
.mv-psy-tab-info-btn:hover {
    background: #f9fafb;
    border-color: #3D4E60;
}
.mv-psy-tab-info-popover {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    z-index: 10000;
    min-width: 280px;
    max-width: 360px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
.mv-psy-tab-info-popover[hidden] {
    display: none !important;
}
.mv-psy-tab-info-title {
    display: block;
    margin: 0 0 8px 0;
    font-size: 15px;
    font-weight: 600;
    color: #3D4E60;
}
.mv-psy-tab-info-desc {
    margin: 0 0 6px 0;
    font-size: 13px;
    line-height: 1.5;
    color: #3D4E60;
}
.mv-psy-tab-info-hint {
    margin: 0;
    font-size: 12px;
    color: #6c757d;
    line-height: 1.4;
}

/* Main Content Area */
.mv-psy-main-content {
    flex: 1;
    margin-left: 280px;
    min-height: 100vh;
    background: #fff !important;
    background-color: #fff !important;
    overflow: visible !important;
    max-height: none !important;
    height: auto !important;
    padding: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    margin-right: 0 !important;
}

/* Content Container - verhindere Abschneiden */
.mv-psy-content,
#mv-psy-tab-content,
.mv-psy-tab-content,
.mv-psy-dashboard-content {
    background: #fff !important;
    background-color: #fff !important;
    padding: 0 !important;
    margin: 0 !important;
}

.mv-psy-content,
.mv-psy-main-content > * {
    overflow: visible !important;
    max-height: none !important;
    height: auto !important;
}

.mv-psy-main-header {
    background: #fff !important;
    border-bottom: 1px solid #e0e0e0 !important;
    padding: 24px 32px !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    margin-bottom: 0 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    margin-top: 0 !important;
}

.mv-psy-main-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #3D4E60;
}

.mv-psy-main-subtitle {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
}

.mv-psy-badge {
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

.mv-psy-badge.mv-psy-badge-approved {
    background: #15803d;
    color: #fff;
}

.mv-psy-badge.mv-psy-badge-pending {
    background: #f59e0b;
    color: #fff;
}

.mv-psy-badge.mv-psy-badge-waitlisted {
    background: #8b5cf6;
    color: #fff;
}

/* Stats Grid */
.mv-psy-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.mv-psy-stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
}

.mv-psy-stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mv-psy-stat-icon-blue { background: #dbeafe; color: #2563eb; }
.mv-psy-stat-icon-green { background: #dcfce7; color: #16a34a; }
.mv-psy-stat-icon-yellow { background: #fef3c7; color: #d97706; }
.mv-psy-stat-icon-purple { background: #f3e8ff; color: #9333ea; }

.mv-psy-stat-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.mv-psy-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #3D4E60;
    line-height: 1.2;
    white-space: nowrap;
}

.mv-psy-stat-label {
    font-size: 13px;
    color: #6c757d;
}

/* Sections */
.mv-psy-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
    display: block !important;
    overflow: visible !important;
    min-height: auto !important;
    max-height: none !important;
}

/* Profil Container - verhindere Abschneiden */
.mv-psy-profile {
    display: block !important;
    overflow: visible !important;
    min-height: auto !important;
    max-height: none !important;
    height: auto !important;
}

/* Verhindere Abschneiden durch Parent-Container */
body .mv-psy-dashboard .mv-psy-content,
body .mv-psy-dashboard .mv-psy-profile,
body .elementor-page .mv-psy-dashboard .mv-psy-content,
body .elementor-page .mv-psy-dashboard .mv-psy-profile {
    overflow: visible !important;
    max-height: none !important;
    height: auto !important;
    min-height: auto !important;
}

.mv-psy-section h2 {
    margin-top: 0 !important;
    margin-bottom: 24px !important;
    padding-bottom: 16px !important;
    border-bottom: 1px solid #e0e0e0 !important;
}

.mv-psy-section h3 {
    margin-top: 32px !important;
    margin-bottom: 16px !important;
    padding-top: 24px !important;
    border-top: 1px solid #e0e0e0 !important;
}

.mv-psy-section h3:first-of-type {
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: none !important;
}

/* KRITISCH: Stelle sicher, dass ALLE Felder nach h3 sichtbar sind */
.mv-psy-profile-form h3 + *,
.mv-psy-profile-form h3 ~ * {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Stelle sicher, dass alle Formularfelder nach h3 sichtbar sind */
.mv-psy-profile-form h3 + .mv-psy-form-group,
.mv-psy-profile-form h3 ~ .mv-psy-form-group,
.mv-psy-profile-form h3 ~ div.mv-psy-form-group,
.mv-psy-profile-form h3 ~ div.mv-psy-form-row {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    position: relative !important;
    z-index: 1 !important;
    margin-bottom: 20px !important;
}

/* Spezifische Regeln gegen externe Scripts (Elementor, etc.) - MAXIMALE SPEZIFITÄT */
body .mv-psy-profile-form h3 ~ .mv-psy-form-group,
body .elementor-page .mv-psy-profile-form h3 ~ .mv-psy-form-group,
body .elementor-page .mv-psy-profile-form h3 ~ div.mv-psy-form-group,
.mv-psy-dashboard .mv-psy-profile-form h3 ~ .mv-psy-form-group,
.mv-psy-dashboard .mv-psy-profile-form h3 ~ div.mv-psy-form-group,
html body .mv-psy-profile-form h3 ~ .mv-psy-form-group,
html body .elementor-page .mv-psy-profile-form h3 ~ .mv-psy-form-group {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Stelle sicher, dass ALLE Input-Felder, Textareas, Labels und Hints sichtbar sind */
.mv-psy-profile-form h3 ~ input,
.mv-psy-profile-form h3 ~ textarea,
.mv-psy-profile-form h3 ~ select,
.mv-psy-profile-form h3 ~ label,
.mv-psy-profile-form h3 ~ .mv-psy-form-hint,
.mv-psy-profile-form h3 ~ p,
.mv-psy-profile-form h3 ~ button,
.mv-psy-profile-form h3 ~ div input,
.mv-psy-profile-form h3 ~ div textarea,
.mv-psy-profile-form h3 ~ div select,
.mv-psy-profile-form h3 ~ div label,
.mv-psy-profile-form h3 ~ div .mv-psy-form-hint {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important;
}

/* KRITISCH: Eindeutige CSS-Regeln für öffentliches Profil mit höchster Spezifität */
#mv-psy-public-profile-section,
#mv-psy-public-profile-section *,
.mv-psy-public-profile-section,
.mv-psy-public-profile-section *,
.mv-psy-public-profile-field,
.mv-psy-public-profile-field * {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    position: relative !important;
    z-index: 999 !important;
}

/* Überschreibe ALLE möglichen versteckenden Styles für öffentliches Profil */
html body .mv-psy-dashboard .mv-psy-profile-form #mv-psy-public-profile-section,
html body .elementor-page .mv-psy-profile-form #mv-psy-public-profile-section,
html body .mv-psy-dashboard .mv-psy-profile-form .mv-psy-public-profile-section,
html body .elementor-page .mv-psy-profile-form .mv-psy-public-profile-section,
html body .mv-psy-dashboard .mv-psy-profile-form .mv-psy-public-profile-field,
html body .elementor-page .mv-psy-profile-form .mv-psy-public-profile-field {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    position: relative !important;
    z-index: 999 !important;
    margin-bottom: 20px !important;
    padding: 0 !important;
}

/* Stelle sicher, dass alle Formularfelder innerhalb der öffentlichen Profil-Sektion sichtbar sind */
#mv-psy-public-profile-section .mv-psy-form-group,
.mv-psy-public-profile-section .mv-psy-form-group,
.mv-psy-public-profile-field {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    position: relative !important;
    z-index: 1 !important;
    margin-bottom: 20px !important;
}

#mv-psy-public-profile-section input,
#mv-psy-public-profile-section textarea,
#mv-psy-public-profile-section select,
#mv-psy-public-profile-section label,
.mv-psy-public-profile-section input,
.mv-psy-public-profile-section textarea,
.mv-psy-public-profile-section select,
.mv-psy-public-profile-section label,
.mv-psy-public-profile-field input,
.mv-psy-public-profile-field textarea,
.mv-psy-public-profile-field select,
.mv-psy-public-profile-field label {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Transparente Hintergründe für alle Input-Felder in öffentlichen Profilfeldern */
.mv-psy-public-profile-field input,
.mv-psy-public-profile-field textarea,
.mv-psy-public-profile-field select {
    background: transparent !important;
    background-color: transparent !important;
}

/* Unternehmensnetzwerk: Hinweis unter Slider-Checkbox (Profil) */
.mv-psy-cn-slider-note {
    margin: 12px 0 0 0;
    padding: 14px 16px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #334155;
    box-sizing: border-box;
}

.mv-psy-cn-slider-note__title {
    margin: 0 0 8px 0;
    padding: 0;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
}

.mv-psy-cn-slider-note__body {
    margin: 0 0 0 0;
    padding: 0;
    font-size: 13px;
    line-height: 1.55;
    color: #334155;
}

.mv-psy-cn-slider-note__status {
    margin: 12px 0 0 0;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.mv-psy-cn-dash--embedded .mv-psy-cn-dash__text {
    margin: 0 0 8px 0;
    padding: 0;
    font-size: 13px;
    line-height: 1.55;
    color: #475569;
}

.mv-psy-cn-dash--embedded .mv-psy-cn-dash__text:last-child {
    margin-bottom: 0;
}

/* Unternehmensnetzwerk: Karten-Hinweis (Abo-Seite) */
.mv-psy-cn-subscription-wrap .mv-psy-cn-dash--card {
    margin: 0;
}

.mv-psy-cn-dash--card .mv-psy-cn-dash__heading {
    margin: 0 0 10px 0;
    padding: 0;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.35;
}

.mv-psy-cn-dash--card .mv-psy-cn-dash__text {
    margin: 0 0 8px 0;
    padding: 0;
    font-size: 13px;
    line-height: 1.55;
    color: #334155;
}

.mv-psy-cn-dash--card .mv-psy-cn-dash__text:last-child {
    margin-bottom: 0;
}

.mv-psy-cn-dash--card.mv-psy-cn-dash--ok .mv-psy-cn-dash__text {
    color: #166534;
}

/* Spezifische Styles für Slider-Checkboxen (Unternehmensnetzwerk + Privatklienten) */
#show_in_slider_company,
#show_in_slider_private,
.mv-psy-public-profile-field #show_in_slider_company,
.mv-psy-public-profile-field #show_in_slider_private,
.mv-psy-profile-form #show_in_slider_company,
.mv-psy-profile-form #show_in_slider_private,
html body #show_in_slider_company,
html body #show_in_slider_private,
html body .elementor-widget #show_in_slider_company,
html body .elementor-widget #show_in_slider_private,
html body .elementor-element #show_in_slider_company,
html body .elementor-element #show_in_slider_private,
html body .elementor-page #show_in_slider_company,
html body .elementor-page #show_in_slider_private {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 99999 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    width: 24px !important;
    height: 24px !important;
    margin: 0 8px 0 0 !important;
    flex-shrink: 0 !important;
    min-width: 24px !important;
    min-height: 24px !important;
    background: #fff !important;
    border: 2px solid #3D4E60 !important;
    border-radius: 4px !important;
    appearance: checkbox !important;
    -webkit-appearance: checkbox !important;
    -moz-appearance: checkbox !important;
}

/* Label für Slider-Checkboxen */
.mv-psy-public-profile-field label[for="show_in_slider_company"],
.mv-psy-public-profile-field label[for="show_in_slider_private"],
html body .mv-psy-public-profile-field label[for="show_in_slider_company"],
html body .mv-psy-public-profile-field label[for="show_in_slider_private"],
html body .elementor-widget .mv-psy-public-profile-field label[for="show_in_slider_company"],
html body .elementor-widget .mv-psy-public-profile-field label[for="show_in_slider_private"],
html body .elementor-element .mv-psy-public-profile-field label[for="show_in_slider_company"],
html body .elementor-element .mv-psy-public-profile-field label[for="show_in_slider_private"],
html body .elementor-page .mv-psy-profile-form label[for="show_in_slider_company"],
html body .elementor-page .mv-psy-profile-form label[for="show_in_slider_private"] {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 99998 !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #3D4E60 !important;
}

/* Container für show_in_slider - EXTREM AGGESSIV */
.mv-psy-public-profile-field,
html body .mv-psy-public-profile-field,
html body .elementor-widget .mv-psy-public-profile-field,
html body .elementor-element .mv-psy-public-profile-field,
html body .elementor-page .mv-psy-profile-form .mv-psy-public-profile-field {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 100 !important;
    margin-bottom: 20px !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
}

/* Elementor-spezifische Overrides für Checkbox */
html body .elementor-widget .mv-psy-public-profile-field #show_in_slider_company,
html body .elementor-widget .mv-psy-public-profile-field #show_in_slider_private,
html body .elementor-element .mv-psy-public-profile-field #show_in_slider_company,
html body .elementor-element .mv-psy-public-profile-field #show_in_slider_private,
html body .elementor-page .mv-psy-profile-form #show_in_slider_company,
html body .elementor-page .mv-psy-profile-form #show_in_slider_private {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    z-index: 99999 !important;
    position: relative !important;
}

/* Styles für Änderungen speichern Button im Slider-Container */
.mv-psy-public-profile-field .mv-psy-form-actions,
.mv-psy-public-profile-field button[type="submit"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 99999 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    margin-top: 16px !important;
}

/* Elementor-Overrides für Button im Slider-Container */
html body .elementor-widget .mv-psy-public-profile-field button[type="submit"],
html body .elementor-element .mv-psy-public-profile-field button[type="submit"],
html body .elementor-page .mv-psy-profile-form .mv-psy-public-profile-field button[type="submit"] {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    z-index: 99999 !important;
    position: relative !important;
}

/* Slider-Vorschau Styles */
.mv-psy-slider-preview-section {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important;
}

.mv-psy-preview-card {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important;
}

.mv-psy-preview-card * {
    position: relative !important;
    z-index: 1 !important;
}

/* Überschreibe z-index für Vorschau */
html body .mv-psy-dashboard .mv-psy-profile-form .mv-psy-slider-preview-section,
html body .elementor-page .mv-psy-profile-form .mv-psy-slider-preview-section {
    position: relative !important;
    z-index: 1 !important;
}

html body .mv-psy-dashboard .mv-psy-profile-form .mv-psy-preview-card,
html body .elementor-page .mv-psy-profile-form .mv-psy-preview-card {
    position: relative !important;
    z-index: 1 !important;
}

.mv-psy-section-header {
    display: flex !important;
    justify-content: space-between;
    align-items: flex-start !important;
    margin-bottom: 24px !important;
    gap: 20px !important;
    flex-wrap: wrap !important;
}

.mv-psy-section-header h2 {
    margin: 0 !important;
    flex: 0 0 auto !important;
}

.mv-psy-events .mv-psy-section-header {
    flex-direction: column !important;
    align-items: flex-start !important;
}

.mv-psy-events .mv-psy-section-header h2 {
    margin-bottom: 16px !important;
    width: 100% !important;
}

.mv-psy-section-header a.mv-psy-btn {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.mv-psy-contact-btn:hover {
    background: #2b3a46 !important;
}

/* Modal Styles */
.mv-psy-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 10000 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}

.mv-psy-modal.mv-psy-modal-open {
    display: flex !important;
}

#mv-psy-collective-invoice-modal {
    display: none !important;
}

#mv-psy-collective-invoice-modal.mv-psy-modal-open {
    display: flex !important;
    z-index: 100002 !important;
    pointer-events: auto !important;
}

#mv-psy-collective-invoice-modal.mv-psy-modal-open .mv-psy-modal-overlay {
    pointer-events: auto !important;
    cursor: pointer;
}

#mv-psy-collective-invoice-modal.mv-psy-modal-open .mv-psy-modal-content {
    pointer-events: auto !important;
    cursor: default;
}

/* Karten und Modal-Trigger immer klickbar (kein Overlay drüber) */
.mv-psy-invoice-type-selector,
.mv-psy-type-card,
#mv-psy-type-card-collective,
#mv-psy-type-card-private {
    pointer-events: auto !important;
    position: relative;
    z-index: 10;
}

#mv-psy-private-invoice-modal {
    display: none !important;
}

#mv-psy-private-invoice-modal.mv-psy-modal-open {
    display: flex !important;
}

#mv-psy-create-appointment-modal.mv-psy-modal-open {
    display: flex !important;
    z-index: 100002 !important;
    pointer-events: auto !important;
}

#mv-psy-create-appointment-modal.mv-psy-modal-open .mv-psy-modal-overlay {
    pointer-events: auto !important;
    cursor: pointer;
}

#mv-psy-create-appointment-modal.mv-psy-modal-open .mv-psy-modal-content {
    pointer-events: auto !important;
    cursor: default;
}

/* Termin-Detail-Popup (Kalender): wie andere Modals — .mv-psy-modal hat display:none !important */
#mv-psy-appointment-modal.mv-psy-modal-open {
    display: flex !important;
    z-index: 100002 !important;
    pointer-events: auto !important;
    align-items: center !important;
    justify-content: center !important;
}

#mv-psy-appointment-modal.mv-psy-modal-open .mv-psy-modal-content {
    pointer-events: auto !important;
    cursor: default;
}

.mv-psy-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.mv-psy-modal-content {
    position: relative !important;
    background: #fff !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
    z-index: 10001 !important;
    width: 100% !important;
    max-width: 800px !important;
    max-height: calc(90vh - 40px) !important;
    margin: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}

.mv-psy-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #e0e0e0;
}

.mv-psy-modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #3D4E60;
}

.mv-psy-modal-close {
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 8px !important;
    color: #6c757d !important;
    transition: color 0.2s !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.mv-psy-modal-close:hover {
    color: #3D4E60 !important;
}

.mv-psy-modal-body {
    padding: 24px;
}

.mv-psy-modal-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 24px;
    border-top: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.mv-psy-section h2 {
    font-size: 20px;
    font-weight: 600;
    color: #3D4E60;
}

.mv-psy-link {
    color: #3D4E60;
    font-weight: 600;
    text-decoration: none;
}

.mv-psy-link:hover {
    text-decoration: underline;
}

/* Quick Actions */
.mv-psy-quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.mv-psy-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    text-decoration: none;
    color: #3D4E60;
    transition: all 0.2s;
}

/* Button als Schnellaktions-Karte: Standard-Button-Styles überschreiben, damit er wie die Link-Karten aussieht */
.mv-psy-quick-actions button.mv-psy-action-card,
button.mv-psy-action-card {
    cursor: pointer;
    font: inherit;
    width: 100%;
    text-align: center;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 12px !important;
    padding: 24px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
    color: #3D4E60 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    min-height: 0 !important;
}

.mv-psy-quick-actions button.mv-psy-action-card:hover,
button.mv-psy-action-card:hover {
    border-color: #3D4E60 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
    background: #fff !important;
    color: #3D4E60 !important;
}

.mv-psy-action-card:hover {
    border-color: #3D4E60;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.mv-psy-action-icon {
    width: 56px;
    height: 56px;
    background: #f3f4f6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3D4E60;
}

/* Buttons */
/* Buttons: Elementor-Überschreibung verhindern */
.mv-psy-availability .mv-psy-btn,
.mv-psy-availability button.mv-psy-btn,
.elementor-widget .mv-psy-availability .mv-psy-btn,
.elementor-element .mv-psy-availability .mv-psy-btn,
.elementor-widget button.mv-psy-btn,
.elementor-element button.mv-psy-btn {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative !important;
    z-index: 9999 !important;
}

.mv-psy-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 8px 16px !important;
    border: none !important;
    border-radius: 8px !important;
    font-family: 'Roboto Slab', serif !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 9999 !important;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.mv-psy-btn-small {
    padding: 6px 12px;
    font-size: 11px;
}

.mv-psy-btn-primary,
.elementor-widget .mv-psy-btn-primary,
.elementor-element .mv-psy-btn-primary {
    background: #3D4E60 !important;
    color: #fff !important;
}

.mv-psy-btn-primary:hover,
.elementor-widget .mv-psy-btn-primary:hover,
.elementor-element .mv-psy-btn-primary:hover {
    background: #2b3a46 !important;
    color: #fff !important;
}

.mv-psy-btn-outline {
    background: #f8f9fa !important;
    color: #3D4E60 !important;
    border: 2px solid #3D4E60 !important;
}

.mv-psy-btn-outline:hover {
    background: #3D4E60 !important;
    color: #fff !important;
    border: 2px solid #3D4E60 !important;
}

/* Abbrechen-Button spezifisches Styling (z.B. im Modal) */
#mv-psy-modal-cancel.mv-psy-btn-outline,
button.mv-psy-btn-outline[onclick*=\"closeCollectiveInvoiceModal\"],
button.mv-psy-btn-outline[onclick*=\"mvPsyResetInvoice\"] {
    background: #f8f9fa !important;
    color: #3D4E60 !important;
    border: 2px solid #3D4E60 !important;
}

#mv-psy-modal-cancel.mv-psy-btn-outline:hover,
button.mv-psy-btn-outline[onclick*=\"closeCollectiveInvoiceModal\"]:hover,
button.mv-psy-btn-outline[onclick*=\"mvPsyResetInvoice\"]:hover {
    background: #3D4E60 !important;
    color: #fff !important;
    border: 2px solid #3D4E60 !important;
}

/* Invoice Type Selector */
.mv-psy-invoice-type-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.mv-psy-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.mv-psy-type-card input { display: none; }

.mv-psy-type-card.active,
.mv-psy-type-card:hover {
    border-color: #3D4E60;
}

.mv-psy-type-card.active {
    background: #FFF8E4;
}

.mv-psy-type-icon {
    width: 64px;
    height: 64px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3D4E60;
}

.mv-psy-type-card strong {
    font-size: 16px;
    color: #3D4E60;
}

.mv-psy-type-card span {
    font-size: 13px;
    color: #6c757d;
}

/* Bookings List */
.mv-psy-booking-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 8px;
}

.mv-psy-booking-item input[type='checkbox'] {
    width: 20px;
    height: 20px;
}

.mv-psy-booking-info {
    flex: 1;
}

.mv-psy-booking-date {
    font-weight: 600;
    color: #3D4E60;
}

.mv-psy-booking-details {
    font-size: 13px;
    color: #6c757d;
}

.mv-psy-booking-price {
    font-weight: 700;
    color: #3D4E60;
}

/* Invoice Preview */
.mv-psy-preview-box {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
}

.mv-psy-preview-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e0e0e0;
}

.mv-psy-preview-from,
.mv-psy-preview-to {
    font-size: 14px;
    line-height: 1.6;
}

.mv-psy-preview-items {
    width: 100%;
    border-collapse: collapse;
}

.mv-psy-preview-items th,
.mv-psy-preview-items td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.mv-psy-preview-items th {
    font-weight: 600;
    color: #6c757d;
    font-size: 13px;
}

.mv-psy-preview-items tfoot td {
    font-weight: 600;
    border-bottom: none;
}

.mv-psy-invoice-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

/* Forms */
.mv-psy-form-row {
    display: flex;
    gap: 16px;
}

.mv-psy-form-group {
    flex: 1;
    margin-bottom: 20px;
}

.mv-psy-form-group:last-child {
    margin-bottom: 0;
}

.mv-psy-form-group-small {
    flex: 0 0 120px;
}

.mv-psy-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #3D4E60;
}

.mv-psy-form-group input,
.mv-psy-form-group select,
.mv-psy-form-group textarea {
    width: 100% !important;
    padding: 10px 14px !important;
    border: 1px solid #d0d5dd !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-family: 'Roboto Slab', serif !important;
    box-sizing: border-box !important;
    background: transparent !important;
    color: #3D4E60 !important;
    margin: 0 !important;
}

.mv-psy-form-group textarea {
    min-height: 100px !important;
    resize: vertical !important;
}

.mv-psy-form-group input[type='file'] {
    padding: 8px !important;
    border: 1px dashed #d0d5dd !important;
    background: transparent !important;
}

.mv-psy-form-group input:focus,
.mv-psy-form-group select:focus,
.mv-psy-form-group textarea:focus {
    outline: none !important;
    border-color: #3D4E60 !important;
    box-shadow: 0 0 0 3px rgba(61, 78, 96, 0.1) !important;
}

.mv-psy-form-group label {
    display: block !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    margin-bottom: 6px !important;
    margin-top: 0 !important;
    color: #3D4E60 !important;
}

.mv-psy-form-hint {
    font-size: 12px !important;
    color: #6c757d !important;
    margin: 8px 0 0 0 !important;
    line-height: 1.4 !important;
}

/* Klienten-Modal: Validierungsfehler */
.mv-psy-form-group.mv-psy-field-error label {
    color: #b91c1c !important;
}
.mv-psy-field-error input,
.mv-psy-field-error select,
.mv-psy-field-error textarea {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2) !important;
}
.mv-psy-input-readonly[readonly] {
    background: #f9fafb !important;
    color: #4b5563 !important;
    cursor: default !important;
}

/* Live-Events Workshop-Panel: Radio neben Text (überschreibt .mv-psy-form-group label { display:block }) */
#mv-psy-workshop-fields.mv-psy-form-group label.mv-psy-inline-radio {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 10px !important;
    margin: 0 0 12px 0 !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    color: #3D4E60 !important;
}

#mv-psy-workshop-fields.mv-psy-form-group label.mv-psy-inline-radio:last-of-type {
    margin-bottom: 0 !important;
}

#mv-psy-workshop-fields.mv-psy-form-group label.mv-psy-inline-radio input[type='radio'] {
    width: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    height: 18px !important;
    flex-shrink: 0 !important;
    margin: 2px 0 0 0 !important;
    padding: 0 !important;
    align-self: flex-start !important;
    box-shadow: none !important;
}

#mv-psy-workshop-fields.mv-psy-form-group label.mv-psy-inline-radio span {
    flex: 1;
    line-height: 1.45;
}

/* Rechnungs-Modals: Steuerhinweis-Radios links neben Text (überschreibt .mv-psy-form-group label + input width:100%) */
#mv-psy-collective-invoice-modal .mv-psy-tax-options,
#mv-psy-private-invoice-modal .mv-psy-tax-options {
    width: 100%;
    max-width: 100%;
    text-align: left;
    gap: 18px !important;
}

/* Sammelrechnung: mehr Abstand zwischen Buchungen / „Zeile hinzufügen“ und Steuerhinweis */
#mv-psy-collective-invoice-modal .mv-psy-bookings-section + .mv-psy-form-group {
    margin-top: 40px;
}

/* „Rechnung versenden“: .mv-psy-btn nutzt display:inline-flex !important — ohne Klasse sonst immer sichtbar */
#mv-psy-collective-invoice-modal #mv-psy-modal-send.mv-psy-btn {
    display: none !important;
    visibility: hidden !important;
}
#mv-psy-collective-invoice-modal #mv-psy-modal-send.mv-psy-btn.mv-psy-modal-send-ready {
    display: inline-flex !important;
    visibility: visible !important;
}
#mv-psy-collective-invoice-modal #mv-psy-modal-send.mv-psy-btn.mv-psy-modal-send-ready:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

#mv-psy-collective-invoice-modal .mv-psy-form-group label.mv-psy-tax-option,
#mv-psy-private-invoice-modal .mv-psy-form-group label.mv-psy-tax-option {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 10px !important;
    margin: 0 !important;
    font-weight: 400 !important;
    cursor: pointer !important;
    color: #3d4e60 !important;
    text-align: left !important;
}

#mv-psy-collective-invoice-modal .mv-psy-form-group label.mv-psy-tax-option input[type='radio'],
#mv-psy-private-invoice-modal .mv-psy-form-group label.mv-psy-tax-option input[type='radio'] {
    width: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    height: 18px !important;
    flex-shrink: 0 !important;
    margin: 3px 0 0 0 !important;
    padding: 0 !important;
    align-self: flex-start !important;
    box-shadow: none !important;
    cursor: pointer !important;
}

#mv-psy-collective-invoice-modal .mv-psy-form-group label.mv-psy-tax-option span,
#mv-psy-private-invoice-modal .mv-psy-form-group label.mv-psy-tax-option span {
    flex: 1;
    min-width: 0;
    line-height: 1.45;
    text-align: left;
}

#mv-psy-workshop-fields .mv-psy-workshop-onsite-venue-block {
    margin-top: 20px;
}

#mv-psy-workshop-fields .mv-psy-workshop-subheading {
    display: block;
    font-weight: 600;
    color: #3d4e60;
    font-size: 13px;
    margin: 0 0 10px 0;
}

#mv-psy-workshop-fields label.mv-psy-workshop-block-label {
    display: block !important;
    margin-top: 24px !important;
    margin-bottom: 8px !important;
}

#mv-psy-workshop-fields .mv-psy-workshop-onsite-block {
    margin-top: 24px;
}

#mv-psy-workshop-onsite-block > label.mv-psy-workshop-block-label:first-of-type {
    margin-top: 0 !important;
}

#mv-psy-workshop-fields .mv-psy-workshop-radius-label {
    margin-top: 20px !important;
}

#mv-psy-workshop-fields .mv-psy-workshop-hint-after-price {
    display: block;
    margin-top: 8px !important;
    margin-bottom: 2px !important;
}

.mv-psy-form-actions {
    margin-top: 24px !important;
}

/* Hohe Spezifität gegen Elementor für Profilbild-Upload */
.mv-psy-profile .mv-psy-form-group #mv-psy-photo-upload,
.mv-psy-dashboard .mv-psy-form-group #mv-psy-photo-upload,
.mv-psy-section .mv-psy-form-group #mv-psy-photo-upload {
    width: 100% !important;
    padding: 8px !important;
    border: 1px dashed #d0d5dd !important;
    border-radius: 8px !important;
    background: transparent !important;
    font-size: 14px !important;
    font-family: 'Roboto Slab', serif !important;
    cursor: pointer !important;
}

.mv-psy-profile .mv-psy-form-group #mv-psy-photo-upload-btn,
.mv-psy-dashboard .mv-psy-form-group #mv-psy-photo-upload-btn,
.mv-psy-section .mv-psy-form-group #mv-psy-photo-upload-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 10px 20px !important;
    border: 2px solid #3D4E60 !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: #3D4E60 !important;
    font-family: 'Roboto Slab', serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    text-decoration: none !important;
    margin-bottom: 8px !important;
}

.mv-psy-profile .mv-psy-form-group #mv-psy-photo-upload-btn:hover,
.mv-psy-dashboard .mv-psy-form-group #mv-psy-photo-upload-btn:hover,
.mv-psy-section .mv-psy-form-group #mv-psy-photo-upload-btn:hover {
    background: #3D4E60 !important;
    color: #fff !important;
}

.mv-psy-profile #mv-psy-photo-preview,
.mv-psy-dashboard #mv-psy-photo-preview,
.mv-psy-section #mv-psy-photo-preview {
    width: 120px !important;
    height: 120px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    border: 1px solid #ddd !important;
    background: #f5f5f5 !important;
}

/* Profilbild: keine Überlappung (flex-Kind braucht min-width, Vorschau feste Spalte) */
.mv-psy-profile .mv-psy-profile-photo-row,
.mv-psy-dashboard .mv-psy-profile-photo-row,
.mv-psy-section .mv-psy-profile-photo-row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
    align-items: flex-start !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.mv-psy-profile .mv-psy-profile-photo-preview-wrap,
.mv-psy-dashboard .mv-psy-profile-photo-preview-wrap,
.mv-psy-section .mv-psy-profile-photo-preview-wrap {
    flex: 0 0 auto !important;
    width: 120px !important;
    max-width: 120px !important;
    min-width: 0 !important;
    overflow: hidden !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
}

.mv-psy-profile .mv-psy-profile-photo-controls,
.mv-psy-dashboard .mv-psy-profile-photo-controls,
.mv-psy-section .mv-psy-profile-photo-controls {
    flex: 1 1 200px !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.mv-psy-profile .mv-psy-profile-photo-controls input[type="file"],
.mv-psy-dashboard .mv-psy-profile-photo-controls input[type="file"],
.mv-psy-section .mv-psy-profile-photo-controls input[type="file"] {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Vorschau darf nicht über Datei-Upload rutschen (Stacking + feste Spalte) */
.mv-psy-profile .mv-psy-profile-photo-preview-wrap,
.mv-psy-dashboard .mv-psy-profile-photo-preview-wrap,
.mv-psy-section .mv-psy-profile-photo-preview-wrap {
    flex-shrink: 0 !important;
    position: relative !important;
    z-index: 0 !important;
    isolation: isolate !important;
}

.mv-psy-profile .mv-psy-profile-photo-controls,
.mv-psy-dashboard .mv-psy-profile-photo-controls,
.mv-psy-section .mv-psy-profile-photo-controls {
    position: relative !important;
    z-index: 2 !important;
}

.mv-psy-profile .mv-psy-profile-photo-preview-wrap img#mv-psy-photo-preview,
.mv-psy-dashboard .mv-psy-profile-photo-preview-wrap img#mv-psy-photo-preview,
.mv-psy-section .mv-psy-profile-photo-preview-wrap img#mv-psy-photo-preview {
    position: relative !important;
    z-index: 0 !important;
    max-width: 120px !important;
}

/* Buchungslink teilen: Link + Embed links, QR rechts (eine Zeile oben) */
.mv-psy-booking-share-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(160px, 200px);
    gap: 24px;
    align-items: start;
}

.mv-psy-booking-share-main {
    min-width: 0;
}

@media (max-width: 900px) {
    .mv-psy-booking-share-layout {
        grid-template-columns: 1fr;
    }

    .mv-psy-booking-share-qr {
        justify-self: center;
    }
}

/* QR-Poster: Inhaltsbreite statt volle Spalte, seitlicher Abstand */
.mv-psy-booking-share-qr .mv-psy-qr-poster-btn {
    width: auto !important;
    max-width: calc(100% - 32px);
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
}

.mv-psy-booking-share-qr .mv-psy-qr-poster-wrap {
    width: 100%;
    max-width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* Filters */
.mv-psy-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.mv-psy-filters select {
    padding: 8px 12px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    font-family: 'Roboto Slab', serif;
    font-size: 13px;
}

/* Coming Soon */
.mv-psy-coming-soon {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.mv-psy-coming-soon svg {
    margin-bottom: 16px;
    opacity: 0.5;
}

.mv-psy-coming-soon h3 {
    color: #3D4E60;
    margin-bottom: 8px;
}

/* Loading */
.mv-psy-loading {
    text-align: center;
    color: #6c757d;
    padding: 40px;
}

.mv-psy-error {
    text-align: center;
    color: #ef4444;
    padding: 40px;
}

/* Invoice Table */
.mv-psy-table {
    width: 100%;
    border-collapse: collapse;
}

.mv-psy-table th {
    text-align: left;
    padding: 12px;
    border-bottom: 2px solid #e0e0e0;
    font-weight: 600;
    color: #6c757d;
    font-size: 13px;
}

.mv-psy-table td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.mv-psy-table tr:hover {
    background: #f9f9f9;
}

.mv-psy-type-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    background: #e0e0e0;
    color: #4b5563;
}

.mv-psy-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.mv-psy-status-draft {
    background: #f3f4f6;
    color: #6b7280;
}

.mv-psy-status-sent {
    background: #dbeafe;
    color: #1d4ed8;
}

.mv-psy-status-paid {
    background: #dcfce7;
    color: #16a34a;
}

/* Spinner */
.mv-psy-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: mv-psy-spin 0.8s linear infinite;
}

@keyframes mv-psy-spin {
    to { transform: rotate(360deg); }
}

/* Price Input */
.mv-psy-price-input {
    padding: 6px 10px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    font-family: 'Roboto Slab', serif;
    font-size: 14px;
}

.mv-psy-price-input:focus {
    outline: none;
    border-color: #3D4E60;
}

/* Klient:innen Tab */
.mv-psy-invite-form {
    background: #f8f9fa;
    padding: 24px;
    border-radius: 12px;
}

.mv-psy-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 16px;
    font-size: 14px;
}

.mv-psy-message-success {
    background: #dcfce7;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.mv-psy-message-error {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.mv-psy-invite-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mv-psy-invite-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.mv-psy-invite-info {
    flex: 1;
}

.mv-psy-invite-name {
    font-weight: 600;
    color: #3D4E60;
}

.mv-psy-invite-email {
    font-size: 14px;
    color: #6c757d;
}

.mv-psy-invite-meta {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
}

.mv-psy-invite-actions {
    display: flex;
    gap: 8px;
}

.mv-psy-btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

.mv-psy-btn-danger {
    color: #dc2626;
    border-color: #dc2626;
}

.mv-psy-btn-danger:hover {
    background: #dc2626;
    color: #fff;
}

.mv-psy-clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.mv-psy-client-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.mv-psy-client-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3D4E60, #5a6f82);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
}

.mv-psy-client-info {
    flex: 1;
}

.mv-psy-client-name {
    font-weight: 600;
    color: #3D4E60;
}

.mv-psy-client-email {
    font-size: 13px;
    color: #6c757d;
}

.mv-psy-client-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    font-size: 12px;
    color: #9ca3af;
}

/* Klient bearbeiten – Ladeanimation */
.mv-psy-client-modal-loading {
    display: none;
}
.mv-psy-client-loading-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e8eaed;
    border-top-color: #3D4E60;
    border-radius: 50%;
    animation: mv-psy-client-spin 0.8s linear infinite;
}
@keyframes mv-psy-client-spin {
    to { transform: rotate(360deg); }
}

.mv-psy-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.mv-psy-badge-invitation {
    background: #dbeafe;
    color: #2563eb;
}

.mv-psy-badge-booking {
    background: #dcfce7;
    color: #16a34a;
}

.mv-psy-badge-manual {
    background: #e5e7eb;
    color: #6b7280;
}

.mv-psy-empty {
    text-align: center;
    color: #9ca3af;
    padding: 40px;
}

/* Responsive */
@media (max-width: 900px) {
    .mv-psy-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mv-psy-quick-actions {
        grid-template-columns: 1fr;
    }
}

/* Subscription Status in Profile */
.mv-psy-subscription-status {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mv-psy-subscription-current {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.mv-psy-subscription-type-badge {
    padding: 8px 20px;
    background: #f3f4f6;
    color: #3D4E60;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
}

.mv-psy-subscription-type-badge.mv-psy-subscription-partner {
    background: linear-gradient(135deg, #3D4E60 0%, #5a6f82 100%);
    color: #fff;
}

.mv-psy-subscription-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mv-psy-subscription-price-display {
    font-size: 20px;
    font-weight: 700;
    color: #3D4E60;
}

.mv-psy-subscription-info {
    font-size: 13px;
    color: #6c757d;
}

.mv-psy-subscription-upgrade {
    padding: 16px 20px;
    background: #FFF8E4;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mv-psy-subscription-upgrade p {
    margin: 0;
    font-size: 14px;
    color: #3D4E60;
}

/* DSGVO / Danger Zone */
.mv-psy-danger-zone {
    border-color: #fecaca;
}

.mv-psy-dsgvo-section {
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 16px;
}

.mv-psy-dsgvo-section:last-child {
    margin-bottom: 0;
}

.mv-psy-dsgvo-section h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
}

.mv-psy-dsgvo-section p {
    margin: 0 0 16px 0;
    font-size: 14px;
    color: #6c757d;
}

.mv-psy-dsgvo-delete {
    border: 1px solid #fecaca;
    background: #fef2f2;
}

.mv-psy-delete-warning {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    margin-bottom: 16px;
    color: #991b1b;
    font-size: 14px;
}

.mv-psy-btn-danger {
    background: #dc2626;
    color: #fff !important;
}

.mv-psy-btn-danger:hover {
    background: #b91c1c;
    color: #fff !important;
}

/* Sicherstellen, dass keine blaue Schrift auf rotem Hintergrund */
.mv-psy-btn-danger *,
.mv-psy-btn-danger svg,
.mv-psy-btn-danger span {
    color: #fff !important;
    fill: #fff !important;
}

.mv-psy-btn-sm {
    padding: 8px 12px;
    font-size: 13px;
}

/* Calendar Styles */
.mv-psy-calendar-legend {
    display: flex;
    gap: 20px;
}

.mv-psy-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6c757d;
}

.mv-psy-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.mv-psy-legend-approved { background: #3D4E60; }
.mv-psy-legend-pending { background: #f59e0b; }
.mv-psy-legend-cancelled { background: #ef4444; }

.mv-psy-calendar-navigation {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.mv-psy-calendar-title {
    font-size: 18px;
    font-weight: 600;
    color: #3D4E60;
    min-width: 200px;
    text-align: center;
}

.mv-psy-calendar-container {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    min-height: 500px;
}

.mv-psy-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #e0e0e0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.mv-psy-calendar-header-cell {
    background: #f9fafb;
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    color: #6c757d;
}

.mv-psy-calendar-cell {
    background: #fff;
    min-height: 100px;
    padding: 8px;
    vertical-align: top;
}

.mv-psy-calendar-cell.other-month {
    background: #f9fafb;
    color: #9ca3af;
}

.mv-psy-calendar-cell.today {
    background: #FFF8E4;
}

.mv-psy-calendar-day {
    font-weight: 600;
    font-size: 14px;
    color: #3D4E60;
    margin-bottom: 6px;
}

.mv-psy-calendar-event {
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 11px;
    line-height: 1.25;
    margin-bottom: 4px;
    color: #fff;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.mv-psy-calendar-event:hover {
    opacity: 0.92;
    filter: brightness(1.05);
}

.mv-psy-calendar-event-time {
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.02em;
}

.mv-psy-calendar-event-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.mv-psy-calendar-event-title {
    font-weight: 600;
    font-size: 11px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
}

.mv-psy-calendar-event-meta {
    font-size: 10px;
    opacity: 0.92;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Modal */
.mv-psy-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.mv-psy-modal-content {
    background: #fff;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.mv-psy-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
}

.mv-psy-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #3D4E60;
}

.mv-psy-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6c757d;
}

.mv-psy-modal-body {
    padding: 24px;
}

.mv-psy-appointment-detail {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.mv-psy-appointment-detail:last-child {
    border-bottom: none;
}

.mv-psy-appointment-label {
    color: #6c757d;
    font-size: 13px;
}

.mv-psy-appointment-value {
    font-weight: 600;
    color: #3D4E60;
}

.mv-psy-appointment-value--multiline {
    white-space: pre-wrap;
    font-weight: 500;
    max-width: 100%;
    max-height: 140px;
    overflow: auto;
    text-align: right;
}

.mv-psy-appointment-detail--block {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
}

.mv-psy-appointment-detail--block .mv-psy-appointment-label {
    font-weight: 600;
    color: #3D4E60;
}

.mv-psy-appointment-detail--block .mv-psy-appointment-value--multiline {
    text-align: left;
}

.mv-psy-appointment-cancel-section {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #e5e7eb;
}

.mv-psy-appointment-cancel-intro {
    margin: 0 0 8px 0;
    font-weight: 700;
    font-size: 15px;
    color: #3D4E60;
}

.mv-psy-appointment-cancel-hint {
    margin: 0 0 12px 0;
    font-size: 12px;
    line-height: 1.45;
    color: #6c757d;
}

.mv-psy-appointment-cancel-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #3D4E60;
}

.mv-psy-appointment-cancel-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 72px;
    margin-bottom: 10px;
}

.mv-psy-appointment-cancel-msg {
    font-size: 13px;
    margin: 0 0 10px 0;
}

.mv-psy-appointment-cancel-btn {
    width: 100%;
    justify-content: center;
}

@media (max-width: 768px) {
    /* Mobile: Kein linker Rand – Sidebar ist Overlay, nimmt keinen Platz ein */
    html.mv-psy-dashboard-page,
    html.mv-psy-dashboard-page body,
    body.mv-psy-dashboard-page,
    body.mv-psy-dashboard-page .mv-psy-dashboard,
    .mv-psy-dashboard.mv-psy-dashboard,
    html body .mv-psy-dashboard {
        margin-left: 0 !important;
        padding-left: 0 !important;
    }

    /* Mobile: Burger rechts oben, Menü slide von rechts */
    .mv-psy-sidebar-toggle,
    body .mv-psy-sidebar-toggle,
    html body .mv-psy-sidebar-toggle,
    .elementor-page .mv-psy-sidebar-toggle,
    .elementor-widget .mv-psy-sidebar-toggle,
    .elementor-element .mv-psy-sidebar-toggle {
        display: block !important;
        z-index: 10001 !important;
        top: 16px !important;
        right: 16px !important;
        left: auto !important;
        background: #fff !important;
        background-color: #fff !important;
        border: 1px solid #e0e0e0 !important;
        color: #3D4E60 !important;
        padding: 10px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        box-sizing: border-box !important;
    }
    
    .mv-psy-sidebar-toggle svg,
    body .mv-psy-sidebar-toggle svg,
    html body .mv-psy-sidebar-toggle svg,
    .elementor-page .mv-psy-sidebar-toggle svg,
    .elementor-widget .mv-psy-sidebar-toggle svg,
    .elementor-element .mv-psy-sidebar-toggle svg {
        stroke: #3D4E60 !important;
        fill: none !important;
        color: #3D4E60 !important;
    }

    .mv-psy-sidebar-overlay {
        display: block !important;
        pointer-events: none !important; /* geschlossen: Tabs/Inhalt anklickbar */
    }

    .mv-psy-sidebar-overlay.active {
        pointer-events: auto !important; /* offen: Klick auf Overlay schließt Menü */
    }

    /* Sidebar von rechts einschieben */
    .mv-psy-sidebar {
        left: auto !important;
        right: 0 !important;
        width: min(320px, 85vw) !important;
        max-width: 320px !important;
        transform: translateX(100%);
        border-right: none !important;
        border-left: 1px solid #e0e0e0 !important;
        box-shadow: -4px 0 20px rgba(0,0,0,0.08);
    }

    .mv-psy-sidebar.active {
        transform: translateX(0);
        z-index: 10000;
    }

    /* Schließen-Button in Sidebar (nur auf Mobile sichtbar) */
    .mv-psy-sidebar-close-mobile,
    .mv-psy-dashboard .mv-psy-sidebar-close-mobile,
    .mv-psy-sidebar .mv-psy-sidebar-close-mobile {
        display: flex !important;
    }

    /* Sidebar-Nav: große Touch-Ziele auf Mobile */
    .mv-psy-sidebar-nav .mv-psy-sidebar-item {
        min-height: 44px !important;
        padding: 14px 20px !important;
    }

    /* Verhindere Überlappung wenn Sidebar aktiv ist */
    .mv-psy-sidebar.active ~ .mv-psy-main-content {
        position: relative;
        z-index: 1;
    }

    /* Stelle sicher, dass Overlay über allem liegt außer Sidebar */
    .mv-psy-sidebar-overlay.active {
        z-index: 9999;
    }

    /* Verhindere, dass Buttons oder andere Elemente über der Sidebar erscheinen */
    .mv-psy-sidebar.active ~ .mv-psy-main-content .mv-psy-btn,
    .mv-psy-sidebar.active ~ .mv-psy-main-content button,
    .mv-psy-sidebar.active ~ .mv-psy-main-content .mv-psy-section,
    .mv-psy-sidebar.active ~ .mv-psy-main-content .mv-psy-stat-card {
        z-index: 1 !important;
    }

    /* Main Content: auf Mobile volle Breite (überschreibt Elementor .elementor-page .mv-psy-main-content 280px) */
    .mv-psy-main-content,
    body.mv-psy-dashboard-page .mv-psy-main-content,
    .mv-psy-dashboard .mv-psy-main-content,
    .elementor-page .mv-psy-main-content,
    .elementor-widget .mv-psy-main-content,
    .elementor-container .mv-psy-main-content,
    html body .elementor-page .mv-psy-dashboard .mv-psy-main-content {
        margin-left: 0 !important;
        padding-left: 0 !important;
        padding-top: 56px !important; /* Platz für Burger oben */
        max-width: 100% !important;
    }

    /* Linken Rand auf Mobile entfernen (Sidebar ist Overlay) */
    .mv-psy-dashboard.mv-psy-dashboard,
    body.mv-psy-dashboard-page .mv-psy-dashboard,
    .mv-psy-dashboard,
    .elementor-page .mv-psy-dashboard,
    .elementor-widget .mv-psy-dashboard,
    html body.mv-psy-dashboard-page .mv-psy-dashboard {
        padding-left: 0 !important;
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .mv-psy-main-header {
        padding: 20px 16px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 16px !important;
    }

    .mv-psy-main-title {
        font-size: 24px !important;
    }

    .mv-psy-dashboard-content {
        padding: 16px 12px 24px 16px !important;
        padding-left: 16px !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Tab-Header mobil: kleiner, gestapelt */
    .mv-psy-tab-header {
        padding: 16px 12px !important;
        flex-wrap: wrap !important;
    }
    .mv-psy-tab-header-inner {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }
    .mv-psy-tab-title {
        font-size: 20px !important;
        line-height: 1.3 !important;
    }
    .mv-psy-tab-subtitle {
        font-size: 13px !important;
    }
    .mv-psy-tab-header-right {
        width: 100% !important;
        justify-content: flex-start !important;
    }

    /* Tabellen: horizontal scrollen auf kleinen Screens */
    .mv-psy-dashboard-content .mv-psy-section,
    .mv-psy-invoices .mv-psy-section,
    .mv-psy-invoices-list {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }
    .mv-psy-dashboard-content .mv-psy-table,
    .mv-psy-invoices table.mv-psy-table {
        font-size: 13px !important;
    }
    .mv-psy-dashboard-content .mv-psy-table th,
    .mv-psy-dashboard-content .mv-psy-table td {
        padding: 10px 8px !important;
    }

    .mv-psy-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .mv-psy-section {
        padding: 20px 16px !important;
        padding-left: 16px !important;
    }

    .mv-psy-form-row {
        flex-direction: column !important;
    }

    .mv-psy-form-group-small {
        flex: 1 !important;
    }

    .mv-psy-invoice-type-selector {
        grid-template-columns: 1fr !important;
    }

    .mv-psy-subscription-current {
        flex-direction: column !important;
        text-align: center !important;
    }

    .mv-psy-subscription-upgrade {
        flex-direction: column !important;
        gap: 12px !important;
        text-align: center !important;
    }

    .mv-psy-calendar-legend {
        flex-wrap: wrap !important;
    }

    .mv-psy-calendar-navigation {
        flex-wrap: wrap !important;
    }

    .mv-psy-multiselect-options {
        max-height: 250px !important;
    }
}

@media (max-width: 600px) {
    .mv-psy-stats-grid {
        grid-template-columns: 1fr !important;
    }

    .mv-psy-tabs {
        flex-wrap: wrap;
    }

    .mv-psy-form-row {
        flex-direction: column;
    }

    .mv-psy-form-group-small {
        flex: 1;
    }

    .mv-psy-invoice-type-selector {
        grid-template-columns: 1fr;
    }

    .mv-psy-subscription-current {
        flex-direction: column;
        text-align: center;
    }

    .mv-psy-subscription-upgrade {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .mv-psy-calendar-legend {
        flex-wrap: wrap;
    }

    .mv-psy-calendar-navigation {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Multi-Dropdowns responsive */
    .mv-psy-multiselect-wrapper {
        width: 100% !important;
        max-width: 100% !important;
    }

    .mv-psy-multiselect-display {
        font-size: 14px !important;
        padding: 10px 14px !important;
        min-height: 44px !important;
    }

    .mv-psy-multiselect-dropdown {
        max-height: 250px !important;
        position: fixed !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: calc(100% - 40px) !important;
        max-width: 500px !important;
        z-index: 10000 !important;
    }

    /* Dashboard responsive */
    .mv-psy-dashboard {
        padding: 20px 15px !important;
    }

    .mv-psy-dashboard-header {
        flex-direction: column !important;
        gap: 16px !important;
        align-items: flex-start !important;
    }

    .mv-psy-section {
        padding: 20px 16px !important;
        padding-left: 16px !important;
    }

    .mv-psy-tabs {
        flex-wrap: wrap !important;
        overflow-x: auto !important;
    }

    .mv-psy-tab {
        padding: 12px 16px !important;
        font-size: 13px !important;
        white-space: nowrap !important;
    }

    .mv-psy-subtabs {
        flex-wrap: wrap !important;
        overflow-x: auto !important;
    }

    .mv-psy-subtab {
        padding: 10px 14px !important;
        font-size: 13px !important;
        white-space: nowrap !important;
    }

    /* Formular responsive */
    .mv-psy-form-section {
        margin-bottom: 20px !important;
    }

    .mv-psy-form-group {
        margin-bottom: 16px !important;
    }


    /* Multi-Select Dropdowns responsive */
    .mv-psy-multiselect-dropdown {
        width: 100% !important;
    }

    .mv-psy-multiselect-options {
        max-height: 200px !important;
    }

    .mv-psy-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .mv-psy-quick-actions {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .mv-psy-stats-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Multi-Select Dropdown Styles (mit !important für Elementor-Überschreibung) */
/* Multiselect-Dropdown: Elementor-Überschreibung verhindern */
.mv-psy-availability .mv-psy-multiselect-dropdown,
.elementor-widget .mv-psy-availability .mv-psy-multiselect-dropdown,
.elementor-element .mv-psy-availability .mv-psy-multiselect-dropdown {
    position: relative !important;
    width: 100% !important;
    margin-bottom: 16px !important;
    z-index: 99998 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.mv-psy-availability .mv-psy-multiselect-trigger,
.elementor-widget .mv-psy-availability .mv-psy-multiselect-trigger,
.elementor-element .mv-psy-availability .mv-psy-multiselect-trigger {
    pointer-events: auto !important;
    cursor: pointer !important;
    z-index: 100001 !important;
    position: relative !important;
}

.mv-psy-multiselect-dropdown {
    position: relative !important;
    width: 100% !important;
    margin-bottom: 16px !important;
    z-index: 99998 !important;
}

.mv-psy-multiselect-trigger {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px 16px !important;
    background: #fff !important;
    border: 1px solid #d0d5dd !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    font-family: 'Roboto Slab', Georgia, serif !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 99999 !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
}

.mv-psy-multiselect-trigger:hover {
    border-color: #3D4E60 !important;
}

.mv-psy-multiselect-trigger.active {
    border-color: #3D4E60 !important;
    box-shadow: 0 0 0 3px rgba(61, 78, 96, 0.1) !important;
}

.mv-psy-multiselect-placeholder {
    color: #6c757d !important;
    font-size: 14px !important;
}

.mv-psy-multiselect-trigger.active .mv-psy-multiselect-placeholder {
    color: #3D4E60 !important;
}

.mv-psy-multiselect-arrow {
    color: #6c757d !important;
    font-size: 12px !important;
    transition: transform 0.2s !important;
}

.mv-psy-multiselect-trigger.active .mv-psy-multiselect-arrow {
    transform: rotate(180deg) !important;
}

.mv-psy-multiselect-options {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background: #fff !important;
    border: 1px solid #d0d5dd !important;
    border-radius: 8px !important;
    margin-top: 4px !important;
    max-height: 300px !important;
    overflow-y: auto !important;
    z-index: 100000 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.2s, visibility 0.2s !important;
}

.mv-psy-multiselect-dropdown.active .mv-psy-multiselect-options,
.elementor-widget .mv-psy-multiselect-dropdown.active .mv-psy-multiselect-options,
.elementor-element .mv-psy-multiselect-dropdown.active .mv-psy-multiselect-options {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Bookly: Sprache zuerst (Tabs), dann nur Themen dieser Sprache */
#mv-psy-languages-dropdown.active .mv-psy-multiselect-options.mv-psy-multiselect-options--bookly-lang {
    max-height: min(70vh, 520px) !important;
    padding: 12px 12px 14px !important;
}

.mv-psy-bookly-lang-tabs {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin: 0 0 10px 0 !important;
    padding: 0 0 10px 0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.mv-psy-bookly-lang-tab {
    margin: 0 !important;
    padding: 8px 14px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    color: #475569 !important;
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 999px !important;
    cursor: pointer !important;
    line-height: 1.2 !important;
    transition: background 0.15s, border-color 0.15s, color 0.15s !important;
}

.mv-psy-bookly-lang-tab:hover {
    border-color: #3d4e60 !important;
    color: #1e293b !important;
}

.mv-psy-bookly-lang-tab.is-active {
    background: #3d4e60 !important;
    border-color: #3d4e60 !important;
    color: #fff !important;
}

.mv-psy-bookly-lang-hint {
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
    color: #64748b !important;
}

.mv-psy-bookly-lang-empty {
    margin: 8px 0 0 0 !important;
    padding: 10px 12px !important;
    font-size: 13px !important;
    color: #64748b !important;
    background: #f8fafc !important;
    border-radius: 8px !important;
    border: 1px dashed #cbd5e1 !important;
}

#mv-psy-languages-dropdown .mv-psy-lang-panel {
    display: none !important;
}

#mv-psy-languages-dropdown .mv-psy-lang-panel.is-active {
    display: block !important;
}

.mv-psy-cat-header-text {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 2px !important;
}

.mv-psy-cat-header-text .mv-psy-cat-sublabel {
    font-size: 11px !important;
    font-weight: 500 !important;
    color: #64748b !important;
}

.mv-psy-multiselect-dropdown {
    position: relative !important;
    width: 100% !important;
    margin-bottom: 16px !important;
    z-index: 99998 !important;
    pointer-events: auto !important;
}

.mv-psy-multiselect-dropdown * {
    pointer-events: auto !important;
}

.mv-psy-multiselect-option,
.elementor-widget .mv-psy-multiselect-option,
.elementor-element .mv-psy-multiselect-option {
    display: flex !important;
    align-items: center !important;
    flex-direction: row !important;
    padding: 12px 16px !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
    border-bottom: 1px solid #f0f0f0 !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 1 !important;
}

.mv-psy-multiselect-option:last-child {
    border-bottom: none !important;
}

.mv-psy-multiselect-option:hover {
    background: #f8f9fa !important;
}

.mv-psy-multiselect-option input[type='checkbox'],
.elementor-widget .mv-psy-multiselect-option input[type='checkbox'],
.elementor-element .mv-psy-multiselect-option input[type='checkbox'] {
    margin-right: 12px !important;
    margin-left: 0 !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    z-index: 1 !important;
    position: relative !important;
    accent-color: #3D4E60 !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    vertical-align: middle !important;
}

.mv-psy-multiselect-option span,
.mv-psy-multiselect-option strong,
.elementor-widget .mv-psy-multiselect-option span,
.elementor-widget .mv-psy-multiselect-option strong,
.elementor-element .mv-psy-multiselect-option span,
.elementor-element .mv-psy-multiselect-option strong {
    font-size: 14px !important;
    color: #3D4E60 !important;
    font-family: 'Roboto Slab', Georgia, serif !important;
    flex: 1 !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

.mv-psy-multiselect-selected {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-top: 12px !important;
}

.mv-psy-multiselect-tag {
    display: inline-flex !important;
    align-items: center !important;
    padding: 6px 12px !important;
    background: #e8f0f5 !important;
    color: #3D4E60 !important;
    border-radius: 16px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

.mv-psy-multiselect-tag-remove {
    margin-left: 6px !important;
    cursor: pointer !important;
    color: #6c757d !important;
    font-weight: bold !important;
}

.mv-psy-multiselect-tag-remove:hover {
    color: #ef4444 !important;
}

/* Kategorien & Services Struktur */
.mv-psy-category-group {
    margin-bottom: 8px !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

.mv-psy-category-header,
.elementor-widget .mv-psy-category-header,
.elementor-element .mv-psy-category-header {
    display: flex !important;
    align-items: center !important;
    flex-direction: row !important;
    font-weight: 600 !important;
    background: #f8f9fa !important;
    padding: 10px 12px !important;
    border-radius: 6px !important;
    margin-bottom: 4px !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 1 !important;
}

.mv-psy-category-header strong,
.elementor-widget .mv-psy-category-header strong,
.elementor-element .mv-psy-category-header strong {
    color: #3D4E60 !important;
    flex: 1 !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

.mv-psy-services-group {
    margin-left: 24px !important;
    margin-top: 4px !important;
    margin-bottom: 8px !important;
    padding-left: 32px !important;
    background: #fff !important;
}

.mv-psy-service-option,
.elementor-widget .mv-psy-service-option,
.elementor-element .mv-psy-service-option {
    display: flex !important;
    align-items: center !important;
    flex-direction: row !important;
    padding-left: 48px !important;
    font-weight: normal !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 1 !important;
}

.mv-psy-tag {
    display: inline-flex !important;
    align-items: center !important;
    padding: 4px 10px !important;
    background: #e8f0f5 !important;
    color: #3D4E60 !important;
    border-radius: 16px !important;
    font-size: 12px !important;
}

.mv-psy-tag-category {
    background: #3D4E60 !important;
    color: #fff !important;
    font-weight: 600 !important;
}

.mv-psy-tag-service {
    background: #6c757d !important;
    color: #fff !important;
}

@media (max-width: 768px) {
    .mv-psy-services-group {
        margin-left: 16px !important;
    }

    .mv-psy-service-option {
        padding-left: 24px !important;
    }
}

/* Verfügbarkeitsseite: Elementor-Überschreibung komplett verhindern */
.mv-psy-availability,
.elementor-widget .mv-psy-availability,
.elementor-element .mv-psy-availability,
body .elementor-widget .mv-psy-availability,
body .elementor-element .mv-psy-availability {
    position: relative !important;
    z-index: 1 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.mv-psy-availability *,
.elementor-widget .mv-psy-availability *,
.elementor-element .mv-psy-availability *,
body .elementor-widget .mv-psy-availability *,
body .elementor-element .mv-psy-availability * {
    pointer-events: auto !important;
}

/* Elementor-Overlay verhindern */
.elementor-widget .mv-psy-availability::before,
.elementor-widget .mv-psy-availability::after,
.elementor-element .mv-psy-availability::before,
.elementor-element .mv-psy-availability::after {
    display: none !important;
    pointer-events: none !important;
}

/* Buttons in Verfügbarkeit explizit absichern */
.mv-psy-availability #mv-psy-save-availability,
.mv-psy-availability #mv-psy-save-schedule,
.mv-psy-availability #mv-psy-google-calendar-connect,
.mv-psy-availability #mv-psy-google-calendar-disconnect,
.mv-psy-availability #mv-psy-google-calendar-save,
.elementor-widget .mv-psy-availability button,
.elementor-element .mv-psy-availability button {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative !important;
    z-index: 99999 !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
}

/* Arbeitszeiten / Schedule */
.mv-psy-schedule-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    margin-top: 20px !important;
}

.mv-psy-schedule-day {
    display: flex !important;
    flex-direction: column !important;
    padding: 16px !important;
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
}

.mv-psy-schedule-day-header {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 12px !important;
}

.mv-psy-schedule-day-checkbox {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    flex: 1 !important;
}

.mv-psy-schedule-day-checkbox input[type='checkbox'],
.elementor-widget .mv-psy-schedule-day-checkbox input[type='checkbox'],
.elementor-element .mv-psy-schedule-day-checkbox input[type='checkbox'] {
    width: 18px !important;
    height: 18px !important;
    cursor: pointer !important;
    accent-color: #3D4E60 !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 9999 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.mv-psy-schedule-day-times {
    display: flex !important;
    gap: 12px !important;
    align-items: flex-end !important;
}

.mv-psy-schedule-day-times input[type='time'],
.elementor-widget .mv-psy-schedule-day-times input[type='time'],
.elementor-element .mv-psy-schedule-day-times input[type='time'] {
    padding: 8px 12px !important;
    border: 1px solid #d0d5dd !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-family: 'Roboto Slab', Georgia, serif !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 9999 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.mv-psy-schedule-day-times input[type='time']:focus {
    outline: none !important;
    border-color: #3D4E60 !important;
}

/* Form Actions Buttons */
.mv-psy-form-actions,
.elementor-widget .mv-psy-form-actions,
.elementor-element .mv-psy-form-actions {
    display: flex !important;
    gap: 12px !important;
    margin-top: 20px !important;
    position: relative !important;
    z-index: 1 !important;
}

.mv-psy-form-actions .mv-psy-btn,
.elementor-widget .mv-psy-form-actions .mv-psy-btn,
.elementor-element .mv-psy-form-actions .mv-psy-btn {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative !important;
    z-index: 99999 !important;
}

@media (max-width: 768px) {
    .mv-psy-schedule-day-times {
        flex-direction: column !important;
        gap: 8px !important;
    }

    .mv-psy-schedule-day-times .mv-psy-form-group {
        margin-left: 0 !important;
    }
}

.mv-psy-badge-unread {
    background: #ef4444 !important;
    color: #fff !important;
    font-size: 11px !important;
    padding: 2px 6px !important;
    border-radius: 10px !important;
}

.mv-psy-badge-private {
    background: #10b98120 !important;
    color: #10b981 !important;
}

.mv-psy-badge-corporate {
    background: #3b82f620 !important;
    color: #3b82f6 !important;
}

.mv-psy-client-footer {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-top: 8px !important;
    padding-top: 8px !important;
    border-top: 1px solid #e0e0e0 !important;
}

.mv-psy-client-businesscode {
    font-size: 12px !important;
    color: #6c757d !important;
}

/* Zusätzliche Styles gegen Elementor-Überschreibungen - Profilseite */
.mv-psy-profile,
.mv-psy-profile * {
    box-sizing: border-box !important;
}

.mv-psy-profile .mv-psy-section {
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 16px !important;
    padding: 28px !important;
    margin-bottom: 24px !important;
}

.mv-psy-profile-form {
    width: 100% !important;
    display: block !important;
}

/* Profil-Formular auf Untertab „Buchungsseite“ verbergen */
.mv-psy-profile-form.mv-psy-form-hidden-on-booking {
    display: none !important;
}

.mv-psy-profile-form .mv-psy-form-row {
    display: flex !important;
    gap: 16px !important;
    margin-bottom: 0 !important;
    flex-wrap: wrap !important;
}

.mv-psy-profile-form .mv-psy-form-group {
    flex: 1 !important;
    margin-bottom: 20px !important;
    min-width: 0 !important;
    display: block !important;
}

.mv-psy-profile-form .mv-psy-form-group-small {
    flex: 0 0 120px !important;
}

.mv-psy-profile-form .mv-psy-form-group label {
    display: block !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    margin-bottom: 6px !important;
    margin-top: 0 !important;
    color: #3D4E60 !important;
    width: 100% !important;
    line-height: 1.4 !important;
}

.mv-psy-profile-form .mv-psy-form-group input[type='text'],
.mv-psy-profile-form .mv-psy-form-group input[type='email'],
.mv-psy-profile-form .mv-psy-form-group input[type='tel'],
.mv-psy-profile-form .mv-psy-form-group input[type='url'],
.mv-psy-profile-form .mv-psy-form-group select,
.mv-psy-profile-form .mv-psy-form-group textarea {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 14px !important;
    border: 1px solid #d0d5dd !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-family: 'Roboto Slab', serif !important;
    box-sizing: border-box !important;
    background: #fff !important;
    color: #3D4E60 !important;
    margin: 0 !important;
    display: block !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}

.mv-psy-profile-form .mv-psy-form-group input[type='text']:disabled,
.mv-psy-profile-form .mv-psy-form-group input[type='email']:disabled {
    background: #f5f5f5 !important;
    cursor: not-allowed !important;
}

.mv-psy-profile-form .mv-psy-form-group select {
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"%233D4E60\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><polyline points=\"6 9 12 15 18 9\"></polyline></svg>') !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 16px !important;
    padding-right: 36px !important;
}

.mv-psy-profile-form .mv-psy-form-group textarea {
    min-height: 100px !important;
    resize: vertical !important;
    line-height: 1.5 !important;
}

.mv-psy-profile-form .mv-psy-form-group input:focus,
.mv-psy-profile-form .mv-psy-form-group select:focus,
.mv-psy-profile-form .mv-psy-form-group textarea:focus {
    outline: none !important;
    border-color: #3D4E60 !important;
    box-shadow: 0 0 0 3px rgba(61, 78, 96, 0.1) !important;
}

.mv-psy-profile-form .mv-psy-form-hint {
    font-size: 12px !important;
    color: #6c757d !important;
    margin: 8px 0 0 0 !important;
    line-height: 1.4 !important;
    display: block !important;
}

.mv-psy-profile-form .mv-psy-form-actions {
    margin-top: 24px !important;
    padding-top: 24px !important;
    border-top: 1px solid #e0e0e0 !important;
}

.mv-psy-profile-form .mv-psy-form-actions .mv-psy-btn {
    min-width: 150px !important;
}

/* Überschreibe alle Elementor-Styles für Profilseite - aber NUR Elementor-Tabellen, nicht unsere Formularfelder */
.mv-psy-profile .elementor-widget table,
.mv-psy-profile-form .elementor-widget table,
.elementor-widget .mv-psy-profile table,
.elementor-widget .mv-psy-profile-form table {
    display: none !important;
}

/* Erzwinge Sichtbarkeit der Rechnungstabelle - WICHTIG: Muss nach allen anderen Regeln kommen */
table.mv-psy-table,
.mv-psy-invoices-list table.mv-psy-table,
.mv-psy-invoices table.mv-psy-table,
.elementor-widget table.mv-psy-table,
.elementor-widget .mv-psy-invoices-list table.mv-psy-table,
.elementor-widget .mv-psy-invoices table.mv-psy-table,
body table.mv-psy-table {
    display: table !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
}

.mv-psy-invoices-list table.mv-psy-table thead {
    display: table-header-group !important;
}

.mv-psy-invoices-list table.mv-psy-table tbody {
    display: table-row-group !important;
}

.mv-psy-invoices-list table.mv-psy-table tr {
    display: table-row !important;
}

.mv-psy-invoices-list table.mv-psy-table td,
.mv-psy-invoices-list table.mv-psy-table th {
    display: table-cell !important;
}

/* Stelle sicher, dass unsere Formularfelder NICHT in Tabellen versteckt werden */
.mv-psy-profile-form .mv-psy-form-group,
.mv-psy-profile-form .mv-psy-form-row,
.mv-psy-profile-form > *,
.mv-psy-profile-form h3 ~ *,
.mv-psy-profile-form h3 ~ .mv-psy-form-group,
.mv-psy-profile-form h3 ~ .mv-psy-form-row {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
}

.mv-psy-profile-form input[type=\"text\"],
.mv-psy-profile-form input[type=\"email\"],
.mv-psy-profile-form input[type=\"tel\"],
.mv-psy-profile-form select,
.mv-psy-profile-form textarea,
.mv-psy-profile-form label {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.mv-psy-profile-form .mv-psy-form-row {
    display: flex !important;
}

.mv-psy-profile .elementor-widget,
.mv-psy-profile-form .elementor-widget {
    all: unset !important;
}

/* Sehr spezifische Regeln gegen Elementor - Profilseite */
body .mv-psy-dashboard .mv-psy-profile .mv-psy-section,
body .mv-psy-dashboard .mv-psy-profile-form,
body .elementor-page .mv-psy-profile .mv-psy-section,
body .elementor-page .mv-psy-profile-form {
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 16px !important;
    padding: 28px !important;
    margin-bottom: 24px !important;
    display: block !important;
}

body .mv-psy-dashboard .mv-psy-profile-form .mv-psy-form-row,
body .elementor-page .mv-psy-profile-form .mv-psy-form-row {
    display: flex !important;
    flex-direction: row !important;
    gap: 16px !important;
    margin-bottom: 0 !important;
    flex-wrap: wrap !important;
    width: 100% !important;
}

body .mv-psy-dashboard .mv-psy-profile-form .mv-psy-form-group,
body .elementor-page .mv-psy-profile-form .mv-psy-form-group {
    display: block !important;
    flex: 1 !important;
    margin-bottom: 20px !important;
    min-width: 0 !important;
    width: auto !important;
}

body .mv-psy-dashboard .mv-psy-profile-form .mv-psy-form-group label,
body .elementor-page .mv-psy-profile-form .mv-psy-form-group label {
    display: block !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    margin-bottom: 6px !important;
    margin-top: 0 !important;
    color: #3D4E60 !important;
    width: 100% !important;
    line-height: 1.4 !important;
}

body .mv-psy-dashboard .mv-psy-profile-form .mv-psy-form-group input,
body .mv-psy-dashboard .mv-psy-profile-form .mv-psy-form-group select,
body .mv-psy-dashboard .mv-psy-profile-form .mv-psy-form-group textarea,
body .elementor-page .mv-psy-profile-form .mv-psy-form-group input,
body .elementor-page .mv-psy-profile-form .mv-psy-form-group select,
body .elementor-page .mv-psy-profile-form .mv-psy-form-group textarea {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 14px !important;
    border: 1px solid #d0d5dd !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-family: 'Roboto Slab', serif !important;
    box-sizing: border-box !important;
    background: #fff !important;
    color: #3D4E60 !important;
    margin: 0 !important;
    display: block !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    float: none !important;
    clear: both !important;
}

body .mv-psy-dashboard .mv-psy-profile-form .mv-psy-form-group select,
body .elementor-page .mv-psy-profile-form .mv-psy-form-group select {
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"%233D4E60\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><polyline points=\"6 9 12 15 18 9\"></polyline></svg>') !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 16px !important;
    padding-right: 36px !important;
}

body .mv-psy-dashboard .mv-psy-profile-form .mv-psy-form-group textarea,
body .elementor-page .mv-psy-profile-form .mv-psy-form-group textarea {
    min-height: 100px !important;
    resize: vertical !important;
    line-height: 1.5 !important;
}

body .mv-psy-dashboard .mv-psy-profile-form .mv-psy-form-group input:focus,
body .mv-psy-dashboard .mv-psy-profile-form .mv-psy-form-group select:focus,
body .mv-psy-dashboard .mv-psy-profile-form .mv-psy-form-group textarea:focus,
body .elementor-page .mv-psy-profile-form .mv-psy-form-group input:focus,
body .elementor-page .mv-psy-profile-form .mv-psy-form-group select:focus,
body .elementor-page .mv-psy-profile-form .mv-psy-form-group textarea:focus {
    outline: none !important;
    border-color: #3D4E60 !important;
    box-shadow: 0 0 0 3px rgba(61, 78, 96, 0.1) !important;
}

body .mv-psy-dashboard .mv-psy-profile-form .mv-psy-form-actions,
body .elementor-page .mv-psy-profile-form .mv-psy-form-actions {
    margin-top: 24px !important;
    padding-top: 24px !important;
    border-top: 1px solid #e0e0e0 !important;
    display: block !important;
    clear: both !important;
}

body .mv-psy-dashboard .mv-psy-profile-form .mv-psy-form-actions .mv-psy-btn,
body .elementor-page .mv-psy-profile-form .mv-psy-form-actions .mv-psy-btn {
    min-width: 150px !important;
    display: inline-flex !important;
}

/* Verhindere Tabellen-Darstellung durch Elementor - STELLE SICHER DASS ALLES SICHTBAR IST */
body .mv-psy-profile-form .mv-psy-form-row > *,
body .mv-psy-profile-form .mv-psy-form-group,
body .mv-psy-profile-form h3 ~ *,
body .mv-psy-profile-form h3 ~ .mv-psy-form-group {
    display: block !important;
    float: none !important;
    table-layout: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
}

body .mv-psy-profile-form .mv-psy-form-row {
    display: flex !important;
    table-layout: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* KRITISCH: Verhindere, dass Elementor unsere Formularfelder versteckt */
body .elementor-page .mv-psy-profile-form .mv-psy-form-group,
body .elementor-page .mv-psy-profile-form h3 ~ *,
body .elementor-page .mv-psy-profile-form h3 ~ .mv-psy-form-group {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
}

/* Verhindere CSS-Konflikte mit Mental Health Participant Plugin - Sidebar Navigation */
.mv-psy-dashboard .mv-psy-sidebar-nav .mv-psy-sidebar-item,
.mv-psy-sidebar-nav .mv-psy-sidebar-item {
    /* Überschreibe alle möglichen Mental Health Participant Tab-Styles */
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    padding: 12px 20px !important;
    border: none !important;
    border-left: 3px solid transparent !important;
    background: transparent !important;
    background-color: transparent !important;
    border-radius: 0 !important;
    color: #6c757d !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    box-shadow: none !important;
    flex: none !important;
    white-space: normal !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
}

.mv-psy-dashboard .mv-psy-sidebar-nav .mv-psy-sidebar-item:hover,
.mv-psy-sidebar-nav .mv-psy-sidebar-item:hover {
    background: #f9fafb !important;
    background-color: #f9fafb !important;
    color: #3D4E60 !important;
    transform: none !important;
    box-shadow: none !important;
}

.mv-psy-dashboard .mv-psy-sidebar-nav .mv-psy-sidebar-item.active,
.mv-psy-sidebar-nav .mv-psy-sidebar-item.active {
    background: #FFF8E4 !important;
    background-color: #FFF8E4 !important;
    color: #3D4E60 !important;
    border-left: 3px solid #3D4E60 !important;
    font-weight: 600 !important;
    box-shadow: none !important;
}

/* Verhindere, dass Mental Health Participant CSS die Sidebar beeinflusst */
.mv-psy-dashboard .mhp-main-nav-tabs,
.mv-psy-dashboard .mhp-main-tab {
    display: none !important;
}

.mv-psy-dashboard .mv-psy-sidebar-item.mhp-main-tab,
.mv-psy-sidebar-item.mhp-main-tab {
    display: flex !important;
}

/* ========================================== */
/* RATINGS TAB STYLES */
/* ========================================== */

/* Mehr vertikaler Abstand: untere Header-Linie → Einstellungen, Sektion → Liste */
html body .mv-psy-dashboard .mv-psy-ratings-container .mv-psy-tab-header,
html body .elementor-page .mv-psy-dashboard .mv-psy-ratings-container .mv-psy-tab-header {
    margin-bottom: 48px !important;
}

.mv-psy-ratings-container > .mv-psy-section {
    margin-bottom: 32px !important;
}

.mv-psy-ratings-container .mv-psy-ratings-list {
    margin-top: 8px;
}

.mv-psy-rating-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 18px 16px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
}

.mv-psy-rating-average {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mv-psy-rating-number {
    font-size: 32px;
    font-weight: 700;
    color: #3D4E60;
}

.mv-psy-stars {
    display: flex;
    gap: 2px;
}

.mv-psy-star {
    font-size: 20px;
    color: #e0e0e0;
}

.mv-psy-star.filled {
    color: #fbbf24;
}

.mv-psy-rating-count {
    margin: 0;
    font-size: 14px;
    color: #6c757d;
}

.mv-psy-ratings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    margin-top: 36px;
}

.mv-psy-rating-item {
    padding: 16px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.mv-psy-rating-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.mv-psy-rating-stars {
    font-size: 16px;
    color: #fbbf24;
}

.mv-psy-rating-date {
    font-size: 12px;
    color: #6c757d;
}

.mv-psy-rating-topic {
    margin-bottom: 8px;
    font-size: 14px;
    color: #3D4E60;
}

.mv-psy-rating-comment {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.6;
}

/* ========================================== */
/* RESPONSIVE STYLES FÜR ALLE TABS (MOBILE) */
/* ========================================== */

@media (max-width: 768px) {
    /* Tab Header responsive */
    .mv-psy-tab-header-inner {
        flex-direction: column !important;
        gap: 16px !important;
    }

    .mv-psy-tab-header-right {
        width: 100% !important;
    }

    /* Overview Tab - Stats Grid */
    .mv-psy-overview .mv-psy-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    /* Overview Tab - Appointment Lists */
    .mv-psy-overview .mv-psy-appointments-list > div > div {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }

    .mv-psy-overview .mv-psy-appointments-list > div > div > div:last-child {
        margin-left: 0 !important;
        text-align: left !important;
        width: 100% !important;
    }

    /* Overview Tab - Quick Actions */
    .mv-psy-overview .mv-psy-quick-actions {
        grid-template-columns: 1fr !important;
    }

    /* Calendar Tab - Navigation */
    .mv-psy-calendar-navigation {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    .mv-psy-calendar-title {
        min-width: auto !important;
        flex: 1 1 100% !important;
        order: 3 !important;
        margin-top: 8px !important;
    }

    /* Calendar Tab - Legend */
    .mv-psy-calendar-legend {
        flex-wrap: wrap !important;
        gap: 12px !important;
    }

    /* Calendar Tab - Grid */
    .mv-psy-calendar-grid {
        font-size: 11px !important;
    }

    .mv-psy-calendar-cell {
        min-height: 60px !important;
        padding: 4px !important;
    }

    .mv-psy-calendar-day {
        font-size: 12px !important;
    }

    .mv-psy-calendar-event {
        font-size: 10px !important;
        padding: 2px 4px !important;
    }

    /* Clients Tab - Booking Link Section */
    .mv-psy-clients .mv-psy-section > div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 16px !important;
    }

    .mv-psy-clients .mv-psy-section > div[style*="display: flex"] > div:first-child {
        min-width: 100% !important;
    }

    .mv-psy-clients #mv-psy-booking-link {
        font-size: 12px !important;
    }

    .mv-psy-clients #mv-psy-copy-link {
        white-space: normal !important;
        padding: 10px 16px !important;
    }

    /* Clients Tab - Client Cards */
    .mv-psy-client-card {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }

    .mv-psy-client-card > div:last-child {
        margin-left: 0 !important;
        width: 100% !important;
        justify-content: flex-start !important;
    }

    /* Clients Tab - Form Modal */
    #mv-psy-client-modal > div {
        margin: 20px !important;
        padding: 20px !important;
        max-width: calc(100% - 40px) !important;
    }

    /* Availability Tab - Schedule Day Times */
    .mv-psy-schedule-day-times {
        flex-direction: column !important;
        gap: 8px !important;
    }

    .mv-psy-schedule-day-times .mv-psy-form-group {
        margin-left: 0 !important;
        width: 100% !important;
    }

    /* Availability Tab - Google Calendar Section */
    .mv-psy-google-calendar-connected > div:first-child {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }

    .mv-psy-google-calendar-connected #mv-psy-google-calendar-disconnect {
        width: 100% !important;
    }

    /* Profile Tab - Form Rows */
    .mv-psy-profile .mv-psy-form-row {
        flex-direction: column !important;
    }

    .mv-psy-profile .mv-psy-form-group-small {
        flex: 1 1 100% !important;
    }

    /* Profile Tab - Photo Upload */
    .mv-psy-profile .mv-psy-public-profile-field > div[style*="display: flex"] {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .mv-psy-profile .mv-psy-profile-photo-row,
    .mv-psy-dashboard .mv-psy-profile-photo-row {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .mv-psy-profile .mv-psy-profile-photo-preview-wrap,
    .mv-psy-dashboard .mv-psy-profile-photo-preview-wrap {
        width: 120px !important;
        max-width: 100% !important;
    }

    .mv-psy-profile .mv-psy-profile-photo-controls,
    .mv-psy-dashboard .mv-psy-profile-photo-controls {
        flex: 1 1 auto !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .mv-psy-profile #mv-psy-photo-preview {
        margin-bottom: 0 !important;
    }

    /* Profile Tab - Preview Card */
    .mv-psy-slider-preview-section #mv-psy-preview-card {
        max-width: 100% !important;
    }

    /* Profile Tab - Private Prices */
    .mv-psy-profile #mv-psy-private-prices-container .mv-psy-form-row {
        flex-direction: column !important;
    }

    /* Profile Tab - Subscription */
    .mv-psy-subscription-current {
        flex-direction: column !important;
        text-align: center !important;
    }

    .mv-psy-subscription-upgrade {
        flex-direction: column !important;
        gap: 12px !important;
        text-align: center !important;
    }

    /* Ratings Tab - Summary */
    .mv-psy-tab-header-right {
        margin-top: 16px !important;
    }

    .mv-psy-rating-summary {
        flex-direction: column !important;
        align-items: center !important;
        gap: 14px !important;
    }

    /* Ratings Tab - Grid */
    .mv-psy-ratings-grid {
        grid-template-columns: 1fr !important;
    }

    /* Section Headers */
    .mv-psy-section-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }

    .mv-psy-section-header .mv-psy-btn {
        width: 100% !important;
        justify-content: center !important;
    }

    /* Appointment Items in Lists */
    .mv-psy-appointments-list > div > div {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }

    .mv-psy-appointments-list > div > div > div:last-child {
        margin-left: 0 !important;
        text-align: left !important;
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    /* Overview Tab - Stats Grid */
    .mv-psy-overview .mv-psy-stats-grid {
        grid-template-columns: 1fr !important;
    }

    /* Calendar Tab - Grid */
    .mv-psy-calendar-cell {
        min-height: 50px !important;
        padding: 2px !important;
    }

    .mv-psy-calendar-header-cell {
        padding: 8px 4px !important;
        font-size: 11px !important;
    }

    /* Tab Headers */
    .mv-psy-tab-title {
        font-size: 22px !important;
    }

    .mv-psy-tab-subtitle {
        font-size: 13px !important;
    }
}

/* ============================================================================
   LIVE EVENTS STYLES
   ============================================================================ */

.mv-psy-events {
    padding: 0;
}

.mv-psy-filter-tabs {
    display: flex !important;
    gap: 8px !important;
    margin-top: 16px !important;
    margin-bottom: 0 !important;
    flex-wrap: wrap !important;
    align-items: center !important;
}

.mv-psy-filter-tab,
.mv-psy-filter-tab.mv-psy-btn,
button.mv-psy-filter-tab {
    padding: 8px 16px !important;
    border: 1px solid #e0e0e0 !important;
    background: #fff !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #6c757d !important;
    transition: all 0.2s !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    box-shadow: none !important;
    line-height: 1.5 !important;
    min-height: auto !important;
    width: auto !important;
    height: auto !important;
    flex: none !important;
}

.mv-psy-filter-tab:hover,
.mv-psy-filter-tab.mv-psy-btn:hover,
button.mv-psy-filter-tab:hover {
    border-color: #3D4E60 !important;
    color: #3D4E60 !important;
    background: #f9fafb !important;
    box-shadow: none !important;
}

.mv-psy-filter-tab.active,
.mv-psy-filter-tab.mv-psy-btn.active,
button.mv-psy-filter-tab.active {
    background: #3D4E60 !important;
    color: #fff !important;
    border-color: #3D4E60 !important;
    box-shadow: none !important;
}

.mv-psy-filter-tab.active:hover,
.mv-psy-filter-tab.mv-psy-btn.active:hover,
button.mv-psy-filter-tab.active:hover {
    background: #2b3a46 !important;
    border-color: #2b3a46 !important;
    color: #fff !important;
    box-shadow: none !important;
}

/* Live-Events-Liste: mind. zwei Karten nebeneinander, weitere per horizontal scroll */
#mv-psy-events-list.mv-psy-events-list-scroll {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    margin-top: 0 !important;
    padding-bottom: 10px;
    scroll-snap-type: x proximity;
}

#mv-psy-events-list.mv-psy-events-list-scroll > .mv-psy-events-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 20px;
    margin-top: 0 !important;
}

#mv-psy-events-list.mv-psy-events-list-scroll .mv-psy-event-card {
    flex: 0 0 calc(50% - 10px);
    min-width: 280px;
    max-width: 440px;
    box-sizing: border-box;
    scroll-snap-align: start;
}

.mv-psy-event-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px;
    transition: all 0.2s;
}

.mv-psy-event-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #3D4E60;
}

.mv-psy-event-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.mv-psy-event-card-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #3D4E60;
    flex: 1;
}

.mv-psy-event-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.mv-psy-status-draft {
    background: #f3f4f6;
    color: #6c757d;
}

.mv-psy-status-collecting {
    background: #fef3c7;
    color: #92400e;
}

.mv-psy-status-published {
    background: #d1fae5;
    color: #065f46;
}

.mv-psy-status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.mv-psy-status-completed {
    background: #e0e7ff;
    color: #3730a3;
}

.mv-psy-event-card-body {
    margin-bottom: 16px;
}

.mv-psy-event-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    font-size: 13px;
    color: #6c757d;
}

.mv-psy-event-type {
    font-weight: 600;
    color: #3D4E60;
}

.mv-psy-event-description {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.5;
    margin: 12px 0;
}

.mv-psy-event-participants {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    font-size: 14px;
    color: #3D4E60;
}

.mv-psy-event-free {
    background: #d1fae5;
    color: #065f46;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.mv-psy-event-revenue {
    background: #dbeafe;
    color: #1e40af;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    font-weight: 500;
}

.mv-psy-event-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.mv-psy-event-card-actions .mv-psy-btn {
    flex: 1;
    min-width: 100px;
}

.mv-psy-event-details {
    padding: 0;
}

.mv-psy-event-info {
    background: #f8f9fa;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.mv-psy-event-info p {
    margin: 0;
    font-size: 14px;
    color: #3D4E60;
}

.mv-psy-event-details h3 {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
    color: #3D4E60;
    padding-bottom: 12px;
    border-bottom: 2px solid #e0e0e0;
}

.mv-psy-registrations-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.mv-psy-registration-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px 20px;
    transition: all 0.2s ease;
}

.mv-psy-registration-item:hover {
    border-color: #3D4E60;
    box-shadow: 0 2px 8px rgba(61, 78, 96, 0.1);
}

.mv-psy-registration-item > div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    align-items: start;
}

.mv-psy-registration-item strong {
    color: #3D4E60;
    font-weight: 600;
    display: inline-block;
    min-width: 120px;
    font-size: 13px;
}

.mv-psy-registration-item > div > * {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
}
    padding: 16px;
    background: #f9fafb;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
}

.mv-psy-event-details {
    padding: 0;
}

.mv-psy-event-info {
    background: #f8f9fa;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.mv-psy-event-info p {
    margin: 0;
    font-size: 14px;
    color: #3D4E60;
}

.mv-psy-event-details h3 {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
    color: #3D4E60;
    padding-bottom: 12px;
    border-bottom: 2px solid #e0e0e0;
}

/* Event Modal spezifische Styles - verhindert Style-Überschreibung */
#mv-psy-event-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 10000 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
}

#mv-psy-event-modal[style*="block"],
#mv-psy-event-modal.mv-psy-modal-open {
    display: flex !important;
}

#mv-psy-event-modal .mv-psy-modal-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(2px) !important;
}

#mv-psy-event-modal .mv-psy-modal-content {
    position: relative !important;
    background: #fff !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
    z-index: 10001 !important;
    width: 90% !important;
    max-width: 700px !important;
    max-height: 90vh !important;
    margin: 0 auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}

#mv-psy-event-modal .mv-psy-modal-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 24px !important;
    border-bottom: 1px solid #e0e0e0 !important;
    flex-shrink: 0 !important;
}

#mv-psy-event-modal .mv-psy-modal-header h2 {
    margin: 0 !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    color: #3D4E60 !important;
}

#mv-psy-event-modal .mv-psy-modal-close {
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 8px !important;
    color: #6c757d !important;
    transition: color 0.2s !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 24px !important;
    line-height: 1 !important;
}

#mv-psy-event-modal .mv-psy-modal-close:hover {
    color: #3D4E60 !important;
}

#mv-psy-event-form {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 24px !important;
}

#mv-psy-event-form .mv-psy-form-group,
#mv-psy-event-form .mv-psy-form-row {
    flex-shrink: 0 !important;
    margin-bottom: 20px !important;
}

#mv-psy-event-form .mv-psy-form-actions {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 12px !important;
    margin-top: auto !important;
    padding-top: 24px !important;
    flex-shrink: 0 !important;
    border-top: 1px solid #e0e0e0 !important;
}

#mv-psy-event-form .mv-psy-form-actions .mv-psy-btn {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Responsive Events */
@media (max-width: 768px) {
    #mv-psy-events-list.mv-psy-events-list-scroll .mv-psy-event-card {
        flex: 0 0 min(320px, calc(100vw - 72px));
        min-width: min(280px, calc(100vw - 72px));
        max-width: none;
    }

    #mv-psy-events-list.mv-psy-events-list-scroll > .mv-psy-events-grid {
        gap: 16px;
    }

    .mv-psy-event-card {
        padding: 14px;
    }

    .mv-psy-event-card-header {
        flex-direction: column;
        gap: 12px;
    }

    .mv-psy-event-card-actions {
        flex-direction: column;
    }

    .mv-psy-event-card-actions .mv-psy-btn {
        width: 100%;
    }

    .mv-psy-filter-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .mv-psy-filter-tab {
        white-space: nowrap;
    }
    
    /* Event Modal spezifische Fixes */
    #mv-psy-event-modal {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    #mv-psy-event-modal .mv-psy-modal-content {
        max-width: 95% !important;
        max-height: 95vh !important;
        margin: 0 auto !important;
    }
    
    #mv-psy-event-modal .mv-psy-modal-header {
        flex-shrink: 0;
    }
    
    #mv-psy-event-modal form {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }
    
    #mv-psy-event-form {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 0;
        overflow: hidden;
    }
    
    #mv-psy-event-form .mv-psy-form-group,
    #mv-psy-event-form .mv-psy-form-row {
        flex-shrink: 0;
    }
    
    #mv-psy-event-form .mv-psy-form-actions {
        margin-top: auto;
        padding-top: 24px;
        flex-shrink: 0;
        border-top: 1px solid #e0e0e0;
    }
        flex-shrink: 0;
    }
}

/* Schedule Event Modal spezifische Styles */
#mv-psy-schedule-event-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 10000 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
}

#mv-psy-schedule-event-modal.mv-psy-modal-open {
    display: flex !important;
}

#mv-psy-schedule-event-modal .mv-psy-modal-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(2px) !important;
}

#mv-psy-schedule-event-modal .mv-psy-modal-content {
    position: relative !important;
    background: #fff !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
    z-index: 10001 !important;
    width: 90% !important;
    max-width: 500px !important;
    max-height: 90vh !important;
    margin: 0 auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}

#mv-psy-schedule-event-modal .mv-psy-modal-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 24px !important;
    border-bottom: 1px solid #e0e0e0 !important;
    flex-shrink: 0 !important;
}

#mv-psy-schedule-event-modal .mv-psy-modal-header h2 {
    margin: 0 !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    color: #3D4E60 !important;
    font-family: 'Roboto Slab', serif !important;
}

#mv-psy-schedule-event-modal .mv-psy-modal-close {
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 8px !important;
    color: #6c757d !important;
    font-size: 28px !important;
    line-height: 1 !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 4px !important;
    transition: all 0.2s !important;
}

#mv-psy-schedule-event-modal .mv-psy-modal-close:hover {
    color: #3D4E60 !important;
    background: #f0f0f0 !important;
}

#mv-psy-schedule-event-modal .mv-psy-modal-body {
    padding: 24px !important;
    flex: 1 !important;
    overflow-y: auto !important;
}

#mv-psy-schedule-event-modal .mv-psy-form-group {
    margin-bottom: 20px !important;
}

#mv-psy-schedule-event-modal .mv-psy-form-group label {
    display: block !important;
    margin-bottom: 8px !important;
    font-weight: 600 !important;
    color: #3D4E60 !important;
    font-size: 14px !important;
    font-family: 'Roboto Slab', serif !important;
}

#mv-psy-schedule-event-modal .mv-psy-form-actions {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    margin-top: 24px !important;
    padding-top: 24px !important;
    border-top: 1px solid #e0e0e0 !important;
}

@media (max-width: 768px) {
    #mv-psy-schedule-event-modal .mv-psy-modal-content {
        width: 95% !important;
        max-width: 95% !important;
        max-height: 95vh !important;
    }
    
    #mv-psy-schedule-event-modal .mv-psy-modal-header {
        padding: 20px !important;
    }
    
    #mv-psy-schedule-event-modal .mv-psy-modal-body {
        padding: 20px !important;
    }
}

/* Floating Save Button (über Formular-Rändern, aber unter Sidebar/Overlay) */
.mv-psy-floating-save-btn {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    z-index: 100050 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 12px 20px !important;
    background: #3D4E60 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 50px !important;
    font-family: 'Roboto Slab', serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(61, 78, 96, 0.3) !important;
    transition: all 0.3s ease !important;
    min-width: 160px !important;
}

.mv-psy-floating-save-btn:hover {
    background: #2a3a4a !important;
    box-shadow: 0 6px 16px rgba(61, 78, 96, 0.4) !important;
    transform: translateY(-2px) !important;
}

.mv-psy-floating-save-btn:active {
    transform: translateY(0) !important;
}

.mv-psy-floating-save-btn:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

.mv-psy-floating-save-btn svg {
    flex-shrink: 0 !important;
    width: 16px !important;
    height: 16px !important;
}

@media (max-width: 768px) {
    .mv-psy-floating-save-btn {
        bottom: 20px !important;
        right: 20px !important;
        padding: 10px 16px !important;
        font-size: 12px !important;
        min-width: 140px !important;
    }
    
    .mv-psy-floating-save-btn span {
        display: none !important;
    }
    
    .mv-psy-floating-save-btn {
        width: 56px !important;
        height: 56px !important;
        min-width: 56px !important;
        border-radius: 50% !important;
        padding: 0 !important;
    }
}

/* Einnahmen-Statistik (Rechnungen): auf Handy lesbar */
@media (max-width: 768px) {
    .mv-psy-revenue-chart {
        min-height: 280px !important;
        padding: 16px !important;
        -webkit-overflow-scrolling: touch;
    }
    .mv-psy-revenue-chart-svg {
        min-height: 260px !important;
        width: 100% !important;
        height: auto !important;
    }
    .mv-psy-revenue-section .mv-psy-revenue-summary {
        font-size: 14px !important;
    }
    .mv-psy-subtab-content[data-subtab="statistics"] .mv-psy-section h3 {
        font-size: 20px !important;
    }
    .mv-psy-subtab-content[data-subtab="statistics"] .mv-psy-section p {
        font-size: 14px !important;
    }
}

/* Untertab-Navigation */
.mv-psy-subtabs,
.mv-psy-profile .mv-psy-subtabs,
.mv-psy-invoices .mv-psy-subtabs,
.mv-psy-subscription .mv-psy-subtabs,
.mv-psy-booking-page .mv-psy-subtabs,
.mv-psy-availability .mv-psy-subtabs {
    display: flex !important;
    gap: 8px !important;
    margin: 0 0 24px 0 !important;
    padding: 0 !important;
    border-bottom: 2px solid #e0e0e0 !important;
    background: #fff !important;
}

.mv-psy-subtab,
button.mv-psy-subtab,
.mv-psy-subtabs button,
.mv-psy-subtabs .mv-psy-subtab {
    padding: 12px 20px !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 3px solid transparent !important;
    color: #6c757d !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    font-family: 'Roboto Slab', Georgia, serif !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    margin-bottom: -2px !important;
    white-space: nowrap !important;
    box-shadow: none !important;
    text-decoration: none !important;
    outline: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}

.mv-psy-subtab:hover,
button.mv-psy-subtab:hover,
.mv-psy-subtabs button:hover,
.mv-psy-subtabs .mv-psy-subtab:hover {
    color: #3D4E60 !important;
    background: #f9fafb !important;
}

.mv-psy-subtab.active,
button.mv-psy-subtab.active,
.mv-psy-subtabs button.active,
.mv-psy-subtabs .mv-psy-subtab.active {
    color: #3D4E60 !important;
    border-bottom-color: #3D4E60 !important;
    font-weight: 600 !important;
}

.mv-psy-subtab-content {
    display: none !important;
}

.mv-psy-subtab-content.active {
    display: block !important;
}

/* Profil & Buchungsseite: Bei Untertab „Buchungsseite“ liegt der Inhalt außerhalb des Formulars –
   sonst bleibt #mv-psy-profile-form als leerer Kasten sichtbar (Rahmen/Padding). */
.mv-psy-profile:has(.mv-psy-subtab-content[data-subtab="booking-page"].active) #mv-psy-profile-form,
.mv-psy-profile:has(.mv-psy-subtab-content[data-subtab="page-view-stats"].active) #mv-psy-profile-form {
    display: none !important;
}

/* Button-Farbauswahl Styling */
input[name="button-color"] + div {
    transition: transform 0.2s;
}

input[name="button-color"]:checked + div {
    transform: scale(1.1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

label:has(input[name="button-color"]:checked) {
    border-color: #3D4E60 !important;
    border-width: 2px !important;
    background: #f0f9ff !important;
}

label:has(input[name="button-color"]) {
    transition: all 0.2s;
}

label:has(input[name="button-color"]):hover {
    border-color: #3D4E60 !important;
    background: #f9fafb !important;
}

/* Responsive Untertabs */
@media (max-width: 768px) {
    .mv-psy-subtabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    
    .mv-psy-subtabs::-webkit-scrollbar {
        height: 4px;
    }
    
    .mv-psy-subtabs::-webkit-scrollbar-track {
        background: #f1f1f1;
    }
    
    .mv-psy-subtabs::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 2px;
    }
    
    .mv-psy-subtab {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* ========== Wissenschafts Hub / Journal Club ========== */
.mv-psy-wissenschafts-hub .mv-psy-tab-title {
    color: #2c3e50;
}

.mv-psy-jc-start-teaser {
    margin: 0 0 4px 0;
    font-size: 13px;
    color: #6c757d;
    font-weight: 500;
}

/* Journal Club Intro: kein Kasten-Rand, schönerer Text */
.mv-psy-journal-club-intro {
    margin-top: 24px;
    padding: 0;
    max-width: 720px;
    line-height: 1.7;
    color: #3D4E60;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.mv-psy-journal-club-intro p {
    margin: 0 0 1em 0;
    font-size: 16px;
    line-height: 1.7;
}

.mv-psy-journal-club-intro p:last-of-type {
    margin-bottom: 0;
}

.mv-psy-journal-club-intro h2 {
    margin: 2em 0 0.5em 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #3D4E60;
}

.mv-psy-journal-club-intro h2:first-of-type {
    margin-top: 1em;
}

.mv-psy-journal-club-intro ul {
    margin: 0 0 1em 0;
    padding-left: 1.5em;
}

.mv-psy-journal-club-intro li {
    margin-bottom: 0.35em;
    font-size: 16px;
}

/* Journal Club: AJAX-Fehlermeldung */
.mv-psy-jc-ajax-message {
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
    border-left: 4px solid #0d6efd;
    background: #e7f1ff;
    color: #0d6efd;
}
.mv-psy-jc-ajax-message.is-error {
    border-left-color: #dc3545;
    background: #f8d7da;
    color: #721c24;
}

/* Zähler Loading-Zustand */
.mv-psy-jc-signup-counter.mv-psy-jc-counter-loading {
    color: #6c757d;
    font-weight: 500;
}

/* Ich bin dabei Block */
.mv-psy-jc-signup-block {
    margin-top: 32px;
    padding: 24px;
    background: #f8f9fb;
    border-radius: 12px;
    border: 1px solid #e8eaed;
}

.mv-psy-jc-signup-counter {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3D4E60;
    margin-bottom: 8px;
}

.mv-psy-jc-signup-text {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 16px;
    line-height: 1.5;
}

.mv-psy-jc-cta-slider {
    margin-top: 32px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
}

.mv-psy-jc-cta-slider-inner {
    display: flex;
    gap: 16px;
    min-width: min-content;
}

.mv-psy-jc-cta-card {
    flex: 0 0 280px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    color: #3D4E60;
}

.mv-psy-jc-cta-card.mv-psy-jc-cta-card-disabled {
    opacity: 0.6;
    pointer-events: none;
}

.mv-psy-jc-cta-card .mv-psy-btn {
    margin-top: 12px;
}

.mv-psy-jc-ich-bin-dabei-btn.mv-psy-jc-dabei-active,
#mv-psy-jc-ich-bin-dabei-btn.mv-psy-jc-dabei-active {
    background: #2d7a4a !important;
    border-color: #2d7a4a !important;
}

/* Supervision-Abschnitt (ganz unten) */
.mv-psy-supervision-section .mv-psy-supervision-title {
    margin: 0 0 8px 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #3D4E60;
}
.mv-psy-supervision-section .mv-psy-supervision-intro {
    margin: 0 0 20px 0;
    font-size: 15px;
    color: #3D4E60;
    line-height: 1.5;
}
.mv-psy-supervision-signup-block {
    margin-top: 0;
}

.mv-psy-supervision-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.mv-psy-supervision-option {
    padding: 16px 20px;
    background: #f8f9fb;
    border: 1px solid #e8eaed;
    border-radius: 12px;
}
.mv-psy-supervision-option-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.mv-psy-supervision-option-label {
    font-size: 15px;
    color: #3D4E60;
}
.mv-psy-supervision-option .mv-psy-jc-signup-counter {
    font-size: 1rem;
    font-weight: 700;
    color: #3D4E60;
    margin: 0;
}
.mv-psy-supervision-toggle-btn.mv-psy-jc-dabei-active {
    background: #2d7a4a !important;
    border-color: #2d7a4a !important;
}

.mv-psy-hub-feed {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.mv-psy-hub-feed-item {
    padding: 14px 16px;
    border: 1px solid #e8eaed;
    border-radius: 10px;
    background: #fff;
    transition: box-shadow 0.2s;
}
.mv-psy-hub-feed-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.mv-psy-hub-feed-item .hub-item-meta {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 6px;
}
.mv-psy-hub-feed-item .hub-item-meta .session-badge {
    display: inline-block;
    background: #e0e8f2;
    color: #4a6280;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 8px;
}
.mv-psy-hub-feed-item .hub-item-body {
    font-size: 14px;
    line-height: 1.5;
    color: #3D4E60;
}
.mv-psy-hub-feed-item a {
    color: #4a7ba7;
    text-decoration: none;
}
.mv-psy-hub-feed-item a:hover {
    text-decoration: underline;
}
.mv-psy-hub-feed-empty {
    text-align: center;
    color: #6c757d;
    padding: 24px 16px;
    background: #f9fafb;
    border-radius: 10px;
}

/* Reaktionen unter Beiträgen */
.mv-psy-jc-post-reactions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
}
.mv-psy-jc-reaction-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    background: #fff;
    font-size: 13px;
    color: #6c757d;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.mv-psy-jc-reaction-btn:hover {
    background: #f0f4f8;
    border-color: #c5d0de;
    color: #3D4E60;
}
.mv-psy-jc-reaction-btn.active {
    background: #e0e8f2;
    border-color: #5a7a9e;
    color: #3d5270;
    font-weight: 500;
}
.mv-psy-jc-reaction-btn .count {
    font-size: 12px;
    min-width: 16px;
    text-align: center;
}
.mv-psy-jc-post-card {
    padding: 14px 16px;
    border: 1px solid #e8eaed;
    border-radius: 10px;
    margin-bottom: 10px;
    background: #fff;
}
.mv-psy-jc-post-card .post-meta {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 6px;
}
.mv-psy-jc-post-card .post-body {
    font-size: 14px;
    line-height: 1.5;
    color: #3D4E60;
}
.mv-psy-jc-post-card .post-links a {
    color: #4a7ba7;
    font-size: 13px;
}
.mv-psy-jc-feed-post-form {
    margin-bottom: 16px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 10px;
    border: 1px solid #e8eaed;
}
.mv-psy-jc-feed-post-form textarea,
.mv-psy-jc-feed-post-form input[type="url"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}
.mv-psy-jc-feed-post-form textarea {
    min-height: 60px;
    resize: vertical;
}
.mv-psy-jc-feed-post-form .form-row {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.mv-psy-jc-session-card {
    padding: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.mv-psy-jc-session-card:hover {
    border-color: #c5d0de;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}