/* =========================================================================
   Bestimmungsschlüssel & Vergleich
   ========================================================================= */
.discover-page .ts-header--solid { background: var(--ts-surface); border-bottom: 1px solid var(--ts-line); }
.discover { max-width: 1000px; margin: 0 auto; padding: clamp(2rem,5vw,3.5rem) clamp(1.25rem,5vw,3rem) 4rem; }
.discover__intro { max-width: 680px; margin-bottom: 2rem; }
.discover__intro .section-eyebrow { color: var(--ts-accent); }
.discover__intro h1 { font-family: var(--ts-font-head); font-weight: 600; font-size: clamp(2rem,5vw,3rem); margin: .3rem 0 .6rem; }
.discover__lead { color: var(--ts-muted); font-size: 1.1rem; margin: 0; }

.track-glyph { background: var(--ts-accent); }

/* ---- Bestimmungsschlüssel ---- */
.ident { display: grid; grid-template-columns: minmax(280px, 360px) 1fr; gap: 2rem; align-items: start; }
@media (max-width: 760px) { .ident { grid-template-columns: 1fr; } }
.ident-panel { background: var(--ts-surface); border: 1px solid var(--ts-line); border-radius: var(--ts-radius); padding: 1.4rem; box-shadow: var(--ts-shadow); position: sticky; top: 1rem; }
.ident-row { margin-bottom: 1.2rem; }
.ident-row__q { display: block; font-family: var(--ts-font-head); font-weight: 600; font-size: 1rem; margin-bottom: .6rem; }
.ident-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.ident-chip { padding: .5rem .85rem; border: 1.5px solid var(--ts-line); border-radius: 999px; background: var(--ts-bg); color: var(--ts-ink); font-family: inherit; font-size: .9rem; cursor: pointer; transition: border-color .15s, background .15s; }
.ident-chip:hover { border-color: var(--ts-accent); }
.ident-chip.is-active { background: var(--ts-accent); border-color: var(--ts-accent); color: #2b2208; font-weight: 600; }
.ident-select { width: 100%; padding: .6rem .8rem; border: 1.5px solid var(--ts-line); border-radius: 10px; background: var(--ts-bg); color: var(--ts-ink); font-family: inherit; font-size: 1rem; }
.ident-reset { margin-top: .4rem; background: none; border: none; color: var(--ts-muted); font-family: inherit; font-size: .9rem; text-decoration: underline; cursor: pointer; padding: 0; }

.ident-count { font-family: var(--ts-font-head); font-weight: 600; font-size: 1.2rem; margin: 0 0 1rem; }
.ident-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .9rem; }
.ident-card { display: flex; flex-direction: column; align-items: center; gap: .25rem; padding: 1.2rem .8rem; background: var(--ts-surface); border: 1px solid var(--ts-line); border-radius: var(--ts-radius); text-decoration: none; color: var(--ts-ink); text-align: center; transition: transform .15s, border-color .15s, box-shadow .2s; }
.ident-card:hover { transform: translateY(-4px); border-color: var(--ts-accent); box-shadow: var(--ts-shadow); }
.ident-card__glyph { display: flex; align-items: center; justify-content: center; height: 60px; }
.ident-card__glyph .track-glyph { display: block; width: 48px; height: 60px; }
.ident-card__name { font-family: var(--ts-font-head); font-weight: 600; font-size: 1.05rem; }
.ident-card__sci { font-style: italic; font-size: .82rem; color: var(--ts-muted); }
.ident-card__hab { font-size: .78rem; color: var(--ts-accent); }
.ident-empty { color: var(--ts-muted); grid-column: 1 / -1; }

/* ---- Vergleich ---- */
.cmp-heads__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 1rem; margin-bottom: 1.5rem; }
.cmp-col { display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.cmp-select { width: 100%; max-width: 240px; padding: .6rem .8rem; border: 1.5px solid var(--ts-line); border-radius: 10px; background: var(--ts-surface); color: var(--ts-ink); font-family: inherit; font-size: 1rem; }
.cmp-glyph { width: 96px; height: 110px; display: flex; align-items: center; justify-content: center; }
.cmp-glyph .track-glyph { width: 84px; height: 100px; }
.cmp-name { font-family: var(--ts-font-head); font-weight: 600; color: var(--ts-ink); text-decoration: none; }
.cmp-name:hover { color: var(--ts-accent); }
.cmp-vs { align-self: center; font-family: var(--ts-font-head); font-weight: 700; color: var(--ts-muted); padding-top: 3rem; }

.cmp-table { border: 1px solid var(--ts-line); border-radius: var(--ts-radius); overflow: hidden; background: var(--ts-surface); }
.cmp-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--ts-line); }
.cmp-row:last-child { border-bottom: none; }
.cmp-row:nth-child(even) { background: var(--ts-bg); }
.cmp-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ts-muted); text-align: center; padding: .8rem .6rem; white-space: nowrap; }
.cmp-cell { padding: .8rem 1rem; }
.cmp-cell--a { text-align: right; }
.cmp-cell--b { text-align: left; }
@media (max-width: 620px) {
    .cmp-label { font-size: .68rem; white-space: normal; }
    .cmp-cell { padding: .7rem .5rem; font-size: .92rem; }
    .cmp-glyph { width: 64px; height: 76px; }
    .cmp-glyph .track-glyph { width: 56px; height: 68px; }
    .cmp-vs { padding-top: 2rem; }
}

/* ===== Bestimmung: Modus-Umschalter ===== */
.ident-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 2rem; }
@media (max-width: 560px) { .ident-modes { grid-template-columns: 1fr; } }
.ident-mode { display: flex; align-items: center; gap: .9rem; padding: 1.1rem 1.3rem; border: 1.5px solid var(--ts-line); border-radius: var(--ts-radius); background: var(--ts-surface); cursor: pointer; font-family: inherit; text-align: left; transition: border-color .15s, transform .15s, box-shadow .2s; }
.ident-mode:hover { transform: translateY(-3px); border-color: var(--ts-accent); box-shadow: var(--ts-shadow); }
.ident-mode.is-active { border-color: var(--ts-accent); border-width: 2px; }
.ident-mode__icon { font-size: 1.8rem; }
.ident-mode b { display: block; font-family: var(--ts-font-head); font-size: 1.15rem; color: var(--ts-ink); }
.ident-mode small { color: var(--ts-muted); font-size: .85rem; }

/* ===== Entscheidungsbaum ===== */
.ident-tree { background: var(--ts-surface); border: 1px solid var(--ts-line); border-radius: var(--ts-radius); padding: clamp(1.25rem,4vw,2rem); box-shadow: var(--ts-shadow); }
.dt-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; padding-bottom: 1rem; border-bottom: 1px solid var(--ts-line); }
.dt-count { color: var(--ts-muted); }
.dt-count b { color: var(--ts-accent); font-family: var(--ts-font-head); font-size: 1.2rem; }
.dt-reset { background: none; border: none; color: var(--ts-muted); text-decoration: underline; cursor: pointer; font-family: inherit; font-size: .9rem; }
.dt-q h3 { font-family: var(--ts-font-head); font-weight: 600; font-size: 1.4rem; margin: 0 0 1.2rem; }
.dt-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .7rem; }
.dt-opt { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: 1rem 1.2rem; border: 1.5px solid var(--ts-line); border-radius: 12px; background: var(--ts-bg); color: var(--ts-ink); font-family: inherit; font-weight: 600; font-size: 1rem; cursor: pointer; transition: border-color .15s, background .15s; }
.dt-opt:hover { border-color: var(--ts-accent); }
.dt-opt__n { font-size: .8rem; color: #2b2208; background: var(--ts-accent); border-radius: 999px; padding: .1rem .55rem; font-weight: 700; }
.dt-opt--skip { justify-content: center; color: var(--ts-muted); font-weight: 500; }
.dt-result__lead { font-family: var(--ts-font-head); font-size: 1.15rem; margin: 0 0 1rem; }
.dt-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.dt-card { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: 1.4rem 1rem; background: var(--ts-bg); border: 1px solid var(--ts-line); border-radius: var(--ts-radius); text-decoration: none; color: var(--ts-ink); text-align: center; transition: transform .15s, border-color .15s, box-shadow .2s; }
.dt-card:hover { transform: translateY(-4px); border-color: var(--ts-accent); box-shadow: var(--ts-shadow); }
.dt-card__glyph { display: flex; align-items: center; justify-content: center; height: 64px; }
.dt-card__glyph .track-glyph { display: block; width: 52px; height: 64px; }
.dt-card__name { font-family: var(--ts-font-head); font-weight: 600; font-size: 1.15rem; }
.dt-card__sci { font-style: italic; font-size: .82rem; color: var(--ts-muted); }
.dt-card__desc { font-size: .85rem; color: var(--ts-muted); margin-top: .3rem; }
.dt-card__cta { margin-top: .5rem; color: var(--ts-accent); font-weight: 600; font-size: .9rem; }

/* ===== Foto-Bestimmung ===== */
.foto { background: var(--ts-surface); border: 1px solid var(--ts-line); border-radius: var(--ts-radius); padding: clamp(1.25rem,4vw,2rem); box-shadow: var(--ts-shadow); text-align: center; }
.foto__lead { color: var(--ts-muted); max-width: 60ch; margin: 0 auto 1.4rem; }
.foto__drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem; min-height: 230px; padding: 1.5rem; border: 2px dashed var(--ts-line); border-radius: var(--ts-radius); background: var(--ts-bg); cursor: pointer; margin-bottom: 1.2rem; transition: border-color .15s; }
.foto__drop:hover { border-color: var(--ts-accent); }
.foto__hint { color: var(--ts-muted); font-weight: 600; }
.foto__hint small { color: var(--ts-muted); font-weight: 400; }
.foto__preview:empty { display: none; }
.foto__preview img { max-width: 100%; max-height: 320px; border-radius: 10px; }
.foto__msg { min-height: 1.3em; margin: 1rem 0 0; font-weight: 600; color: var(--ts-accent); }
.foto__note { color: var(--ts-muted); font-size: .82rem; margin: 1rem auto 0; max-width: 52ch; }
.foto__note a { color: var(--ts-accent); }

/* Erfolgsseite: KI-Begründung */
.shop-reason { background: var(--ts-bg, #f3ecdd); border-left: 3px solid var(--ts-accent, #d9a441); padding: .8rem 1rem; border-radius: 8px; text-align: left; color: var(--ts-ink, #2b2620); margin: 1rem 0; }
