/* Eigenständige Transaktionsübersicht: [transaction_overview] */
.txs-overview {
    --txs-red: #bd1830;
    --txs-text: #202124;
    --txs-muted: #969092;
    --txs-panel: #ebe9e9;
    width: 100%;
    color: var(--txs-text);
}

.txs-intro {
    max-width: 980px;
    margin: 0 0 clamp(64px, 9vw, 118px);
}

.txs-overview .txs-intro__title {
    max-width: 900px;
    margin: 0 0 28px;
    padding: 0;
    color: var(--txs-text) !important;
    font-size: clamp(48px, 6.1vw, 88px) !important;
    font-weight: 300 !important;
    line-height: .98;
    letter-spacing: -.045em;
}

.txs-intro__title span {
    display: block;
}

.txs-overview .txs-intro__title strong {
    color: var(--txs-red);
    font-weight: 650;
}

.txs-overview .txs-intro__copy {
    max-width: 760px;
    margin: 0;
    color: #625e60 !important;
    font-size: clamp(18px, 1.55vw, 24px);
    line-height: 1.65;
}

.txs-filter {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 54px;
    padding: 4px;
    background: var(--txs-panel);
    border-radius: 22px;
    box-shadow: inset 0 0 0 1px rgba(70, 60, 62, .04);
}

.txs-filter__pills {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 2px;
}

.txs-filter__mobile,
.txs-filter__apply {
    display: none;
}

.txs-filter__item {
    appearance: none;
    flex: 0 0 auto;
    min-width: 58px;
    padding: 8px 12px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #777173;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.35;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.txs-filter__item:hover,
.txs-filter__item:focus-visible {
    color: var(--txs-red);
}

.txs-filter__item.is-active {
    color: var(--txs-text);
    background: #fff;
    box-shadow: 0 2px 8px rgba(45, 37, 39, .12);
}

.txs-filter__item:focus-visible,
.txs-card__link:focus-visible,
.txs-pagination button:focus-visible {
    outline: 2px solid var(--txs-red);
    outline-offset: 4px;
}

.txs-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 38px;
}

.txs-card {
    min-width: 0;
    background: #fff;
    box-shadow: 0 18px 34px rgba(0, 0, 0, .08);
    transition: box-shadow .2s ease;
}

.txs-card:hover {
    box-shadow: 0 22px 42px rgba(0, 0, 0, .12);
}

.txs-overview .txs-card__link,
.txs-overview .txs-card__link:visited,
.txs-overview .txs-card__link:hover {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 32px;
    color: var(--txs-text) !important;
    text-decoration: none !important;
}

.txs-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 44px;
}

.txs-card__icon {
    display: grid;
    place-items: center;
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    color: var(--txs-red);
    background: #faf6f6;
    border: 1px solid #eee7e8;
}

.txs-card__icon::before {
    content: "";
    width: 40px;
    height: 40px;
    background: var(--txs-icon) center / contain no-repeat;
}

.txs-card__icon--press { --txs-icon: url("../assets/transaction-icons/press.svg"); }
.txs-card__icon--rotor { --txs-icon: url("../assets/transaction-icons/rotor.svg"); }
.txs-card__icon--motor { --txs-icon: url("../assets/transaction-icons/motor.svg"); }
.txs-card__icon--mould { --txs-icon: url("../assets/transaction-icons/mould.svg"); }
.txs-card__icon--brush { --txs-icon: url("../assets/transaction-icons/brush.svg"); }
.txs-card__icon--plate { --txs-icon: url("../assets/transaction-icons/plate.svg"); }
.txs-card__icon--robot { --txs-icon: url("../assets/transaction-icons/robot.svg"); }
.txs-card__icon--service { --txs-icon: url("../assets/transaction-icons/service.svg"); }
.txs-card__icon--cnc { --txs-icon: url("../assets/transaction-icons/cnc.svg"); }
.txs-card__icon--crane { --txs-icon: url("../assets/transaction-icons/crane.svg"); }
.txs-card__icon--hydraulic { --txs-icon: url("../assets/transaction-icons/hydraulic.svg"); }
.txs-card__icon--feeder { --txs-icon: url("../assets/transaction-icons/feeder.svg"); }

.txs-card__date {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    color: var(--txs-muted);
}

.txs-overview .txs-card__date strong {
    color: var(--txs-text);
    font-size: clamp(36px, 3vw, 52px);
    line-height: 1;
    font-weight: 400;
}

.txs-overview .txs-card__date small {
    margin-top: 9px;
    color: var(--txs-muted);
    font-size: 17px;
}

.txs-overview .txs-card__title {
    min-height: 190px;
    margin: 0 0 26px;
    padding: 0;
    color: var(--txs-text) !important;
    font-size: 24px !important;
    line-height: 1.3;
    font-weight: 600;
}

.txs-overview .txs-card .txs-card__link .txs-card__parties,
.txs-overview .txs-card .txs-card__link:hover .txs-card__parties {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    min-height: 180px;
    margin: 0 0 28px;
    padding: 24px 0;
    border-top: 1px solid #ece9e9 !important;
    border-bottom: 1px solid #ece9e9 !important;
    border-color: #ece9e9 !important;
}

.txs-card__parties div { min-width: 0; }
.txs-overview .txs-card__parties dt {
    margin-bottom: 8px;
    color: var(--txs-muted);
    font-size: 12px;
    line-height: 1.3;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.txs-overview .txs-card__parties dd {
    margin: 0;
    color: var(--txs-text) !important;
    overflow-wrap: anywhere;
    font-size: 18px;
    line-height: 1.45;
}

.txs-overview .txs-card__parties div:last-child dd {
    position: relative;
    color: var(--txs-red) !important;
}

.txs-overview .txs-card__parties div:last-child dd::before {
    content: "\2192";
    position: absolute;
    left: -23px;
    color: var(--txs-red);
}

.txs-overview .txs-card__excerpt {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    line-clamp: 7;
    -webkit-line-clamp: 7;
    min-height: 190px;
    height: 190px;
    margin: 0 0 28px;
    color: var(--txs-text) !important;
    font-size: 16px;
    line-height: 1.65;
}

.txs-overview .txs-card__more {
    display: block;
    margin-top: auto;
    padding-top: 12px;
    color: var(--txs-red) !important;
    font-size: 17px;
}

.txs-empty {
    margin: 30px 0;
    padding: 30px;
    background: #fff;
}

.txs-pagination {
    display: grid;
    grid-template-columns: minmax(80px, 1fr) auto auto minmax(80px, 1fr);
    align-items: center;
    gap: 26px;
    width: 100%;
    margin-top: 56px;
    padding: 22px 30px;
    color: #777173;
    background: var(--txs-panel);
}

.txs-pagination button {
    appearance: none;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}
.txs-pagination button:hover,
.txs-pagination button.is-active { color: var(--txs-red); }
.txs-pagination button:disabled { opacity: 1; cursor: default; }
.txs-pagination__pages { display: flex; gap: 26px; }
.txs-pagination__edge--next { text-align: right; }
.txs-pagination__status { white-space: nowrap; }

@media (max-width: 1180px) {
    .txs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
}

@media (max-width: 980px) {
    .txs-intro { margin-bottom: 72px; }
    .txs-overview .txs-intro__title { font-size: clamp(46px, 8vw, 70px) !important; }
    .txs-filter {
        width: min(100%, 210px);
        padding: 0;
        overflow: hidden;
        border-radius: 999px;
        background: #fff;
        box-shadow: 0 2px 8px rgba(45, 37, 39, .12);
    }
    .txs-filter__pills { display: none; }
    .txs-filter__mobile {
        position: relative;
        display: block;
    }
    .txs-filter__mobile::after {
        content: "\2304";
        position: absolute;
        top: 50%;
        right: 16px;
        color: var(--txs-red);
        font-size: 18px;
        line-height: 1;
        pointer-events: none;
        transform: translateY(-58%);
    }
    .txs-filter__mobile select {
        appearance: none;
        width: 100%;
        margin: 0;
        padding: 10px 42px 10px 18px;
        border: 0;
        border-radius: 999px;
        background: transparent;
        color: var(--txs-text);
        font: inherit;
        font-size: 14px;
        line-height: 1.35;
    }
    .txs-card__link { padding: 26px; }
    .txs-overview .txs-card__title { min-height: 0; font-size: 22px !important; }
    .txs-overview .txs-card .txs-card__link .txs-card__parties { min-height: 0; }
    .txs-overview .txs-card__excerpt { min-height: 0; height: auto; }
    .txs-pagination { grid-template-columns: auto 1fr auto; }
    .txs-pagination__pages { justify-content: center; }
    .txs-pagination__status { display: none; }
}

@media (max-width: 760px) {
    .txs-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .txs-intro { margin-bottom: 48px; }
    .txs-overview .txs-intro__title {
        margin-bottom: 22px;
        font-size: clamp(34px, 10.5vw, 42px) !important;
        line-height: 1.06;
        letter-spacing: -.035em;
    }
    .txs-overview .txs-intro__copy { font-size: 17px; line-height: 1.55; }
    .txs-filter {
        margin-bottom: 38px;
    }
    .txs-card__link { padding: 26px; }
    .txs-card__header { margin-bottom: 30px; }
    .txs-card__icon { flex-basis: 58px; width: 58px; height: 58px; font-size: 31px; }
    .txs-card__title { margin-bottom: 32px; }
    .txs-pagination { gap: 10px; padding: 18px 14px; }
    .txs-pagination__pages { gap: 13px; overflow-x: auto; }
    .txs-pagination__edge button { font-size: 0; }
    .txs-pagination__edge button::before { content: "\2039"; font-size: 26px; }
    .txs-pagination__edge--next button::before { content: "\203a"; }
}
