/* Enhanced Timetable Styles - VFL Wolfsburg */

/* Modern Timetable - shadcn style */
.yt-timetable {
    margin: 24px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.yt-timetable-wrapper {
    background: white;
    border: 1px solid hsl(108deg 33.98% 20.2% / 0%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

/* Modern Toggle Button */
.yt-timetable-toggle {
    width: 100%;
    background: linear-gradient(90deg, #40a639, #1b5125);
    color: white;
    border: none;
    padding: 20px 24px;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
}

.yt-timetable-toggle:hover {
    background: #359330;
}

.yt-timetable-toggle.collapsed {
    background: #1b5125;
}

.yt-timetable-toggle .yt-toggle-icon {
    font-size: 20px;
    transition: transform 0.2s ease;
}

.yt-timetable-toggle.collapsed .yt-toggle-icon {
    transform: rotate(180deg);
}

/* Timetable Content */
.yt-timetable-content {
    padding: 16px;
    background: white;
}

/* Modern Calendar Grid */
.yt-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: hsl(0, 0%, 93%);
    border: 1px solid hsl(108deg 33.98% 20.2% / 0%);
    border-radius: 8px;
    overflow: hidden;
}

/* Day Headers */
.yt-day-header {
    background: hsl(0, 0%, 98%);
    color: hsl(0, 0%, 30%);
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* Day Columns */
.yt-day-column {
    background: white;
    padding: 12px 8px;
    min-height: 100px;
}

/* Calendar Events */
.yt-calendar-event {
    background: #40a639;
    color: white;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.yt-calendar-event:last-child {
    margin-bottom: 0;
}

.yt-calendar-event:hover {
    background: #359330;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.yt-calendar-event:active {
    transform: translateY(0);
}

.yt-event-time {
    font-weight: 600;
    font-size: 12px;
    margin-bottom: 4px;
    opacity: 0.95;
}

.yt-event-label {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    opacity: 0.9;
}

/* Custom Sections - Modern shadcn style */
.yt-custom-section {
    background: white;
    border: 1px solid hsl(0, 0%, 90%);
    border-radius: 12px;
    padding: 32px;
    margin: 32px 0;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

/* GS Template - Full width sections */
.yt-custom-section-gs {
    padding: 0 !important;
    margin: 32px 0 0 0 !important;
    border: none !important;
    box-shadow: none !important;
    /* Keep rounded borders from parent .yt-custom-section */
    border-radius: 12px !important;
    overflow: hidden; /* Ensure child elements respect border-radius */
}

/* Accordion items within custom sections */
.yt-accordion-item {
    margin: 16px 0;
    border: 1px solid hsl(0, 0%, 90%);
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.yt-accordion-header {
    background: #40a639;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.yt-accordion-header:hover {
    background: #359630;
}

.yt-accordion-header.active {
    background: #2d7a26;
}

.yt-accordion-title {
    color: white !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 18px;
    font-weight: 600;
}

.yt-accordion-header .yt-card-toggle-icon {
    color: white;
    font-size: 16px;
    transition: transform 0.2s ease;
}

.yt-accordion-header.active .yt-card-toggle-icon {
    transform: rotate(180deg);
}

.yt-accordion-content {
    padding: 20px;
    background: white;
}

.yt-accordion-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 16px auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.yt-accordion-content .wp-caption {
    max-width: 100%;
    margin: 16px auto;
}

.yt-accordion-content .wp-caption-text {
    font-size: 13px;
    color: hsl(0, 0%, 50%);
    text-align: center;
    margin-top: 8px;
    font-style: italic;
}

.yt-custom-section-title {
    font-size: 24px;
    font-weight: 700;
    color: hsl(0, 0%, 10%);
    margin: 0 0 24px 0;
    padding-bottom: 16px;
    border-bottom: 1px solid hsl(0, 0%, 93%);
}

.yt-custom-section-content {
    font-size: 15px;
    line-height: 1.7;
    color: hsl(0, 0%, 20%);
}

.yt-custom-section-content p {
    margin: 0 0 16px 0;
}

.yt-custom-section-content p:last-child {
    margin-bottom: 0;
}

.yt-custom-section-content ul,
.yt-custom-section-content ol {
    margin: 0 0 16px 0;
    padding-left: 24px;
}

.yt-custom-section-content li {
    margin-bottom: 8px;
}

.yt-custom-section-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: hsl(0, 0%, 15%);
    margin: 24px 0 12px 0;
}

.yt-custom-section-content h5 {
    font-size: 16px;
    font-weight: 600;
    color: hsl(0, 0%, 20%);
    margin: 20px 0 10px 0;
}

/* Responsive images in custom sections */
.yt-custom-section-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 16px auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.yt-custom-section-content img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* WordPress caption styling */
.yt-custom-section-content .wp-caption {
    max-width: 100%;
    margin: 16px auto;
}

.yt-custom-section-content .wp-caption-text {
    font-size: 13px;
    color: hsl(0, 0%, 50%);
    text-align: center;
    margin-top: 8px;
    font-style: italic;
}

/* Hero-style Custom Sections */
.yt-custom-section-hero {
    padding: 0 !important;
    overflow: hidden;
}

.yt-custom-section-hero-banner {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.yt-custom-section-hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.005) 0%, rgba(0, 0, 0, 0.75) 65%);
    pointer-events: none;
    z-index: 1;
}

.yt-custom-section-hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.yt-custom-section-hero-title {
    color: white !important;
    font-size: 3rem;
    margin: 0 0 0.5rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    font-family: 'Rucksack Black', 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: normal;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
}

.yt-custom-section-hero-subtitle {
    color: white !important;
    font-size: 1.2rem;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    font-weight: 400;
    line-height: 1.4;
    opacity: 0.95;
    text-align: left;
}

.yt-custom-section-hero .yt-custom-section-content,
.yt-custom-section-gs .yt-custom-section-content {
    padding: 32px;
}

/* Section sportbetrieb also needs padding in GS template */
.yt-custom-section-gs .yt-section-sportbetrieb {
    padding: 32px 32px 32px 32px;
}

/* Responsive hero sections */
@media (max-width: 768px) {
    .yt-custom-section-hero-banner {
        padding: 2rem 0;
        min-height: 300px;
    }

    .yt-custom-section-hero-title {
        font-size: 2rem;
    }

    .yt-custom-section-hero-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .yt-custom-section-hero-banner {
        padding: 1.5rem 0;
        min-height: 250px;
    }

    .yt-custom-section-hero-title {
        font-size: 1.5rem;
    }

    .yt-custom-section-hero-subtitle {
        font-size: 0.9rem;
    }
}

/* Responsive Timetable */
@media (max-width: 768px) {
    .yt-calendar-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 8px;
    }

    .yt-day-header {
        padding: 10px 6px;
        font-size: 12px;
    }

    .yt-day-column {
        padding: 10px 6px;
    }

    .yt-calendar-event {
        padding: 8px;
    }

    .yt-timetable-toggle {
        padding: 16px 20px;
        font-size: 16px;
    }
}

.yt-timetable-grid {
    display: block;
    width: 100%;
}

.yt-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    background: white;
}

.yt-table-grid {
    display: table;
    table-layout: fixed;
}

/* Trainer Slot Styles */
.yt-tt-trainer-slot {
    background: var(--dark-gray) !important;
    color: white !important;
}

.yt-tt-trainer-slot .yt-tt-time {
    color: white !important;
    font-weight: 600;
}

.yt-tt-trainer {
    font-size: 12px;
    color: #ffffff;
    margin: 2px 0;
    font-weight: 500;
}

.yt-tt-meta {
    font-size: 10px;
    color: #ccc;
    margin-top: 4px;
    line-height: 1.2;
}

/* Enhanced Trainer Display */
.yt-trainer-schedules {
    margin-top: 15px;
}

.yt-schedule-item {
    background: #f8f9fa;
    border-left: 4px solid #40a639;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 0 6px 6px 0;
}

.yt-schedule-time {
    font-size: 14px;
    margin-bottom: 6px;
    color: #1b5125;
}

.yt-schedule-desc {
    font-size: 13px;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
}

.yt-schedule-meta {
    font-size: 12px;
    color: #666;
    font-style: italic;
}

.yt-trainer-name {
    font-size: 16px;
    font-weight: 600;
    color: #1b5125;
    margin-top: 10px;
}

/* Header styling to match your design */
.yt-table thead tr {
    background: #40a639; /* Your brand green */
    color: white;
}

.yt-table thead th {
    padding: 16px 12px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    position: relative;
}

/* Week header (like "SEPTEMBER - Woche 37") */
.yt-timetable-header {
    background: var(--light-gray);
    color: white;
    text-align: center;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* Body cells */
.yt-table tbody td {
    padding: 0;
    border: 1px solid #e9ecef;
    vertical-align: top;
    background: white;
    position: relative;
    height: auto;
}

/* Time slot styling */
.yt-tt-time {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: white;
    background: #6c757d;
    padding: 4px 8px;
    margin: 4px;
    border-radius: 4px;
    text-align: center;
}

.yt-tt-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: white;
    padding: 6px 8px;
    margin: 4px;
    border-radius: 6px;
    text-align: center;
    line-height: 1.3;
}

/* Different colors for different activities */
.yt-tt-label:nth-child(odd) {
    background: #40a639; /* Your brand green */
}

.yt-tt-label:nth-child(even) {
    background: #1b5125; /* Your dark green */
}

/* Special styling for time ranges */
.yt-tt-slot {
    margin: 4px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Day headers with dates */
.yt-table thead th .day-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
}

.yt-table thead th .day-date {
    display: block;
    font-size: 18px;
    font-weight: 700;
    margin-top: 2px;
}

/* Empty cells */
.yt-table tbody td:empty::after { 
    height: 20px; 
}

/* Mobile responsive */
@media (max-width: 768px) {
    .yt-timetable {
        margin: 15px -15px;
        border-radius: 0;
    }
    
    .yt-table thead th {
        padding: 12px 6px;
        font-size: 12px;
    }
    
    .yt-table thead th .day-date {
        font-size: 16px;
    }
    
    .yt-tt-time {
        font-size: 11px;
        padding: 3px 6px;
    }
    
    .yt-tt-label {
        font-size: 12px;
        padding: 5px 6px;
    }
}

/* Navigation arrows (if you want to add week navigation) */
.yt-timetable-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    background: #40a639;
}

.yt-nav-arrow {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.yt-nav-arrow:hover {
    background: rgba(255,255,255,0.1);
}

/* Alternative: List view improvements */
.yt-timetable:not(.yt-timetable-grid) .yt-table {
    border-radius: 8px;
    overflow: hidden;
}

.yt-timetable:not(.yt-timetable-grid) .yt-table thead th {
    background: #40a639;
    color: white;
    padding: 16px;
    text-align: left;
}

.yt-timetable:not(.yt-timetable-grid) .yt-table tbody tr {
    border-bottom: 1px solid #e9ecef;
}

.yt-timetable:not(.yt-timetable-grid) .yt-table tbody tr:last-child {
    border-bottom: none;
}

.yt-timetable:not(.yt-timetable-grid) .yt-table tbody td {
    padding: 16px;
    border: none;
    min-height: auto;
}

.yt-timetable:not(.yt-timetable-grid) .yt-table tbody td:first-child {
    font-weight: 600;
    color: #40a639;
    width: 120px;
}

/* === Stack time (line 1) + label (line 2) inside one green pill === */
.yt-timetable .yt-tt-slot{
    display: block !important;            /* stack contents */
    background: var(--dark-gray);         /* brand green */
    color: #fff;
    border-radius: 10px;
    padding: 30px 10px;
    margin: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,.12);
  }
  
  .yt-timetable .yt-tt-slot .yt-tt-time,
  .yt-timetable .yt-tt-slot .yt-tt-label{
    display: block !important;            /* force new line */
    background: transparent !important;   /* remove old pill colors */
    color: inherit;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center;                   /* change to left if you prefer */
    line-height: 1.25;
  }
  
  .yt-timetable .yt-tt-slot .yt-tt-time{ font-weight: 700; }
  .yt-timetable .yt-tt-slot .yt-tt-label{ font-weight: 500; margin-top: 2px !important; }
  
  /* Disable the old alternating label colors */
  .yt-timetable .yt-tt-slot .yt-tt-label:nth-child(odd),
  .yt-timetable .yt-tt-slot .yt-tt-label:nth-child(even){
    background: transparent !important;
  }

/* === SHARED CARD STYLES FOR TRAINERS AND EMPLOYEES === */
.yt-trainers,
.yt-employees,
.yt-freetext {
    margin: 30px 0;
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.yt-trainers h3,
.yt-employees h3,
.yt-trainers-list h3,
.yt-freetext h3 {
    color: #40a639;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #40a639;
    font-family: 'Rucksack Black', 'Rubik', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Grid layout for both sections */
.yt-trainer-list,
.yt-emp-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
    list-style: none;
    padding: 0;
}

/* Card styles for both trainers and employees */
.yt-trainer-item,
.yt-emp-item {
    width: 360px;
    background: white;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.yt-trainer-item::before,
.yt-emp-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #40a639, #1b5125);
}

.yt-trainer-item:hover,
.yt-emp-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #40a639;
}

/* Trainer specific styles - now matching employee layout exactly */
.yt-trainer-item {
    text-align: left;
}

.yt-trainer-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.yt-trainer-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #40a639, #1b5125);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: 600;
    margin-right: 15px;
    flex-shrink: 0;
    overflow: hidden;
}

.yt-trainer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.yt-trainer-info h4 {
    margin: 0 0 5px 0;
    font-size: 20px;
    font-weight: 600;
    color: #1b5125;
    font-family: 'Rucksack Black', 'Rubik', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.yt-trainer-role {
    color: #6c757d;
    font-style: italic;
    font-size: 14px;
    margin: 0;
}

.yt-trainer-contact {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.yt-trainer-contact-item {
    display: flex;
    align-items: center;
    margin: 8px 0;
    font-size: 14px;
    color: #495057;
}

.yt-trainer-contact-item .contact-icon {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    color: #40a639;
    display: flex;
    align-items: center;
    justify-content: center;
}

.yt-trainer-contact-item a {
    color: #40a639;
    text-decoration: none;
    transition: color 0.2s ease;
}

.yt-trainer-contact-item a:hover {
    color: #1b5125;
    text-decoration: underline;
}

/* Employee specific styles */
.yt-emp-item {
    text-align: left;
}

.yt-emp-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.yt-emp-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #40a639, #1b5125);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: 600;
    margin-right: 15px;
    flex-shrink: 0;
    overflow: hidden;
}

.yt-emp-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.yt-emp-info h4 {
    margin: 0 0 5px 0;
    font-size: 20px;
    font-weight: 600;
    color: #1b5125;
    font-family: 'Rucksack Black', 'Rubik', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.yt-emp-role {
    color: #6c757d;
    font-style: italic;
    font-size: 14px;
    margin: 0;
}

.yt-emp-contact {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.yt-emp-contact-item {
    display: flex;
    align-items: center;
    margin: 8px 0;
    font-size: 14px;
    color: #495057;
}

.yt-emp-contact-item .contact-icon {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    color: #40a639;
    display: flex;
    align-items: center;
    justify-content: center;
}

.yt-emp-contact-item a {
    color: #40a639;
    text-decoration: none;
    transition: color 0.2s ease;
}

.yt-emp-contact-item a:hover {
    color: #1b5125;
    text-decoration: underline;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .yt-trainer-list,
    .yt-emp-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .yt-trainer-item,
    .yt-emp-item {
        padding: 20px;
    }

    .yt-trainer-avatar,
    .yt-emp-avatar {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .yt-trainer-info h4,
    .yt-emp-info h4 {
        font-size: 18px;
    }
    
    .yt-trainers h3,
    .yt-employees h3,
    .yt-trainers-list h3,
    .yt-freetext h3 {
        font-size: 20px;
    }
    
    .yt-emp-info h4 {
        font-size: 18px;
    }
}

/* Admin styles for trainer and employee management */
.trainer-image-preview,
.emp-image-preview {
    border: 2px dashed #ddd;
    border-radius: 8px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    color: #666;
    font-style: italic;
}

.trainer-image-preview img,
.emp-image-preview img {
    border-radius: 4px;
}
  
/* Sportbetrieb (Training Schedules) Display - Modern shadcn-style */
.yt-sportbetrieb-wrapper {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    padding: 0;
    margin-top: 24px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.yt-sportbetrieb-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.yt-sportbetrieb-item {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid hsl(0, 0%, 93%) !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
    box-shadow: none !important;
}

.yt-sportbetrieb-item:last-child {
    border-bottom: none !important;
}

.yt-sportbetrieb-item:first-child .yt-day-header-big {
    border-radius: 12px 12px 0 0;
}

.yt-sportbetrieb-item:last-child:not(.expanded) .yt-day-header-big {
    border-radius: 0 0 12px 12px;
}

/* Modern card header */
.yt-day-header-big {
    background: #40a639 !important;
    color: white !important;
    padding: 20px 24px !important;
    border-radius: 0 !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.yt-day-header-big:hover {
    background: #359330 !important;
}

.yt-day-header-big.active {
    background: linear-gradient(90deg, #40a639, #1b5125) !important;
}

/* Card content */
.yt-card-content {
    padding: 24px !important;
    background: white;
    border: none !important;
    border-radius: 0 !important;
}

/* Modern detail grid instead of table */
.yt-sportbetrieb-table {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
    border: none;
}

.yt-sportbetrieb-table tr {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 16px;
    align-items: start;
}

.yt-sportbetrieb-table td {
    padding: 0;
    border: none;
}

.yt-sportbetrieb-table td:first-child {
    font-size: 13px;
    font-weight: 500;
    color: hsl(0, 0%, 45%);
    text-transform: uppercase;
    letter-spacing: 0.025em;
    padding-right: 0;
}

.yt-sportbetrieb-table td:last-child {
    font-size: 14px;
    color: hsl(0, 0%, 10%);
    line-height: 1.5;
}

/* Description section */
.yt-sportbetrieb-description {
    margin-bottom: 24px;
    padding-top: 12px;
    border-top: 1px solid hsl(0, 0%, 93%);
}

.yt-sportbetrieb-description h4 {
    margin: 0 0 12px 0;
    font-size: 13px;
    font-weight: 500;
    color: hsl(0, 0%, 45%);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.yt-sportbetrieb-description p {
    margin: 0;
    color: hsl(0, 0%, 10%);
    line-height: 1.6;
    font-size: 14px;
}

/* Trainer section */
.yt-sportbetrieb-trainer {
    padding-top: 20px;
    border-top: 1px solid hsl(0, 0%, 93%);
}

.yt-sportbetrieb-trainer h4 {
    margin: 0 0 16px 0;
    font-size: 13px;
    font-weight: 500;
    color: hsl(0, 0%, 45%);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.yt-trainer-info-simple {
    display: flex;
    align-items: center;
    gap: 10px;
}

.yt-trainer-avatar-simple {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #40a639, #1b5125);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 16px;
}

.yt-trainer-name-simple {
    color: #212529;
    font-weight: 500;
}


/* Modern Horizontal Trainers Layout */
.yt-trainers-horizontal {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.yt-trainer-item-horizontal {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.yt-trainer-avatar-horizontal {
    width: 64px;
    height: 64px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #40a639, #1b5125);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(64, 166, 57, 0.25);
    transition: all 0.2s ease;
}

.yt-trainer-item-horizontal:hover .yt-trainer-avatar-horizontal {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(64, 166, 57, 0.3);
}

.yt-trainer-avatar-horizontal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yt-trainer-name-horizontal {
    color: hsl(0, 0%, 10%);
    font-weight: 500;
    font-size: 14px;
    max-width: 80px;
    word-wrap: break-word;
    line-height: 1.2;
}


/* =============================================================
   DARK MODE SUPPORT - VFL WOLFSBURG BRAND COMPLIANT
   ============================================================= */

@media (prefers-color-scheme: dark) {
    /* Custom Sections Dark Mode */
    .yt-custom-section {
        background: hsl(120, 60%, 12%) !important;
        border: 1px solid hsl(120, 40%, 25%) !important;
    }

    .yt-custom-section-title {
        color: hsl(0, 0%, 95%);
        border-bottom-color: hsl(120, 40%, 20%);
    }

    .yt-custom-section-content {
        color: hsl(0, 0%, 85%);
    }

    .yt-custom-section-content h3 {
        color: #40a639 !important; /* VfL light green */
    }

    .yt-custom-section-content h4,
    .yt-custom-section-content h5 {
        color: hsl(0, 0%, 90%);
    }

    .yt-custom-section-content .wp-caption-text {
        color: hsl(0, 0%, 65%);
    }

    /* Hero sections dark mode - keep gradient overlay */
    .yt-custom-section-hero {
        background: transparent !important;
    }

    .yt-custom-section-hero .yt-custom-section-content {
        background: hsl(120, 60%, 12%) !important;
        border-top: 1px solid hsl(120, 40%, 25%);
    }

    /* Accordion items dark mode */
    .yt-accordion-item {
        border-color: hsl(120, 40%, 25%);
        background: hsl(120, 60%, 12%);
    }

    .yt-accordion-content {
        background: hsl(120, 60%, 12%) !important;
        color: hsl(0, 0%, 85%);
    }

    .yt-accordion-content h3 {
        color: #40a639 !important;
    }

    .yt-accordion-content h4,
    .yt-accordion-content h5 {
        color: hsl(0, 0%, 90%);
    }

    /* GS Template - h3 headings in timetables/sportbetrieb sections */
    .yt-custom-section-gs h3,
    .yt-section-sportbetrieb h3 {
        color: white !important;
    }

    .yt-accordion-content .wp-caption-text {
        color: hsl(0, 0%, 65%);
    }

    /* Timetable Dark Mode */
    .yt-timetable-wrapper {
        background: hsl(120, 60%, 12%) !important;
        box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 1px 2px 0 rgba(0, 0, 0, 0.2);
    }

    .yt-timetable-content {
        background: hsl(120, 60%, 12%) !important;
    }

    .yt-calendar-grid {
        background: hsl(120, 40%, 20%);
    }

    .yt-day-header {
        background: hsl(120, 50%, 15%);
        color: hsl(40, 60%, 70%);
    }

    .yt-day-column {
        background: hsl(120, 60%, 12%);
    }

    /* Sportbetrieb Wrapper Dark Mode */
    .yt-sportbetrieb-wrapper {
        background: hsl(120, 60%, 12%) !important;
        box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 1px 2px 0 rgba(0, 0, 0, 0.2);
    }

    /* Sportbetrieb Item Dark Mode */
    .yt-sportbetrieb-item {
        border-bottom: 1px solid hsl(120, 40%, 20%) !important;
    }

    .yt-sportbetrieb-item:last-child {
        border-bottom: none !important;
    }

    /* Card content */
    .yt-card-content {
        background: hsl(120, 60%, 12%) !important;
    }

    /* Header hover */
    .yt-day-header-big:hover {
        background: #359330 !important;
    }

    .yt-day-header-big.active {
        background: linear-gradient(90deg, #40a639, #1b5125) !important;
    }

    /* Table styling in dark mode */
    .yt-sportbetrieb-table td:first-child {
        color: hsl(40, 60%, 70%) !important;
    }

    .yt-sportbetrieb-table td:last-child {
        color: hsl(0, 0%, 95%) !important;
    }

    /* Description sections */
    .yt-sportbetrieb-description {
        border-top: 1px solid hsl(120, 40%, 20%);
    }

    .yt-sportbetrieb-description h4 {
        color: hsl(40, 60%, 70%) !important;
    }

    .yt-sportbetrieb-description p {
        color: hsl(0, 0%, 95%) !important;
    }

    /* Trainer section */
    .yt-sportbetrieb-trainer {
        border-top: 1px solid hsl(120, 40%, 20%);
    }

    .yt-sportbetrieb-trainer h4 {
        color: hsl(40, 60%, 70%) !important;
    }

    /* Trainer names */
    .yt-trainer-name-simple,
    .yt-trainer-name-horizontal {
        color: hsl(0, 0%, 95%) !important;
    }
    
    /* Keep trainer avatars with VfL brand colors - they look good in both modes */
    .yt-trainer-avatar-simple,
    .yt-trainer-avatar-horizontal {
        background: linear-gradient(135deg, #40a639, #1b5125) !important;
        color: white !important;
    }

    /* Links headlines dark mode */
    .yt-links-headline {
        color: hsl(0, 0%, 95%) !important;
    }

    /* Trainer and Employee Cards Dark Mode */
    .yt-trainer-item,
    .yt-emp-item {
        background: hsl(120, 60%, 12%) !important;
        border-color: hsl(120, 40%, 25%) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .yt-trainer-item:hover,
    .yt-emp-item:hover {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
        border-color: #40a639 !important;
    }

    .yt-trainer-info h4,
    .yt-emp-info h4 {
        color: hsl(0, 0%, 95%) !important;
    }

    .yt-trainer-role,
    .yt-emp-role {
        color: hsl(0, 0%, 75%) !important;
    }

    .yt-trainer-contact,
    .yt-emp-contact {
        border-top-color: hsl(120, 40%, 25%) !important;
    }

    .yt-trainer-contact-item,
    .yt-emp-contact-item {
        color: hsl(0, 0%, 85%) !important;
    }

    .yt-trainer-contact-item a,
    .yt-emp-contact-item a {
        color: #40a639 !important;
    }

    .yt-trainer-contact-item a:hover,
    .yt-emp-contact-item a:hover {
        color: #5bc252 !important;
    }
}

/* Force dark mode styles (for systems that might not detect dark mode preference correctly) */
[data-theme="dark"] .yt-custom-section,
.dark-mode .yt-custom-section {
    background: hsl(120, 60%, 12%) !important;
    border: 1px solid hsl(120, 40%, 25%) !important;
}

[data-theme="dark"] .yt-custom-section-title,
.dark-mode .yt-custom-section-title {
    color: hsl(0, 0%, 95%);
    border-bottom-color: hsl(120, 40%, 20%);
}

[data-theme="dark"] .yt-custom-section-content,
.dark-mode .yt-custom-section-content {
    color: hsl(0, 0%, 85%);
}

[data-theme="dark"] .yt-custom-section-content h3,
.dark-mode .yt-custom-section-content h3 {
    color: #40a639 !important; /* VfL light green */
}

[data-theme="dark"] .yt-custom-section-content h4,
.dark-mode .yt-custom-section-content h4,
[data-theme="dark"] .yt-custom-section-content h5,
.dark-mode .yt-custom-section-content h5 {
    color: hsl(0, 0%, 90%);
}

[data-theme="dark"] .yt-custom-section-content .wp-caption-text,
.dark-mode .yt-custom-section-content .wp-caption-text {
    color: hsl(0, 0%, 65%);
}

/* Hero sections dark mode fallback */
[data-theme="dark"] .yt-custom-section-hero,
.dark-mode .yt-custom-section-hero {
    background: transparent !important;
    border: none !important;
}

[data-theme="dark"] .yt-custom-section-hero .yt-custom-section-content,
.dark-mode .yt-custom-section-hero .yt-custom-section-content {
    background: hsl(120, 60%, 12%) !important;
    border-top: 1px solid hsl(120, 40%, 25%);
}

/* Accordion items dark mode fallback */
[data-theme="dark"] .yt-accordion-item,
.dark-mode .yt-accordion-item {
    border-color: hsl(120, 40%, 25%);
    background: hsl(120, 60%, 12%);
}

[data-theme="dark"] .yt-accordion-content,
.dark-mode .yt-accordion-content {
    background: hsl(120, 60%, 12%) !important;
    color: hsl(0, 0%, 85%);
}

[data-theme="dark"] .yt-accordion-content h3,
.dark-mode .yt-accordion-content h3 {
    color: #40a639 !important;
}

[data-theme="dark"] .yt-accordion-content h4,
.dark-mode .yt-accordion-content h4,
[data-theme="dark"] .yt-accordion-content h5,
.dark-mode .yt-accordion-content h5 {
    color: hsl(0, 0%, 90%);
}

/* GS Template - h3 headings in timetables/sportbetrieb sections (Force) */
[data-theme="dark"] .yt-custom-section-gs h3,
.dark-mode .yt-custom-section-gs h3,
[data-theme="dark"] .yt-section-sportbetrieb h3,
.dark-mode .yt-section-sportbetrieb h3 {
    color: white !important;
}

[data-theme="dark"] .yt-accordion-content .wp-caption-text,
.dark-mode .yt-accordion-content .wp-caption-text {
    color: hsl(0, 0%, 65%);
}

[data-theme="dark"] .yt-timetable-wrapper,
.dark-mode .yt-timetable-wrapper {
    background: hsl(120, 60%, 12%) !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 1px 2px 0 rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .yt-timetable-content,
.dark-mode .yt-timetable-content {
    background: hsl(120, 60%, 12%) !important;
}

[data-theme="dark"] .yt-calendar-grid,
.dark-mode .yt-calendar-grid {
    background: hsl(120, 40%, 20%);
}

[data-theme="dark"] .yt-day-header,
.dark-mode .yt-day-header {
    background: hsl(120, 50%, 15%);
    color: hsl(40, 60%, 70%);
}

[data-theme="dark"] .yt-day-column,
.dark-mode .yt-day-column {
    background: hsl(120, 60%, 12%);
}

[data-theme="dark"] .yt-sportbetrieb-wrapper,
.dark-mode .yt-sportbetrieb-wrapper {
    background: hsl(120, 60%, 12%) !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 1px 2px 0 rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .yt-sportbetrieb-item,
.dark-mode .yt-sportbetrieb-item {
    border-bottom: 1px solid hsl(120, 40%, 20%) !important;
}

[data-theme="dark"] .yt-sportbetrieb-item:last-child,
.dark-mode .yt-sportbetrieb-item:last-child {
    border-bottom: none !important;
}

[data-theme="dark"] .yt-card-content,
.dark-mode .yt-card-content {
    background: hsl(120, 60%, 12%) !important;
}

[data-theme="dark"] .yt-day-header-big:hover,
.dark-mode .yt-day-header-big:hover {
    background: #359330 !important;
}

[data-theme="dark"] .yt-day-header-big.active,
.dark-mode .yt-day-header-big.active {
    background: linear-gradient(90deg, #40a639, #1b5125) !important;
}

[data-theme="dark"] .yt-sportbetrieb-table td:first-child,
.dark-mode .yt-sportbetrieb-table td:first-child {
    color: hsl(40, 60%, 70%) !important;
}

[data-theme="dark"] .yt-sportbetrieb-table td:last-child,
.dark-mode .yt-sportbetrieb-table td:last-child {
    color: hsl(0, 0%, 95%) !important;
}

[data-theme="dark"] .yt-sportbetrieb-description,
.dark-mode .yt-sportbetrieb-description,
[data-theme="dark"] .yt-sportbetrieb-trainer,
.dark-mode .yt-sportbetrieb-trainer {
    border-top: 1px solid hsl(120, 40%, 20%);
}

[data-theme="dark"] .yt-sportbetrieb-description h4,
.dark-mode .yt-sportbetrieb-description h4,
[data-theme="dark"] .yt-sportbetrieb-trainer h4,
.dark-mode .yt-sportbetrieb-trainer h4 {
    color: hsl(40, 60%, 70%) !important;
}

[data-theme="dark"] .yt-sportbetrieb-description p,
.dark-mode .yt-sportbetrieb-description p,
[data-theme="dark"] .yt-trainer-name-simple,
.dark-mode .yt-trainer-name-simple,
[data-theme="dark"] .yt-trainer-name-horizontal,
.dark-mode .yt-trainer-name-horizontal {
    color: hsl(0, 0%, 95%) !important;
}

/* Trainer and Employee Cards Dark Mode (Force) */
[data-theme="dark"] .yt-trainer-item,
.dark-mode .yt-trainer-item,
[data-theme="dark"] .yt-emp-item,
.dark-mode .yt-emp-item {
    background: hsl(120, 60%, 12%) !important;
    border-color: hsl(120, 40%, 25%) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .yt-trainer-item:hover,
.dark-mode .yt-trainer-item:hover,
[data-theme="dark"] .yt-emp-item:hover,
.dark-mode .yt-emp-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border-color: #40a639 !important;
}

[data-theme="dark"] .yt-trainer-info h4,
.dark-mode .yt-trainer-info h4,
[data-theme="dark"] .yt-emp-info h4,
.dark-mode .yt-emp-info h4 {
    color: hsl(0, 0%, 95%) !important;
}

[data-theme="dark"] .yt-trainer-role,
.dark-mode .yt-trainer-role,
[data-theme="dark"] .yt-emp-role,
.dark-mode .yt-emp-role {
    color: hsl(0, 0%, 75%) !important;
}

[data-theme="dark"] .yt-trainer-contact,
.dark-mode .yt-trainer-contact,
[data-theme="dark"] .yt-emp-contact,
.dark-mode .yt-emp-contact {
    border-top-color: hsl(120, 40%, 25%) !important;
}

[data-theme="dark"] .yt-trainer-contact-item,
.dark-mode .yt-trainer-contact-item,
[data-theme="dark"] .yt-emp-contact-item,
.dark-mode .yt-emp-contact-item {
    color: hsl(0, 0%, 85%) !important;
}

[data-theme="dark"] .yt-trainer-contact-item a,
.dark-mode .yt-trainer-contact-item a,
[data-theme="dark"] .yt-emp-contact-item a,
.dark-mode .yt-emp-contact-item a {
    color: #40a639 !important;
}

[data-theme="dark"] .yt-trainer-contact-item a:hover,
.dark-mode .yt-trainer-contact-item a:hover,
[data-theme="dark"] .yt-emp-contact-item a:hover,
.dark-mode .yt-emp-contact-item a:hover {
    color: #5bc252 !important;
}

/* Club Records Section Styles */
.yt-club-records {
    margin: 30px 0;
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.yt-club-records h3 {
    color: #40a639;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #40a639;
    font-family: 'Rucksack Black', 'Rubik', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.yt-club-records-content {
    padding: 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.yt-club-records-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #40a639;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.2s ease;
}

.yt-club-records-link:hover {
    color: #1b5125;
    text-decoration: underline;
}

.yt-external-icon {
    font-size: 14px;
    opacity: 0.7;
}

/* Links Section Styles */
.yt-links {
    margin: 30px 0;
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.yt-links h3 {
    color: #40a639;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #40a639;
    font-family: 'Rucksack Black', 'Rubik', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.yt-links-content {
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.yt-links-headline {
    color: #000;
    font-size: 16px;
    font-weight: 600;
    margin: 15px 0 10px 0;
}

.yt-links-headline:first-child {
    margin-top: 0;
}

.yt-links-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #40a639;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.2s ease;
}

.yt-links-link:hover {
    color: #1b5125;
    text-decoration: underline;
}

/* Supporters Section Styles */
.yt-supporters {
    margin: 30px 0;
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.yt-supporters h3 {
    color: #40a639;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #40a639;
    font-family: 'Rucksack Black', 'Rubik', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.yt-supporters-subsection {
    margin-bottom: 30px;
}

.yt-supporters-subsection h4 {
    color: #212529;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
}

.yt-sponsors-grid,
.yt-partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    max-width: 100%;
    gap: 20px;
    padding: 20px 0;
}

@media (min-width: 768px) {
    .yt-sponsors-grid,
    .yt-partners-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 767px) {
    .yt-sponsors-grid,
    .yt-partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.yt-sponsor-link,
.yt-partner-link,
.yt-sponsor-image,
.yt-partner-image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
    min-height: 100px;
}

.yt-sponsor-link:hover,
.yt-partner-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #40a639;
}

.yt-sponsor-link img,
.yt-partner-link img,
.yt-sponsor-image img,
.yt-partner-image img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
}

.yt-foerderkreis-content {
    padding: 20px 0;
    line-height: 1.6;
    color: #212529;
}

.yt-foerderkreis-content p {
    margin-bottom: 1rem;
}

.yt-foerderkreis-content a {
    color: #40a639;
    text-decoration: underline;
}

.yt-foerderkreis-content a:hover {
    color: #1b5125;
}

.yt-foerderkreis-content h1,
.yt-foerderkreis-content h2,
.yt-foerderkreis-content h3,
.yt-foerderkreis-content h4,
.yt-foerderkreis-content h5,
.yt-foerderkreis-content h6 {
    color: #40a639;
    margin-bottom: 0.5rem;
    margin-top: 1.5rem;
}

.yt-foerderkreis-content ul,
.yt-foerderkreis-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.yt-foerderkreis-content li {
    margin-bottom: 0.25rem;
}

/* Free Text Section Specific Styles */
.yt-freetext-content {
    line-height: 1.6;
    color: #212529;
}

.yt-freetext-content p {
    margin-bottom: 1rem;
    font-size: 16px;
}

.yt-freetext-content h1,
.yt-freetext-content h2,
.yt-freetext-content h3,
.yt-freetext-content h4,
.yt-freetext-content h5,
.yt-freetext-content h6 {
    color: #40a639;
    margin-bottom: 0.5rem;
    margin-top: 1.5rem;
}

.yt-freetext-content h1:first-child,
.yt-freetext-content h2:first-child,
.yt-freetext-content h3:first-child,
.yt-freetext-content h4:first-child,
.yt-freetext-content h5:first-child,
.yt-freetext-content h6:first-child {
    margin-top: 0;
}

.yt-freetext-content ul,
.yt-freetext-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.yt-freetext-content li {
    margin-bottom: 0.25rem;
}

.yt-freetext-content a {
    color: #40a639;
    text-decoration: underline;
}

.yt-freetext-content a:hover {
    color: #1b5125;
}

.yt-freetext-content strong,
.yt-freetext-content b {
    font-weight: 600;
    color: #1b5125;
}

.yt-freetext-content em,
.yt-freetext-content i {
    font-style: italic;
}

/* Responsive adjustments for employee grid */
@media (max-width: 1024px) {
    .yt-emp-list {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
    }
}

@media (max-width: 768px) {
    .yt-emp-list {
        grid-template-columns: 1fr; /* 1 column on mobile */
    }
}

/* Show more/less functionality */
.yt-card-hidden {
    display: none;
}

.yt-toggle-cards {
    display: block;
    margin: 20px auto 0;
    padding: 12px 24px;
    background: #40a639;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.yt-toggle-cards:hover {
    background: #1b5125;
    transform: translateY(-2px);
}

.yt-toggle-cards .toggle-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.yt-toggle-cards.expanded .toggle-icon {
    transform: rotate(180deg);
}

/* ============================================
   ZEITSTRAHL / TIMELINE STYLES (shadcn-inspired)
   ============================================ */

.yt-zeitstrahl-container {
    position: relative;
    padding: 60px 0;
    margin: 60px 0;
    width: 100%;
    max-width: 100%;
}

.yt-zeitstrahl-wrapper {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Timeline horizontal line */
.yt-zeitstrahl-line {
    position: absolute;
    top: 22px;
    left: 40px;
    right: 40px;
    height: 3px;
    background: linear-gradient(90deg,
        hsl(142, 70%, 35%) 0%,
        hsl(142, 70%, 45%) 50%,
        hsl(142, 70%, 35%) 100%);
    box-shadow: 0 2px 8px rgba(64, 166, 57, 0.2);
    z-index: 1;
}

.yt-zeitstrahl-entries {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    margin-bottom: 40px;
}

/* Timeline entry wrapper */
.yt-zeitstrahl-entry {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

/* Timeline dot (clickable button) */
.yt-zeitstrahl-dot {
    position: relative;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    border: 3px solid #40a639;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 2px 8px rgba(64, 166, 57, 0.3);
}

.yt-zeitstrahl-dot:hover {
    transform: scale(1.3);
    border-color: #359330;
    box-shadow: 0 4px 16px rgba(64, 166, 57, 0.5);
}

.yt-zeitstrahl-dot.active {
    background: #40a639;
    border-color: #40a639;
    transform: scale(1.3);
    box-shadow: 0 4px 16px rgba(64, 166, 57, 0.6);
}

.yt-zeitstrahl-dot-inner {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: transparent;
    transition: all 0.3s ease;
}

.yt-zeitstrahl-dot.active .yt-zeitstrahl-dot-inner {
    background: white;
}

/* Timeline label */
.yt-zeitstrahl-label {
    margin-top: 16px;
    font-size: 14px;
    font-weight: 600;
    color: #1b5125;
    white-space: normal;
    letter-spacing: 0.025em;
    transition: all 0.3s ease;
    max-width: 120px;
    line-height: 1.3;
}

.yt-zeitstrahl-dot:hover + .yt-zeitstrahl-label,
.yt-zeitstrahl-dot.active + .yt-zeitstrahl-label {
    color: #40a639;
    transform: scale(1.05);
}

/* Timeline content display area (below timeline) */
.yt-zeitstrahl-content-area {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    min-height: 100px;
}

.yt-zeitstrahl-panel {
    display: none;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.yt-zeitstrahl-panel.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Panel inner container */
.yt-zeitstrahl-panel-inner {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid hsl(142, 40%, 90%);
}

/* Panel background image */
.yt-zeitstrahl-panel-image {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.yt-zeitstrahl-panel-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, white, transparent);
}

/* Panel content */
.yt-zeitstrahl-panel-content {
    padding: 40px;
    background: white;
}

.yt-zeitstrahl-panel-title {
    font-size: 28px;
    font-weight: 700;
    color: #1b5125;
    margin: 0 0 20px 0;
    font-family: 'Rucksack Black', 'Rubik', sans-serif;
    letter-spacing: 0.025em;
}

.yt-zeitstrahl-panel-text {
    font-size: 16px;
    line-height: 1.7;
    color: #333333;
}

.yt-zeitstrahl-panel-text p {
    margin-bottom: 16px;
}

.yt-zeitstrahl-panel-text p:last-child {
    margin-bottom: 0;
}

.yt-zeitstrahl-panel-text strong {
    font-weight: 700;
    color: #1a1a1a;
}

.yt-zeitstrahl-panel-text em {
    font-style: italic;
}

.yt-zeitstrahl-panel-text ul,
.yt-zeitstrahl-panel-text ol {
    margin: 12px 0 16px 24px;
    line-height: 1.7;
}

.yt-zeitstrahl-panel-text li {
    margin-bottom: 8px;
}

.yt-zeitstrahl-panel-text a {
    color: #40a639;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.yt-zeitstrahl-panel-text a:hover {
    color: #2d7a28;
}

/* Responsive Design - Tablet & Mobile (horizontal scrolling single row) */
@media (max-width: 1024px) {
    /* Make timeline horizontally scrollable on tablets and phones */
    .yt-zeitstrahl-wrapper {
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Hide scrollbar Firefox */
        -ms-overflow-style: none; /* Hide scrollbar IE/Edge */
        padding: 15px 20px 10px 20px;
    }

    /* Hide scrollbar for Chrome/Safari/Opera */
    .yt-zeitstrahl-wrapper::-webkit-scrollbar {
        display: none;
    }

    .yt-zeitstrahl-content-area {
        padding: 0 20px;
    }

    /* Hide the separate line element - use pseudo-element instead */
    .yt-zeitstrahl-line {
        display: none;
    }

    .yt-zeitstrahl-entries {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 0;
        min-width: max-content;
        padding: 0 10px;
        position: relative;
    }

    /* Use pseudo-element on entries for the line - spans full scrollable content */
    .yt-zeitstrahl-entries::before {
        content: '';
        position: absolute;
        top: 22px; /* Center = 22px dont change */
        left: 10px;
        right: 10px;
        height: 3px;
        background: linear-gradient(90deg,
            hsl(142, 70%, 35%) 0%,
            hsl(142, 70%, 45%) 50%,
            hsl(142, 70%, 35%) 100%);
        box-shadow: 0 2px 8px rgba(64, 166, 57, 0.2);
        z-index: 1;
    }

    .yt-zeitstrahl-entry {
        flex: 0 0 auto;
        width: auto;
        min-width: 70px;
    }

    .yt-zeitstrahl-label {
        font-size: 12px;
        max-width: 80px;
        word-break: break-word;
    }

    .yt-zeitstrahl-dot {
        width: 24px;
        height: 24px;
        border-width: 3px;
    }

    .yt-zeitstrahl-dot-inner {
        width: 8px;
        height: 8px;
    }

    .yt-zeitstrahl-panel-image {
        height: 250px;
    }

    .yt-zeitstrahl-panel-content {
        padding: 24px;
    }

    .yt-zeitstrahl-panel-title {
        font-size: 22px;
    }

    .yt-zeitstrahl-panel-text {
        font-size: 15px;
    }
}

/* Extra small screens - smaller dots and labels */
@media (max-width: 480px) {
    .yt-zeitstrahl-wrapper {
        padding: 15px 10px 10px 10px;
    }

    .yt-zeitstrahl-label {
        font-size: 10px;
        max-width: 65px;
    }

    .yt-zeitstrahl-dot {
        width: 18px;
        height: 18px;
        border-width: 2px;
    }

    .yt-zeitstrahl-dot-inner {
        width: 5px;
        height: 5px;
    }

    .yt-zeitstrahl-panel-image {
        height: 200px;
    }

    .yt-zeitstrahl-panel-content {
        padding: 20px;
    }

    .yt-zeitstrahl-panel-title {
        font-size: 20px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .yt-zeitstrahl-line {
        background: linear-gradient(90deg,
            hsl(142, 60%, 40%) 0%,
            hsl(142, 60%, 50%) 50%,
            hsl(142, 60%, 40%) 100%);
    }

    .yt-zeitstrahl-dot {
        background: hsl(120, 60%, 12%);
        border-color: #40a639;
    }

    .yt-zeitstrahl-label {
        color: hsl(142, 70%, 60%);
    }

    .yt-zeitstrahl-panel-inner {
        background: hsl(120, 60%, 12%);
        border: 1px solid hsl(120, 40%, 25%);
    }

    .yt-zeitstrahl-panel-close {
        background: rgba(27, 81, 37, 0.95);
    }

    .yt-zeitstrahl-panel-close:hover {
        background: rgba(27, 81, 37, 1);
    }

    .yt-zeitstrahl-panel-close svg {
        color: #40a639;
    }

    .yt-zeitstrahl-panel-title {
        color: #40a639;
    }

    .yt-zeitstrahl-panel-content {
        background: hsl(120, 60%, 12%);
    }

    .yt-zeitstrahl-panel-text {
        color: hsl(0, 0%, 85%);
    }
}

[data-theme="dark"] .yt-zeitstrahl-line,
.dark-mode .yt-zeitstrahl-line {
    background: linear-gradient(90deg,
        hsl(142, 60%, 40%) 0%,
        hsl(142, 60%, 50%) 50%,
        hsl(142, 60%, 40%) 100%);
}

[data-theme="dark"] .yt-zeitstrahl-dot,
.dark-mode .yt-zeitstrahl-dot {
    background: hsl(120, 60%, 12%);
    border-color: #40a639;
}

[data-theme="dark"] .yt-zeitstrahl-label,
.dark-mode .yt-zeitstrahl-label {
    color: hsl(142, 70%, 60%);
}

[data-theme="dark"] .yt-zeitstrahl-panel-inner,
.dark-mode .yt-zeitstrahl-panel-inner {
    background: hsl(120, 60%, 12%);
    border: 1px solid hsl(120, 40%, 25%);
}

[data-theme="dark"] .yt-zeitstrahl-panel-close,
.dark-mode .yt-zeitstrahl-panel-close {
    background: rgba(27, 81, 37, 0.95);
}

[data-theme="dark"] .yt-zeitstrahl-panel-close:hover,
.dark-mode .yt-zeitstrahl-panel-close:hover {
    background: rgba(27, 81, 37, 1);
}

[data-theme="dark"] .yt-zeitstrahl-panel-close svg,
.dark-mode .yt-zeitstrahl-panel-close svg {
    color: #40a639;
}

[data-theme="dark"] .yt-zeitstrahl-panel-title,
.dark-mode .yt-zeitstrahl-panel-title {
    color: #40a639;
}

[data-theme="dark"] .yt-zeitstrahl-panel-content,
.dark-mode .yt-zeitstrahl-panel-content {
    background: hsl(120, 60%, 12%);
}

[data-theme="dark"] .yt-zeitstrahl-panel-text,
.dark-mode .yt-zeitstrahl-panel-text {
    color: hsl(0, 0%, 85%);
}

[data-theme="dark"] .yt-zeitstrahl-panel-text strong,
.dark-mode .yt-zeitstrahl-panel-text strong {
    color: hsl(0, 0%, 95%);
}

[data-theme="dark"] .yt-zeitstrahl-panel-text a,
.dark-mode .yt-zeitstrahl-panel-text a {
    color: hsl(142, 60%, 55%);
}

[data-theme="dark"] .yt-zeitstrahl-panel-text a:hover,
.dark-mode .yt-zeitstrahl-panel-text a:hover {
    color: hsl(142, 60%, 70%);
}
