/* ============================================================
   MaHe LIVE Timeline – Frontend-Styles
   Design: Weiß · Schwarz · Silber
   ============================================================ */

:root {
    --tl-bg:          #ffffff;
    --tl-card-bg:     #f9f9f9;
    --tl-border:      #e0e0e0;
    --tl-dot:         #1a1a1a;
    --tl-dot-inner:   #ffffff;
    --tl-line:        #d0d0d0;
    --tl-text:        #1a1a1a;
    --tl-text-muted:  #888888;
    --tl-title:       #111111;
    --tl-link-bg:     #1a1a1a;
    --tl-link-color:  #ffffff;
    --tl-link-hover:  #444444;
    --tl-radius:      6px;
    --tl-shadow:      0 1px 6px rgba(0,0,0,.07);
    --tl-gap:         28px;
}

/* Wrapper */
.mahe-timeline {
    max-width: 780px;
    margin: 0 auto;
    padding: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--tl-text);
    background: var(--tl-bg);
}

/* Track (vertikale Linie) */
.mahe-timeline-track {
    position: relative;
    padding-left: 44px;
}

.mahe-timeline-track::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 12px;
    bottom: 12px;
    width: 2px;
    background: var(--tl-line);
}

/* Eintrag */
.mahe-tl-entry {
    position: relative;
    margin-bottom: var(--tl-gap);
}

.mahe-tl-entry:last-child {
    margin-bottom: 0;
}

/* Punkt auf der Zeitlinie */
.mahe-tl-dot {
    position: absolute;
    left: -37px;
    top: 14px;
    width: 14px;
    height: 14px;
    background: var(--tl-dot);
    border: 2px solid var(--tl-dot-inner);
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--tl-line);
    z-index: 1;
}

/* Card */
.mahe-tl-card {
    background: var(--tl-card-bg);
    border: 1px solid var(--tl-border);
    border-radius: var(--tl-radius);
    box-shadow: var(--tl-shadow);
    padding: 16px 20px;
    transition: box-shadow .15s ease;
}

.mahe-tl-card:hover {
    box-shadow: 0 3px 14px rgba(0,0,0,.11);
}

/* Zeitstempel */
.mahe-tl-time {
    display: block;
    font-size: .72rem;
    letter-spacing: .04em;
    color: var(--tl-text-muted);
    margin-bottom: 7px;
    font-variant-numeric: tabular-nums;
}

/* Titel */
.mahe-tl-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--tl-title);
    margin: 0 0 10px;
    line-height: 1.35;
}

/* Bild */
.mahe-tl-figure {
    margin: 10px 0 12px;
    border-radius: calc(var(--tl-radius) - 2px);
    overflow: hidden;
    line-height: 0;
}

.mahe-tl-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: calc(var(--tl-radius) - 2px);
    object-fit: cover;
}

/* Inhalt (Gutenberg-Blöcke) */
.mahe-tl-content {
    font-size: .93rem;
    line-height: 1.65;
    color: var(--tl-text);
}

.mahe-tl-content p { margin: 0 0 .7em; }
.mahe-tl-content p:last-child { margin-bottom: 0; }
.mahe-tl-content a { color: #333; text-decoration: underline; }
.mahe-tl-content ul,
.mahe-tl-content ol { padding-left: 1.4em; margin: .5em 0; }

/* Link-Button */
.mahe-tl-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 13px;
    padding: 6px 14px;
    background: var(--tl-link-bg);
    color: var(--tl-link-color) !important;
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .03em;
    border-radius: 4px;
    text-decoration: none !important;
    transition: background .15s ease;
}

.mahe-tl-link:hover {
    background: var(--tl-link-hover);
}

.mahe-tl-link-icon {
    font-size: 1rem;
    line-height: 1;
}

/* Leer-Zustand */
.mahe-timeline-empty {
    padding: 24px;
    text-align: center;
    color: var(--tl-text-muted);
    font-size: .9rem;
    border: 1px dashed var(--tl-border);
    border-radius: var(--tl-radius);
}

/* Responsive */
@media (max-width: 540px) {
    .mahe-timeline-track {
        padding-left: 28px;
    }
    .mahe-timeline-track::before {
        left: 9px;
    }
    .mahe-tl-dot {
        left: -22px;
        width: 11px;
        height: 11px;
    }
    .mahe-tl-card {
        padding: 13px 15px;
    }
    .mahe-tl-title {
        font-size: .97rem;
    }
}
