/* Value Bet Rechner (Theme 2.2.1) – lädt nur, wenn der Beitrag .swp-valuerechner enthält */
.swp-valuerechner { position: relative; box-sizing: border-box; max-width: 100%; overflow: hidden; margin: 28px 0 32px; padding: 22px 22px 18px; border-radius: 16px; background: linear-gradient(160deg, #1b0b0d 0%, var(--card) 45%, var(--bg-2) 100%); border: 1px solid rgba(229, 38, 43, .45); box-shadow: 0 0 0 1px rgba(255, 255, 255, .03) inset, 0 18px 50px rgba(0, 0, 0, .45), 0 0 34px rgba(229, 38, 43, .16); color: var(--text); font-family: var(--body); }
.swp-valuerechner:not(.is-ready) { min-height: 120px; }
.swp-valuerechner p { margin: 0; }
.swp-vr__head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.swp-vr__icon { flex: 0 0 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--red); color: #fff; box-shadow: 0 0 20px rgba(229, 38, 43, .6); }
.swp-vr__icon svg { width: 24px; height: 24px; }
.swp-vr__kicker { font: 700 .68rem/1.2 var(--body) !important; text-transform: uppercase; letter-spacing: .16em; color: #f5c451; }
.swp-vr__title { font: 800 1.45rem/1.15 var(--head) !important; text-transform: uppercase; letter-spacing: .03em; color: #fff; }

.swp-vr__top { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px 12px; margin-bottom: 16px; }
.swp-vr__field { grid-column: span 2; min-width: 0; display: flex; flex-direction: column; gap: 5px; margin: 0; }
.swp-vr__field > span { font: 700 .7rem/1 var(--body); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.swp-vr__field--wide { grid-column: span 3; }
.swp-vr__top .swp-vr__field:nth-child(3) { grid-column: span 2; }
.swp-vr__top .swp-vr__field:nth-child(4) { grid-column: span 4; }
.swp-vr__top .swp-vr__field:nth-child(5), .swp-vr__top .swp-vr__field:nth-child(6) { grid-column: span 3; }
.swp-valuerechner select, .swp-valuerechner input[type="text"] { width: 100%; max-width: 100%; min-width: 0; text-overflow: ellipsis; box-sizing: border-box; min-height: 42px; padding: 8px 11px; border-radius: 10px; border: 1px solid var(--line-2); background: #0b0b0e; color: #fff; font: 600 .95rem/1.2 var(--body); outline: none; }
.swp-valuerechner select:focus, .swp-valuerechner input[type="text"]:focus { border-color: var(--red-hot); box-shadow: 0 0 0 3px rgba(229, 38, 43, .25); }
.swp-valuerechner .is-bad { border-color: #f59e0b !important; }

.swp-vr__rows { display: grid; gap: 7px; margin-bottom: 14px; }
.swp-vr__rowhead, .swp-vr__row { display: grid; grid-template-columns: minmax(90px, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: center; }
.swp-vr__rowhead span { font: 700 .66rem/1 var(--body); text-transform: uppercase; letter-spacing: .1em; color: var(--dim); }
.swp-vr__row { padding: 6px 8px; border-radius: 10px; background: rgba(255, 255, 255, .025); border: 1px solid var(--line); }
.swp-vr__name { font: 800 .92rem/1.2 var(--head); color: #f5c451; text-transform: uppercase; letter-spacing: .03em; }
.swp-vr__row input[type="text"] { min-height: 38px; padding: 6px 10px; text-align: center; }
.swp-vr__row input[data-t="book"] { border-color: rgba(245, 196, 81, .35); }
.swp-vr__legend { margin: 0 0 16px !important; font-size: .76rem; line-height: 1.55; color: var(--dim); }
.swp-vr__legend b { color: var(--muted); }

.swp-vr__out { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.swp-vr__kpi { padding: 12px 12px 10px; border-radius: 12px; background: #0b0b0e; border: 1px solid var(--line-2); text-align: center; min-width: 0; }
.swp-vr__kpi--wide { grid-column: span 3; }
.swp-vr__kpi span { display: block; font: 700 .64rem/1.2 var(--body); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.swp-vr__kpi b { display: block; margin: 6px 0 4px; font: 800 1.35rem/1.1 var(--head); color: #fff; }
.swp-vr__kpi small { display: block; font-size: .72rem; color: var(--dim); }
.swp-vr__kpi--plus { border-color: rgba(34, 197, 94, .6); box-shadow: 0 0 16px rgba(34, 197, 94, .15); }
.swp-vr__kpi--plus b { color: #4ade80; }
.swp-vr__kpi--minus { border-color: rgba(229, 38, 43, .6); }
.swp-vr__kpi--minus b { color: var(--red-hot); }
.swp-vr__warn { grid-column: 1 / -1; padding: 10px 12px; border-radius: 10px; background: rgba(245, 158, 11, .12); color: #fbbf24; font-size: .88rem; line-height: 1.45; }

.swp-vr__tblwrap { margin: 0 0 10px; overflow-x: auto; }
.swp-valuerechner table { width: 100%; margin: 0; border-collapse: collapse; font-size: .82rem; }
.swp-valuerechner th, .swp-valuerechner td { padding: 8px 5px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.swp-valuerechner th { white-space: normal; }
.swp-valuerechner th { font: 700 .64rem/1.2 var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--dim); background: transparent; }
.swp-valuerechner td.is-plus { color: #4ade80; font-weight: 700; }
.swp-valuerechner td.is-minus { color: #fca5a5; }
.swp-valuerechner tr.is-plus td:first-child { box-shadow: inset 3px 0 0 #22c55e; }
.swp-vr__fo { color: #f5c451; }
.swp-vr__foot { margin-top: 6px !important; font-size: .72rem; color: var(--dim); }

.swp-vr__more { margin: 0 0 10px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .02); }
.swp-vr__more:empty { display: none; }
.swp-vr__more summary { cursor: pointer; padding: 11px 14px; font: 700 .86rem/1.3 var(--body); color: #fff; list-style: none; }
.swp-vr__more summary::-webkit-details-marker { display: none; }
.swp-vr__more summary::before { content: "+"; display: inline-block; width: 20px; color: var(--red-hot); font-weight: 800; }
.swp-vr__more[open] summary::before { content: "–"; }
.swp-vr__tbl { overflow-x: auto; padding: 0 10px 10px; }
.swp-vr__tbl tr.is-sel td { color: #f5c451; font-weight: 700; }
.swp-vr__hint { padding: 8px 4px 0; font-size: .8rem; color: var(--muted); }
.swp-vr__note { margin-top: 10px !important; font-size: .74rem; line-height: 1.45; color: var(--dim); }

@media (max-width: 700px) {
	.swp-valuerechner { padding: 18px 14px 14px; }
	.swp-vr__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.swp-vr__top .swp-vr__field { grid-column: span 1 !important; }
	.swp-vr__top .swp-vr__field:nth-child(1), .swp-vr__top .swp-vr__field:nth-child(2), .swp-vr__top .swp-vr__field:nth-child(4) { grid-column: 1 / -1 !important; }
	.swp-vr__rowhead, .swp-vr__row { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 7px; }
	.swp-vr__name { font-size: .78rem; }
	.swp-vr__out { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.swp-vr__kpi--wide { grid-column: span 1; }
	.swp-vr__kpi b { font-size: 1.15rem; }
	/* Ergebnistabelle als Karten */
	.swp-vr__tblwrap table, .swp-vr__tblwrap tbody, .swp-vr__tblwrap tr, .swp-vr__tblwrap td { display: block; width: 100%; }
	.swp-vr__tblwrap thead { display: none; }
	.swp-vr__tblwrap tr { margin-bottom: 8px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line-2); background: #0b0b0e; }
	.swp-vr__tblwrap tr.is-plus { border-color: rgba(34, 197, 94, .6); }
	.swp-vr__tblwrap tr.is-plus td:first-child { box-shadow: none; }
	.swp-vr__tblwrap td { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px dashed var(--line); }
	.swp-vr__tblwrap td:last-child { border-bottom: 0; }
	.swp-vr__tblwrap td::before { content: attr(data-label); font: 700 .66rem/1.6 var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--dim); }
}
