/* ==========================
   Frontend Styles
   ========================== */

/* General Styles */
.cmb-frontend-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.cmb-container {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

/* Forms */
.cmb-form-field {
    margin-bottom: 20px;
}

.cmb-form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.cmb-form-field input[type="text"],
.cmb-form-field input[type="email"],
.cmb-form-field input[type="password"],
.cmb-form-field input[type="number"],
.cmb-form-field input[type="url"],
.cmb-form-field select,
.cmb-form-field textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.cmb-form-field input:focus,
.cmb-form-field select:focus,
.cmb-form-field textarea:focus {
    border-color: #2d3940;
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 71, 137, 0.1);
}

.cmb-form-field small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 13px;
}

.cmb-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* Tab Styles */
.cmb-portal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    gap: 20px;
}

.cmb-portal-header > div {
    flex: 1;
}

.cmb-tabs-navigation {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 30px;
}

.cmb-tab-button {
    padding: 15px 25px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
}

.cmb-tab-button:hover {
    color: #333;
    background: #f5f5f5;
}

.cmb-tab-button.active {
    color: #000;
    border-bottom-color: #1a1a1a;
}

.cmb-tab-content {
    display: none;
}

.cmb-tab-content.active {
    display: block;
}

#cmb-profile-submit {
	margin-top: 30px;
}

@media (max-width: 768px) {
    .cmb-portal-header {
        flex-direction: column;
    }
    
    .cmb-tabs-navigation {
        flex-direction: column;
    }
    
    .cmb-tab-button {
        border-bottom: 1px solid #e0e0e0;
        border-left: 3px solid transparent;
    }
    
    .cmb-tab-button.active {
        border-left-color: #0066cc;
        border-bottom-color: #e0e0e0;
    }
}

.cmb-image-preview-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 10px;
}

.cmb-image-preview-wrapper img {
    display: block;
}

.cmb-form-field textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    min-height: 120px;
}

/* Reset Password Modal Styles */
.cmb-forgot-password-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.cmb-forgot-password-modal .cmb-modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cmb-forgot-password-modal .cmb-modal-close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
}

.cmb-forgot-password-modal .cmb-modal-close:hover {
    color: #333;
}

.cmb-forgot-password-modal .cmb-modal-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.cmb-forgot-password-modal .cmb-modal-content p {
    color: #666;
    margin-bottom: 20px;
}

.cmb-field-hint {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 13px;
}

.cmb-delete-image {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: #dc3545;
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cmb-image-preview-wrapper:hover .cmb-delete-image {
    opacity: 1;
}

.cmb-delete-image:hover {
    background: #c82333;
    transform: scale(1.1);
}

.cmb-delete-image .dashicons {
    color: #fff;
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 1;
}

.cmb-delete-image:focus {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

/* Buttons */
.cmb-button {
    display: inline-block;
    padding: 12px 30px;
    /*background: var(--cmb-primary-color, #8B4789);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
	*/
	background-color: #1a1a1a;
    font-weight: 600;
    color: #ffffff !important;
    font-size: 16px !important;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    border-bottom-right-radius: 30px;
    border-bottom-left-radius: 30px;
    border-width: 0px;
    border-color: #2c3333;
    border-style: solid;	
}

.cmb-button:hover {
    /*background: var(--cmb-secondary-color, #D4AF37);
    transform: translateY(-2px);*/
	color: #fffdf8 !important;
	background-color: #5a6268;
	cursor:pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/*
.cmb-button:hover:after {
    content: '$';
    font-family: ETmodules !important;
    line-height: 1em !important;
	display: inline-block;
    color: #ffffff;
    right: 0.6em;
	font-weight: 400 !important;
    font-size: inherit !important;
	font-family: ETmodules;
    font-display: swap;
}
*/

.cmb-button.secondary {
    background: #6c757d;
}

.cmb-button.secondary:hover {
    background: #5a6268;
}

.cmb-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Progress Indicator */
.cmb-progress-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.cmb-progress-indicator::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.cmb-progress-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cmb-progress-step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.cmb-progress-step.active .cmb-progress-step-circle {
    background: var(--cmb-primary-color, #8B4789);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(139, 71, 137, 0.2);
}

.cmb-progress-step.completed .cmb-progress-step-circle {
    background: #4CAF50;
    color: #fff;
}

.cmb-progress-step-label {
    font-size: 14px;
    color: #666;
}

.cmb-progress-step.active .cmb-progress-step-label {
    color: var(--cmb-primary-color, #8B4789);
    font-weight: 600;
}

/* Booking Steps */
.cmb-booking-step {
    display: none;
}

.cmb-booking-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Price Summary */
.cmb-price-summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
    position: sticky;
    top: 20px;
}

.cmb-price-summary h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #fff;
    font-size: 22px;
}

.cmb-price-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.cmb-price-row:last-child {
    border-bottom: none;
}

.cmb-price-row.total {
    font-size: 24px;
    font-weight: bold;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid rgba(255,255,255,0.3);
}

.cmb-price-label {
    opacity: 0.9;
}

.cmb-price-value {
    font-weight: 600;
}

.cmb-discount-banner {
    background: #4CAF50;
    color: #fff;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

/* Stand Size Input */
.cmb-stand-size-input {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto;
    gap: 15px;
    align-items: center;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    margin: 20px 0;
}

.cmb-stand-size-input input {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}

.cmb-stand-size-result {
    background: var(--cmb-primary-color, #8B4789);
    color: #fff;
    padding: 15px 20px;
    border-radius: 6px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
}

/* Category Selection */
.cmb-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.cmb-category-card {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.cmb-category-card:hover {
    border-color: var(--cmb-primary-color, #8B4789);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.cmb-category-card.selected {
    border-color: var(--cmb-primary-color, #8B4789);
    background: rgba(139, 71, 137, 0.05);
}

.cmb-category-card.kostenlos {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.05);
}

.cmb-category-card.kostenlos::after {
    content: "KOSTENLOS";
    position: absolute;
    top: 8px;
    right: 8px;
    background: #4CAF50;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
}

.cmb-category-card.kostenpflichtig {
    border-color: #FF9800;
    background: rgba(255, 152, 0, 0.05);
}

.cmb-category-card.kostenpflichtig::after {
    content: "KOSTENPFLICHTIG";
    position: absolute;
    top: 8px;
    right: 8px;
    background: #FF9800;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
}

.cmb-category-card input[type="checkbox"] {
    display: none;
}

.cmb-category-icon {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--cmb-primary-color, #8B4789);
    transition: all 0.3s ease;
}

.cmb-category-card.selected .cmb-category-icon {
    transform: scale(1.2);
}

.cmb-category-name {
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.cmb-category-price-wrapper {
    margin-top: 10px;
    min-height: 24px;
}

.cmb-category-price {
    font-size: 14px;
    font-weight: 600;
}

.cmb-category-free {
    color: #4CAF50;
    font-weight: bold;
}

.cmb-category-paid {
    color: #FF9800;
    font-weight: bold;
}

/* Info Box für Kategorien */
.cmb-info-box {
    background: #e7f3ff;
    border-left: 4px solid #2196F3;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

#kategorie-zaehler {
    margin-top: 10px;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s ease;
}

#kategorie-anzahl {
    font-size: 20px;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .cmb-category-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .cmb-category-card {
        padding: 15px;
    }
    
    .cmb-category-icon {
        font-size: 28px;
    }
}

/* Options Selection */
.cmb-options-list {
    margin: 20px 0;
}

.cmb-option-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cmb-option-info h4 {
    margin: 0 0 5px 0;
    color: #333;
}

.cmb-option-info p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.cmb-option-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.cmb-option-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cmb-option-quantity input {
    width: 60px;
    text-align: center;
}

.cmb-option-price {
    font-weight: bold;
    color: var(--cmb-primary-color, #8B4789);
    font-size: 18px;
    min-width: 80px;
    text-align: right;
}

/* Messen Grid */
.cmb-messen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.cmb-messe-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.cmb-messe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.cmb-messe-header {
    /*background: linear-gradient(135deg, var(--cmb-primary-color, #8B4789) 0%, var(--cmb-secondary-color, #D4AF37) 100%);*/
	background-color: #fcacaf;
    color: #fff;
    padding: 25px;
}

.cmb-messe-header h3 {
    margin: 0 0 10px 0;
    color: #fff;
	padding-right: 0;
}

.cmb-messe-date {
    opacity: 0.9;
    font-size: 14px;
}

.cmb-messe-body {
    padding: 25px;
}

.cmb-messe-location {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #666;
}

.cmb-messe-footer {
    padding: 0 25px 25px;
}

/* Aussteller Profile */
.cmb-profile-header {
    position: relative;
    margin-bottom: 30px;
}

.cmb-profile-header-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
}

.cmb-profile-logo {
    position: absolute;
    bottom: -40px;
    left: 30px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 5px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    object-fit: cover;
    background: #fff;
}

.cmb-profile-info {
    margin-top: 50px;
}

.cmb-profile-name {
    font-size: 28px;
    margin-bottom: 10px;
}

.cmb-profile-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.cmb-category-badge {
    background: var(--cmb-primary-color, #8B4789);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.cmb-profile-description {
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
}

.cmb-profile-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.cmb-profile-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cmb-profile-gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.cmb-profile-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.cmb-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--cmb-primary-color, #8B4789);
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cmb-social-link:hover {
    background: var(--cmb-secondary-color, #D4AF37);
    transform: scale(1.1);
}

/* Ausstellerliste */
.cmb-filter-bar {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.cmb-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cmb-filter-button {
    padding: 10px 20px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.cmb-filter-button:hover,
.cmb-filter-button.active {
    background: var(--cmb-primary-color, #8B4789);
    color: #fff;
    border-color: var(--cmb-primary-color, #8B4789);
}

.cmb-aussteller-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.cmb-aussteller-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.cmb-aussteller-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.cmb-aussteller-logo-wrapper {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    padding: 20px;
}

.cmb-aussteller-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cmb-aussteller-info {
    padding: 20px;
}

.cmb-aussteller-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.cmb-aussteller-description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Notifications */
.cmb-notification {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInDown 0.3s ease;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cmb-notification.success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.cmb-notification.error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.cmb-notification.info {
    background: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

/* Loading */
.cmb-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.cmb-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0,0,0,0.1);
    border-top-color: var(--cmb-primary-color, #8B4789);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .cmb-frontend-wrapper {
        padding: 20px 10px;
    }
    
    .cmb-container {
        padding: 20px;
    }
    
    .cmb-form-grid,
    .cmb-messen-grid,
    .cmb-category-grid,
    .cmb-aussteller-grid {
        grid-template-columns: 1fr;
    }
    
    .cmb-progress-indicator {
        flex-direction: column;
        gap: 15px;
    }
    
    .cmb-progress-indicator::before {
        display: none;
    }
    
    .cmb-stand-size-input {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cmb-option-item {
        flex-direction: column;
        gap: 15px;
    }
    
    .cmb-price-summary {
        position: static;
    }
}
/* Standnummer Status Icons */
.cmb-stand-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.cmb-stand-status.assigned {
    background: #d4edda;
    color: #155724;
}

.cmb-stand-status.pending {
    background: #fff3cd;
    color: #856404;
}

.cmb-stand-wunsch-box {
    background: #e7f3ff;
    border-left: 4px solid #2196F3;
    padding: 12px 15px;
    border-radius: 4px;
    margin: 10px 0;
    font-size: 13px;
}

.cmb-stand-wunsch-box strong {
    color: #2196F3;
}

.cmb-stand-nummer-badge {
    display: inline-block;
    background: var(--cmb-primary-color, #8B4789);
    color: #fff;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 18px;
    font-weight: bold;
    margin: 5px 0;
}
/* Custom Checkbox for Options */
.cmb-checkbox-label {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.cmb-checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.cmb-checkbox-label input[type="checkbox"]:disabled {
    cursor: not-allowed;
}

.cmb-checkbox-custom {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    background-color: #ccc;
    border-radius: 28px;
    transition: background-color 0.3s;
}

.cmb-checkbox-custom::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: white;
    top: 3px;
    left: 3px;
    transition: transform 0.3s;
}

.cmb-checkbox-label input[type="checkbox"]:checked + .cmb-checkbox-custom {
    background-color: var(--cmb-primary-color, #8B4789);
}

.cmb-checkbox-label input[type="checkbox"]:checked + .cmb-checkbox-custom::after {
    transform: translateX(22px);
}

.cmb-checkbox-label input[type="checkbox"]:disabled + .cmb-checkbox-custom {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Option Quantity Input */
.cmb-option-quantity-input {
    width: 80px;
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.cmb-option-quantity-input:focus {
    border-color: var(--cmb-primary-color, #8B4789);
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 71, 137, 0.1);
}

.cmb-option-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.cmb-option-item:hover {
    background: #f0f0f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.cmb-option-info {
    flex: 1;
}

.cmb-option-info h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 16px;
}

.cmb-option-info p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.cmb-option-controls {
    display: flex;
    gap: 20px;
    align-items: center;
}

.cmb-option-price {
    font-weight: bold;
    color: var(--cmb-primary-color, #8B4789);
    font-size: 18px;
    min-width: 100px;
    text-align: right;
}

.cmb-pflicht-badge {
    background: #dc3545;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    margin-left: 8px;
}
/* Pflicht-Optionen hervorheben */
.cmb-option-item.pflicht {
    border-left: 4px solid #dc3545;
    background: #fff5f5;
}

.cmb-option-item.pflicht .cmb-option-info h4::after {
    content: " *";
    color: #dc3545;
    font-weight: bold;
}

.cmb-option-item.pflicht::before {
    content: "PFLICHT";
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc3545;
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
}

.cmb-option-item {
    position: relative;
}

/* 2-Spalten Booking Layout */
.cmb-booking-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    margin-top: 30px;
}

.cmb-booking-form-column {
    min-height: 500px;
}

.cmb-booking-summary-column {
    position: relative;
}

/* Sticky Price Summary */
.cmb-price-summary {
    position: sticky;
    top: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.cmb-price-summary h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #fff;
    font-size: 24px;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    padding-bottom: 15px;
}

.cmb-summary-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.cmb-summary-section:last-child {
    border-bottom: none;
}

.cmb-summary-section h4 {
    color: #fff;
    font-size: 16px;
    margin: 0 0 10px 0;
    opacity: 0.9;
}

.cmb-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
}

.cmb-summary-item.hauptkategorie {
    background: rgba(255, 215, 0, 0.2);
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.cmb-summary-label {
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 5px;
}

.cmb-summary-value {
    font-weight: 600;
}

.cmb-summary-value.kostenlos {
    color: #4CAF50;
    font-weight: bold;
    background: rgba(76, 175, 80, 0.2);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
}

.cmb-summary-subtotal {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.cmb-summary-total {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid rgba(255,255,255,0.3);
}

.cmb-summary-total .cmb-summary-item {
    font-size: 15px;
}

.cmb-summary-total .cmb-summary-item.total {
    font-size: 24px;
    font-weight: bold;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 2px solid rgba(255,255,255,0.4);
}

.cmb-summary-total .cmb-summary-item.mwst {
    opacity: 0.8;
    font-size: 13px;
}

.cmb-summary-item.rabatt .cmb-summary-value {
    color: #4CAF50;
    font-weight: bold;
}

.cmb-summary-hint {
    text-align: center;
    margin-top: 15px;
    opacity: 0.7;
    font-size: 12px;
}

/* Hauptkategorie Cards */
.cmb-hauptkategorie-card {
    border: 3px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: #fff;
}

.cmb-hauptkategorie-card:hover {
    border-color: #FFD700;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
}

.cmb-hauptkategorie-card.selected {
    border-color: #FFD700;
    background: linear-gradient(135deg, #fff9e6 0%, #fff4cc 100%);
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.2);
}

.cmb-hauptkategorie-card.selected::before {
    content: "⭐";
    position: absolute;
    top: -15px;
    right: -15px;
    font-size: 40px;
    animation: starRotate 2s linear infinite;
}

@keyframes starRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cmb-hauptkategorie-card input[type="radio"] {
    display: none;
}

.cmb-category-badge {
    display: inline-block;
    background: #FFD700;
    color: #333;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    margin-top: 10px;
}

.cmb-hauptkategorie-card.selected .cmb-category-badge {
    background: #FFA500;
    color: #fff;
}

/* Weitere Kategorien - angepasst 
.cmb-weitere-kategorien-section {
    opacity: 0.6;
    pointer-events: none;
    transition: all 0.5s ease;
}
*/

.cmb-weitere-kategorien-section.enabled {
    opacity: 1;
    pointer-events: all;
}

/* Responsive */
@media (max-width: 968px) {
    .cmb-booking-layout {
        grid-template-columns: 1fr;
    }
    
    .cmb-price-summary {
        position: static;
        margin-top: 30px;
    }
}

/* Messen Grid */
.cmb-messen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

/* Messe Card */
.cmb-messe-card {
    background: #fff;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #f0f0f0;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.cmb-messe-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.cmb-badge-urgent .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* Messe Header */
.cmb-messe-header {
    padding: 24px 24px 16px 24px;
    border-bottom: 1px solid #f0f0f0;
}

.cmb-messe-header h3 {
    margin: 0 0 12px 0;
    font-size: 22px;
    color: #333;
    font-weight: 600;
    padding-right: 100px;
}

.cmb-messe-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e3f2fd;
    color: #1976d2;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
}

.cmb-messe-date .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Messe Body */
.cmb-messe-body {
    padding: 20px 24px;
    flex: 1;
}

.cmb-messe-beschreibung {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.cmb-messe-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cmb-messe-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
}

.cmb-messe-detail-item .dashicons {
    color: #666;
    font-size: 18px;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.cmb-messe-detail-item strong {
    color: #333;
}

/* Messe Footer */
.cmb-messe-footer {
    padding: 20px 24px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

.cmb-messe-footer .cmb-button {
    width: 100%;
    justify-content: center;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .cmb-messen-grid {
        grid-template-columns: 1fr;
    }
    
    .cmb-messe-header h3 {
        font-size: 20px;
        padding-right: 0;
    }
    
    .cmb-messe-badge-top {
        position: static;
        margin-bottom: 16px;
    }
}

/* Dashboard Layout */
.cmb-portal-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Dashboard Header */
.cmb-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    gap: 20px;
    flex-wrap: wrap;
}

.cmb-dashboard-header > div:first-child {
    flex: 1;
    min-width: 300px;
}

.cmb-dashboard-header h2 {
    margin: 0 0 8px 0;
    font-size: 28px;
    color: #333;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.cmb-subtitle {
    color: #666;
    margin: 0;
    font-size: 16px;
}

.cmb-dashboard-header .cmb-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .cmb-dashboard-header {
        flex-direction: column;
    }
    
    .cmb-dashboard-header > div:first-child {
        min-width: 100%;
    }
    
    .cmb-dashboard-header .cmb-button {
        width: 100%;
        justify-content: center;
    }
}

.cmb-header-actions {
    display: flex;
    gap: 10px;
}

.cmb-header-actions .cmb-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.cmb-header-actions .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Statistik Grid */
.cmb-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.cmb-stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cmb-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.cmb-stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cmb-stat-icon .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
}

.cmb-stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    line-height: 1;
    margin-bottom: 4px;
}

.cmb-stat-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* Section Header */
.cmb-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.cmb-section-header h3 {
    margin: 0;
    font-size: 22px;
    color: #333;
}

.cmb-badge {
    background: #e3f2fd;
    color: #1976d2;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* Buchungen Grid */
.cmb-buchungen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

/* Buchung Card */
.cmb-buchung-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    border: 1px solid #f0f0f0;
}

.cmb-buchung-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* Card Badges */
.cmb-card-badges {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
}

/* Card Header */
.cmb-card-header {
    margin-bottom: 20px;
    padding-right: 100px;
}

.cmb-card-header h4 {
    margin: 0 0 8px 0;
    font-size: 20px;
    color: #333;
    font-weight: 600;
}

.cmb-buchungsnummer {
    margin: 0;
    font-size: 13px;
    color: #666;
}

/* Card Details */
.cmb-card-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.cmb-detail-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.cmb-detail-item .dashicons {
    color: #666;
    font-size: 20px;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.cmb-detail-label {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.cmb-detail-value {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

/* Card Footer */
.cmb-card-footer {
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.cmb-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0066cc;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: gap 0.2s;
}

.cmb-link:hover {
    gap: 10px;
}

.cmb-link .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Status Badges */
.cmb-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cmb-status-badge.offen {
    background: #fff3e0;
    color: #f57c00;
}

.cmb-status-badge.bestaetigt {
    background: #e8f5e9;
    color: #388e3c;
}

.cmb-status-badge.abgeschlossen {
    background: #e0e0e0;
    color: #616161;
}

.cmb-status-badge.storniert {
    background: #ffebee;
    color: #d32f2f;
}

.cmb-status-badge.bezahlt {
    background: #f3e5f5;
    color: #7b1fa2;
}

.cmb-status-badge.unbezahlt {
    background: #fff8e1;
    color: #f57c00;
}

.cmb-status-badge .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* Empty State */
.cmb-empty-state {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.cmb-empty-icon {
    width: 80px;
    height: 80px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.cmb-empty-icon .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
    color: #999;
}

.cmb-empty-state h3 {
    margin: 0 0 12px 0;
    color: #333;
    font-size: 24px;
}

.cmb-empty-state p {
    color: #666;
    margin: 0 0 24px 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .cmb-dashboard-header {
        flex-direction: column;
    }
    
    .cmb-dashboard-header > div:first-child {
        min-width: 100%; /* Geändert */
    }
    
    .cmb-header-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .cmb-header-actions .cmb-button {
        width: 100%;
        justify-content: center;
    }
}

/* Status Alert */
.cmb-status-alert {
    display: flex;
    gap: 16px;
    padding: 20px 24px;
    border-radius: 12px;
    margin-bottom: 30px;
    border-left: 4px solid;
}

.cmb-status-alert.warning {
    background: #fff8e1;
    border-left-color: #f57c00;
}

.cmb-status-alert.info {
    background: #e3f2fd;
    border-left-color: #1976d2;
}

.cmb-status-alert.error {
    background: #ffebee;
    border-left-color: #d32f2f;
}

.cmb-alert-icon {
    flex-shrink: 0;
}

.cmb-status-alert.warning .dashicons {
    color: #f57c00;
    font-size: 28px;
    width: 28px;
    height: 28px;
}

.cmb-status-alert.info .dashicons {
    color: #1976d2;
    font-size: 28px;
    width: 28px;
    height: 28px;
}

.cmb-status-alert.error .dashicons {
    color: #d32f2f;
    font-size: 28px;
    width: 28px;
    height: 28px;
}

.cmb-alert-content h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
}

.cmb-alert-content p {
    margin: 0 0 12px 0;
    color: #666;
    font-size: 14px;
}

.cmb-button.small {
    padding: 8px 16px;
    font-size: 13px;
}

/* Badge Bar am oberen Rand */
.cmb-messe-badge-bar {
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
}

.cmb-badge-urgent-bar {
    background: #fff3e0;
    color: #f57c00;
}

.cmb-badge-success-bar {
    background: #e8f5e9;
    color: #388e3c;
}

.cmb-messe-badge-bar .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}