/* Bedienung am Spielabend. Ausschließlich App-Seiten, Monitor bleibt eigenständig. */
.app-body{background:#f2f5f1;color:#173234}
.app-body .topbar{min-height:66px;padding-top:.65rem;padding-bottom:.65rem}
.app-body .brand-mark{width:40px;height:40px;border-radius:12px}
.app-body .brand small{font-size:.73rem}
.main-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;background:#163e3d;padding:7px max(12px,calc((100vw - 1000px)/2));}
.main-nav a{min-height:54px;display:flex;align-items:center;justify-content:center;gap:.6rem;text-decoration:none;border-radius:12px;color:#dae9e2;font-size:1rem;}
.main-nav a[aria-current]{background:#e4efe5;color:#174a43}
.main-nav a>span{font-size:1.45rem;line-height:1}
.main-nav a:hover{background:#d9e9df;color:#174a43}
.section-menu{width:min(1000px,calc(100% - 2rem));margin:.7rem auto 0;background:#e4ece5;border:1px solid #cadacf;border-radius:12px}
.section-menu>summary{display:flex;justify-content:space-between;align-items:center;gap:8px;cursor:pointer;padding:.75rem 1rem;min-height:46px;font-weight:750}
.section-menu>summary span{font-size:.82rem;color:#45665a}
.section-menu[open]>summary{border-bottom:1px solid #cadacf}
.section-links{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.6rem;padding:1rem}
.section-links .button{white-space:normal;text-align:left;justify-content:start}
.app-body .container{width:min(1000px,calc(100% - 2rem));margin:1rem auto 3rem}
.app-body .panel{padding:1.2rem}
.app-body .match-heading{margin-bottom:.6rem;gap:.5rem;align-items:start}
.match-heading h2{font-size:1.35rem;margin:0}
.match-heading .eyebrow{font-size:.65rem;letter-spacing:.08em;margin-bottom:.25rem}
.match-heading .connection{font-size:.7rem;white-space:normal;min-width:100px;text-align:right}
.app-body .series-active{background:#e7f1e9;padding:1rem;border-color:#bfd3c5}
.active-person{display:flex;align-items:center;gap:.8rem}
.active-person>div{min-width:0;flex:1}
.app-body .active-avatar{width:62px;height:62px;flex:0 0 62px;margin:0}
.app-body .series-active h3{font-size:1.65rem;line-height:1.15;overflow-wrap:anywhere;margin:.1rem 0 .35rem}
.active-person .eyebrow{font-size:.65rem;letter-spacing:.09em;margin-bottom:.15rem}
.active-person p:last-child{font-size:.82rem;margin-bottom:0;color:#456257}
.throw-status{display:block;font-size:1.05rem;font-weight:650;margin-top:.2rem}
.entry-controls{max-width:560px;margin:.8rem auto 0}
.number-pad{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.number-pad button{border:1px solid #9ab9a9;border-radius:14px;min-height:76px;background:white;color:#183f35;font-size:2rem;font-weight:800;box-shadow:0 3px 0 #bdcfc2;touch-action:manipulation}
.number-pad button:active{background:#cfe3d5;transform:translateY(2px);box-shadow:none}
.number-pad button:focus-visible,.main-nav a:focus-visible{outline:3px solid #bd672c;outline-offset:2px}
.entry-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:13px}
.entry-actions>button,.undo-button{min-width:0;min-height:68px;white-space:normal;display:flex;flex-direction:column;gap:4px;justify-content:center;align-items:center;padding:.7rem;border-radius:12px;touch-action:manipulation}
.entry-actions .pudel{font-size:1.03rem}
.entry-actions small,.undo-button small{display:block;line-height:1.3;font-weight:500;font-size:.73rem;max-width:100%}
.undo-button{border:1px solid #739d8b;background:#f8fcf8;color:#214e3e;font:inherit;cursor:pointer}
.undo-button strong{font-size:1.04rem}
.entry-actions>.undo-button:only-child{grid-column:1/-1}
.input-message{padding:.6rem .8rem;border-radius:10px;font-size:.85rem;margin-bottom:.65rem;line-height:1.3}
.input-message.success{background:#deefdf;color:#22543e;border:1px solid #b4d6b9}
.input-message.error{background:#fbe5df;color:#843d2a;border:1px solid #e6b4a4}
.input-message.quiet{color:#5b7265;padding:.1rem .2rem;font-size:.75rem}
.retained-input{margin:.6rem 0}
.retained-input p{overflow-wrap:anywhere;margin:.5rem 0}
.input-switch{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-bottom:1rem}
.input-switch button{min-height:48px;border:1px solid #aac2b5;background:white;color:#2b5445;border-radius:10px;font-weight:700}
.input-switch button[aria-pressed=true]{background:#1b6955;color:white}
.total-form{display:grid;gap:.8rem}
.total-form label{font-size:1rem}
.total-form input{font-size:2.4rem;font-weight:800;min-height:78px;text-align:center;width:100%}
.total-form p{font-size:.85rem;margin:0}
.total-form button{white-space:normal;min-height:58px}
.placement-note{font-size:.9rem;margin:.7rem 0}
.placement-note button{display:block;margin-top:.5rem}
.app-body .series-chips:empty{display:none}
.app-body .series-chips{margin:.6rem 0}
.series-chips .score-chip{padding:.35rem .6rem;min-width:48px;font-size:.95rem}
.app-body .series-input{gap:.65rem}
.app-body .series-input>label:has(input[readonly]){font-size:.8rem}
.app-body .series-input>label input[readonly]{font-size:1.15rem;min-height:42px;background:#f3f8f3}
.app-body .pins{grid-template-columns:repeat(5,44px);grid-template-rows:repeat(5,44px);gap:5px;margin:.6rem auto}
.app-body .pin{font-size:1.15rem}
.app-body .pin input{min-height:0}
.app-body .stop-turn{margin-top:.8rem;width:100%;white-space:normal}
.app-body .correction-area summary,.app-body .match-management>summary{cursor:pointer;min-height:36px}
.app-body .standings{margin-top:1rem}
.app-body .standings table{width:100%}
.app-body td strong,.app-body td{overflow-wrap:anywhere}
.app-body .table-scroll{max-width:100%}
.app-body .settings-grid,.app-body .player-overview{display:grid;grid-template-columns:repeat(auto-fit,minmax(245px,1fr));gap:1rem}
.settings-grid .card,.player-overview .card{margin:0}
.settings-grid>a{text-decoration:none;color:inherit}
.settings-grid>a:hover{border-color:#29745e}
.settings-grid .card p{color:#62776d;margin:0;font-size:.95rem}
.account-logout{margin-top:2rem}
.start-empty .button{margin:.3rem;white-space:normal}
.app-body summary{cursor:pointer}
.app-body .button,.app-body button{max-width:100%}
.app-body .form-row>*{min-width:0}
.app-body .house-digits{margin:.7rem 0}
.app-body .house-digit{min-height:70px}
.app-body .tree-board{overflow:visible}
.app-body .tree-row>span{flex-wrap:wrap;justify-content:center}
.app-body .tree-shape{min-width:0}
.app-body .match-management .actions{margin-top:1rem}
@media(min-width:761px){.app-body .series-active{padding:1.3rem}.entry-controls{max-width:520px}.number-pad button{min-height:78px}.app-body .standings{max-width:100%}}
@media(max-width:760px){
 .app-body{padding-bottom:calc(78px + env(safe-area-inset-bottom,0px))}
 .main-nav{position:fixed;z-index:100;bottom:0;left:0;right:0;padding:5px 7px calc(5px + env(safe-area-inset-bottom,0px));border-top:1px solid #477365;box-shadow:0 -5px 18px #153d321c}
 .main-nav a{min-height:58px;flex-direction:column;gap:4px;font-size:.78rem}
 .main-nav a>span{font-size:1.2rem}
 .app-body .topbar{min-height:60px;padding:.5rem .8rem}
 .app-body .brand{gap:.6rem;min-width:0}
 .app-body .brand strong{font-size:.98rem}
 .app-body .brand-mark{width:34px;height:34px;font-size:1.3rem}
 .app-body .brand small{font-size:.65rem}
 .app-body .user-chip{display:none}
 .app-body .topbar>.button{font-size:.75rem;padding:.5rem;min-height:40px}
 .section-menu{width:calc(100% - 1rem);margin:.5rem auto}
 .section-menu>summary{padding:.55rem .8rem;min-height:42px;font-size:.85rem}
 .section-menu>summary span{font-size:.75rem}
 .section-links{grid-template-columns:1fr;padding:.6rem}
 .app-body .container{width:calc(100% - 1rem);margin:.6rem auto 1.5rem}
 .app-body .panel{padding:.75rem;border-radius:15px}
 .app-body .series-active{padding:.7rem}
 .active-person{gap:.65rem}
 .app-body .active-avatar{width:52px;height:52px;flex-basis:52px}
 .app-body .series-active h3{font-size:1.5rem}
 .throw-status{font-size:.98rem}
 .number-pad{gap:8px}
 .number-pad button{min-height:64px;font-size:1.8rem;border-radius:12px}
 .entry-actions{margin-top:11px;gap:8px}
 .entry-actions>button{min-height:68px;padding:.6rem .35rem}
 .entry-actions .pudel{font-size:.96rem}
 .entry-actions small,.undo-button small{font-size:.69rem}
 .undo-button strong{font-size:.96rem}
 .app-body .panel-head.match-heading{display:flex;margin-bottom:.45rem}
 .match-heading h2{font-size:1.12rem}
 .match-heading .eyebrow{font-size:.6rem}
 .match-heading .connection{font-size:.62rem;min-width:75px;max-width:100px;padding:.3rem}
 .input-message{font-size:.78rem;padding:.45rem .55rem}
 .app-body .settings-grid,.app-body .player-overview{grid-template-columns:1fr}
 .app-body .card{padding:1rem}
 .app-body .edit-dialog{width:calc(100% - 1rem);max-width:500px;padding:1rem}
 .app-body .house-digits{gap:4px}
 .app-body .house-digit{padding:.4rem .05rem;min-height:62px}
 .app-body .house-digit strong{font-size:1.8rem}
 .app-body .house-digit small{font-size:.5rem}
 .app-body .score-row{display:block}
 .app-body .form-row,.app-body .actions{flex-wrap:wrap}
 .app-body .list-card>summary{white-space:normal;flex-wrap:wrap}
 .app-body footer{margin:1.5rem .5rem 0;padding:.6rem;font-size:.75rem}
 .app-body .empty{padding:2rem 1rem}
 .app-body .empty h1{font-size:2rem}
}
@media(max-width:360px){.active-person p:last-child{font-size:.75rem}.app-body .active-avatar{width:44px;height:44px;flex-basis:44px}.app-body .series-active h3{font-size:1.3rem}.number-pad button{min-height:60px}}

.normal-zero{width:100%;margin-top:.7rem;min-height:48px}
