/* =========================================================================
   Leistungen — Übersicht (Hub) + Detailseiten (NEO-BRUTALISM).
   Loads after main.css via controller 'page' => 'leistungen' (hub AND detail).
   Consumes core tokens + primitives (.block, .btn, .section, .page-header,
   .eyebrow, .prose); never redefines colours or chrome. Scoped to .leistung*.
   ========================================================================= */

/* ---- Hub: services as a disciplined grid of bordered beams ------------- *
 * The loud stacked signature stays on the landing page; here the cards are a
 * calm, scannable grid. Each card is a .block--press; a stretched link makes
 * the whole beam clickable while keeping a single, accessible link per card.  */
.leistungen-grid {
    list-style: none;
    margin: clamp(1.5rem, 4vw, 2.5rem) 0 0;
    padding: 0;
    display: grid;
    gap: var(--gap);
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.leistung-card {
    position: relative;            /* anchor for the stretched link */
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1.6rem;
}
.leistung-card__title {
    margin: 0;
    font-size: 1.25rem;
    color: var(--c-navy);
}
/* burn signature edge — short hard rule under each title (matches /ueber-uns) */
.leistung-card__title::after {
    content: ""; display: block;
    width: 2.75rem; height: var(--border-w);
    margin: .65rem 0 .85rem; background: var(--c-burn);
}
.leistung-card__link { text-decoration: none; color: inherit; }
.leistung-card__link::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.leistung-card__link:hover { background: transparent; color: var(--c-burn); }
.leistung-card__text {
    margin: 0 0 1.1rem;
    color: var(--c-steel);
    flex: 1 1 auto;
}
.leistung-card__more {
    font-family: var(--font-display); font-weight: 700;
    text-transform: uppercase; letter-spacing: .05em; font-size: .8rem;
    color: var(--c-burn);
}
.leistungen-hub__hint {
    margin: clamp(1.75rem, 4vw, 2.5rem) 0 0;
    max-width: 65ch;
    color: var(--c-steel);
}

/* ---- Breadcrumb (detail pages) ----------------------------------------- */
.breadcrumb {
    background: var(--c-paper);
    border-bottom: var(--border-w) solid var(--c-navy);
}
.breadcrumb .container {
    display: flex; flex-wrap: wrap; align-items: center; gap: .55rem;
    padding: .6rem 0;
    font-family: var(--font-display); font-weight: 700;
    text-transform: uppercase; letter-spacing: .04em; font-size: .82rem;
}
.breadcrumb a { color: var(--c-navy); text-decoration: none; border-bottom: var(--border-w) solid var(--c-burn); }
.breadcrumb a:hover { background: var(--c-burn); color: var(--c-paper); }
.breadcrumb span[aria-current] { color: var(--c-steel); }

/* ---- Detail: main column (bullets + CTA) + aside (cross-links) --------- */
.leistung-detail { display: grid; gap: clamp(1.5rem, 4vw, 2.75rem); }
@media (min-width: 880px) {
    .leistung-detail { grid-template-columns: minmax(0, 1fr) 18rem; align-items: start; }
}

/* „Was wir konkret übernehmen" — bordered beams with a burn beam-end. */
.leistung-bullets {
    list-style: none;
    margin: clamp(1rem, 3vw, 1.75rem) 0 0;
    padding: 0;
    display: grid;
    gap: .8rem;
}
.leistung-bullets__item {
    position: relative;
    padding: .85rem 1.1rem .85rem 1.9rem;
    color: var(--c-navy);
    background: var(--c-paper);
    border: var(--border-w) solid var(--c-navy);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.leistung-bullets__item::before {
    content: "";
    position: absolute; left: 0; top: 0; bottom: 0;
    width: .7rem; background: var(--c-burn);
}

.leistung-detail__cta {
    display: flex; flex-wrap: wrap; gap: 1rem;
    margin-top: clamp(1.5rem, 4vw, 2rem);
}

/* Aside — quick jump to the other services + area hint. */
.leistung-detail__aside { align-self: start; }
.leistung-aside__heading { font-size: 1.1rem; margin: 0 0 .85rem; color: var(--c-navy); }
.leistung-xlinks {
    list-style: none; margin: 0 0 1.25rem; padding: 0;
    display: grid; gap: .55rem;
}
.leistung-xlinks a {
    display: block; padding: .6rem .85rem;
    font-family: var(--font-display); font-weight: 700; font-size: .95rem;
    text-decoration: none; color: var(--c-navy);
    background: var(--c-paper);
    border: var(--border-w) solid var(--c-navy); border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform .08s ease, box-shadow .08s ease,
                background-color .08s ease, color .08s ease;
}
.leistung-xlinks a:hover {
    background: var(--c-navy); color: var(--c-paper);
    transform: translate(var(--shadow-h), var(--shadow-h)); box-shadow: var(--shadow-h) var(--shadow-h) 0 var(--c-navy);
}
.leistung-aside__area { color: var(--c-steel); font-size: .95rem; margin: 0; }
