/* Gratis-Werkzeuge (static/tools.js) – gleiches Filz-und-Gold-Design wie die Homepage */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin: 18px 0; }
.tool-card { display: block; text-decoration: none; color: var(--ink); transition: border-color .2s, box-shadow .2s, transform .2s; }
.tool-card:hover { border-color: var(--gold); box-shadow: 0 0 22px rgba(212, 175, 55, .35); transform: translateY(-2px); color: var(--ink); }
.tool-card h3 { margin-top: 6px; } .tool-card p { color: var(--ink-dim); margin: 0; }
.tool-ic { font-size: 34px; }
.tool input[type=number] { width: 100%; min-width: 60px; }
.tool table input[type=number], .tool table select { padding: 4px 6px; }

/* Karten */
.tcard { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 30px; height: 42px; margin: 0 2px; border-radius: 5px; background: #fbf8ef; color: #111; font: 700 14px/1 system-ui, sans-serif; box-shadow: 0 2px 5px rgba(0, 0, 0, .45); vertical-align: middle; }
.tcard i { font-style: normal; font-size: 15px; } .tcard.red { color: #c0392b; }
.tcard.big { width: 46px; height: 64px; font-size: 20px; } .tcard.big i { font-size: 22px; }
.tcard.back { background: repeating-linear-gradient(45deg, #8e1b1b, #8e1b1b 4px, #a72a2a 4px, #a72a2a 8px); border: 2px solid #f4efe0; }

/* Blinduhr */
.bc { text-align: center; background: radial-gradient(ellipse at top, #19513f, #08231b 75%); border: 2px solid var(--gold-dim); border-radius: 18px; padding: 22px 16px; margin: 10px 0 14px; }
.bc:fullscreen { display: flex; flex-direction: column; justify-content: center; border-radius: 0; border: 0; padding: 4vh 4vw; }
.bc-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: clamp(16px, 2.4vw, 30px); color: var(--gold); font-weight: 700; }
.bc-next { color: var(--ink-dim); font-weight: 400; }
.bc-blinds { font-size: clamp(44px, 9vw, 150px); font-weight: 800; color: #fff; letter-spacing: 1px; margin: 10px 0 0; font-variant-numeric: tabular-nums; }
.bc-ante { font-size: clamp(16px, 2.6vw, 40px); color: var(--gold); min-height: 1.2em; }
.bc-time { font-size: clamp(64px, 16vw, 260px); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink); margin: 6px 0 10px; }
.bc-time.warn { color: var(--bad); animation: bcBlink 1s steps(2) infinite; }
.bc.paused .bc-time { opacity: .55; }
.bc.brk { background: radial-gradient(ellipse at top, #4a3b14, #1d1606 75%); }
.bc-bar { height: 10px; background: rgba(0, 0, 0, .35); border-radius: 6px; overflow: hidden; max-width: 900px; margin: 0 auto 16px; }
.bc-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-dim), var(--gold)); transition: width .25s linear; }
.bc-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; }
.bc-snd { margin-left: 6px; }
.bc-edit { margin-top: 14px; } .bc-edit summary { cursor: pointer; } .bc-all { align-items: center; margin: 10px 0; } .bc-all input { width: 80px; }
.bc-edit tr.dim td { color: var(--ink-dim); }
@keyframes bcBlink { 50% { opacity: .45; } }

/* Chip-Rechner */
.chip-dot { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 3px dashed rgba(255, 255, 255, .75); vertical-align: middle; margin-right: 6px; box-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.chip-dot.big { width: 26px; height: 26px; }
.ch-list { list-style: none; padding: 0; } .ch-list li { margin: 8px 0; font-size: 18px; }
.ch-total { font-size: 18px; }
.ch-cash { display: flex; flex-wrap: wrap; gap: 10px; } .ch-cash label { display: flex; align-items: center; gap: 6px; } .ch-cash input { width: 90px; }
.ch-cashres { font-size: 18px; margin-top: 10px; }

/* Sitzplatz-Auslosung */
.sd-table { position: relative; aspect-ratio: 16 / 11; margin: 10px 0; }
.sd-felt { position: absolute; inset: 14% 12%; border-radius: 50%; background: radial-gradient(ellipse at center, #1f7a55, #0f4532 75%); border: 8px solid #5a3a1c; box-shadow: inset 0 0 30px rgba(0, 0, 0, .5); }
.sd-seat { position: absolute; transform: translate(-50%, -50%); text-align: center; background: var(--deep); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; min-width: 76px; animation: sdIn .4s both; }
.sd-seat b { display: block; } .sd-no { font-size: 11px; color: var(--ink-dim); }
.sd-seat.dealer { border-color: var(--gold); box-shadow: 0 0 18px rgba(212, 175, 55, .6); }
.sd-card { display: block; margin-top: 4px; animation: sdIn .4s both; }
.sd-btn { position: absolute; top: -10px; right: -10px; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: #111; font-weight: 800; line-height: 26px; box-shadow: 0 2px 6px rgba(0, 0, 0, .5); }
.sd-res { text-align: center; font-size: 18px; }
@keyframes sdIn { from { opacity: 0; transform: translate(-50%, -30%); } }
.sd-card { animation-name: sdCard; } @keyframes sdCard { from { opacity: 0; transform: rotateY(90deg); } }

/* Quiz */
.qz-head { display: flex; justify-content: space-between; color: var(--ink-dim); }
.qz-hands { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 14px 0; flex-wrap: wrap; text-align: center; }
.qz-vs { font-weight: 800; color: var(--gold); }
.qz-board { text-align: center; margin: 6px 0 14px; } .qz-board > div { min-height: 44px; display: flex; justify-content: center; align-items: center; }
.qz-slider { display: flex; align-items: center; gap: 12px; } .qz-slider input { flex: 1; accent-color: var(--gold); } .qz-slider output { font-size: 22px; font-weight: 800; min-width: 70px; text-align: right; }
.qz-out { margin-top: 12px; }
.qz-scale { position: relative; height: 12px; background: linear-gradient(90deg, var(--bad), var(--warn), var(--good)); border-radius: 6px; margin: 16px 0 10px; }
.qz-mark { position: absolute; top: -6px; width: 4px; height: 24px; transform: translateX(-50%); border-radius: 2px; }
.qz-mark.guess { background: #fff; } .qz-mark.real { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.qz-final { text-align: center; } .qz-score { font-size: 64px; font-weight: 800; color: var(--gold); line-height: 1; }
.qz-top { padding-left: 22px; } .qz-top li { margin: 4px 0; color: var(--ink); } .qz-top li.me { color: var(--gold); } .qz-top li span:first-of-type { float: right; font-weight: 700; }

/* Replayer für geteilte Hände */
.hr-table { position: relative; aspect-ratio: 16 / 10; margin: 10px 0; max-width: 900px; margin-left: auto; margin-right: auto; }
.hr-felt { position: absolute; inset: 14% 11%; border-radius: 50%; background: radial-gradient(ellipse at center, #1f7a55, #0f4532 75%); border: 8px solid #5a3a1c; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.hr-pot { font-weight: 700; color: #fff; background: rgba(0, 0, 0, .35); border-radius: 12px; padding: 2px 10px; }
.hr-seat { position: absolute; transform: translate(-50%, -50%); text-align: center; background: var(--deep); border: 1px solid var(--line); border-radius: 10px; padding: 5px 8px; min-width: 84px; font-size: 13px; }
.hr-seat b { display: block; } .hr-seat span { color: var(--ink-dim); font-size: 11.5px; } .hr-seat em { display: block; font-style: normal; color: var(--gold); font-weight: 700; }
.hr-seat.me { border-color: var(--gold-dim); } .hr-seat.act { border-color: var(--gold); box-shadow: 0 0 14px rgba(212, 175, 55, .55); } .hr-seat.fold { opacity: .45; }
.hr-cards { min-height: 42px; }
.hr-text { text-align: center; font-size: 18px; min-height: 2.6em; }
.hr-btns { justify-content: center; align-items: center; }
@media (max-width: 640px) { .hr-seat, .sd-seat { min-width: 64px; padding: 3px 5px; font-size: 11px; } .tcard { width: 24px; height: 34px; font-size: 12px; } .tcard.big { width: 36px; height: 50px; font-size: 16px; } }

.bc-acts { white-space: nowrap; } .bc-acts .btn { margin-left: 2px; }

/* Werkzeug-Karten mit Illustration (lib/tools.php: tools_index), Design-Check 2026-10-30 */
.tool-card { padding: 0 0 16px; overflow: hidden; }
.tool-card h3, .tool-card p { padding: 0 16px; }
.tool-art { position: relative; display: flex; align-items: center; justify-content: center; height: 120px; margin-bottom: 4px;
  background: radial-gradient(ellipse at 50% 30%, #1d5a47, #0a2b22 75%); border-bottom: 1px solid var(--line); }
.tool-art .tool-ic { position: absolute; left: 12px; top: 8px; font-size: 22px; }
.ta-clock { display: flex; flex-direction: column; align-items: center; padding: 8px 18px; border: 2px solid var(--gold-dim); border-radius: 12px; background: rgba(0, 0, 0, .35); }
.ta-clock b { font-size: 34px; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.ta-clock small { color: var(--gold); font-weight: 700; }
.ta-chips { display: flex; gap: 6px; align-items: flex-end; }
.ta-chips i { display: block; width: 44px; height: 44px; border-radius: 50%; border: 5px dashed rgba(255, 255, 255, .85); box-shadow: 0 4px 0 rgba(0, 0, 0, .35), 0 6px 12px rgba(0, 0, 0, .4); }
.ta-chips .c1 { background: #f4efe0; border-color: #1b1b1b; } .ta-chips .c2 { background: #c0392b; margin-bottom: 10px; } .ta-chips .c3 { background: #1e5a8f; } .ta-chips .c4 { background: #1b1b1b; margin-bottom: 6px; }
.ta-table { position: relative; width: 150px; height: 74px; border-radius: 40px; background: radial-gradient(ellipse, #1f7a5a, #0e3b2e); border: 5px solid #5a3a1c; box-shadow: 0 6px 16px rgba(0, 0, 0, .5); }
.ta-table i { position: absolute; width: 16px; height: 16px; border-radius: 50%; background: var(--gold); border: 2px solid #1b1b1b; }
.ta-table i:nth-child(1) { left: 18px; top: -12px; } .ta-table i:nth-child(2) { left: 64px; top: -14px; } .ta-table i:nth-child(3) { right: 18px; top: -12px; }
.ta-table i:nth-child(4) { left: 18px; bottom: -12px; } .ta-table i:nth-child(5) { left: 64px; bottom: -14px; } .ta-table i:nth-child(6) { right: 18px; bottom: -12px; }
.ta-quiz { display: flex; align-items: center; gap: 4px; }
.ta-quiz b { margin-left: 10px; font-size: 30px; color: var(--gold); }
/* Einheitliches Kartendeck (17.11.2026): gleiche Fläche, Rand und Schrift wie Analyzer, Casino und Startseite */
.tcard { background: linear-gradient(180deg, #fffdf8 0%, #f3ede0 100%); border: 1px solid rgba(0, 0, 0, .22); font-family: Georgia, 'Times New Roman', serif; font-weight: 800; color: #1b1b1b; }
.tcard.back { background: repeating-linear-gradient(45deg, #8e1b1b, #8e1b1b 4px, #a72a2a 4px, #a72a2a 8px); border: 2px solid #f4efe0; }
