/* =============================================================================
   TrueMatch – öffentliche Unterseite
   /var/www/public/assets/css/truematch.css
   ============================================================================= */

:root {
    --tm-bg: rgba(13, 17, 21, 0.94);
    --tm-card: rgba(18, 23, 28, 0.96);
    --tm-card-soft: rgba(255, 255, 255, 0.035);
    --tm-border: rgba(255, 255, 255, 0.13);
    --tm-border-strong: rgba(255, 255, 255, 0.22);
    --tm-gold: var(--primary-gold, #d7b76a);
    --tm-text: rgba(255, 255, 255, 0.93);
    --tm-muted: rgba(255, 255, 255, 0.62);
    --tm-faint: rgba(255, 255, 255, 0.43);
    --tm-radius: 10px;
}

body.truematch-page {
    color: var(--tm-text);
}

.truematch-page-wrapper {
    width: 100%;
    min-height: 100vh;
    padding: calc(var(--tp-navbar-height, 3.5rem) + 2.5rem) 1rem 4rem;
}

.truematch-page-shell {
    width: min(100%, 76rem);
    margin: 0 auto;
}

.tm-card,
.tm-hero {
    border: 1px solid var(--tm-border);
    border-radius: var(--tm-radius);
    background:
        linear-gradient(145deg, rgba(255,255,255,0.045), rgba(255,255,255,0.012)),
        var(--tm-card);
    box-shadow: 0 1rem 2.8rem rgba(0,0,0,0.28);
}

.tm-hero {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 2rem;
    align-items: center;
    padding: clamp(1.6rem, 4vw, 3rem);
    margin-bottom: 1.3rem;
    border-color: rgba(215,183,106,0.25);
    background:
        radial-gradient(circle at 90% 20%, rgba(215,183,106,0.12), transparent 30%),
        linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.012)),
        rgba(15,20,24,0.97);
}

.tm-eyebrow,
.tm-mini-label {
    display: block;
    margin: 0 0 .48rem;
    color: var(--tm-gold);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .18rem;
    text-transform: uppercase;
}

.tm-hero h1,
.tm-section-heading h2,
.tm-card h3,
.tm-person-card h3 {
    color: #fff;
}

.tm-hero h1 {
    margin: 0 0 .8rem;
    font-size: clamp(1.9rem, 4vw, 3.25rem);
    line-height: 1.12;
    letter-spacing: .18rem;
}

.tm-hero-copy > p:last-child {
    max-width: 54rem;
    margin: 0;
    color: var(--tm-muted);
    line-height: 1.7;
}

.tm-hero-mark,
.tm-callout-icon {
    display: grid;
    place-items: center;
    width: 4.6rem;
    height: 4.6rem;
    border: 1px solid rgba(215,183,106,.34);
    border-radius: 50%;
    background: rgba(215,183,106,.07);
    color: #ead59f;
    font-size: 1.55rem;
}

.tm-mode-switch,
.tm-role-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: .42rem;
    width: min(100%, 36rem);
    margin: 0 auto 1.35rem;
    padding: .34rem;
    border: 1px solid var(--tm-border);
    border-radius: .8rem;
    background: rgba(10,14,18,.9);
}

.tm-mode-btn,
.tm-role-btn {
    width: 100%;
    height: auto !important;
    min-height: 2.85rem;
    padding: .65rem .9rem !important;
    border: 1px solid transparent !important;
    border-radius: .62rem !important;
    box-shadow: none !important;
    background: transparent !important;
    color: rgba(255,255,255,.58) !important;
    font-size: .72rem !important;
    font-weight: 700 !important;
    letter-spacing: .1em !important;
    line-height: 1.25 !important;
}

.tm-mode-btn.is-active,
.tm-role-btn.is-active {
    border-color: rgba(215,183,106,.32) !important;
    background: rgba(215,183,106,.09) !important;
    color: #fff !important;
}

.tm-mode-panel {
    display: grid;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.tm-mode-panel[hidden],
.tm-member-role-panel[hidden] {
    display: none !important;
}

.tm-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin: .25rem 0 .2rem;
}

.tm-section-heading h2 {
    margin: 0;
    font-size: clamp(1.25rem, 2.7vw, 1.8rem);
    letter-spacing: .14rem;
}

.tm-section-heading > p {
    max-width: 30rem;
    margin: 0;
    color: var(--tm-muted);
    text-align: right;
    line-height: 1.6;
}

.tm-preference-card,
.tm-member-status,
.tm-login-callout,
.tm-empty,
.tm-stack-card,
.tm-hit-card,
.tm-person-card,
.tm-how-grid .tm-card {
    padding: 1.25rem 1.35rem;
}

.tm-preference-card {
    display: grid;
    grid-template-columns: minmax(15rem,.7fr) minmax(0,1.3fr);
    gap: 1.4rem;
    align-items: center;
}

.tm-preference-card h3,
.tm-hit-heading h3,
.tm-member-status h3,
.tm-login-callout h3,
.tm-how-grid h3 {
    margin: 0 0 .45rem;
    font-size: 1rem;
    letter-spacing: .08rem;
}

.tm-muted {
    margin: 0;
    color: var(--tm-muted) !important;
    font-size: .84rem;
    line-height: 1.6;
}

.tm-genre-choices,
.tm-pills {
    display: flex;
    flex-wrap: wrap;
    gap: .42rem;
}

.tm-genre-choice,
.tm-pills span,
.tm-count-chip,
.tm-state-chip,
.tm-fit-chip,
.tm-role-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.85rem;
    padding: .3rem .64rem;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 999px;
    background: rgba(255,255,255,.035);
    color: rgba(255,255,255,.72);
    font-size: .67rem;
    line-height: 1.2;
}

.tm-genre-choice {
    height: auto !important;
    min-height: 2rem !important;
    box-shadow: none !important;
    letter-spacing: .02em !important;
    text-transform: none !important;
    cursor: pointer;
}

.tm-genre-choice.is-selected,
.tm-pills.is-fit span,
.tm-state-chip.is-on,
.tm-fit-chip {
    border-color: rgba(215,183,106,.32);
    background: rgba(215,183,106,.08);
    color: #ead59f;
}

.tm-guest-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(18rem, .65fr);
    gap: 1rem;
    align-items: start;
}

.tm-stack-meta,
.tm-hit-heading,
.tm-person-title-row,
.tm-member-status {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.tm-stack-meta {
    align-items: center;
    margin-bottom: .9rem;
    color: var(--tm-faint);
    font-size: .72rem;
}

.tm-text-btn,
.tm-text-link {
    color: rgba(255,255,255,.64) !important;
    font-size: .72rem;
    text-decoration: underline;
    text-decoration-color: rgba(255,255,255,.2);
    text-underline-offset: .18rem;
}

.tm-text-btn {
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: none !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.tm-text-btn:hover,
.tm-text-link:hover {
    color: #fff !important;
    text-decoration-color: rgba(215,183,106,.35);
}

.tm-book-card {
    display: grid;
    grid-template-columns: minmax(11rem, 15rem) minmax(0,1fr);
    gap: 1.3rem;
    padding: 1rem;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: .9rem;
    background: rgba(7,10,13,.52);
}

.tm-book-cover-wrap {
    display: grid;
    place-items: center;
    min-height: 20rem;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: .75rem;
    background: rgba(255,255,255,.025);
}

.tm-book-cover-wrap img {
    width: 100%;
    height: 100%;
    min-height: 20rem;
    object-fit: cover;
}

.tm-book-cover-fallback {
    padding: 1rem;
    color: var(--tm-faint);
    text-align: center;
    line-height: 1.5;
}

.tm-book-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.tm-book-copy h3 {
    margin: .1rem 0 .35rem;
    font-size: clamp(1.25rem, 2.3vw, 1.65rem);
    letter-spacing: .08rem;
    overflow-wrap: anywhere;
}

.tm-book-author {
    margin: 0 0 .8rem;
    color: #d8c38d;
    font-size: .82rem;
}

.tm-book-description {
    margin: .85rem 0;
    color: rgba(255,255,255,.69);
    font-size: .87rem;
    line-height: 1.7;
}

.tm-book-links {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem 1rem;
    margin-top: .4rem;
}

.tm-book-actions,
.tm-decision-row,
.tm-callout-actions {
    display: grid;
    grid-template-columns: minmax(8rem,.75fr) minmax(10rem,1.25fr);
    gap: .6rem;
    margin-top: auto;
    padding-top: 1rem;
}

.tm-button,
.tm-decision-btn,
.tm-book-action {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 3rem;
    height: auto !important;
    padding: .7rem .9rem !important;
    border: 1px solid rgba(255,255,255,.15) !important;
    border-radius: .68rem !important;
    box-shadow: none !important;
    background: rgba(255,255,255,.035) !important;
    color: rgba(255,255,255,.78) !important;
    font-size: .7rem !important;
    font-weight: 700 !important;
    letter-spacing: .1em !important;
    line-height: 1.25 !important;
    text-transform: uppercase;
    text-decoration: none !important;
}

.tm-button-primary,
.tm-decision-interest,
.tm-book-action.is-like {
    border-color: rgba(215,183,106,.36) !important;
    background: rgba(215,183,106,.1) !important;
    color: #f0deb0 !important;
}

.tm-button:hover,
.tm-decision-btn:hover,
.tm-book-action:hover {
    transform: translateY(-1px);
    border-color: rgba(255,255,255,.3) !important;
}

.tm-hit-card {
    position: sticky;
    top: calc(var(--tp-navbar-height, 3.5rem) + 1rem);
}

.tm-liked-list {
    display: grid;
    gap: .55rem;
    margin-top: .9rem;
}

.tm-liked-item {
    display: grid;
    grid-template-columns: 3rem minmax(0,1fr) auto;
    gap: .65rem;
    align-items: center;
    padding: .55rem;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: .65rem;
    background: rgba(255,255,255,.02);
}

.tm-liked-thumb {
    width: 3rem;
    aspect-ratio: 2/3;
    overflow: hidden;
    border-radius: .35rem;
    background: rgba(255,255,255,.04);
}

.tm-liked-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tm-liked-copy {
    min-width: 0;
}

.tm-liked-copy strong,
.tm-liked-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tm-liked-copy strong { color: rgba(255,255,255,.88); font-size: .78rem; }
.tm-liked-copy small { color: var(--tm-faint); font-size: .67rem; margin-top: .15rem; }

.tm-liked-remove {
    width: 2rem !important;
    min-width: 2rem !important;
    height: 2rem !important;
    min-height: 2rem !important;
    padding: 0 !important;
    border: 1px solid rgba(255,255,255,.1) !important;
    border-radius: 50% !important;
    box-shadow: none !important;
    background: transparent !important;
    color: rgba(255,255,255,.5) !important;
    font-size: .8rem !important;
    line-height: 1 !important;
}

.tm-member-role-panel {
    display: grid;
    gap: 1rem;
}

.tm-member-status {
    align-items: center;
}

.tm-member-status-side {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .45rem;
}

.tm-login-callout {
    display: grid;
    grid-template-columns: auto minmax(0,1fr) auto;
    gap: 1rem;
    align-items: center;
}

.tm-login-callout p,
.tm-empty p,
.tm-how-grid p {
    margin: 0;
    color: var(--tm-muted);
    line-height: 1.65;
}

.tm-callout-actions {
    grid-template-columns: repeat(2, minmax(8rem,1fr));
    padding-top: 0;
    margin-top: 0;
}

.tm-person-card {
    display: grid;
    grid-template-columns: minmax(12rem, 17rem) minmax(0,1fr);
    gap: 1.35rem;
}

.tm-person-photo-wrap {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 22rem;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: .8rem;
    background: rgba(8,11,14,.7);
}

.tm-person-photo-wrap img {
    width: 100%;
    height: 100%;
    min-height: 22rem;
    object-fit: cover;
}

.tm-person-photo-wrap.is-empty > span:first-child {
    color: #d8c38d;
    font-size: 2rem;
}

.tm-role-chip {
    position: absolute;
    left: .65rem;
    bottom: .65rem;
    background: rgba(8,11,14,.82);
    color: #fff;
    font-weight: 700;
}

.tm-person-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.tm-person-title-row h3 {
    margin: .08rem 0 0;
    font-size: clamp(1.3rem,2.5vw,1.7rem);
    letter-spacing: .08rem;
}

.tm-person-bio {
    margin: .85rem 0 0;
    color: rgba(255,255,255,.69);
    line-height: 1.7;
}

.tm-fit-block {
    margin: .9rem 0;
    padding-top: .9rem;
    border-top: 1px solid rgba(255,255,255,.08);
}

.tm-review-state {
    display: grid;
    gap: .2rem;
    margin: .8rem 0;
    padding: .7rem .8rem;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: .65rem;
    background: rgba(255,255,255,.022);
}

.tm-review-state.is-open {
    border-color: rgba(215,183,106,.24);
}

.tm-review-state strong { color: rgba(255,255,255,.82); font-size: .76rem; }
.tm-review-state.is-open strong { color: #e8d5a3; }
.tm-review-state span { color: var(--tm-muted); font-size: .72rem; line-height: 1.5; }

.tm-decision-row form { margin: 0; }

.tm-empty {
    display: grid;
    justify-items: center;
    gap: .5rem;
    text-align: center;
}

.tm-empty > span {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border: 1px solid rgba(215,183,106,.25);
    border-radius: 50%;
    color: #e8d5a3;
}

.tm-how-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: .9rem;
    margin-top: 2.4rem;
}

.tm-step {
    display: inline-block;
    margin-bottom: .8rem;
    color: var(--tm-gold);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .16em;
}

.tm-flash {
    margin-bottom: 1rem;
    padding: .85rem 1rem;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: .65rem;
    background: rgba(15,20,24,.95);
    color: rgba(255,255,255,.86);
}

.tm-flash-success { border-left: 3px solid #d7b76a; }
.tm-flash-error { border-left: 3px solid #c96b6b; }

@media (max-width: 980px) {
    .tm-guest-layout,
    .tm-preference-card {
        grid-template-columns: 1fr;
    }

    .tm-hit-card { position: static; }
    .tm-person-card { grid-template-columns: 13rem minmax(0,1fr); }
    .tm-login-callout { grid-template-columns: auto minmax(0,1fr); }
    .tm-callout-actions { grid-column: 1 / -1; }
}

@media (max-width: 736px) {
    .truematch-page-wrapper {
        padding-left: .75rem;
        padding-right: .75rem;
    }

    .tm-hero {
        grid-template-columns: 1fr;
        padding: 1.25rem;
    }

    .tm-hero-mark { display: none; }
    .tm-section-heading { flex-direction: column; gap: .5rem; }
    .tm-section-heading > p { text-align: left; }
    .tm-book-card,
    .tm-person-card { grid-template-columns: 1fr; }
    .tm-book-cover-wrap,
    .tm-book-cover-wrap img { min-height: 18rem; max-height: 28rem; }
    .tm-person-photo-wrap,
    .tm-person-photo-wrap img { min-height: 18rem; max-height: 27rem; }
    .tm-login-callout { grid-template-columns: 1fr; text-align: center; justify-items: center; }
    .tm-callout-actions { grid-column: auto; width: 100%; }
    .tm-how-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .tm-mode-switch,
    .tm-role-switch,
    .tm-book-actions,
    .tm-decision-row,
    .tm-callout-actions {
        grid-template-columns: 1fr;
    }

    .tm-member-status,
    .tm-person-title-row,
    .tm-stack-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .tm-member-status-side { justify-content: flex-start; }
}

/* =============================================================================
   TrueMatch FINAL – Vollfilter + echter Swipe-Stapel + Rewind
   ============================================================================= */

/* Erweiterte Filter --------------------------------------------------------- */
.tm-advanced-filter-card {
    padding: 0;
    overflow: hidden;
}

.tm-advanced-filter-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 5rem;
    padding: 1rem 1.25rem;
    cursor: pointer;
    list-style: none;
}

.tm-advanced-filter-summary::-webkit-details-marker {
    display: none;
}

.tm-advanced-filter-summary > span:first-child {
    display: grid;
    gap: .18rem;
}

.tm-advanced-filter-summary .tm-eyebrow {
    margin: 0;
}

.tm-advanced-filter-summary strong {
    color: #fff;
    font-size: .98rem;
    letter-spacing: .08rem;
}

.tm-filter-summary-meta {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    color: var(--tm-faint);
}

.tm-filter-summary-meta em {
    padding: .28rem .58rem;
    border: 1px solid rgba(215,183,106,.24);
    border-radius: 999px;
    background: rgba(215,183,106,.05);
    color: #e4d19c;
    font-size: .67rem;
    font-style: normal;
}

.tm-advanced-filter-card[open] .tm-filter-summary-meta > span:last-child {
    transform: rotate(180deg);
}

.tm-advanced-filter-body {
    display: grid;
    gap: 1rem;
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid rgba(255,255,255,.08);
}

.tm-filter-core-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: .7rem;
}

.tm-filter-search-wide {
    grid-column: span 2;
}

.tm-filter-field {
    display: grid;
    gap: .35rem;
    min-width: 0;
    margin: 0;
}

.tm-filter-field > span {
    color: rgba(255,255,255,.55);
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.tm-filter-field input,
.tm-filter-field select {
    width: 100%;
    min-width: 0;
    min-height: 2.75rem;
    margin: 0;
    padding: 0 .72rem;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: .5rem;
    background: rgba(255,255,255,.035);
    box-shadow: none;
    color: #fff;
    color-scheme: dark;
    font-size: .8rem;
}

.tm-filter-field input:focus,
.tm-filter-field select:focus {
    border-color: rgba(215,183,106,.48);
    box-shadow: 0 0 0 2px rgba(215,183,106,.08);
}

.tm-filter-field input::placeholder {
    color: rgba(255,255,255,.33);
}

.tm-filter-field select option,
.tm-filter-field select optgroup {
    background: #181f25;
    color: #fff;
}

.tm-filter-facet-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: .7rem;
}

.tm-filter-facet {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: .65rem;
    background: rgba(255,255,255,.018);
}

.tm-filter-facet > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    min-height: 3.2rem;
    padding: .7rem .8rem;
    cursor: pointer;
    list-style: none;
}

.tm-filter-facet > summary::-webkit-details-marker {
    display: none;
}

.tm-filter-facet > summary span {
    color: rgba(255,255,255,.83);
    font-size: .76rem;
    font-weight: 700;
}

.tm-filter-facet > summary small {
    color: #d8c38d;
    font-size: .63rem;
    white-space: nowrap;
}

.tm-filter-facet-options {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: .4rem;
    max-height: 14rem;
    overflow-y: auto;
    padding: .65rem;
    border-top: 1px solid rgba(255,255,255,.07);
}

.tm-filter-check {
    position: relative;
    display: block;
    margin: 0;
    cursor: pointer;
}

.tm-filter-check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.tm-filter-check span {
    display: flex;
    align-items: center;
    min-height: 2.1rem;
    padding: .38rem .55rem;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: .5rem;
    background: rgba(255,255,255,.025);
    color: rgba(255,255,255,.69);
    font-size: .68rem;
    line-height: 1.3;
}

.tm-filter-check input:checked + span {
    border-color: rgba(215,183,106,.35);
    background: rgba(215,183,106,.08);
    color: #ecd9a6;
}

.tm-filter-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: .9rem;
    border-top: 1px solid rgba(255,255,255,.07);
}

.tm-filter-footer .tm-muted {
    max-width: 48rem;
}

.tm-filter-footer .tm-button {
    width: auto !important;
    min-width: 13rem;
}

/* Stack-Toolbar ------------------------------------------------------------- */
.tm-stack-meta {
    gap: 1rem;
}

.tm-stack-control-cluster {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: .45rem;
}

.tm-rewind-button {
    width: auto !important;
    min-width: 0 !important;
    min-height: 2rem !important;
    height: auto !important;
    margin: 0 !important;
    padding: .42rem .62rem !important;
    border: 1px solid rgba(215,183,106,.25) !important;
    border-radius: .5rem !important;
    box-shadow: none !important;
    background: rgba(215,183,106,.055) !important;
    color: #e8d5a3 !important;
    font-size: .66rem !important;
    font-weight: 700 !important;
    letter-spacing: .04em !important;
    line-height: 1.1 !important;
    text-transform: none !important;
}

.tm-rewind-button:disabled {
    opacity: .35;
    cursor: default;
}

.tm-swipe-mode-switch {
    display: inline-grid;
    grid-template-columns: repeat(2, auto);
    gap: .22rem;
    padding: .2rem;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: .55rem;
    background: rgba(255,255,255,.025);
}

.tm-swipe-mode-switch button {
    width: auto !important;
    min-width: 0 !important;
    min-height: 1.7rem !important;
    height: auto !important;
    margin: 0 !important;
    padding: .34rem .52rem !important;
    border: 1px solid transparent !important;
    border-radius: .4rem !important;
    box-shadow: none !important;
    background: transparent !important;
    color: rgba(255,255,255,.5) !important;
    font-size: .61rem !important;
    font-weight: 700 !important;
    letter-spacing: .04em !important;
    line-height: 1.1 !important;
    text-transform: none !important;
}

.tm-swipe-mode-switch button.is-active {
    border-color: rgba(215,183,106,.25) !important;
    background: rgba(215,183,106,.08) !important;
    color: #fff !important;
}

/* Swipe-Stapel -------------------------------------------------------------- */
.tm-swipe-stage {
    position: relative;
    min-height: 1px;
    isolation: isolate;
    perspective: 1100px;
}

.tm-swipe-stage > .tm-swipe-card {
    position: relative;
    z-index: 4;
    transform-origin: center 92%;
    will-change: transform, opacity;
}

.tm-swipe-back-card {
    position: absolute;
    inset: .45rem .75rem auto;
    z-index: 1;
    display: grid;
    grid-template-columns: 4rem minmax(0,1fr);
    align-items: center;
    gap: .8rem;
    min-height: 7rem;
    padding: .75rem;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: .9rem;
    background:
        linear-gradient(145deg, rgba(255,255,255,.04), rgba(255,255,255,.01)),
        rgba(12,16,20,.96);
    box-shadow: 0 .8rem 2rem rgba(0,0,0,.22);
    color: rgba(255,255,255,.5);
    pointer-events: none;
}

.tm-swipe-back-1 {
    z-index: 3;
    transform: translateY(.72rem) scale(.975);
    opacity: .72;
}

.tm-swipe-back-2 {
    z-index: 2;
    transform: translateY(1.3rem) scale(.95);
    opacity: .42;
}

.tm-swipe-back-image {
    width: 4rem;
    aspect-ratio: 2/3;
    border-radius: .4rem;
    background-size: cover;
    background-position: center;
    filter: saturate(.7) brightness(.75);
}

.tm-swipe-back-copy {
    overflow: hidden;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tm-swipe-card.is-swipe-enabled {
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
}

.tm-swipe-card.is-dragging {
    cursor: grabbing;
    transition: none !important;
}

.tm-swipe-card.is-returning {
    transition:
        transform .24s cubic-bezier(.2,.8,.2,1),
        opacity .2s ease !important;
}

.tm-swipe-card.is-leaving {
    pointer-events: none;
    transition:
        transform .22s cubic-bezier(.25,.75,.3,1),
        opacity .18s ease !important;
}

.tm-swipe-stamp {
    position: absolute;
    z-index: 12;
    top: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.7rem;
    padding: .5rem .8rem;
    border: 2px solid currentColor;
    border-radius: .45rem;
    background: rgba(8,11,14,.82);
    box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.3);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .13em;
    opacity: 0;
    pointer-events: none;
    text-transform: uppercase;
}

.tm-swipe-stamp-like {
    right: 1rem;
    color: #e8d5a3;
    transform: rotate(7deg);
    opacity: var(--tm-like-opacity, 0);
}

.tm-swipe-stamp-pass {
    left: 1rem;
    color: #d98282;
    transform: rotate(-7deg);
    opacity: var(--tm-pass-opacity, 0);
}

.tm-swipe-stamp-rewind {
    left: 50%;
    top: .9rem;
    color: #9fcbe7;
    transform: translateX(-50%);
    opacity: var(--tm-rewind-opacity, 0);
}

.tm-rewind-edge {
    position: absolute;
    z-index: 10;
    left: -.45rem;
    top: 50%;
    display: grid;
    place-items: center;
    width: 1.75rem;
    height: 3rem;
    border: 1px solid rgba(159,203,231,.2);
    border-radius: .55rem;
    background: rgba(14,21,27,.88);
    color: rgba(159,203,231,.75);
    font-size: .9rem;
    opacity: .55;
    pointer-events: none;
    transform: translateY(-50%);
}

html[data-tm-swipe-mode="classic"] .tm-rewind-edge,
html[data-tm-swipe-mode="classic"] .tm-swipe-back-card {
    display: none;
}

.tm-swipe-hint {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    margin-top: .65rem;
    padding: 0 .35rem;
    color: rgba(255,255,255,.38);
    font-size: .62rem;
}

.tm-swipe-hint.is-hidden {
    display: none;
}

/* Buchkarte: zusätzliche Meta-/Facetzeilen --------------------------------- */
.tm-book-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin: .72rem 0 .05rem;
}

.tm-book-meta-line span {
    padding: .28rem .5rem;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: .4rem;
    background: rgba(255,255,255,.02);
    color: rgba(255,255,255,.57);
    font-size: .65rem;
}

.tm-book-facet-pills {
    margin-top: .5rem;
}

.tm-book-facet-pills span {
    border-style: dashed;
    color: rgba(255,255,255,.64);
}

.tm-status-pills {
    margin-top: .1rem;
}

/* Mitglieder-Stapel -------------------------------------------------------- */
.tm-member-discovery-shell {
    display: grid;
    gap: .75rem;
}

.tm-member-stack-meta {
    padding: 0 .15rem;
}

.tm-member-discovery-shell .tm-swipe-back-card {
    min-height: 8rem;
}

.tm-match-moment {
    position: absolute;
    z-index: 40;
    inset: 0;
    display: grid;
    align-content: center;
    justify-items: center;
    padding: 2rem;
    border: 1px solid rgba(215,183,106,.4);
    border-radius: .9rem;
    background:
        radial-gradient(circle at 50% 45%, rgba(215,183,106,.18), transparent 42%),
        rgba(8,11,14,.96);
    color: #fff;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transform: scale(.96);
    transition: opacity .22s ease, transform .22s ease;
}

.tm-match-moment.is-visible {
    opacity: 1;
    transform: scale(1);
}

.tm-match-star {
    display: grid;
    place-items: center;
    width: 4.2rem;
    height: 4.2rem;
    margin-bottom: .8rem;
    border: 1px solid rgba(215,183,106,.35);
    border-radius: 50%;
    background: rgba(215,183,106,.08);
    color: #ead59f;
    font-size: 1.45rem;
}

.tm-match-moment small {
    color: var(--tm-gold);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .22em;
}

.tm-match-moment strong {
    margin-top: .4rem;
    font-size: clamp(1.4rem, 3vw, 2rem);
    letter-spacing: .1em;
}

.tm-match-moment p {
    max-width: 28rem;
    margin: .65rem 0 0;
    color: var(--tm-muted);
    line-height: 1.6;
}

/* Toast -------------------------------------------------------------------- */
.tm-floating-toast {
    position: fixed;
    z-index: 999999;
    right: 1rem;
    bottom: 1rem;
    max-width: min(28rem, calc(100vw - 2rem));
    padding: .8rem 1rem;
    border: 1px solid rgba(215,183,106,.28);
    border-radius: .6rem;
    background: rgba(13,18,22,.97);
    box-shadow: 0 1rem 2rem rgba(0,0,0,.35);
    color: rgba(255,255,255,.9);
    font-size: .78rem;
    opacity: 0;
    transform: translateY(.5rem);
    transition: opacity .18s ease, transform .18s ease;
}

.tm-floating-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.tm-floating-toast.is-error {
    border-color: rgba(201,107,107,.42);
}

/* Responsive --------------------------------------------------------------- */
@media (max-width: 980px) {
    .tm-filter-core-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .tm-filter-facet-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .tm-filter-search-wide {
        grid-column: 1 / -1;
    }
}

@media (max-width: 736px) {
    .tm-advanced-filter-summary,
    .tm-advanced-filter-body {
        padding-left: .9rem;
        padding-right: .9rem;
    }

    .tm-filter-core-grid,
    .tm-filter-facet-grid {
        grid-template-columns: 1fr;
    }

    .tm-filter-facet-options {
        grid-template-columns: 1fr;
    }

    .tm-filter-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .tm-filter-footer .tm-button {
        width: 100% !important;
    }

    .tm-stack-meta {
        align-items: flex-start;
    }

    .tm-stack-control-cluster {
        width: 100%;
        justify-content: flex-start;
    }

    .tm-swipe-hint {
        display: grid;
        grid-template-columns: 1fr 1fr;
        line-height: 1.4;
    }

    .tm-swipe-hint span:nth-child(2) {
        grid-column: 1 / -1;
        grid-row: 2;
        text-align: center;
    }

    .tm-swipe-hint span:last-child {
        text-align: right;
    }

    .tm-rewind-edge {
        left: -.25rem;
    }
}

@media (max-width: 480px) {
    .tm-swipe-mode-switch {
        width: 100%;
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .tm-swipe-mode-switch button {
        width: 100% !important;
    }

    .tm-rewind-button {
        flex: 1 1 auto;
    }

    .tm-stack-control-cluster .tm-text-btn {
        flex: 1 1 100%;
    }

    .tm-swipe-back-card {
        inset-left: .35rem;
        inset-right: .35rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tm-swipe-card,
    .tm-match-moment,
    .tm-floating-toast {
        transition: none !important;
    }
}

/* =============================================================================
   TrueMatch FINAL – Layout-/Swipe-Korrektur
   Swipe = nur im Stapel blättern. Entscheidungen ausschließlich per Button.
   ============================================================================= */

/* --- Filterlayout: keine überlappenden oder abgeschnittenen Felder -------- */
.tm-advanced-filter-card,
.tm-advanced-filter-body,
.tm-filter-core-grid,
.tm-filter-core-grid > *,
.tm-filter-field,
.tm-filter-field > * {
    min-width: 0;
    box-sizing: border-box;
}

.tm-filter-core-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
    gap: .78rem !important;
    align-items: end;
}

.tm-filter-core-grid .tm-filter-field {
    grid-column: span 3;
    width: 100%;
}

.tm-filter-core-grid .tm-filter-search-wide {
    grid-column: span 6;
}

.tm-filter-field input,
.tm-filter-field select {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 .78rem !important;
}

.tm-filter-field input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}

.tm-filter-field input[type="number"]::-webkit-inner-spin-button,
.tm-filter-field input[type="number"]::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.tm-filter-facet-grid,
.tm-filter-facet,
.tm-filter-facet-options {
    min-width: 0;
    box-sizing: border-box;
}

.tm-filter-facet {
    width: 100%;
}

/* --- Navigation im Stapel ------------------------------------------------- */
.tm-deck-nav {
    display: inline-grid;
    grid-template-columns: repeat(2, auto);
    gap: .3rem;
    align-items: center;
}

.tm-deck-nav-button {
    width: auto !important;
    min-width: 0 !important;
    min-height: 2rem !important;
    height: auto !important;
    margin: 0 !important;
    padding: .43rem .62rem !important;
    border: 1px solid rgba(255,255,255,.13) !important;
    border-radius: .48rem !important;
    background: rgba(255,255,255,.03) !important;
    box-shadow: none !important;
    color: rgba(255,255,255,.72) !important;
    font-size: .64rem !important;
    font-weight: 700 !important;
    letter-spacing: .03em !important;
    line-height: 1.1 !important;
    text-transform: none !important;
}

.tm-deck-nav-button:hover:not(:disabled),
.tm-deck-nav-button:focus-visible:not(:disabled) {
    border-color: rgba(215,183,106,.34) !important;
    background: rgba(215,183,106,.065) !important;
    color: #fff !important;
}

.tm-deck-nav-button:disabled {
    opacity: .3;
    cursor: default;
}

/* Die alte Rewind-Lasche gehört nicht mehr zum Swipe-Konzept. */
.tm-rewind-edge,
.tm-rewind-button {
    display: none !important;
}

/* --- Swipe ist Navigation, nicht Like/Pass -------------------------------- */
.tm-swipe-stamp-like,
.tm-swipe-stamp-pass,
.tm-swipe-stamp-rewind {
    display: none !important;
}

.tm-swipe-stamp-next,
.tm-swipe-stamp-prev {
    top: 1rem;
    opacity: 0;
}

.tm-swipe-stamp-next {
    left: 1rem;
    right: auto;
    color: #e3ce94;
    transform: rotate(-7deg);
    opacity: var(--tm-next-opacity, 0);
}

.tm-swipe-stamp-prev {
    right: 1rem;
    left: auto;
    color: #9fcbe7;
    transform: rotate(7deg);
    opacity: var(--tm-prev-opacity, 0);
}

.tm-swipe-card.is-edge-blocked {
    cursor: not-allowed;
}

.tm-swipe-card.is-decision-leaving {
    transition:
        transform .18s ease,
        opacity .16s ease !important;
}

/* Deutlicher, aber nicht mit einer Entscheidung verwechselbar. */
.tm-swipe-card.is-next-preview {
    box-shadow:
        0 0 0 1px rgba(215,183,106,.12),
        0 1.2rem 3rem rgba(0,0,0,.28);
}

.tm-swipe-card.is-prev-preview {
    box-shadow:
        0 0 0 1px rgba(159,203,231,.12),
        0 1.2rem 3rem rgba(0,0,0,.28);
}

.tm-swipe-hint {
    grid-template-columns: 1fr auto 1fr;
}

.tm-swipe-hint span:first-child {
    text-align: left;
}

.tm-swipe-hint span:nth-child(2) {
    text-align: center;
    color: rgba(255,255,255,.48);
}

.tm-swipe-hint span:last-child {
    text-align: right;
}

/* --- Responsive Filter ---------------------------------------------------- */
@media (max-width: 980px) {
    .tm-filter-core-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .tm-filter-core-grid .tm-filter-field {
        grid-column: span 1;
    }

    .tm-filter-core-grid .tm-filter-search-wide {
        grid-column: 1 / -1;
    }

    .tm-filter-facet-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 600px) {
    .tm-advanced-filter-summary {
        align-items: flex-start;
    }

    .tm-filter-summary-meta {
        flex: 0 0 auto;
    }

    .tm-filter-core-grid {
        grid-template-columns: 1fr !important;
        gap: .72rem !important;
    }

    .tm-filter-core-grid .tm-filter-field,
    .tm-filter-core-grid .tm-filter-search-wide {
        grid-column: 1 / -1;
    }

    .tm-filter-facet-grid {
        grid-template-columns: 1fr !important;
    }

    .tm-filter-field input,
    .tm-filter-field select {
        min-height: 2.8rem !important;
    }

    .tm-stack-control-cluster {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        gap: .5rem;
    }

    .tm-deck-nav,
    .tm-swipe-mode-switch {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tm-deck-nav-button,
    .tm-swipe-mode-switch button {
        width: 100% !important;
    }

    .tm-stack-control-cluster .tm-text-btn {
        width: 100%;
        text-align: left;
    }

    .tm-swipe-hint {
        display: grid;
        grid-template-columns: 1fr;
        gap: .22rem;
        text-align: center;
        line-height: 1.45;
    }

    .tm-swipe-hint span,
    .tm-swipe-hint span:first-child,
    .tm-swipe-hint span:nth-child(2),
    .tm-swipe-hint span:last-child {
        text-align: center;
    }
}

/* =============================================================================
   TrueMatch V10 – Mobile Flow
   Desktop bleibt unverändert.
   ============================================================================= */

.tm-match-actions {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: .55rem;
    width: min(30rem,100%);
    margin-top: .7rem;
}

.tm-match-next-copy {
    margin-top: .25rem !important;
    color: rgba(255,255,255,.62) !important;
    font-size: .76rem;
}

.tm-match-close {
    position: absolute;
    top: .7rem;
    right: .7rem;
    display: grid !important;
    place-items: center;
    width: 2.25rem !important;
    min-width: 2.25rem !important;
    height: 2.25rem !important;
    min-height: 2.25rem !important;
    padding: 0 !important;
    border: 1px solid rgba(255,255,255,.14) !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,.035) !important;
    box-shadow: none !important;
    color: rgba(255,255,255,.72) !important;
    font-size: 1.15rem !important;
    line-height: 1 !important;
}

@media (max-width: 736px) {
    .tm-hero {
        padding: .9rem 1rem !important;
        gap: .45rem !important;
    }

    .tm-hero h1 {
        margin-bottom: .4rem !important;
        font-size: 1.35rem !important;
        line-height: 1.18 !important;
        letter-spacing: .1rem !important;
    }

    .tm-hero-copy > p:last-child {
        display: -webkit-box;
        overflow: hidden;
        font-size: .78rem;
        line-height: 1.5;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .tm-mode-switch {
        position: sticky;
        z-index: 110;
        top: calc(var(--tp-navbar-height, 3.5rem) + .35rem);
        margin-bottom: .8rem !important;
        background: rgba(10,14,18,.97) !important;
        box-shadow: 0 .7rem 1.6rem rgba(0,0,0,.28);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .tm-role-switch {
        position: sticky;
        z-index: 105;
        top: calc(var(--tp-navbar-height, 3.5rem) + 4rem);
        margin-bottom: .8rem !important;
        background: rgba(10,14,18,.96) !important;
        box-shadow: 0 .65rem 1.4rem rgba(0,0,0,.24);
    }

    .tm-stack-control-cluster .tm-deck-nav {
        display: none !important;
    }

    .tm-stack-meta {
        gap: .55rem !important;
        margin-bottom: .65rem !important;
    }

    .tm-book-cover-wrap {
        min-height: 0 !important;
        max-height: none !important;
        padding: .45rem;
    }

    .tm-book-cover-wrap img {
        width: auto !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: 48svh !important;
        object-fit: contain !important;
        border-radius: .55rem;
    }

    .tm-person-photo-wrap,
    .tm-person-photo-wrap img {
        min-height: 0 !important;
        max-height: 44svh !important;
    }

    .tm-person-photo-wrap img {
        object-fit: contain !important;
        background: rgba(0,0,0,.18);
    }

    .tm-book-description-wrap .tm-book-description {
        display: -webkit-box;
        overflow: hidden;
        margin-bottom: .35rem !important;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 4;
    }

    .tm-book-description-wrap.is-expanded .tm-book-description {
        display: block;
        overflow: visible;
        -webkit-line-clamp: unset;
    }

    .tm-description-toggle {
        display: inline-flex !important;
        width: auto !important;
        min-width: 0 !important;
        min-height: 0 !important;
        height: auto !important;
        margin: 0 0 .55rem !important;
        padding: .18rem 0 !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        color: #e1ca8c !important;
        font-size: .67rem !important;
        font-weight: 700 !important;
        letter-spacing: .02em !important;
        line-height: 1.3 !important;
        text-decoration: underline;
        text-underline-offset: .18rem;
        text-transform: none !important;
    }

    .tm-book-links {
        display: grid !important;
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: .5rem !important;
        margin-top: .65rem !important;
    }

    .tm-book-links .tm-text-link {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 2.65rem;
        padding: .55rem .6rem;
        border: 1px solid rgba(255,255,255,.14);
        border-radius: .58rem;
        background: rgba(255,255,255,.035);
        color: rgba(255,255,255,.78) !important;
        font-size: .64rem !important;
        font-weight: 700;
        line-height: 1.25;
        text-align: center;
        text-decoration: none !important;
    }

    .tm-book-links .tm-book-link-release {
        border-color: rgba(215,183,106,.28);
        background: rgba(215,183,106,.055);
        color: #ead7a3 !important;
    }

    .tm-book-actions,
    .tm-decision-row {
        grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    }

    body.truematch-page {
        padding-bottom: calc(5.1rem + env(safe-area-inset-bottom));
    }

    .tm-mobile-action-dock {
        position: fixed;
        z-index: 12000;
        left: .65rem;
        right: .65rem;
        bottom: calc(.55rem + env(safe-area-inset-bottom));
        display: grid;
        grid-template-columns: 2.7rem minmax(0,.78fr) minmax(0,1.2fr) 2.7rem;
        gap: .38rem;
        align-items: stretch;
        padding: .42rem;
        border: 1px solid rgba(255,255,255,.16);
        border-radius: .85rem;
        background: rgba(12,17,21,.94);
        box-shadow: 0 1rem 2.4rem rgba(0,0,0,.42);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }

    .tm-mobile-action-dock[hidden] {
        display: none !important;
    }

    .tm-mobile-action-dock[data-context="people"] {
        grid-template-columns: 3rem minmax(0,1fr) 3rem;
    }

    .tm-mobile-action-dock button {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 3rem !important;
        height: auto !important;
        margin: 0 !important;
        padding: .48rem .35rem !important;
        border: 1px solid rgba(255,255,255,.14) !important;
        border-radius: .62rem !important;
        background: rgba(255,255,255,.04) !important;
        box-shadow: none !important;
        color: rgba(255,255,255,.82) !important;
        font-size: .65rem !important;
        font-weight: 800 !important;
        letter-spacing: .025em !important;
        line-height: 1.15 !important;
        text-transform: none !important;
    }

    .tm-mobile-action-dock .tm-mobile-dock-nav {
        font-size: 1.2rem !important;
        font-weight: 500 !important;
    }

    .tm-mobile-action-dock .tm-mobile-dock-primary {
        border-color: rgba(215,183,106,.4) !important;
        background: rgba(215,183,106,.12) !important;
        color: #f0deb0 !important;
    }

    .tm-mobile-action-dock button:disabled {
        opacity: .26;
    }

    .tm-match-moment {
        position: fixed !important;
        z-index: 13000 !important;
        inset: 0 !important;
        align-content: center !important;
        padding: 1rem !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: rgba(3,6,8,.82) !important;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .tm-match-moment::before {
        content: "";
        position: absolute;
        z-index: -1;
        width: min(31rem, calc(100vw - 1.5rem));
        height: min(32rem, calc(100svh - 3rem));
        border: 1px solid rgba(215,183,106,.36);
        border-radius: 1rem;
        background:
            radial-gradient(circle at 50% 15%, rgba(215,183,106,.14), transparent 38%),
            rgba(10,14,18,.98);
        box-shadow: 0 1.5rem 3.5rem rgba(0,0,0,.5);
    }

    .tm-match-moment > * {
        max-width: min(27rem, calc(100vw - 3rem));
    }

    .tm-match-actions {
        width: min(27rem, calc(100vw - 3rem));
        grid-template-columns: 1fr !important;
    }
}

@media (min-width: 737px) {
    .tm-description-toggle,
    .tm-mobile-action-dock {
        display: none !important;
    }
}

/* =============================================================================
   TrueMatch V11 – Detailkarten / Modal-Trigger
   ============================================================================= */

.tm-book-title-open,
.tm-person-title-open {
    appearance: none;
    display: block;
    width: auto !important;
    max-width: 100%;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #fff !important;
    font: inherit !important;
    text-align: left;
    text-transform: none !important;
    cursor: pointer;
}

.tm-book-title-open {
    font-size: clamp(1.35rem, 2.4vw, 1.85rem) !important;
    font-weight: 800 !important;
    letter-spacing: .08em !important;
    line-height: 1.18 !important;
}

.tm-person-title-open {
    font-size: clamp(1.2rem, 2vw, 1.55rem) !important;
    font-weight: 800 !important;
    letter-spacing: .06em !important;
    line-height: 1.2 !important;
}

.tm-book-title-open:hover,
.tm-book-title-open:focus-visible,
.tm-person-title-open:hover,
.tm-person-title-open:focus-visible {
    color: #ead7a3 !important;
    outline: none;
}

.tm-book-link-details {
    appearance: none;
    width: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: inherit !important;
    font: inherit !important;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: .2rem;
    text-transform: none !important;
    cursor: pointer;
}

@media (max-width: 736px) {
    .tm-book-links {
        grid-template-columns: 1fr 1fr !important;
    }

    .tm-book-links .tm-book-link-details {
        display: flex !important;
        align-items: center;
        justify-content: center;
        min-height: 2.65rem !important;
        padding: .55rem .6rem !important;
        border: 1px solid rgba(255,255,255,.14) !important;
        border-radius: .58rem !important;
        background: rgba(255,255,255,.035) !important;
        color: rgba(255,255,255,.78) !important;
        font-size: .64rem !important;
        font-weight: 700 !important;
        line-height: 1.25 !important;
        text-align: center;
        text-decoration: none !important;
    }

    .tm-book-links .tm-book-link-release {
        grid-column: 1 / -1;
    }
}

/* =============================================================================
   TrueMatch V11.1 – lange Titel auf Desktop sauber umbrechen
   ============================================================================= */

.tm-book-copy,
.tm-person-copy {
    min-width: 0;
    max-width: 100%;
}

.tm-book-title-open,
.tm-person-title-open {
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
}

@media (min-width: 737px) {
    .tm-book-title-open {
        font-size: clamp(1.3rem, 1.7vw, 1.72rem) !important;
        line-height: 1.2 !important;
    }

    .tm-person-title-open {
        font-size: clamp(1.2rem, 1.5vw, 1.5rem) !important;
    }
}

