/* ============================================================
   JEvents Theme: Feuerwehr Tarmstedt
   Detailansicht (icalrepeat.detail.php)
   ============================================================ */

/* ---------- Reset & Base ---------- */
.fw-event-detail *,
.fw-event-detail *::before,
.fw-event-detail *::after {
    box-sizing: border-box;
}

.fw-event-detail {
    font-family: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #1a1a1a;
    max-width: 760px;
    margin: 0 auto;
}

/* ---------- Breadcrumb ---------- */
.fw-breadcrumb {
    font-size: 12px;
    color: #888;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.fw-breadcrumb a {
    color: #990000;
    text-decoration: none;
}

.fw-breadcrumb a:hover {
    text-decoration: underline;
}

/* ---------- Hero Card ---------- */
.fw-hero {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* ---------- Hero Header (roter Balken) ---------- */
.fw-hero-header {
    background: #990000;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 16px;
}

.fw-date-block {
    background: rgba(255,255,255,0.18);
    border-radius: 8px;
    padding: 10px 14px;
    text-align: center;
    color: #fff;
    min-width: 58px;
    flex-shrink: 0;
}

.fw-date-day {
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
}

.fw-date-month {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.88;
    margin-top: 2px;
}

.fw-date-weekday {
    font-size: 11px;
    opacity: 0.72;
    margin-top: 1px;
}

.fw-hero-title {
    flex: 1;
}

.fw-hero-title h1 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px 0;
    line-height: 1.2;
}

.fw-category-badge {
    display: inline-block;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 12px;
    background: rgba(255,255,255,0.22);
    color: #fff;
    font-weight: 500;
    letter-spacing: 0.03em;
}

/* ---------- Info Grid ---------- */
.fw-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0;
}

.fw-info-cell {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    border-right: 1px solid #f0f0f0;
}

.fw-info-cell:nth-child(2n) {
    border-right: none;
}

.fw-info-cell:nth-last-child(-n+2) {
    border-bottom: none;
}

.fw-info-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #990000;
}

.fw-info-icon svg {
    width: 16px;
    height: 16px;
}

.fw-info-text {
    min-width: 0;
}

.fw-info-label {
    font-size: 10px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 2px;
    font-weight: 600;
}

.fw-info-value {
    font-size: 14px;
    color: #1a1a1a;
    font-weight: 600;
    line-height: 1.3;
}

/* ---------- Description ---------- */
.fw-description {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid #f0f0f0;
    font-size: 14px;
    color: #444;
    line-height: 1.7;
}

.fw-description:empty {
    display: none;
}

/* ---------- Aktionsleiste ---------- */
.fw-actions {
    display: flex;
    gap: 8px;
    padding: 1rem 1.5rem;
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
    flex-wrap: wrap;
}

.fw-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid #ddd;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
    font-family: inherit;
}

.fw-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.fw-btn-primary {
    background: #990000;
    color: #fff;
    border-color: #990000;
}

.fw-btn-primary:hover {
    background: #a82227;
    border-color: #a82227;
    color: #fff;
}

.fw-btn-ghost {
    background: #fff;
    color: #555;
}

.fw-btn-ghost:hover {
    background: #f5f5f5;
    color: #222;
}

/* ---------- Vor/Zurück Navigation ---------- */
.fw-event-nav {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.fw-nav-item {
    display: flex;
    flex-direction: column;
    max-width: 48%;
}

.fw-nav-item.next {
    text-align: right;
    align-items: flex-end;
}

.fw-nav-label {
    font-size: 11px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 3px;
}

.fw-nav-link {
    font-size: 13px;
    font-weight: 600;
    color: #990000;
    text-decoration: none;
}

.fw-nav-link:hover {
    text-decoration: underline;
}

/* ---------- Zurück-Link ---------- */
.fw-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #888;
    text-decoration: none;
    margin-bottom: 1rem;
}

.fw-back-link:hover {
    color: #990000;
}

.fw-back-link svg {
    width: 14px;
    height: 14px;
}

/* ---------- Responsive ---------- */
@media (max-width: 540px) {
    .fw-info-grid {
        grid-template-columns: 1fr;
    }

    .fw-info-cell {
        border-right: none;
    }

    .fw-info-cell:nth-last-child(-n+2) {
        border-bottom: 1px solid #f0f0f0;
    }

    .fw-info-cell:last-child {
        border-bottom: none;
    }

    .fw-hero-header {
        padding: 1rem;
    }

    .fw-hero-title h1 {
        font-size: 18px;
    }

    .fw-event-nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .fw-nav-item.next {
        align-items: flex-start;
        text-align: left;
    }
}
