/* ========================================
   HOSTS SECTION - BRAUNES THEME
   Konsolidiert aus Custom CSS/JS 204.css
   Farben angepasst fuer dunkles Theme
   ======================================== */

/* ========================================
   CONTAINER & GRID
   ======================================== */

/* Main Container */
#hosts {
    padding: 60px 20px !important;
}

/* Hosts Grid - Nebeneinander auf Desktop */
.ei-hosts-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 25px !important;
    margin-top: 40px !important;
}

@media (min-width: 768px) {
    .ei-hosts-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 30px !important;
    }
}

/* ========================================
   HOST CARD - BRAUNES THEME
   ======================================== */

.ei-host-card {
    background: #4A3630 !important;
    border-radius: 16px !important;
    padding: 30px !important;
    border: 2px solid rgba(242, 165, 90, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer;
    position: relative;
    overflow: visible !important;
}

.ei-host-card:hover {
    border-color: #F2A55A !important;
    box-shadow: 0 8px 24px rgba(242, 165, 90, 0.2) !important;
    transform: translateY(-4px);
}

.ei-host-card.expanded {
    border-color: #F2A55A !important;
    box-shadow: 0 8px 24px rgba(242, 165, 90, 0.15) !important;
}

/* ========================================
   HEADER: FOTO + INFO
   ======================================== */

.ei-host-header {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 20px !important;
    align-items: flex-start !important;
    margin-bottom: 20px !important;
}

/* Foto Column - Fixed Width */
.ei-host-photo-col {
    flex: 0 0 90px !important;
    width: 90px !important;
    max-width: 90px !important;
}

.ei-host-photo {
    width: 90px !important;
    height: 90px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    border: 4px solid #F2A55A !important;
    transition: all 0.3s ease;
    margin: 0 !important;
}

.ei-host-card:hover .ei-host-photo {
    border-color: #FFB870 !important;
    transform: scale(1.05);
}

.ei-host-photo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    display: block !important;
}

/* WordPress figure margin reset */
.ei-host-photo-col figure.wp-block-image {
    margin: 0 !important;
}

.ei-host-photo-col .wp-block-image img {
    width: 90px !important;
    height: 90px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    display: block !important;
}

/* Info Column - Flexible */
.ei-host-info {
    flex: 1 !important;
    min-width: 0 !important;
}

.ei-host-name {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    color: #F2A55A !important;
    margin: 0 0 10px 0 !important;
    line-height: 1.2 !important;
}

.ei-host-teaser {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    color: #F2A55A !important;
    margin: 0 !important;
    font-style: italic !important;
}

/* ========================================
   STORIES SECTION
   ======================================== */

.ei-host-stories {
    max-height: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease 0.1s !important;
    margin-top: 0 !important;
}

.ei-host-card.expanded .ei-host-stories {
    max-height: 700px !important;
    opacity: 1 !important;
    margin-top: 20px !important;
}

/* Separator */
.ei-host-separator {
    height: 2px !important;
    background: linear-gradient(90deg, #F2A55A 0%, transparent 100%) !important;
    margin: 15px 0 20px 0 !important;
    border: none !important;
    opacity: 0 !important;
    transform: scaleX(0);
    transform-origin: left;
    transition: all 0.4s ease !important;
}

.ei-host-card.expanded .ei-host-separator {
    opacity: 1 !important;
    transform: scaleX(1);
}

/* Story Boxen */
.ei-host-story {
    padding: 16px 20px !important;
    border-radius: 10px !important;
    margin-bottom: 12px !important;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.3s ease !important;
}

.ei-host-card.expanded .ei-host-story {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.ei-host-card.expanded .ei-host-story:nth-child(2) {
    transition-delay: 0.1s !important;
}

.ei-host-card.expanded .ei-host-story:nth-child(3) {
    transition-delay: 0.2s !important;
}

/* Positive Story */
.ei-host-story.positive {
    background: #3A2620 !important;
    border: 2px solid #3A2620 !important;
}

/* Negative Story - Braunes Theme Farben */
.ei-host-story.negative {
    background: transparent !important;
    border: 2px solid #F2A55A !important;
}

.ei-host-story-title {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.ei-host-story.positive .ei-host-story-title {
    color: #F2A55A !important;
}

.ei-host-story.negative .ei-host-story-title {
    color: #F2A55A !important;
}

.ei-host-story-text {
    font-size: 0.88rem !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

.ei-host-story.positive .ei-host-story-text {
    color: #FFFFFF !important;
}

.ei-host-story.negative .ei-host-story-text {
    color: #FFFFFF !important;
}

/* Hover auf Stories */
.ei-host-card.expanded .ei-host-story:hover {
    transform: translateX(5px) !important;
}

.ei-host-story.positive:hover {
    background: #4A3630 !important;
}

.ei-host-story.negative:hover {
    background: rgba(242, 165, 90, 0.1) !important;
}

/* ========================================
   TOGGLE BUTTON - BRAUNES THEME
   ======================================== */

.ei-host-toggle {
    width: 100% !important;
    margin-top: 20px !important;
    padding: 14px 24px !important;
    background: #F2A55A !important;
    color: #3A2620 !important;
    border: 2px solid #F2A55A !important;
    border-radius: 12px !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    text-align: center !important;
}

.ei-host-toggle:hover {
    background: #FFB870 !important;
    border-color: #FFB870 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(242, 165, 90, 0.4) !important;
}

.ei-host-toggle:active {
    transform: translateY(0) !important;
}

.ei-host-toggle-text {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
}

.ei-host-toggle-icon {
    font-size: 13px !important;
    transition: transform 0.3s ease !important;
    display: inline-block;
}

/* Expanded State - Braunes Theme */
.ei-host-card.expanded .ei-host-toggle {
    background: transparent !important;
    color: #FFFFFF !important;
    border-color: #FFFFFF !important;
}

.ei-host-card.expanded .ei-host-toggle:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: #F2A55A !important;
}

.ei-host-card.expanded .ei-host-toggle-icon {
    transform: rotate(180deg) !important;
}

/* ========================================
   MOBILE OPTIMIERUNG
   ======================================== */

@media (max-width: 767px) {
    .ei-hosts-grid {
        gap: 20px !important;
    }

    .ei-host-card {
        padding: 25px !important;
    }

    .ei-host-header {
        gap: 15px !important;
    }

    .ei-host-photo-col {
        flex: 0 0 75px !important;
        width: 75px !important;
        max-width: 75px !important;
    }

    .ei-host-photo {
        width: 75px !important;
        height: 75px !important;
    }

    .ei-host-photo-col .wp-block-image img {
        width: 75px !important;
        height: 75px !important;
    }

    .ei-host-name {
        font-size: 1.25rem !important;
    }

    .ei-host-teaser {
        font-size: 0.88rem !important;
    }

    .ei-host-story {
        padding: 14px 16px !important;
    }

    .ei-host-toggle {
        padding: 12px 20px !important;
        font-size: 0.9rem !important;
    }
}

/* ========================================
   TABLET
   ======================================== */

@media (min-width: 768px) and (max-width: 1023px) {
    .ei-host-photo-col {
        flex: 0 0 85px !important;
        width: 85px !important;
        max-width: 85px !important;
    }

    .ei-host-photo {
        width: 85px !important;
        height: 85px !important;
    }

    .ei-host-photo-col .wp-block-image img {
        width: 85px !important;
        height: 85px !important;
    }

    .ei-host-name {
        font-size: 1.3rem !important;
    }
}

/* ========================================
   LOADING ANIMATIONS
   ======================================== */

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Desktop: Von den Seiten */
@media (min-width: 768px) {
    .ei-host-card[data-host="flurina"] {
        animation: slideInLeft 0.6s ease 0.2s both;
    }

    .ei-host-card[data-host="pascal"] {
        animation: slideInRight 0.6s ease 0.4s both;
    }
}

/* Mobile: Von unten */
@media (max-width: 767px) {
    .ei-host-card[data-host="flurina"] {
        animation: slideInUp 0.6s ease 0.2s both;
    }

    .ei-host-card[data-host="pascal"] {
        animation: slideInUp 0.6s ease 0.4s both;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

.ei-host-toggle:focus {
    outline: 3px solid #F2A55A !important;
    outline-offset: 3px !important;
}

.ei-host-card:focus-within {
    border-color: #F2A55A !important;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .ei-host-card,
    .ei-host-photo,
    .ei-host-toggle,
    .ei-host-stories,
    .ei-host-story,
    .ei-host-separator,
    .ei-host-toggle-icon {
        animation: none !important;
        transition: none !important;
    }
}

/* ========================================
   FIX: WordPress Block Overrides
   ======================================== */

/* Entferne Standard-Block-Styles */
.ei-host-card.wp-block-group {
    display: block !important;
}

.ei-host-header.wp-block-columns {
    margin-bottom: 0 !important;
}

.ei-host-photo-col.wp-block-column {
    padding: 0 !important;
}

.ei-host-info.wp-block-column {
    padding: 0 !important;
}

/* Button Container */
.ei-host-toggle-container {
    margin-top: 20px;
}
