/* Suche, Favoriten, Item-Detail, Kopfzeilen-Knöpfe */
.top__tools { display: flex; gap: 6px; margin-left: 14px; order: 3; }
.top__btn { position: relative; width: 40px; height: 40px; border-radius: 9px; border: 1px solid var(--line); background: rgba(31,32,36,.75); color: #fff; cursor: pointer; display: grid; place-items: center; transition: .2s; }
.top__btn:hover { background: var(--sun); color: var(--ink); border-color: var(--sun); }
.top__btn svg { width: 19px; height: 19px; }
.top__btn em { position: absolute; right: -5px; top: -5px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--sun); color: var(--ink); font: 800 11px/18px var(--display); font-style: normal; text-align: center; padding: 0 4px; }
.top__btn em:empty { display: none; }
.nav a { white-space: nowrap; }
.nav a:focus-visible, .top__btn:focus-visible, .burger:focus-visible { outline: 2px solid var(--sun); outline-offset: 2px; }
.burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
/* Schmalere Desktop-Breiten: Menü kompakt statt Burger */
@media (max-width: 1460px) and (min-width: 1181px) {
  .top { gap: 12px; }
  .nav { gap: 0; }
  .nav a { padding: 9px 8px; gap: 6px; font-size: 14px; letter-spacing: .05em; }
  .nav a img { width: 15px; height: 15px; }
  .nav a[aria-current="page"]::after { left: 8px; right: 8px; }
  .top__tools { margin-left: 8px; }
}
@media (max-width: 1180px) {
  .burger { display: block; order: 4; margin-left: 8px; }
  .top__tools { margin-left: auto; }
  .nav { position: fixed; inset: 64px max(12px, env(safe-area-inset-right, 0px)) auto auto; width: min(300px, calc(100vw - 24px)); max-height: calc(100vh - 80px); overflow-y: auto;
    flex-direction: column; gap: 2px; background: rgba(22,23,26,.98); border: 1px solid var(--line); border-radius: 12px; padding: 8px; box-shadow: 0 24px 60px rgba(0,0,0,.55);
    transform: translateY(-12px); opacity: 0; visibility: hidden; pointer-events: none; transition: transform .25s, opacity .25s, visibility 0s .25s; }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; transition: transform .25s, opacity .25s; }
  .nav a { padding: 13px 14px; }
  .nav a[aria-current="page"] { background: rgba(255,122,26,.12); }
  .nav a[aria-current="page"]::after { left: 0; right: auto; top: 10px; bottom: 10px; width: 3px; height: auto; }
}
.favbtn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 11px; border-radius: 8px; border: 1px solid var(--line); background: #1d1e22; color: #8d8f97; cursor: pointer; font: 800 15px var(--display); letter-spacing: .06em; transition: .2s; vertical-align: middle; }
.favbtn span { font-size: 13px; text-transform: uppercase; }
.favbtn:hover { color: #fff; border-color: var(--gold); }
.favbtn.is-on { color: #16171a; background: var(--gold); border-color: var(--gold); }

.ht { position: fixed; inset: 0; z-index: 400; background: rgba(8,9,10,.72); backdrop-filter: blur(6px); display: grid; justify-items: center; align-items: start; padding: 9vh 14px 20px; }
.ht[hidden] { display: none; }
html.ht-open { overflow: hidden; }
.ht__box { width: min(720px, 100%); max-height: 80vh; overflow: auto; background: var(--coal); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 30px 90px rgba(0,0,0,.6); animation: rtIn .2s; scrollbar-width: thin; }
.ht__search { position: sticky; top: 0; display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--coal); border-bottom: 1px solid var(--line); z-index: 2; }
.ht__search svg { width: 20px; height: 20px; color: var(--sun); flex: none; }
.ht__search input { flex: 1; border: 0; background: none; color: #fff; font: 500 17px var(--body); outline: none; }
.ht__search kbd { font: 700 11px var(--display); padding: 3px 6px; border-radius: 4px; background: #2a2b30; color: var(--mute); }
.ht__types { display: flex; flex-wrap: wrap; gap: 5px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.ht__types button { border: 1px solid var(--line); background: #1d1e22; color: #cfccc5; border-radius: 6px; padding: 5px 9px 4px; cursor: pointer; font: 700 12.5px var(--display); letter-spacing: .06em; text-transform: uppercase; }
.ht__types button.is-on { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.ht__res { padding: 8px; display: grid; gap: 3px; }
.ht__row { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 7px 10px; border-radius: 8px; color: inherit; }
.ht__row:hover, .ht__row:focus { background: #222327; outline: none; }
.ht__row img, .ht__noimg { width: 44px; height: 36px; object-fit: contain; }
.ht__noimg { display: block; border-radius: 6px; background: repeating-linear-gradient(45deg, #2a2b30 0 4px, #222327 4px 8px); }
.ht__row b { display: block; font: 800 15.5px var(--display); text-transform: uppercase; }
.ht__row small { color: var(--mute); font-size: 12px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 480px; }
.ht__row em { font: 700 11px var(--display); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: var(--sun-2); background: rgba(255,122,26,.12); padding: 3px 7px 2px; border-radius: 4px; }
.ht__hint { color: var(--mute); font-size: 13px; padding: 10px; margin: 0; }
.ht__item { position: relative; display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding: 24px; }
.ht__itemimg { display: grid; place-items: center; border-radius: 12px; background: radial-gradient(circle, rgba(242,193,78,.2), transparent 70%), #17181b; border: 1px solid var(--line); min-height: 200px; }
.ht__itemimg img { max-width: 80%; max-height: 170px; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0,0,0,.6)); }
.ht__item h3, .ht__favs h3 { font: 900 italic 30px/1 var(--display); text-transform: uppercase; margin: 10px 0; }
.ht__item p { color: #cfccc5; font-size: 14.5px; }
.ht__id code { font-size: 12px; color: var(--mute); }
.ht__x { position: absolute; right: 12px; top: 12px; width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line); background: #222327; color: #fff; cursor: pointer; }
.ht__favs { position: relative; padding: 22px; }
.ht__favs .kicker { font-size: 12px; margin: 14px 0 8px; }
.ht__fav { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); background: #1d1e22; margin-bottom: 5px; }
.ht__fav img { width: 44px; height: 36px; object-fit: contain; }
.ht__fav b { display: block; font: 800 15px var(--display); text-transform: uppercase; }
.ht__fav small { color: var(--mute); font-size: 12px; }
@media (max-width: 600px) { .ht__item { grid-template-columns: 1fr; } }

/* Discord-Login (js/auth.js) */
.top__login, .top__user { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 9px; border: 1px solid #5865f2; background: #5865f2; color: #fff; font: 800 15px var(--display); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.top__login:hover { background: #4752c4; border-color: #4752c4; }
.top__login svg, .top__user svg { width: 20px; height: 20px; }
.top__user { background: rgba(31,32,36,.75); border-color: var(--line); padding: 0 10px 0 4px; }
.top__user:hover { border-color: var(--heat); }
.top__user img { width: 30px; height: 30px; border-radius: 50%; }
.top__user span { max-width: 12ch; overflow: hidden; text-overflow: ellipsis; text-transform: none; letter-spacing: 0; font-weight: 700; }
@media (max-width: 640px) { .top__login span, .top__user span { display: none; } .top__login, .top__user { padding: 0 9px; } .top__user { padding: 0 4px; } }

.gated { position: relative; max-height: 640px; overflow: hidden; }
.gated > :not(.gate__card) { filter: blur(7px) saturate(.7); pointer-events: none; user-select: none; }
.gated::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, var(--ink) 75%); pointer-events: none; }
.gate__card { position: absolute; z-index: 2; left: 50%; top: 90px; transform: translateX(-50%); width: min(460px, calc(100% - 32px)); padding: 28px 26px 26px; border-radius: 16px; background: rgba(22,23,26,.92); border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0,0,0,.55); text-align: center; }
.gate__icon svg { width: 44px; height: 44px; color: #5865f2; }
.gate__card h3 { font: 900 italic 30px/1 var(--display); text-transform: uppercase; margin: 10px 0 10px; }
.gate__card p { color: var(--mute); margin: 0 0 20px; }
.gate__btn { --c: #5865f2; color: #fff; }
.gate__btn svg { width: 20px; height: 20px; }
.gate__hint { text-align: center; color: var(--mute); margin-top: 10px; }

/* Sprachauswahl (js/i18n.js) */
.lang { display: inline-flex; height: 40px; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: rgba(31,32,36,.75); }
.lang button { border: 0; background: none; color: var(--mute); font: 800 14px var(--display); letter-spacing: .08em; padding: 0 9px; cursor: pointer; }
.lang button:hover { color: #fff; }
.lang button[aria-pressed="true"] { background: var(--sun); color: var(--ink); }
.lang--nav { display: none; }
@media (max-width: 1180px) { .top__tools > .lang { display: none; } .lang--nav { display: inline-flex; align-self: flex-start; margin: 14px 0 4px; } .lang--nav button { padding: 0 16px; font-size: 16px; } }
