/**
 * IT Expert Events v2 - Frontend CSS
 * Event-Seiten: Blaue Töne
 * Speaker-Seiten: Lila Töne
 * Design basiert auf Firmencardslist-Stil
 *
 * @package IT_Expert_Events_V2
 */

/* ========================================
   EVENT CARD - LIST (Firmen-Card-Style mit Blau)
   ======================================== */

.event-card--list {
    display: grid;
    grid-template-columns: 144px minmax(300px, 1fr) 160px;
    gap: 0;
    align-items: stretch;
    padding: 0;
    border-radius: 5px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f2ff 100%);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.08);
    min-height: 150px;
    max-height: 150px;
    height: 150px;
    overflow: hidden; /* Changed from visible to hidden to cut off content */
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.event-card--list:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.15);
}

/* Linker Bereich: Bild & Datum (dunkler blau) */
.event-card-image-area {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1f498d 0%, #0e45bbe0 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 5px 0 0 5px;
}

.event-list-image {
    width: 120px;
    height: 90px;
    border-radius: 12px;
    overflow: hidden;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-date-badge {
    background: rgba(255, 255, 255, 0.95);
    color: #1e40af;
    padding: 4px 0; /* Reduced side padding so text fits */
    width: 120px;   /* Match Width of image */
    box-sizing: border-box;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: block; /* Ensure it takes width */
}

/* Content-Bereich */
.event-card-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 16px;
    min-height: 150px;
    height: 100%;
    justify-content: center;
    background: transparent;
    position: relative;
    z-index: 1;
}

.event-card-title {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0 0 4px 0;
    line-height: 1.3;
    text-align: left;
    display: block;
    width: 100%;
}

.event-card-title a {
    color: #1e40af;
    text-decoration: none;
    transition: color 0.2s ease;
}

.event-card-title a:hover {
    color: #3b82f6;
}

.event-card-meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.78rem;
    color: #475569;
    width: 100%;
    text-align: left;
}

.event-card-meta-list .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.event-card-meta-list .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    color: #3b82f6;
}

.event-card-excerpt {
    margin-top: 5px;
    padding-top: 8px;
    border-top: 1px solid rgb(215, 227, 247);
    background: linear-gradient(135deg, #e7f0ff 0%, rgba(220, 230, 250, 0.878) 100%);
    width: 100%;
    display: block;
}

.event-card-excerpt p {
    margin: 0;
    font-size: 0.78rem;
    color: #475569;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Rechter Bereich: Badges & Button (dunkler blau) */
.event-card-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between; /* Push content to edges */
    gap: 4px;
    padding: 12px;
    height: 100%;
    background: linear-gradient(135deg, #1f498d 0%, #0e45bbe0 100%);
    border-radius: 0 5px 5px 0;
    overflow: hidden;
    box-sizing: border-box;
}

.event-corner-badges {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    width: 100%;
    margin-bottom: auto; /* Ensure it stays at top even if button moves */
}

.event-badge {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    text-align: center;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.event-badge--format {
    background: rgba(255, 255, 255, 0.95);
    color: #1e40af;
}

.event-badge--price {
    background: rgba(255, 255, 255, 0.85);
    color: #1e40af;
}

.event-badge--speakers {
    background: rgba(255, 255, 255, 0.75);
    color: #1e40af;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.event-badge--speakers .dashicons {
    font-size: 12px;
    width: 12px;
    height: 12px;
}

.event-card-cta {
    background: #fff;
    color: #2563eb !important;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.event-card-cta:hover {
    background: #eff6ff;
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* ========================================
   SPEAKER CARD - LIST (Firmen-Card-Style mit Lila)
   ======================================== */

.speaker-card--list {
    display: grid;
    /* Explicitly 2 columns: Avatar (144px) + Content (Rest) */
    grid-template-columns: 144px 1fr !important;
    gap: 0 !important;
    align-items: stretch;
    padding: 0 !important;
    border-radius: 5px;
    border: 1px solid rgba(124, 58, 237, 0.3);
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.12);
    min-height: 160px;
    height: auto;
    overflow: hidden;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Ensure no 3rd column ghosts */
.speaker-card-actions {
    display: none !important;
}

.speaker-card--list:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(124, 58, 237, 0.2);
}

/* --- New Layout Structure --- */

/* Right Side Wrapper */
.speaker-card-main-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
    background: transparent;
    overflow: hidden;
}

/* Header Band */
.speaker-header-band {
    background: #ede9fe; /* Band Color */
    border-bottom: 1px solid rgba(124, 58, 237, 0.15);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    width: 100%;
    box-sizing: border-box;
}

.header-band-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.header-band-right {
    flex-shrink: 0;
}

/* Social Mini Icons */
.speaker-social-mini {
    display: flex;
    gap: 6px;
}

.speaker-social-mini a {
    width: 32px; 
    height: 32px;
    border-radius: 5px;
    background: #fff;
    color: #7c3aed;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(124, 58, 237, 0.15);
    transition: all 0.2s;
    text-decoration: none;
}

.speaker-social-mini a:hover {
    background: #7c3aed;
    color: #fff;
}

/* Body Content */
.speaker-body-content {
    padding: 15px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.speaker-footer-actions {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    padding-top: 5px;
}

.speaker-card-cta-small {
    background: linear-gradient(135deg, #522f8f 0%, #6e3bbe 100%);
    color: white !important;
    padding: 8px 16px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 10px rgba(124, 58, 237, 0.25);
}

/* Linker Bereich: Avatar (dunkler lila) */
.speaker-card-avatar-area {
    width: 100%;
    height: 100%;
    /* Ensure it fills height but not overflows */
    min-height: 160px;
    background: linear-gradient(135deg, #522f8f 0%, #6e3bbe 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    /* Fix corners for left side only */
    border-radius: 0;
    margin: 0;
    position: relative;
    overflow: hidden;
}

.speaker-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    background: transparent;
    border: 3px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.speaker-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Expertise-Badges als Overlay oben links */
.speaker-expertise-badges-overlay {
    position: absolute;
    top: 0;
    left: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 10;
}

.award-badge-small {
    background: rgba(255, 255, 255, 0.95);
    color: #7c3aed;
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 0.65rem;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
}


.expertise-badge-small {
    background: rgba(255, 255, 255, 0.95);
    color: #6d28d9;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.65rem;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    backdrop-filter: blur(4px);
}

/* Content-Bereich */
.speaker-card-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px 20px 16px;
    min-height: 160px;
    height: 100%;
    justify-content: flex-start;
    background: transparent;
    position: relative;
    z-index: 1;
}

.speaker-card-content > * {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
}

.speaker-card-name {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.3;
    text-align: left;
}

.speaker-card-name a {
    color: #6d28d9;
    text-decoration: none;
    transition: color 0.2s ease;
}

.speaker-card-name a:hover {
    color: #7c3aed;
}

.speaker-card-position {
    font-size: 0.82rem;
    font-weight: 700;
    color: #7c3aed;
    margin: 0;
    text-align: left;
}

.speaker-card-meta-list {
    display: flex;
    gap: 12px;
    font-size: 0.75rem;
    color: #64748b;
    text-align: left;
}

.speaker-card-meta-list .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.speaker-card-meta-list .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    color: #7c3aed;
}

.speaker-expertise-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.expertise-pill {
    background: rgba(124, 58, 237, 0.15);
    color: #6d28d9;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    border: 1px solid rgba(124, 58, 237, 0.3);
}

.speaker-card-bio {
    margin-top: 4px;
}

.speaker-card-bio p {
    margin: 0;
    font-size: 0.78rem;
    color: #475569;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.speaker-social-links {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.speaker-social-links a {
    width: 26px;
    height: 26px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 58, 237, 0.15);
    color: #6d28d9;
    text-decoration: none;
    transition: all 0.2s ease;
}

.speaker-social-links a:hover {
    background: rgba(124, 58, 237, 0.25);
    transform: translateY(-1px);
}

.speaker-social-links .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* Rechter Bereich: Event Count & Button (dunkler lila) */
.speaker-card-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 12px;
    height: 100%;
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    border-radius: 0 5px 5px 0;
    margin: 0;
    width: 100%;
}

.speaker-card-cta {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    color: #5b21b6 !important;
    padding: 9px 14px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-decoration: none;
    transition: all 0.2s ease;
}

.speaker-event-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 4px 6px;
    border-radius: 5px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
}

.speaker-event-badge .event-label {
    font-size: 0.7rem;
    font-weight: 600;
}

.speaker-card-cta {
    background: linear-gradient(135deg, #e9d5ff 0%, #d8b4fe 100%);
    color: #6d28d9 !important;
    padding: 8px 10px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 95%;
    text-decoration: none;
    transition: all 0.2s ease;
}

.speaker-card-cta:hover {
    background: linear-gradient(135deg, #d8b4fe 0%, #c4b5fd 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(124, 58, 237, 0.3);
}

/* ========================================
   ARCHIVE CONTAINER & HEADER
   ======================================== */

.events-archive-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Unified wrapper for events archive (matching expert/company/speaker structure) */
.events-archive .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 30px gap from theme header to search card */
.events-archive {
    padding-top: 30px !important;
}

.events-archive-wrapper {
    margin-top: 0;
    margin-bottom: 50px;
}

.speakers-archive-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.archive-header {
    text-align: left;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.archive-header h1 {
    font-size: 2.5rem;
    margin: 0 0 10px 0;
    color: #1e293b;
    text-align: left;
}

.events-archive-container .archive-header h1 {
    color: #1e40af;
}

.speakers-archive-container .archive-header h1 {
    color: #7e22ce;
}

.archive-header p {
    font-size: 1.1rem;
    color: #64748b;
    margin: 0;
    text-align: left;
}



.events-list,
.speakers-list {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 10px;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    background: #f1f5f9;
    border-radius: 8px;
    text-decoration: none;
    color: #475569;
    font-weight: 600;
    transition: all 0.2s ease;
}

.pagination a:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

.pagination .current {
    background: #3b82f6;
    color: #ffffff;
}

.speakers-archive-container .pagination .current {
    background: #a855f7;
}

/* ========================================
   SINGLE EVENT
   ======================================== */

.single-event {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.event-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid rgba(59, 130, 246, 0.2);
}

.event-featured-image {
    margin-bottom: 30px;
    border-radius: 16px;
    overflow: hidden;
}

.event-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.event-title {
    font-size: 2.5rem;
    color: #1e40af;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.event-meta-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f2ff 100%);
    padding: 20px;
    border-radius: 12px;
}

.meta-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.meta-info-item .dashicons {
    color: #3b82f6;
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.event-content {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #334155;
}

.event-target-audience {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    border-left: 4px solid #3b82f6;
}

.event-target-audience h3 {
    color: #1e40af;
    margin: 0 0 10px 0;
    font-size: 1.2rem;
}

.event-target-audience p {
    margin: 0;
    color: #475569;
    line-height: 1.6;
}

.event-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(59, 130, 246, 0.2);
}

.event-section h3 {
    color: #1e40af;
    margin-bottom: 20px;
}

.speakers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.speaker-item {
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f2ff 100%);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.speaker-thumb {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: block;
    object-fit: cover;
}

.speaker-item h4 {
    margin: 0 0 5px 0;
    color: #1e40af;
}

.speaker-position {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}

.event-register-btn {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff !important;
    padding: 15px 40px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.event-register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

/* ========================================
   SINGLE SPEAKER
   ======================================== */

.single-speaker {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.speaker-header {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid rgba(168, 85, 247, 0.2);
}

.speaker-avatar-large {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #a855f7;
}

.speaker-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.speaker-name {
    font-size: 2.5rem;
    color: #7e22ce;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.speaker-position-large {
    font-size: 1.2rem;
    color: #9333ea;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.speaker-location-large {
    font-size: 1rem;
    color: #64748b;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.speaker-expertise-large {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.expertise-tag {
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.speaker-social-large {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.speaker-events-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ddd6fe 0%, #c4b5fd 100%);
    color: #6d28d9;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
}

.speaker-events-count .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    color: #7e22ce !important;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.social-link:hover {
    background: linear-gradient(135deg, #e9d5ff 0%, #d8b4fe 100%);
    transform: translateY(-1px);
}

.social-link .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.speaker-content {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #334155;
}

.speaker-bio-section {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.speaker-bio-section h3 {
    color: #7e22ce;
    margin-top: 0;
}

.speaker-events-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(168, 85, 247, 0.2);
}

.speaker-events-section h3 {
    color: #7e22ce;
    margin-bottom: 20px;
}

.events-list-small {
    display: grid;
    gap: 15px;
}

.event-item-small {
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f2ff 100%);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.event-item-small h4 {
    margin: 0 0 8px 0;
}

.event-item-small h4 a {
    color: #1e40af;
    text-decoration: none;
}

.event-item-small h4 a:hover {
    color: #3b82f6;
}

.event-date-small {
    margin: 0;
    font-size: 0.9rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 5px;
}

.event-date-small .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .event-card--list,
    .speaker-card--list {
        display: flex;
        flex-direction: column;
        height: auto;
        max-height: none;
    }
    
    .event-card-image-area,
    .speaker-card-avatar-area {
        width: 100%;
        height: 100px;
        flex-direction: row;
        border-radius: 5px 5px 0 0;
    }
    
    .event-card-actions,
    .speaker-card-actions {
        width: 100%;
        height: auto;
        flex-direction: row;
        padding: 16px;
        border-radius: 0 0 5px 5px;
        justify-content: space-between;
    }
    
    .event-corner-badges {
        flex-direction: row;
        width: auto;
    }
    
    .event-badge,
    .speaker-card-cta {
        width: auto;
    }
    
    .speaker-header {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .speaker-avatar-large {
        margin: 0 auto;
    }
    
    .speaker-header-info {
        text-align: center;
    }
    
    .speaker-social-large {
        justify-content: center;
    }
    
    .event-title,
    .speaker-name {
        font-size: 1.8rem;
    }
}

/* ========================================
   FESTE FARBDEFINITIONEN (Copied from Hub V2 for Detail Pages)
   ======================================== */
:root {
    /* Expert Colors - FEST */
    --expert-primary: #667eea !important;
    --expert-primary-hover: #5568d3 !important;
    --expert-secondary: #764ba2 !important;
    --expert-accent: #10b981 !important;
    --expert-warning: #f59e0b !important;
    --expert-danger: #ef4444 !important;
    
    /* Company Colors - FEST */
    --company-primary: #3b82f6 !important;
    --company-secondary: #2563eb !important;
    
    /* Event Colors - FEST */
    --event-primary: #8b5cf6 !important;
    --event-secondary: #7c3aed !important;
    
    /* Text Colors - FEST */
    --expert-text: #1f2937 !important;
    --expert-text-light: #6b7280 !important;
    --expert-text-lighter: #9ca3af !important;
    
    /* Background Colors - FEST */
    --expert-bg: #ffffff !important;
    --expert-bg-light: #f9fafb !important;
    --expert-bg-lighter: #f3f4f6 !important;
    
    /* Border & Shadow - FEST */
    --expert-border: #e5e7eb !important;
    --expert-border-light: #f3f4f6 !important;
    --expert-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    --expert-shadow: 0 4px 16px rgba(0, 0, 0, 0.06) !important;
    --expert-shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12) !important;
    
    /* Transitions - FEST */
    --expert-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    --expert-transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1) !important;
    
    /* Spacing - FEST */
    --expert-radius: 16px !important;
    --expert-radius-sm: 12px !important;
    --expert-radius-lg: 20px !important;
}

/* ========================================
   NEW COMPACT DETAIL PAGES (EXPERT, COMPANY, EVENT)
   ======================================== */

/* Container (da Theme evtl. kein Bootstrap hat) */
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

@media (min-width: 768px) {
    .container {
        padding-left: 30px;
        padding-right: 30px;
    }
}

/* Main Wrapper für Detail-Seiten */
.event-detail-compact,
.speaker-detail-compact,
.expert-detail-compact,
.company-detail-compact {
    width: 100%;
    background: #fff;
    min-height: 100vh;
}

/* Sicherstellen dass Wrapper direkt am Theme-Header beginnt (DEACTIVATED due to theme interference) */
/*
body.single-expert_event,
body.single-event_speaker,
body.single-it_expert,
body.single-it_company {
    background: #fff !important;
}

.site #primary {
    margin: 0;
    padding: 0;
}

.site #primary .site-main {
    margin: 0;
    padding: 0;
}
*/

/* --- Global Compact Layout --- */
.compact-header-bg {
    height: 250px;
    width: 100%;
    position: relative;
    margin-bottom: 0;
    margin-top: 0; /* Geändert von -40px auf 0 für konsistentes Layout */
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
}

/* Helper Klasse für volle Höhe */
.h-100 {
    height: 100%;
    display: flex;
    align-items: center;
}

.header-content-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.header-identity {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-avatar-circle {
    width: 180px;
    height: 125px;
    border-radius: 8px;
    overflow: hidden;
    border: 4px solid rgba(255,255,255,0.8);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    background: #fff;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding: 8px;
}

/* Speaker Detail: Avatar als Kreis */
.speaker-theme-purple .header-avatar-circle {
    width: 125px;
    height: 125px;
    border-radius: 50%;
    padding: 0;
}

.speaker-theme-purple .header-avatar-circle img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    max-width: none !important;
    max-height: none !important;
    background-color: transparent !important;
}

.header-avatar-circle img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.header-text-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.header-name {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    white-space: nowrap;
}

.header-job {
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
    font-weight: 500;
}

.header-job-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
    font-weight: 500;
}

/* Badges Area */
.header-badges-area {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    padding-top: 5px;
}
.status-badges-group {
    display: flex;
    gap: 8px;
    align-items: center;
}
.status-badge {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.4);
}

.status-badge .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #fff;
}

/* --- Meta Cards Grid --- */
.meta-cards-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: -50px; /* Overlap Header - Cards ragen in Header rein */
    margin-bottom: 40px;
    position: relative;
    z-index: 10;
}

.meta-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    padding: 24px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.meta-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
    color: #1e3a5f;
}

.meta-card-title .dashicons {
    color: var(--expert-primary);
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.meta-grid-compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
}

.meta-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.meta-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.meta-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: #1e293b;
}

.contact-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
}

/* Theme Colors for Headers */
.expert-detail-compact .compact-header-bg {
    background: linear-gradient(135deg, #4d23c0 0%, rgb(87, 74, 148) 100%);
}

.company-detail-compact .compact-header-bg {
    background: linear-gradient(135deg, #0f5b36 0%, #0a4327 100%);
}

.event-detail-compact .compact-header-bg {
    background: linear-gradient(135deg, #2d4075 0%, #1f3680 100%);
}

/* Event & Speaker Header Gradients für Compact Layout */
.event-header-gradient {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.speaker-header-gradient {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
}

/* Header Meta Row (unter dem Titel) */
.header-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 8px;
}

.header-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
}

.header-meta-item .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Status Badge Varianten */
.badge-format {
    background: rgba(59, 130, 246, 0.3) !important;
    border-color: rgba(59, 130, 246, 0.5) !important;
}

.badge-free {
    background: rgba(16, 185, 129, 0.3) !important;
    border-color: rgba(16, 185, 129, 0.5) !important;
}

.badge-paid {
    background: rgba(251, 191, 36, 0.3) !important;
    border-color: rgba(251, 191, 36, 0.5) !important;
}

.badge-upcoming {
    background: rgba(139, 92, 246, 0.3) !important;
    border-color: rgba(139, 92, 246, 0.5) !important;
}

.badge-social {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    color: #fff !important;
    text-decoration: none !important;
    transition: all 0.2s;
}

.badge-social:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-1px);
}

/* Content Sections für Detail-Seiten */
.event-content-wrapper,
.speaker-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 60px 20px;
}

.content-section {
    margin-bottom: 48px;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
}

.section-content {
    font-size: 16px;
    line-height: 1.7;
    color: #374151;
}

.section-content p {
    margin: 0 0 16px 0;
}

/* Speaker Detail Layout: 2-Column Grid */
.speaker-content-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
    margin-top: 48px;
}

.speaker-main-content {
    min-width: 0;
}

.speaker-sidebar {
    position: sticky;
    top: 20px;
}

.sidebar-section {
    background: #f9fafb;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    border: 1px solid #e5e7eb;
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
}

.sidebar-title .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Buttons für Event & Speaker Details */
.btn-primary-event {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

.btn-primary-event:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.btn-secondary-event,
.btn-secondary-speaker {
    background: #f3f4f6 !important;
    color: #374151 !important;
    border: 1px solid #e5e7eb !important;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

.btn-secondary-event:hover,
.btn-secondary-speaker:hover {
    background: #e5e7eb !important;
    transform: translateY(-1px);
}

/* Benefits List */
.benefits-list {
    display: grid;
    gap: 12px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
    font-size: 15px;
    color: #374151;
}

.benefit-item .dashicons {
    color: #10b981;
    font-size: 20px;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Agenda Content */
.agenda-content {
    background: #f9fafb;
    padding: 24px;
    border-radius: 12px;
    border-left: 4px solid #2563eb;
}

.agenda-content p {
    margin: 0 0 12px 0;
}

/* Speakers Grid Compact */
.speakers-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.speaker-card-compact {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
    text-align: center;
}

.speaker-card-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.speaker-card-compact .speaker-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 12px auto;
    border: 3px solid #f3f4f6;
}

.speaker-card-compact .speaker-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.speaker-card-compact .speaker-name {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 4px 0;
}

.speaker-card-compact .speaker-name a {
    color: #1a1a1a;
    text-decoration: none;
}

.speaker-card-compact .speaker-name a:hover {
    color: #2563eb;
}

.speaker-card-compact .speaker-title {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 4px 0;
}

.speaker-card-compact .speaker-company {
    font-size: 12px;
    color: #9ca3af;
    margin: 0;
}

/* Expertise Tags */
.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.expertise-tag {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid #93c5fd;
}

/* Quote Box für Speaker */
.speaker-quote-box {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    padding: 40px 32px;
    border-radius: 16px;
    margin: 40px 0;
    border-left: 4px solid #7c3aed;
}

.speaker-quote-box blockquote {
    margin: 0;
    text-align: center;
}

.speaker-quote-box .quote-mark {
    font-size: 3rem;
    color: #9ca3af;
    font-family: Georgia, serif;
    line-height: 1;
    display: block;
    margin-bottom: 16px;
}

.speaker-quote-box blockquote:not(.quote-mark) {
    font-size: 1.25rem;
    font-style: italic;
    color: #374151;
    margin: 0 0 16px 0;
    line-height: 1.6;
}

.speaker-quote-box cite {
    font-size: 14px;
    color: #6b7280;
    font-style: normal;
    font-weight: 600;
}

/* Awards Grid */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.award-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid #fcd34d;
}

.award-badge .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: #f59e0b;
}

/* Events Timeline */
.events-timeline {
    position: relative;
    padding-left: 32px;
}

.events-timeline::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: #e5e7eb;
}

.timeline-event {
    position: relative;
    margin-bottom: 24px;
}

.timeline-marker {
    position: absolute;
    left: -32px;
    top: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #2563eb;
    z-index: 1;
}

.timeline-content {
    background: #f9fafb;
    padding: 16px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.timeline-content .event-date {
    display: block;
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.timeline-content .event-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 6px 0;
}

.timeline-content .event-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.timeline-content .event-title a:hover {
    color: #2563eb;
}

.timeline-content .event-location {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #6b7280;
}

.timeline-content .event-location .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .meta-cards-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 20px;
    }
    
    .header-content-flex {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
    
    .compact-header-bg {
        height: auto;
        padding: 40px 0;
    }
    
    .header-identity {
        flex-direction: column;
        gap: 12px;
    }
    
    .header-badges-area {
        margin-top: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .header-meta-row {
        flex-direction: column;
        gap: 8px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .speakers-grid-compact {
        grid-template-columns: 1fr;
    }
    
    .awards-grid {
        grid-template-columns: 1fr;
    }
    
    .speaker-quote-box {
        padding: 24px 20px;
    }
    
    .contact-actions {
        grid-template-columns: 1fr;
    }
    
    .speaker-content-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .speaker-sidebar {
        position: static;
    }
}

/* ============================================
   NEW EVENT CARDS (SPEAKER DETAIL)
   ============================================ */
.events-list-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .events-list-cards {
        grid-template-columns: 1fr;
    }
}

.event-card-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.event-card-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.08);
    border-color: #cbd5e1;
}

.event-card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.event-card-meta-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.event-date-badge {
    font-size: 0.85rem;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 4px;
}

.event-date-badge .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.badge-sm {
    padding: 4px 10px;
    font-size: 0.75rem;
}

.event-card-title {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    line-height: 1.4;
    font-weight: 700;
}

.event-card-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.event-card-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.event-card-location .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.event-card-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #2563eb;
    text-decoration: none;
}

.event-card-link:hover {
    text-decoration: underline;
}

/* ========================================
   NEW SPEAKER CARD LIST LAYOUT (Grid 2-Col)
   ======================================== */

.speaker-card--list {
    grid-template-columns: 144px 1fr !important;
}

/* Remove old actions column styles logic by non-rendering */
.speaker-card-actions {
    display: none !important;
}

/* Container for the right side (Content + Actions merged) */
.speaker-card-main-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
    background: transparent;
    overflow: hidden; /* Ensure rounded corners */
}

/* Header Band: "Leicht dunkler als ein band von komplett links nach rechts" */
.speaker-header-band {
    background: #ede9fe; /* Slightly darker purple than card bg */
    border-bottom: 1px solid rgba(124, 58, 237, 0.15);
    padding: 15px 20px; /* "abstand zum cardrand oben sollte schon ca. 15px sein" */
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    width: 100%;
}

.header-band-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1; /* Take space */
}

.speaker-card-name {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.2;
}

.speaker-card-name a {
    color: #5b21b6; /* Darker purple text */
    text-decoration: none;
}

.speaker-card-position {
    font-size: 0.85rem;
    color: #7c3aed;
    font-weight: 600;
}

.speaker-card-meta-list {
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: #6b7280;
}

/* Social Media (Top Right in the Band - "Rechte Card Ecke oben") */
.header-band-right {
    flex-shrink: 0;
}

.speaker-social-mini {
    display: flex;
    gap: 6px;
}

.speaker-social-mini a {
    width: 32px; 
    height: 32px;
    border-radius: 8px;
    background: #fff;
    color: #7c3aed;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(124, 58, 237, 0.15);
    transition: all 0.2s;
    text-decoration: none;
}

.speaker-social-mini a:hover {
    background: #7c3aed;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(124, 58, 237, 0.25);
}

.speaker-social-mini .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Body Content: "Darunter eine Kurz Beschreibung" */
.speaker-body-content {
    padding: 15px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.speaker-card-bio p {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer Actions: "Profil Button im Rechten Bereich in der rechten Card Ecke" */
.speaker-footer-actions {
    margin-top: auto;
    display: flex;
    justify-content: flex-end; /* Align to right */
    align-items: center;
    gap: 15px;
    padding-top: 5px;
}

.mini-event-count {
    margin-right: auto; /* Push to left side of footer area */
    font-size: 0.8rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.6);
    padding: 4px 8px;
    border-radius: 6px;
}

.speaker-card-cta-small {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: white !important;
    padding: 8px 16px; /* Button sizing */
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    box-shadow: 0 4px 10px rgba(124, 58, 237, 0.25);
}

.speaker-card-cta-small:hover {
    background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(124, 58, 237, 0.35);
}
/* ========================================
   SPEAKER CARD LIST - 3-COLUMN LAYOUT REFACTOR
   ======================================== */

.speaker-card--list {
    /* 3 Columns: Avatar | Content | Actions Right */
    grid-template-columns: 144px 1fr 60px !important;
}

/* Ensure Avatar Area keeps its style */
.speaker-card-avatar-area {
    /* Existing style is good, just ensures full height */
    height: auto;
    min-height: 100%;
    border-radius: 5px 0 0 5px !important;
}

/* Middle Content Area */
.speaker-card-content-middle {
    padding: 16px 16px 16px 4px; /* Reduced left padding as Avatar is adjacent */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 12px;
}

.middle-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Re-use existing text styles */
.speaker-card-name {
    margin: 0;
    line-height: 1.2;
}

.speaker-card-position {
    margin-bottom: 2px;
}

.speaker-card-bio p {
    margin: 0;
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Show slightly more text */
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Right Actions Area (Purple Strip) */
.speaker-card-actions-right {
    background: linear-gradient(135deg, #522f8f 0%, #6e3bbe 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 12px 8px;
    height: 100%;
    box-sizing: border-box;
    /* Normally rounded corners on right side */
        border-radius: 0 5px 5px 0; 
    }

    /* Vertical Social Icons */
    .speaker-social-vertical {
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }

    .speaker-social-vertical a {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background: rgba(255,255,255,0.2);
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s;
        text-decoration: none;
    }

/* Bottom Action (Button) - Icon Only style to fit narrow strip */
.actions-bottom {
    margin-top: auto;
}

.speaker-card-cta-icon-only {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #fff;
    color: #7c3aed !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: all 0.2s;
    font-size: 20px;
}

.speaker-card-cta-icon-only:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.speaker-card-cta-icon-only .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Hide old elements just in case */
.speaker-card-main-wrapper,
.speaker-header-band,
.speaker-body-content {
    display: none !important;
}

/* Responsive fix for this 3-col layout */
@media (max-width: 600px) {
    .speaker-card--list {
        display: flex;
        flex-direction: column;
        height: auto;
    }
    
    .speaker-card-actions-right {
        flex-direction: row;
        width: 100%;
        height: auto;
        padding: 10px 20px;
        border-radius: 0 0 5px 5px;
    }
    
    .speaker-social-vertical {
        flex-direction: row;
    }
    
    .speaker-card-avatar-area {
        border-radius: 5px 5px 0 0 !important;
        height: 140px;
    }
}
/* ========================================
   SPEAKER CARD LIST - 3-COLUMN LAYOUT REFINEMENTS
   ======================================== */

.speaker-card--list {
    /* 3 Columns: Avatar (144px) | Content (Flex) | Actions Right (160px for button text) */
    grid-template-columns: 144px 1fr 160px !important;
}

/* Middle Content Area updates */
.speaker-card-content-middle {
    background: linear-gradient(135deg, #f6eff7 0%, #f3daeee0 100%);
    /* "Abstand zum Bereich links mit dem Bild etwas vergrößern" */
    padding: 20px 24px 20px 12px; 
    gap: 8px; /* Less gap between header and separator */
    justify-content: flex-start; /* Keep contents at top */
}

/* "Dezente Trennlinie" */
.content-separator {
    height: 1px;
    background-color: rgba(0, 0, 0, 0.06);
    width: 100%;
    margin: 4px 0 8px 0;
}

/* Right Actions Area updates */
.speaker-card-actions-right {
    padding: 16px 12px;
    align-items: flex-end; /* Align elements to right edge essentially, but we use inner widths */
}

/* Social Grid: "Immer 3 nebeneinander" */
.speaker-social-grid {
    display: flex;
    flex-wrap: wrap; /* Allow wrap if > 3 */
    gap: 6px;
    justify-content: center; /* Center them relative to column */
    width: 100%;
    margin-bottom: auto; /* Push away from bottom button */
}

/* Reset vertical link styles for the grid */
.speaker-social-grid a {
    width: 32px;
    height: 32px;
    border-radius: 8px; /* Square with round corners looks better for grid */
    background: rgba(255,255,255,0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    text-decoration: none;
}

.speaker-social-grid a:hover {
    background: #fff;
    color: #7c3aed;
    transform: translateY(-2px);
}

.speaker-social-grid .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Button: "Text Button" */
.speaker-card-cta-white {
    background: #fff;
    color: #7c3aed !important;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transition: all 0.2s;
    width: 100%; /* Fill width */
    justify-content: center; /* Center text */
}

.speaker-card-cta-white:hover {
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
    color: #6d28d9 !important;
}

.actions-bottom {
    width: 100%;
}

/* Clean up old classes if present via override */
.speaker-social-vertical,
.speaker-card-cta-icon-only {
    display: none !important;
}
/* ========================================
   FILTER BAR & BADGES UPDATES
   ======================================== */

/* Archive Filter Bar */
.archive-filter-bar {
    margin-bottom: 0;
    background: #f0f2f4;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* Speaker Archive Filter Bar */
.speaker-archive .archive-filter-bar {
    margin-top: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: 100%;
    flex-wrap: nowrap;
}

.speaker-search-form {
    display: flex;
    width: 100%;
}

.filter-group.button-group {
    display: flex;
    gap: 10px;
    width: 100%;
    align-items: center;
    flex-wrap: nowrap;
}

.search-input-wrapper {
    position: relative;
    flex-grow: 1;
    flex-shrink: 1;
    min-width: 0;
}

.search-input-wrapper .dashicons {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.search-field {
    width: 100%;
    padding: 10px 10px 10px 38px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-size: 0.95rem;
    background: #f8fafc;
    transition: all 0.2s;
}

.search-field:focus {
    background: #fff;
    border-color: #94a3b8;
    box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.12);
    outline: none;
}

.filter-select {
    padding: 10px 30px 10px 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-size: 0.95rem;
    color: #64748b;
    background-color: #f8fafc;
    cursor: pointer;
    flex-shrink: 0;
    width: auto;
}

.filter-button {
    flex-shrink: 0;
    width: auto;
    white-space: nowrap;
    padding: 10px 24px;
    background: #334155;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.12);
}

.filter-button:hover {
    background: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.18);
}

/* Container Styling */
.speaker-archive .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.speaker-archive {
    margin-top: 0 !important;
    padding-top: 30px !important;
}

.speaker-archive-wrapper {
    padding: 0;
    margin-bottom: 50px;
}

/* Speaker Body Badges */
.speaker-body-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px; /* Some space from bio */
}

.status-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
}

.active-speaker {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: #fff;
    box-shadow: 0 2px 5px rgba(124, 58, 237, 0.25);
}

.active-speaker .dashicons {
    font-size: 12px;
    width: 12px;
    height: 12px;
}

.skill-pill {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

/* Responsive Filter */
@media (max-width: 600px) {
    .button-group {
        flex-direction: column;
        align-items: stretch;
    }
}
/* ========================================
   SPEAKER CARD LIST - 3-COLUMN LAYOUT REFINEMENTS
   ======================================== */

.speaker-card--list {
    /* 3 Columns: Avatar (144px) | Content (Flex) | Actions Right (160px for button text) */
    grid-template-columns: 144px 1fr 160px !important;
    /* Force 150px Height */
    height: 150px !important;
    min-height: 150px !important;
    max-height: 150px !important;
}

/* Adjust Avatar Area to match new height */
.speaker-card-avatar-area {
    min-height: 150px !important;
    height: 150px !important;
}

/* Adjust margins/padding in contents to fit tighter vertical space */
.speaker-card-content-middle {
    padding: 12px 16px 12px 12px !important;
    gap: 4px !important;
}

/* Bio in List-View: max 2 Zeilen, korrekt abgeschnitten */
.speaker-card--list .speaker-card-bio-list {
    margin-top: 4px;
    overflow: hidden;
}

.speaker-card--list .speaker-card-bio-list p {
    margin: 0;
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.4;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Content-Middle: Feste Höhe, Overflow hidden */
.speaker-card--list .speaker-card-content-middle {
    overflow: hidden !important;
    height: 150px !important;
    max-height: 150px !important;
}

/* Actions-Right: Feste Höhe, nicht verschieben */
.speaker-card--list .speaker-card-actions-right {
    height: 150px !important;
    max-height: 150px !important;
    overflow: hidden !important;
}

.speaker-card-bio p {
    -webkit-line-clamp: 2 !important; /* Reduce to 2 lines to fit */
}

.speaker-body-badges {
    margin-top: 4px !important;
}
/* ========================================
   BADGE COLOR UPDATES
   ======================================== */

/* "preis bei kostenfrei grün dunel mit hellem text" */
.event-badge--price.price-type-free {
    background: linear-gradient(135deg, #15803d 0%, #166534 100%) !important; /* Green 700 to 800 */
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 2px 4px rgba(22, 101, 52, 0.2);
}

/* Optional: Make paid/spende visually distinct too */
.event-badge--price.price-type-paid {
    background: linear-gradient(135deg, #c2590f 0%, #8b390d 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.1);
}

.event-badge--price.price-type-donation {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

/* Ensure Format badge fits in */
.event-badge--format {
    background: rgba(255,255,255,0.9);
    color: #1e3a8a; /* Darker blue text */
    font-weight: 800;
}
/* ========================================
   FILTER BUTTON STYLES
   ======================================== */
.filter-button {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    padding: 10px 24px;
    border: none;
    border-radius: 8px; /* Match select radius of 8px or use 10px */
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
    height: auto;
    line-height: normal;
}

.filter-button:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(37, 99, 235, 0.3);
    color: #ffffff;
}
/* ========================================
   FORMAT BADGE COLORS & SIZING
   ======================================== */

/* "1/4 schmaler" - Reducing padding from 4px 10px to 3px 8px */
.event-badge {
    padding: 3px 8px !important;
}

/* Format Types - Colored backgrounds with white text to match "Free" badge style */

/* Online - Cyan/Teal (Digital) */
.event-badge--format.format-type-online {
    background: linear-gradient(135deg, #2682ad 0%, #006da3 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Presence - Amber/Orange (Physical/Warm) */
.event-badge--format.format-type-presence {
    background: linear-gradient(135deg, #b47c1a 0%, #db821b 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Hybrid - Purple/Pink (Mix) */
.event-badge--format.format-type-hybrid {
    background: linear-gradient(135deg, #d946ef 0%, #c026d3 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Ensure Speaker Badge matches slim size */
.event-badge--speakers {
   padding: 3px 8px !important; 
}
/* ========================================
   BADGE ROW & ORGANIZER STYLES
   ======================================== */

.badge-row {
    display: flex;
    flex-direction: row;
    gap: 4px;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.event-badge--organizer {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    width: 100%;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}
/* ========================================
   EVENT CARD CONTENT - HEADER BAND STYLING
   ======================================== */

.event-card-content {
    padding: 0 !important; /* Remove global padding to allow background fill */
    gap: 0 !important;
    justify-content: flex-start !important;
    background: #ffffff;
}

.event-content-header {
    background: linear-gradient(180deg, #e5eff8 0%, #b7cfe7 100%);
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.event-card-title {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.3;
}

.event-card-excerpt {
    padding: 10px 14px;
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
}

/* Adjust meta list gap */
.event-card-meta-list {
    margin-top: 2px;
}
/* Force width 100% and remove margins for the header to ensure it hits edges */
.event-content-header {
    width: 100%;
    margin: 0;
    box-sizing: border-box; /* Include padding in width */
    border-radius: 0; /* Ensure sharp corners to meet neighbors */
}

/* Ensure excerpt also has full width context */
.event-card-excerpt {
    width: 100%;
    box-sizing: border-box;
}

/* Specific override for any potential flex align issues */
.event-card-content {
    align-items: stretch !important; /* Stretch children to full width */
}
/* ========================================
   SPECIFICITY FIXES FOR EVENT CARD LAYOUT
   ======================================== */

/* Target specific nested structure to ensure override */
.event-card--list .event-card-content {
    padding: 0 !important;
    gap: 0 !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    background: #ffffff;
    display: flex !important;
    flex-direction: column !important;
}

/* Ensure Header spans full width with no gaps */
.event-card--list .event-content-header {
    width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
    flex-grow: 0 !important; /* Do not grow, just take needed space */
}

/* Ensure Excerpt spans full width */
.event-card--list .event-card-excerpt {
    width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    flex-grow: 1 !important; /* Grow to fill rest of space */
}

/* Remove any potential margins from title */
.event-card--list .event-content-header .event-card-title {
    margin: 0 !important;
    padding: 0 !important;
}
/* ========================================
   IMAGE SCALING FIXES (CONTAIN VS COVER)
   ======================================== */

/* Event List Overview Image - Show full image, no cropping */
.event-list-image img {
    object-fit: contain !important;
    background-color: #ffffff; /* Add white bg to fill gaps if ratio differs */
}
/* Ensure the container has a background too if image is transparent */
.event-list-image {
    background-color: #ffffff !important;
}

/* Event Detail Page Image - Show full image, no cropping (nur Events, nicht Speaker!) */
.event-detail-compact .header-avatar-circle img {
    object-fit: contain !important;
    background-color: #ffffff;
}

/* ============================================
   LOGISTICS & ANREISE SECTION
   ============================================ */
.logistics-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
    border-left: 4px solid #2563eb;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.logistics-section .section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #1e40af;
    margin-bottom: 1.5rem;
}

.logistics-section .section-title .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
}

.logistics-content h3 {
    color: #1e40af;
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.logistics-content ul {
    list-style: none;
    padding-left: 0;
}

.logistics-content ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.logistics-content ul li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #2563eb;
    font-weight: bold;
}

/* ============================================
   SPONSORS & PARTNER SECTION
   ============================================ */
.sponsors-section {
    background: #f9fafb;
    padding: 2.5rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.sponsors-section .section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    color: #374151;
    margin-bottom: 2rem;
}

.sponsors-section .section-title .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
}

.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
    align-items: center;
    justify-items: center;
}

.sponsors-grid img {
    max-width: 180px;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.sponsors-grid img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* ============================================
   DOWNLOADS & MATERIALIEN SECTION (Speaker)
   ============================================ */
.downloads-section {
    background: linear-gradient(135deg, #faf5ff 0%, #ede9fe 100%);
    border-left: 4px solid #7c3aed;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.downloads-section .section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b21a8;
    margin-bottom: 1.5rem;
}

.downloads-section .section-title .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
}

.downloads-content a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: #7c3aed;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 0.5rem 0.5rem 0.5rem 0;
}

.downloads-content a:hover {
    background: #6b21a8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.downloads-content a:before {
    content: "\f316"; /* dashicons-download */
    font-family: dashicons;
    font-size: 18px;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
    .logistics-section,
    .sponsors-section,
    .downloads-section {
        padding: 1.5rem;
    }
    
    .sponsors-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1.5rem;
    }
    
    .sponsors-grid img {
        max-width: 140px;
        max-height: 60px;
    }
}

/* Speaker Detail - New Boxes */
.cert-badge {
    display: block;
    width: 100%;
    padding: 8px 12px;
    margin-bottom: 8px;
    background: #f0f9ff;
    color: #0369a1;
    border: 1px solid #bae6fd;
    border-radius: 6px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    text-decoration: none;
}
.cert-badge:hover {
    background: #e0f2fe;
    color: #0284c7;
}
.cert-badge .dashicons {
    margin-right: 8px;
    font-size: 18px;
    vertical-align: sub;
    color: #0ea5e9;
}

.speaker-facts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.speaker-fact-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}
.speaker-fact-item:last-child {
    border-bottom: none;
}
.fact-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-weight: 500;
}
.fact-label .dashicons {
    color: #94a3b8;
}
.fact-value {
    color: #334155;
    font-weight: 600;
    text-align: right;
    max-width: 60%;
}


/* Sidebar positioning for moved cards */
.speaker-sidebar .meta-card {
    margin-bottom: 24px;
}
.speaker-sidebar .meta-card:last-child {
    margin-bottom: 0;
}


/* Speaker Card - Upcoming Event Badge */
.upcoming-event-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    color: #6d28d9;
    border: 1px solid #ddd6fe;
    padding: 2px 8px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 8px;
}
.upcoming-event-badge .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    color: #7c3aed;
}


/* Speaker Sidebar: Certifications Stacked */
.cert-badge {
    /* Existing basic style */
    display: block !important;
    width: 100%;
    margin-bottom: 8px;
    box-sizing: border-box;
}
.awards-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}


/* Updated Event List Card Styles (Date Left of Title) */

.event-header-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
    flex-wrap: nowrap !important; /* Force side-by-side */
}

.event-date-badge-inline {
    background: #1e40af; /* Dark blue */
    color: #ffffff !important; /* Forced White */
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 6px;
    white-space: nowrap;
    display: inline-block;
    flex-shrink: 0; /* Prevent shrinking */
    line-height: 1.2;
}

/* Adjust Title to remove top margin if present */
.event-header-row .event-card-title {
    margin: 0 !important;
    line-height: 1.2;
    flex: 1; /* Take remaining space */
    min-width: 0; /* Allow text wrapping inside */
}

/* Make image taller */
.event-list-image {
    height: 110px !important; /* Increased from 90px */
}

/* Adjust card height to accommodate taller image if needed */
.event-card--list {
    height: 150px !important; /* Fixed height per user request */
    min-height: 150px !important;
    max-height: 150px !important;
    overflow: hidden;
}

/* ========================================
   VIEW SWITCHER & GRID VIEW STYLES - EVENTS/SPEAKERS
   ======================================== */

/* Toggle Button Container */
.view-mode-toggle {
    display: inline-flex;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid #d1d5db; 
    border-radius: 4px;
    margin-right: 12px;
    height: 40px; 
    overflow: hidden;
    vertical-align: middle;
}

.view-mode-toggle .view-toggle-btn,
.view-mode-toggle .btn-view-toggle {
    background: transparent;
    border: none;
    border-right: 1px solid #e5e7eb;
    padding: 0 12px;
    height: 100%;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.view-mode-toggle button:last-child {
    border-right: none;
}

.view-mode-toggle button:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.view-mode-toggle button.active {
    background-color: #f3f4f6;
    color: var(--event-primary, #3b82f6);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.speakers-archive-container .view-mode-toggle button.active {
    color: var(--speaker-primary, #7c3aed);
}

.view-mode-toggle button span.dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* ========================================
   GRID CONTAINER LAYOUT
   ======================================== */
.events-list.view-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
    gap: 30px !important;
    padding-top: 10px !important;
    align-items: stretch !important;
}

.speakers-list.view-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
    padding-top: 10px !important;
    align-items: stretch !important;
}

/* Speaker View Toggle: Hide List in Grid, Hide Grid in List */
.speakers-list.view-grid .speaker-card--list {
    display: none !important;
}

.speakers-list.view-list .speaker-card--overview {
    display: none !important;
}

.speakers-list.view-list {
    display: block !important;
}

.speakers-list.view-grid .speaker-card--overview {
    display: flex !important;
}

/* ========================================
   GRID CARD BASE STRUCTURE - Nur für Event Cards
   ======================================== */
.events-list.view-grid article,
.view-grid .event-card {
    height: 375px !important;
    width: 100% !important;
    max-width: 100% !important;
    
    border: 1px solid #e5e7eb !important;
    border-radius: 5px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06) !important;
    background: #ffffff !important;
    
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    overflow: hidden !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.events-list.view-grid article:hover,
.view-grid .event-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12) !important;
    z-index: 5 !important;
}

/* ========================================
   IMAGE/HEADER AREA
   ======================================== */
.view-grid .event-card-image-area {
    height: 160px !important;
    width: 100% !important;
    flex-shrink: 0 !important;
    
    border-bottom: 1px solid #f0f0f0 !important;
    margin: 0 !important;
    padding: 0 !important;
    
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    
    border-right: none !important;
    border-top-right-radius: 5px !important;
    border-top-left-radius: 5px !important;
    
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
}

.speakers-list.view-grid .event-card-image-area {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%) !important;
}

.view-grid .event-list-image {
    width: 100% !important;
    height: 100% !important;
}

.view-grid .event-list-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Speaker Avatar in Grid */
.view-grid .speaker-avatar,
.view-grid .speaker-list-item-avatar img {
    width: 110px !important;
    height: 110px !important;
    border-radius: 50% !important;
    border: 4px solid #ffffff !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important;
    object-fit: cover !important;
}

/* ========================================
   CONTENT BODY - Nur für Events
   ======================================== */
.events-list.view-grid .event-card-content {
    flex-grow: 1 !important;
    padding: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
}

.events-list.view-grid .event-card-main {
    width: 100% !important;
    border-right: none !important;
    margin-bottom: 15px !important;
    padding-right: 0 !important;
}

.events-list.view-grid h3,
.events-list.view-grid .event-title {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    margin: 5px 0 10px 0 !important;
    line-height: 1.4 !important;
    width: 100% !important;
    text-align: left !important;
}

.events-list.view-grid h3 a {
    color: inherit !important;
    text-decoration: none !important;
    transition: color 0.2s !important;
}

.events-list.view-grid h3 a:hover { 
    color: #3b82f6 !important;
}

.speakers-list.view-grid h3 a:hover { 
    color: #7c3aed !important;
}

.events-list.view-grid .event-card-meta,
.events-list.view-grid .event-meta {
    font-size: 0.85rem !important;
    color: #4b5563 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
    width: 100% !important;
}

.view-grid .event-excerpt {
    font-size: 0.9rem !important;
    color: #6b7280 !important;
    line-height: 1.5 !important;
    margin-bottom: auto !important;
    text-align: center !important;
    
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    max-height: 4.5em !important;
}

/* ========================================
   FOOTER / ACTIONS
   ======================================== */
.view-grid .event-card-actions {
    margin-top: 15px !important;
    width: 100% !important;
    
    border-top: 1px solid #f3f4f6 !important;
    padding-top: 15px !important;
    
    display: flex !important;
    gap: 10px !important;
    justify-content: center !important;
    
    border-left: none !important;
    padding-left: 0 !important;
}

.view-grid .btn-event-details,
.view-grid .btn-speaker-details {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
}

/* Responsive */
@media (max-width: 600px) {
    .events-list.view-grid,
    .speakers-list.view-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ========================================
   GRID VIEW - EVENT CARD SPECIFIC STRUCTURE FIXES
   ======================================== */

/* Image Area: Position Relative für Badge Overlay */
.view-grid .event-card-image-area {
    position: relative !important;
}

/* Badges über dem Bild (absolut positioniert) */
.view-grid .event-corner-badges {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 10 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    align-items: flex-end !important;
}

.view-grid .event-corner-badges .badge-row {
    display: flex !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
}

.view-grid .event-badge {
    padding: 4px 10px !important;
    font-size: 0.75rem !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

/* Event Content Header */
.view-grid .event-content-header {
    width: 100% !important;
    margin-bottom: 12px !important;
}

.view-grid .event-header-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
}

.view-grid .event-date-badge-inline {
    display: inline-block !important;
    padding: 4px 12px !important;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%) !important;
    color: #1e40af !important;
    border-radius: 4px !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
}

.view-grid .event-card-title {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
    line-height: 1.3 !important;
    text-align: center !important;
    width: 100% !important;
}

.view-grid .event-card-title a {
    color: #1f2937 !important;
    text-decoration: none !important;
}

.view-grid .event-card-title a:hover {
    color: #3b82f6 !important;
}

/* Meta List - Horizontal zentriert */
.view-grid .event-card-meta-list {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 12px !important;
    width: 100% !important;
    padding: 0 !important;
}

.view-grid .event-card-meta-list .meta-item {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 0.8rem !important;
    color: #4b5563 !important;
}

.view-grid .event-card-meta-list .meta-item .dashicons {
    font-size: 16px !important;
    width: 16px !important;
    height: 16px !important;
    color: #3b82f6 !important;
}

/* Excerpt - Begrenzt auf 3 Zeilen */
.view-grid .event-card-excerpt {
    margin-bottom: auto !important;
    padding: 0 10px !important;
}

.view-grid .event-card-excerpt p {
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
    color: #6b7280 !important;
    margin: 0 !important;
    
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-align: center !important;
}

/* Actions Area im Grid: Nur Button, keine Badges */
.view-grid .event-card-actions {
    width: 100% !important;
    padding: 15px 20px !important;
    border-top: 1px solid #f3f4f6 !important;
    border-left: none !important;
    display: flex !important;
    justify-content: center !important;
    margin-top: auto !important;
}

.view-grid .event-card-cta {
    width: 100% !important;
    max-width: none !important;
    padding: 12px 0 !important;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 0 0 5px 5px !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    text-align: center !important;
    transition: all 0.2s ease !important;
    display: block !important;
    box-shadow: none !important;
}

.view-grid .event-card-cta:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3) !important;
}

/* Speaker Cards - Lila Theme */
.speakers-list.view-grid .event-date-badge-inline {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%) !important;
    color: #6d28d9 !important;
}

.speakers-list.view-grid .event-card-meta-list .meta-item .dashicons {
    color: #7c3aed !important;
}

.speakers-list.view-grid .event-card-cta {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%) !important;
}

.speakers-list.view-grid .event-card-cta:hover {
    background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%) !important;
    box-shadow: 0 4px 8px rgba(124, 58, 237, 0.3) !important;
}

/* ========================================
   GRID VIEW - SPEAKER CARD SPECIFIC STRUCTURE FIXES
   ======================================== */

/* Avatar Area: Centered + Position Relative für Badges */
.view-grid .speaker-card-avatar-area {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
}

.view-grid .speaker-avatar {
    width: 120px !important;
    height: 120px !important;
    margin: 0 !important;
}

.view-grid .speaker-avatar img {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 4px solid #fff !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
}

/* Award Badges über dem Avatar */
.view-grid .speaker-expertise-badges-overlay {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 10 !important;
}

.view-grid .award-badge-small {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #7c3aed !important;
    padding: 4px 10px !important;
    border-radius: 4px !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    display: inline-block !important;
}

/* Middle Content */
.view-grid .speaker-card-content-middle {
    flex-grow: 1 !important;
    padding: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    background: #fff !important;
}

.view-grid .middle-header {
    width: 100% !important;
    margin-bottom: 12px !important;
}

.view-grid .speaker-header-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 10px !important;
}

.view-grid .speaker-card-name {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
    text-align: left !important;
}

.view-grid .speaker-card-name a {
    color: #1f2937 !important;
    text-decoration: none !important;
}

.view-grid .speaker-card-name a:hover {
    color: #7c3aed !important;
}

.view-grid .speaker-location-badge {
    background: #f5f3ff !important;
    border-color: #ddd6fe !important;
    color: #6d28d9 !important;
}

.view-grid .speaker-skills-inline {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 4px !important;
}

.view-grid .upcoming-event-badge {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%) !important;
    color: #6d28d9 !important;
    padding: 4px 10px !important;
    border-radius: 4px !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.view-grid .upcoming-event-badge .dashicons {
    font-size: 14px !important;
    width: 14px !important;
    height: 14px !important;
}

.view-grid .speaker-card-position {
    font-size: 0.85rem !important;
    color: #6b7280 !important;
    text-align: center !important;
    margin-bottom: 10px !important;
}

.view-grid .content-separator {
    display: none !important; /* Separator nicht benötigt im Grid */
}

/* Bio - Begrenzt auf 3 Zeilen */
.view-grid .speaker-card-bio {
    margin-top: 8px !important;
    margin-bottom: auto !important;
}

.view-grid .speaker-card-bio p {
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
    color: #6b7280 !important;
    margin: 0 !important;
    white-space: normal !important;
    
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-align: center !important;
}

/* Actions Right im Grid: Horizontal unten */
.view-grid .speaker-card-actions-right {
    width: 100% !important;
    padding: 15px 20px !important;
    border-top: 1px solid #f3f4f6 !important;
    border-left: none !important;
    background: #fff !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
}

.view-grid .actions-top-group {
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 0 !important;
}

/* Social Icons horizontal */
.view-grid .speaker-social-grid {
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;
    margin: 0 !important;
}

.view-grid .speaker-social-grid a {
    width: 32px !important;
    height: 32px !important;
    background: #f3f4f6 !important;
    border-radius: 4px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #6b7280 !important;
    transition: all 0.2s ease !important;
}

.view-grid .speaker-social-grid a:hover {
    background: #7c3aed !important;
    color: #fff !important;
}

.view-grid .speaker-social-grid a .dashicons {
    font-size: 16px !important;
    width: 16px !important;
    height: 16px !important;
}

.view-grid .speaker-event-badge-right {
    margin: 0 !important;
}

.view-grid .event-count-badge {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%) !important;
    color: #6d28d9 !important;
    border-color: #ddd6fe !important;
}

/* Button Full Width */
.view-grid .actions-bottom {
    width: 100% !important;
}

.view-grid .speaker-card-cta-white {\n    width: 100% !important;\n    max-width: none !important;\n    padding: 12px 0 !important;\n    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%) !important;\n    color: #fff !important;\n    text-decoration: none !important;\n    border-radius: 0 0 5px 5px !important;\n    font-weight: 600 !important;\n    font-size: 0.9rem !important;\n    text-align: center !important;\n    transition: all 0.2s ease !important;\n    display: flex !important;\n    align-items: center !important;\n    justify-content: center !important;\n    gap: 4px !important;\n    box-shadow: none !important;\n}\n\n.view-grid .speaker-card-cta-white:hover {
    background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(124, 58, 237, 0.3) !important;
}

.view-grid .speaker-card-cta-white .dashicons {
    font-size: 16px !important;
    width: 16px !important;
    height: 16px !important;
}

/* ========================================
   VIEW SWITCHING - DISABLE TRANSITIONS
   ======================================== */

/* Verhindere Animationen beim Wechsel zwischen List/Grid */
.events-list,
.speakers-list {
    transition: none !important;
}

.events-list > *,
.speakers-list > * {
    transition: none !important;
}

/* Nur Hover-Effekte behalten, keine Layout-Transitions */
.events-list.view-grid article,
.view-grid .event-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.speakers-list.view-grid .speaker-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

/* List View: Keine Transitions */
.events-list.view-list article,
.view-list .event-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.speakers-list.view-list .speaker-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

/* Sofortiger Wechsel für Layout-Änderungen */
.view-grid .event-card-image-area,
.view-grid .event-card-content,
.view-grid .event-card-actions,
.view-grid .speaker-card-avatar-area,
.view-grid .speaker-card-content-middle,
.view-grid .speaker-card-actions-right {
    transition: none !important;
}

.view-list .event-card-image-area,
.view-list .event-card-content,
.view-list .event-card-actions,
.view-list .speaker-card-avatar-area,
.view-list .speaker-card-content-middle,
.view-list .speaker-card-actions-right {
    transition: none !important;
}

/* ========================================
   GRID VIEW - LAYOUT STABILIZATION & BADGE FIXES
   ======================================== */

/* Elemente, die nur in List-View sichtbar sein sollen */
.view-grid .event-badge--organizer {
    display: none !important; /* Organizer verstecken - nimmt zu viel Platz */
}

.view-grid .speaker-skills-inline {
    display: none !important; /* Skills nur in List-View */
}

.view-grid .speaker-event-badge-right {
    display: none !important; /* Event-Count nur in List-View */
}

/* Badge-Farben für Grid-View explizit definieren */
.view-grid .event-badge--price.price-type-free {
    background: linear-gradient(135deg, #15803d 0%, #166534 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
}

.view-grid .event-badge--price.price-type-paid {
    background: linear-gradient(135deg, #c2590f 0%, #8b390d 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
}

.view-grid .event-badge--price.price-type-donation {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%) !important;
    color: #92400e !important;
}

.view-grid .event-badge--format.format-type-online {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
}

.view-grid .event-badge--format.format-type-presence {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
}

.view-grid .event-badge--format.format-type-hybrid {
    background: linear-gradient(135deg, #d946ef 0%, #c026d3 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
}

.view-grid .event-badge--speakers {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.view-grid .event-badge--speakers .dashicons {
    color: #ffffff !important;
}

/* Speaker Award Badge Grid-Farben */
.view-grid .award-badge-small {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
    color: #78350f !important;
    font-weight: 700 !important;
}

/* Meta-Items begrenzen auf maximal 3 Einträge */
.view-grid .event-card-meta-list {
    max-height: 60px !important;
    overflow: hidden !important;
}

.view-grid .event-card-meta-list .meta-item:nth-child(n+4) {
    display: none !important; /* Nur 3 Meta-Items anzeigen */
}

/* Titel-Höhe begrenzen */
.view-grid .event-card-title,
.view-grid .speaker-card-name {
    max-height: 2.6em !important; /* Ca. 2 Zeilen */
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
}

/* Position/Firma begrenzen */
.view-grid .speaker-card-position {
    max-height: 1.3em !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
}

/* Location Badge kompakter */
.view-grid .speaker-location-badge {
    max-width: 120px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

/* Upcoming Event Badge styling */
.view-grid .upcoming-event-badge .dashicons {
    color: #6d28d9 !important;
}

/* Ensure consistent card heights - Nur für Events */
.events-list.view-grid article,
.events-list.view-grid .event-card {
    height: 375px !important;
}

/* Speaker Cards behalten ihre eigene Höhe von 350px */

/* Content areas should not overflow */
.events-list.view-grid .event-card-content {
    overflow: hidden !important;
}

.speakers-list.view-grid .speaker-card-content-middle {
    overflow: hidden !important;
}

/* Badge Row kompakt halten */
.view-grid .badge-row {
    flex-wrap: nowrap !important;
    overflow: hidden !important;
}

.view-grid .badge-row > * {
    flex-shrink: 1 !important;
    min-width: 0 !important;
}

/* ========================================
   SPEAKER & EVENT CARDS - EINFACHES GRID
   ======================================== */

/* SPEAKER GRID: Vertikaler Aufbau beibehalten */
.view-grid .speaker-card-avatar-area {
    padding: 20px !important;
}

.view-grid .speaker-card-content-middle {
    padding: 20px !important;
}

.view-grid .speaker-card-actions-right {
    padding: 0 !important;
    background: #fafafa !important;
    border-top: 1px solid #e5e7eb !important;
}

.view-grid .actions-top-group {
    padding: 15px 20px !important;
}

.view-grid .actions-bottom {
    padding: 0 20px 20px 20px !important;
}

.view-grid .speaker-card-cta-white {
    width: 100% !important;
    padding: 10px 16px !important;
}

/* EVENT GRID: Bild + Content + Button */
.view-grid .event-card-image-area {
    height: 160px !important;
    position: relative !important;
}

.view-grid .event-card-content {
    padding: 16px !important;
}

.view-grid .event-card-actions {
    padding: 0 16px 16px 16px !important;
    border-top: none !important;
}

.view-grid .event-card-cta {
    width: 100% !important;
    padding: 12px 0 !important;
    margin: 0 !important;
}
/* ========================================
   SPEAKER GRID VIEW - Expert-Card Style
   ======================================== */

/* Grid Layout - Fixe 3 Spalten */
.speaker-cards-grid,
.speakers-list.view-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    animation: fadeIn 0.5s ease;
    margin-bottom: 0;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Speaker Card - Übersicht (375px Höhe) */
.speaker-card--overview {
    height: 375px !important;
    max-height: 375px !important;
    min-height: 375px !important;
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%) !important;
    border: 1px solid rgba(139, 92, 246, 0.2) !important;
    border-radius: 5px !important;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.08) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    position: relative !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.speaker-card--overview:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.12);
}

/* Status Badges Links Oben */
.speaker-card-status-badges {
    position: absolute;
    top: 0;
    left: 16px;
    display: flex;
    gap: 4px;
    z-index: 2;
}

.speaker-card-corner-badge {
    position: absolute;
    top: 0;
    padding: 1px 10px;
    line-height: 13px;
    border-radius: 0 0 5px 5px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    background: #7c3aed;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-height: 17px;
    width: auto !important; /* Auto width */
    white-space: nowrap !important; /* Kein Zeilenumbruch */
}

.speaker-card-corner-badge span {
    color: #ffffff !important;
}

/* Badge Varianten */
.badge-award {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-color: rgba(251, 191, 36, 0.5);
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

/* Upcoming Event Badge in Grid Card */
.speaker-card--overview .upcoming-event-badge {
    position: absolute;
    top: 0;
    right: 16px;
    margin-right: 0;
    padding: 1px 10px;
    line-height: 13px;
    max-height: 17px;
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    color: #6d28d9;
    border: 1px solid #ddd6fe;
    border-radius: 0 0 5px 5px;
    font-size: 0.65rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.speaker-card--overview .upcoming-event-badge .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    color: #7c3aed;
}

/* Event Badge Rechts Oben */
.speaker-card-event-badge {
    top: 0;
    right: 16px !important;
    left: auto !important;
    background: #7c3aed !important;
    border-color: rgba(124, 58, 237, 0.4);
}

/* Card Header - Dunkler */
.speaker-card-top {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
    background: #ede9fe;
}

.speaker-card-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    background: #f3e8ff;
    flex-shrink: 0;
    position: relative;
    margin-top: 15px;
}

.speaker-card-avatar img {
    border-radius: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.speaker-avatar-placeholder {
    border-radius: 50%;
    overflow: hidden;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #ffffff;
}

.speaker-avatar-placeholder .dashicons {
    font-size: 36px;
    width: 36px;
    height: 36px;
}

/* Header Text */
.speaker-card-header-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    overflow: hidden;
}

.speaker-card-name {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    color: #1f2937;
    text-align: left;
}

.speaker-card-name a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.15s ease;
}

.speaker-card-name a:hover {
    color: #7c3aed;
}

.speaker-card-title {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

/* Meta Info Stack - Untereinander */
.speaker-card-info-stack {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
    min-width: 0;
    width: 100%;
}

.speaker-card-company-row,
.speaker-card-location-row {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.speaker-card-company-row span:last-child,
.speaker-card-location-row span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.speaker-card-company-row .dashicons,
.speaker-card-location-row .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.speaker-card-location {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: #6b7280;
}

.speaker-card-location .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.speaker-card-company {
    font-size: 0.85em;
    color: #64748b;
}

/* Expertise Section - Volle Breite */
.speaker-card-expertise-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    border-top: 1px solid rgba(139, 92, 246, 0.15);
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
    max-height: 45px;
    min-height: 40px;
    overflow: hidden;
}

.speaker-card-expertise-section .expertise-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #7c3aed;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.speaker-card-expertise-section .expertise-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6d28d9;
}

/* Card Body - Heller */
.speaker-card-body {
    padding: 6px 16px 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    overflow: hidden;
    background: #faf5ff;
}

.speaker-card-competencies {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.speaker-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.speaker-card-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #ffffff !important;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.2);
}

.speaker-card-tag-label {
    opacity: 0.9;
    font-size: 0.7rem;
}

/* Speaker Bio */
.speaker-card-bio {
    margin-top: 0;
    text-align: left;
}

.speaker-card-bio p {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.4;
    margin: 0;
    text-align: left;
}

/* Skills Grid */
.speaker-card-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.speaker-card-skills .skill-pill {
    padding: 4px 10px;
    background: #f3e8ff;
    color: #7c3aed;
    border: 1px solid #e9d5ff;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.15s ease;
}

.speaker-card-skills .skill-pill:hover {
    background: #e9d5ff;
    border-color: #d8b4fe;
}

/* Social Media - Dunkler als Body */
.speaker-card-social {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding: 12px 16px 8px 16px;
    border-top: 1px solid rgba(139, 92, 246, 0.15);
    justify-content: space-around;
    width: calc(100% + 32px);
    background: #f3e8ff;
    margin-left: -16px;
    margin-right: -16px;
    margin-bottom: -12px;
    box-sizing: border-box;
}

.speaker-card-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 5px;
    background: #f3e8ff;
    color: #7c3aed;
    transition: all 0.15s ease;
    text-decoration: none;
}

.speaker-card-social a:hover {
    background: #7c3aed;
    color: #ffffff;
    transform: translateY(-2px);
}

.speaker-card-social a.social-disabled {
    opacity: 0.3;
    pointer-events: none;
}

.speaker-card-social .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* CTA Button */
.speaker-card-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-align: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 0 0 5px 5px;
    transition: all 0.15s ease;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.speaker-card-cta .cta-arrow {
    font-size: 1.2em;
    line-height: 1;
}

.speaker-card-cta:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    transform: translateY(-2px);
}

/* Archive Wrapper */
.speaker-archive-wrapper {
    margin-top: 0;
    margin-bottom: 50px;
    padding: 0;
}

/* Pagination */
.speaker-pagination {
    margin-top: 40px;
    text-align: center;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: #f9fafb;
    border-radius: 16px;
    margin-top: 24px;
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.no-results h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.no-results p {
    color: #6b7280;
    margin-bottom: 24px;
}

.btn-reset {
    display: inline-block;
    padding: 12px 24px;
    background: #7c3aed;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.15s ease;
}

.btn-reset:hover {
    background: #6d28d9;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1200px) {
    .speaker-cards-grid,
    .speakers-list.view-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .speaker-cards-grid,
    .speakers-list.view-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .speaker-card--overview {
        height: auto;
        max-height: none;
    }
}

/* ========================================
   EVENT CARD - GRID VIEW (Blautöne)
   ======================================== */

/* Event Card - Overview Grid (Feste 375px Höhe) */
.event-card--overview {
    height: 375px !important;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
    border: 1px solid rgba(59, 130, 246, 0.2) !important;
    border-radius: 5px !important;
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.08) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    position: relative !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.event-card--overview:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(30, 64, 175, 0.12);
}

/* Status Badges Links Oben */
.event-card-status-badges {
    position: absolute;
    top: 0;
    left: 16px;
    display: flex;
    gap: 4px;
    z-index: 2;
}

.event-card-corner-badge {
    position: absolute;
    top: 0;
    padding: 1px 10px;
    line-height: 13px;
    border-radius: 0 0 5px 5px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    background: #1e40af;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-height: 17px;
    width: auto !important;
    white-space: nowrap !important;
}

.event-card-corner-badge span {
    color: #ffffff !important;
}

/* Badge Varianten für Events */
.badge-price.price-type-free {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: rgba(52, 211, 153, 0.5);
    box-shadow: 0 2px 8px rgba(52, 211, 153, 0.3);
}

.badge-price.price-type-paid {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-color: rgba(251, 191, 36, 0.5);
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

.badge-price.price-type-donation {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

/* Format Badge Rechts Oben */
.event-card--overview .event-format-badge {
    position: absolute;
    top: 0;
    right: 16px;
    margin-right: 0;
    padding: 1px 10px;
    line-height: 13px;
    max-height: 17px;
    background: linear-gradient(135deg, #bfdbfe 0%, #93c5fd 100%);
    color: #1e40af;
    border: 1px solid #93c5fd;
    border-radius: 0 0 5px 5px;
    font-size: 0.65rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.event-format-badge.format-type-online {
    background: linear-gradient(135deg, #bfdbfe 0%, #93c5fd 100%);
    color: #1e40af;
}

.event-format-badge.format-type-presence {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

.event-format-badge.format-type-hybrid {
    background: linear-gradient(135deg, #e9d5ff 0%, #d8b4fe 100%);
    color: #6b21a8;
}

/* Card Header - Event Top */
.event-card-top {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.15);
    background: #bfdbfe;
}

.event-card-image {
    width: 72px;
    height: 72px;
    border-radius: 5px;
    overflow: hidden;
    background: #dbeafe;
    flex-shrink: 0;
    position: relative;
    margin-top: 15px;
}

.event-card-image img {
    border-radius: 5px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Header Text */
.event-card-header-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    overflow: hidden;
}

.event-card-name {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    color: #1f2937;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.event-card-name a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.15s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.event-card-name a:hover {
    color: #1e40af;
}

.event-card-date {
    font-size: 0.85rem;
    color: #1e40af;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

.event-card-date .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* Meta Info Stack */
.event-card-info-stack {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
    min-width: 0;
    width: 100%;
}

.event-card-location-row,
.event-card-audience-row {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.event-card-location-row span:last-child,
.event-card-audience-row span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.event-card-location-row .dashicons,
.event-card-audience-row .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* Speaker Section - Volle Breite */
.event-card-speaker-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #bfdbfe 0%, #93c5fd 100%);
    border-top: 1px solid rgba(59, 130, 246, 0.15);
    border-bottom: 1px solid rgba(59, 130, 246, 0.15);
    max-height: 45px;
    min-height: 40px;
    overflow: hidden;
}

.event-card-speaker-section .speaker-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #1e40af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.event-card-speaker-section .speaker-label .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* Card Body */
.event-card-body {
    padding: 6px 16px 6px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    overflow: hidden;
    background: #eff6ff;
}

/* Event Description */
.event-card-description {
    margin-top: 0;
    text-align: left;
}

.event-card-description p {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.4;
    margin: 0;
    text-align: left;
}

/* Organizer */
.event-card-organizer {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    margin-top: auto;
    padding-top: 4px;
    border-top: 1px solid rgba(59, 130, 246, 0.15);
}

.event-card-organizer .organizer-label {
    font-weight: 700;
    color: #1e40af;
    opacity: 0.8;
}

.event-card-organizer .organizer-value {
    font-weight: 600;
    color: #1e40af;
}

/* CTA Button */
.event-card-cta {
    display: block;
    text-align: center;
    padding: 12px 0;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 0 0 5px 5px;
    transition: all 0.15s ease;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.event-card-cta:hover {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    transform: translateY(-2px);
}

/* View Toggle für Events */
.events-list.view-list .event-card--overview {
    display: none !important;
}

.events-list.view-grid .event-card--overview {
    display: flex !important;
}

.events-list.view-grid .event-card--list {
    display: none !important;
}

.events-list.view-list .event-card--list {
    display: grid !important;
}

/* Grid Layout */
.events-list.view-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 24px;
}

/* Responsive */
@media (max-width: 1200px) {
    .events-list.view-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .events-list.view-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .event-card--overview {
        height: auto;
        max-height: none;
    }
}

/* ========================================
   DARK MODE: Search/Filter Bar
   ======================================== */
body.dark-mode .archive-filter-bar {
    background: #1e293b;
    border-color: rgba(255,255,255,0.08);
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

body.dark-mode .archive-filter-bar .search-field {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}

body.dark-mode .archive-filter-bar .search-field::placeholder {
    color: #64748b;
}

body.dark-mode .archive-filter-bar .search-field:focus {
    border-color: #475569;
    box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.2);
}

body.dark-mode .archive-filter-bar .filter-select {
    background: #0f172a;
    border-color: #334155;
    color: #cbd5e1;
}

body.dark-mode .archive-filter-bar .filter-button {
    background: #475569;
    color: #f1f5f9;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

body.dark-mode .archive-filter-bar .filter-button:hover {
    background: #64748b;
}

body.dark-mode .archive-filter-bar .btn-toggle-filters {
    background: #1e293b;
    color: #cbd5e1;
    border-color: #334155;
}

body.dark-mode .archive-filter-bar .btn-toggle-filters:hover,
body.dark-mode .archive-filter-bar .btn-toggle-filters.active {
    background: #334155;
    color: #f1f5f9;
}

body.dark-mode .archive-filter-bar .view-mode-toggle {
    background: #0f172a;
    border-color: #334155;
}

body.dark-mode .archive-filter-bar .view-mode-toggle button {
    color: #94a3b8;
    border-color: #334155;
}

body.dark-mode .archive-filter-bar .view-mode-toggle button:hover {
    background: #1e293b;
    color: #e2e8f0;
}

body.dark-mode .archive-filter-bar .view-mode-toggle button.active {
    background: #1e293b;
    color: #818cf8;
}

body.dark-mode .archive-filter-bar .search-input-wrapper .dashicons {
    color: #64748b;
}

body.dark-mode .events-archive-container {
    color: #e2e8f0;
}
