/* ============================================================
   TikTok Game Hub – Dashboard & Spiele-Uebersicht
   Alles unter .tgh gekapselt, damit kein Theme-CSS kollidiert.
   ============================================================ */

.tgh{
  --tgh-accent:#2E2BEE;
  --tgh-bg:#F2F2EF;
  --tgh-page-bg:#FAFAF9;
  --tgh-card:#FFFFFF;
  --tgh-ink:#141519;
  --tgh-ink-60:#5C5E64;
  --tgh-ink-35:#9A9CA1;
  --tgh-line:rgba(20,21,26,.10);
  --tgh-fill:rgba(20,21,26,.035);
  --tgh-fill-2:rgba(20,21,26,.06);
  --tgh-ok:#16794C;
  --tgh-warn:#8A6D00;
  --tgh-r-lg:24px;
  --tgh-r-md:14px;
  --tgh-r-sm:10px;
  --tgh-r-xs:8px;
  --tgh-sans:"Instrument Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
  --tgh-head:"Archivo",system-ui,-apple-system,"Segoe UI",sans-serif;

  color:var(--tgh-ink);
  font-family:var(--tgh-sans);
  font-size:15px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  box-sizing:border-box;
}
.tgh *,.tgh *::before,.tgh *::after{box-sizing:inherit}
/* Unabhaengig vom Theme: Seitenbauer wie Oxygen liefern keine Grundstile mit. */
.tgh img{max-width:100%;height:auto;border:0}
.tgh button{font:inherit;color:inherit;cursor:pointer;border:none;background:none}
.tgh input,.tgh select,.tgh textarea{font:inherit;color:inherit;max-width:100%}
.tgh svg{display:inline-block;vertical-align:middle}
.tgh ul,.tgh ol{list-style:none;margin:0;padding:0}
.tgh table{border-collapse:collapse;width:100%}
.tgh dl,.tgh dd,.tgh dt{margin:0}
.tgh h1,.tgh h2,.tgh h3{font-family:var(--tgh-head);letter-spacing:-.02em;margin:0;color:var(--tgh-ink)}
.tgh p{margin:0 0 12px}
.tgh a{color:inherit}

/* ---------- Kopf ---------- */
.tgh-dash{max-width:1088px;margin:0 auto;padding:8px 0 48px}

/* ---------- Kopf der Konto-Unterseiten ---------- */
.tgh-view__head{
  display:flex;flex-wrap:wrap;gap:16px;align-items:flex-end;justify-content:space-between;
  padding:2px 0 22px;
}
.tgh-view__title{font-size:clamp(24px,3vw,30px);font-weight:800;letter-spacing:-.025em;margin:0}
.tgh-view__sub{margin:6px 0 0;color:var(--tgh-ink-60);font-size:15px}
.tgh-view__actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.tgh-dash__head{
  display:flex;flex-wrap:wrap;gap:20px;align-items:flex-end;justify-content:space-between;
  padding:28px;border-radius:var(--tgh-r-lg);background:var(--tgh-card);
  border:1px solid var(--tgh-line);margin-bottom:20px;
}
.tgh-eyebrow{
  font-family:var(--tgh-head);font-weight:700;font-size:11px;letter-spacing:.12em;
  text-transform:uppercase;color:var(--tgh-ink-35);margin:0 0 6px;
}
.tgh-dash__title{font-size:32px;font-weight:800;line-height:1.1}
.tgh-dash__sub{color:var(--tgh-ink-60);margin:8px 0 0;font-size:14px}
.tgh-dash__actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}

/* ---------- Chips, Tags, Buttons ---------- */
.tgh-chip{
  display:inline-flex;align-items:center;gap:8px;height:34px;padding:0 14px;
  border-radius:999px;background:var(--tgh-fill-2);font-size:13px;font-weight:600;
  font-family:var(--tgh-head);white-space:nowrap;
}
.tgh-chip__dot{width:7px;height:7px;border-radius:50%;background:var(--tgh-ink-35)}
.tgh-chip--ok{background:rgba(22,121,76,.10);color:var(--tgh-ok)}
.tgh-chip--ok .tgh-chip__dot{background:var(--tgh-ok)}
.tgh-chip--warn{background:rgba(138,109,0,.12);color:var(--tgh-warn)}
.tgh-chip--warn .tgh-chip__dot{background:var(--tgh-warn)}
.tgh-tag{
  display:inline-block;margin-left:8px;padding:2px 8px;border-radius:6px;
  background:var(--tgh-fill-2);font-size:11px;font-weight:600;color:var(--tgh-ink-60);
}

.tgh .tgh-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  height:42px;padding:0 18px;border:none;border-radius:var(--tgh-r-xs);
  background:var(--tgh-fill-2);color:var(--tgh-ink);
  font-family:var(--tgh-head);font-weight:700;font-size:14px;line-height:1;
  text-decoration:none;cursor:pointer;transition:background .16s,opacity .16s;
}
.tgh .tgh-btn:hover{background:rgba(20,21,26,.10)}
.tgh .tgh-btn--primary{background:var(--tgh-accent);color:#fff}
.tgh .tgh-btn--primary:hover{opacity:.9;background:var(--tgh-accent)}
.tgh .tgh-btn--ghost{background:transparent;box-shadow:inset 0 0 0 1px var(--tgh-line)}
.tgh .tgh-btn--ghost:hover{background:var(--tgh-fill)}
.tgh :focus-visible{outline:3px solid var(--tgh-accent);outline-offset:3px;border-radius:6px}

/* ---------- Reiter ---------- */
.tgh-tabs{
  display:flex;gap:4px;padding:4px;margin:0 0 20px;
  background:var(--tgh-fill-2);border-radius:var(--tgh-r-md);width:fit-content;max-width:100%;
  overflow-x:auto;scrollbar-width:none;
}
.tgh-tabs::-webkit-scrollbar{display:none}
.tgh-tabs button{
  border:none;background:transparent;cursor:pointer;white-space:nowrap;
  height:38px;padding:0 16px;border-radius:var(--tgh-r-sm);
  font-family:var(--tgh-head);font-weight:700;font-size:14px;color:var(--tgh-ink-60);
  transition:background .16s,color .16s;
}
.tgh-tabs button:hover{color:var(--tgh-ink)}
.tgh-tabs button[aria-selected="true"]{background:var(--tgh-card);color:var(--tgh-ink);box-shadow:0 1px 2px rgba(20,21,26,.08)}

/* ---------- Panels ---------- */
.tgh-cols{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));align-items:start}
.tgh-panel{
  background:var(--tgh-card);border:1px solid var(--tgh-line);
  border-radius:var(--tgh-r-lg);padding:22px;
}
.tgh-panel--center{max-width:520px;margin:0 auto;text-align:center}
.tgh-panel__title{font-size:13px;font-weight:700;letter-spacing:.10em;text-transform:uppercase;color:var(--tgh-ink-35);margin:0 0 16px}
.tgh-panel__sub{font-size:13px;font-weight:700;margin:20px 0 8px}
.tgh-empty{color:var(--tgh-ink-60);font-size:14px}

.tgh-defs{margin:0;display:grid;gap:10px}
.tgh-defs>div{display:flex;justify-content:space-between;gap:16px;align-items:baseline;
  padding-bottom:10px;border-bottom:1px solid var(--tgh-line)}
.tgh-defs>div:last-child{border-bottom:none;padding-bottom:0}
.tgh-defs dt{color:var(--tgh-ink-60);font-size:13px;margin:0}
.tgh-defs dd{margin:0;font-weight:600;text-align:right}

.tgh-sub{padding:0 0 18px;margin:0 0 18px;border-bottom:1px solid var(--tgh-line)}
.tgh-sub:last-child{border-bottom:none;padding-bottom:0;margin-bottom:0}
.tgh-sub__head{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;margin-bottom:14px}
.tgh-sub__actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}

.tgh-list{list-style:none;margin:0 0 16px;padding:0}
.tgh-list li{display:flex;flex-wrap:wrap;gap:8px;align-items:baseline;padding:10px 0;border-bottom:1px solid var(--tgh-line)}
.tgh-list li:last-child{border-bottom:none}
.tgh-list__main{font-weight:600}
.tgh-list__meta{color:var(--tgh-ink-60);font-size:13px}
.tgh-links{list-style:none;margin:0;padding:0}
.tgh-links li{padding:10px 0;border-bottom:1px solid var(--tgh-line)}
.tgh-links li:last-child{border-bottom:none}
.tgh-links a{text-decoration:none;font-weight:600}
.tgh-links a:hover{color:var(--tgh-accent)}
.tgh-address{color:var(--tgh-ink-60);font-size:14px}

.tgh-table{width:100%;border-collapse:collapse;font-size:14px}
.tgh-table th{text-align:left;font-size:12px;text-transform:uppercase;letter-spacing:.06em;
  color:var(--tgh-ink-35);font-weight:700;padding:0 8px 8px 0}
.tgh-table td{padding:10px 8px 10px 0;border-top:1px solid var(--tgh-line)}
.tgh-table a{font-weight:600;text-decoration:none}

/* ---------- Spiele-Raster: Bild fuellt die Kachel, Aktion beim Hovern ---------- */
.tgh-grid{display:grid;gap:16px;grid-template-columns:repeat(var(--tgh-cols,4),minmax(0,1fr))}
.is-compact .tgh-grid{gap:12px}
@media (max-width:1023px){
  .tgh-grid{grid-template-columns:repeat(var(--tgh-cols-md,3),minmax(0,1fr))}
}

/* Muss vor .tgh-card stehen bleiben: display der Kachel wuerde [hidden] sonst aushebeln. */
.tgh [hidden]{display:none !important}

.tgh .tgh-card{
  position:relative;display:block;overflow:hidden;text-decoration:none;color:#fff;
  aspect-ratio:9/13;border-radius:var(--tgh-r-lg);background:#141519;
  transition:transform .2s ease,box-shadow .2s ease;isolation:isolate;
}
.tgh .tgh-card:hover,.tgh .tgh-card:focus-visible{
  transform:translateY(-3px);box-shadow:0 14px 34px rgba(20,21,26,.22);
}
.tgh-card__media{position:absolute;inset:0;display:flex;align-items:center;justify-content:center}
.tgh-card__media img{
  width:100%;height:100%;object-fit:cover;display:block;
  transition:transform .35s ease,filter .25s ease;
}
.tgh-card:hover .tgh-card__media img{transform:scale(1.05)}
.tgh-card__initials{
  font-family:var(--tgh-head);font-weight:800;font-size:44px;letter-spacing:-.03em;
  color:rgba(255,255,255,.28);
}
.tgh-card.is-locked .tgh-card__media img{filter:grayscale(1) brightness(.72)}

.tgh-card__scrim{
  position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(to top,rgba(10,11,15,.88) 0%,rgba(10,11,15,.45) 32%,rgba(10,11,15,0) 62%);
  transition:opacity .25s ease;
}
.tgh-card:hover .tgh-card__scrim{
  background:linear-gradient(to top,rgba(10,11,15,.92) 0%,rgba(10,11,15,.62) 45%,rgba(10,11,15,.30) 100%);
}

.tgh-card__info{position:absolute;left:0;right:0;bottom:0;padding:16px;z-index:2;
  transition:transform .25s ease}
@media (hover:hover){
  .tgh-card:hover .tgh-card__info{transform:translateY(-6px)}
}
.tgh-card__title{
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  font-family:var(--tgh-head);font-weight:700;font-size:17px;line-height:1.2;
  letter-spacing:-.01em;color:#fff;text-shadow:0 1px 12px rgba(0,0,0,.35);
}
.tgh-card__text{
  display:block;margin-top:3px;font-size:12.5px;color:rgba(255,255,255,.72);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}

.tgh-card__cta{
  position:absolute;left:50%;top:50%;z-index:3;
  display:inline-flex;align-items:center;gap:7px;height:42px;padding:0 20px;
  border-radius:999px;background:var(--tgh-accent);color:#fff;
  font-family:var(--tgh-head);font-weight:700;font-size:14px;white-space:nowrap;
  transform:translate(-50%,-40%) scale(.94);opacity:0;pointer-events:none;
  transition:opacity .2s ease,transform .2s ease;
  box-shadow:0 8px 22px rgba(0,0,0,.32);
}
.tgh-card__cta svg{fill:currentColor}
.tgh-card.is-locked .tgh-card__cta{background:#fff;color:var(--tgh-ink)}
.tgh-card:hover .tgh-card__cta,
.tgh-card:focus-visible .tgh-card__cta{opacity:1;transform:translate(-50%,-50%) scale(1)}

.tgh-lock,.tgh-badge{
  position:absolute;top:12px;left:12px;z-index:2;display:inline-flex;align-items:center;gap:6px;
  padding:5px 10px;border-radius:999px;font-family:var(--tgh-head);font-weight:700;font-size:11px;
  background:rgba(10,11,15,.72);color:#fff;backdrop-filter:blur(6px);
}
.tgh-lock svg{fill:currentColor}
.tgh-badge{background:var(--tgh-accent)}
.tgh-badge--demo{background:#0F9D58}

/* Ohne Hover (Touch): Aktion dauerhaft zeigen. */
@media (hover:none){
  .tgh-card__cta{
    opacity:1;left:auto;top:auto;right:12px;bottom:12px;transform:none;
    width:44px;height:44px;padding:0;gap:0;justify-content:center;font-size:0;
  }
  .tgh-card__cta svg{width:18px;height:18px}
  .tgh-card__info{padding-right:66px}
}
/* Kleiner Bildschirm mit Maus: Pille etwas kompakter. */
@media (hover:hover) and (max-width:640px){
  .tgh-card__cta{height:38px;padding:0 15px;font-size:13px}
}
@media (hover:none) and (max-width:640px){
  .tgh-card__cta{width:38px;height:38px;right:10px;bottom:10px}
  .tgh-card__cta svg{width:16px;height:16px}
  .tgh-card__info{padding-right:56px}
}

/* ---------- Eigenstaendige Seiten (gesperrt / fehlt) ---------- */
body.tgh-standalone{margin:0;background:var(--tgh-page-bg,#FAFAF9)}
.tgh-standalone__inner{max-width:900px;margin:0 auto;padding:64px 20px}
.tgh-gate{
  background:var(--tgh-card);border:1px solid var(--tgh-line);border-radius:var(--tgh-r-lg);
  padding:40px;text-align:center;
}
.tgh-gate__lock{
  display:inline-flex;align-items:center;justify-content:center;width:52px;height:52px;
  border-radius:16px;background:var(--tgh-fill-2);margin-bottom:18px;
}
.tgh-gate__lock svg{fill:var(--tgh-ink)}
.tgh-gate h1{font-size:30px;font-weight:800;margin:0 0 12px}
.tgh-gate__text{color:var(--tgh-ink-60);max-width:460px;margin:0 auto 12px}
.tgh-gate__actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:22px}
.tgh-gate__heading{font-size:20px;font-weight:800;margin:40px 0 16px}

@media (max-width:640px){
  /* Auf dem Handy hoechstens zwei Spiele nebeneinander. */
  .tgh-grid{grid-template-columns:repeat(var(--tgh-cols-sm,2),minmax(0,1fr));gap:10px}
  .tgh-card{border-radius:var(--tgh-r-md)}
  .tgh-card__info{padding:12px}
  .tgh-card__title{font-size:14px}
  .tgh-card__text{font-size:11px;margin-top:2px}
  .tgh-card__initials{font-size:30px}
  .tgh-lock,.tgh-badge{top:8px;left:8px;padding:4px 8px;font-size:10px}

  .tgh-dash__head{padding:20px}
  .tgh-dash__title{font-size:26px}
  .tgh-panel{padding:18px}
  .tgh-standalone__inner{padding:32px 16px}
  .tgh-gate{padding:26px}
}
@media (prefers-reduced-motion:reduce){
  .tgh *{transition:none !important}
}

/* ---------- Unteransichten: Zahlung & Rechnungen ---------- */
.tgh-back{
  display:inline-flex;align-items:center;gap:8px;margin:0 0 16px;
  font-family:var(--tgh-head);font-weight:700;font-size:13px;color:var(--tgh-ink-60);
  text-decoration:none;
}
.tgh-back:hover{color:var(--tgh-ink)}
.tgh-back svg{width:14px;height:14px;fill:currentColor}

.tgh-note{
  display:flex;align-items:center;gap:10px;padding:12px 16px;margin:0 0 18px;
  border-radius:var(--tgh-r-md);background:rgba(22,121,76,.10);color:var(--tgh-ok);
  font-size:14px;font-weight:600;
}
.tgh-note--error{background:rgba(179,45,46,.10);color:#B32D2E}

.tgh-method{
  display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;
  padding:16px 0;border-bottom:1px solid var(--tgh-line);
}
.tgh-method:last-of-type{border-bottom:none}
.tgh-method__main{display:flex;align-items:center;gap:12px;min-width:0}
.tgh-method__icon{
  flex:0 0 auto;width:42px;height:30px;border-radius:6px;background:var(--tgh-fill-2);
  display:flex;align-items:center;justify-content:center;
}
.tgh-method__icon svg{width:18px;height:18px;fill:var(--tgh-ink-60)}
.tgh-method__label{font-weight:600}
.tgh-method__meta{display:block;font-size:12.5px;color:var(--tgh-ink-60)}
.tgh-method__actions{display:flex;gap:8px;flex-wrap:wrap}
.tgh-method__actions .tgh-btn{height:36px;padding:0 14px;font-size:13px}
.tgh-danger{color:#B32D2E}
.tgh-danger:hover{background:rgba(179,45,46,.08)}

.tgh-order__head{
  display:flex;flex-wrap:wrap;gap:14px;align-items:baseline;justify-content:space-between;
  margin:0 0 18px;
}
.tgh-order__no{font-family:var(--tgh-head);font-weight:800;font-size:22px}
.tgh-order__date{color:var(--tgh-ink-60);font-size:14px}
.tgh-items{width:100%;border-collapse:collapse;font-size:14px;margin:0 0 18px}
.tgh-items th{text-align:left;font-size:12px;text-transform:uppercase;letter-spacing:.06em;
  color:var(--tgh-ink-35);font-weight:700;padding:0 8px 8px 0}
.tgh-items td{padding:12px 8px 12px 0;border-top:1px solid var(--tgh-line);vertical-align:top}
.tgh-items td:last-child,.tgh-items th:last-child{text-align:right;padding-right:0}
.tgh-totals{margin:0;display:grid;gap:8px}
.tgh-totals>div{display:flex;justify-content:space-between;gap:16px;font-size:14px}
.tgh-totals>div:last-child{padding-top:10px;border-top:1px solid var(--tgh-line);
  font-family:var(--tgh-head);font-weight:800;font-size:16px}
.tgh-totals dt{color:var(--tgh-ink-60);margin:0}
.tgh-totals dd{margin:0;font-weight:600;text-align:right}

.tgh-pager{display:flex;gap:8px;align-items:center;justify-content:center;margin:20px 0 0}
.tgh-pager__info{font-size:13px;color:var(--tgh-ink-60);font-weight:600}

/* ---------- Tarife ---------- */
.tgh-plans{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));align-items:start}
.tgh-plan{
  position:relative;display:flex;flex-direction:column;gap:10px;
  background:var(--tgh-card);border:1px solid var(--tgh-line);
  border-radius:var(--tgh-r-lg);padding:26px 22px;
}
.tgh-plan.is-featured{border-color:var(--tgh-accent);box-shadow:0 10px 30px rgba(46,43,238,.10)}
.tgh-plan__flag{
  position:absolute;top:-11px;left:22px;padding:4px 10px;border-radius:999px;
  background:var(--tgh-accent);color:#fff;font-family:var(--tgh-head);font-weight:700;font-size:11px;
}
.tgh-plan__name{font-size:20px;font-weight:800;margin:0}
.tgh-plan__price{display:flex;align-items:baseline;gap:7px;margin:0}
.tgh-plan__price strong{font-family:var(--tgh-head);font-size:32px;font-weight:800;letter-spacing:-.02em}
.tgh-plan__price span{color:var(--tgh-ink-60);font-size:14px}
.tgh-plan__trial{margin:0;font-size:13px;font-weight:600;color:var(--tgh-ok)}
.tgh-plan__text{margin:0;color:var(--tgh-ink-60);font-size:14px}
.tgh-plan__games{list-style:none;margin:6px 0 0;padding:0;display:grid;gap:7px}
.tgh-plan__games li{display:flex;align-items:center;gap:8px;font-size:14px}
.tgh-plan__games svg{width:15px;height:15px;flex:0 0 auto;fill:var(--tgh-accent)}
.tgh-plan__cta{margin-top:auto;width:100%}
.tgh-fineprint{margin:18px 0 0;font-size:12.5px;color:var(--tgh-ink-35);text-align:center}
.tgh-fineprint a{color:var(--tgh-ink-60)}

/* ---------- Formulare ---------- */
.tgh-form{display:grid;gap:14px;max-width:420px}
.tgh-field{display:grid;gap:6px}
.tgh-field>span{font-size:13px;font-weight:600;color:var(--tgh-ink-60)}
.tgh .tgh-field input{
  width:100%;height:44px;padding:0 14px;border-radius:var(--tgh-r-xs);
  border:1px solid var(--tgh-line);background:var(--tgh-card);color:var(--tgh-ink);
  font:inherit;font-size:15px;transition:border-color .16s,box-shadow .16s;
}
.tgh .tgh-field input:focus{
  outline:none;border-color:var(--tgh-accent);box-shadow:0 0 0 3px rgba(46,43,238,.14);
}
.tgh-check{display:flex;align-items:center;gap:9px;font-size:14px;color:var(--tgh-ink-60)}
.tgh-form .tgh-btn{justify-self:start}
.tgh-hr{border:none;border-top:1px solid var(--tgh-line);margin:4px 0}
.tgh-auth .tgh-cols{grid-template-columns:repeat(auto-fit,minmax(320px,1fr))}

/* ---------- Oeffentlicher Tarif-Block (Startseite) ---------- */
.tgh-plansblock{max-width:1120px;margin:0 auto;padding:8px 0}
.tgh-plansblock__head{text-align:center;max-width:640px;margin:0 auto 28px}
.tgh-plansblock__title{font-size:clamp(26px,4vw,38px);font-weight:800;letter-spacing:-.025em;margin:0 0 10px}
.tgh-plansblock__sub{color:var(--tgh-ink-60);font-size:16px;margin:0}
.tgh-plansblock .tgh-plans{
  grid-template-columns:repeat(var(--tgh-plan-cols,auto-fit),minmax(272px,1fr));align-items:stretch;
}
@media (max-width:640px){
  .tgh-plansblock .tgh-plans{grid-template-columns:1fr}
}
.tgh-plan__hint{margin:8px 0 0;font-size:12px;color:var(--tgh-ink-35);text-align:center}

/* ---------- Zuletzt: Touch-Kacheln (muss nach den Mobil-Regeln stehen) ---------- */
@media (hover:none){
  .tgh-card__cta{
    opacity:1;left:auto;top:auto;right:12px;bottom:12px;transform:none;
    width:44px;height:44px;padding:0;gap:0;justify-content:center;font-size:0;
  }
  .tgh-card__cta svg{width:18px;height:18px}
  /* Platz fuer den Knopf, damit der Titel umbricht statt darunter zu laufen. */
  .tgh-card__info{padding-right:68px}
  .tgh-card__title{-webkit-line-clamp:2}
}
@media (hover:none) and (max-width:640px){
  .tgh-card__cta{width:36px;height:36px;right:10px;bottom:10px}
  .tgh-card__cta svg{width:15px;height:15px}
  .tgh-card__info{padding:12px 58px 12px 12px}
}

/* ============================================================
   Spielebibliothek: Kopf, klebende Filterleiste, Fusszeile
   ============================================================ */
.tgh-lib{max-width:1088px;margin:0 auto;min-width:0}
.tgh-lib__head{padding:8px 0 18px}
.tgh-lib__title{font-size:clamp(26px,3.4vw,34px);font-weight:800;letter-spacing:-.025em;margin:0}
.tgh-lib__sub{margin:6px 0 0;color:var(--tgh-ink-60);font-size:15px}

.tgh-stickyprobe{height:1px;margin-bottom:-1px}
.tgh-filterbar{
  position:sticky;top:var(--tgh-site-h,0px);z-index:20;min-width:0;max-width:100%;
  background:var(--tgh-page-bg,#FAFAF9);
  border-bottom:1px solid transparent;transition:border-color .2s;
  padding:12px 0;margin:0 0 22px;
}
/* Wo es geht, leicht durchscheinend mit Weichzeichner. */
@supports (background:color-mix(in srgb,red 50%,transparent)){
  .tgh-filterbar{
    background:color-mix(in srgb,var(--tgh-page-bg,#FAFAF9) 86%,transparent);
    backdrop-filter:saturate(180%) blur(14px);
  }
}
.tgh-filterbar.is-stuck{border-bottom-color:var(--tgh-line)}
.tgh-filters{display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-width:0;max-width:100%}
/* Immer schiebbar statt ueberlaufend – so kann die Reihe das Layout nie sprengen,
   egal wie schmal der Platz ist. */
.tgh-filterrow{
  display:flex;align-items:center;gap:10px;
  flex:0 1 auto;min-width:0;max-width:100%;
  overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;
  scrollbar-width:none;scroll-padding:12px;
}
.tgh-filterrow::-webkit-scrollbar{display:none}
.tgh-seg,.tgh-demobtn{flex:0 0 auto}

.tgh-seg{display:flex;gap:4px;padding:4px;background:var(--tgh-fill-2);border-radius:var(--tgh-r-md)}
.tgh .tgh-seg button{
  display:inline-flex;align-items:center;gap:7px;
  height:38px;padding:0 14px;border-radius:var(--tgh-r-sm);white-space:nowrap;
  font-family:var(--tgh-head);font-weight:700;font-size:13.5px;color:var(--tgh-ink-60);
  transition:background .15s,color .15s;
}
.tgh-seg button svg{width:15px;height:15px;fill:currentColor;opacity:.7;flex:0 0 auto}
.tgh-seg button[aria-pressed="true"] svg{opacity:1}
.tgh-demobtn svg{width:15px;height:15px;fill:currentColor;flex:0 0 auto}
.tgh .tgh-seg button:hover{color:var(--tgh-ink)}
.tgh .tgh-seg button[aria-pressed="true"]{background:var(--tgh-card);color:var(--tgh-ink);box-shadow:0 1px 2px rgba(20,21,26,.10)}
.tgh-seg button span{opacity:.55;font-weight:600;margin-left:5px}

.tgh-fdiv{width:1px;height:28px;background:var(--tgh-line)}

.tgh .tgh-demobtn{
  display:inline-flex;align-items:center;gap:8px;height:46px;padding:0 16px;border-radius:var(--tgh-r-md);
  background:var(--tgh-card);box-shadow:inset 0 0 0 1px var(--tgh-line);
  font-family:var(--tgh-head);font-weight:700;font-size:13.5px;color:var(--tgh-ink);
  transition:background .15s,box-shadow .15s,color .15s;
}
.tgh .tgh-demobtn:hover{box-shadow:inset 0 0 0 1px rgba(20,21,26,.22)}
.tgh-demobtn i{width:8px;height:8px;border-radius:50%;background:#0F9D58;display:block}
.tgh-demobtn span{opacity:.55;font-weight:600}
.tgh .tgh-demobtn[aria-pressed="true"]{background:#0F9D58;color:#fff;box-shadow:none}
.tgh-demobtn[aria-pressed="true"] i{background:#fff}
.tgh-demobtn[aria-pressed="true"] span{opacity:.7}

.tgh-search{position:relative;flex:1;min-width:180px}
.tgh .tgh-search input{
  width:100%;height:46px;padding:0 14px 0 40px;border-radius:var(--tgh-r-md);
  border:1px solid var(--tgh-line);background:var(--tgh-card);font-size:14px;
  transition:border-color .15s,box-shadow .15s;
}
.tgh .tgh-search input:focus{outline:none;border-color:var(--tgh-accent);box-shadow:0 0 0 3px rgba(46,43,238,.14)}
.tgh-search svg{position:absolute;left:14px;top:50%;transform:translateY(-50%);width:16px;height:16px;fill:var(--tgh-ink-35)}

.tgh-noresult{
  padding:52px 20px;text-align:center;color:var(--tgh-ink-60);
  background:var(--tgh-card);border:1px dashed var(--tgh-line);border-radius:var(--tgh-r-lg);
}
.tgh-noresult b{display:block;font-family:var(--tgh-head);font-size:16px;color:var(--tgh-ink);margin-bottom:4px}

.tgh-strip{display:grid;gap:12px;grid-template-columns:1fr 1fr;margin:34px 0 8px}
.tgh-mini{
  display:flex;align-items:center;gap:14px;padding:16px 18px;background:var(--tgh-card);
  border:1px solid var(--tgh-line);border-radius:var(--tgh-r-md);
}
.tgh-mini--cta{border-color:rgba(46,43,238,.35);background:rgba(46,43,238,.04)}
.tgh-mini__ico{width:38px;height:38px;border-radius:11px;background:var(--tgh-fill-2);display:grid;place-items:center;flex:0 0 auto}
.tgh-mini__ico svg{width:17px;height:17px;fill:var(--tgh-ink-60)}
.tgh-mini__txt{min-width:0;flex:1}
.tgh-mini__k{display:block;font-family:var(--tgh-head);font-size:11px;letter-spacing:.1em;
  text-transform:uppercase;color:var(--tgh-ink-35);font-weight:700}
.tgh-mini__v{display:block;font-size:14px;font-weight:600;margin-top:2px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tgh-mini a{font-family:var(--tgh-head);font-weight:700;font-size:13px;color:var(--tgh-ink-60);
  white-space:nowrap;text-decoration:none}
.tgh-mini a:hover{color:var(--tgh-accent)}

/* ============================================================
   Konto-Menue fuer den Website-Header
   ============================================================ */
.tgh-accountmenu{display:flex;align-items:center;gap:10px}
.tgh-planpill{
  display:inline-flex;align-items:center;gap:8px;height:34px;padding:0 14px;border-radius:999px;
  background:rgba(22,121,76,.10);color:var(--tgh-ok);
  font-family:var(--tgh-head);font-weight:700;font-size:13px;white-space:nowrap;text-decoration:none;
}
.tgh-planpill i{width:7px;height:7px;border-radius:50%;background:currentColor;display:block}
.tgh .tgh-planpill--cta,
.tgh .tgh-planpill--cta:hover,
.tgh .tgh-planpill--cta:focus{background:var(--tgh-accent) !important;color:#fff !important;text-decoration:none}
.tgh .tgh-planpill--cta:hover{opacity:.9}
.tgh .tgh-accountmenu__login,
.tgh .tgh-accountmenu__login:hover,
.tgh .tgh-accountmenu__login:focus{background:var(--tgh-accent) !important;color:#fff !important;text-decoration:none}

.tgh-accountmenu__wrap{position:relative}
.tgh .tgh-avatar{
  width:38px;height:38px;border-radius:50%;background:var(--tgh-ink);color:#fff;
  font-family:var(--tgh-head);font-weight:700;font-size:14px;display:grid;place-items:center;
  transition:transform .15s;
}
.tgh .tgh-avatar:hover{transform:scale(1.05)}

.tgh-accmenu{
  position:absolute;right:0;top:calc(100% + 10px);width:238px;padding:6px;z-index:2147483000;
  background:var(--tgh-card);border:1px solid var(--tgh-line);border-radius:16px;
  box-shadow:0 18px 44px rgba(20,21,26,.18);
  opacity:0;transform:translateY(-6px);transition:opacity .15s,transform .15s;
}
.tgh-accmenu.is-open{opacity:1;transform:none}
.tgh-accmenu.is-portal{position:fixed;right:auto;top:0;left:0;z-index:2147483000}
.tgh-accmenu__head{padding:10px 12px 8px;border-bottom:1px solid var(--tgh-line);margin-bottom:6px}
.tgh-accmenu__name{display:block;font-family:var(--tgh-head);font-weight:700;font-size:14px}
.tgh-accmenu__mail{display:block;font-size:12px;color:var(--tgh-ink-60);margin-top:2px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tgh-accmenu a{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:10px;
  font-size:14px;text-decoration:none;color:var(--tgh-ink)}
.tgh-accmenu a:hover{background:var(--tgh-fill)}
.tgh-accmenu a svg{width:16px;height:16px;fill:var(--tgh-ink-35);flex:0 0 auto}
.tgh-accmenu a:hover svg{fill:var(--tgh-ink)}
.tgh-accmenu__sep{height:1px;background:var(--tgh-line);margin:6px 8px}

@media (max-width:720px){
  .tgh-lib__head{padding:4px 0 14px}

  /* Suche eigene Zeile, Filter darunter in einer schiebbaren Reihe. */
  .tgh-filters{gap:8px;flex-direction:column;align-items:stretch;flex-wrap:nowrap}
  .tgh-search{order:-1;flex:0 0 auto;width:100%;min-width:0}
  .tgh-filterrow{flex-wrap:nowrap;width:100%;align-self:stretch;padding-bottom:2px}
  .tgh-fdiv{display:none}
  .tgh-strip{grid-template-columns:1fr}
  .tgh-accountmenu .tgh-planpill{display:none}
}
