
#mj-abrechnung{font-family:Arial,Helvetica,sans-serif;color:#302923;background:#f5f0e7}
#mj-abrechnung, #mj-abrechnung *{box-sizing:border-box}
#mj-abrechnung{margin:20px 0 0;padding:22px}
#mj-abrechnung .wrap{max-width:900px;margin:auto;background:#fffdf8;border:2px solid #cbbda6;border-radius:20px;overflow:hidden;box-shadow:0 8px 28px #382b1c19}
#mj-abrechnung header{background:#e9dfce;color:#632525;text-align:center;padding:22px 15px}
#mj-abrechnung h1{font-size:27px;margin:0 0 7px}
#mj-abrechnung header p{margin:0;color:#632525}
#mj-abrechnung main{padding:24px}
#mj-abrechnung h2{font-size:20px;color:#802828;margin:10px 0 16px}
#mj-abrechnung .players{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
#mj-abrechnung .player{border:1px solid #d9cbb8;background:#faf6ee;border-radius:12px;padding:13px}
#mj-abrechnung .player label{display:block;font-weight:bold;margin-bottom:8px}
#mj-abrechnung .player input::-webkit-inner-spin-button, #mj-abrechnung .player input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
#mj-abrechnung .player input{width:100%;font-size:22px;text-align:center;padding:10px 3px;border:1px solid #bcb2a4;border-radius:8px}
#mj-abrechnung .winner{margin:18px 0 24px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
#mj-abrechnung .winner label{font-weight:bold}
#mj-abrechnung .winner-options{display:flex;flex-wrap:wrap;gap:8px}
#mj-abrechnung .winner-option{background:#eee4d7;color:#632525;border:1px solid #cbbda6;border-radius:9px;padding:10px 15px;font-size:16px}
#mj-abrechnung .winner-option[aria-pressed="true"]{background:#802828;color:#fff;border-color:#802828;box-shadow:0 0 0 2px #d9b5a5}
#mj-abrechnung .rule{background:#f4eee4;padding:12px 16px;border-radius:10px;font-size:14px;line-height:1.5;margin-bottom:24px}
#mj-abrechnung .table-scroll{overflow-x:auto}
#mj-abrechnung table{border-collapse:collapse;width:100%;min-width:430px}
#mj-abrechnung th, #mj-abrechnung td{padding:12px 10px;border-bottom:1px solid #e2d8ca;text-align:left}
#mj-abrechnung th{background:#eee4d7;color:#612020}
#mj-abrechnung td:last-child, #mj-abrechnung th:last-child{text-align:right}
#mj-abrechnung tr:last-child td{font-weight:bold}
#mj-abrechnung .positive{color:#17713e;font-weight:bold}
#mj-abrechnung .negative{color:#b12e2e;font-weight:bold}
#mj-abrechnung .payment-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
#mj-abrechnung .payment-card{border:1px solid #dfd2c0;border-radius:12px;overflow:hidden;background:#fff}
#mj-abrechnung .payment-title{background:#f0e5d7;padding:11px 14px;color:#702424;font-weight:bold}
#mj-abrechnung .payment-line{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 14px;border-top:1px solid #eee5d9}
#mj-abrechnung .payment-line:first-of-type{border-top:0}
#mj-abrechnung .payment-from{font-weight:bold}
#mj-abrechnung .payment-arrow{color:#827263;margin:0 5px}
#mj-abrechnung .payment-amount{white-space:nowrap;font-weight:bold;color:#802828;background:#faf0e7;border-radius:7px;padding:6px 9px}
#mj-abrechnung .payment-empty{padding:14px;color:#6b6156}
#mj-abrechnung .payment-note{font-size:13px;color:#62584c;margin:10px 0 0}
#mj-abrechnung .buttons{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}
#mj-abrechnung button{background:#802828;border:0;border-radius:9px;color:white;padding:11px 18px;font-weight:bold;cursor:pointer}
#mj-abrechnung button.secondary{background:#686056}
#mj-abrechnung .error{color:#ad2020;font-weight:bold}
#mj-abrechnung .foot{font-size:13px;color:#62584c;margin-top:18px}
@media(max-width:650px){#mj-abrechnung{padding:8px}
#mj-abrechnung main{padding:16px}
#mj-abrechnung .players{grid-template-columns:repeat(2,minmax(0,1fr))}
#mj-abrechnung .payment-groups{grid-template-columns:1fr}
#mj-abrechnung h1{font-size:23px}}
@media print{#mj-abrechnung{padding:0;background:white}
#mj-abrechnung .wrap{box-shadow:none;border:none}
#mj-abrechnung .buttons{display:none}}
#mj-abrechnung{width:100%;max-width:100%;padding:12px 0;background:transparent;font-family:Arial,Helvetica,sans-serif;color:#302923;}
#mj-abrechnung button{font-family:inherit;}


/* WordPress: styling is confined to the widget, no global theme rules */
#mj-abrechnung.mj-widget{width:100%;max-width:900px;margin:16px auto;padding:0;background:#fffdf8;border:2px solid #cbbda6;border-radius:20px;overflow:hidden;box-shadow:0 8px 28px #382b1c19;}
#mj-abrechnung.mj-widget > header{background:#E9DFCE;color:#632525;text-align:center;padding:22px 15px;}
#mj-abrechnung.mj-widget > header h1{color:#632525;font-size:27px;line-height:1.25;margin:0 0 7px;}
#mj-abrechnung.mj-widget > main{display:block;padding:24px;}
#mj-abrechnung.mj-widget .players{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;}
#mj-abrechnung.mj-widget .winner-options{display:flex!important;gap:8px;flex-wrap:wrap;}
#mj-abrechnung.mj-widget .winner-option[aria-pressed="true"]{background:#802828;color:#fff;}
@media(max-width:650px){#mj-abrechnung.mj-widget > main{padding:16px;}#mj-abrechnung.mj-widget .players{grid-template-columns:repeat(2,minmax(0,1fr));}}

#mj-abrechnung.mj-widget .wind-label{display:block;font-size:12px;margin:9px 0 4px;color:#685647;}
#mj-abrechnung.mj-widget .wind-select{display:block;width:100%;min-width:0;padding:9px 7px;border:1px solid #cdbda8;border-radius:7px;background:white;color:#302923;font-size:15px;}

/* Mobile number wheels and East selection */
#mj-abrechnung .point-wheel{display:flex;flex-direction:column;align-items:center;gap:3px;touch-action:pan-y;user-select:none;border:1px solid #d9cbb8;border-radius:12px;background:#fff;padding:6px 4px}
#mj-abrechnung .point-wheel button{width:100%;max-width:95px;background:#eee4d7;color:#702424;padding:5px;border-radius:7px;font-size:17px;line-height:1.2}
#mj-abrechnung .wheel-prev,#mj-abrechnung .wheel-next{color:#8c8278;font-size:16px;line-height:1.25}
#mj-abrechnung .wheel-current{font-size:29px;line-height:1.3;font-weight:800;color:#802828;width:100%;text-align:center;background:#f7e8df;border-radius:8px;padding:6px}
#mj-abrechnung .east-wind{margin:20px 0 8px;display:flex;flex-wrap:wrap;gap:10px;align-items:center}
#mj-abrechnung .east-options{display:flex;flex-wrap:wrap;gap:7px}
#mj-abrechnung .east-option{background:#eee4d7;color:#632525;border:1px solid #cbbda6;padding:9px 13px}
#mj-abrechnung .east-option[aria-pressed="true"]{background:#802828;color:white}
#mj-abrechnung .player{min-width:0}
#mj-abrechnung .player label{text-align:center}
@media(max-width:380px){#mj-abrechnung.mj-widget .players{gap:7px}#mj-abrechnung .player{padding:7px}}

/* Compact wheels, matching the approved mobile HTML */
#mj-abrechnung .point-wheel{gap:1px;padding:4px 3px;border-radius:10px}
#mj-abrechnung .point-wheel button{max-width:76px;padding:3px 4px;font-size:14px;line-height:1.15;border-radius:6px}
#mj-abrechnung .wheel-prev,#mj-abrechnung .wheel-next{font-size:13px;line-height:1.15}
#mj-abrechnung .wheel-current{font-size:24px;line-height:1.2;padding:4px;border-radius:6px}

/* Verrechnung: beige header and top breathing space */
#mj-abrechnung.mj-widget{margin-top:20px;}
#mj-abrechnung.mj-widget > header{background:#e9dfce;color:#632525;}
#mj-abrechnung.mj-widget > header h1{color:#632525;}
#mj-abrechnung.mj-widget > header p{color:#632525;}


/* Vorschau: schmalere Namensbuttons und kompaktere Berechnungsfelder */
#mj-abrechnung .east-options,#mj-abrechnung .winner-options{display:grid!important;grid-template-columns:repeat(4,minmax(0,105px))!important;gap:5px!important}
#mj-abrechnung .east-option,#mj-abrechnung .winner-option{font-size:13px!important;padding:5px 7px!important;min-width:0!important;border-radius:7px!important}
#mj-abrechnung .players{gap:7px!important}
#mj-abrechnung .player{padding:7px!important}
#mj-abrechnung .player label{font-size:13px!important;margin-bottom:4px!important}
#mj-abrechnung .point-wheel{padding:3px 2px!important;gap:1px!important}
#mj-abrechnung .point-wheel button{max-width:62px!important;font-size:12px!important;padding:2px!important}
#mj-abrechnung .wheel-current{font-size:20px!important;padding:3px!important}
#mj-abrechnung .wheel-prev,#mj-abrechnung .wheel-next{font-size:12px!important}
@media(max-width:550px){#mj-abrechnung .east-wind,#mj-abrechnung .winner{display:block!important}#mj-abrechnung .east-options,#mj-abrechnung .winner-options{margin-top:8px!important}}

/* Beide Auswahlzeilen exakt untereinander ausrichten */
#mj-abrechnung .east-wind,#mj-abrechnung .winner{display:grid!important;grid-template-columns:220px minmax(0,1fr)!important;align-items:center!important;column-gap:10px!important;margin:9px 0!important}
#mj-abrechnung .east-options,#mj-abrechnung .winner-options{width:100%!important;max-width:440px!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;margin:0!important}
@media(max-width:650px){#mj-abrechnung .east-wind,#mj-abrechnung .winner{grid-template-columns:1fr!important;gap:6px!important}#mj-abrechnung .east-options,#mj-abrechnung .winner-options{margin:0!important}}
/* Identische Maße für die Namensbuttons in beiden Zeilen */
#mj-abrechnung .east-options button,#mj-abrechnung .winner-options button{box-sizing:border-box!important;width:100%!important;height:34px!important;min-height:34px!important;max-height:34px!important;font-size:13px!important;line-height:18px!important;padding:7px 4px!important;white-space:nowrap!important}

/* Einheitliche Namensbuttons in beiden Zeilen */
#mj-abrechnung .east-options, #mj-abrechnung .winner-options {display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:5px!important;width:440px!important;max-width:100%!important;}
#mj-abrechnung .east-options .east-option, #mj-abrechnung .winner-options .winner-option {display:flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;width:100%!important;height:34px!important;margin:0!important;padding:5px 4px!important;font-size:13px!important;font-weight:700!important;line-height:18px!important;border-radius:7px!important;background:#eee4d7!important;color:#632525!important;border:1px solid #cbbda6!important;box-shadow:none!important;}
#mj-abrechnung .east-options .east-option[aria-pressed="true"],#mj-abrechnung .winner-options .winner-option[aria-pressed="true"] {background:#802828!important;color:white!important;border-color:#802828!important;}
/* Beide Namensreihen: exakt 105 px je Button */
#mj-abrechnung .east-options,#mj-abrechnung .winner-options{grid-template-columns:repeat(4,105px)!important;width:435px!important;max-width:none!important}
#mj-abrechnung .east-options .east-option,#mj-abrechnung .winner-options .winner-option{width:105px!important;min-width:105px!important;max-width:105px!important}
/* Plus und Minus deutlich sichtbar in den Punktefeldern */
#mj-abrechnung .point-wheel .wheel-up,#mj-abrechnung .point-wheel .wheel-down{display:block!important;visibility:visible!important;opacity:1!important;min-height:29px!important;width:62px!important;max-width:100%!important;background:#eee4d7!important;color:#702424!important;font-size:22px!important;font-weight:800!important;line-height:1!important;padding:3px 5px!important;margin:2px auto!important}

/* Plus links, Punktzahl mittig, Minus rechts */
#mj-abrechnung .point-wheel{display:grid!important;grid-template-columns:32px minmax(0,1fr) 32px!important;grid-template-rows:auto!important;align-items:center!important;gap:4px!important;padding:5px!important}
#mj-abrechnung .point-wheel .wheel-up{grid-column:1!important;grid-row:1!important}
#mj-abrechnung .point-wheel .wheel-current{grid-column:2!important;grid-row:1!important;min-width:0!important}
#mj-abrechnung .point-wheel .wheel-down{grid-column:3!important;grid-row:1!important}
#mj-abrechnung .point-wheel .wheel-up,#mj-abrechnung .point-wheel .wheel-down{width:32px!important;min-width:0!important;max-width:32px!important;height:34px!important;margin:0!important;padding:2px!important;font-size:22px!important}
#mj-abrechnung .point-wheel .wheel-prev,#mj-abrechnung .point-wheel .wheel-next{display:none!important}

/* Vorschau 8: Zahlenfelder im gewünschten Layout, 150 px hoch */
#mj-abrechnung .point-wheel{
  box-sizing:border-box!important;height:150px!important;min-height:150px!important;
  display:grid!important;grid-template-columns:32px minmax(0,1fr) 32px!important;
  grid-template-rows:25px 55px 25px!important;align-content:space-between!important;
  align-items:center!important;column-gap:8px!important;row-gap:0!important;
  padding:9px 3px!important;border:1px solid #dccbb6!important;border-radius:11px!important;background:#fff!important;
}
#mj-abrechnung .point-wheel .wheel-prev{display:block!important;grid-column:2!important;grid-row:1!important;text-align:center!important;color:#a99e93!important;font-size:12px!important}
#mj-abrechnung .point-wheel .wheel-next{display:block!important;grid-column:2!important;grid-row:3!important;text-align:center!important;color:#a99e93!important;font-size:12px!important}
#mj-abrechnung .point-wheel .wheel-current{grid-column:2!important;grid-row:2!important;font-size:27px!important;font-weight:800!important;padding:5px 1px!important;background:#f7e8df!important;color:#802828!important}
#mj-abrechnung .point-wheel .wheel-down{grid-column:1!important;grid-row:2!important}
#mj-abrechnung .point-wheel .wheel-up{grid-column:3!important;grid-row:2!important}
#mj-abrechnung .point-wheel .wheel-up,#mj-abrechnung .point-wheel .wheel-down{
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:30px!important;max-width:30px!important;height:55px!important;min-height:55px!important;
  padding:0!important;margin:0!important;background:#eee4d7!important;color:#802828!important;
  font-size:23px!important;font-weight:800!important;border-radius:8px!important;
}
#mj-abrechnung .player{border:1px solid #dfcbb2!important;border-radius:13px!important;background:#faf5ec!important;padding:9px!important}
#mj-abrechnung .player label{font-size:14px!important;font-weight:bold!important;margin-bottom:10px!important}

/* Touch- und Mausbedienung der Zahlenraedchen */
#mj-abrechnung .point-wheel { touch-action: none; user-select: none; -webkit-user-select: none; cursor: ns-resize; }
#mj-abrechnung .point-wheel button { cursor: pointer; touch-action: manipulation; }

/* Spracheingabe */
#mj-abrechnung .voice-panel{text-align:center;border:1px solid #d7c4aa;border-radius:14px;background:#faf5ec;padding:18px 12px;margin-bottom:24px}
#mj-abrechnung .voice-button{display:inline-block;width:min(100%,360px);min-height:76px;border-radius:18px;font-size:23px;font-weight:800;background:#802828;color:white;cursor:pointer}
#mj-abrechnung .voice-button.listening{background:#176b42;box-shadow:0 0 0 5px #b9e4cb}
#mj-abrechnung .voice-button:disabled{background:#777;cursor:not-allowed}
#mj-abrechnung #mj-voice-status{font-size:16px;font-weight:600;margin:12px 0 4px;overflow-wrap:anywhere}
#mj-abrechnung .voice-help{font-size:13px;color:#675a4c;margin:4px 0}
