/* ============================================================
   Oeffentliche Rechner (/tools/...) - gemeinsame Bausteine
   ------------------------------------------------------------
   Geladen ueber tools/templates/tools/_tool_base.html.
   Optik wie der Critical-Speed-Rechner (dort noch als .cst-* im
   Template) bzw. die Plan-Modals des Coach-Portals: dunkler
   Verlaufskopf mit Icon, Rechenbereich dunkel als Fortsetzung des
   Kopfs, Erklaerungen hell darunter, Karten weiss. Farben nur aus
   tokens.css (--ds-*), Gold = --ds-warning.

   Bausteine (Prefix tl-):
     Rahmen       .tl-page .tl-crumbs .tl-shell .tl-header .tl-body
                  (.tl-tool = dunkler Rechenbereich, .tl-explain = hell)
     Karten       .tl-section .tl-section-head .tl-section-title
     Formular     .tl-label .tl-fields .tl-segment/.tl-tab .tl-panel
                  .tl-input-lg (Einheiten-Umschalter: .tl-segment.is-compact)
     Ausgabe      .tl-facts/.tl-fact(.is-main) .tl-chips .tl-list/.tl-row
                  .tl-avatar .tl-note(.is-warning|.is-danger|.is-success)
     Text         .tl-intro .tl-hint .tl-steps .tl-text .tl-formula .tl-faq
     Marketing    .tl-ads/.tl-ad (Anzeige), .tl-related (Weitere Tools)
     Uebersicht   .tl-hub-*, Tool-Karten .tl-card (tools/index.html)
   ============================================================ */

.tl-page { max-width: 940px; margin: 0 auto; padding: 1rem 1rem 3rem; color: var(--ds-text);
           /* AA-Kontrast fuer kleine Grautexte auf --ds-surface-alt (--ds-muted erreicht dort nur 4,3:1) */
           --tl-muted: #59626a; --tl-gold-text: #8a5f10; }
.tl-page.is-wide { max-width: 1210px; }   /* wie der Container des Dashboards */

/* Brotkrumen ueber der Karte (sichtbar + BreadcrumbList im JSON-LD) */
.tl-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin: 0 0 .75rem;
             padding: 0; list-style: none; font-size: .8rem; color: var(--ds-muted); }
.tl-crumbs li { display: inline-flex; align-items: center; gap: .35rem; }
.tl-crumbs li + li::before { content: "\203A"; color: var(--ds-border-strong); }
.tl-crumbs a { color: var(--ds-muted); text-decoration: none; }
.tl-crumbs a:hover { color: var(--ds-accent); text-decoration: underline; }
.tl-crumbs [aria-current] { color: var(--ds-text); font-weight: 600; }

.tl-shell { border-radius: 14px; overflow: hidden; box-shadow: var(--ds-shadow-md); background: var(--ds-bg); }

.tl-header { display: flex; align-items: center; gap: 1rem; padding: 1.4rem 1.75rem; color: #fff;
             background: linear-gradient(135deg, var(--ds-primary) 0%, var(--ds-secondary) 100%); }
.tl-header-icon { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center;
                  justify-content: center; background: rgba(221, 154, 46, .2); color: var(--ds-warning); font-size: 1.25rem; }
.tl-title { margin: 0; font-size: 1.35rem; font-weight: 800; color: #fff; text-wrap: balance; }
.tl-subtitle { margin: .2rem 0 0; font-size: .9rem; color: rgba(255, 255, 255, .75); }

.tl-body { padding: 1.4rem 1.75rem 1.75rem; }
.tl-tool { display: flex; flex-direction: column; gap: 1rem; padding-top: .4rem;
           background: linear-gradient(180deg, var(--ds-secondary) 0%, var(--ds-primary) 100%); }
.tl-tool .tl-section { margin-bottom: 0; border-color: transparent; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.tl-tool > .tl-note { margin-bottom: 0; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .88); }
.tl-tool > .tl-note > i, .tl-tool > .tl-note a { color: var(--ds-warning); }
.tl-explain { background: var(--ds-bg); }

.tl-section { background: var(--ds-surface); border: 1px solid var(--ds-border-soft); border-radius: var(--ds-radius-lg);
              box-shadow: var(--ds-shadow-sm); padding: 1.15rem 1.3rem; margin-bottom: 1rem; }
.tl-section:last-child { margin-bottom: 0; }
.tl-section[hidden] { display: none; }
.tl-section-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .75rem; }
.tl-section-title { margin: 0; font-size: .98rem; font-weight: 700; color: var(--ds-secondary); }
.tl-section-title i { color: var(--ds-accent); margin-right: .45rem; }
.tl-hint { font-size: .8rem; color: var(--tl-muted); margin: .35rem 0 0; }
.tl-intro { font-size: .86rem; color: var(--ds-muted); margin: 0 0 1rem; }
.tl-label { display: block; font-size: .8rem; font-weight: 600; color: var(--ds-text); margin-bottom: .3rem; }

/* Segment-Umschalter */
.tl-segment { display: flex; gap: 4px; padding: 4px; margin-bottom: 1rem; border-radius: 10px; background: var(--ds-surface-alt); }
.tl-tab { flex: 1 1 0; border: 0; background: transparent; border-radius: 7px; padding: .55rem .6rem; font-size: .85rem;
          font-weight: 600; color: var(--ds-muted); transition: background .15s, color .15s; white-space: nowrap; }
.tl-tab:hover { color: var(--ds-secondary); }
.tl-tab.is-active { background: var(--ds-surface); color: var(--ds-secondary); box-shadow: var(--ds-shadow-sm); }
.tl-tab:focus-visible { outline: 2px solid var(--ds-warning); outline-offset: 1px; }
.tl-tab i { margin-right: .4rem; }
.tl-segment.is-compact { display: inline-flex; margin-bottom: 0; }
.tl-segment.is-compact .tl-tab { flex: 0 0 auto; padding: .35rem .7rem; font-size: .8rem; }

.tl-panel[hidden] { display: none; }
.tl-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .75rem; }
/* Eingabefelder: weiss mit kraeftigem Rahmen (grau gefuellt wirkten sie deaktiviert), Fokus in Gold.
   .tl-input-lg = Hauptfelder (52px, 16px Schrift - kein iOS-Zoom), .tl-input-time = Zeit/Pace mittig */
.tl-page .form-control, .tl-page .form-select { background-color: var(--ds-surface); border-color: var(--ds-border-strong); }
.tl-page .form-control::placeholder { color: #a3aab3; opacity: 1; }
.tl-page .form-control:focus, .tl-page .form-select:focus { border-color: var(--ds-warning); box-shadow: 0 0 0 3px rgba(221, 154, 46, .3); }
.tl-page .form-control.is-invalid { border-color: var(--ds-danger); }
.tl-page .form-control.is-invalid:focus { box-shadow: 0 0 0 3px rgba(220, 53, 69, .2); }
.tl-page .tl-input-lg { height: 52px; font-size: 1.05rem; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.tl-page .tl-input-time { text-align: center; }
.tl-page .input-group-text { background: var(--ds-surface-alt); border-color: var(--ds-border-strong); color: var(--tl-muted); font-size: .85rem; }

/* Auswahl-Kacheln (z. B. Rad-Typ, Distanz-Presets) */
.tl-choices { display: flex; flex-wrap: wrap; gap: .4rem; }
.tl-choice { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .75rem; border-radius: 999px; font-size: .8rem;
             font-weight: 600; border: 1px solid var(--ds-border-soft); background: var(--ds-surface); color: var(--ds-text);
             white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.tl-choice:hover { border-color: var(--ds-accent); color: var(--ds-accent); }
.tl-choice.is-active { background: var(--ds-secondary); border-color: var(--ds-secondary); color: #fff; }
.tl-choice:focus-visible { outline: 2px solid var(--ds-warning); outline-offset: 1px; }

/* Hinweiskaesten mit Icon */
.tl-messages:empty { display: none; }
.tl-messages { display: flex; flex-direction: column; gap: .5rem; margin-top: 1rem; }
.tl-note { display: flex; gap: .7rem; padding: .8rem .95rem; border-radius: var(--ds-radius-sm); font-size: .85rem;
           border: 1px solid var(--ds-border-soft); background: var(--ds-surface-alt); color: var(--ds-text); }
.tl-note > i { flex: 0 0 auto; margin-top: .15rem; color: var(--ds-accent); }
.tl-note a { color: var(--ds-accent); font-weight: 600; }
.tl-note.is-warning { background: var(--ds-warning-soft); border-color: rgba(221, 154, 46, .35); }
.tl-note.is-warning > i { color: var(--ds-warning-dark); }
.tl-note.is-danger { background: var(--ds-danger-soft); border-color: rgba(220, 53, 69, .3); }
.tl-note.is-danger > i { color: var(--ds-danger); }
.tl-note.is-success { background: rgba(40, 167, 69, .08); border-color: rgba(40, 167, 69, .3); }
.tl-note.is-success > i { color: var(--ds-success); }
.tl-note[hidden] { display: none; }

/* Kennzahlen als Kacheln */
.tl-results[hidden] { display: none; }
.tl-tool .tl-results:not([hidden]) { display: flex; flex-direction: column; gap: 1rem; }
.tl-results { scroll-margin-top: 70px; }
.tl-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .6rem; }
.tl-fact { padding: .8rem .95rem; border: 1px solid var(--ds-border-soft); border-radius: var(--ds-radius-sm);
           background: var(--ds-surface-alt); min-width: 0; }
.tl-fact[hidden] { display: none; }
.tl-fact-label { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--tl-muted); overflow-wrap: anywhere; hyphens: auto; }
.tl-fact-value { display: block; font-size: 1.45rem; font-weight: 800; color: var(--ds-text); margin-top: .15rem; font-variant-numeric: tabular-nums; }
.tl-fact-sub { display: block; font-size: .78rem; color: var(--tl-muted); }
.tl-fact.is-main { border: 0; color: #fff; background: linear-gradient(135deg, var(--ds-primary) 0%, var(--ds-secondary) 100%); }
.tl-fact.is-main .tl-fact-label, .tl-fact.is-main .tl-fact-sub { color: rgba(255, 255, 255, .75); }
.tl-fact.is-main .tl-fact-value { color: var(--ds-warning); }

.tl-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .85rem; }
.tl-chip { display: inline-flex; align-items: center; gap: .35rem; font-size: .75rem; font-weight: 600; line-height: 1;
           padding: .35rem .6rem; border-radius: 999px; background: var(--ds-surface-soft); color: var(--tl-muted); }
.tl-chip i { color: var(--ds-accent); }

/* Listenzeilen statt <table>: style.css setzt fuer Tabellen table-layout:fixed und unter 950px
   eine 9px-Schrift. */
.tl-list { display: flex; flex-direction: column; gap: .5rem; }
.tl-row { display: flex; align-items: center; gap: .85rem; padding: .7rem .85rem; border: 1px solid var(--ds-border-soft);
          border-radius: var(--ds-radius-sm); background: var(--ds-surface); }
.tl-row.is-highlight { border-color: rgba(221, 154, 46, .55); background: var(--ds-warning-soft); }
.tl-avatar { flex: 0 0 auto; min-width: 38px; height: 38px; padding: 0 .4rem; border-radius: 999px; display: flex; align-items: center;
             justify-content: center; font-size: .78rem; font-weight: 700; background: var(--ds-accent-light); color: var(--ds-accent); }
.tl-row.is-high .tl-avatar, .tl-row.is-highlight .tl-avatar { background: var(--ds-warning-soft); color: var(--ds-warning-dark); }
.tl-row.is-highlight .tl-avatar { background: #fff; }
.tl-who { flex: 1 1 auto; min-width: 0; font-weight: 600; font-size: .9rem; }
.tl-who small { display: block; font-weight: 500; font-size: .76rem; color: var(--ds-muted); }
.tl-val { flex: 0 0 auto; font-weight: 700; font-size: .92rem; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ds-secondary); text-align: right; }
.tl-val small { display: block; font-weight: 500; font-size: .76rem; color: var(--ds-muted); }

.tl-steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .55rem; }
.tl-steps li { display: flex; gap: .7rem; font-size: .88rem; align-items: flex-start; }
.tl-steps .tl-step-num { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center;
                         justify-content: center; font-size: .75rem; font-weight: 700; background: var(--ds-surface-soft); color: var(--ds-primary); }
.tl-text p { font-size: .88rem; margin-bottom: .6rem; }
.tl-text p:last-child { margin-bottom: 0; }
.tl-text h3 { font-size: .92rem; font-weight: 700; color: var(--ds-secondary); margin: 1rem 0 .4rem; }
.tl-formula { display: inline-block; font-family: var(--bs-font-monospace); font-size: .85rem; padding: .15rem .5rem;
              border-radius: 6px; background: var(--ds-surface-alt); color: var(--ds-secondary); }

.tl-faq { display: flex; flex-direction: column; gap: .5rem; }
.tl-faq-item { border: 1px solid var(--ds-border-soft); border-radius: var(--ds-radius-sm); background: var(--ds-surface); }
.tl-faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .75rem .9rem;
                       cursor: pointer; list-style: none; }
.tl-faq-item summary::-webkit-details-marker { display: none; }
.tl-faq-item summary h3 { margin: 0; font-size: .92rem; font-weight: 600; color: var(--ds-text); }
.tl-faq-item summary i { flex: 0 0 auto; font-size: .8rem; color: var(--ds-muted); transition: transform .15s; }
.tl-faq-item[open] summary i { transform: rotate(180deg); }
.tl-faq-item p { margin: 0; padding: 0 .9rem .85rem; font-size: .88rem; color: var(--ds-text); }

/* ------------------------------------------------------------
   Anzeigen (tools/_tool_ads.html): dezent, klar als Anzeige markiert
   ------------------------------------------------------------ */
.tl-ads { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .9rem; margin-top: 1.5rem; }
/* nur eine Anzeige: nicht ueber die ganze Breite ziehen */
.tl-ads:has(> .tl-ad:only-child) { grid-template-columns: minmax(0, 620px); }
.tl-ad { display: flex; align-items: center; gap: 1rem; min-height: 112px; padding: 1rem 1.15rem;
         border-radius: var(--ds-radius-lg); text-decoration: none; overflow: hidden;
         box-shadow: var(--ds-shadow-sm); transition: transform .18s ease, box-shadow .18s ease; }
.tl-ad:hover { transform: translateY(-2px); box-shadow: var(--ds-shadow-md); }
.tl-ad:focus-visible { outline: 2px solid var(--ds-warning); outline-offset: 2px; }
.tl-ad-media { flex: 0 0 64px; height: 84px; display: flex; align-items: center; justify-content: center; }
.tl-ad-media img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .18)); }
.tl-ad-icon { flex: 0 0 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
              font-size: 1.25rem; background: rgba(221, 154, 46, .16); color: var(--ds-warning); }
.tl-ad-body { flex: 1 1 auto; min-width: 0; }
/* Eyebrow und "Anzeige" in einer Zeile im Fluss - kollidiert auch auf 320px nicht */
.tl-ad-meta { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .25rem; }
.tl-ad-eyebrow { font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.tl-ad-label { flex: 0 0 auto; font-size: .6rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
               padding: .1rem .4rem; border: 1px solid currentColor; border-radius: 999px; line-height: 1.3; }
.tl-ad-title { display: block; font-size: .95rem; font-weight: 800; line-height: 1.25; margin-bottom: .3rem; text-wrap: balance; }
.tl-ad-cta { font-size: .8rem; font-weight: 700; white-space: nowrap; }
.tl-ad:hover .tl-ad-cta { text-decoration: underline; }
/* Flasche: Creme wie die Werbekarte des Dashboards */
.tl-ad.is-bottle { background: linear-gradient(135deg, #f4f0e8 0%, #e9e2d3 100%); color: var(--ds-text); }
.tl-ad.is-bottle .tl-ad-label { color: #5a4e3c; }
.tl-ad.is-bottle .tl-ad-eyebrow, .tl-ad.is-bottle .tl-ad-cta { color: var(--tl-gold-text); }
/* Trainingsplaene: dunkle Buehne mit Gold */
.tl-ad.is-plans { color: #fff; background: radial-gradient(circle at 100% 0%, rgba(230, 168, 23, .2) 0%, rgba(230, 168, 23, 0) 50%),
                                         linear-gradient(135deg, var(--ds-secondary) 0%, var(--ds-primary) 100%); }
.tl-ad.is-plans .tl-ad-label { color: rgba(255, 255, 255, .78); }
.tl-ad.is-plans .tl-ad-eyebrow, .tl-ad.is-plans .tl-ad-cta { color: var(--ds-warning); }
.tl-ad.is-plans .tl-ad-title { color: #fff; }
.tl-ad-desc { display: block; font-size: .78rem; line-height: 1.4; color: rgba(255, 255, 255, .78); margin-bottom: .35rem; }

/* ------------------------------------------------------------
   Weitere Tools (tools/_related_tools.html)
   ------------------------------------------------------------ */
.tl-related { margin-top: 1.75rem; }
.tl-related-head { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; margin-bottom: .7rem; }
.tl-related-title { margin: 0; font-size: 1.02rem; font-weight: 800; color: var(--ds-secondary); }
.tl-related-all { font-size: .82rem; font-weight: 700; color: var(--tl-gold-text); text-decoration: none; white-space: nowrap; }
.tl-related-all:hover { text-decoration: underline; color: var(--tl-gold-text); }
.tl-related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .7rem; }
.tl-related-card { display: flex; align-items: flex-start; gap: .8rem; padding: .9rem 1rem; border-radius: var(--ds-radius-lg);
                   border: 1px solid var(--ds-border-soft); background: var(--ds-surface); box-shadow: var(--ds-shadow-sm);
                   color: var(--ds-text); text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.tl-related-card:hover { border-color: var(--ds-border-strong); box-shadow: var(--ds-shadow-md); color: var(--ds-text); }
.tl-related-card:focus-visible { outline: 2px solid var(--ds-warning); outline-offset: 2px; }
.tl-related-icon { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
                   background: var(--ds-secondary); color: var(--ds-warning); }
.tl-related-name { display: block; font-size: .92rem; font-weight: 700; color: var(--ds-secondary); }
.tl-related-teaser { display: block; font-size: .8rem; color: var(--tl-muted); line-height: 1.4; margin-top: .15rem; }

/* ------------------------------------------------------------
   Tool-Uebersicht (tools/index.html)
   ------------------------------------------------------------ */
/* Buttons wie das Dashboard (.pn-btn-primary): Gold auf Navy */
.tl-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: .7rem 1.25rem;
          border-radius: 10px; font-size: .92rem; font-weight: 800; text-decoration: none; border: 1px solid transparent;
          transition: background .15s, border-color .15s, color .15s, transform .15s; }
.tl-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.tl-btn-gold { background: var(--ds-warning); color: var(--ds-secondary); }
.tl-btn-gold:hover { background: #e9aa45; color: var(--ds-secondary); transform: translateY(-1px); }

.tl-hub-hero { position: relative; overflow: hidden; border-radius: 16px; padding: 2.75rem 2.5rem 2.5rem; color: #fff;
               box-shadow: 0 4px 20px rgba(0, 0, 0, .1); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
               gap: 2.5rem; align-items: center;
               background: radial-gradient(circle at 100% 0%, rgba(230, 168, 23, .2) 0%, rgba(230, 168, 23, 0) 45%),
                           linear-gradient(135deg, var(--ds-secondary) 0%, var(--ds-primary) 100%); }
.tl-hub-hero::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 320px; height: 320px; border-radius: 50%;
                      border: 40px solid rgba(255, 255, 255, .035); pointer-events: none; }
.tl-hub-copy { position: relative; z-index: 1; min-width: 0; }
.tl-hub-eyebrow { display: inline-flex; align-items: center; gap: .45rem; font-size: .78rem; font-weight: 700; letter-spacing: .08em;
                  text-transform: uppercase; color: var(--ds-warning); margin-bottom: .6rem; }
.tl-hub-title { margin: 0 0 .75rem; font-size: 2.3rem; font-weight: 800; line-height: 1.12; color: #fff; text-wrap: balance; }
.tl-hub-lead { margin: 0; font-size: 1.02rem; line-height: 1.6; color: rgba(255, 255, 255, .8); max-width: 600px; }

/* Hero-Visual: gestapelte Ergebnis-Kacheln wie in den Rechnern (rein dekorativ) */
.tl-hub-visual { position: relative; z-index: 1; display: flex; flex-direction: column; gap: .75rem; }
.tl-hub-mock { display: flex; align-items: center; gap: .9rem; padding: .95rem 1.1rem; border-radius: 14px;
               background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12);
               box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.tl-hub-mock:nth-child(2) { margin-left: 2rem; }
.tl-hub-mock:nth-child(3) { margin-left: 1rem; }
.tl-hub-mock-icon { flex: 0 0 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
                    background: rgba(221, 154, 46, .2); color: var(--ds-warning); }
.tl-hub-mock-label { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .65); }
.tl-hub-mock-value { display: block; font-size: 1.35rem; font-weight: 800; color: var(--ds-warning); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tl-hub-mock-value small { font-size: .8rem; font-weight: 600; color: rgba(255, 255, 255, .7); }

/* Tool-Karten: schlicht und ruhig - weisse Flaeche, Icon, Sportart, Titel, ein Satz, "Oeffnen".
   Die ganze Karte ist der Link; Hover hebt nur Rahmen und Pfeil hervor. */
.tl-card { display: flex; flex-direction: column; gap: .35rem; padding: 1.25rem 1.3rem 1.15rem; border-radius: 14px;
           background: var(--ds-surface); border: 1px solid var(--ds-border-soft); box-shadow: var(--ds-shadow-sm);
           color: var(--ds-text); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.tl-card:hover { border-color: var(--ds-border-strong); box-shadow: var(--ds-shadow-md); color: var(--ds-text); }
.tl-card:focus-visible { outline: 2px solid var(--ds-warning); outline-offset: 2px; }
.tl-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .55rem; }
.tl-card-icon { width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
                font-size: 1.1rem; background: var(--ds-secondary); color: var(--ds-warning); }
.tl-card-sport { font-size: .72rem; font-weight: 600; color: var(--tl-muted); }
.tl-card-title { margin: 0; font-size: 1.08rem; font-weight: 800; color: var(--ds-secondary); }
.tl-card-text { margin: 0 0 .6rem; font-size: .88rem; line-height: 1.5; color: var(--tl-muted); }
.tl-card-go { margin-top: auto; display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 700; color: var(--ds-secondary); }
.tl-card-go i { font-size: .78rem; transition: transform .15s; }
.tl-card:hover .tl-card-go i { transform: translateX(3px); }

.tl-hub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.1rem; margin-top: 1.5rem; scroll-margin-top: 80px; }
@media (min-width: 900px) { .tl-hub-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.tl-hub-section { margin-top: 2.5rem; }
.tl-hub-h2 { margin: 0 0 .9rem; font-size: 1.3rem; font-weight: 800; color: var(--ds-secondary); }

/* "Vom Rechner zum Trainingsplan" (nur Gaeste/Shop-Konten): Buehne wie die Shop-Werbung des Dashboards */
.tl-hub-plans { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem;
                align-items: center; padding: 2rem 2.25rem; border-radius: 16px; color: #fff; box-shadow: 0 4px 20px rgba(0, 0, 0, .1);
                background: radial-gradient(circle at 0% 100%, rgba(230, 168, 23, .16) 0%, rgba(230, 168, 23, 0) 45%),
                            linear-gradient(135deg, var(--ds-secondary) 0%, var(--ds-primary) 100%); }
.tl-hub-plans .tl-ad-label { position: absolute; top: .9rem; right: 1rem; color: rgba(255, 255, 255, .78); }
.tl-hub-plans-title { margin: 0 0 .6rem; font-size: 1.45rem; font-weight: 800; line-height: 1.2; color: #fff; text-wrap: balance; }
.tl-hub-plans-desc { margin: 0 0 1.2rem; font-size: .95rem; line-height: 1.6; color: rgba(255, 255, 255, .8); }
.tl-hub-plans-list { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.tl-hub-plans-list li { display: flex; gap: .65rem; align-items: flex-start; font-size: .9rem; color: rgba(255, 255, 255, .9); }
.tl-hub-plans-list i { flex: 0 0 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
                       font-size: .68rem; background: rgba(230, 168, 23, .16); color: var(--ds-warning); margin-top: .05rem; }

.tl-footer { margin-top: 2rem; text-align: center; font-size: 12px; color: var(--tl-muted); }
.tl-footer a { color: var(--tl-muted); }

@media (max-width: 991.98px) {
    .tl-hub-hero { grid-template-columns: 1fr; }
    .tl-hub-visual { display: none; }
    .tl-hub-plans { grid-template-columns: 1fr; gap: 1.25rem; }
}

/* ------------------------------------------------------------
   Mobil (Hauptnutzung): Eingaben sofort sichtbar, volle Breite
   ------------------------------------------------------------ */
@media (max-width: 575.98px) {
    .tl-page { padding: 0 0 1.5rem; }
    .tl-crumbs { padding: .6rem .9rem 0; margin-bottom: .5rem; }
    .tl-shell { border-radius: 0; box-shadow: none; }
    /* Icon + Titel nebeneinander, Untertitel darunter ueber die volle Breite */
    .tl-header { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center;
                 padding: 1rem .9rem .9rem; gap: 0 .7rem; }
    .tl-header > div:not(.tl-header-icon) { display: contents; }
    .tl-header-icon { width: 36px; height: 36px; font-size: 1rem; }
    .tl-title { font-size: 1.12rem; line-height: 1.25; }
    .tl-subtitle { grid-column: 1 / -1; font-size: .8rem; margin-top: .5rem; }
    .tl-body { padding: .75rem .65rem 1rem; }
    .tl-tool { padding-top: .1rem; gap: .75rem; }
    .tl-section { padding: .9rem .8rem; border-radius: 12px; }
    .tl-section-head { margin-bottom: .6rem; }
    .tl-intro { font-size: .8rem; margin-bottom: .75rem; }
    .tl-hint { font-size: .75rem; }
    .tl-segment { margin-bottom: .75rem; }
    .tl-tab { font-size: .78rem; padding: .55rem .3rem; white-space: normal; line-height: 1.2; min-width: 0; min-height: 44px; }
    .tl-tab i { display: none; }
    .tl-segment.is-compact .tl-tab { min-height: 40px; }
    /* Chips fuellen jede Zeile (wachsen mit) - keine verlorenen Einzel-Chips, kein Ueberlauf */
    .tl-choices { display: flex; flex-wrap: wrap; }
    .tl-choice { flex: 1 1 auto; justify-content: center; min-height: 44px; padding-left: .7rem; padding-right: .7rem; }
    .tl-facts { grid-template-columns: 1fr 1fr; gap: .5rem; }
    .tl-fact { padding: .7rem .75rem; }
    .tl-fact-label { font-size: .66rem; letter-spacing: .02em; }
    .tl-fact-value { font-size: 1.3rem; }
    .tl-fact-sub { font-size: .72rem; }
    .tl-row { padding: .55rem .7rem; gap: .65rem; }
    .tl-avatar { min-width: 32px; height: 32px; font-size: .72rem; }
    .tl-who { font-size: .82rem; }
    .tl-val { font-size: .9rem; }
    .tl-steps li, .tl-text p, .tl-faq-item p { font-size: .85rem; }
    .tl-faq-item summary { min-height: 48px; }
    .tl-ads, .tl-related { padding: 0 .65rem; }
    .tl-ad { min-height: 96px; gap: .8rem; padding: .9rem; }
    .tl-ad-icon { flex-basis: 44px; height: 44px; font-size: 1.05rem; }
    .tl-footer { padding: 0 .9rem; }

    .tl-hub-hero { border-radius: 0; padding: 1.4rem 1rem 1.3rem; gap: 0; }
    .tl-hub-eyebrow { font-size: .7rem; margin-bottom: .45rem; }
    .tl-hub-title { font-size: 1.55rem; margin-bottom: .55rem; }
    .tl-hub-lead { font-size: .9rem; line-height: 1.5; }
    .tl-hub-grid, .tl-hub-section { padding: 0 .65rem; }
    .tl-hub-grid { margin-top: 1rem; gap: .6rem; }
    /* Karten als kompakte Zeilen: Icon | Titel + Satz | Pfeil */
    .tl-card { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; column-gap: .85rem; row-gap: .15rem;
               align-items: center; padding: .9rem 1rem; }
    .tl-card-head { display: contents; }
    .tl-card-icon { grid-column: 1; grid-row: 1 / span 2; align-self: start; width: 40px; height: 40px; font-size: 1rem; }
    .tl-card-sport { display: none; }
    .tl-card-title { grid-column: 2; font-size: 1rem; }
    .tl-card-text { grid-column: 2; margin: 0; font-size: .82rem; line-height: 1.45; }
    .tl-card-go { grid-column: 3; grid-row: 1 / span 2; margin: 0; font-size: 0; color: var(--tl-muted); }
    .tl-card-go i { font-size: .9rem; }
    .tl-hub-plans { padding: 1.4rem 1.1rem; border-radius: 14px; }
    .tl-hub-plans .tl-ad-label { position: static; display: inline-block; margin-bottom: .6rem; }
    .tl-hub-plans-title { font-size: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
    .tl-ad, .tl-related-card, .tl-card, .tl-card-go i, .tl-btn { transition: none; }
    .tl-ad:hover, .tl-related-card:hover, .tl-card:hover .tl-card-go i, .tl-btn-gold:hover { transform: none; }
}
