/* ============================================================
   Modulseiten im neuen Aufbau (Pilot: Ticketsystem)
   Kopf mit Screenshot, Funktionskarten, Galerie mit Reitern, Details, Abschluss.
   Alle Klassen mit lm- praefixiert.
   ============================================================ */

.lm-seite {
    /* Farben kommen aus css/rahmen.css und folgen dem Schalter hell/dunkel */
    --lm-orange: var(--ln-orange);
    --lm-orange-hover: var(--ln-orange-hover);
    --lm-schwarz: var(--ln-schwarz);
    --lm-anthrazit: var(--ln-anthrazit);
    --lm-text: var(--ln-text);
    --lm-text-2: var(--ln-text-2);
    --lm-text-3: var(--ln-text-3);
    --lm-linie: var(--ln-linie);
    --lm-flaeche: var(--ln-flaeche);
    --lm-radius: 14px;
    background: var(--ln-grund);
    color: var(--lm-text);
}

    .lm-seite h1, .lm-seite h2, .lm-seite h3 {
        color: var(--lm-text);
    }

.lm-innen {
    max-width: 1240px;
    margin: 0 auto;
    padding-left: clamp(16px, 4vw, 56px);
    padding-right: clamp(16px, 4vw, 56px);
}

/* ---------- Kopf ---------- */
.lm-kopf {
    background: radial-gradient(900px 520px at 78% 8%, var(--ln-marke) 0%, transparent 62%), var(--ln-grund);
    /* Platz für die schwebende Leiste */
    padding-top: clamp(110px, 11vw, 150px);
    padding-bottom: clamp(32px, 5vw, 64px);
}

.lm-kopf__raster {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
}

/* Mockup im Kopf: Foto mit Monitor, ohne Fensterrahmen */
.lm-kopf__bild {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--lm-radius);
    box-shadow: 0 30px 60px -28px rgba(16, 24, 40, .35);
}

.lm-pfad {
    font-size: .875rem;
    color: var(--lm-text-3);
    margin-bottom: 12px;
}

    .lm-pfad a {
        color: var(--lm-text-3);
        text-decoration: none;
    }

        .lm-pfad a:hover {
            color: var(--lm-text);
        }

    .lm-pfad b {
        color: var(--lm-text);
        font-weight: 600;
    }

.lm-kopf h1 {
    font-size: clamp(2rem, 1.2rem + 2.2vw, 3rem);
    line-height: 1.08;
    font-weight: 700;
    margin: 0 0 10px;
    letter-spacing: -.01em;
    /* FocusOnNavigate setzt den Fokus auf die H1, ohne Rahmen wie auf der Startseite */
    outline: none;
}

.lm-kopf__unterzeile {
    font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem);
    color: var(--lm-text-2);
    margin: 0 0 16px;
    text-wrap: balance;
}

.lm-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.lm-chip {
    background: var(--ln-marke);
    color: var(--ln-akzent);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: .8125rem;
    font-weight: 600;
}

.lm-kopf__text {
    color: var(--lm-text-2);
    line-height: 1.6;
    margin: 0 0 24px;
    max-width: 52ch;
}

.lm-aktionen {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.lm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .15s, border-color .15s;
}

.lm-btn--primaer {
    background: var(--lm-orange);
    color: var(--lm-schwarz);
}

    .lm-btn--primaer:hover {
        background: var(--lm-orange-hover);
        color: var(--lm-schwarz);
    }

.lm-btn--sekundaer {
    background: var(--ln-karte);
    color: var(--lm-text);
    border: 1px solid var(--ln-linie);
}

    .lm-btn--sekundaer:hover {
        border-color: var(--lm-text-3);
        color: var(--lm-text);
    }

.lm-btn:focus-visible {
    outline: 3px solid var(--lm-orange);
    outline-offset: 3px;
}

/* ---------- Fensterrahmen für Screenshots ---------- */
.lm-rahmen {
    margin: 0;
    background: var(--ln-karte);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 60px -24px rgba(16, 24, 40, .35), 0 0 0 1px var(--lm-linie, #e5e7ea);
}

.lm-rahmen__leiste {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 12px;
    border-bottom: 1px solid var(--lm-linie, #e5e7ea);
    font-size: .75rem;
    color: #6b7178;
}

    .lm-rahmen__leiste i {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #d9dcdf;
    }

    .lm-rahmen__leiste span {
        margin-left: 8px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.lm-rahmen img {
    display: block;
    width: 100%;
    height: auto;
}

/* ---------- Funktionskarten ---------- */
.lm-karten {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    padding-top: 8px;
    padding-bottom: clamp(32px, 5vw, 56px);
}

.lm-karte {
    border: 1px solid var(--lm-linie);
    border-radius: var(--lm-radius);
    padding: 22px;
    background: var(--ln-karte);
}

    .lm-karte h2 {
        font-size: 1.125rem;
        font-weight: 700;
        margin: 14px 0 6px;
    }

    .lm-karte p {
        margin: 0;
        color: var(--lm-text-2);
        line-height: 1.55;
    }

.lm-symbol {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--ln-marke);
    display: grid;
    place-items: center;
}

    .lm-symbol svg {
        width: 22px;
        height: 22px;
        fill: none;
        stroke: var(--ln-akzent);
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

/* ---------- Galerie mit Reitern (ohne JavaScript) ---------- */
.lm-galerie {
    padding-top: clamp(24px, 4vw, 40px);
    padding-bottom: clamp(40px, 6vw, 72px);
}

    .lm-galerie > h2, .lm-details > h2 {
        font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
        font-weight: 700;
        margin: 0 0 16px;
    }

.lm-reiter-wahl {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.lm-reiter {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 2px;
    background: var(--lm-flaeche);
    border-radius: 10px;
    padding: 3px;
    margin-bottom: 20px;
}

    .lm-reiter label {
        padding: 8px 16px;
        border-radius: 8px;
        color: var(--lm-text-3);
        cursor: pointer;
        font-size: .9375rem;
        user-select: none;
    }

        .lm-reiter label:hover {
            color: var(--lm-text);
        }

.lm-panel {
    display: none;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: clamp(20px, 3vw, 40px);
    align-items: start;
}

    .lm-panel h3 {
        font-size: 1.25rem;
        font-weight: 700;
        margin: 4px 0 10px;
    }

    .lm-panel p {
        color: var(--lm-text-2);
        line-height: 1.6;
    }

#lm-r1:checked ~ .lm-reiter label[for=lm-r1],
#lm-r2:checked ~ .lm-reiter label[for=lm-r2],
#lm-r3:checked ~ .lm-reiter label[for=lm-r3],
#lm-r4:checked ~ .lm-reiter label[for=lm-r4] {
    background: var(--ln-karte);
    color: var(--lm-text);
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
}

#lm-r1:checked ~ .lm-panels .lm-panel:nth-child(1),
#lm-r2:checked ~ .lm-panels .lm-panel:nth-child(2),
#lm-r3:checked ~ .lm-panels .lm-panel:nth-child(3),
#lm-r4:checked ~ .lm-panels .lm-panel:nth-child(4) {
    display: grid;
}

.lm-reiter-wahl:focus-visible + * {
    outline: none;
}

#lm-r1:focus-visible ~ .lm-reiter label[for=lm-r1],
#lm-r2:focus-visible ~ .lm-reiter label[for=lm-r2],
#lm-r3:focus-visible ~ .lm-reiter label[for=lm-r3],
#lm-r4:focus-visible ~ .lm-reiter label[for=lm-r4] {
    outline: 3px solid var(--lm-orange);
    outline-offset: 2px;
}

/* ---------- Details ---------- */
.lm-details {
    background: var(--lm-flaeche);
    padding-top: clamp(40px, 6vw, 72px);
    padding-bottom: clamp(40px, 6vw, 72px);
}

.lm-details__einleitung {
    color: var(--lm-text-2);
    line-height: 1.6;
    max-width: 75ch;
    margin-bottom: 28px;
}

.lm-details__raster {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.lm-abschnitt {
    background: var(--ln-karte);
    border-radius: var(--lm-radius);
    padding: 24px;
}

    .lm-abschnitt h3 {
        font-size: 1.125rem;
        font-weight: 700;
        margin: 0 0 8px;
    }

    .lm-abschnitt p {
        color: var(--lm-text-2);
        line-height: 1.6;
        margin: 0 0 10px;
    }

    .lm-abschnitt ul {
        list-style: none;
        padding: 0;
        margin: 0 0 10px;
    }

    .lm-abschnitt li {
        position: relative;
        padding-left: 22px;
        margin: 6px 0;
        color: var(--lm-text);
    }

        .lm-abschnitt li::before {
            content: "";
            position: absolute;
            left: 0;
            top: .45em;
            width: 11px;
            height: 11px;
            background: var(--lm-orange);
            clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%);
        }

    .lm-abschnitt a {
        color: var(--ln-akzent);
    }

/* ---------- Abschluss ---------- */
.lm-abschluss {
    padding-top: clamp(32px, 5vw, 56px);
    padding-bottom: clamp(32px, 5vw, 56px);
}

.lm-abschluss__band {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px 32px;
    background: #2A2D31;
    color: #fff;
    border-radius: 16px;
    padding: clamp(24px, 3vw, 36px) clamp(20px, 3vw, 40px);
}

    .lm-abschluss__band h2 {
        color: #fff;
        font-size: 1.5rem;
        margin: 0 0 4px;
    }

    .lm-abschluss__band p {
        margin: 0;
        color: #aeb4ba;
    }

    .lm-abschluss__band > div {
        flex: 1 1 320px;
    }

/* ---------- Schmale Bildschirme ---------- */
@media (max-width: 991.98px) {
    .lm-kopf__raster, .lm-panel {
        grid-template-columns: minmax(0, 1fr);
    }

    .lm-karten {
        grid-template-columns: minmax(0, 1fr);
    }

    .lm-details__raster {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 575.98px) {
    .lm-reiter {
        display: flex;
    }

        .lm-reiter label {
            flex: 1 1 auto;
            text-align: center;
            padding: 8px 10px;
        }
}

/* ============================================================
   Ergänzungen für die Plattformseiten (Produkte, BDE, Board, Hive, Modulübersicht)
   ============================================================ */

/* ---------- Weg durch die Fabrik: Wechsel zwischen den Produkten ---------- */
.lm-weg {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: var(--ln-karte);
    border: 1px solid var(--lm-linie);
}

    .lm-weg a {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 6px 14px 6px 6px;
        border-radius: 999px;
        text-decoration: none;
        color: var(--lm-text-2);
        font-size: .875rem;
        font-weight: 600;
        transition: background-color .15s, color .15s;
    }

        .lm-weg a:hover {
            background: var(--ln-marke);
            color: var(--lm-text);
        }

    .lm-weg i {
        display: grid;
        place-items: center;
        width: 26px;
        height: 26px;
        border-radius: 50%;
        font-style: normal;
        font-size: .75rem;
        background: var(--lm-flaeche);
        color: var(--lm-text-3);
    }

    .lm-weg small {
        font-weight: 400;
        color: var(--lm-text-3);
    }

    .lm-weg a.lm-an {
        background: var(--ln-orange);
        color: #181716;
    }

        .lm-weg a.lm-an i {
            background: #181716;
            color: var(--ln-orange);
        }

        .lm-weg a.lm-an small {
            color: #4a3700;
        }

/* ---------- Abschnitte mit Text und Bild im Wechsel ---------- */
.lm-wechsel {
    padding-top: clamp(24px, 4vw, 48px);
    padding-bottom: clamp(24px, 4vw, 48px);
}

    .lm-wechsel > h2, .lm-bilderteil > h2, .lm-modulteil > h2 {
        font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
        font-weight: 700;
        margin: 0 0 8px;
    }

.lm-zeile {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    gap: clamp(24px, 4vw, 64px);
    align-items: center;
    padding: clamp(24px, 4vw, 48px) 0;
}

    .lm-zeile:nth-of-type(even) > :first-child {
        order: 2;
    }

    .lm-zeile h3 {
        font-size: clamp(1.3rem, 1.1rem + .8vw, 1.75rem);
        font-weight: 700;
        line-height: 1.2;
        margin: 0 0 12px;
    }

    .lm-zeile p {
        color: var(--lm-text-2);
        line-height: 1.6;
    }

.lm-nr {
    display: block;
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .1em;
    color: var(--ln-akzent);
    margin-bottom: 6px;
}

.lm-liste {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
}

    .lm-liste li {
        position: relative;
        padding-left: 22px;
        margin: 6px 0;
    }

        .lm-liste li::before {
            content: "";
            position: absolute;
            left: 0;
            top: .45em;
            width: 11px;
            height: 11px;
            background: var(--ln-orange);
            clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%);
        }

    .lm-liste a, .lm-zeile p a, .lm-kopf__text a, .lm-abschnitt p a {
        color: var(--ln-akzent);
    }

.lm-hinweis {
    border-left: 4px solid var(--ln-orange);
    background: var(--ln-marke);
    border-radius: 0 12px 12px 0;
    padding: 12px 16px;
    color: var(--lm-text) !important;
}

/* ---------- Bildergalerie ---------- */
.lm-bilderteil {
    padding-top: clamp(32px, 5vw, 56px);
    padding-bottom: clamp(32px, 5vw, 56px);
}

.lm-bilder {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 18px;
}

    .lm-bilder img {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        object-fit: cover;
        border-radius: 10px;
        border: 1px solid var(--lm-linie);
        cursor: zoom-in;
        transition: transform .2s, box-shadow .2s;
    }

        .lm-bilder img:hover {
            transform: translateY(-3px);
            box-shadow: 0 18px 30px -18px rgba(16, 24, 40, .45);
        }

/* ---------- Produkte in der Übersicht ---------- */
.lm-produkt {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
    padding: clamp(20px, 3vw, 36px);
    margin-top: 20px;
    border-radius: 20px;
    background: var(--ln-karte);
    border: 1px solid var(--lm-linie);
    text-decoration: none;
    color: var(--lm-text);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}

    .lm-produkt:hover {
        transform: translateY(-4px);
        border-color: var(--ln-orange);
        box-shadow: 0 30px 50px -34px rgba(16, 24, 40, .45);
        color: var(--lm-text);
    }

    .lm-produkt:nth-of-type(even) > :first-child {
        order: 2;
    }

    .lm-produkt h3 {
        font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem);
        font-weight: 700;
        margin: 0 0 4px;
    }

    .lm-produkt p {
        color: var(--lm-text-2);
        line-height: 1.6;
    }

    .lm-produkt b.lm-mehr {
        color: var(--ln-akzent);
    }

    .lm-produkt img {
        display: block;
        width: 100%;
        height: auto;
        border-radius: 14px;
    }

/* ---------- Modulübersicht mit Filter (ohne JavaScript) ---------- */
.lm-modulteil {
    padding-top: clamp(24px, 4vw, 40px);
    padding-bottom: clamp(40px, 6vw, 72px);
}

.lm-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 22px;
}

    .lm-filter label {
        border: 1px solid var(--lm-linie);
        background: var(--ln-karte);
        color: var(--lm-text-2);
        border-radius: 999px;
        padding: 8px 16px;
        font-size: .9375rem;
        cursor: pointer;
        user-select: none;
    }

#lm-b0:checked ~ .lm-filter label[for=lm-b0],
#lm-b1:checked ~ .lm-filter label[for=lm-b1],
#lm-b2:checked ~ .lm-filter label[for=lm-b2],
#lm-b3:checked ~ .lm-filter label[for=lm-b3],
#lm-b4:checked ~ .lm-filter label[for=lm-b4],
#lm-b5:checked ~ .lm-filter label[for=lm-b5] {
    background: var(--ln-orange);
    border-color: var(--ln-orange);
    color: #181716;
    font-weight: 600;
}

#lm-b1:checked ~ .lm-modulraster .lm-modul:not([data-b="1"]),
#lm-b2:checked ~ .lm-modulraster .lm-modul:not([data-b="2"]),
#lm-b3:checked ~ .lm-modulraster .lm-modul:not([data-b="3"]),
#lm-b4:checked ~ .lm-modulraster .lm-modul:not([data-b="4"]),
#lm-b5:checked ~ .lm-modulraster .lm-modul:not([data-b="5"]) {
    display: none;
}

#lm-b0:focus-visible ~ .lm-filter label[for=lm-b0],
#lm-b1:focus-visible ~ .lm-filter label[for=lm-b1],
#lm-b2:focus-visible ~ .lm-filter label[for=lm-b2],
#lm-b3:focus-visible ~ .lm-filter label[for=lm-b3],
#lm-b4:focus-visible ~ .lm-filter label[for=lm-b4],
#lm-b5:focus-visible ~ .lm-filter label[for=lm-b5] {
    outline: 3px solid var(--ln-orange);
    outline-offset: 2px;
}

.lm-modulraster {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 18px;
}

.lm-modul {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    background: var(--ln-karte);
    border: 1px solid var(--lm-linie);
    text-decoration: none;
    color: var(--lm-text);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}

    .lm-modul:hover {
        transform: translateY(-4px);
        border-color: var(--ln-orange);
        box-shadow: 0 26px 40px -30px rgba(16, 24, 40, .5);
        color: var(--lm-text);
    }

    .lm-modul img {
        display: block;
        width: 100%;
        aspect-ratio: 16 / 10;
        object-fit: cover;
    }

.lm-modul__text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 18px 18px;
    flex: 1;
}

    .lm-modul__text strong {
        font-size: 1.0625rem;
    }

    .lm-modul__text span {
        color: var(--lm-text-2);
        font-size: .9375rem;
        line-height: 1.45;
    }

.lm-modul__marken {
    display: flex;
    gap: 6px;
    margin-top: auto;
    padding-top: 8px;
}

    .lm-modul__marken i {
        font-style: normal;
        font-size: .6875rem;
        font-weight: 700;
        letter-spacing: .06em;
        border-radius: 999px;
        padding: 2px 9px;
        background: var(--ln-marke);
        color: var(--ln-akzent);
    }

.lm-chipzeile {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

    .lm-chipzeile a {
        text-decoration: none;
        color: var(--lm-text-2);
        border: 1px solid var(--lm-linie);
        background: var(--ln-karte);
        border-radius: 999px;
        padding: 6px 14px;
        font-size: .875rem;
    }

        .lm-chipzeile a:hover {
            border-color: var(--ln-orange);
            background: var(--ln-marke);
            color: var(--lm-text);
        }

@media (max-width: 991.98px) {
    .lm-zeile, .lm-produkt {
        grid-template-columns: minmax(0, 1fr);
    }

        .lm-zeile:nth-of-type(even) > :first-child, .lm-produkt:nth-of-type(even) > :first-child {
            order: 0;
        }

    .lm-weg small {
        display: none;
    }
}

/* Der Ort steht nur beim gewählten Produkt, damit die Leiste in eine Zeile passt */
.lm-weg a:not(.lm-an) small {
    display: none;
}

/* ---------- Umgestellte Modulseiten ---------- */
.lm-kopf__text p, .lm-kopf__text ul {
    margin: 0 0 10px;
}

.lm-kopf__text > :last-child {
    margin-bottom: 0;
}

.lm-abschluss__band a:not(.lm-btn) {
    color: var(--ln-orange);
}

.lm-bilderteil .lm-rahmen--gross {
    max-width: 980px;
    margin-top: 18px;
}

.lm-abschnitt h3 + div, .lm-abschnitt > div {
    color: var(--lm-text-2);
    line-height: 1.6;
}

/* Lange zusammengesetzte Wörter in der Überschrift umbrechen */
.lm-kopf h1 {
    overflow-wrap: break-word;
    font-size: clamp(1.9rem, 1.1rem + 1.9vw, 2.75rem);
    hyphens: auto;
}

/* ============================================================
   Ergänzungen für die Unternehmensseiten (Über uns, Team, Partner, Kontakt, Karriere, Neuigkeiten)
   ============================================================ */

.lm-kopf__bild--video {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #111;
}

/* Kopf ohne Bild: Text mittig */
.lm-kopf--schmal .lm-innen {
    max-width: 860px;
    text-align: center;
}

    .lm-kopf--schmal .lm-chips, .lm-kopf--schmal .lm-aktionen {
        justify-content: center;
    }

    .lm-kopf--schmal .lm-kopf__text {
        max-width: none;
    }

.lm-teil {
    padding-top: clamp(32px, 5vw, 56px);
    padding-bottom: clamp(32px, 5vw, 56px);
}

    .lm-teil > h2 {
        font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
        font-weight: 700;
        margin: 0 0 8px;
    }

.lm-marken {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

/* ---------- Personen: Team und Ansprechpartner ---------- */
.lm-team {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 22px;
    align-items: start;
}

.lm-person {
    border-radius: 18px;
    overflow: hidden;
    background: var(--ln-karte);
    border: 1px solid var(--lm-linie);
    transition: transform .2s, box-shadow .2s;
}

    .lm-person:hover {
        transform: translateY(-4px);
        box-shadow: 0 26px 40px -30px rgba(16, 24, 40, .5);
    }

    .lm-person > img {
        display: block;
        width: 100%;
        /* height-Attribut der Bilder übersteuern, sonst gilt die volle Pixelhöhe */
        height: auto;
        aspect-ratio: 1;
        object-fit: cover;
        background: var(--lm-flaeche);
    }

.lm-person__text {
    padding: 16px 18px 18px;
}

    .lm-person__text h3 {
        font-size: 1.125rem;
        font-weight: 700;
        margin: 0 0 2px;
    }

    .lm-person__text p {
        margin: 0;
        color: var(--lm-text-2);
        font-size: .9375rem;
        line-height: 1.45;
    }

.lm-person__wege {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

    .lm-person__wege a {
        display: grid;
        place-items: center;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: var(--ln-orange);
        transition: transform .15s, background-color .15s;
    }

        .lm-person__wege a:hover {
            transform: translateY(-2px);
            background: var(--ln-orange-hover);
        }

    .lm-person__wege img {
        height: 18px;
        width: auto;
    }

.lm-person details {
    margin-top: 12px;
    border-top: 1px solid var(--lm-linie);
    padding-top: 10px;
}

.lm-person summary {
    cursor: pointer;
    font-weight: 600;
    font-size: .875rem;
    color: var(--ln-akzent);
    list-style: none;
}

    .lm-person summary::-webkit-details-marker {
        display: none;
    }

    .lm-person summary::after {
        content: " ›";
    }

.lm-person details[open] summary::after {
    content: " ‹";
}

.lm-person details div {
    margin-top: 8px;
    color: var(--lm-text-2);
    font-size: .9375rem;
    line-height: 1.55;
}

/* Ansprechpartner quer: Bild links, Text rechts */
.lm-kontakte {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 22px;
}

.lm-person--quer {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: center;
}

    .lm-person--quer > img {
        height: 100%;
    }

.lm-person__zeile {
    margin-top: 10px !important;
    color: var(--lm-text) !important;
}

    .lm-person__zeile span {
        color: var(--ln-akzent);
        font-weight: 600;
        margin-right: 6px;
    }

/* ---------- Partner ---------- */
.lm-partner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: clamp(20px, 4vw, 48px);
    align-items: center;
    padding: clamp(20px, 3vw, 36px);
    margin-top: 20px;
    border-radius: 20px;
    background: var(--ln-karte);
    border: 1px solid var(--lm-linie);
}

    .lm-partner h2, .lm-partner h3 {
        font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
        font-weight: 700;
        margin: 0 0 10px;
    }

    .lm-partner p {
        color: var(--lm-text-2);
        line-height: 1.6;
    }

    .lm-partner a {
        color: var(--ln-akzent);
        font-weight: 600;
    }

    /* Die Logos sind für hellen Grund gemacht */
    .lm-partner > img {
        display: block;
        width: 100%;
        height: auto;
        max-height: 200px;
        object-fit: contain;
        background: #fff;
        border-radius: 14px;
        padding: 16px;
    }

/* ---------- Großes Zitat / Leitsatz ---------- */
.lm-leitsatz {
    max-width: 860px;
    margin: 0 auto;
    font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem);
    line-height: 1.6;
    color: var(--lm-text-2);
}

    .lm-leitsatz p + p {
        margin-top: 1em;
    }

    .lm-leitsatz p:first-child {
        font-size: 1.2em;
        color: var(--lm-text);
        font-weight: 600;
    }

.lm-grafik {
    display: block;
    width: 100%;
    max-width: 980px;
    height: auto;
    margin: 0 auto 28px;
    background: #fff;
    border-radius: 18px;
    border: 1px solid var(--lm-linie);
    padding: 16px;
}

/* ---------- Karriere ---------- */
.lm-vorteile {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.lm-vorteil {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 14px;
    background: var(--ln-karte);
    border: 1px solid var(--lm-linie);
    font-weight: 500;
    transition: transform .2s, border-color .2s;
}

    .lm-vorteil:hover {
        transform: translateY(-3px);
        border-color: var(--ln-orange);
    }

    .lm-vorteil i {
        flex: 0 0 40px;
        height: 40px;
        border-radius: 11px;
        display: grid;
        place-items: center;
        font-style: normal;
        font-size: 1.1rem;
        background: var(--ln-marke);
    }

.lm-ereignis {
    border-radius: 20px;
    padding: clamp(24px, 4vw, 44px);
    background: linear-gradient(120deg, #2A2D31 0%, #3a3320 100%);
    color: #fff;
}

    .lm-ereignis h2 {
        color: #fff;
        font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem);
        margin: 4px 0 12px;
    }

    .lm-ereignis p {
        color: #d5d8dc;
        line-height: 1.6;
        max-width: 75ch;
    }

    .lm-ereignis a {
        color: var(--ln-orange);
        font-weight: 600;
    }

    .lm-ereignis .lm-nr {
        color: var(--ln-orange);
    }

.lm-stellen {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.lm-stelle {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px;
    border-radius: 18px;
    background: var(--ln-karte);
    border: 1px solid var(--lm-linie);
    text-decoration: none;
    color: var(--lm-text);
    transition: transform .2s, border-color .2s, box-shadow .2s;
}

    .lm-stelle:hover {
        transform: translateY(-4px);
        border-color: var(--ln-orange);
        box-shadow: 0 26px 40px -30px rgba(16, 24, 40, .5);
        color: var(--lm-text);
    }

    .lm-stelle h3 {
        font-size: 1.25rem;
        font-weight: 700;
        margin: 0;
    }

    .lm-stelle small {
        color: var(--lm-text-3);
    }

    .lm-stelle p {
        color: var(--lm-text-2);
        line-height: 1.55;
        margin: 4px 0 8px;
    }

    .lm-stelle b {
        margin-top: auto;
        color: var(--ln-akzent);
    }

/* ---------- Eingebettete Inhalte (Terminbuchung, Neuigkeiten) ---------- */
.lm-einbettung {
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--lm-linie);
    margin-top: 20px;
}

@media (max-width: 991.98px) {
    .lm-partner {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 575.98px) {
    .lm-person--quer {
        grid-template-columns: minmax(0, 1fr);
    }
}

.lm-person details p + p {
    margin-top: 8px;
}

/* Partnerkarte mit Foto statt Logo */
.lm-partner--bild > img {
    max-height: 340px;
    object-fit: cover;
    padding: 0;
    background: none;
}

.lm-partner .lm-leitsatz {
    margin: 0;
}

/* ============================================================
   Ergänzungen für „So arbeiten wir“: Schrittfolgen, Zusagen, Fragen
   ============================================================ */

.lm-schritte {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
    counter-reset: none;
}

.lm-schritte--fuenf {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.lm-schritt {
    position: relative;
    padding: 22px 20px;
    border-radius: 16px;
    background: var(--ln-karte);
    border: 1px solid var(--lm-linie);
}

    /* Pfeil zum nächsten Schritt */
    .lm-schritt:not(:last-child)::after {
        content: "›";
        position: absolute;
        right: -14px;
        top: 50%;
        transform: translateY(-50%);
        width: 12px;
        text-align: center;
        font-size: 1.4rem;
        color: var(--lm-text-3);
    }

    .lm-schritt i {
        display: grid;
        place-items: center;
        width: 34px;
        height: 34px;
        border-radius: 50%;
        font-style: normal;
        font-weight: 700;
        font-size: .875rem;
        background: var(--ln-marke);
        color: var(--ln-akzent);
        margin-bottom: 12px;
    }

    .lm-schritt h3 {
        font-size: 1.125rem;
        font-weight: 700;
        margin: 0 0 4px;
    }

    .lm-schritt p {
        margin: 0;
        color: var(--lm-text-2);
        font-size: .9375rem;
        line-height: 1.45;
    }

.lm-schritt--ziel {
    background: var(--ln-orange);
    border-color: var(--ln-orange);
}

    .lm-schritt--ziel i {
        background: #181716;
        color: var(--ln-orange);
    }

    .lm-schritt--ziel h3, .lm-schritt--ziel p {
        color: #181716;
    }

.lm-schritte__schleife {
    margin: 14px 0 0;
    color: var(--lm-text-3);
    font-size: .9375rem;
}

.lm-zusagen {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

    .lm-zusagen p {
        margin: 0;
        padding: 16px 18px;
        border-radius: 14px;
        background: var(--lm-flaeche);
        font-size: .9375rem;
        line-height: 1.45;
    }

        /* kurzer gerader Strich über dem Titel */
        .lm-zusagen p::before {
            content: "";
            display: block;
            width: 28px;
            height: 3px;
            border-radius: 2px;
            background: var(--ln-orange);
            margin-bottom: 10px;
        }

    .lm-zusagen b {
        display: block;
        color: var(--lm-text);
    }

.lm-fragen {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 860px;
    margin-top: 18px;
}

    .lm-fragen details {
        border-radius: 14px;
        background: var(--ln-karte);
        border: 1px solid var(--lm-linie);
        padding: 0 18px;
    }

        .lm-fragen details[open] {
            border-color: var(--ln-orange);
        }

    .lm-fragen summary {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding: 16px 0;
        font-weight: 600;
        font-size: 1.0625rem;
        cursor: pointer;
        list-style: none;
    }

        .lm-fragen summary::-webkit-details-marker {
            display: none;
        }

        .lm-fragen summary::after {
            content: "+";
            color: var(--ln-akzent);
            font-size: 1.3rem;
            line-height: 1;
        }

    .lm-fragen details[open] summary::after {
        content: "–";
    }

    .lm-fragen p {
        margin: 0 0 16px;
        color: var(--lm-text-2);
        line-height: 1.6;
    }

@media (max-width: 991.98px) {
    .lm-schritte, .lm-schritte--fuenf {
        grid-template-columns: minmax(0, 1fr);
    }

    .lm-schritt:not(:last-child)::after {
        content: none;
    }
}

/* ============================================================
   Teamseite: Liste oder Kacheln (im Code umschaltbar), Person im Seitenfenster
   ============================================================ */

/* Kachel als Knopf */
button.lm-person {
    display: block;
    width: 100%;
    padding: 0;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

    button.lm-person .lm-person__text {
        display: block;
    }

.lm-person__name {
    display: block;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--lm-text);
}

.lm-person__rolle {
    display: block;
    color: var(--lm-text-2);
    font-size: .9375rem;
    line-height: 1.45;
}

.lm-person__mehr {
    display: block;
    margin-top: 10px;
    color: var(--ln-akzent);
    font-weight: 600;
    font-size: .875rem;
}

button.lm-person:focus-visible, .lm-eintrag:focus-visible, .lm-lade__zu:focus-visible {
    outline: 3px solid var(--ln-orange);
    outline-offset: 3px;
}

/* Liste mit Kurztext */
.lm-teamliste {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.lm-eintrag {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding: 18px;
    border-radius: 18px;
    background: var(--ln-karte);
    border: 1px solid var(--lm-linie);
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: transform .2s, border-color .2s, box-shadow .2s;
}

    .lm-eintrag:hover {
        transform: translateY(-3px);
        border-color: var(--ln-orange);
        box-shadow: 0 26px 40px -30px rgba(16, 24, 40, .5);
    }

    .lm-eintrag img {
        width: 96px;
        height: 96px;
        border-radius: 50%;
        object-fit: cover;
        background: var(--lm-flaeche);
    }

    .lm-eintrag .lm-person__name {
        font-size: 1.0625rem;
    }

.lm-eintrag__rolle {
    display: block;
    color: var(--lm-text-3);
    font-size: .8125rem;
    margin-bottom: 6px;
}

.lm-eintrag__text {
    display: block;
    color: var(--lm-text-2);
    font-size: .9375rem;
    line-height: 1.5;
}

/* Seitenfenster zur Person */
.lm-lade {
    position: fixed;
    inset: 0 0 0 auto;
    margin: 0;
    width: min(460px, 100vw);
    max-width: none;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    padding: 0;
    border: 0;
    overflow: auto;
    background: var(--ln-karte);
    color: var(--lm-text);
    box-shadow: -30px 0 60px -30px rgba(0, 0, 0, .5);
}

    .lm-lade[open] {
        animation: lm-lade-rein .35s cubic-bezier(.2, .8, .2, 1);
    }

    .lm-lade::backdrop {
        background: rgba(24, 23, 22, .45);
        backdrop-filter: blur(2px);
    }

    .lm-lade > img {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
        object-fit: cover;
        object-position: 50% 20%;
        background: var(--lm-flaeche);
    }

@keyframes lm-lade-rein {
    from {
        transform: translateX(100%);
    }
}

.lm-lade__zu {
    position: absolute;
    right: 14px;
    top: 14px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .88);
    color: #181716;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
}

.lm-lade__inhalt {
    padding: 24px 28px 32px;
}

    /* kurzer gerader Strich über dem Namen */
    .lm-lade__inhalt::before {
        content: "";
        display: block;
        width: 28px;
        height: 3px;
        border-radius: 2px;
        background: var(--ln-orange);
        margin-bottom: 14px;
    }

    .lm-lade__inhalt h3 {
        font-size: 1.5rem;
        font-weight: 700;
        margin: 0;
    }

    .lm-lade__inhalt p {
        color: var(--lm-text-2);
        line-height: 1.6;
        margin: 0 0 12px;
    }

    .lm-lade__inhalt .lm-person__wege {
        margin: 0 0 18px;
    }

.lm-lade__rolle {
    margin-bottom: 14px !important;
}

@media (max-width: 575.98px) {
    .lm-teamliste {
        grid-template-columns: minmax(0, 1fr);
    }

    .lm-eintrag {
        grid-template-columns: 72px minmax(0, 1fr);
    }

        .lm-eintrag img {
            width: 72px;
            height: 72px;
        }
}

@media (prefers-reduced-motion: reduce) {
    .lm-lade[open] {
        animation: none;
    }
}

/* ============================================================
   Referenzen: Kunden nach Branche, Kundenstimmen
   ============================================================ */

.lm-teil__unterzeile {
    color: var(--lm-text-2);
    margin: 0;
}

.lm-filter--kunden label i {
    font-style: normal;
    font-size: .8125rem;
    opacity: .65;
    margin-left: 4px;
}

#lm-k0:checked ~ .lm-filter label[for=lm-k0],
#lm-k1:checked ~ .lm-filter label[for=lm-k1],
#lm-k2:checked ~ .lm-filter label[for=lm-k2],
#lm-k3:checked ~ .lm-filter label[for=lm-k3],
#lm-k4:checked ~ .lm-filter label[for=lm-k4],
#lm-k5:checked ~ .lm-filter label[for=lm-k5],
#lm-k6:checked ~ .lm-filter label[for=lm-k6],
#lm-k7:checked ~ .lm-filter label[for=lm-k7],
#lm-k8:checked ~ .lm-filter label[for=lm-k8] {
    background: var(--ln-orange);
    border-color: var(--ln-orange);
    color: #181716;
    font-weight: 600;
}

#lm-k1:checked ~ .lm-kunden .lm-kunde:not([data-k="1"]),
#lm-k2:checked ~ .lm-kunden .lm-kunde:not([data-k="2"]),
#lm-k3:checked ~ .lm-kunden .lm-kunde:not([data-k="3"]),
#lm-k4:checked ~ .lm-kunden .lm-kunde:not([data-k="4"]),
#lm-k5:checked ~ .lm-kunden .lm-kunde:not([data-k="5"]),
#lm-k6:checked ~ .lm-kunden .lm-kunde:not([data-k="6"]),
#lm-k7:checked ~ .lm-kunden .lm-kunde:not([data-k="7"]),
#lm-k8:checked ~ .lm-kunden .lm-kunde:not([data-k="8"]) {
    display: none;
}

#lm-k0:focus-visible ~ .lm-filter label[for=lm-k0],
#lm-k1:focus-visible ~ .lm-filter label[for=lm-k1],
#lm-k2:focus-visible ~ .lm-filter label[for=lm-k2],
#lm-k3:focus-visible ~ .lm-filter label[for=lm-k3],
#lm-k4:focus-visible ~ .lm-filter label[for=lm-k4],
#lm-k5:focus-visible ~ .lm-filter label[for=lm-k5],
#lm-k6:focus-visible ~ .lm-filter label[for=lm-k6],
#lm-k7:focus-visible ~ .lm-filter label[for=lm-k7],
#lm-k8:focus-visible ~ .lm-filter label[for=lm-k8] {
    outline: 3px solid var(--ln-orange);
    outline-offset: 2px;
}

.lm-kunden {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.lm-kunde {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    background: var(--ln-karte);
    border: 1px solid var(--lm-linie);
    text-decoration: none;
    color: inherit;
    transition: transform .2s, border-color .2s, box-shadow .2s;
}

    .lm-kunde:hover {
        transform: translateY(-3px);
        border-color: var(--ln-orange);
        box-shadow: 0 26px 40px -30px rgba(16, 24, 40, .5);
    }

    .lm-kunde:focus-visible {
        outline: 3px solid var(--ln-orange);
        outline-offset: 3px;
    }

/* Die Kundenlogos sind für hellen Grund gemacht, die Fläche bleibt deshalb auch im dunklen Design weiß */
.lm-kunde__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 112px;
    padding: 22px 26px;
    background: #fff;
}

    .lm-kunde__logo img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
    }

.lm-kunde__text {
    display: block;
    padding: 12px 16px 14px;
    border-top: 1px solid var(--lm-linie);
}

    .lm-kunde__text strong {
        display: block;
        font-size: .9375rem;
        color: var(--lm-text);
    }

    .lm-kunde__text span {
        display: block;
        font-size: .8125rem;
        color: var(--lm-text-3);
    }

.lm-stimmen {
    columns: 3 300px;
    column-gap: 18px;
    margin-top: 22px;
}

.lm-stimme {
    display: block;
    break-inside: avoid;
    margin: 0 0 18px;
    padding: 24px 26px;
    border-radius: 18px;
    background: var(--ln-karte);
    border: 1px solid var(--lm-linie);
}

    /* kurzer gerader Strich über dem Zitat */
    .lm-stimme::before {
        content: "";
        display: block;
        width: 28px;
        height: 3px;
        border-radius: 2px;
        background: var(--ln-orange);
        margin-bottom: 16px;
    }

    .lm-stimme blockquote {
        margin: 0;
        font-size: 1.0625rem;
        line-height: 1.55;
        font-weight: 500;
        color: var(--lm-text);
    }

    .lm-stimme figcaption {
        margin-top: 14px;
        font-size: .875rem;
        color: var(--lm-text-3);
    }

        .lm-stimme figcaption b {
            color: var(--lm-text);
        }

.lm-stimme--geschichte {
    background: #2A2D31;
    border-color: #2A2D31;
    color: #d6d9dd;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
}

    .lm-stimme--geschichte:hover {
        transform: translateY(-3px);
        box-shadow: 0 26px 40px -30px rgba(16, 24, 40, .6);
    }

    .lm-stimme--geschichte .lm-nr {
        color: var(--ln-orange);
    }

    .lm-stimme--geschichte strong {
        display: block;
        font-size: 1.25rem;
        color: #fff;
        margin: 6px 0;
    }

    .lm-stimme--geschichte .lm-mehr {
        display: block;
        margin-top: 14px;
        color: var(--ln-orange);
    }

@media (max-width: 575.98px) {
    .lm-kunden {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .lm-kunde__logo {
        height: 88px;
        padding: 16px;
    }
}

/* ============================================================
   Kundenstimmen: großes Zitat im Kopf, weitere als Zeilen mit Logo
   ============================================================ */

.lm-worte {
    display: grid;
    gap: 18px;
}

.lm-wort {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: clamp(20px, 3vw, 40px);
    align-items: center;
    margin: 0;
    padding: clamp(20px, 3vw, 32px);
    border-radius: 18px;
    background: var(--ln-karte);
    border: 1px solid var(--lm-linie);
}

    .lm-wort blockquote {
        margin: 0;
        font-size: clamp(1.0625rem, 1rem + .4vw, 1.3rem);
        line-height: 1.5;
        font-weight: 500;
        color: var(--lm-text);
    }

        /* kurzer gerader Strich über dem Zitat */
        .lm-wort blockquote::before {
            content: "";
            display: block;
            width: 28px;
            height: 3px;
            border-radius: 2px;
            background: var(--ln-orange);
            margin-bottom: 16px;
        }

    .lm-wort figcaption {
        display: flex;
        align-items: center;
        gap: 16px;
        margin-top: 16px;
        font-size: .9375rem;
        line-height: 1.45;
        color: var(--lm-text-3);
    }

        .lm-wort figcaption b {
            display: block;
            color: var(--lm-text);
        }

/* Die Kundenlogos sind für hellen Grund gemacht, die Fläche bleibt deshalb auch im dunklen Design weiß */
.lm-wort__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    padding: 20px 24px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--lm-linie);
}

    .lm-wort__logo img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
    }

.lm-wort--gross {
    display: block;
    padding: clamp(24px, 3.5vw, 44px);
    box-shadow: 0 40px 60px -44px rgba(16, 24, 40, .45);
}

    .lm-wort--gross blockquote {
        font-size: clamp(1.2rem, 1rem + 1vw, 1.7rem);
        line-height: 1.4;
    }

    .lm-wort--gross figcaption {
        margin-top: 24px;
    }

    .lm-wort--gross .lm-wort__logo {
        flex: 0 0 132px;
        height: 72px;
        padding: 12px 14px;
    }

@media (max-width: 767.98px) {
    .lm-wort {
        grid-template-columns: minmax(0, 1fr);
    }

    .lm-wort__logo {
        height: 84px;
        max-width: 200px;
    }
}

.lm-stimme--mehr {
    text-decoration: none;
    color: var(--lm-text-2);
    transition: transform .2s, border-color .2s;
}

    .lm-stimme--mehr:hover {
        transform: translateY(-3px);
        border-color: var(--ln-orange);
    }

    .lm-stimme--mehr strong {
        display: block;
        font-size: 1.25rem;
        color: var(--lm-text);
        margin-bottom: 6px;
    }

    .lm-stimme--mehr .lm-mehr {
        display: block;
        margin-top: 14px;
    }

/* ============================================================
   „Im Detail“ grafisch: Symbolkacheln und Datenfluss (BDE)
   ============================================================ */

.lm-details__titel {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 28px 0 14px;
}

.lm-details h2 + .lm-details__titel {
    margin-top: 14px;
}

.lm-details__notiz {
    color: var(--lm-text-3);
    font-size: .9375rem;
    margin: 12px 0 0;
}

.lm-infos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.lm-info {
    background: var(--ln-karte);
    border-radius: 14px;
    padding: 16px;
}

    .lm-info .lm-symbol {
        margin-bottom: 12px;
    }

    .lm-info strong {
        display: block;
        font-size: .9375rem;
        color: var(--lm-text);
    }

    .lm-info small {
        display: block;
        font-size: .8125rem;
        line-height: 1.4;
        color: var(--lm-text-3);
        margin-top: 2px;
    }

.lm-fluss {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 56px auto 56px minmax(0, 1fr);
    align-items: center;
}

.lm-fluss__spalte {
    display: grid;
    gap: 10px;
}

.lm-fluss__karte {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--ln-karte);
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 14px 16px;
    text-decoration: none;
    color: inherit;
}

a.lm-fluss__karte {
    transition: border-color .2s, transform .2s;
}

    a.lm-fluss__karte:hover {
        border-color: var(--ln-orange);
        transform: translateX(3px);
    }

.lm-fluss__karte .lm-symbol {
    flex: 0 0 42px;
}

.lm-fluss__karte strong {
    display: block;
    font-size: .9375rem;
    color: var(--lm-text);
}

.lm-fluss__karte small {
    display: block;
    font-size: .8125rem;
    line-height: 1.4;
    color: var(--lm-text-3);
}

.lm-fluss__mitte {
    background: var(--ln-orange);
    color: #181716;
    border-radius: 18px;
    padding: 22px 26px;
    text-align: center;
    box-shadow: 0 24px 40px -26px rgba(251, 185, 0, .9);
}

    .lm-fluss__mitte strong {
        display: block;
        font-size: 1.125rem;
    }

    .lm-fluss__mitte small {
        display: block;
        font-size: .8125rem;
        opacity: .8;
    }

/* Pfeil: Linie mit Spitze */
.lm-fluss__pfeil {
    position: relative;
    height: 2px;
    margin: 0 8px;
    background: var(--ln-orange);
}

    .lm-fluss__pfeil::after {
        content: "";
        position: absolute;
        right: -1px;
        top: 50%;
        width: 8px;
        height: 8px;
        border-top: 2px solid var(--ln-orange);
        border-right: 2px solid var(--ln-orange);
        transform: translateY(-50%) rotate(45deg);
    }

@media (max-width: 899.98px) {
    .lm-fluss {
        grid-template-columns: minmax(0, 1fr);
        justify-items: stretch;
    }

    .lm-fluss__pfeil {
        width: 2px;
        height: 28px;
        margin: 6px auto;
    }

        .lm-fluss__pfeil::after {
            right: auto;
            left: 50%;
            top: auto;
            bottom: -1px;
            transform: translateX(-50%) rotate(135deg);
        }
}

/* lange Wörter in den schmalen Kacheln trennen */
.lm-info small {
    hyphens: auto;
    overflow-wrap: anywhere;
}

.lm-infos--breit {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.lm-details .lm-chipzeile {
    margin-top: 0;
}

.lm-details__notiz a {
    color: var(--ln-akzent);
    font-weight: 600;
}

/* Screenshot im Kopf ohne Rahmen und ohne Szene: runde Ecken, feine Linie, Schatten */
.lm-kopf__bild--screenshot {
    border-radius: 12px;
    box-shadow: 0 30px 60px -24px rgba(16, 24, 40, .38), 0 0 0 1px var(--lm-linie, #e5e7ea);
}

/* ============================================================
   Modulübersicht: Waben im Kopf, jede Wabe ein Modul
   Raster aus 10 halben Spalten: Reihen abwechselnd mit fünf und vier Waben, die Vierer-Reihe um eine halbe Wabe eingerückt
   ============================================================ */

.lm-waben {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    column-gap: 3px;
    container-type: inline-size;
}

.lm-wabe {
    grid-column: span 2;
    aspect-ratio: 1 / 1.1547;
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1cqw;
    padding: 0 1.6cqw;
    background: var(--ln-karte);
    color: var(--lm-text);
    text-align: center;
    text-decoration: none;
    font-size: clamp(.5625rem, 1.9cqw, .8125rem);
    font-weight: 600;
    line-height: 1.15;
    hyphens: manual;
    transition: transform .2s, background-color .2s, color .2s;
}

    /* Reihen abwechselnd mit 4 und 5 Waben: Vierer-Reihe eine halbe Wabe eingerückt, Fünfer-Reihe ab der ersten Spalte */
    .lm-wabe:nth-child(9n+1) {
        grid-column: 2 / span 2;
    }

    .lm-wabe:nth-child(9n+5) {
        grid-column: 1 / span 2;
    }

    /* Reihen greifen ineinander: ein Viertel der Wabenhöhe überlappt.
       Prozentwerte beziehen sich hier auf die Breite der Wabe, ein Viertel der Höhe sind 28,87 % davon. */
    .lm-wabe:nth-child(n+5) {
        margin-top: calc(-28.870% + 3px);
    }

    .lm-wabe svg {
        width: 4.6cqw;
        height: 4.6cqw;
        min-width: 16px;
        min-height: 16px;
        fill: none;
        stroke: var(--ln-akzent);
        stroke-width: 1.7;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .lm-wabe:hover, .lm-wabe:focus-visible {
        transform: scale(1.08);
        background: var(--ln-orange);
        color: #181716;
        z-index: 1;
        outline: none;
    }

        .lm-wabe:hover svg, .lm-wabe:focus-visible svg {
            stroke: #181716;
        }

.lm-wabe--basis {
    background: #1d2024;
    color: #fff;
}

    .lm-wabe--basis svg {
        stroke: var(--ln-orange);
    }

/* Wabe für ein eigenes Modul: nur angedeutet, wird beim Überfahren gelb wie die anderen */
.lm-wabe--frei {
    background: color-mix(in srgb, var(--ln-orange) 16%, var(--ln-karte));
    color: var(--ln-akzent);
}

/* Leere Waben füllen die letzte Reihe auf: Platz für das, was noch kommt */
.lm-wabe--leer, .lm-wabe--leer:hover {
    background: color-mix(in srgb, var(--ln-karte) 45%, transparent);
    transform: none;
    pointer-events: none;
}

/* Am Handy wären die Waben zu klein zum Lesen, die Karten folgen direkt darunter */
@media (max-width: 575.98px) {
    .lm-waben {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lm-wabe {
        transition: none;
    }
}

/* Im dunklen Design hebt sich die Hive-Wabe in Gelb ab, dunkel ginge sie zwischen den anderen unter */
:root[data-theme=dark] .lm-wabe--basis {
    background: var(--ln-orange);
    color: #181716;
}

    :root[data-theme=dark] .lm-wabe--basis svg {
        stroke: #181716;
    }

/* Mittlere Wabe: die drei Produkte untereinander, etwas größer als die Modulnamen */
.lm-wabe--basis span {
    font-size: 1.25em;
    line-height: 1.3;
}

/* ============================================================
   Erfolgsgeschichte: Porträt am Zitat, Modulkacheln als Verweis, Steckbrief
   ============================================================ */

.lm-wort__person {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

a.lm-info--link {
    display: block;
    text-decoration: none;
    border: 1px solid transparent;
    transition: border-color .2s, transform .2s;
}

    a.lm-info--link:hover {
        border-color: var(--ln-orange);
        transform: translateY(-3px);
    }

.lm-steckbrief {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 18px;
}

    .lm-steckbrief div {
        padding: 14px 18px;
        border-radius: 14px;
        background: var(--lm-flaeche);
    }

    .lm-steckbrief span {
        display: block;
        font-size: .8125rem;
        color: var(--lm-text-3);
    }

    .lm-steckbrief b {
        color: var(--lm-text);
    }


/* Über uns: Zahlenzeile ohne Kästen, große Werte über der Beschriftung, getrennt durch feine Linien */
.lm-steckbrief--zahlen {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
    margin-top: 0;
    padding: 6px 0;
    border-top: 1px solid var(--lm-linie);
    border-bottom: 1px solid var(--lm-linie);
}

    .lm-steckbrief--zahlen div {
        display: flex;
        flex-direction: column-reverse;
        justify-content: flex-end;
        gap: 6px;
        padding: 22px 24px;
        background: none;
        border-radius: 0;
    }

        .lm-steckbrief--zahlen div + div {
            border-left: 1px solid var(--lm-linie);
        }

    .lm-steckbrief--zahlen b {
        font-size: clamp(1.9rem, 1.2rem + 1.8vw, 2.9rem);
        font-weight: 700;
        line-height: 1;
        letter-spacing: -.02em;
        font-variant-numeric: tabular-nums;
    }

        /* kurzer gelber Strich über dem Wert */
        .lm-steckbrief--zahlen b::before {
            content: "";
            display: block;
            width: 22px;
            height: 3px;
            border-radius: 2px;
            background: var(--ln-orange);
            margin-bottom: 14px;
        }

    .lm-steckbrief--zahlen span {
        font-size: .875rem;
        color: var(--lm-text-3);
    }

@media (max-width: 899.98px) {
    .lm-steckbrief--zahlen {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

        .lm-steckbrief--zahlen div:nth-child(3n+1) {
            border-left: 0;
        }

        .lm-steckbrief--zahlen div:nth-child(n+4) {
            border-top: 1px solid var(--lm-linie);
        }
}

@media (max-width: 479.98px) {
    .lm-steckbrief--zahlen {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

        .lm-steckbrief--zahlen div {
            padding: 18px 16px;
        }

            .lm-steckbrief--zahlen div:nth-child(3n+1) {
                border-left: 1px solid var(--lm-linie);
            }

            .lm-steckbrief--zahlen div:nth-child(2n+1) {
                border-left: 0;
            }

            .lm-steckbrief--zahlen div:nth-child(n+3) {
                border-top: 1px solid var(--lm-linie);
            }
}

/* Foto im Kopf: einheitliches Seitenverhältnis, Ausschnitt auf das Gesicht */
.lm-kopf__bild--foto {
    aspect-ratio: 3 / 2;
    object-fit: cover;
    object-position: 35% 40%;
}

/* ============================================================
   Rechtliches: Impressum und Datenschutz
   ============================================================ */

.lm-kopf--recht {
    padding-bottom: clamp(20px, 3vw, 36px);
}

    .lm-kopf--recht .lm-kopf__unterzeile {
        max-width: 60ch;
    }

.lm-recht__stand {
    margin: 0;
    font-size: .875rem;
    color: var(--lm-text-3);
}

.lm-recht {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: start;
    padding-top: 8px;
    padding-bottom: clamp(40px, 6vw, 80px);
}

.lm-recht--ohne-inhalt {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 0;
}

/* Inhaltsverzeichnis: bleibt beim Lesen stehen */
.lm-recht__inhalt {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding-left: 14px;
    border-left: 1px solid var(--lm-linie);
}

    .lm-recht__inhalt p {
        margin: 0 0 8px;
        font-size: .75rem;
        font-weight: 700;
        letter-spacing: .1em;
        text-transform: uppercase;
        color: var(--lm-text-3);
    }

    .lm-recht__inhalt a {
        padding: 4px 0;
        font-size: .875rem;
        line-height: 1.35;
        color: var(--lm-text-2);
        text-decoration: none;
    }

        .lm-recht__inhalt a:hover {
            color: var(--ln-akzent);
        }

.lm-recht__text {
    max-width: 72ch;
    color: var(--lm-text-2);
    line-height: 1.7;
}

    .lm-recht__text section {
        scroll-margin-top: 100px;
    }

        .lm-recht__text section + section {
            margin-top: 36px;
            padding-top: 32px;
            border-top: 1px solid var(--lm-linie);
        }

    /* kurzer gerader Strich über jeder Überschrift */
    .lm-recht__text h2 {
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--lm-text);
        margin: 0 0 12px;
    }

        .lm-recht__text h2::before {
            content: "";
            display: block;
            width: 22px;
            height: 3px;
            border-radius: 2px;
            background: var(--ln-orange);
            margin-bottom: 12px;
        }

    .lm-recht__text p {
        margin: 0 0 12px;
    }

    .lm-recht__text ul {
        margin: 0 0 12px;
        padding-left: 1.2em;
    }

    .lm-recht__text li + li {
        margin-top: 4px;
    }

    .lm-recht__text a {
        color: var(--ln-akzent);
        overflow-wrap: anywhere;
    }

.lm-recht__quelle {
    margin-top: 32px !important;
    font-size: .8125rem;
    color: var(--lm-text-3);
}

.lm-impressum {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

    .lm-impressum .lm-karte h2 {
        font-size: 1.125rem;
        margin-bottom: 12px;
    }

    .lm-impressum .lm-karte p {
        line-height: 1.6;
    }

    .lm-impressum a {
        color: var(--ln-akzent);
    }

.lm-angaben {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px 20px;
    margin: 0;
}

    .lm-angaben dt {
        font-weight: 400;
        color: var(--lm-text-3);
    }

    .lm-angaben dd {
        margin: 0;
        color: var(--lm-text);
    }

@media (max-width: 899.98px) {
    .lm-recht {
        grid-template-columns: minmax(0, 1fr);
    }

    .lm-recht__inhalt {
        position: static;
        max-height: none;
    }

    .lm-impressum {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ============================================================
   „Im Detail“ moderner: Zeilen statt weißer Kästen.
   Links Nummer, Überschrift und Text (lm-abschnitt__text), rechts die Punkte als Kacheln (lm-abschnitt__punkte).
   Unterpunkte („Zuordnung von: …“) werden zu Chips.
   Nur für Raster ohne eigene Spalten (style-Attribut), z.B. Produkte und Stellenseiten behalten ihre Karten.
   ============================================================ */

.lm-details__raster:not([style]) {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    counter-reset: lm-abschnitt;
}

    .lm-details__raster:not([style]) > .lm-abschnitt {
        padding: clamp(24px, 3vw, 36px) 0;
        background: none;
        border-radius: 0;
        border-top: 1px solid var(--lm-linie);
        counter-increment: lm-abschnitt;
    }

        .lm-details__raster:not([style]) > .lm-abschnitt:first-child {
            border-top: 0;
            padding-top: 8px;
        }

        /* Abschnitte ohne Liste: nur Text, lesbare Zeilenlänge */
        .lm-details__raster:not([style]) > .lm-abschnitt:not(:has(.lm-abschnitt__punkte)) {
            max-width: 75ch;
        }

        .lm-details__raster:not([style]) > .lm-abschnitt:has(.lm-abschnitt__punkte) {
            display: grid;
            grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
            column-gap: clamp(24px, 4vw, 64px);
            align-items: start;
        }

        /* Nummer über der Überschrift */
        .lm-details__raster:not([style]) > .lm-abschnitt h3 {
            font-size: clamp(1.2rem, 1.05rem + .5vw, 1.45rem);
            line-height: 1.25;
            margin-bottom: 12px;
        }

            .lm-details__raster:not([style]) > .lm-abschnitt h3::before {
                content: counter(lm-abschnitt, decimal-leading-zero);
                display: block;
                margin-bottom: 8px;
                font-size: .8125rem;
                font-weight: 700;
                letter-spacing: .12em;
                color: var(--ln-akzent);
            }

.lm-abschnitt__punkte .lm-abschnitt__label {
    margin: 0 0 10px;
    font-size: .875rem;
    font-weight: 600;
    color: var(--lm-text-3);
}

.lm-abschnitt__punkte ul + .lm-abschnitt__label {
    margin-top: 18px;
}

/* Punkte als Kacheln */
.lm-abschnitt__punkte > ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
    margin: 0;
}

    .lm-abschnitt__punkte > ul > li {
        margin: 0;
        padding: 14px 16px 14px 40px;
        border-radius: 14px;
        background: var(--ln-karte);
        border: 1px solid var(--lm-linie);
        line-height: 1.45;
    }

        .lm-abschnitt__punkte > ul > li::before {
            left: 16px;
            top: 19px;
        }

        .lm-abschnitt__punkte > ul > li > strong:first-child {
            display: block;
            color: var(--lm-text);
        }

        /* Punkt mit Unterpunkten: volle Breite, Unterpunkte als Chips */
        .lm-abschnitt__punkte > ul > li:has(> ul) {
            grid-column: 1 / -1;
            font-weight: 600;
        }

        .lm-abschnitt__punkte > ul > li > ul {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin: 10px 0 0;
            font-weight: 400;
        }

            .lm-abschnitt__punkte > ul > li > ul > li {
                margin: 0;
                padding: 5px 12px;
                border-radius: 999px;
                background: var(--lm-flaeche);
                font-size: .875rem;
                color: var(--lm-text-2);
            }

                .lm-abschnitt__punkte > ul > li > ul > li::before {
                    content: none;
                }

@media (max-width: 899.98px) {
    .lm-details__raster:not([style]) > .lm-abschnitt:has(.lm-abschnitt__punkte) {
        grid-template-columns: minmax(0, 1fr);
    }

    .lm-abschnitt__punkte {
        margin: 6px 0 4px;
    }
}

/* Kontakt: Module aus der Wabenauswahl der Startseite */
.lm-modulauswahl {
    margin: 18px 0 4px;
    padding: 14px 16px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--ln-orange) 12%, var(--ln-karte));
}

.lm-modulauswahl__titel {
    margin: 0 0 8px;
    font-size: .8125rem;
    font-weight: 700;
    color: var(--lm-text);
}

.lm-modulauswahl .lm-chip {
    text-decoration: none;
}

.lm-modulauswahl__hinweis {
    margin: 10px 0 0;
    font-size: .8125rem;
    color: var(--lm-text-2, #4a4f55);
}