/* =========================================================
   Datei: assets/css/emp-single-einsatz.css
   Zweck: Styling für Single-Einsatz-Ansicht
   Hinweis:
   - Enthält vollständiges Detailseiten-Design + Lightbox
   - Unterstützt mehrere mögliche Wrapper-/Block-Klassen,
     damit die CSS auch bei leicht abweichendem Markup greift
   ========================================================= */

/* =========================================================
   Grundlayout
   ========================================================= */

.emp-single-wrapper,
.emp-einsatz-single-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px 40px;
    box-sizing: border-box;
}

.emp-single-card,
.emp-einsatz-single-card {
    background: #ffffff;
    border: 1px solid var(--emp-border, #dcdcde);
    border-radius: var(--emp-radius, 14px);
    box-shadow: var(--emp-shadow, 0 8px 24px rgba(0,0,0,0.08));
    overflow: hidden;
}

/* =========================================================
   Hero / Kopfbereich
   ========================================================= */

.emp-single-hero,
.emp-einsatz-hero {
    display: grid;
    grid-template-columns: minmax(300px, 460px) 1fr;
    gap: 28px;
    padding: 28px;
    align-items: start;
    background: linear-gradient(180deg, #ffffff 0%, var(--emp-bg-soft, #f6f7f7) 100%);
}

.emp-single-image,
.emp-einsatz-image {
    position: relative;
    border-radius: calc(var(--emp-radius, 14px) - 2px);
    overflow: hidden;
    background: #eef1f3;
    border: 1px solid var(--emp-border, #dcdcde);
    min-height: 300px;
}

.emp-single-image img,
.emp-einsatz-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
}

.emp-lightbox-trigger {
    cursor: zoom-in;
}

.emp-thumb-placeholder,
.emp-card-thumb--placeholder {
    min-height: 300px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emp-muted, #6b7280);
    background: linear-gradient(135deg, rgba(0,0,0,0.02), rgba(0,0,0,0.06));
}

.emp-thumb-placeholder::after,
.emp-card-thumb--placeholder::after {
    content: "🚒";
    font-size: 54px;
    opacity: 0.45;
}

/* Badge / Kennzeichnung */
.emp-status-badge,
.emp-einsatz-badge,
.emp-single-badge {
    position: absolute;
    left: 14px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.01em;
    color: #fff;
    background: var(--emp-dark, #1d2327);
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
    text-transform: uppercase;
}

.emp-status-badge.is-fehlalarm,
.emp-einsatz-badge.is-fehlalarm,
.emp-single-badge.is-fehlalarm {
    background: var(--emp-primary, #d63638);
}

.emp-status-badge.is-normal,
.emp-einsatz-badge.is-normal,
.emp-single-badge.is-normal {
    background: var(--emp-dark, #1d2327);
}

/* =========================================================
   Header Content
   ========================================================= */

.emp-single-head,
.emp-einsatz-head {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.emp-einsatz-nr,
.emp-single-nr,
.emp-number-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--emp-primary-soft, rgba(214,54,56,0.10));
    color: var(--emp-primary, #d63638);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.emp-single-title,
.emp-einsatz-title {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    line-height: 1.1;
    color: var(--emp-dark, #1d2327);
    word-break: break-word;
}

.emp-stichwort-line,
.emp-single-stichwort,
.emp-einsatz-stichwort {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--emp-primary, #d63638);
    font-weight: 800;
    font-size: 1rem;
}

.emp-meta-line,
.emp-single-meta-line,
.emp-einsatz-meta-line {
    font-size: 0.95rem;
    color: var(--emp-muted, #6b7280);
    line-height: 1.6;
}

.emp-meta-sep {
    margin: 0 6px;
    color: #b8bcc2;
}

/* =========================================================
   Faktenleiste
   ========================================================= */

.emp-info-bar,
.emp-einsatz-info-bar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid var(--emp-border, #dcdcde);
    border-bottom: 1px solid var(--emp-border, #dcdcde);
    background: #fff;
}

.emp-info-item,
.emp-einsatz-info-bar .info-item {
    padding: 18px 20px;
    border-right: 1px solid var(--emp-border, #dcdcde);
    min-width: 0;
}

.emp-info-item:last-child,
.emp-einsatz-info-bar .info-item:last-child {
    border-right: 0;
}

.emp-info-item label,
.emp-einsatz-info-bar .info-item label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--emp-muted, #6b7280);
}

.emp-info-item span,
.emp-einsatz-info-bar .info-item span {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--emp-dark, #1d2327);
    word-break: break-word;
}

/* =========================================================
   Inhaltsbereich
   ========================================================= */

.emp-content-body,
.emp-einsatz-content-body {
    padding: 28px;
    display: grid;
    gap: 24px;
}

.emp-block,
.emp-einsatz-block {
    background: #ffffff;
    border: 1px solid var(--emp-border, #dcdcde);
    border-radius: calc(var(--emp-radius, 14px) - 2px);
    padding: 22px;
}

.emp-block h2,
.emp-block h3,
.emp-einsatz-block h2,
.emp-einsatz-block h3 {
    margin: 0 0 14px;
    font-size: 1.15rem;
    line-height: 1.2;
    color: var(--emp-dark, #1d2327);
}

.emp-block .entry-content,
.emp-einsatz-block .entry-content {
    color: #2c3338;
    line-height: 1.65;
}

.emp-block .entry-content > :first-child,
.emp-einsatz-block .entry-content > :first-child {
    margin-top: 0;
}

.emp-block .entry-content > :last-child,
.emp-einsatz-block .entry-content > :last-child {
    margin-bottom: 0;
}

.emp-block .entry-content a,
.emp-einsatz-block .entry-content a {
    color: var(--emp-primary, #d63638);
    text-decoration: none;
}

.emp-block .entry-content a:hover,
.emp-block .entry-content a:focus,
.emp-einsatz-block .entry-content a:hover,
.emp-einsatz-block .entry-content a:focus {
    text-decoration: underline;
}

/* =========================================================
   Badges / Zusatzinfos
   ========================================================= */

.emp-badge-row,
.emp-detail-badges,
.emp-einsatz-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.emp-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    line-height: 1;
}

.emp-badge-fw {
    background: var(--emp-dark, #1d2327);
    color: #fff;
}

.emp-badge-art {
    background: var(--emp-bg-soft, #f6f7f7);
    color: #4b5563;
    border: 1px solid var(--emp-border, #dcdcde);
}

/* =========================================================
   Leerer Zustand
   ========================================================= */

.emp-empty-note {
    color: var(--emp-muted, #6b7280);
    font-style: italic;
    background: #fcfcfc;
    padding: 18px 20px;
    border: 1px dashed #c8ccd0;
    border-radius: 10px;
    line-height: 1.5;
}

/* =========================================================
   Zurück-Link + Lizenz
   ========================================================= */

.emp-back-container {
    margin-top: 18px;
}

.emp-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid var(--emp-border, #dcdcde);
    color: var(--emp-dark, #1d2327);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.emp-back-link:hover,
.emp-back-link:focus {
    color: var(--emp-primary, #d63638);
    border-color: var(--emp-primary, #d63638);
    text-decoration: none;
    transform: translateY(-1px);
}

.emp-license-note {
    margin-top: 22px;
    padding: 14px 16px;
    border: 1px solid var(--emp-border, #dcdcde);
    border-radius: 10px;
    background: #fff;
    color: var(--emp-muted, #6b7280);
    font-size: 0.9rem;
    line-height: 1.5;
}

.emp-license-note a {
    color: var(--emp-primary, #d63638);
    text-decoration: none;
}

.emp-license-note a:hover,
.emp-license-note a:focus {
    text-decoration: underline;
}

/* =========================================================
   Lightbox
   ========================================================= */

.emp-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.82);
}

.emp-lightbox.is-open {
    display: flex;
}

.emp-lightbox img {
    display: block;
    max-width: min(1100px, 100%);
    max-height: 90vh;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(0,0,0,0.35);
}

.emp-lightbox-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    background: rgba(255,255,255,0.95);
    color: #111;
    box-shadow: 0 4px 18px rgba(0,0,0,0.25);
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 980px) {
    .emp-single-hero,
    .emp-einsatz-hero {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 22px;
    }

    .emp-single-image,
    .emp-einsatz-image,
    .emp-single-image img,
    .emp-einsatz-image img,
    .emp-thumb-placeholder,
    .emp-card-thumb--placeholder {
        min-height: 260px;
    }

    .emp-info-bar,
    .emp-einsatz-info-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .emp-info-item:nth-child(2n),
    .emp-einsatz-info-bar .info-item:nth-child(2n) {
        border-right: 0;
    }

    .emp-info-item:nth-child(-n+2),
    .emp-einsatz-info-bar .info-item:nth-child(-n+2) {
        border-bottom: 1px solid var(--emp-border, #dcdcde);
    }

    .emp-content-body,
    .emp-einsatz-content-body {
        padding: 22px;
    }
}

@media (max-width: 640px) {
    .emp-single-wrapper,
    .emp-einsatz-single-wrapper {
        padding: 16px 12px 28px;
    }

    .emp-single-hero,
    .emp-einsatz-hero {
        padding: 16px;
        gap: 16px;
    }

    .emp-content-body,
    .emp-einsatz-content-body {
        padding: 16px;
        gap: 16px;
    }

    .emp-block,
    .emp-einsatz-block {
        padding: 16px;
    }

    .emp-info-bar,
    .emp-einsatz-info-bar {
        grid-template-columns: 1fr;
    }

    .emp-info-item,
    .emp-einsatz-info-bar .info-item {
        border-right: 0;
        border-bottom: 1px solid var(--emp-border, #dcdcde);
        padding: 14px 16px;
    }

    .emp-info-item:last-child,
    .emp-einsatz-info-bar .info-item:last-child {
        border-bottom: 0;
    }

    .emp-single-image,
    .emp-einsatz-image,
    .emp-single-image img,
    .emp-einsatz-image img,
    .emp-thumb-placeholder,
    .emp-card-thumb--placeholder {
        min-height: 220px;
    }

    .emp-single-title,
    .emp-einsatz-title {
        font-size: 1.7rem;
    }

    .emp-lightbox {
        padding: 14px;
    }

    .emp-lightbox-close {
        top: 10px;
        right: 10px;
        width: 42px;
        height: 42px;
    }
}