/* Rechner-Sammlung – Rechner, Ergebnisse, Kacheln (funktioniert auch ohne eigenes Seiten-Design) */
:root {
	--rs-ink: #0f172a;
	--rs-ink-2: #334155;
	--rs-muted: #475569; /* dunkler als #64748b: Kontrast ≥ 4,5:1 auch auf getönten Flächen */
	--rs-line: #e2e8f0;
	--rs-bg: #f5f6fb;
	--rs-brand: #4f46e5;
	--rs-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--rs-c: #4f46e5;
}
.rs-calc, .rs-card, .rs-grid, .rs-chip, .rs-pill, .rs-ico, .rs-az, .rs-next-link, .rs-cat-card {
	--rs-c-soft: color-mix(in srgb, var(--rs-c) 7%, #fff);
	--rs-c-mid: color-mix(in srgb, var(--rs-c) 16%, #fff);
	--rs-c-dark: color-mix(in srgb, var(--rs-c) 75%, #000);
}
.rs-calc, .rs-calc *, .rs-calc *::before, .rs-calc *::after { box-sizing: border-box; }
.rs-calc { font-family: var(--rs-font); color: var(--rs-ink); margin: 0 0 1.5em; scroll-margin-top: 140px; }
.rs-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Ladezustand */
.rs-skeleton { display: grid; gap: 14px; padding: 28px; border-radius: 24px; background: #fff; border: 1px solid var(--rs-line); min-height: 420px; }
.rs-skeleton span { display: block; height: 50px; border-radius: 12px; background: linear-gradient(90deg, #f1f5f9 25%, #e8edf3 50%, #f1f5f9 75%); background-size: 200% 100%; animation: rsShimmer 1.3s infinite linear; }
.rs-skeleton span:nth-child(1) { width: 40%; height: 18px; }
@keyframes rsShimmer { to { background-position: -200% 0; } }
.rs-noscript { padding: 16px; background: #fff7ed; border-radius: 12px; }

/* Karte */
.rs-card-calc { background: #fff; border: 1px solid var(--rs-line); border-radius: 24px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 18px 48px -24px rgba(15, 23, 42, .22); overflow: hidden; overflow: clip; }
.rs-calc-top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--rs-line); flex-wrap: wrap; background: linear-gradient(180deg, #fff, #fafbfe); }
.rs-calc-heading { margin: 0 8px; font-weight: 700; color: var(--rs-ink-2); }
.rs-tabs { display: flex; gap: 4px; flex-wrap: wrap; background: #f1f5f9; padding: 4px; border-radius: 14px; }
.rs-tab { border: 0; background: transparent; padding: 9px 14px; border-radius: 10px; font: inherit; font-weight: 650; font-size: .93rem; color: var(--rs-ink-2); cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; }
.rs-tab:hover { color: var(--rs-ink); background: rgba(255, 255, 255, .6); }
.rs-tab[aria-selected="true"] { background: #fff; color: var(--rs-c-dark); box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.rs-tools { display: flex; gap: 2px; margin-left: auto; }
.rs-tool { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--rs-muted); padding: 8px 10px; border-radius: 10px; font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer; }
.rs-tool:hover { background: #f1f5f9; color: var(--rs-ink); }
.rs-svg { display: inline-flex; }
.rs-calc-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.rs-calc-body.rs-stack { grid-template-columns: 1fr; }
@media (min-width: 961px) {
	.rs-calc-body:not(.rs-stack) .rs-form { position: sticky; top: 130px; align-self: start; }
	.rs-calc-body .rs-form.rs-nosticky { position: static; }
}
.rs-form { padding: 26px 28px 30px; min-width: 0; }
.rs-result { padding: 26px 28px 30px; background: var(--rs-c-soft); border-left: 1px solid var(--rs-c-mid); min-width: 0; }
.rs-stack .rs-result { border-left: 0; border-top: 1px solid var(--rs-c-mid); }

/* Felder */
.rs-fields { display: grid; gap: 20px; }
.rs-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; align-items: start; }
.rs-label { display: block; font-weight: 650; font-size: .93rem; margin: 0 0 7px; color: var(--rs-ink); }
.rs-label small { font-weight: 500; color: var(--rs-muted); }
.rs-input { display: block; width: 100%; height: 50px; border: 1.5px solid #cbd5e1; border-radius: 12px; padding: 0 14px; font: inherit; font-size: 1.05rem; background: #fff; color: var(--rs-ink); transition: border-color .15s, box-shadow .15s; margin: 0; }
.rs-input:hover { border-color: #94a3b8; }
.rs-input:focus { outline: none; border-color: var(--rs-c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--rs-c) 18%, transparent); }
.rs-num { font-variant-numeric: tabular-nums; font-weight: 650; }
.rs-input-wrap { position: relative; }
.rs-input-wrap.has-unit .rs-input { padding-right: 76px; }
.rs-unit { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); color: var(--rs-ink-2); font-weight: 650; font-size: .82rem; pointer-events: none; background: #f1f5f9; padding: 4px 9px; border-radius: 8px; max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-select { appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.rs-area { height: auto; padding: 12px 14px; line-height: 1.5; resize: vertical; min-height: 120px; }
.rs-input[type="date"], .rs-input[type="time"] { font-variant-numeric: tabular-nums; font-weight: 600; }
.rs-seg { display: flex; flex-wrap: wrap; gap: 4px; background: #f1f5f9; padding: 4px; border-radius: 14px; }
.rs-seg-btn { flex: 1 1 auto; border: 0; background: transparent; padding: 9px 12px; min-height: 42px; border-radius: 10px; font: inherit; font-weight: 650; font-size: .93rem; color: var(--rs-ink-2); cursor: pointer; transition: background .15s, color .15s; }
.rs-seg-btn:hover { background: rgba(255, 255, 255, .7); color: var(--rs-ink); }
.rs-seg-btn[aria-checked="true"] { background: var(--rs-c); color: #fff; box-shadow: 0 4px 12px -4px color-mix(in srgb, var(--rs-c) 70%, transparent); }
.rs-seg-btn:focus-visible, .rs-tab:focus-visible, .rs-tool:focus-visible, .rs-quick-btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--rs-c) 45%, transparent); outline-offset: 2px; }
.rs-range { width: 100%; margin: 12px 0 0; accent-color: var(--rs-c); cursor: pointer; }
.rs-help { font-size: .84rem; color: var(--rs-muted); margin: 7px 0 0; line-height: 1.45; }
.rs-err { color: #dc2626; font-size: .84rem; font-weight: 600; margin: 6px 0 0; }
.rs-err:empty { display: none; }
.is-invalid .rs-input { border-color: #dc2626; background: #fef2f2; }
.rs-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.rs-quick-btn { border: 1px solid var(--rs-line); background: #fff; border-radius: 999px; padding: 5px 11px; font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; color: var(--rs-ink-2); transition: border-color .15s, color .15s, background .15s; }
.rs-quick-btn:hover { border-color: var(--rs-c); color: var(--rs-c-dark); background: var(--rs-c-soft); }
.rs-switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; font-size: .95rem; user-select: none; }
.rs-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rs-switch-ui { flex: none; width: 46px; height: 26px; border-radius: 99px; background: #cbd5e1; position: relative; transition: background .2s; }
.rs-switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.rs-switch input:checked + .rs-switch-ui { background: var(--rs-c); }
.rs-switch input:checked + .rs-switch-ui::after { transform: translateX(20px); }
.rs-switch input:focus-visible + .rs-switch-ui { outline: 3px solid color-mix(in srgb, var(--rs-c) 45%, transparent); outline-offset: 2px; }
.rs-info { font-size: .9rem; color: var(--rs-ink-2); background: #f8fafc; border-radius: 12px; padding: 12px 14px; line-height: 1.5; }
.rs-intro, .rs-hint { font-size: .88rem; color: var(--rs-muted); margin: 0 0 16px; line-height: 1.5; }
.rs-hint { margin: 16px 0 0; }
.rs-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 14px; font: inherit; font-weight: 750; cursor: pointer; transition: transform .1s, box-shadow .15s, filter .15s; }
.rs-btn-main { margin-top: 22px; width: 100%; min-height: 54px; background: var(--rs-c); color: #fff; font-size: 1.05rem; box-shadow: 0 10px 24px -10px var(--rs-c); }
.rs-btn-main:hover { filter: brightness(1.07); }
.rs-again { width: 100%; min-height: 48px; margin-top: 10px; background: var(--rs-c); color: #fff; font-size: 1rem; box-shadow: 0 8px 20px -10px var(--rs-c); }
.rs-again:hover { filter: brightness(1.07); }
.rs-again:active { transform: scale(.985); }
.rs-btn-main:active { transform: scale(.985); }
.rs-btn-ico { font-size: 1.3em; line-height: 1; }

/* Wiederholbare Zeilen */
.rs-rep { display: grid; gap: 8px; }
.rs-rep-row { display: grid; gap: 8px; align-items: center; }
.rs-rep-head span { font-size: .78rem; font-weight: 700; color: var(--rs-muted); text-transform: uppercase; letter-spacing: .04em; }
.rs-rep-lab { font-weight: 700; font-size: .9rem; color: var(--rs-ink-2); }
.rs-input-sm { height: 42px; font-size: .98rem; padding: 0 10px; border-radius: 10px; }
.rs-rep .has-unit .rs-input { padding-right: 46px; }
.rs-rep .rs-unit { font-size: .74rem; padding: 3px 6px; }
.rs-rep-del { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--rs-line); background: #fff; color: var(--rs-muted); font-size: 1.2rem; cursor: pointer; justify-self: end; }
.rs-rep-del:hover { color: #dc2626; border-color: #fecaca; background: #fef2f2; }
.rs-rep-add { justify-self: start; margin-top: 4px; border: 1.5px dashed #cbd5e1; background: transparent; border-radius: 10px; padding: 8px 14px; font: inherit; font-weight: 650; font-size: .9rem; color: var(--rs-c-dark); cursor: pointer; }
.rs-rep-add:hover { border-color: var(--rs-c); background: #fff; }

/* Ergebnis */
.rs-empty { display: grid; place-items: center; align-content: center; gap: 14px; text-align: center; min-height: 260px; color: var(--rs-muted); padding: 10px; }
.rs-empty p { margin: 0; max-width: 34ch; line-height: 1.5; }
.rs-empty-ico { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; background: #fff; color: var(--rs-c); font-weight: 800; font-size: 1.6rem; box-shadow: 0 8px 24px -12px color-mix(in srgb, var(--rs-c) 60%, transparent); }
.rs-main { position: relative; background: #fff; border-radius: 18px; padding: 18px 20px 18px 24px; border: 1px solid var(--rs-c-mid); box-shadow: 0 14px 34px -18px color-mix(in srgb, var(--rs-c) 55%, transparent); overflow: hidden; }
.rs-main::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: linear-gradient(180deg, var(--rs-c), color-mix(in srgb, var(--rs-c) 55%, #fff)); }
.rs-main.tone-good::before { background: #16a34a; }
.rs-main.tone-warn::before { background: #f59e0b; }
.rs-main.tone-bad::before { background: #dc2626; }
.rs-main-label { margin: 0 0 4px; font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 800; color: var(--rs-c-dark); }
.rs-main-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rs-main-val { display: block; font-size: clamp(1.9rem, 1.3rem + 1.9vw, 2.75rem); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; color: var(--rs-ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.rs-main-val small { font-size: .5em; font-weight: 700; color: var(--rs-muted); letter-spacing: 0; }
.rs-copy { flex: none; border: 1px solid var(--rs-line); background: #fff; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--rs-muted); cursor: pointer; transition: color .15s, border-color .15s; }
.rs-copy:hover { color: var(--rs-c-dark); border-color: var(--rs-c); }
.rs-main-sub { margin: 8px 0 0; color: var(--rs-ink-2); font-size: .95rem; line-height: 1.5; }
.rs-badge { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: .82rem; font-weight: 750; background: var(--rs-c-mid); color: var(--rs-c-dark); }
.rs-badge.good { background: #dcfce7; color: #166534; }
.rs-badge.warn { background: #fef3c7; color: #92400e; }
.rs-badge.bad { background: #fee2e2; color: #991b1b; }
.rs-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; }
.rs-item { background: #fff; border-radius: 14px; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--rs-c) 10%, #e2e8f0); min-width: 0; }
.rs-item.rs-wide { grid-column: 1 / -1; }
.rs-item-l { display: block; font-size: .79rem; color: var(--rs-muted); font-weight: 650; }
.rs-item-v { display: block; font-size: 1.16rem; font-weight: 750; color: var(--rs-ink); font-variant-numeric: tabular-nums; margin-top: 3px; overflow-wrap: anywhere; }
.rs-item small { display: block; color: var(--rs-muted); font-size: .78rem; margin-top: 3px; line-height: 1.35; }
.rs-item.tone-good .rs-item-v { color: #15803d; }
.rs-item.tone-bad .rs-item-v { color: #b91c1c; }
.rs-item.tone-hl { background: var(--rs-c); border-color: var(--rs-c); }
.rs-item.tone-hl .rs-item-l, .rs-item.tone-hl small { color: rgba(255, 255, 255, .85); }
.rs-item.tone-hl .rs-item-v { color: #fff; }
.rs-alert { margin-top: 12px; background: #fff; border-radius: 12px; padding: 12px 14px; font-size: .9rem; line-height: 1.5; border-left: 4px solid var(--rs-c); color: var(--rs-ink-2); }
.rs-alert-warn { border-left-color: #f59e0b; background: #fffbeb; color: #78350f; }
.rs-alert a { color: var(--rs-c-dark); }

/* Diagramme */
.rs-chart { margin: 12px 0 0; background: #fff; border-radius: 16px; padding: 16px; border: 1px solid color-mix(in srgb, var(--rs-c) 10%, #e2e8f0); }
.rs-chart figcaption { font-weight: 750; font-size: .9rem; margin: 0 0 12px; color: var(--rs-ink); }
.rs-donut { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.rs-donut-svg { width: 140px; height: 140px; flex: none; }
.rs-donut-c { font: 800 17px var(--rs-font); fill: var(--rs-ink); }
.rs-donut-s { font: 600 10.5px var(--rs-font); fill: var(--rs-muted); }
.rs-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; flex: 1 1 180px; font-size: .88rem; }
.rs-legend li { display: flex; align-items: center; gap: 8px; }
.rs-legend li span:nth-child(2) { flex: 1; color: var(--rs-ink-2); }
.rs-legend b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.rs-legend small { color: var(--rs-muted); font-weight: 500; }
.rs-legend-row { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; }
.rs-legend-row li span:nth-child(2) { flex: none; }
.rs-sw { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.rs-bars { display: grid; gap: 7px; }
.rs-bar { display: grid; grid-template-columns: minmax(70px, 34%) 1fr auto; gap: 10px; align-items: center; font-size: .86rem; }
.rs-bar-l { color: var(--rs-ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-bar-t { height: 12px; background: #f1f5f9; border-radius: 99px; overflow: hidden; }
.rs-bar-f { display: block; height: 100%; background: var(--rs-c); border-radius: 99px; transition: width .45s cubic-bezier(.2, .8, .2, 1); }
.rs-bar-v { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rs-bar.is-hl .rs-bar-l, .rs-bar.is-hl .rs-bar-v { color: var(--rs-c-dark); font-weight: 800; }
.rs-scale { padding: 34px 2px 2px; }
.rs-scale-track { position: relative; display: flex; height: 30px; border-radius: 10px; }
.rs-zone { height: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.rs-zone:first-child { border-radius: 10px 0 0 10px; }
.rs-zone:last-child { border-radius: 0 10px 10px 0; }
.rs-zone em { font-style: normal; font-size: .7rem; font-weight: 750; color: rgba(255, 255, 255, .95); white-space: nowrap; padding: 0 4px; overflow: hidden; text-overflow: ellipsis; }
.rs-marker { position: absolute; top: -6px; bottom: -6px; width: 4px; margin-left: -2px; background: var(--rs-ink); border-radius: 3px; box-shadow: 0 0 0 2px #fff; transition: left .45s cubic-bezier(.2, .8, .2, 1); }
.rs-marker b { position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); background: var(--rs-ink); color: #fff; font-size: .78rem; padding: 3px 8px; border-radius: 8px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rs-scale-ticks { position: relative; height: 20px; margin-top: 6px; }
.rs-tick { position: absolute; transform: translateX(-50%); font-size: .72rem; color: var(--rs-muted); font-variant-numeric: tabular-nums; }
.rs-line-svg { width: 100%; height: auto; display: block; }
.rs-grid-l { stroke: #eef0f4; stroke-width: 1; }
.rs-ax { font: 500 12px var(--rs-font); fill: var(--rs-muted); }

/* Rechenweg, Tabellen */
.rs-details { margin-top: 12px; background: #fff; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--rs-c) 10%, #e2e8f0); }
.rs-details > summary { padding: 13px 16px; font-weight: 750; font-size: .95rem; cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-radius: 14px; }
.rs-details > summary::-webkit-details-marker { display: none; }
.rs-details > summary::after { content: "+"; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--rs-c-soft); color: var(--rs-c-dark); font-weight: 800; flex: none; }
.rs-details[open] > summary::after { content: "–"; }
.rs-details > summary:hover { background: #fafbfd; }
.rs-details-body { padding: 0 16px 16px; }
.rs-steps { margin: 0; padding-left: 1.4em; display: grid; gap: 9px; font-size: .93rem; line-height: 1.55; color: var(--rs-ink-2); }
.rs-steps li::marker { color: var(--rs-c); font-weight: 800; }
.rs-steps code, .rs-f { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .92em; background: #f1f5f9; padding: 1px 6px; border-radius: 6px; color: var(--rs-ink); }
.rs-table-wrap { overflow: auto; max-height: 440px; border-radius: 10px; border: 1px solid var(--rs-line); }
.rs-table { width: 100%; border-collapse: collapse; font-size: .88rem; font-variant-numeric: tabular-nums; }
.rs-table th { position: sticky; top: 0; background: #f8fafc; text-align: left; font-weight: 750; color: var(--rs-ink-2); padding: 9px 11px; border-bottom: 1px solid var(--rs-line); white-space: nowrap; }
.rs-table td { padding: 8px 11px; border-bottom: 1px solid #f1f5f9; }
.rs-table tbody tr:hover td { background: #fafbfd; }
.rs-table tr.is-hl td { background: var(--rs-c-soft); font-weight: 750; color: var(--rs-c-dark); }
.rs-table tfoot td { font-weight: 800; background: #f8fafc; border-top: 2px solid var(--rs-line); }
.rs-table-note { font-size: .8rem; color: var(--rs-muted); margin: 8px 0 0; }

/* Weiterrechnen */
.rs-next { margin-top: 18px; }
.rs-next-title { margin: 0 0 8px; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; color: var(--rs-muted); }
.rs-next-links { display: flex; flex-wrap: wrap; gap: 8px; }
.rs-next-link { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--rs-line); padding: 5px 13px 5px 5px; border-radius: 999px; font-weight: 650; font-size: .87rem; color: var(--rs-ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.rs-next-link:hover { border-color: var(--rs-c); transform: translateY(-1px); color: var(--rs-c-dark); }

.rs-flash .rs-main-val, .rs-flash .rs-item-v { animation: rsPop .32s ease; }
@keyframes rsPop { from { opacity: .35; transform: translateY(3px); } to { opacity: 1; transform: none; } }

/* Zusatz-Bausteine (Countdown, Generatoren) */
.rs-btn-ghost { margin-top: 12px; min-height: 42px; padding: 0 16px; background: #fff; color: var(--rs-c-dark); border: 1.5px solid var(--rs-c-mid); font-size: .92rem; }
.rs-btn-ghost:hover { border-color: var(--rs-c); }
.rs-cd { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.rs-cd div { background: var(--rs-ink); color: #fff; border-radius: 14px; padding: 12px 6px; text-align: center; }
.rs-cd b { display: block; font-size: clamp(1.4rem, 1rem + 1.5vw, 2rem); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.rs-cd span { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; opacity: .75; }
.rs-live { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-top: 12px; background: var(--rs-ink); color: #cbd5e1; border-radius: 14px; padding: 12px 16px; font-size: .9rem; }
.rs-live b { color: #fff; font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.rs-tips { display: grid; gap: 10px; margin-top: 12px; }
.rs-tip { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; background: #fff; border-radius: 14px; padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--rs-c) 10%, #e2e8f0); }
.rs-tip-nr { font-size: .75rem; font-weight: 800; color: var(--rs-muted); text-transform: uppercase; }
.rs-balls { display: flex; flex-wrap: wrap; gap: 6px; }
.rs-ball { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1rem; color: var(--rs-ink); background: radial-gradient(circle at 32% 28%, #fff, #fde68a 60%, #f59e0b); box-shadow: inset 0 -3px 6px rgba(0, 0, 0, .12), 0 2px 4px rgba(0, 0, 0, .12); font-variant-numeric: tabular-nums; animation: rsBall .4s cubic-bezier(.2, .9, .3, 1.3); }
.rs-ball-x { background: radial-gradient(circle at 32% 28%, #a5b4fc, #6366f1 50%, #3730a3); color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); margin-left: 6px; }
.rs-ball-x + .rs-ball-x { margin-left: 0; }
@keyframes rsBall { from { transform: scale(.3) rotate(-90deg); opacity: 0; } to { transform: none; opacity: 1; } }
.rs-numgrid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.rs-numgrid span { min-width: 54px; padding: 10px 12px; text-align: center; background: #fff; border-radius: 12px; font-weight: 800; font-size: 1.15rem; font-variant-numeric: tabular-nums; border: 1px solid color-mix(in srgb, var(--rs-c) 12%, #e2e8f0); }
.rs-dice { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; padding: 22px 8px 10px; }
.rs-die { width: 76px; height: 76px; border-radius: 18px; background: linear-gradient(145deg, #fff, #eef2f7); box-shadow: 0 10px 24px -10px rgba(15, 23, 42, .45), inset 0 -4px 0 rgba(15, 23, 42, .06); border: 1px solid #e2e8f0; position: relative; transition: opacity .2s; }
.rs-d6 { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); padding: 12px; gap: 2px; }
.rs-d6 i { display: block; width: 13px; height: 13px; border-radius: 50%; margin: auto; }
.rs-d6 i.on { background: radial-gradient(circle at 35% 35%, #475569, #0f172a); }
.rs-dn { display: grid; place-items: center; align-content: center; background: linear-gradient(145deg, color-mix(in srgb, var(--rs-c) 85%, #fff), var(--rs-c)); color: #fff; border: 0; }
.rs-dn b { font-size: 1.9rem; line-height: 1; font-weight: 900; }
.rs-dn small { font-size: .65rem; font-weight: 700; opacity: .8; }
.rs-die.is-dropped { opacity: .35; }
.rs-die-ready { opacity: .45; }
.rs-dice.is-rolling .rs-die { animation: rsRoll .6s cubic-bezier(.3, .7, .4, 1.2); }
.rs-dice.is-rolling .rs-die:nth-child(2n) { animation-duration: .7s; }
@keyframes rsRoll { 0% { transform: translateY(-30px) rotate(-200deg) scale(.7); } 60% { transform: translateY(4px) rotate(15deg) scale(1.05); } 100% { transform: none; } }
.rs-coin-wrap { perspective: 800px; display: grid; place-items: center; padding: 20px 0 6px; }
.rs-coin { width: 130px; height: 130px; position: relative; transform-style: preserve-3d; transition: transform .1s; }
.rs-coin.is-zahl { transform: rotateY(180deg); }
.rs-coin span { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 1.3rem; letter-spacing: .04em; backface-visibility: hidden; color: #78350f; background: radial-gradient(circle at 35% 30%, #fef3c7, #fbbf24 55%, #b45309); box-shadow: inset 0 0 0 6px rgba(255, 255, 255, .35), inset 0 0 0 10px rgba(180, 83, 9, .35), 0 14px 30px -12px rgba(120, 53, 15, .6); }
.rs-coin .rs-coin-z { transform: rotateY(180deg); background: radial-gradient(circle at 35% 30%, #f1f5f9, #cbd5e1 55%, #64748b); color: #1e293b; box-shadow: inset 0 0 0 6px rgba(255, 255, 255, .4), inset 0 0 0 10px rgba(71, 85, 105, .35), 0 14px 30px -12px rgba(30, 41, 59, .6); }
.rs-coin-wrap.is-flipping .rs-coin { animation: rsFlipK 1s cubic-bezier(.25, .8, .3, 1); }
.rs-coin-wrap.is-flipping .rs-coin.is-zahl { animation-name: rsFlipZ; }
@keyframes rsFlipK { 0% { transform: translateY(0) rotateY(0); } 45% { transform: translateY(-60px) rotateY(1080deg); } 100% { transform: translateY(0) rotateY(1800deg); } }
@keyframes rsFlipZ { 0% { transform: translateY(0) rotateY(0); } 45% { transform: translateY(-60px) rotateY(1080deg); } 100% { transform: translateY(0) rotateY(1980deg); } }
.rs-flips { text-align: center; font-weight: 800; letter-spacing: .1em; color: var(--rs-ink-2); margin: 6px 0 0; }
.rs-wheel { position: relative; width: min(100%, 420px); aspect-ratio: 1; margin: 14px auto 4px; }
.rs-wheel-rot { width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 0 0 6px #fff, 0 0 0 8px color-mix(in srgb, var(--rs-c) 30%, #e2e8f0), 0 24px 50px -20px rgba(15, 23, 42, .5); will-change: transform; }
.rs-wheel-rot svg { width: 100%; height: 100%; display: block; }
.rs-wheel-rot text { fill: #fff; font-family: var(--rs-font); font-weight: 800; paint-order: stroke; stroke: rgba(0, 0, 0, .18); stroke-width: .6px; }
.rs-wheel-pointer { position: absolute; left: 50%; top: -14px; transform: translateX(-50%); width: 0; height: 0; border-left: 16px solid transparent; border-right: 16px solid transparent; border-top: 30px solid var(--rs-ink); z-index: 2; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .3)); }
.rs-wheel-hub { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 22%; aspect-ratio: 1; border-radius: 50%; border: 5px solid #fff; background: var(--rs-ink); color: #fff; font: 900 clamp(.7rem, 2.4vw, .95rem) var(--rs-font); letter-spacing: .06em; cursor: pointer; box-shadow: 0 6px 16px rgba(0, 0, 0, .3); z-index: 2; }
.rs-wheel-hub:hover { background: var(--rs-c); }

/* Symbole */
.rs-ico { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--rs-c-mid); color: var(--rs-c-dark); font-weight: 800; font-size: 1.3rem; line-height: 1; flex: none; letter-spacing: -.02em; font-family: var(--rs-font); font-style: normal; }
.rs-ico-l2 { font-size: 1.05rem; }
.rs-ico-l3 { font-size: .86rem; }
.rs-ico-l4 { font-size: .72rem; }
.rs-ico-sm { width: 30px; height: 30px; border-radius: 9px; font-size: .95rem; }
.rs-ico-sm.rs-ico-l2 { font-size: .78rem; }
.rs-ico-sm.rs-ico-l3 { font-size: .64rem; }
.rs-ico-sm.rs-ico-l4 { font-size: .54rem; }
.rs-ico-lg { width: 56px; height: 56px; border-radius: 17px; font-size: 1.55rem; }
.rs-ico-lg.rs-ico-l2 { font-size: 1.2rem; }
.rs-ico-lg.rs-ico-l3 { font-size: 1rem; }
.rs-ico-xl { width: 76px; height: 76px; border-radius: 22px; font-size: 2.1rem; color: #fff; background: linear-gradient(135deg, var(--rs-c), color-mix(in srgb, var(--rs-c) 60%, #fff)); box-shadow: 0 16px 34px -14px var(--rs-c); }
.rs-ico-xl.rs-ico-l2 { font-size: 1.6rem; }
.rs-ico-xl.rs-ico-l3 { font-size: 1.3rem; }
.rs-ico-xl.rs-ico-l4 { font-size: 1.05rem; }

/* Kacheln */
.rs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; margin: 0 0 1.5em; font-family: var(--rs-font); }
.rs-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px 40px 18px 18px; background: #fff; border: 1px solid var(--rs-line); border-radius: 18px; text-decoration: none !important; color: var(--rs-ink); position: relative; transition: transform .18s, box-shadow .18s, border-color .18s; }
.rs-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--rs-c) 45%, #fff); box-shadow: 0 18px 36px -20px color-mix(in srgb, var(--rs-c) 65%, transparent); }
.rs-card-body { display: grid; gap: 4px; min-width: 0; }
.rs-card-title { font-weight: 750; font-size: 1.02rem; line-height: 1.3; color: var(--rs-ink); }
.rs-card-desc { font-size: .87rem; line-height: 1.45; color: var(--rs-muted); }
.rs-card-arrow { position: absolute; right: 16px; top: 50%; transform: translate(-4px, -50%); opacity: 0; color: var(--rs-c); font-weight: 800; transition: opacity .18s, transform .18s; }
.rs-card:hover .rs-card-arrow { opacity: 1; transform: translate(0, -50%); }
.rs-card-mini { padding: 12px 36px 12px 12px; align-items: center; }
.rs-card-mini .rs-ico { width: 38px; height: 38px; border-radius: 11px; }
.rs-card-variant { background: linear-gradient(180deg, #fff, var(--rs-c-soft)); }
.rs-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rs-chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; border-radius: 999px; background: #fff; border: 1px solid var(--rs-line); font-weight: 650; font-size: .9rem; text-decoration: none !important; color: var(--rs-ink); transition: border-color .15s; }
.rs-chip:hover { border-color: var(--rs-c); color: var(--rs-c-dark); }
.rs-more-cats { margin-top: 28px; }
.rs-more-title { font-weight: 800; margin: 0 0 12px; }

/* A–Z */
.rs-az { columns: 260px 4; column-gap: 32px; }
.rs-az-group { break-inside: avoid; margin: 0 0 22px; }
.rs-az-group h2 { font-size: 1.3rem !important; margin: 0 0 8px !important; color: var(--rs-brand); }
.rs-az-group ul { list-style: none; margin: 0; padding: 0; }
.rs-az-group li { margin: 0 0 5px; }
.rs-az-group a { color: var(--rs-ink); text-decoration: none; border-left: 3px solid var(--rs-c); padding-left: 9px; }
.rs-az-group a:hover { color: var(--rs-c-dark); }

/* Hinweis-Toast */
.rs-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--rs-ink); color: #fff; padding: 12px 18px; border-radius: 12px; font: 600 .93rem var(--rs-font); box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .45); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 9999; }
.rs-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.rs-peek { display: none; }
@media (max-width: 960px) {
	.rs-peek { --rs-c-dark: color-mix(in srgb, var(--rs-c) 75%, #000); position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border: 0; border-radius: 16px; background: var(--rs-ink); color: #fff; font: 600 .9rem var(--rs-font); box-shadow: 0 16px 40px -10px rgba(15, 23, 42, .55); cursor: pointer; text-align: left; animation: rsPeek .25s ease; }
	.rs-peek[hidden] { display: none; }
	.rs-peek-l { color: #cbd5e1; font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
	.rs-peek-v { flex: 1; font-size: 1.1rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
	.rs-peek-a { flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--rs-c); }
	.rs-tip { grid-template-columns: 1fr auto; }
	.rs-tip .rs-balls { grid-column: 1 / -1; order: 3; }
	.rs-ball { width: 34px; height: 34px; font-size: .95rem; }
}
@keyframes rsPeek { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 960px) {
	.rs-calc-body { grid-template-columns: 1fr; }
	.rs-result { border-left: 0; border-top: 1px solid var(--rs-c-mid); }
}
@media (max-width: 640px) {
	.rs-form, .rs-result { padding: 20px 16px 24px; }
	.rs-calc-top { padding: 10px; }
	.rs-tool span:not(.rs-svg) { display: none; }
	.rs-tabs { width: 100%; }
	.rs-tab { flex: 1 1 auto; padding: 9px 10px; }
	.rs-card-calc { border-radius: 18px; }
	.rs-input { font-size: 16px; }
	.rs-donut { justify-content: center; }
	.rs-empty { min-height: 160px; }
}
@media (prefers-reduced-motion: reduce) {
	.rs-calc *, .rs-card { animation: none !important; transition: none !important; }
}
@media print {
	.rs-tools, .rs-next, .rs-quick, .rs-range, .rs-copy, .rs-btn-main { display: none !important; }
	.rs-card-calc { box-shadow: none; border-color: #999; }
	.rs-calc-body { grid-template-columns: 1fr 1fr; }
	.rs-details { break-inside: avoid; }
	.rs-details:not([open]) > .rs-details-body { display: block; }
}

/* Schlafzyklus: Zeit-Kacheln */
.rs-sleep { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 14px 0; }
.rs-sleep-opt { border: 1px solid var(--rs-line); border-radius: 16px; padding: 12px 14px; background: #fff; display: flex; flex-direction: column; gap: 2px; }
.rs-sleep-opt b { font-size: 1.45rem; font-weight: 800; color: var(--rs-ink); font-variant-numeric: tabular-nums; }
.rs-sleep-opt span { font-size: .84rem; color: var(--rs-muted); }
.rs-sleep-opt em { font-style: normal; font-size: .74rem; font-weight: 750; color: var(--rs-c-dark); margin-top: 4px; }
.rs-sleep-opt.is-ok { border-color: color-mix(in srgb, var(--rs-c) 35%, #fff); }
.rs-sleep-opt.is-best { background: var(--rs-c-soft); border: 2px solid var(--rs-c); }
/* Text & Generatoren */
.rs-fontlist { display: grid; gap: 8px; margin-top: 12px; }
.rs-font { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; background: #fff; border: 1px solid var(--rs-line); border-radius: 14px; padding: 10px 12px 10px 14px; }
.rs-font-l { grid-column: 1; font-size: .74rem; font-weight: 750; color: var(--rs-muted); text-transform: uppercase; letter-spacing: .05em; }
.rs-font-t { grid-column: 1; font-size: 1.25rem; line-height: 1.45; color: var(--rs-ink); overflow-wrap: anywhere; user-select: all; }
.rs-font-c { grid-column: 2; grid-row: 1 / span 2; border: 1.5px solid var(--rs-c-mid, #e2e8f0); background: var(--rs-c-soft); color: var(--rs-c-dark); font: inherit; font-weight: 750; font-size: .86rem; border-radius: 11px; padding: 8px 12px; cursor: pointer; }
.rs-font-c:hover { border-color: var(--rs-c); }
.rs-namegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin-top: 12px; }
.rs-name { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; background: #fff; border: 1px solid var(--rs-line); border-radius: 14px; padding: 10px 12px; font: inherit; color: var(--rs-ink); cursor: pointer; transition: border-color .15s, transform .1s; }
div.rs-name { cursor: default; }
button.rs-name:hover { border-color: var(--rs-c); }
button.rs-name:active { transform: scale(.98); }
.rs-name b { font-size: 1.02rem; overflow-wrap: anywhere; }
.rs-name small { font-size: .78rem; color: var(--rs-muted); }
.rs-morse { margin-top: 12px; background: #fff; border: 1px solid var(--rs-line); border-radius: 16px; padding: 14px; }
.rs-morse-code { font: 700 1.35rem/1.6 ui-monospace, Consolas, monospace; letter-spacing: .08em; overflow-wrap: anywhere; color: var(--rs-ink); }
.rs-morse-code b { color: var(--rs-c); }
.rs-morse-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.rs-morse-ctl .rs-btn { min-height: 42px; padding: 0 16px; background: var(--rs-c); color: #fff; }
.rs-morse-ctl .rs-btn-ghost { margin-top: 0; background: #fff; color: var(--rs-c-dark); }
.rs-morse-lamp { width: 26px; height: 26px; border-radius: 50%; background: #e2e8f0; box-shadow: inset 0 2px 4px rgba(0, 0, 0, .15); transition: background .03s; }
.rs-morse-lamp.on { background: #facc15; box-shadow: 0 0 18px 4px rgba(250, 204, 21, .75); }
.rs-morse-info { font-size: .82rem; color: var(--rs-muted); }
.rs-lorem { margin-top: 12px; background: #fff; border: 1px solid var(--rs-line); border-radius: 16px; padding: 14px 16px; max-height: 420px; overflow: auto; font-size: .95rem; line-height: 1.65; color: #334155; }
.rs-lorem p { margin: 0 0 .9em; }
.rs-lorem pre { margin: 0; white-space: pre-wrap; font-size: .85rem; }
.rs-teams { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-top: 12px; }
.rs-team { background: #fff; border: 1px solid var(--rs-line); border-top: 5px solid var(--tc); border-radius: 14px; padding: 10px 14px; }
.rs-team-h { margin: 0 0 6px; font-weight: 800; color: var(--tc); display: flex; justify-content: space-between; }
.rs-team-h small { color: var(--rs-muted); font-weight: 700; }
.rs-team ol { margin: 0; padding-left: 20px; line-height: 1.7; }
.rs-wichtel { display: grid; gap: 8px; margin-top: 12px; }
.rs-wichtel-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--rs-line); border-radius: 14px; padding: 8px 10px 8px 14px; }
.rs-wichtel-btn { border: 1.5px solid var(--rs-c-mid, #e2e8f0); background: var(--rs-c-soft); color: var(--rs-c-dark); font: inherit; font-weight: 750; font-size: .88rem; border-radius: 11px; padding: 7px 12px; cursor: pointer; }
.rs-wichtel-btn.is-open { background: var(--rs-c); color: #fff; border-color: var(--rs-c); }
.rs-bingo-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-top: 12px; }
.rs-bingo-card { background: #fff; border: 1px solid var(--rs-line); border-radius: 14px; padding: 10px; break-inside: avoid; }
.rs-bingo-no { margin: 0 0 6px; font-size: .74rem; font-weight: 750; color: var(--rs-muted); text-transform: uppercase; letter-spacing: .05em; }
.rs-bingo { width: 100%; border-collapse: collapse; table-layout: fixed; }
.rs-bingo th { background: var(--rs-c); color: #fff; font-weight: 900; padding: 5px 0; }
.rs-bingo td { border: 1.5px solid #cbd5e1; text-align: center; padding: 0 2px; height: 46px; font-weight: 750; font-size: .86rem; line-height: 1.15; overflow-wrap: anywhere; hyphens: auto; }
.rs-bingo td.is-free { background: var(--rs-c-soft); color: var(--rs-c-dark); font-size: .75rem; }
.rs-bingo-board { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 3px; margin-top: 12px; }
.rs-bingo-board span { aspect-ratio: 1; display: grid; place-items: center; font-size: .72rem; font-weight: 700; color: #94a3b8; background: #f1f5f9; border-radius: 6px; font-variant-numeric: tabular-nums; }
.rs-bingo-board span.is-on { background: var(--rs-c); color: #fff; }
.rs-bingo-board span.is-last { outline: 3px solid #facc15; outline-offset: 1px; }
.rs-flag { font-size: 1.15em; }
.rs-bigletter { display: inline-grid; place-items: center; min-width: 1.4em; font-size: 2.6em; line-height: 1.1; font-weight: 900; color: var(--rs-c-dark); }
.rs-timer { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; background: #fff; border: 1px solid var(--rs-line); border-radius: 16px; padding: 10px 14px; }
.rs-timer-v { font: 800 1.8rem/1 ui-monospace, Consolas, monospace; min-width: 4.5ch; color: var(--rs-ink); }
.rs-timer .rs-btn-ghost { margin-top: 0; }
.rs-timer.is-run .rs-timer-v { color: var(--rs-c-dark); }
.rs-timer.is-end { border-color: #ef4444; background: #fef2f2; }
.rs-timer.is-end .rs-timer-v { color: #dc2626; }
@media print { .rs-bingo-cards { grid-template-columns: 1fr 1fr; } .rs-bingo-new, .rs-lorem-copy, .rs-font-c { display: none !important; } }
/* Mathe II */
.rs-unitc { width: 100%; max-width: 260px; display: block; margin: 0 auto; }
.rs-unitc .ax { stroke: #cbd5e1; stroke-width: 1; }
.rs-unitc .uc { fill: none; stroke: #94a3b8; stroke-width: 1.5; }
.rs-unitc .arc { fill: none; stroke: var(--rs-c); stroke-width: 2; }
.rs-unitc .rad { stroke: var(--rs-ink); stroke-width: 2; }
.rs-unitc .sin { stroke: #e11d48; stroke-width: 3; }
.rs-unitc .cos { stroke: #2563eb; stroke-width: 3; }
.rs-unitc .pt { fill: var(--rs-c); }
.rs-unitc-leg { text-align: center; font-size: .82rem; color: var(--rs-muted); margin: 4px 0 0; }
.rs-unitc-leg .sin { color: #e11d48; } .rs-unitc-leg .cos { color: #2563eb; }
.rs-pascal { display: grid; gap: 3px; justify-items: center; font-size: .72rem; font-variant-numeric: tabular-nums; overflow-x: auto; }
.rs-pascal div { display: flex; gap: 3px; }
.rs-pascal span { min-width: 28px; padding: 3px 4px; text-align: center; background: #f1f5f9; border-radius: 6px; }
.rs-pascal span.is-hl { background: var(--rs-c); color: #fff; font-weight: 800; }
.rs-kreuz { display: grid; grid-template-columns: repeat(3, auto); justify-content: center; gap: 6px 18px; align-items: center; font-weight: 700; padding: 8px 0; }
.rs-kreuz b { font-size: 1.15rem; color: var(--rs-c-dark); }
.rs-keypad { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 12px; }
.rs-keypad span { display: block; }
.rs-key { min-height: 44px; border: 1px solid var(--rs-line); background: #fff; border-radius: 11px; font: 650 .95rem var(--rs-font); color: var(--rs-ink); cursor: pointer; transition: background .12s, transform .08s; }
.rs-key:hover { background: var(--rs-c-soft); border-color: var(--rs-c-mid); }
.rs-key:active { transform: scale(.96); }
.rs-key.is-num { background: #f8fafc; font-size: 1.05rem; font-weight: 750; }
.rs-key.is-del { color: #dc2626; }
/* Computer & Internet */
.rs-guids { display: grid; gap: 6px; margin-top: 12px; }
.rs-guid { text-align: left; font: 600 .92rem ui-monospace, Consolas, monospace; letter-spacing: .02em; padding: 10px 12px; background: #fff; border: 1px solid var(--rs-line); border-radius: 12px; color: var(--rs-ink); cursor: pointer; overflow-wrap: anywhere; }
.rs-guid:hover { border-color: var(--rs-c); background: var(--rs-c-soft); }
/* Text II, Spiele, Web II */
.rs-file { margin: 0 0 14px; min-height: 46px; padding: 0 18px; background: var(--rs-c); color: #fff; }
.rs-file:hover { filter: brightness(1.08); }
.rs-sub-h { font-weight: 750; font-size: .9rem; margin: 16px 0 8px; color: var(--rs-ink); }
.rs-ascii { font-family: ui-monospace, Consolas, "Courier New", monospace; font-size: clamp(4px, calc(92vw / var(--cols) / .62), 13px); line-height: 1.12; background: #fff; color: #0f172a; border: 1px solid var(--rs-line); padding: 14px; border-radius: 12px; overflow-x: auto; margin: 12px 0 0; white-space: pre; letter-spacing: 0; }
@media (min-width: 900px) { .rs-ascii { font-size: clamp(4px, calc(620px / var(--cols) / .62), 13px); } }
.rs-wchips { display: flex; flex-wrap: wrap; gap: 6px; }
.rs-wchip { padding: 4px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--rs-line); font-size: .88rem; font-weight: 600; }
.rs-wchip small { color: var(--rs-muted); font-weight: 500; }
.rs-akro { margin-top: 12px; padding: 14px 18px; border-radius: 14px; background: #fff; border: 1px solid var(--rs-line); }
.rs-akro p { margin: 0; font-size: 1.15rem; line-height: 1.6; }
.rs-akro b { color: var(--rs-c); font-size: 1.4em; }
.rs-kwr-wrap { margin-top: 12px; overflow-x: auto; }
.rs-kwr-t { font-weight: 800; font-size: 1.1rem; margin: 0 0 8px; }
.rs-kwr { border-collapse: collapse; margin: 0 auto 14px; }
.rs-kwr td { width: clamp(20px, calc(86vw / var(--n)), 34px); height: clamp(20px, calc(86vw / var(--n)), 34px); border: 1.5px solid #334155; position: relative; text-align: center; vertical-align: middle; background: #fff; padding: 0; font-weight: 750; font-size: .95rem; }
.rs-kwr td.x { border: 0; background: transparent; }
.rs-kwr td sup { position: absolute; top: 1px; left: 2px; font-size: .55rem; font-weight: 600; line-height: 1; color: #475569; }
.rs-kwr td span { visibility: hidden; }
.rs-kwr.is-sol td span { visibility: visible; color: var(--rs-c-dark); }
.rs-kwr-clues { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 20px; font-size: .92rem; }
.rs-kwr-clues p { margin: 0 0 4px; }
.rs-kwr-clues ol { margin: 0; padding-left: 26px; }
.rs-kwr-clues li { margin: 0 0 3px; }
.rs-plates { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 12px; }
.rs-plates figure { margin: 0; text-align: center; }
.rs-plate { width: 100%; height: auto; display: block; filter: drop-shadow(0 2px 4px rgba(15, 23, 42, .15)); }
.rs-plates figcaption { font-size: .82rem; color: var(--rs-muted); margin-top: 4px; }
.rs-fav-tab { display: flex; align-items: flex-end; gap: 10px; background: #e2e8f0; border-radius: 12px 12px 0 0; padding: 8px 10px 0; margin-top: 12px; }
.rs-fav-dots { width: 42px; height: 10px; margin-bottom: 12px; background: radial-gradient(circle, #f87171 4px, transparent 5px) 0 0 / 14px 10px repeat-x; }
.rs-fav-t { display: inline-flex; align-items: center; gap: 8px; background: #fff; border-radius: 10px 10px 0 0; padding: 8px 14px; font-size: .85rem; max-width: 240px; overflow: hidden; white-space: nowrap; }
.rs-fav-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 12px; }
.rs-fav-item { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; padding: 12px 8px; border-radius: 12px; border: 1px solid var(--rs-line); background: repeating-conic-gradient(#f1f5f9 0 25%, #fff 0 50%) 0 0 / 16px 16px; text-decoration: none !important; color: var(--rs-ink); }
.rs-fav-item:hover { border-color: var(--rs-c); }
.rs-fav-item img { image-rendering: auto; }
.rs-fav-item span { font-weight: 700; font-size: .85rem; }
.rs-fav-item small { font-size: .7rem; color: var(--rs-muted); word-break: break-all; text-align: center; }
.rs-fav-dl { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.rs-fav-dl .rs-btn { margin: 0; text-decoration: none !important; }
.rs-code { font-family: ui-monospace, Consolas, monospace; font-size: .78rem; background: #0f172a; color: #e2e8f0; padding: 12px 14px; border-radius: 12px; overflow-x: auto; white-space: pre; margin: 0; }
@media print { .rs-file, .rs-fav-dl { display: none !important; } .rs-kwr td { border-color: #000; } }.rs-letter { margin: 12px 0 0; padding: 12px; border-radius: 14px; border: 1px solid var(--rs-line); background: #fff; text-align: center; }
.rs-letter.is-transp { background: repeating-conic-gradient(#f1f5f9 0 25%, #fff 0 50%) 0 0 / 18px 18px; }
.rs-letter canvas { display: block; margin: 0 auto; max-width: 100%; height: auto; }
.rs-letter figcaption { font-size: .82rem; color: var(--rs-muted); margin-top: 6px; }
.rs-letter figcaption a { font-weight: 700; color: var(--rs-c-dark); }
.rs-letter-grid { display: grid; gap: 10px; }
.rs-letter-grid .rs-letter { margin: 0; }
@media print {
	[data-id="kreuzwortraetsel"] .rs-form, [data-id="kreuzwortraetsel"] .rs-main, [data-id="kreuzwortraetsel"] .rs-again { display: none !important; }
	[data-id="kreuzwortraetsel"] .rs-calc-body { grid-template-columns: 1fr !important; }
	[data-id="kreuzwortraetsel"] .rs-kwr td { width: 9mm; height: 9mm; }
}
/* Mathe III: Formeln, Graphen, Matrizen */
.rs-math { font-family: "Cambria Math", "STIX Two Math", "Times New Roman", serif; font-size: 1.08em; line-height: 1.9; }
.rs-main-val .rs-math { font-size: .92em; }
.rs-fr { display: inline-flex; flex-direction: column; vertical-align: middle; text-align: center; margin: 0 .12em; font-size: .9em; line-height: 1.15; }
.rs-fr > span:first-child { border-bottom: 1.5px solid currentColor; padding: 0 .2em .05em; }
.rs-fr > span:last-child { padding: .05em .2em 0; }
.rs-fr.s { font-size: .82em; }
.rs-sq { border-top: 1.5px solid currentColor; padding: 0 .1em; margin-left: -.05em; }
.rs-math sup, .rs-math sub { font-size: .7em; }
.rs-mlist { margin: 12px 0 0; padding: 12px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--rs-line); }
.rs-mlist p { margin: 4px 0; }
.rs-plot { width: 100%; height: auto; display: block; }
.rs-plot .g { stroke: #e2e8f0; stroke-width: 1; }
.rs-plot .a { stroke: #64748b; stroke-width: 1.4; }
.rs-plot .t { font-size: 11px; fill: #64748b; }
.rs-plot .ar { fill: var(--rs-c); opacity: .16; }
.rs-mat { border-collapse: separate; border-spacing: 0; margin: 10px auto; border-left: 2px solid #334155; border-right: 2px solid #334155; border-radius: 6px; font-variant-numeric: tabular-nums; }
.rs-main-val .rs-mat { margin: 6px 0; font-size: .62em; }
.rs-mat td { padding: 4px 12px; text-align: center; }
.rs-mat.aug td.b { border-left: 1.5px dashed #94a3b8; }
.rs-pdiv { margin: 12px 0 0; padding: 12px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--rs-line); font-family: "Cambria Math", "Times New Roman", serif; font-size: 1.02rem; }
.rs-pdiv p { margin: 4px 0; }
.rs-pdiv p.s { color: #475569; font-size: .92em; padding-left: 1em; }
.rs-small { font-size: .55em; color: var(--rs-muted); font-weight: 600; }
/* Ausgeblendete Felder/Zeilen wirklich ausblenden (display:grid der Zeilen überschreibt sonst [hidden]) */
.rs-cond[hidden] { display: none !important; }
.rs-plotnames { font-size: .58em; line-height: 1.45; display: block; }

/* Gaming */
.rs-iv { margin: 12px 0 0; padding: 12px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--rs-line); }
.rs-iv p { margin: 6px 0; display: flex; align-items: center; gap: 10px; font-weight: 600; }
.rs-ivbar { flex: 1; max-width: 260px; height: 10px; border-radius: 99px; background: #e2e8f0; overflow: hidden; display: inline-block; }
.rs-ivbar span { display: block; height: 100%; background: var(--rs-c); border-radius: 99px; }
.rs-iv-stars { font-size: 1.6rem; color: #f59e0b; letter-spacing: .1em; }
.rs-iv-stars span { color: #e2e8f0; }
/* WordPress (wpautop) setzt <br> zwischen Kacheln – im Grid/Flex würden sie zu leeren Zellen */
div[style*="display:grid"] > br, div[style*="display: grid"] > br, div[style*="display:flex"] > br, div[style*="display: flex"] > br { display: none !important; }
div[style*="display:grid"] > p:empty, div[style*="display:flex"] > p:empty { display: none !important; }
/* Genau 4 Kacheln: 2 × 2 statt 3 + 1 */
@media (min-width: 600px) { div[style*="display:grid"]:has(> a:nth-of-type(4):last-of-type) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }

/* Kontrast in den Ratgeber-Texten: zu helle Inline-Farben kleiner Texte abdunkeln (WCAG 4,5:1) */
.rs-prose [style*="color:#64748b"] { color: #475569 !important; }
.rs-prose [style*="color:#d97706"] { color: #b45309 !important; }
.rs-prose [style*="color:#ea580c"] { color: #c2410c !important; }
.rs-prose [style*="color:#16a34a"] { color: #15803d !important; }
.rs-prose [style*="color:#65a30d"] { color: #4d7c0f !important; }
.rs-prose [style*="color:#059669"] { color: #047857 !important; }
.rs-prose [style*="color:#db2777"] { color: #be185d !important; }
.rs-prose [style*="color:#0284c7"] { color: #0369a1 !important; }
.rs-prose [style*="color:#0f766e"] { color: #115e59 !important; }
.rs-prose [style*="color:#94a3b8"] { color: #64748b !important; }
