/*
    Bueren / Karriereseite
    ======================
    Hero, Stellen-Übersicht als Akkordeon-Liste (details/summary),
    aufgeklappter Detailbereich mit Steckbrief und Abschnitten.
*/

/* ---- Hero ---- */

.karriere-hero {
    position: relative;
    overflow: hidden;
    padding-block: 160px 96px;
    background: var(--farbe-primary);
    color: var(--farbe-weiss);
}

.karriere-hero__bild {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
}

.karriere-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(36, 46, 87, 0.88), rgba(36, 46, 87, 0.3));
}

.karriere-hero__muster {
    position: absolute;
    inset: 0;
    opacity: 0.18;
}

.karriere-hero__inhalt {
    position: relative;
    max-width: 920px;
}

.karriere-hero__label {
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--farbe-secondary-fixed);
}

.karriere-hero__headline {
    max-width: 820px;
    font-size: clamp(40px, 7vw, 76px);
    font-weight: 700;
    line-height: 0.98;
}

.karriere-hero__text {
    max-width: 720px;
    margin-top: 24px;
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
}

/* ---- Stellen-Sektion ---- */

.stellen {
    padding-block: 80px 96px;
    background: var(--farbe-surface);
}

.stellen__intro {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 48px;
}

.stellen__label,
.stelle__abschnitt-label {
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--farbe-secondary);
}

.stellen__headline {
    max-width: 620px;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--farbe-primary);
}

.stellen__text {
    max-width: 620px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--farbe-on-surface-variant);
}

.stellen__liste {
    display: grid;
    gap: 8px;
}

/* ---- Stelle: Akkordeon ---- */

.stelle {
    border: 1px solid var(--farbe-outline-variant);
    background: var(--farbe-surface-container-lowest);
    transition: box-shadow 0.2s;
}

.stelle[open] {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* Karte (summary) */

.stelle__karte {
    display: flex;
    align-items: stretch;
    list-style: none;
    cursor: pointer;
    transition: background 0.15s;
}

.stelle__karte::-webkit-details-marker {
    display: none;
}

.stelle__karte:hover {
    background: var(--farbe-surface-container-low);
}

/* 4:3 Bild */

.stelle__karte-bild-wrap {
    flex-shrink: 0;
    width: 200px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--farbe-surface-container-low);
}

.stelle__karte-bild {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.stelle__karte-platzhalter {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--farbe-secondary);
    font-size: 36px;
}

/* Text-Bereich der Karte */

.stelle__karte-text {
    flex: 1;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.stelle__meta {
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--farbe-on-surface-variant);
}

.stelle__titel {
    font-size: clamp(18px, 2.2vw, 26px);
    font-weight: 600;
    line-height: 1.2;
    color: var(--farbe-primary);
}

.stelle__kurzbeschreibung {
    margin-top: 8px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--farbe-on-surface-variant);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Chevron */

.stelle__karte-pfeil {
    display: flex;
    align-items: center;
    padding: 0 20px;
    font-size: 22px;
    color: var(--farbe-secondary);
    flex-shrink: 0;
    transition: transform 0.25s ease;
    font-variation-settings: 'wght' 300;
}

.stelle[open] .stelle__karte-pfeil {
    transform: rotate(180deg);
}

/* ---- Aufgeklapptes Panel ---- */

.stelle__panel {
    border-top: 1px solid var(--farbe-outline-variant);
}

.stelle__panel-layout {
    display: grid;
    grid-template-columns: 1fr;
}

/* Steckbrief */

.stelle__steckbrief {
    background: var(--farbe-surface-container-low);
}

.stelle__steckbrief h4 {
    padding: 20px 18px 0;
    font-size: 16px;
    color: var(--farbe-primary);
}

.stelle__steckbrief dl {
    margin: 16px 0 0;
    border-top: 1px solid var(--farbe-outline-variant);
    border-left: 1px solid var(--farbe-outline-variant);
}

.stelle__steckbrief dl div {
    padding: 14px 18px;
    border-right: 1px solid var(--farbe-outline-variant);
    border-bottom: 1px solid var(--farbe-outline-variant);
}

.stelle__steckbrief dt {
    margin-bottom: 4px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--farbe-on-surface-variant);
}

.stelle__steckbrief dd {
    margin: 0;
    font-size: 15px;
    line-height: 1.35;
    color: var(--farbe-primary);
}

/* Inhalt (rechts vom Steckbrief) */

.stelle__inhalt {
    padding: 28px;
}

.stelle__panel-bild-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--farbe-surface-container-low);
    margin-bottom: 28px;
}

.stelle__panel-bild {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.stelle__aktionen {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-bottom: 32px;
}


.stelle__abschnitte {
    display: grid;
    gap: 24px;
}

.stelle__abschnitt {
    padding-top: 24px;
    border-top: 1px solid var(--farbe-outline-variant);
}

.stelle__abschnitt:first-child {
    padding-top: 0;
    border-top: 0;
}

.stelle__abschnitt h4 {
    max-width: 680px;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--farbe-primary);
}

.stelle__abschnitt-text {
    max-width: 780px;
    margin-top: 14px;
    font-size: 16px;
    line-height: 1.75;
    color: var(--farbe-on-surface-variant);
}

.stelle__abschnitt-text p + p,
.stelle__abschnitt-text ul + p,
.stelle__abschnitt-text p + ul {
    margin-top: 14px;
}

.stellentext-liste {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.stellentext-liste li {
    padding-left: 20px;
    position: relative;
}

.stellentext-liste li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--farbe-secondary);
}

/* Leer-Zustand */

.stellen__leer {
    padding: 28px;
    border: 1px solid var(--farbe-outline-variant);
    background: var(--farbe-surface-container-lowest);
    color: var(--farbe-on-surface-variant);
}

/* ---- Responsive ---- */

@media (min-width: 600px) {
    .stellen__intro {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
        align-items: end;
    }

    .stelle__karte-bild-wrap {
        width: 240px;
    }
}

@media (min-width: 900px) {
    .stelle__panel-layout {
        grid-template-columns: minmax(220px, 0.32fr) minmax(0, 0.68fr);
        align-items: start;
    }

    .stelle__karte-bild-wrap {
        width: 260px;
    }

    .stelle__inhalt {
        padding: 36px 40px;
    }
}

@media (max-width: 480px) {
    .stelle__karte {
        flex-direction: column;
    }

    .stelle__karte-bild-wrap {
        width: 100%;
    }

    .stelle__karte-pfeil {
        display: none;
    }
}
