/* ============================================================
   DCL Stellenangebote – Stylesheet v1.0.3
   Design: Stellenanzeige-Style, #4a4a4a Hintergrund
   ============================================================ */



@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
    --dcl-bg:            #4a4a4a;
    --dcl-surface:       #3a3a3a;
    --dcl-surface2:      #404040;
    --dcl-surface3:      #525252;
    --dcl-border:        rgba(255,255,255,0.12);
    --dcl-border-strong: rgba(255,255,255,0.22);
    --dcl-accent:        #e8e8e8;
    --dcl-accent-dark:   #ffffff;
    --dcl-featured:      #85d000;
    --dcl-featured-bg:   rgba(133,208,0,0.12);
    --dcl-featured-border: rgba(133,208,0,0.4);
    --dcl-text:          #ffffff;
    --dcl-text-muted:    #c8c8c8;
    --dcl-text-subtle:   #909090;
    --dcl-green:         #85d000;
    --dcl-green-bg:      rgba(133,208,0,0.12);
    --dcl-green-border:  rgba(133,208,0,0.35);
    --dcl-radius:        8px;
    --dcl-radius-lg:     12px;
    --dcl-shadow:        0 2px 8px rgba(0,0,0,0.3), 0 1px 3px rgba(0,0,0,0.2);
    --dcl-shadow-hover:  0 6px 24px rgba(0,0,0,0.5), 0 2px 8px rgba(255,255,255,0.08);
    --dcl-font-head:     'DM Sans', sans-serif;
    --dcl-font-body:     'DM Sans', sans-serif;
    --dcl-transition:    0.18s cubic-bezier(0.4,0,0.2,1);
}

/* ── Reset ─────────────────────────────────── */
.dcl-jobs-wrapper *,
.dcl-single-job-wrapper * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ═══════════════════════════════════════════
   LIST: Wrapper & Grid
═══════════════════════════════════════════ */
.dcl-jobs-wrapper {
    font-family: var(--dcl-font-body);
    color: var(--dcl-text);
    background: var(--dcl-bg);
    padding: 28px;
    border-radius: var(--dcl-radius-lg);
}

.dcl-jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
    justify-content: center;
    margin: 0 auto;
}

/* Wrapper: max-width begrenzen und zentrieren damit rechts kein Leerraum */
.dcl-jobs-wrapper {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Bei 1-2 Karten: zentriert und nicht zu breit */
.dcl-jobs-grid .dcl-job-card {
    max-width: 100%;
}
.dcl-jobs-grid:has(.dcl-job-card:first-child:nth-last-child(1)) {
    grid-template-columns: minmax(300px, 560px);
    justify-items: center;
}
.dcl-jobs-grid:has(.dcl-job-card:first-child:nth-last-child(2)),
.dcl-jobs-grid:has(.dcl-job-card:first-child:nth-last-child(2)) ~ * {
    grid-template-columns: repeat(2, minmax(0, 560px));
    justify-content: center;
}

/* Zentrierung bei wenigen Karten (JS-Fallback) */
.dcl-jobs-grid.dcl-grid-single {
    grid-template-columns: minmax(300px, 560px) !important;
    justify-content: center;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}
.dcl-jobs-grid.dcl-grid-two {
    grid-template-columns: repeat(2, minmax(0, 560px)) !important;
    justify-content: center;
    max-width: calc(560px * 2 + 18px);
    margin-left: auto;
    margin-right: auto;
}

/* ── Job Card ───────────────────────────────── */
.dcl-job-card {
    background: var(--dcl-surface);
    border: 1px solid var(--dcl-border);
    border-radius: var(--dcl-radius-lg);
    position: relative;
    overflow: hidden;
    transition: transform var(--dcl-transition), border-color var(--dcl-transition), box-shadow var(--dcl-transition);
    box-shadow: var(--dcl-shadow);
    animation: dcl-fade-up 0.35s ease both;
    display: flex;
    flex-direction: column;
}
.dcl-job-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255,255,255,0.4);
    box-shadow: var(--dcl-shadow-hover);
}
.dcl-job-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--dcl-featured), transparent);
    opacity: 0;
    transition: opacity var(--dcl-transition);
}
.dcl-job-card:hover::before { opacity: 1; }

/* Featured */
.dcl-job-featured {
    border-color: var(--dcl-featured-border);
}
.dcl-job-featured::before { opacity: 1; }
.dcl-job-featured:hover {
    box-shadow: 0 6px 24px rgba(133,208,0,0.2), 0 2px 8px rgba(0,0,0,0.3);
}

.dcl-job-featured-badge {
    position: absolute;
    top: 12px; right: 12px;
    background: var(--dcl-featured-bg);
    border: 1px solid var(--dcl-featured-border);
    border-radius: 4px;
    color: var(--dcl-featured);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 3px 9px;
    font-family: var(--dcl-font-head);
}

.dcl-job-card-inner {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.dcl-job-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dcl-job-icon {
    font-size: 24px;
    width: 46px; height: 46px;
    background: var(--dcl-surface2);
    border: 1px solid var(--dcl-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background var(--dcl-transition), border-color var(--dcl-transition);
}
.dcl-job-card:hover .dcl-job-icon {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.3);
}

.dcl-job-meta-top {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dcl-job-department {
    font-size: 10px;
    font-weight: 700;
    color: var(--dcl-featured);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: var(--dcl-font-head);
}

.dcl-job-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    border: 1px solid;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--dcl-font-head);
}
.dcl-badge-employment {
    background: var(--dcl-green-bg);
    border-color: var(--dcl-green-border);
    color: var(--dcl-green);
}

.dcl-job-title {
    font-family: var(--dcl-font-head);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.dcl-job-title a {
    color: var(--dcl-text);
    text-decoration: none;
    transition: color var(--dcl-transition);
}
.dcl-job-title a:hover { color: #ffffff; }

.dcl-job-excerpt {
    color: var(--dcl-text-muted);
    font-size: 13.5px;
    line-height: 1.65;
    flex-grow: 1;
}

.dcl-job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.dcl-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--dcl-surface2);
    border: 1px solid var(--dcl-border);
    border-radius: 4px;
    color: var(--dcl-text-muted);
    font-size: 12px;
    padding: 3px 9px;
    font-weight: 500;
}
.dcl-tag-icon { font-size: 11px; }
.dcl-tag-salary {
    background: var(--dcl-green-bg);
    border-color: var(--dcl-green-border);
    color: var(--dcl-green);
    font-weight: 600;
}

.dcl-job-card-footer {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.dcl-job-deadline {
    background: rgba(133,208,0,0.06);
    border-top: 1px solid var(--dcl-featured-border);
    color: var(--dcl-featured);
    font-size: 11px;
    font-family: var(--dcl-font-head);
    letter-spacing: 0.5px;
    padding: 7px 22px;
    text-align: right;
    text-transform: uppercase;
}

/* ── Buttons ────────────────────────────────── */
.dcl-btn-details {
    background: transparent;
    border: 1px solid var(--dcl-border-strong);
    border-radius: 6px;
    color: var(--dcl-text-muted);
    font-family: var(--dcl-font-head);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 8px 14px;
    text-decoration: none;
    transition: all var(--dcl-transition);
    flex: 1;
    text-align: center;
    display: inline-block;
    text-transform: uppercase;
}
.dcl-btn-details:hover {
    border-color: var(--dcl-featured);
    color: var(--dcl-featured);
}

.dcl-btn-apply {
    background: var(--dcl-featured);
    border: none;
    border-radius: 6px;
    color: #1a1a1a !important;
    cursor: pointer;
    font-family: var(--dcl-font-head);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.8px;
    padding: 8px 16px;
    text-decoration: none;
    transition: all var(--dcl-transition);
    flex: 1;
    text-align: center;
    display: inline-block;
    text-transform: uppercase;
}
.dcl-btn-apply:hover,
.dcl-btn-apply:focus {
    background: #ffffff !important;
    background-image: none !important;
    color: #1a1a1a !important;
    box-shadow: 0 4px 14px rgba(255,255,255,0.25) !important;
    transform: translateY(-1px);
}
.dcl-btn-apply:active { transform: translateY(0); }
.dcl-notice-apply .dcl-btn-apply:hover,
.dcl-notice-apply .dcl-btn-apply:focus {
    background: #ffffff !important;
    background-image: none !important;
    color: #1a1a1a !important;
}
.dcl-btn-full { width: 100%; display: block; text-align: center; flex: none; }
.dcl-btn-large { font-size: 15px; padding: 13px 28px; border-radius: 8px; }

/* ── Empty State ────────────────────────────── */
.dcl-jobs-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 56px 24px;
    color: var(--dcl-text-muted);
    background: var(--dcl-surface);
    border: 1px dashed var(--dcl-border);
    border-radius: var(--dcl-radius-lg);
}
.dcl-jobs-empty-icon { font-size: 48px; margin-bottom: 14px; }
.dcl-jobs-empty h3 {
    font-family: var(--dcl-font-head);
    font-size: 22px;
    font-weight: 700;
    color: var(--dcl-text);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.dcl-jobs-empty p { font-size: 14px; margin-bottom: 22px; }

/* ── Animations ─────────────────────────────── */
@keyframes dcl-fade-up {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
.dcl-jobs-grid .dcl-job-card:nth-child(1) { animation-delay: 0.04s; }
.dcl-jobs-grid .dcl-job-card:nth-child(2) { animation-delay: 0.09s; }
.dcl-jobs-grid .dcl-job-card:nth-child(3) { animation-delay: 0.14s; }
.dcl-jobs-grid .dcl-job-card:nth-child(4) { animation-delay: 0.19s; }
.dcl-jobs-grid .dcl-job-card:nth-child(5) { animation-delay: 0.24s; }
.dcl-jobs-grid .dcl-job-card:nth-child(6) { animation-delay: 0.29s; }

/* ═══════════════════════════════════════════
   SINGLE JOB – Stellenanzeige-Layout
═══════════════════════════════════════════ */
.dcl-single-job-wrapper {
    font-family: var(--dcl-font-body);
    color: var(--dcl-text);
    background: var(--dcl-bg);
    min-height: 80vh;
}

/* ── Zurück-Link ─────────────────────────────── */
.dcl-single-top-bar {
    background: var(--dcl-surface);
    border-bottom: 1px solid var(--dcl-border);
    padding: 12px 32px;
}
.dcl-back-link {
    color: var(--dcl-text-muted);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    font-family: var(--dcl-font-head);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color var(--dcl-transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.dcl-back-link:hover { color: var(--dcl-featured); }

/* ── Stellenanzeige Container ────────────────── */
.dcl-job-notice {
    max-width: 780px;
    margin: 32px auto;
    padding: 0 24px 40px;
}

/* Kopfbereich – Firmenlogo + Titel */
.dcl-notice-head {
    background: var(--dcl-surface);
    border: 1px solid var(--dcl-border);
    border-bottom: 3px solid var(--dcl-featured);
    border-radius: var(--dcl-radius-lg) var(--dcl-radius-lg) 0 0;
    padding: 32px 36px 28px;
    position: relative;
}
.dcl-notice-company-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}
.dcl-notice-company-icon {
    font-size: 28px;
    width: 52px; height: 52px;
    background: var(--dcl-featured-bg);
    border: 1px solid var(--dcl-featured-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.dcl-notice-company-name {
    font-family: var(--dcl-font-head);
    font-size: 13px;
    font-weight: 700;
    color: var(--dcl-featured);
    text-transform: uppercase;
    letter-spacing: 2px;
}
.dcl-notice-company-loc {
    font-size: 12px;
    color: var(--dcl-text-subtle);
    margin-top: 2px;
}
.dcl-notice-featured-pill {
    position: absolute;
    top: 20px; right: 24px;
    background: var(--dcl-featured-bg);
    border: 1px solid var(--dcl-featured-border);
    border-radius: 4px;
    color: var(--dcl-featured);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 12px;
    font-family: var(--dcl-font-head);
}

.dcl-notice-eyebrow {
    font-family: var(--dcl-font-head);
    font-size: 12px;
    font-weight: 600;
    color: var(--dcl-featured);
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 10px;
}
.dcl-notice-title {
    font-family: var(--dcl-font-head);
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 700;
    line-height: 1.15;
    color: var(--dcl-text);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}
.dcl-notice-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.dcl-notice-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--dcl-surface2);
    border: 1px solid var(--dcl-border);
    border-radius: 4px;
    color: var(--dcl-text-muted);
    font-size: 12px;
    font-weight: 500;
    padding: 4px 12px;
}
.dcl-notice-tag.highlight {
    background: var(--dcl-green-bg);
    border-color: var(--dcl-green-border);
    color: var(--dcl-green);
    font-weight: 600;
}

/* ── Inhalt ──────────────────────────────────── */
.dcl-notice-body {
    background: var(--dcl-surface);
    border: 1px solid var(--dcl-border);
    border-top: none;
    padding: 36px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--dcl-text-muted);
}
.dcl-notice-body h2,
.dcl-notice-body h3,
.dcl-notice-body h4 {
    font-family: var(--dcl-font-head);
    color: var(--dcl-text);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 28px 0 10px;
    line-height: 1.3;
}
.dcl-notice-body h2 {
    font-size: 18px;
    border-bottom: 1px solid var(--dcl-border);
    padding-bottom: 8px;
    color: var(--dcl-featured);
}
.dcl-notice-body h3 { font-size: 15px; }
.dcl-notice-body p  { margin-bottom: 14px; }
.dcl-notice-body ul, .dcl-notice-body ol {
    padding-left: 20px;
    margin-bottom: 14px;
}
.dcl-notice-body li { margin-bottom: 5px; }
.dcl-notice-body li::marker { color: var(--dcl-featured); }
.dcl-notice-body strong { color: var(--dcl-text); font-weight: 600; }
.dcl-notice-body a { color: var(--dcl-featured); }

/* ── Bewerbungs-Box ──────────────────────────── */
.dcl-notice-apply {
    background: var(--dcl-surface);
    border: 1px solid var(--dcl-border);
    border-top: 3px solid var(--dcl-featured);
    border-radius: 0 0 var(--dcl-radius-lg) var(--dcl-radius-lg);
    padding: 32px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.dcl-notice-apply-text h3 {
    font-family: var(--dcl-font-head);
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--dcl-text);
    margin-bottom: 6px;
}
.dcl-notice-apply-text p {
    font-size: 13.5px;
    color: var(--dcl-text-muted);
    line-height: 1.5;
}
.dcl-notice-apply-text p a {
    color: var(--dcl-featured);
    text-decoration: none;
    font-weight: 600;
}
.dcl-notice-apply-deadline {
    font-size: 12px;
    color: var(--dcl-featured);
    font-family: var(--dcl-font-head);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 8px;
}
.dcl-notice-apply-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 180px;
}

/* ── Responsive – body-Prefix für hohe Spezifität ─── */

@media only screen and (max-width: 900px) {
    body .dcl-jobs-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
}

@media only screen and (max-width: 600px) {
    body .dcl-jobs-wrapper {
        padding: 12px;
        border-radius: 8px;
        box-sizing: border-box;
    }
    body .dcl-jobs-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        width: 100%;
    }
    body .dcl-job-card {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
    }
    body .dcl-job-card-inner {
        padding: 14px;
        gap: 10px;
    }
    body .dcl-job-card-top {
        display: flex;
        align-items: flex-start;
        gap: 10px;
    }
    body .dcl-job-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
        flex-shrink: 0;
        min-width: 36px;
    }
    body .dcl-job-meta-top {
        min-width: 0;
        overflow: hidden;
    }
    body .dcl-job-department {
        font-size: 9px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    body .dcl-job-title,
    body .dcl-job-title a {
        font-size: 14px;
        line-height: 1.3;
        word-break: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        -webkit-hyphens: auto;
        white-space: normal;
    }
    body .dcl-job-excerpt {
        font-size: 12.5px;
        line-height: 1.5;
    }
    body .dcl-job-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
    }
    body .dcl-tag {
        font-size: 11px;
        padding: 2px 7px;
        white-space: nowrap;
    }
    body .dcl-job-card-footer {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    body .dcl-btn-details,
    body .dcl-btn-apply {
        display: block;
        width: 100%;
        text-align: center;
        flex: none;
        padding: 10px 14px;
        box-sizing: border-box;
    }
    body .dcl-job-featured-badge {
        font-size: 9px;
        padding: 2px 7px;
        top: 8px;
        right: 8px;
    }
    body .dcl-job-deadline {
        font-size: 10.5px;
        padding: 6px 16px;
    }
}

@media only screen and (max-width: 700px) {
    body .dcl-job-notice         { padding: 0 10px 28px; }
    body .dcl-notice-head        { padding: 18px 14px; }
    body .dcl-notice-body        { padding: 18px 14px; }
    body .dcl-notice-apply       { padding: 18px 14px; flex-direction: column; gap: 16px; }
    body .dcl-notice-apply-actions { width: 100%; min-width: 0; }
    body .dcl-btn-apply.dcl-btn-large,
    body .dcl-btn-details        { width: 100%; text-align: center; display: block; box-sizing: border-box; }
    body .dcl-notice-title       { font-size: 18px; word-break: break-word; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; white-space: normal; }
    body .dcl-notice-company-row { gap: 10px; }
    body .dcl-notice-company-icon { width: 40px; height: 40px; font-size: 20px; }
    body .dcl-notice-tags        { gap: 6px; flex-wrap: wrap; }
    body .dcl-notice-tag         { font-size: 12px; padding: 4px 10px; }
    body .dcl-single-top-bar     { padding: 10px 14px; }
}
