/* ============================================================
   events.css | Event-Uebersicht
   Aufgerufen in:
     - templates/events-overview.php  (/events, /en/events)
   Aufbau bewusst wie exhibitor.css: Bildspalte links, Textspalte
   rechts, Link-Streifen am rechten Rand. Klickbar ist die ganze
   Karte ueber Bootstraps .stretched-link auf dem Titel-Link.
   ============================================================ */

.events-list { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 1rem; }

.event-item {
    position: relative; overflow: hidden;
    display: flex; align-items: stretch; width: 100%;
    background: var(--c-white); border: 1px solid var(--c-border);
    border-radius: var(--radius-lg); color: var(--c-darker);
    transition: var(--transition); box-shadow: var(--shadow-sm);
}
@media (hover: hover) {
    .event-item:hover { box-shadow: var(--shadow-hover); }
}

.event-item-media {
    flex: 0 0 26%; max-width: 26%;
    border-right: 1px solid var(--c-border);
    background: var(--c-smoke);
    display: flex; align-items: stretch;
}
.event-item-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.event-item-media--empty { background: linear-gradient(to top right, #000 0%, #3b3b3b 100%); min-height: 180px; }

.event-item-body { flex: 1 1 auto; min-width: 0; padding: 1.5rem; padding-right: calc(5% + 1.5rem); }
.event-item-title { font-size: 1.35rem; font-weight: 700; margin: 0 0 1rem; color: var(--c-darker); }
.event-item-title a { color: inherit; text-decoration: none; }

.event-item-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 1.5rem; }

.event-item-facts { display: flex; flex-direction: column; gap: .6rem; }
.event-item-fact { display: flex; gap: .55rem; align-items: flex-start; color: var(--c-mid); line-height: 1.45; }
.event-item-fact i { color: var(--c-accent); font-size: 1rem; line-height: 1.45; flex: 0 0 auto; }
.event-item-fact-label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--c-muted); font-weight: 700; }

.event-item-desc { font-size: .92rem; color: var(--c-mid); line-height: 1.65; margin: 0; }

.event-item-link {
    position: absolute; top: 0; right: 0; bottom: 0; width: 5%; z-index: 3;
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    background: var(--c-smoke); color: var(--c-mid); text-decoration: none;
    border-left: 1px solid var(--c-border); overflow: hidden;
    transition: width .35s ease, color .3s ease;
    pointer-events: none;
}
@media (hover: hover) {
    .event-item:hover .event-item-link { width: 15%; }
}
.event-item-link-icon { font-size: 1.4rem; flex: 0 0 auto; }
.event-item-link-text {
    font-family: var(--font-head); font-weight: 600; white-space: nowrap;
    text-align: center; line-height: 1.2;
    max-width: 0; opacity: 0; overflow: hidden;
    transition: max-width .35s ease, opacity .3s ease;
}
@media (hover: hover) {
    .event-item:hover .event-item-link-text { max-width: 220px; opacity: 1; }
}

@media (max-width: 900px) {
    .event-item-grid { grid-template-columns: 1fr; gap: 1rem; }
}

@media (max-width: 700px) {
    .event-item { flex-direction: column; }
    .event-item-media { flex-basis: auto; max-width: none; border-right: 0; border-bottom: 1px solid var(--c-border); }
    .event-item-media img { max-height: 200px; }
    .event-item-body { padding-right: 1.5rem; }
    .event-item-link {
        position: static; width: auto; padding: .9rem 1rem;
        border-left: 0; border-top: 1px solid var(--c-border);
    }
    .event-item-link-text { max-width: none; opacity: 1; }
}
