:root{font:16px system-ui,-apple-system,Segoe UI,sans-serif;color:#142638;background:#b48a61}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:linear-gradient(120deg,#9d724e,#c49a6e 45%,#99704c)}header{background:#102a3d;color:#fff3db;border-bottom:6px solid #b42e32;padding:14px max(20px,calc((100vw - 1200px)/2));display:flex;align-items:center;gap:18px}header img{height:78px;width:65px;object-fit:contain}header h1{font-size:2rem;margin:0;letter-spacing:.5px}header small{color:#e8d2a7;letter-spacing:1.2px;font-size:.7rem}header span{color:#c4cdd1;font-size:.86rem}main{max-width:1200px;margin:22px auto;padding:0 16px 50px}.panel{background:#fff6e7;border:1px solid #e7d8c0;border-radius:14px;padding:20px;margin-bottom:16px;box-shadow:0 4px 18px #38210f22}.panel h2,.panel h3{margin:0 0 14px;color:#102a3d}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(235px,1fr));gap:14px}.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:10px 0}.grow{flex:1}.muted{color:#617180;font-size:.9rem}button,.btn{background:#123550;color:#fff;border:0;border-radius:9px;padding:10px 14px;font:inherit;cursor:pointer;text-decoration:none;display:inline-block}button:hover,.btn:hover{background:#205273}button.red{background:#b42e32}button.light{background:#e4d4bc;color:#182f40}button:disabled{opacity:.4;cursor:not-allowed}input,select{border:1px solid #bdc6c7;border-radius:8px;padding:10px;font:inherit;max-width:100%;background:#fff}input[type=number]{width:100px}label{display:flex;flex-direction:column;gap:5px;font-weight:600;font-size:.9rem}table{width:100%;border-collapse:collapse;background:#fffdf8}th,td{padding:9px 8px;text-align:left;border-bottom:1px solid #e5dccc}th{background:#e8d8bf;color:#19344b}td input{width:100%}td select{width:100%}.scroll{overflow-x:auto}.pill{display:inline-block;background:#dfe9ec;border-radius:99px;padding:4px 10px;font-size:.8rem}.warning{background:#fff0d0;padding:12px;border-radius:8px}.dicegrid{display:grid;grid-template-columns:repeat(3,minmax(65px,1fr));gap:8px}.dicegrid label{font-size:.75rem}.dicegrid select{padding:7px}#toast{position:fixed;bottom:20px;right:20px;background:#102a3d;color:white;padding:14px;border-radius:8px;display:none;max-width:350px;z-index:20}.tv{background:#102a3d;color:#fff3dc;min-height:100vh}.tv header{border-bottom-color:#d5ac5e}.tv main{max-width:1500px}.tv .hero{text-align:center;padding:7vh 20px}.tv .hero h2{font-size:clamp(2.5rem,7vw,6rem);margin:10px}.tv .hero p{font-size:clamp(1.3rem,2.6vw,2.4rem);color:#ead5a9}.tv .tvtable{width:100%;font-size:clamp(1rem,2.4vw,2rem);background:#1c3b52;color:white}.tv .tvtable th{background:#b42e32;color:white}.tv .tvtable td{border-color:#36566a;padding:13px}.tv .tvtable tr:nth-child(even){background:#25485e}.tv .tvtable .masked{color:#e9c48b}.tv .sub{color:#ebca8e;text-align:center}.tv footer{text-align:center;color:#e2c28d;padding:25px}

.quick-field{width:110px;min-width:90px}.quick-field.changed{border:2px solid #b42e32;background:#fff9dc}.quick-toolbar{position:sticky;bottom:8px;background:#fff6e7;padding:12px;border:1px solid #e7d8c0;border-radius:10px;box-shadow:0 3px 12px #0002}.quick-toolbar button:disabled{opacity:.5}

/* V1.5: statistics and TV presentation */
.stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:12px;margin:12px 0 25px}.stat-card{background:#f2e6d2;border:1px solid #dfc9aa;border-radius:12px;padding:14px;display:flex;flex-direction:column;gap:5px}.stat-card small{color:#5b6870;font-weight:700}.stat-card strong{font-size:1.55rem;color:#123550}.stat-card span{font-size:.83rem;color:#586a78}.stat-chart{display:flex;align-items:end;gap:12px;height:220px;overflow-x:auto;padding:15px 10px 5px;border-bottom:2px solid #d3c0a6;margin-bottom:24px}.chart-col{height:100%;min-width:62px;flex:1;display:flex;flex-direction:column;align-items:center;gap:5px}.chart-col b{font-size:.8rem}.chart-track{flex:1;min-height:20px;width:75%;display:flex;align-items:end}.chart-bar{width:100%;background:#214963;border-radius:5px 5px 0 0;transition:height .5s}.chart-bar.redbar{background:#b42e32}.chart-col small{font-weight:700}.tv-overlay{position:fixed;inset:0;z-index:99;background:radial-gradient(circle at 50% 35%,#31546a,#0c1d2b 70%);display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;text-align:center;color:#fff0d2}.tv-overlay h2{font-size:clamp(2rem,6vw,5rem);z-index:2}.countdown{font-size:clamp(7rem,24vw,17rem);font-weight:900;color:#f6d99d;text-shadow:0 10px 50px #0007;animation:pulse-count .95s ease-in-out infinite}.rolling-die{position:absolute;bottom:12%;left:calc(50% - 70px);font-size:clamp(6rem,14vw,11rem);animation:die-roll 5s cubic-bezier(.2,.7,.3,1) both;filter:drop-shadow(0 12px 10px #0007)}@keyframes pulse-count{0%{transform:scale(.86);opacity:.65}60%{transform:scale(1.06);opacity:1}100%{transform:scale(1);opacity:1}}@keyframes die-roll{0%{transform:translateX(-90vw) rotate(-850deg)}60%{transform:translateX(10vw) rotate(100deg)}80%{transform:translateX(-2vw) rotate(-22deg)}100%{transform:translateX(0) rotate(0)}}.tv-dice{font-size:6rem;animation:slow-wobble 5s ease-in-out infinite}@keyframes slow-wobble{0%,100%{transform:rotate(-9deg)}50%{transform:rotate(9deg)}}.tv-subline{font-size:1.1rem!important;opacity:.75}.tv-rank-row{animation:rank-in .55s both;transform-origin:left}@keyframes rank-in{from{opacity:0;transform:translateX(45px)}to{opacity:1;transform:translateX(0)}}.tv-stat-fact{text-align:center;color:#e5c78f;font-size:clamp(1rem,2.4vw,1.8rem);padding:15px;background:#18364b;border-radius:12px;margin:15px 0}.tv-footer-info{text-align:center;color:#e5c78f;margin:20px}.award-head{text-align:center;background:linear-gradient(#25455c,#102a3d);border:2px solid #cba85e;border-radius:20px;padding:18px;margin:12px 0}.award-head h2{font-size:clamp(2rem,5vw,4rem);color:#e7c17d;margin:5px}.award-head p{margin:0}.award-cup{font-size:5rem;animation:cup-pop 1.2s ease-out both}@keyframes cup-pop{from{opacity:0;transform:scale(.3) rotate(-30deg)}to{opacity:1;transform:scale(1) rotate(0)}}.confetti-layer{position:fixed;inset:0;z-index:80;pointer-events:none;overflow:hidden}.confetti-layer i{position:absolute;top:-30px;width:10px;height:19px;animation:confetti-fall 4.5s linear both}@keyframes confetti-fall{to{transform:translate(50px,110vh) rotate(900deg)}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}


/* V1.6 · refreshed visual system. Pure presentation layer; no API changes. */
:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:#172d42;background:#f3f6f9;font-synthesis:none;--navy:#102d46;--navy2:#173e5d;--accent:#b43c46;--gold:#d4ad70;--line:#e3e9f0;--shadow:0 8px 30px rgba(24,48,70,.065)}
html{scroll-behavior:smooth}body{background:#f3f6f9;color:#172d42;line-height:1.5}header{background:#fff;color:#172d42;border-bottom:1px solid #e4eaf1;box-shadow:0 2px 18px #203d5a0a;padding:16px max(22px,calc((100vw - 1260px)/2));gap:17px;position:relative}header:before{content:"";position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,#173e5d 0%,#b43c46 56%,#d4ad70 100%)}header img{height:70px;width:64px;object-fit:contain;flex-shrink:0}header h1{font-size:clamp(1.45rem,2.8vw,2rem);font-weight:800;letter-spacing:-.045em;line-height:1.15;color:#142e46}header small{color:#9a4850;font-weight:800;letter-spacing:.12em;font-size:.64rem}header span{color:#6b7d8d;font-size:.83rem}main{max-width:1260px;margin:28px auto;padding:0 22px 70px}.panel{background:#fff;border:1px solid var(--line);border-radius:18px;padding:clamp(17px,2.5vw,26px);margin-bottom:18px;box-shadow:var(--shadow)}.panel .panel{background:#fbfcfe;box-shadow:none;border-color:#e8edf3;margin-bottom:0}.panel h2,.panel h3{color:#172f47;letter-spacing:-.035em;font-weight:760}.panel h2{font-size:clamp(1.2rem,2vw,1.52rem)}.panel h3{font-size:1.1rem}.grid{gap:15px}.row{gap:10px}.muted{color:#6a7e8f}.pill{background:#edf3f8;border:1px solid #dfeaf2;color:#31536d;font-weight:650;padding:5px 11px}button,.btn{background:var(--navy);color:#fff;border:1px solid transparent;border-radius:10px;padding:10px 15px;font-weight:650;font-size:.91rem;line-height:1.4;box-shadow:0 2px 5px #173e5d13;transition:background .18s,box-shadow .18s,transform .18s}button:hover,.btn:hover{background:#22577b;box-shadow:0 5px 15px #173e5d25;transform:translateY(-1px)}button:active,.btn:active{transform:translateY(0)}button.red{background:#b43c46}button.red:hover{background:#94303a}button.light{background:#f0f4f8;color:#24445d;border-color:#dce5ed;box-shadow:none}button.light:hover{background:#e4edf5}button:disabled{opacity:.43;transform:none;box-shadow:none}input,select{border:1px solid #cfdce7;border-radius:10px;padding:10px 12px;background:#fff;color:#1c354a;min-height:42px;transition:border-color .15s,box-shadow .15s}input:focus,select:focus{outline:none;border-color:#4782a9;box-shadow:0 0 0 3px #4385ad23}button:focus-visible,.btn:focus-visible{outline:3px solid #d4ad70;outline-offset:3px}label{color:#425c70;font-size:.85rem;gap:7px}table{background:#fff;border-collapse:separate;border-spacing:0;width:100%;font-size:.92rem}th,td{border-bottom:1px solid #e9eef3;padding:12px 11px;vertical-align:middle}th{background:#f1f5f9;color:#466074;font-size:.78rem;text-transform:uppercase;letter-spacing:.035em;font-weight:800;white-space:nowrap}tr:hover td{background:#f8fbfd}.scroll{border:1px solid #e5ebf2;border-radius:12px;overflow:auto}td input[type=number]{min-width:94px}.quick-field{width:110px;min-width:94px}.quick-field.changed{border:2px solid #b43c46;background:#fff7f2;box-shadow:0 0 0 3px #b43c4614}.quick-toolbar{background:#fff;border:1px solid #dce5ee;border-radius:12px;box-shadow:0 8px 26px #18384a20;bottom:12px;z-index:5}.warning{background:#fff6e5;border:1px solid #f2e0bd;color:#79542b;border-radius:11px}.stat-grid{gap:13px}.stat-card{background:linear-gradient(150deg,#fff,#f7fafc);border:1px solid #e3ebf1;border-radius:14px;padding:18px;min-height:118px;box-shadow:0 3px 12px #172f4707}.stat-card small{color:#6b8090;text-transform:uppercase;letter-spacing:.035em;font-size:.7rem}.stat-card strong{font-size:clamp(1.4rem,2.5vw,1.85rem);font-weight:820;color:#183b58;letter-spacing:-.04em}.stat-card span{color:#6d8090}.stat-chart{border-color:#dce6ee}.chart-bar{background:linear-gradient(180deg,#4c89ae,#1b4b6a);border-radius:7px 7px 0 0}.chart-bar.redbar{background:linear-gradient(180deg,#d77c79,#b43c46)}#toast{background:#173e5d;border-radius:12px;box-shadow:0 12px 40px #142c4a44;padding:15px 18px}
/* Dedicated cinematic TV palette */
body.tv{background:radial-gradient(ellipse at 50% -10%,#23465d 0%,#0b1b2b 58%,#081522 100%);color:#f6f4ed;min-height:100vh}body.tv header{background:rgba(8,22,36,.78);border-bottom:1px solid #b8a17d3d;box-shadow:none;padding-top:18px;padding-bottom:18px}body.tv header:before{background:linear-gradient(90deg,transparent,#d6b47b,transparent);height:2px}body.tv header h1{color:#fff5e7}body.tv header small{color:#d7b77e}body.tv header span{color:#aebecb}body.tv main{max-width:1560px;padding:0 30px 55px;margin:28px auto}body.tv .hero{padding:8vh 20px}body.tv .hero h2{color:#fff4e3;letter-spacing:-.055em;font-weight:850;text-shadow:0 6px 36px #0008}body.tv .hero p{color:#d9b77f}body.tv .tvtable{background:#122c40;border:1px solid #426075;border-radius:16px;overflow:hidden;box-shadow:0 25px 70px #0005;border-collapse:separate;border-spacing:0}body.tv .tvtable th{background:#203d52;color:#dfc28c;font-size:clamp(.8rem,1.3vw,1.2rem);text-transform:uppercase;letter-spacing:.09em;border-color:#385569;padding:17px 20px}body.tv .tvtable td{border-color:#29485c;padding:15px 20px;font-weight:650}body.tv .tvtable tr:nth-child(even){background:#17354a}body.tv .tvtable tr:nth-child(odd){background:#102b40}body.tv .tvtable tr:hover td{background:#24465c}body.tv .tvtable tr:nth-child(-n+4) td:first-child{color:#e7c58c;font-weight:850}body.tv .tvtable .masked{color:#e8c991}body.tv .sub{color:#e8c58e;letter-spacing:.06em;font-weight:850;font-size:clamp(1.6rem,3.8vw,3rem);margin:24px 0}body.tv .tv-stat-fact{background:linear-gradient(90deg,#152f43,#23445b,#152f43);border:1px solid #a88b593e;border-radius:14px;color:#f1d49b;padding:19px;margin:20px 0;font-weight:600}body.tv .tv-footer-info{color:#b9c8d3}body.tv footer{color:#b9a481;letter-spacing:.08em;font-size:.9rem}body.tv .award-head{background:radial-gradient(ellipse at 50% 0%,#345268,#11283b 70%);border:1px solid #c4a26b;border-radius:22px;box-shadow:0 15px 60px #0005;padding:28px}body.tv .award-head h2{color:#f0cc89;letter-spacing:-.04em}body.tv .tv-overlay{background:radial-gradient(ellipse at 50% 35%,#2d5067 0%,#0b1c2b 72%)}body.tv .countdown{color:#f6dca7}body.tv .rolling-die{filter:drop-shadow(0 15px 16px #0009)}
@media(max-width:720px){header{padding:13px 16px;gap:11px}header img{width:48px;height:56px}header small{font-size:.57rem;letter-spacing:.07em}header span{font-size:.74rem}main{padding:0 12px 45px;margin:14px auto}.panel{border-radius:14px;padding:16px;margin-bottom:12px}.panel>.row:first-child{align-items:flex-start}.panel>.row:first-child h2{flex-basis:100%}button,.btn{min-height:41px}th,td{padding:10px 9px}.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.stat-card{padding:12px;min-height:104px}.stat-card strong{overflow-wrap:anywhere}body.tv main{padding:0 10px 25px;margin:12px auto}body.tv .tvtable th,body.tv .tvtable td{padding:10px 7px}body.tv .tvtable{font-size:clamp(.8rem,2.8vw,1.2rem)}body.tv .tvtable th{font-size:.66rem;letter-spacing:0}body.tv .sub{margin:14px 0}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}button,.btn{transition:none}}

/* V1.8: Countdown-Würfel in einer eigenen Spur unterhalb des Titels. */
body.tv .tv-overlay{gap:clamp(12px,2vh,28px);padding:clamp(18px,4vh,48px) 20px;justify-content:center}
body.tv .tv-overlay h2{position:relative;margin:0;line-height:1.12;flex:none}
body.tv .tv-overlay .countdown{line-height:1;flex:none}
body.tv .dice-roll-lane{position:relative;width:min(100%,1050px);height:clamp(90px,17vh,180px);flex:none;overflow:hidden;display:flex;align-items:center;justify-content:center}
body.tv .dice-roll-lane .rolling-die{position:relative;left:auto;bottom:auto;font-size:clamp(4rem,9vw,8rem);line-height:1;display:flex;gap:.05em;align-items:center;justify-content:center;white-space:nowrap;animation:die-roll-lane 5s cubic-bezier(.2,.7,.3,1) both}
@keyframes die-roll-lane{0%{transform:translateX(-110vw) rotate(-650deg)}60%{transform:translateX(9vw) rotate(80deg)}80%{transform:translateX(-2vw) rotate(-15deg)}100%{transform:translateX(0) rotate(0)}}
body.tv .tv-dice{display:flex;justify-content:center;align-items:center;gap:.08em;line-height:1.05;flex-wrap:wrap;max-width:100%;font-size:clamp(4rem,8vw,7rem);animation:none}
body.tv .tv-dice .round-die{display:inline-block;animation:slow-wobble 5s ease-in-out infinite}
body.tv .tv-dice .round-die:nth-child(even){animation-direction:reverse}
@media(max-height:600px){body.tv .tv-overlay{gap:8px}body.tv .dice-roll-lane{height:75px}body.tv .dice-roll-lane .rolling-die{font-size:4rem}body.tv .tv-overlay .countdown{font-size:clamp(5rem,18vh,9rem)}body.tv .tv-overlay h2{font-size:clamp(1.5rem,5vh,3rem)}}
@media(prefers-reduced-motion:reduce){body.tv .dice-roll-lane .rolling-die,body.tv .tv-dice .round-die{animation:none!important}}

/* V1.9: TV ranking: fixed title/facts/header, scroll only the participant rows. */
body.tv:has(#tvRankScroll){height:100dvh;overflow:hidden;display:flex;flex-direction:column}
body.tv:has(#tvRankScroll) header{flex:0 0 auto}
body.tv:has(#tvRankScroll) main{width:100%;max-width:1560px;min-height:0;flex:1;display:flex;flex-direction:column;overflow:hidden;margin:0 auto;padding:clamp(8px,1.3vh,18px) 30px 8px}
body.tv:has(#tvRankScroll) .sub{flex:none;margin:clamp(5px,1.3vh,14px) 0}
body.tv:has(#tvRankScroll) .tv-stat-fact{flex:none;margin:clamp(5px,1vh,10px) 0;padding:clamp(8px,1.3vh,15px)}
body.tv .tv-rank-scroll{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:none;overscroll-behavior:contain;border:1px solid #426075;border-radius:16px;background:#122c40;box-shadow:0 20px 50px #0005}
body.tv .tv-rank-scroll::-webkit-scrollbar{display:none}
body.tv .tv-rank-scroll .tvtable{border:0;border-radius:0;box-shadow:none;overflow:visible;table-layout:fixed}
body.tv .tv-rank-scroll .tvtable th{position:sticky;top:0;z-index:2;box-shadow:0 2px 0 #385569}
body.tv .tv-rank-scroll .tvtable th:nth-child(1){width:17%}
body.tv .tv-rank-scroll .tvtable th:nth-child(2){width:39%}
body.tv .tv-rank-scroll .tvtable th:nth-child(3){width:27%}
body.tv .tv-rank-scroll .tvtable th:nth-child(4){width:17%}
body.tv:has(#tvRankScroll) .tv-footer-info{flex:none;margin:6px 0;font-size:.85rem}
body.tv:has(#tvRankScroll) footer{flex:none;padding:6px 0;font-size:.75rem}
body.tv:has(#tvRankScroll) .award-head{flex:none;margin:4px 0;padding:8px}
body.tv:has(#tvRankScroll) .award-head .award-cup{font-size:2rem}
body.tv:has(#tvRankScroll) .award-head h2{font-size:clamp(1.3rem,2.5vw,2.4rem)}
@media(max-width:720px){body.tv:has(#tvRankScroll) main{padding:8px 10px}body.tv .tv-rank-scroll{border-radius:10px}}
@media(prefers-reduced-motion:reduce){body.tv .tv-rank-scroll{scrollbar-width:auto}body.tv .tv-rank-scroll::-webkit-scrollbar{display:block}}

/* V1.9.1: Verhindert, dass globales smooth scrolling die TV-Autoscroll-Animation ausbremst. */
body.tv .tv-rank-scroll{scroll-behavior:auto !important}

/* V1.10 – TV ceremony */
body.tv .ceremony{text-align:center;display:flex;flex-direction:column;justify-content:center;min-height:calc(100dvh - 200px);padding:15px 10px}body.tv .ceremony-eyebrow{font-size:clamp(.75rem,1.4vw,1.1rem);color:#c8a76f;letter-spacing:.2em}body.tv .ceremony h2{font-size:clamp(2rem,5vw,4.4rem);color:#f0cf91;margin:12px 0}body.tv .ceremony p{color:#d9c9ac}.podium{display:flex;justify-content:center;align-items:flex-end;gap:clamp(7px,2vw,28px);margin:clamp(20px,4vh,50px) auto 0;width:min(100%,1080px)}.podium-place{width:33%;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-end}.podium-medal{font-size:clamp(2rem,5vw,4rem);filter:drop-shadow(0 8px 20px #0008)}.podium-name{font-size:clamp(1rem,2.5vw,2rem);font-weight:850;overflow-wrap:anywhere;min-height:2.8em;display:flex;align-items:center;justify-content:center;color:#f7e3b8}.podium-points{font-size:clamp(.8rem,1.8vw,1.5rem);color:#e3d4b6;margin:5px 0 15px}.podium-block{width:100%;border-radius:15px 15px 0 0;display:grid;place-items:center;font-size:clamp(3rem,7vw,6rem);font-weight:900;color:#fff;text-shadow:0 4px 14px #0005;box-shadow:inset 0 6px 20px #fff2,0 20px 50px #0006}.podium-1 .podium-block{height:clamp(130px,25vh,250px);background:linear-gradient(135deg,#f0ce7b,#956319)}.podium-2 .podium-block{height:clamp(100px,18vh,180px);background:linear-gradient(135deg,#aab7c6,#53667b)}.podium-3 .podium-block{height:clamp(75px,13vh,135px);background:linear-gradient(135deg,#dba07b,#845036)}.podium-place.unveiled .podium-name{animation:podium-reveal .8s ease-out both}@keyframes podium-reveal{from{opacity:0;transform:translateY(24px) scale(.9)}to{opacity:1;transform:translateY(0) scale(1)}}.ceremony-bottom{margin-top:20px}@media(max-height:650px){body.tv .ceremony{min-height:0}.podium{margin:10px auto 0}.podium-name{min-height:2em}.podium-1 .podium-block{height:110px}.podium-2 .podium-block{height:80px}.podium-3 .podium-block{height:60px}}
/* V1.11: mobile Erfassung und Bedienbarkeit */
@media(max-width:700px){
 .quick-field{min-width:88px;font-size:18px;padding:12px 8px}
 .quick-toolbar{position:sticky;bottom:0;background:var(--panel,#fff);z-index:10;padding:12px 8px;box-shadow:0 -3px 14px #0002}
 .scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
 button,select{min-height:42px}
}
