/* ============================================
   Karriere: Stellenanzeige und dezentes Popup
   ============================================ */

.tremml-job-page {
    display: grid;
    gap: 24px;
    max-width: 1180px;
    margin: 0 auto;
    color: rgba(247, 247, 242, .82);
}

.tremml-job-hero,
.tremml-job-panel,
.tremml-job-apply {
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .045) 0%, rgba(255, 255, 255, .02) 100%),
        #24261f;
    box-shadow:
        0 18px 40px rgba(0, 0, 0, .24),
        inset 0 1px 0 rgba(255, 255, 255, .03);
}

.tremml-job-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(28px, 5vw, 58px);
}

.tremml-job-hero::after {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    right: -110px;
    bottom: -180px;
    border-radius: 50%;
    background: rgba(244, 226, 37, .1);
    filter: blur(2px);
    pointer-events: none;
}

.tremml-job-kicker {
    display: inline-flex;
    margin: 0 0 14px;
    color: var(--t-yellow);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.tremml-job-title {
    position: relative;
    z-index: 1;
    max-width: 840px;
    margin: 0;
    color: #f7f7f2;
    font-size: clamp(2rem, 4.5vw, 4rem);
    font-weight: 900;
    letter-spacing: -.045em;
    line-height: 1.02;
}

.tremml-job-lead {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 22px 0 0;
    color: rgba(247, 247, 242, .82);
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    line-height: 1.7;
}

.tremml-job-actions,
.tremml-job-apply__actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.tremml-job-page .tremml-job-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    border: 1px solid rgba(244, 226, 37, .3);
    border-radius: 999px;
    background: var(--t-yellow);
    color: #191a15;
    font-weight: 800;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.tremml-job-page .tremml-job-button:hover,
.tremml-job-page .tremml-job-button:focus {
    color: #191a15;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(244, 226, 37, .18);
}

.tremml-job-page .tremml-job-button--secondary {
    border-color: rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .04);
    color: #f7f7f2;
}

.tremml-job-page .tremml-job-button--secondary:hover,
.tremml-job-page .tremml-job-button--secondary:focus {
    color: #f7f7f2;
}

.tremml-job-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.tremml-job-panel {
    padding: 30px;
}

.tremml-job-panel--wide {
    grid-column: 1 / -1;
}

.tremml-job-heading {
    margin: 0 0 16px;
    color: #f7f7f2;
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    font-weight: 900;
    letter-spacing: -.03em;
    line-height: 1.12;
}

.tremml-job-panel p,
.tremml-job-panel li,
.tremml-job-apply p {
    color: rgba(247, 247, 242, .78);
    line-height: 1.72;
}

.tremml-job-page .tremml-job-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none !important;
}

.tremml-job-page .tremml-job-list li {
    position: relative;
    margin: 0;
    padding: 0 0 0 30px;
    list-style: none !important;
}

.tremml-job-page .tremml-job-list li::marker {
    content: '';
}

.tremml-job-page .tremml-job-list li::before {
    content: '✓';
    position: absolute;
    top: .05em;
    left: 0;
    color: var(--t-yellow);
    font-size: .88em;
    font-weight: 900;
}

.tremml-job-apply {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 34px;
}

.tremml-job-apply__copy {
    max-width: 660px;
}

.tremml-job-apply__copy p:last-child {
    margin-bottom: 0;
}

/* Textbasiertes Karriere-Popup */
.tremml-job-popup {
    position: fixed;
    z-index: 1050;
    right: 24px;
    bottom: 82px;
    width: min(390px, calc(100vw - 32px));
    overflow: hidden;
    border: 1px solid rgba(244, 226, 37, .28);
    border-radius: 22px;
    background: #23251f;
    box-shadow: 0 22px 60px rgba(0, 0, 0, .42);
    opacity: 0;
    transform: translateY(22px) scale(.98);
    pointer-events: none;
    transition: opacity .26s ease, transform .26s ease;
}

.tremml-job-popup.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.tremml-job-popup::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 5px;
    background: var(--t-yellow);
}

.tremml-job-popup__link {
    display: block;
    color: #f7f7f2;
    text-decoration: none;
}

.tremml-job-popup__link:hover,
.tremml-job-popup__link:focus {
    color: #f7f7f2;
    text-decoration: none;
}

.tremml-job-popup__media {
    display: block;
    overflow: hidden;
    aspect-ratio: 1200 / 677;
    background: #1b1d18;
}

.tremml-job-popup__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tremml-job-popup__content {
    display: grid;
    gap: 8px;
    padding: 22px 26px 24px;
}

.tremml-job-popup__kicker {
    color: var(--t-yellow);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.tremml-job-popup__title {
    color: #fff;
    font-size: 1.18rem;
    font-weight: 900;
    letter-spacing: -.02em;
    line-height: 1.25;
}

.tremml-job-popup__facts {
    color: rgba(247, 247, 242, .7);
    font-size: .8rem;
    font-weight: 700;
}

.tremml-job-popup__copy {
    color: rgba(247, 247, 242, .76);
    font-size: .9rem;
    line-height: 1.55;
}

.tremml-job-popup__cta {
    margin-top: 5px;
    color: var(--t-yellow);
    font-weight: 800;
}

.tremml-job-popup__close {
    position: absolute;
    z-index: 2;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
    color: rgba(255, 255, 255, .72);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.tremml-job-popup__close:hover,
.tremml-job-popup__close:focus {
    background: rgba(255, 255, 255, .13);
    color: #fff;
    outline: none;
}

.tremml-job-popup__mini {
    display: none;
}

.tremml-job-popup.is-minimized {
    width: auto;
    overflow: hidden;
    border-radius: 999px;
}

.tremml-job-popup.is-minimized::before,
.tremml-job-popup.is-minimized .tremml-job-popup__link,
.tremml-job-popup.is-minimized .tremml-job-popup__close {
    display: none;
}

.tremml-job-popup.is-minimized .tremml-job-popup__mini {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 52px;
    padding: 0 18px;
    background: #23251f;
    color: #f7f7f2;
    font-size: .9rem;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease;
}

.tremml-job-popup.is-minimized .tremml-job-popup__mini:hover,
.tremml-job-popup.is-minimized .tremml-job-popup__mini:focus {
    background: #2d3028;
    color: #fff;
    text-decoration: none;
    outline: none;
}

.tremml-job-popup__mini-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--t-yellow);
    box-shadow: 0 0 0 4px rgba(244, 226, 37, .1);
}

.tremml-job-popup__mini-arrow {
    color: var(--t-yellow);
    font-size: 1.05rem;
}

@media (max-width: 991.98px) {
    .tremml-job-apply {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 767.98px) {
    .tremml-job-page {
        gap: 18px;
    }

    .tremml-job-grid {
        grid-template-columns: 1fr;
    }

    .tremml-job-hero,
    .tremml-job-panel,
    .tremml-job-apply {
        padding: 20px;
        border-radius: 18px;
    }

    .tremml-job-actions,
    .tremml-job-apply__actions,
    .tremml-job-button {
        width: 100%;
    }

    .tremml-job-popup {
        right: 16px;
        bottom: 76px;
        left: 16px;
        width: auto;
        border-radius: 18px;
    }

    .tremml-job-popup.is-minimized {
        right: 16px;
        left: auto;
        width: auto;
        max-width: calc(100vw - 32px);
        border-radius: 999px;
    }

    .tremml-job-popup__link {
        padding: 0;
    }

    .tremml-job-popup__content {
        padding: 20px 22px 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tremml-job-popup,
    .tremml-job-button {
        transition: none;
    }
}
