/* Gem-Datenbank (/poe1/gems, /poe2/gems, /poe2/gems/<gem>): Klassen gdb-*, Entwurf von Fable (gems-mockup.html).
   Farben, Schriften, .panel, .btn, .tag, .tt kommen aus style.css (.btn--gross, .btn--glanz aus preis.css).
   --gdb-kopf (Höhe der klebenden Kopfzeile) setzt js/gems.js. */
.gdb { --gem: #1ba29b; --gem-hell: #8fd3cd; --phys: #c8c8c8; padding-bottom: 30px; }
.gdb [hidden] { display: none !important; }

.gdb-kopf { padding: 26px 0 6px; }
.gdb-kopf h1 { font-family: var(--font-title); font-size: clamp(26px, 3.6vw, 36px); color: #f1e2cf; margin: 0 0 6px; line-height: 1.15; }
.gdb-intro { max-width: 700px; color: var(--muted); font-size: 16px; margin: 0 0 10px; }

/* Stand der Spieldaten: kleine Marke, überall gleich */
.gdb-stand { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: #cdbfae; border: 1px solid var(--line); border-radius: 99px; padding: 3px 10px 3px 8px; background: rgba(0,0,0,.25); white-space: nowrap; }
.gdb-stand::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 6px var(--ok); }
.gdb-stand b { color: #f1e2cf; font-weight: 600; }
.gdb-hinweis { margin: 12px 0 0; padding: 9px 14px; border-radius: 6px; font-size: 14px; color: #e6d6c2; background: rgba(200,121,47,.09); border: 1px solid rgba(200,121,47,.35); max-width: 760px; }
.gdb-hinweis b { color: var(--accent-2); }

/* ---------- Bedienleiste der Liste (klebt unter der Kopfzeile) ---------- */
.gdb-leiste { position: sticky; top: var(--gdb-kopf, 60px); z-index: 20; margin: 14px 0 0; padding: 10px 0; background: rgba(11,10,9,.94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line-soft); }
.gdb-leiste-1 { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.gdb-spiel, .gdb-art { display: inline-flex; border: 1px solid var(--line); border-radius: 99px; overflow: hidden; background: #0f0d0b; }
.gdb-spiel button, .gdb-art button { background: transparent; border: 0; padding: 0 16px; min-height: 40px; cursor: pointer; color: var(--muted); font-weight: 600; white-space: nowrap; }
.gdb-spiel button.active, .gdb-art button.active { background: linear-gradient(180deg, #8a4a1c, #5c2f10); color: #fbe6cf; }
.gdb-art small { font-weight: 500; opacity: .75; margin-left: 4px; font-size: 12px; }
.gdb-suche { position: relative; min-width: 0; }
.gdb-suche input { width: 100%; background: #0f0d0b; border: 1px solid var(--line); border-radius: 99px; padding: 8px 38px 8px 38px; min-height: 40px; font-size: 15px; }
.gdb-suche input::-webkit-search-cancel-button { -webkit-appearance: none; }
.gdb-suche input:focus { outline: 2px solid rgba(200,121,47,.5); border-color: var(--accent); }
.gdb-suche::before { content: ""; position: absolute; left: 14px; top: 50%; width: 11px; height: 11px; border: 2px solid var(--muted); border-radius: 50%; transform: translateY(-60%); pointer-events: none; }
.gdb-suche::after { content: ""; position: absolute; left: 25px; top: 50%; width: 6px; height: 2px; background: var(--muted); transform: translateY(5px) rotate(45deg); pointer-events: none; }
.gdb-suche-x { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--panel-2); color: var(--muted); cursor: pointer; display: none; }
.gdb-suche.voll .gdb-suche-x { display: block; }

/* Filter: am Desktop eine Zeile mit Gruppen, am Handy ein Blatt von unten */
.gdb-filter { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin-top: 10px; }
.gdb-fgruppe { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.gdb-fgruppe > span { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; margin-right: 3px; }
.gdb-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 11px; border-radius: 99px; border: 1px solid #3d3126; background: #1c1712; color: #d8c2a7; font-size: 13px; cursor: pointer; white-space: nowrap; }
.gdb-chip:hover { border-color: var(--accent); text-decoration: none; }
.gdb-chip[aria-pressed="true"], .gdb-chip.active { background: #3b2410; border-color: var(--accent); color: #fbe6cf; font-weight: 600; }
.gdb-chip[aria-disabled="true"] { opacity: .38; }
.gdb-chip[aria-disabled="true"]:hover { border-color: #3d3126; }
.gdb-chip small { color: var(--muted); font-weight: 500; }
.gdb-chip--feuer { --c: var(--fire); } .gdb-chip--kaelte { --c: var(--cold); } .gdb-chip--blitz { --c: var(--light); } .gdb-chip--chaos { --c: var(--chaos); } .gdb-chip--phys { --c: var(--phys); }
.gdb-chip[class*="gdb-chip--"]::before { content: ""; width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); background: var(--c); }
.gdb-punkt { display: inline-block; flex: none; width: 12px; height: 12px; border-radius: 50%; border: 1px solid #000; box-shadow: inset 0 1px 1px rgba(255,255,255,.35); }
.gdb-punkt--r { background: #c62e22; } .gdb-punkt--g { background: #3aa632; } .gdb-punkt--b { background: #3a6fd6; } .gdb-punkt--w { background: #ddd; }
.gdb-filter select { background: #0f0d0b; border: 1px solid var(--line); border-radius: 99px; padding: 4px 10px; min-height: 30px; font-size: 13px; max-width: 100%; }
.gdb-filter-knopf, .gdb-blatt-kopf, .gdb-blatt-fuss, .gdb-blatt-hg { display: none; }
.gdb-mehr { background: none; border: 0; color: var(--accent-2); font-size: 13px; cursor: pointer; padding: 0 4px; }

/* Ergebniszeile */
.gdb-info { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 14px 0 10px; font-size: 14px; color: var(--muted); }
.gdb-info b { color: #f1e2cf; }
.gdb-info .gdb-reset { background: none; border: 0; color: var(--accent-2); cursor: pointer; padding: 0; }
.gdb-info .gdb-sort { margin-left: auto; font-size: 12.5px; }
.gdb-woanders { margin: 0 0 10px; padding: 8px 12px; border: 1px dashed var(--line); border-radius: 6px; font-size: 14px; }
.gdb-woanders button { background: none; border: 0; padding: 0; color: var(--accent-2); cursor: pointer; text-decoration: underline; }

/* ---------- Die Gem-Zeile: kompakt, 900 Stück müssen flüssig bleiben ---------- */
.gdb-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 6px; margin-bottom: 40px; }
.gdb-zeile { --farbe: #777; position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 54px; padding: 6px 10px 6px 12px; border: 1px solid var(--line-soft); border-radius: 5px; background: linear-gradient(180deg, var(--panel-2), var(--panel)); color: var(--text); content-visibility: auto; contain-intrinsic-size: auto 54px; }
.gdb-zeile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; border-radius: 5px 0 0 5px; background: var(--farbe); }
.gdb-zeile:hover { border-color: var(--accent); text-decoration: none; }
.gdb-f-r { --farbe: #c62e22; } .gdb-f-g { --farbe: #3aa632; } .gdb-f-b { --farbe: #3a6fd6; } .gdb-f-w { --farbe: #cfcfcf; }
/* Gem-Bild: Ausschnitt aus einem Sprite (PoE 2) oder Einzelbild (PoE 1). --px = Kantenlänge, --x/--y/--cw/--aw/--ah kommen vom Sprite */
.gdb-ic { --px: 40; flex: none; display: block; width: calc(var(--px) * 1px); height: calc(var(--px) * 1px); border-radius: 4px; background-color: #14110e; background-repeat: no-repeat;
  background-size: calc(var(--aw) / var(--cw) * var(--px) * 1px) calc(var(--ah) / var(--cw) * var(--px) * 1px);
  background-position: calc(var(--x) / var(--cw) * var(--px) * -1px) calc(var(--y) / var(--cw) * var(--px) * -1px);
  box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--line); object-fit: contain; }
.gdb-ic--gross { --px: 72; border-radius: 6px; }
.gdb-ic--klein { --px: 28; }
/* Ersatz, solange es kein Bild gibt: runder Stein in der Attributfarbe */
.gdb-ic--stein { background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--farbe) 70%, #fff), var(--farbe) 45%, color-mix(in srgb, var(--farbe) 35%, #000)); border-radius: 50%; box-shadow: 0 0 0 1px #000, 0 0 0 2px #5a4a36;
  width: calc(var(--px) * .85px); height: calc(var(--px) * .85px); margin: calc(var(--px) * .075px); }
/* Namen bis zu zwei Zeilen statt „…“: deutsche Namen sind oft viel länger („Ansturm der Sternengeborenen“).
   hyphens trennt lange Wörter nach den Regeln der Seitensprache (html lang), erst danach kommt „…“. */
.gdb-name { font-family: var(--font-item); font-size: 16.5px; line-height: 1.2; color: var(--gem); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; hyphens: auto; overflow-wrap: break-word; }
.gdb-zeile--sup .gdb-name, .gdb-sup .gdb-name { color: var(--gem-hell); }
.gdb-name small { font-family: var(--font-ui); font-size: 12px; color: var(--muted); margin-left: 6px; }
.gdb-name mark { background: rgba(233,163,90,.28); color: inherit; border-radius: 2px; }
.gdb-sub { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gdb-sub .t-feuer { color: var(--fire); } .gdb-sub .t-kaelte { color: var(--cold); } .gdb-sub .t-blitz { color: var(--light); } .gdb-sub .t-chaos { color: var(--chaos); } .gdb-sub .t-phys { color: var(--phys); }
.gdb-rechts { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; }
/* 12em: „Zweihandstreitkolben“ und „Schilde / Faustschild“ passen ganz hinein (10em reichte nur fürs Englische) */
.gdb-waffe { border: 1px solid var(--line); border-radius: 3px; padding: 1px 6px; color: #cdbfae; max-width: 12em; overflow: hidden; text-overflow: ellipsis; }
/* „ab Stufe“: nur in den Attribut-Spalten der Liste sichtbar (dort wird danach sortiert) */
.gdb-ab { display: none; }
.gdb-stufen { display: inline-flex; gap: 3px; }
.gdb-stufen i { font: 700 10.5px/18px var(--font-ui); font-style: normal; min-width: 20px; text-align: center; border-radius: 3px; background: #24313a; color: #9fd0e8; padding: 0 3px; }
.gdb-stufen button { font: 700 10.5px/20px var(--font-ui); min-width: 24px; border: 1px solid #2f4350; border-radius: 3px; background: #172026; color: #9fd0e8; cursor: pointer; padding: 0 4px; }
.gdb-stufen button.active { background: #9fd0e8; color: #0d1a21; border-color: #9fd0e8; }
.gdb-stufen button[aria-disabled="true"] { opacity: .4; text-decoration: line-through; }
.gdb-dtags .gdb-stufen button { font-size: 13px; line-height: 26px; min-width: 34px; }

.gdb-leer { grid-column: 1 / -1; text-align: center; padding: 40px 16px; border: 1px dashed var(--line); border-radius: 6px; color: var(--muted); }
.gdb-leer strong { display: block; color: #f1e2cf; font-size: 17px; margin-bottom: 4px; }
.gdb-leer .btn { margin-top: 12px; }
.gdb-leer form { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }
.gdb-leer form .gdb-suche { flex: 1 1 260px; max-width: 420px; }
.gdb-platz { min-height: 54px; border: 1px solid var(--line-soft); border-radius: 5px; background: linear-gradient(90deg, var(--panel), var(--panel-2), var(--panel)); }
@media (prefers-reduced-motion: no-preference) {
  .gdb-platz { background-size: 200% 100%; animation: gdb-laden 1.4s linear infinite; }
  @keyframes gdb-laden { from { background-position: 100% 0; } to { background-position: -100% 0; } }
}

/* ---------- Liste nach Attribut: Stärke | Geschick | Intelligenz, darunter das Band „Ohne Attribut“ ---------- */
/* Jede Spalte ist nach „ab Stufe“ sortiert. --gdb-leiste-h (Höhe der Bedienleiste) setzt js/gems.js, damit die Spaltenköpfe darunter kleben.
   Schmal (bis 860 px): eine Spalte, gewählt über die Reiter in der Bedienleiste. */
.gdb-spalten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; margin-bottom: 40px; }
.gdb-spalte { min-width: 0; border: 1px solid var(--line-soft); border-radius: 8px; background: linear-gradient(180deg, color-mix(in srgb, var(--farbe) 9%, transparent), transparent 260px), rgba(0,0,0,.2); transition: border-color .15s; }
.gdb-spalte--band { grid-column: 1 / -1; }
.gdb-sp-kopf { position: sticky; top: calc(var(--gdb-kopf, 60px) + var(--gdb-leiste-h, 0px)); z-index: 5; margin: 0; }
.gdb-sp-kopf button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 14px; border: 0; border-bottom: 2px solid var(--farbe); border-radius: 7px 7px 0 0; cursor: pointer; text-align: left;
  background: linear-gradient(180deg, color-mix(in srgb, var(--farbe) 26%, #14110e), color-mix(in srgb, var(--farbe) 8%, #14110e)); color: #f6e7d3; font-family: var(--font-title); font-size: 17px; font-weight: 700; letter-spacing: .04em; line-height: 1.2; }
.gdb-sp-kopf button:hover { filter: brightness(1.12); }
.gdb-sp-kopf span { flex: 1; min-width: 0; overflow-wrap: break-word; }
.gdb-sp-kopf small { flex: none; padding: 1px 10px; border: 1px solid color-mix(in srgb, var(--farbe) 60%, #000); border-radius: 99px; background: rgba(0,0,0,.5); color: #f1e2cf; font: 700 13px/1.5 var(--font-ui); letter-spacing: 0; font-variant-numeric: tabular-nums; }
/* Kleiner Edelstein in der Attributfarbe (Spaltenkopf und Reiter) */
.gdb-sp-stein { flex: none; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--farbe) 60%, #fff), var(--farbe) 48%, color-mix(in srgb, var(--farbe) 35%, #000)); box-shadow: 0 0 0 1px #000, 0 0 0 2px rgba(255,255,255,.14), 0 0 10px color-mix(in srgb, var(--farbe) 55%, transparent); }
.gdb-sp-liste { display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; padding: 8px; }
.gdb-spalte--band .gdb-sp-liste { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gdb-sp-leer { margin: 0; padding: 4px 14px 16px; text-align: center; font-size: 13px; color: var(--muted); }
.gdb-spalten--nichts .gdb-spalte { display: none; }
/* Hervorgehobene Spalte (Klick auf den Spaltenkopf oder Adresse ?farbe=g): die anderen treten zurück */
.gdb-spalte.fokus { border-color: var(--farbe); box-shadow: 0 0 26px color-mix(in srgb, var(--farbe) 20%, transparent); }
.gdb-spalten--fokus .gdb-spalte:not(.fokus) .gdb-sp-liste { opacity: .4; transition: opacity .15s; }
.gdb-spalten--fokus .gdb-spalte:not(.fokus) .gdb-sp-kopf button { filter: saturate(.45) brightness(.72); }
.gdb-spalten--fokus .gdb-spalte:not(.fokus):is(:hover, :focus-within) .gdb-sp-liste { opacity: .85; }
/* Zeile in der Spalte: Bild | Name und Tags | ab Stufe; Waffe und Stufen I–III in einer zweiten Zeile unter dem Namen */
.gdb-spalten .gdb-zeile { grid-template-columns: 40px minmax(0, 1fr) auto; row-gap: 3px; }
.gdb-spalten .gdb-zeile > .gdb-ic { grid-column: 1; grid-row: 1 / span 2; }
.gdb-spalten .gdb-zeile > div:nth-child(2) { grid-column: 2; grid-row: 1; }
.gdb-spalten .gdb-zeile > .gdb-rechts { grid-column: 2; grid-row: 2; justify-self: start; flex-wrap: wrap; }
.gdb-spalten .gdb-zeile > .gdb-rechts:empty { display: none; }
.gdb-spalten .gdb-ab { grid-column: 3; grid-row: 1 / span 2; display: grid; justify-items: center; align-content: center; align-self: stretch; padding-left: 10px; border-left: 1px solid var(--line-soft); line-height: 1.1; }
.gdb-ab small { font-size: 9.5px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; color: var(--muted); }
.gdb-ab b { font-size: 16px; font-variant-numeric: tabular-nums; color: #f1e2cf; }
.gdb-reiter { display: none; }
@media (max-width: 860px) {
  .gdb-reiter { display: flex; gap: 6px; margin-top: 8px; }
  .gdb-reiter button { flex: 1 1 0; min-width: 0; min-height: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1px 6px; padding: 5px 4px; border: 1px solid var(--line); border-bottom: 3px solid color-mix(in srgb, var(--farbe) 50%, #000); border-radius: 6px; background: #0f0d0b; color: var(--muted); font-weight: 700; font-size: 14px; cursor: pointer; }
  .gdb-reiter .gdb-sp-stein { width: 12px; height: 12px; }
  .gdb-reiter small { flex: 1 0 100%; text-align: center; font-size: 11.5px; font-weight: 500; font-variant-numeric: tabular-nums; }
  .gdb-reiter button.active { border-color: var(--farbe); background: linear-gradient(180deg, color-mix(in srgb, var(--farbe) 30%, #14110e), #14110e); color: #fbe6cf; }
  .gdb-reiter button.leer:not(.active) { opacity: .5; }
  .gdb-spalten { grid-template-columns: minmax(0, 1fr); }
  .gdb-spalte:not(.offen) { display: none; }
  .gdb-spalten--fokus .gdb-spalte:not(.fokus) .gdb-sp-liste { opacity: 1; }
  .gdb-spalten--fokus .gdb-spalte:not(.fokus) .gdb-sp-kopf button { filter: none; }
  .gdb-spalte.fokus { border-color: var(--line-soft); box-shadow: none; }
  .gdb-sp-kopf { position: static; }
  .gdb-sp-kopf button { pointer-events: none; }
  .gdb-spalte--band .gdb-sp-liste { grid-template-columns: minmax(0, 1fr); }
  .gdb-info .gdb-sort { display: none; }
}
@media (min-width: 861px) and (max-width: 1020px) {
  .gdb-spalten { gap: 10px; }
  .gdb-sp-liste { padding: 6px; }
  .gdb-spalten .gdb-zeile { padding-right: 8px; gap: 3px 8px; }
  .gdb-spalten .gdb-ab { padding-left: 7px; }
}

/* ---------- Detailseite ---------- */
.gdb-pfad { font-size: 13px; color: var(--muted); padding: 16px 0 0; }
.gdb-pfad span { margin: 0 6px; opacity: .6; }
.gdb-dkopf { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 16px; align-items: center; margin-top: 12px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 6px; background: linear-gradient(120deg, rgba(27,162,155,.12), transparent 45%), var(--panel); }
.gdb-dkopf > .gdb-ic { justify-self: center; }
.gdb-dkopf h1 { font-family: var(--font-title); margin: 0; font-size: clamp(24px, 3.2vw, 34px); color: #f6e7d3; line-height: 1.15; }
/* inline-block statt nowrap: rutscht als Ganzes in die nächste Zeile und bricht selbst um, wenn es länger als die Zeile ist
   (z. B. „German: Unterstützung: Zusätzlicher Feuerschaden“ am Handy) */
.gdb-dkopf h1 small { display: inline-block; max-width: 100%; font-family: var(--font-ui); font-size: 14px; color: var(--muted); font-weight: 500; margin-left: 8px; }
.gdb-dtags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; align-items: center; }
.gdb-dtags .tag:hover { border-color: var(--accent); text-decoration: none; }
.gdb-attr { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #cdbfae; margin-right: 6px; }
.gdb-dkopf-rechts { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.gdb-sprung { display: none; }

.gdb-raster { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 20px; }
.gdb-haupt { min-width: 0; }
.gdb-links--klebt { position: sticky; top: calc(var(--gdb-kopf, 60px) + 16px); }
#s-passt, #s-werte { scroll-margin-top: calc(var(--gdb-kopf, 60px) + 12px); }

/* Karte mit den offiziellen Werten und dem Stufenregler */
.gdb-regler { display: grid; grid-template-columns: auto minmax(0, 1fr) 40px; gap: 6px 10px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.gdb-regler label { color: var(--muted); text-transform: uppercase; font-size: 11px; letter-spacing: .08em; font-weight: 600; }
.gdb-regler input[type=range] { width: 100%; accent-color: var(--accent); }
.gdb-regler output { font-weight: 700; color: #f1e2cf; text-align: right; }
.gdb-karte .tt { border-width: 0; box-shadow: none; min-width: 0; width: auto; }
.gdb-quelle { font-size: 12px; color: var(--muted); padding: 8px 16px 12px; margin: 0; }

/* Start in den Build-Planer (nur Skill-Seiten): Knopf „Mit diesem Skill im Planer starten“, darunter die mit „+“ vorgemerkten Supports */
.gdb-haupt { container: gdb-haupt / inline-size; }
.gdb-start { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px 16px; align-items: center; margin-bottom: 14px; padding: 16px 18px; border: 1px solid #7d6129; border-radius: 8px;
  background: radial-gradient(120% 150% at 100% 0%, rgba(200,121,47,.22), transparent 60%), linear-gradient(180deg, #231a10, var(--panel)); box-shadow: inset 0 1px 0 rgba(255,236,205,.07), 0 8px 26px rgba(0,0,0,.35); }
.gdb-start > .gdb-ic { --px: 48; box-shadow: 0 0 0 1px #000, 0 0 0 2px #7d6129; }
.gdb-start h2 { font-family: var(--font-title); font-size: clamp(17px, 2vw, 21px); color: #f6e7d3; margin: 0 0 3px; line-height: 1.25; text-transform: none; letter-spacing: 0; }
.gdb-start p { margin: 0; font-size: 13.5px; line-height: 1.45; color: #cdbfae; }
.gdb-start-knopf { justify-content: center; text-align: center; white-space: normal; }
.gdb-start-sups { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding-top: 10px; border-top: 1px solid rgba(125,97,41,.45); font-size: 13px; color: #bfb3a5; }
.gdb-start-tipp b { display: inline-grid; place-items: center; width: 20px; height: 20px; margin: 0 2px; border-radius: 4px; border: 1px solid #1b7a74; background: #0c2422; color: var(--gem-hell); font-size: 15px; line-height: 1; vertical-align: -3px; }
.gdb-start-label b.voll { color: #f0b9b1; font-weight: 600; }
.gdb-start-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 34px; padding: 2px 9px 2px 4px; border: 1px solid #1b7a74; border-left: 3px solid var(--farbe); border-radius: 5px; background: #0c2422; color: var(--gem-hell); font-family: var(--font-item); font-size: 15px; cursor: pointer; }
.gdb-start-chip span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gdb-start-chip i { font-style: normal; font-family: var(--font-ui); font-size: 11px; color: var(--muted); }
.gdb-start-chip:hover { border-color: var(--danger); border-left-color: var(--farbe); }
.gdb-start-chip:hover i { color: #f0b9b1; }
.gdb-start-sups .gdb-sz-link { margin-left: auto; }
/* Schmale Hauptspalte (Handy, Tablet, kleiner Laptop): Knopf in eigener Zeile über die ganze Breite. Gemessen wird die Spalte selbst. */
@container gdb-haupt (max-width: 660px) {
  .gdb-start { grid-template-columns: auto minmax(0, 1fr); padding: 14px; }
  .gdb-start-knopf { grid-column: 1 / -1; min-height: 48px; }
}

/* Herzstück: Was passt dazu? */
.gdb-passt-kopf { padding: 16px 16px 4px; }
.gdb-passt-kopf h2 { font-family: var(--font-title); font-size: clamp(19px, 2.4vw, 24px); color: #f1e2cf; margin: 0 0 6px; line-height: 1.25; text-transform: none; letter-spacing: 0; }
.gdb-zahl { font-size: 15px; color: #e6d6c2; margin: 0; }
.gdb-zahl b { color: var(--ok); font-size: 19px; }
.gdb-meta { font-size: 14px; color: #cdbfae; margin: 6px 0 0; }
.gdb-vertrauen { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.gdb-vertrauen summary { cursor: pointer; }
.gdb-vertrauen summary::marker { color: var(--ok); }
.gdb-vertrauen p { margin: 6px 0 0; max-width: 620px; }
.gdb-werkzeug { position: sticky; top: var(--gdb-kopf, 60px); z-index: 10; padding: 10px 16px; background: var(--panel); border-bottom: 1px solid var(--line-soft); }
.gdb-werkzeug .gdb-suche input { border-radius: var(--radius); }
.gdb-gruppen-chips { display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.gdb-gruppen-chips::-webkit-scrollbar { display: none; }
.gdb-meldung { margin: 12px 16px 0; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 6px; font-size: 14px; color: #e6d6c2; }
.gdb-meldung b { color: #f1e2cf; }
.gdb-gruppe { padding: 4px 16px 10px; }
.gdb-gruppe > h3 { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 8px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.gdb-gruppe > h3 small { text-transform: none; letter-spacing: 0; color: var(--muted); font-weight: 500; font-size: 13px; }
.gdb-gruppe > h3::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.gdb-gruppe .gdb-liste { margin: 0; }
.gdb-supliste { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 6px; }
.gdb-sup { --farbe: #777; position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr) 36px; gap: 10px; align-items: start; padding: 8px 8px 8px 12px; border: 1px solid var(--line-soft); border-radius: 5px; background: rgba(0,0,0,.25); }
.gdb-sup::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; border-radius: 5px 0 0 5px; background: var(--farbe); }
.gdb-sup:hover { border-color: #1b7a74; }
.gdb-sup > .gdb-ic { margin-top: 1px; }
.gdb-sup--ohne-plus { grid-template-columns: 30px minmax(0, 1fr); }
.gdb-sup-kopf { display: flex; align-items: center; gap: 8px; min-width: 0; }
.gdb-sup-kopf a { min-width: 0; }
.gdb-sup-kopf .gdb-waffe { flex: none; font-size: 11px; }
.gdb-sup-kopf a:hover { text-decoration: underline; }
.gdb-sup-text { font-size: 13px; line-height: 1.4; color: #bfb3a5; margin: 3px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gdb-sup-fuss { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; font-size: 12px; color: var(--muted); }
.gdb-sup-fuss:empty { display: none; }
.gdb-warn { color: #e6c84a; }
.gdb-plus { width: 36px; height: 36px; border-radius: 6px; border: 1px solid #1b7a74; background: #0c2422; color: var(--gem-hell); font-size: 20px; line-height: 1; cursor: pointer; }
.gdb-plus:hover { background: #12423e; }
.gdb-plus[aria-pressed="true"] { background: var(--ok); border-color: var(--ok); color: #0c1a08; font-size: 16px; }
.gdb-nicht { margin: 6px 16px 16px; border: 1px solid #4a2a25; border-radius: 6px; background: rgba(214,90,74,.06); }
.gdb-nicht summary { cursor: pointer; padding: 10px 14px; font-weight: 600; color: #f0b9b1; }
.gdb-nicht summary small { color: var(--muted); font-weight: 400; margin-left: 6px; }
.gdb-nicht .gdb-supliste { padding: 0 10px 10px; }
.gdb-sup--nicht { opacity: .9; }
.gdb-sup--nicht .gdb-name { color: #9aa5a4; }
.gdb-grund { color: #f0b9b1; font-size: 12.5px; margin: 3px 0 0; }
.gdb-grund::before { content: "✕ "; }
.gdb-leer-klein { padding: 24px 16px; text-align: center; color: var(--muted); }
.gdb-leer-klein b { color: #f1e2cf; }

/* Support-Seite: was der Support verlangt */
.gdb-bedingung { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.gdb-bedingung b { color: var(--ok); } .gdb-bedingung b.nicht { color: #f0b9b1; }

/* Kleine Querverweise unten (PoE 1: Varianten) */
.gdb-quer { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; padding: 14px 16px; }
.gdb-quer a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--line-soft); border-radius: 5px; color: var(--text); background: rgba(0,0,0,.25); }
.gdb-quer a:hover { border-color: var(--accent); text-decoration: none; }
.gdb-quer b { display: block; font-family: var(--font-item); font-weight: 400; font-size: 16px; color: var(--gem); }
.gdb-quer small { display: block; color: var(--muted); }

/* Fokus immer sichtbar */
.gdb :is(.gdb-zeile, .gdb-chip, .gdb-spiel button, .gdb-art button, .gdb-stufen button, .gdb-plus, .gdb-mehr, .gdb-reset, .gdb-quer a, .gdb-name, .gdb-sp-kopf button, .gdb-reiter button, .gdb-start-chip):focus-visible { outline: 2px solid var(--accent-2); outline-offset: 1px; }

/* ===================== Handy und schmale Fenster ===================== */
@media (max-width: 900px) {
  .gdb-raster { grid-template-columns: minmax(0, 1fr); }
  .gdb-links { order: 2; }
  .gdb-links--klebt { position: static; }
  .gdb-haupt { order: 1; }
  .gdb-sprung { display: flex; gap: 6px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
}
@media (max-width: 700px) {
  /* Waffen-Etikett unter den Namen statt daneben: so hat der Name die ganze Breite (lange deutsche Namen wie
     „Ansturm der Sternengeborenen“ neben „Zweihandstreitkolben“ brachen sonst mitten im Wort um) */
  .gdb-zeile { grid-template-columns: 40px minmax(0, 1fr); row-gap: 4px; }
  .gdb-zeile > .gdb-ic { grid-row: 1 / span 2; }
  .gdb-zeile > .gdb-rechts { grid-column: 2; grid-row: 2; justify-self: start; }
  .gdb-zeile > .gdb-rechts:empty { display: none; }
  .gdb-leiste { backdrop-filter: none; background: var(--bg); }
  .gdb-leiste.blatt-offen { z-index: 90; }
  .gdb-leiste-1 { grid-template-columns: auto minmax(0, 1fr); }
  .gdb-leiste-1 .gdb-suche { grid-column: 1 / -1; grid-row: 1; }
  .gdb-art { justify-self: stretch; }
  .gdb-art button { flex: 1; padding: 0 10px; }
  .gdb-spiel button { padding: 0 12px; }
  .gdb-filter-knopf { display: inline-flex; margin-top: 8px; }
  /* Filter als Blatt von unten */
  .gdb-filter { display: none; }
  .gdb-filter.offen { display: block; position: fixed; inset: auto 0 0 0; z-index: 80; max-height: 82vh; overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 0 16px; background: var(--panel); border-top: 1px solid var(--accent); border-radius: 14px 14px 0 0; box-shadow: 0 -20px 60px rgba(0,0,0,.8); }
  .gdb-filter.offen .gdb-blatt-kopf { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 1; background: var(--panel); padding: 14px 0 8px; font-weight: 700; color: #f1e2cf; }
  .gdb-filter.offen .gdb-blatt-fuss { display: grid; grid-template-columns: auto 1fr; gap: 8px; position: sticky; bottom: 0; background: var(--panel); padding: 10px 0 calc(16px + env(safe-area-inset-bottom)); }
  .gdb-filter.offen .gdb-blatt-fuss .btn { justify-content: center; min-height: 44px; }
  .gdb-blatt-hg.offen { display: block; position: fixed; inset: 0; z-index: 79; background: rgba(0,0,0,.6); }
  .gdb-fgruppe { margin: 10px 0 14px; gap: 8px; }
  .gdb-fgruppe > span { flex: 1 0 100%; }
  .gdb-chip { min-height: 38px; padding: 0 14px; font-size: 14px; }
  .gdb-filter select { min-height: 40px; width: 100%; border-radius: var(--radius); }

  .gdb-liste, .gdb-supliste { grid-template-columns: minmax(0, 1fr); }

  .gdb-dkopf { grid-template-columns: 56px minmax(0, 1fr); padding: 14px; gap: 12px; }
  .gdb-dkopf .gdb-ic--gross { --px: 56; }
  .gdb-dkopf h1 small { display: block; margin: 2px 0 0; }
  .gdb-dkopf-rechts { grid-column: 1 / -1; align-items: flex-start; }
  .gdb-werkzeug { top: var(--gdb-kopf, 0px); }
  .gdb-plus { width: 44px; height: 44px; }
  .gdb-sup { grid-template-columns: 30px minmax(0, 1fr) 44px; }
  .gdb-sup--ohne-plus { grid-template-columns: 30px minmax(0, 1fr); }
  .gdb-passt-kopf, .gdb-gruppe { padding-left: 12px; padding-right: 12px; }
  .gdb-nicht { margin-left: 12px; margin-right: 12px; }

}
@media (prefers-reduced-motion: no-preference) {
  .gdb-start-chip.neu { animation: gdb-rein .35s ease-out; }
  @keyframes gdb-rein { from { transform: scale(.7); opacity: .3; } to { transform: none; opacity: 1; } }
}

/* ---------- Schaden je Stufe ---------- */
/* Entwurf: gems-schaden.md. Tabelle .gdb-st (in .gdb-links unter der Karte). */

/* Teil 1: Tabelle "Schaden je Stufe" */
.gdb-st { --st-c: #f1e2cf; overflow: hidden; scroll-margin-top: calc(var(--gdb-kopf, 60px) + 12px); }
/* Große Zeile: Schaden der gewählten Stufe. Steht in der Karte direkt unter den Reglern (oder oben in .gdb-st) */
.gdb-st-jetzt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 0; padding: 10px 16px; border-bottom: 1px solid var(--line-soft); background: linear-gradient(90deg, rgba(201,164,92,.09), transparent 70%); }
.gdb-st-jetzt small { flex: 1 0 100%; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: var(--muted); }
.gdb-st-jetzt b { font-size: 24px; line-height: 1.15; font-variant-numeric: tabular-nums; color: color-mix(in srgb, var(--st-c, #f1e2cf) 78%, #fff); }
.gdb-st-jetzt span { font-size: 13px; color: #cdbfae; }
.gdb-st-jetzt a { margin-left: auto; font-size: 12.5px; white-space: nowrap; }
.gdb-st-lauf { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.gdb-st-tab { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; font-variant-numeric: tabular-nums; }
.gdb-st-tab th, .gdb-st-tab td { padding: 5px 10px; text-align: right; white-space: nowrap; font-weight: 400; color: #bfb3a5; background: var(--panel); border-bottom: 1px solid var(--line-soft); }
.gdb-st-tab thead th { vertical-align: bottom; white-space: normal; min-width: 4.4em; max-width: 9.5em; padding-top: 8px; padding-bottom: 7px; font-size: 11px; line-height: 1.25; font-weight: 600; color: var(--muted); background: #12100d; }
/* Erste Spalte (Stufe) bleibt beim seitlichen Wischen stehen */
.gdb-st-tab tr > :first-child { position: sticky; left: 0; z-index: 1; width: 1%; min-width: 0; padding-left: 12px; padding-right: 8px; text-align: left; box-shadow: 1px 0 0 var(--line-soft); }
.gdb-st-tab tbody tr { cursor: pointer; }
.gdb-st-tab tbody tr:last-child > * { border-bottom: 0; }
.gdb-st-tab tbody tr:hover > * { background: var(--panel-2); }
.gdb-st-lv { display: block; min-width: 32px; height: 24px; padding: 0 6px; border: 1px solid var(--line); border-radius: 4px; background: #0f0d0b; color: #e6d6c2; font: 700 12.5px/22px var(--font-ui); font-variant-numeric: tabular-nums; text-align: center; cursor: pointer; }
/* Schadensspalten: hell, fett, optional in der Farbe der Schadensart */
.gdb-st-tab .gdb-st-dmg { position: relative; font-size: 14px; font-weight: 700; color: color-mix(in srgb, var(--st-c) 78%, #fff); }
.gdb-st-tab thead .gdb-st-dmg { font-size: 11px; color: color-mix(in srgb, var(--st-c) 60%, #cdbfae); }
.gdb-st-dmg i { font-style: normal; font-weight: 400; font-size: 11px; opacity: .7; margin: 0 1px; }
.gdb-st-dmg--feuer { --st-c: var(--fire); } .gdb-st-dmg--kaelte { --st-c: var(--cold); } .gdb-st-dmg--blitz { --st-c: var(--light); } .gdb-st-dmg--chaos { --st-c: var(--chaos); } .gdb-st-dmg--phys { --st-c: var(--phys); }
/* Wachstum: dünner Balken unter dem Wert, --w = Anteil am höchsten Wert (0 bis 1) */
.gdb-st-tab--wachs tbody .gdb-st-dmg::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 1px; height: 2px; border-radius: 2px; background: linear-gradient(var(--st-c), var(--st-c)) right / calc(var(--w, 0) * 100%) 100% no-repeat, rgba(255,255,255,.05); opacity: .8; }
/* Gewählte Stufe */
.gdb-st-tab tbody tr.aktiv > * { background: #2a1c0e; color: #f1e2cf; border-bottom-color: #5c3a17; }
.gdb-st-tab tbody tr.aktiv > :first-child { box-shadow: inset 3px 0 0 var(--accent), 1px 0 0 var(--line-soft); }
.gdb-st-tab tbody tr.aktiv .gdb-st-lv { background: linear-gradient(180deg, #8a4a1c, #5c2f10); border-color: #b0652a; color: #fbe6cf; }
/* Eingeklappt: nur Eckstufen und die gewählte Stufe */
.gdb-st:not(.alle) .gdb-st-tab tr.gdb-st-zw:not(.aktiv) { display: none; }
.gdb-st-fuss { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; padding: 8px 12px 10px 16px; border-top: 1px solid var(--line-soft); font-size: 12px; color: var(--muted); }
.gdb-st-mehr { background: none; border: 0; padding: 4px 0; color: var(--accent-2); font-size: 13px; font-weight: 600; cursor: pointer; }
.gdb-st-mehr:hover { text-decoration: underline; }

/* Kleine Teile der Waffenwahl: Schließen-Knopf und Hinweiszeile */
.gdb-ks-x { margin-left: auto; align-self: flex-start; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.gdb-ks-x:hover { border-color: var(--accent); color: #f1e2cf; }
.gdb-ks-leer { margin: 12px 0 0; font-size: 14px; color: #cdbfae; }

.gdb :is(.gdb-st-lv, .gdb-st-mehr, .gdb-ks-x):focus-visible { outline: 2px solid var(--accent-2); outline-offset: 1px; }

@media (max-width: 700px) {
  .gdb-st-tab th, .gdb-st-tab td { padding: 6px 8px; }
  .gdb-st-lv { min-width: 36px; height: 30px; line-height: 28px; }
  .gdb-st-mehr { min-height: 36px; }

}

/* ---------- Schadenszahlen mit Waffe (nur Angriffe) ---------- */
/* Entwurf: gems-schaden2.md, Klassen gdb-sz-*. Die Waffenwahl sitzt in der Werte-Karte unter der Schadenszeile. */
.gdb { --sz-gold: #f3d99a; }
.gdb-sz-jetzt b i { font-style: normal; font-weight: 400; font-size: .68em; opacity: .78; margin: 0 1px; }

/* Waffenwahl */
.gdb-sz-wahl { padding: 12px 16px 14px; border-bottom: 1px solid var(--line-soft); background: rgba(0,0,0,.22); }
.gdb-sz-wahl-kopf { display: flex; align-items: flex-start; gap: 10px; padding-bottom: 10px; }
.gdb-sz-wahl-kopf > div { flex: 1; min-width: 0; }
.gdb-sz-wahl-kopf h4 { margin: 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.gdb-sz-wahl-kopf p { margin: 2px 0 0; font-size: 13px; color: #bfb3a5; }
.gdb-sz-modus { display: flex; width: fit-content; max-width: 100%; }
.gdb-sz-modus button { min-height: 36px; }
.gdb-sz-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 8px; }
.gdb-sz-filter .gdb-suche { flex: 1 1 100%; }
.gdb-sz-filter .gdb-suche input { border-radius: var(--radius); }
.gdb-sz-basen-kopf, .gdb-sz-basis { display: grid; grid-template-columns: minmax(0, 1fr) 7.2em 3.6em; gap: 0 12px; align-items: center; padding: 5px 12px; }
.gdb-sz-basen-kopf { padding-top: 0; padding-bottom: 4px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.gdb-sz-basen-kopf span + span, .gdb-sz-basis-dmg, .gdb-sz-basis-aps { text-align: right; }
.gdb-sz-basen { list-style: none; margin: 0; padding: 0; max-height: min(264px, 36vh); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line) transparent; border: 1px solid var(--line-soft); border-radius: 6px; background: rgba(0,0,0,.25); }
.gdb-sz-basis { width: 100%; min-height: 44px; border: 0; border-bottom: 1px solid var(--line-soft); background: transparent; text-align: left; cursor: pointer; }
.gdb-sz-basen li:last-child .gdb-sz-basis { border-bottom: 0; }
.gdb-sz-basis > span:first-child { display: grid; min-width: 0; line-height: 1.25; }
.gdb-sz-basis b { font-family: var(--font-item); font-weight: 400; font-size: 15.5px; color: #f1e2cf; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gdb-sz-basis small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gdb-sz-basis-dmg { font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; color: #e6e1da; }
.gdb-sz-basis-dmg i { font-style: normal; font-weight: 400; font-size: 11px; opacity: .7; margin: 0 1px; }
.gdb-sz-basis-aps { font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; color: #bfb3a5; }
.gdb-sz-basis:hover { background: var(--panel-2); }
.gdb-sz-basis[aria-pressed="true"] { background: #2a1c0e; box-shadow: inset 3px 0 0 var(--accent); }
.gdb-sz-basis[aria-pressed="true"] b { color: #fbe6cf; }
/* Eigene Werte */
.gdb-sz-eigen { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px 16px; margin-top: 12px; }
.gdb-sz-feld { display: grid; gap: 4px; min-width: 0; align-content: start; }
.gdb-sz-feld > span { font-size: 12.5px; font-weight: 600; color: #cdbfae; }
.gdb-sz-feld > span small { font-weight: 400; color: var(--muted); }
.gdb-sz-paar { display: flex; align-items: center; gap: 8px; }
.gdb-sz-paar i { font-style: normal; font-size: 12.5px; color: var(--muted); }
.gdb-sz-eigen input { width: 100%; min-width: 0; min-height: 40px; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: #0f0d0b; font-size: 15px; font-variant-numeric: tabular-nums; }
.gdb-sz-eigen input:focus { outline: 2px solid rgba(200,121,47,.5); border-color: var(--accent); }
.gdb-sz-eigen input[aria-invalid="true"] { border-color: var(--danger); }
.gdb-sz-tipp { grid-column: 1 / -1; margin: 0; padding: 2px 0 2px 10px; border-left: 2px solid var(--line); font-size: 12.5px; line-height: 1.45; color: var(--muted); max-width: 640px; }
.gdb-sz-tipp b { color: #cdbfae; font-weight: 600; }
.gdb-sz-fehler { grid-column: 1 / -1; margin: 0; font-size: 13px; color: #f0b9b1; }
.gdb-sz-eigen-fuss { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.gdb-sz-wahl-fuss { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-soft); font-size: 13px; color: #bfb3a5; }
.gdb-sz-wahl-fuss b { color: #f1e2cf; font-weight: 600; }
.gdb-sz-link { background: none; border: 0; padding: 0; color: var(--accent-2); font-size: 12.5px; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.gdb-sz-link:hover { color: #fbe6cf; }
.gdb-sz-link--weg { color: #f0b9b1; }

/* Tabelle: Spalte „Mit Waffe“ (letzte Spalte, klebt rechts) und zweite große Zeile in der Karte */
.gdb-st-tab .gdb-sz-sp { --st-c: #e8c670; position: sticky; right: 0; z-index: 1; background: color-mix(in srgb, #c9a45c 9%, var(--panel)); box-shadow: -1px 0 0 #7d6129, -7px 0 8px -6px rgba(0,0,0,.8); }
/* Mit der Zusatzspalte wird es eng: Tabelle bekommt gdb-st-tab--sz und rückt zusammen */
.gdb-st-tab--sz th, .gdb-st-tab--sz td { padding-left: 7px; padding-right: 7px; }
.gdb-st-tab--sz thead th { min-width: 3.4em; }
.gdb-st-tab thead .gdb-sz-sp { background: color-mix(in srgb, #c9a45c 13%, #12100d); color: var(--sz-gold); }
.gdb-st-tab tbody tr:hover > .gdb-sz-sp { background: color-mix(in srgb, #c9a45c 12%, var(--panel-2)); }
.gdb-st-tab tbody tr.aktiv > .gdb-sz-sp { background: #3b2a10; color: #ffeebd; }
.gdb-sz-jetzt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 0; padding: 8px 16px 10px; border-bottom: 1px solid var(--line-soft); background: linear-gradient(90deg, rgba(27,162,155,.11), transparent 70%); }
.gdb-sz-jetzt small { flex: 1 0 100%; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: var(--gem-hell); }
.gdb-sz-jetzt b { font-size: 21px; line-height: 1.15; font-variant-numeric: tabular-nums; color: var(--sz-gold); }
.gdb-sz-jetzt span { font-size: 13px; color: #cdbfae; }
.gdb-sz-jetzt .gdb-sz-link { margin-left: auto; }
.gdb-sz-jetzt--leer span { flex: 1 1 12em; }

.gdb :is(.gdb-sz-basis, .gdb-sz-link, .gdb-sz-modus button):focus-visible { outline: 2px solid var(--accent-2); outline-offset: 1px; }
.gdb .gdb-sz-basis:focus-visible { outline-offset: -2px; }

@media (max-width: 700px) {
  .gdb-sz-basen { max-height: 40vh; }
  .gdb-sz-basen-kopf, .gdb-sz-basis { grid-template-columns: minmax(0, 1fr) 6.6em 3.2em; gap: 0 8px; padding-left: 10px; padding-right: 10px; }
  .gdb-sz-eigen input { font-size: 16px; min-height: 44px; }
  .gdb-sz-link { padding: 8px 0; }
  .gdb-st-tab--sz th, .gdb-st-tab--sz td { padding-left: 6px; padding-right: 6px; }
}
/* Waffenwahl in der schmalen Werte-Karte: Namen brechen um statt mit „…“ zu enden */
.gdb-sz-wahl .gdb-sz-basis b, .gdb-sz-wahl .gdb-sz-basis small { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: break-word; hyphens: auto; }
