:root{
  --bg:#f5f1ec;
  --surface:#ffffff;
  --line:#e8ddd2;
  --text:#17171d;
  --muted:#67615d;
  --red:#cf2f31;
  --red-dark:#b02529;
  --soft:#fff8f7;
  --shadow:0 28px 70px rgba(48,34,23,.12);
  --shadow-sm:0 10px 24px rgba(48,34,23,.08);
  --radius:26px;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(1200px 620px at 50% -10%, rgba(255,255,255,.95), transparent 65%),
    linear-gradient(180deg,#faf7f3 0%, var(--bg) 100%);
  line-height:1.45;
}
a{text-decoration:none;color:inherit}
img{display:block;max-width:100%}
.wrap{max-width:none;padding:0 0 70px}
.card,.panel{background:linear-gradient(180deg,#fff,#fffaf5);border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow-sm);padding:24px}
.card h1,.panel h1{margin:0 0 10px;font-size:clamp(2rem,3vw,3rem);line-height:1.05;letter-spacing:-.05em}
.card h2,.panel h2{margin:0 0 8px;font-size:1.55rem;line-height:1.1;letter-spacing:-.04em}
.card h3,.panel h3{margin:0 0 8px}
p{margin:0 0 12px;color:var(--muted)}
.badge,.pill{display:inline-flex;align-items:center;gap:7px;padding:8px 11px;border-radius:999px;border:1px solid var(--line);background:#fff;color:#554e49;font-weight:750;font-size:.88rem}
.kicker{display:inline-flex;align-items:center;padding:9px 14px;border-radius:999px;background:#fff2f2;color:var(--red);font-weight:850;border:1px solid #efd1d1;font-size:.88rem}
.btnbar{display:flex;flex-wrap:wrap;gap:12px;margin-top:14px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:50px;padding:0 18px;border-radius:15px;border:1px solid #d8cbc0;background:#fff;font-weight:850;color:#232029;box-shadow:var(--shadow-sm);cursor:pointer}
.btn--primary,.btn--danger{background:linear-gradient(180deg,#d93d3d,#c62929);border-color:#c62929;color:#fff}.btn--danger{background:linear-gradient(180deg,#fff4f4,#fff);border-color:#f0cfcf;color:#a12626}
.flash{padding:14px 16px;border-radius:16px;border:1px solid var(--line);margin:18px auto;max-width:1280px;background:#fff}
.flash--ok{background:#f4fff7;border-color:#cce9d8;color:#226042}.flash--err{background:#fff5f5;border-color:#f2cccc;color:#8c1f28}
.field{margin-bottom:14px}.field label{display:block;margin:0 0 8px;font-weight:850;color:#3f3934}
.field input,.field select,.field textarea{width:100%;min-height:54px;padding:0 16px;border-radius:15px;border:1px solid #dacdc2;background:#fff;color:var(--text);font:inherit;outline:none}
.field textarea{padding:14px 16px;min-height:120px}
.table{width:100%;border-collapse:separate;border-spacing:0;overflow:hidden;border:1px solid var(--line);border-radius:18px;background:#fff}
.table th,.table td{padding:14px;border-bottom:1px solid #efe6de;text-align:left;font-size:.95rem}.table th{font-size:.78rem;letter-spacing:.05em;text-transform:uppercase;color:#7e756d;background:#fbf7f2}.table tr:last-child td{border-bottom:0}
.grid2,.row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.sectionHead{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;flex-wrap:wrap;margin-bottom:18px}
.copybox,.infoStrip,.explainBox{padding:15px 16px;border-radius:16px;border:1px solid var(--line);background:#fffaf6;color:#655d56;word-break:break-word}

.topbar{position:sticky;top:0;z-index:50;background:rgba(252,249,245,.92);backdrop-filter:blur(14px);border-bottom:1px solid rgba(222,206,192,.75)}
.topbar__inner{max-width:1280px;margin:0 auto;padding:14px 18px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.brand{display:flex;align-items:center;gap:18px;min-width:0}.brand__logo{width:112px;height:auto;flex:0 0 auto}.brand__copy{min-width:0}.brand__name{font-size:1.9rem;font-weight:950;letter-spacing:-.05em;line-height:1.0}.brand__name span{color:var(--red)}.brand__sub{margin-top:6px;color:var(--muted);font-size:.98rem}.topnav{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.navlink{padding:12px 14px;border-radius:14px;color:#3c3834;font-weight:700;font-size:.96rem;border:1px solid transparent;transition:.18s ease;background:transparent}.navlink:hover{background:#fff;border-color:var(--line);box-shadow:var(--shadow-sm)}.navlink.is-active{color:var(--red);background:#fff;border-color:#efd0d0;box-shadow:var(--shadow-sm)}

/* desktop premium homepage */
.home-premium .wrap{padding-bottom:28px}
.home-premium .mobile-nav,.home-premium .footer{display:none}
.tm-browser{width:min(1280px, calc(100vw - 36px));margin:10px auto 16px;border-radius:26px;background:#fff;border:1px solid rgba(214,206,198,.85);box-shadow:var(--shadow);overflow:hidden}
.tm-page{background:#fff}
.tm-page-head{height:72px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 40px;border-bottom:1px solid #eee7df}
.tm-logo img{width:158px;height:auto}
.tm-nav{display:flex;align-items:center;gap:34px;font-weight:700;color:#58534e;font-size:.96rem}
.tm-nav a{height:72px;display:flex;align-items:center;border-bottom:3px solid transparent}
.tm-nav a.active{color:var(--red);border-color:var(--red);font-weight:800}
.tm-menu{display:none;background:transparent;border:0;font-size:24px;cursor:pointer}
.tm-main{padding:12px 40px 10px}
.tm-hero{display:grid;grid-template-columns:.58fr .86fr;min-height:380px;position:relative;overflow:hidden;border-radius:0}
.tm-hero-copy{position:relative;z-index:3;padding:34px 0 26px;background:linear-gradient(90deg,#fff 0%,#fff 76%,rgba(255,255,255,.63) 100%)}
.tm-kicker{display:inline-flex;padding:8px 14px;border-radius:999px;background:#fff2f2;color:var(--red);border:1px solid #efd1d1;font-weight:900;font-size:.86rem}
.tm-hero h1{margin:18px 0 12px;font-size:4.15rem;line-height:.98;letter-spacing:-.065em;font-weight:950;max-width:520px}
.tm-red{color:var(--red)}
.tm-hero p{max-width:510px;font-size:1rem;color:#5f5853;margin-bottom:20px}
.tm-actions{display:flex;gap:14px;flex-wrap:wrap}.tm-btn{min-height:48px;display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:0 24px;border:1px solid #d8cbc0;border-radius:13px;background:#fff;box-shadow:var(--shadow-sm);font-weight:850;font-size:1rem}.tm-btn-red{background:linear-gradient(180deg,#d73a3a,#c4282a);border-color:#c4282a;color:#fff}
.tm-hero-image{position:absolute;top:0;right:0;bottom:0;width:63%;overflow:hidden}.tm-hero-image img{width:100%;height:100%;object-fit:cover;object-position:center center}.tm-hero-image:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#fff 0%,rgba(255,255,255,.8) 12%,rgba(255,255,255,.18) 29%,rgba(255,255,255,0) 42%),linear-gradient(180deg,rgba(255,255,255,0) 74%,#fff 100%);z-index:1}
.tm-feature-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:-4px;position:relative;z-index:5}
.tm-feature{min-height:88px;display:flex;align-items:center;gap:18px;padding:18px 18px;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow-sm)}
.tm-feature-icon{width:56px;height:56px;flex:0 0 56px;border-radius:16px;display:flex;align-items:center;justify-content:center;color:var(--red);background:#fff7f7;border:1px solid #f1d6d6;font-size:1.7rem;font-weight:900}
.tm-feature h3{font-size:1rem;margin:0 0 4px}.tm-feature p{font-size:.91rem;margin:0}
.tm-bottom-grid{display:grid;grid-template-columns:.95fr 1.05fr;gap:34px;margin-top:28px;align-items:start}.tm-section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.tm-live-block h2,.tm-steps-block h2{margin:0;font-size:1.8rem;letter-spacing:-.04em}.tm-all-link{display:none;font-weight:800;color:var(--red)}
.tm-live-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.tm-live-card{background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow-sm);padding:12px}.tm-live-img{width:100%;aspect-ratio:1.34/1;border-radius:12px;overflow:hidden;position:relative;margin-bottom:12px;background:#f7efe6}.tm-live-img img{width:100%;height:100%;object-fit:cover}.tm-live-img span{position:absolute;left:8px;top:8px;background:var(--red);color:#fff;font-size:.66rem;font-weight:900;padding:4px 7px;border-radius:5px}.tm-live-info h3{font-size:1rem;line-height:1.15;margin:0 0 3px}.tm-live-info strong{display:block;font-size:.84rem;margin-bottom:8px}.tm-live-info p,.tm-live-info small{display:block;color:var(--muted);font-size:.84rem;margin:0 0 8px}.tm-mini-btn{margin-top:8px;min-height:40px;display:flex;align-items:center;justify-content:center;border:1px solid #ead3d3;border-radius:10px;color:var(--red);font-weight:900;background:#fff;font-size:.92rem}
.tm-steps-block{border-left:1px solid var(--line);padding-left:34px;position:relative;min-height:260px}.tm-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.tm-steps article{position:relative;text-align:center}.tm-steps article>span{position:absolute;top:-8px;left:50%;transform:translateX(-50%);z-index:2;width:22px;height:22px;border-radius:50%;background:var(--red);color:#fff;display:flex;align-items:center;justify-content:center;font-size:.72rem;font-weight:900}.tm-steps .circle{width:62px;height:62px;margin:12px auto 12px;border-radius:50%;border:1px solid var(--line);display:flex;align-items:center;justify-content:center;font-size:1.55rem;background:#fff;box-shadow:var(--shadow-sm)}.tm-steps h3{margin:0 0 7px;font-size:.95rem}.tm-steps p{margin:0;font-size:.82rem}.tm-lineart{position:absolute;right:0;bottom:-6px;width:190px;opacity:.7;pointer-events:none}
.tm-trust{margin-top:20px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:var(--shadow-sm);overflow:hidden}.tm-trust article{display:grid;grid-template-columns:40px 1fr;column-gap:14px;padding:18px 22px;border-right:1px solid #efe5dc}.tm-trust article:last-child{border-right:0}.tm-trust span{grid-row:1 / span 2;color:#87827e;font-size:1.65rem;line-height:1}.tm-trust strong{font-size:.98rem}.tm-trust p{margin:3px 0 0;font-size:.88rem}

/* scoring + general subpages */
.scoregrid{display:grid;grid-template-columns:1fr;gap:14px}.scorecard{border:1px solid var(--line);background:#fff;border-radius:22px;padding:16px;box-shadow:var(--shadow-sm)}.scorehead{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:12px}.scorename .n{font-size:1.15rem;font-weight:900}.scorename .m{margin-top:6px}.scorebuttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.arrowcol{border:1px solid var(--line);border-radius:18px;padding:12px;background:#fffaf6}.arrowtitle{font-weight:850;font-size:.9rem;margin-bottom:10px;color:#4d4640}.btnrow{display:flex;gap:8px;flex-wrap:wrap}.btn-score{min-height:46px;padding:0 14px;border-radius:14px;font-weight:950}.btn-score--on{background:linear-gradient(180deg,#d93d3d,#c62929);border-color:#c62929;color:#fff}.stationControl{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;flex-wrap:wrap}.stationButtons{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap}.progressline{height:12px;border-radius:999px;background:#efe3d8;border:1px solid #e3d2c3;overflow:hidden;margin-top:18px}.progressbar{height:100%;border-radius:999px;background:linear-gradient(90deg,#d84141,#b72323)}
.mobile-nav{display:none}.footer{padding:0 18px 36px}.footer__inner{max-width:1280px;margin:0 auto;border-top:1px solid var(--line);padding-top:18px;color:var(--muted);display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}

/* homepage mobile */
@media (max-width: 760px){
  .topbar__inner{gap:12px;padding:12px 14px}.brand{gap:12px}.brand__logo{width:80px}.brand__name{font-size:1.2rem}.brand__sub{font-size:.86rem;margin-top:3px}.topnav{display:none}
  body.home-premium{background:#fff}
  .home-premium .wrap{padding-bottom:18px}
  .home-premium .mobile-nav,.home-premium .footer{display:none!important}
  .tm-browser{width:100%;margin:0;border:0;border-radius:0;box-shadow:none;overflow:visible;background:#fff}
  .tm-page-head{height:82px;padding:0 22px;border-bottom:1px solid #eee7df}.tm-logo img{width:102px}.tm-nav{display:none}.tm-menu{display:block}
  .tm-main{padding:0 22px 18px}
  .tm-hero{display:block;min-height:0;padding-top:30px;position:relative;overflow:hidden}
  .tm-hero-copy{padding:0 0 14px;background:transparent;position:relative;z-index:3}.tm-kicker{font-size:.78rem;padding:7px 11px}
  .tm-hero h1{font-size:2.1rem;line-height:1.02;letter-spacing:-.055em;margin:18px 0 10px;max-width:320px}.tm-hero p{font-size:.94rem;line-height:1.46;max-width:320px;margin-bottom:18px}
  .tm-actions{display:grid;grid-template-columns:1fr;gap:10px;width:230px}.tm-btn{min-height:52px;padding:0 16px;border-radius:12px;font-size:.92rem}
  .tm-hero-image{position:absolute;right:-112px;top:144px;width:315px;height:330px;z-index:1;opacity:.98}.tm-hero-image img{object-position:left center}.tm-hero-image:before{background:linear-gradient(90deg,#fff 0%,rgba(255,255,255,.55) 18%,rgba(255,255,255,0) 55%),linear-gradient(180deg,rgba(255,255,255,0) 72%,#fff 100%)}
  .tm-feature-row{display:block;margin-top:16px;position:relative;z-index:4;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:var(--shadow-sm);overflow:hidden}.tm-feature{min-height:0;border:0;box-shadow:none;border-radius:0;border-bottom:1px solid #eee3da;padding:18px}.tm-feature:last-child{border-bottom:0}.tm-feature-icon{width:48px;height:48px;flex-basis:48px;font-size:1.45rem;border:0;background:transparent}.tm-feature h3{font-size:1rem}.tm-feature p{font-size:.88rem}
  .tm-bottom-grid{display:block;margin-top:26px}.tm-section-head{margin-bottom:14px}.tm-live-block h2,.tm-steps-block h2{font-size:1.45rem}.tm-all-link{display:inline-block;font-size:.95rem}
  .tm-live-list{display:grid;grid-template-columns:1fr;gap:14px}.tm-live-card{display:grid;grid-template-columns:100px 1fr;gap:14px;padding:12px;border-radius:18px}.tm-live-img{width:100px;height:100px;aspect-ratio:auto;margin:0}.tm-live-list .tm-live-card:nth-child(n+2){display:none}.tm-mini-btn{width:146px;min-height:42px}
  .tm-steps-block{border-left:0;padding-left:0;margin-top:30px}.tm-steps{grid-template-columns:1fr;gap:12px}.tm-steps article{text-align:left;display:grid;grid-template-columns:52px 1fr;gap:12px;align-items:start}.tm-steps article>span{left:26px;top:-4px}.tm-steps .circle{width:52px;height:52px;margin:0;font-size:1.3rem}.tm-lineart{display:none}
  .tm-trust{grid-template-columns:1fr;margin-top:24px;border-radius:18px}.tm-trust article{border-right:0;border-bottom:1px solid #eee5dc;padding:18px}.tm-trust article:last-child{border-bottom:0}
  .grid2,.row,.scorebuttons{grid-template-columns:1fr}.card,.panel{border-radius:20px;margin:14px;padding:18px}.btn,.btnbar .btn{width:100%}.stationButtons{width:100%}.stationButtons .field,.stationButtons .btn{width:100%;flex:1 1 100%}
}




/* ===== V20: Unterseiten im Premium-Look ===== */

body:not(.home-premium) .wrap{
  width:min(1280px, calc(100vw - 36px));
  margin:0 auto;
  padding:30px 0 90px;
}

body:not(.home-premium){
  background:
    radial-gradient(1000px 520px at 20% -10%, rgba(255,255,255,.9), transparent 68%),
    radial-gradient(800px 440px at 90% 0%, rgba(207,47,49,.06), transparent 60%),
    linear-gradient(180deg,#faf7f3 0%,#f4efe9 100%);
}

.topbar{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.9);
  backdrop-filter:blur(16px);
  border-bottom:1px solid #eee4dc;
  box-shadow:0 6px 22px rgba(48,34,23,.035);
}
.topbar__inner{
  width:min(1280px, calc(100vw - 36px));
  max-width:none;
  margin:0 auto;
  padding:14px 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}
.brand{
  display:flex;
  align-items:center;
  gap:16px;
  min-width:0;
}
.brand__logo{
  width:128px;
  height:auto;
  object-fit:contain;
  flex:0 0 auto;
}
.brand__name{
  font-size:1.65rem;
  line-height:1;
  font-weight:950;
  letter-spacing:-.05em;
}
.brand__name span{color:var(--red)}
.brand__sub{
  margin-top:6px;
  color:var(--muted);
  font-size:.94rem;
}
.topnav{
  display:flex;
  align-items:center;
  gap:8px;
  justify-content:flex-end;
}
.navlink{
  min-height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 14px;
  border-radius:13px;
  border:1px solid transparent;
  font-weight:800;
  color:#514c48;
  font-size:.94rem;
}
.navlink:hover{
  background:#fff;
  border-color:var(--line);
  box-shadow:var(--shadow-sm);
}
.navlink.is-active{
  color:var(--red);
  background:#fff7f7;
  border-color:#f0d3d3;
}

/* polished page shell */
.subpage-hero,
.createHero,
.lobbyHero,
.scoreTop{
  position:relative;
  overflow:hidden;
  border-radius:30px;
  padding:34px;
  background:
    linear-gradient(90deg,#fff 0%,rgba(255,255,255,.96) 54%,rgba(255,255,255,.78) 100%),
    url('img/hero-course-premium.svg') right center / auto 120% no-repeat;
  border:1px solid var(--line);
  box-shadow:var(--shadow);
}
.subpage-hero::after,
.createHero::after,
.lobbyHero::after,
.scoreTop::after{
  content:"";
  position:absolute;
  right:-80px;
  bottom:-80px;
  width:360px;
  height:220px;
  background:url('img/footer-lineart.svg') center / contain no-repeat;
  opacity:.18;
  pointer-events:none;
}
.subpage-hero > *,
.createHero > *,
.lobbyHero > *,
.scoreTop > *{
  position:relative;
  z-index:1;
}
.subpage-hero h1,
.createHero h1,
.lobbyHero h1,
.scoreTop h1{
  max-width:780px;
  font-size:clamp(2.4rem,4vw,4.4rem);
  line-height:.98;
  letter-spacing:-.07em;
  margin:16px 0 14px;
}
.subpage-hero p,
.createHero p,
.lobbyHero p,
.scoreTop p{
  max-width:760px;
  font-size:1.05rem;
}

/* cards and sections */
body:not(.home-premium) .card,
body:not(.home-premium) .panel{
  background:linear-gradient(180deg,#fff,#fffaf6);
  border:1px solid #e9ddd2;
  border-radius:26px;
  box-shadow:0 18px 45px rgba(48,34,23,.08);
  padding:26px;
  margin-bottom:18px;
}
body:not(.home-premium) .card h1,
body:not(.home-premium) .panel h1{
  font-size:clamp(2rem,3vw,3rem);
  letter-spacing:-.06em;
}
body:not(.home-premium) .card h2,
body:not(.home-premium) .panel h2{
  font-size:1.65rem;
  letter-spacing:-.045em;
}
.sectionHead{
  align-items:flex-start;
}
.sectionHead h1,
.sectionHead h2{
  margin-bottom:8px;
}

.kicker{
  display:inline-flex;
  align-items:center;
  padding:8px 13px;
  border-radius:999px;
  background:#fff2f2;
  color:var(--red);
  border:1px solid #efd1d1;
  font-weight:900;
  font-size:.84rem;
}
.badge,
.pill{
  background:#fff;
  border:1px solid #e7d9cf;
  color:#4f4842;
  box-shadow:0 4px 12px rgba(48,34,23,.035);
}
.btn{
  border-radius:14px;
  min-height:48px;
  font-weight:900;
}
.btn--primary{
  background:linear-gradient(180deg,#d93d3d,#c62929);
  border-color:#c62929;
  color:#fff;
}
.btn--danger{
  background:#fff7f7;
  border-color:#f0cfcf;
  color:#a12626;
}

/* forms */
.field label{
  font-weight:900;
  color:#342f2b;
}
.field input,
.field select,
.field textarea{
  border-radius:16px;
  border:1px solid #d9cbbf;
  background:#fff;
  min-height:56px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8);
}
.field input:focus,
.field select:focus,
.field textarea:focus{
  border-color:#d86767;
  box-shadow:0 0 0 4px rgba(207,47,49,.08);
}

/* form info areas */
.infoStrip,
.explainBox,
.copybox{
  border-radius:18px;
  border:1px solid #eaded5;
  background:#fffaf6;
}
.infoStrip{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}
.grid2{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}

/* join page */
.joinCard{
  max-width:980px;
  margin-left:auto;
  margin-right:auto;
}
.invitePreview{
  display:grid;
  grid-template-columns:1fr auto;
  gap:18px;
  align-items:center;
  padding:22px;
  border-radius:22px;
  border:1px solid #e6d9cf;
  background:linear-gradient(180deg,#fff,#fff7f3);
  box-shadow:var(--shadow-sm);
  margin-bottom:16px;
}
.invitePreview small{
  display:block;
  color:var(--muted);
  font-size:.78rem;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  margin-bottom:8px;
}
.bigCode{
  font-size:2rem;
  font-weight:1000;
  letter-spacing:.1em;
  color:var(--red);
  padding:14px 18px;
  border-radius:18px;
  background:#fff4f4;
  border:1px solid #f0d2d2;
}
.participantPreview{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:12px 0 18px;
}

/* lobby */
.nextActionCard{
  border-style:solid;
  background:linear-gradient(180deg,#fff,#fff7f4);
}
.hostSaveBox{
  padding:20px;
  border-radius:22px;
  border:1px solid #cfead8;
  background:linear-gradient(180deg,#f5fff8,#fff);
  box-shadow:var(--shadow-sm);
}

/* score page */
.scoreStationCard{
  background:linear-gradient(180deg,#fff,#fffaf6);
}
.stationControl{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:18px;
  flex-wrap:wrap;
}
.stationButtons{
  display:flex;
  gap:10px;
  align-items:flex-end;
  flex-wrap:wrap;
}
.progressline{
  height:12px;
  border-radius:999px;
  background:#efe3d8;
  border:1px solid #e3d2c3;
  overflow:hidden;
  margin-top:18px;
}
.progressbar{
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,#d84141,#b72323);
}
.scoregrid{
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
}
.scorecard{
  border:1px solid var(--line);
  background:#fff;
  border-radius:22px;
  padding:16px;
  box-shadow:var(--shadow-sm);
}
.scorehead{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
  margin-bottom:12px;
}
.scorename .n{
  font-size:1.15rem;
  font-weight:900;
}
.scorename .m{margin-top:6px}
.scorebuttons{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.arrowcol{
  border:1px solid var(--line);
  border-radius:18px;
  padding:12px;
  background:#fffaf6;
}
.arrowtitle{
  font-weight:850;
  font-size:.9rem;
  margin-bottom:10px;
  color:#4d4640;
}
.btnrow{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.btn-score{
  min-height:46px;
  padding:0 14px;
  border-radius:14px;
  font-weight:950;
}
.btn-score--on{
  background:linear-gradient(180deg,#d93d3d,#c62929);
  border-color:#c62929;
  color:#fff;
}

/* leaderboard */
body:not(.home-premium) .table{
  background:#fff;
  border-radius:20px;
  overflow:hidden;
  box-shadow:var(--shadow-sm);
}
.table th{
  background:#fbf6f1;
  color:#7d726b;
  font-size:.78rem;
  letter-spacing:.06em;
}
.table td,
.table th{
  border-bottom:1px solid #eee3da;
}

/* Wertungssysteme */
.profileGrid,
.systemGrid,
.sessionGrid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}
.profileCard,
.systemCard,
.sessionCard{
  border:1px solid var(--line);
  border-radius:22px;
  background:#fff;
  box-shadow:var(--shadow-sm);
  padding:18px;
}

/* mobile */
@media (max-width: 760px){
  body:not(.home-premium) .wrap{
    width:100%;
    padding:14px 14px 96px;
  }
  .topbar__inner{
    width:100%;
    padding:12px 14px;
  }
  .brand__logo{width:82px}
  .brand__copy{display:none}
  .topnav{display:none}

  body:not(.home-premium) .card,
  body:not(.home-premium) .panel{
    border-radius:22px;
    padding:18px;
    margin-bottom:14px;
  }
  .subpage-hero,
  .createHero,
  .lobbyHero,
  .scoreTop{
    border-radius:24px;
    padding:22px;
    background:
      linear-gradient(90deg,#fff 0%,rgba(255,255,255,.95) 100%),
      url('img/hero-course-premium.svg') right center / auto 110% no-repeat;
  }
  .subpage-hero h1,
  .createHero h1,
  .lobbyHero h1,
  .scoreTop h1{
    font-size:2.4rem;
  }
  .grid2,
  .row,
  .invitePreview,
  .scorebuttons,
  .profileGrid,
  .systemGrid,
  .sessionGrid{
    grid-template-columns:1fr;
  }
  .bigCode{
    text-align:center;
    font-size:1.55rem;
  }
  .btn,
  .btnbar .btn{
    width:100%;
  }
  .stationButtons{
    width:100%;
  }
  .stationButtons .field,
  .stationButtons .btn{
    width:100%;
    flex:1 1 100%;
  }
  .mobile-nav{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    position:fixed;
    left:12px;
    right:12px;
    bottom:12px;
    z-index:60;
    border:1px solid var(--line);
    border-radius:20px;
    background:rgba(255,255,255,.96);
    box-shadow:0 18px 35px rgba(43,28,17,.14);
    overflow:hidden;
  }
  .mobile-nav__item{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:3px;
    padding:11px 5px;
    font-size:.76rem;
    font-weight:850;
    color:#5e5751;
  }
  .mobile-nav__item.is-active{
    background:#fff4f4;
    color:var(--red);
  }
}

/* homepage keeps v19 rules above; footer hidden only there */
.home-premium .footer{display:none}




/* =========================================================
   V21 FINAL: Breite Desktop-Seite + Unterseiten aus einem Guss
   ========================================================= */

/* STARTSEITE DESKTOP BREITER UND LUFTIGER */
@media (min-width: 761px){
  .home-premium .wrap{
    padding-bottom:40px;
  }

  .tm-browser{
    width:min(1680px, calc(100vw - 220px));
    margin:18px auto 34px;
    border-radius:30px;
  }

  .tm-page-head{
    height:84px;
    padding:0 74px;
  }

  .tm-logo img{
    width:178px;
  }

  .tm-nav{
    gap:42px;
    font-size:1rem;
  }

  .tm-nav a{
    height:84px;
  }

  .tm-main{
    padding:16px 74px 24px;
  }

  .tm-hero{
    min-height:500px;
    grid-template-columns:.62fr 1fr;
  }

  .tm-hero-copy{
    padding:56px 0 44px;
    max-width:680px;
  }

  .tm-hero h1{
    font-size:clamp(4.6rem,4.75vw,6.25rem);
    line-height:.98;
    max-width:680px;
    margin:18px 0 18px;
  }

  .tm-hero p{
    max-width:610px;
    font-size:1.08rem;
    line-height:1.48;
  }

  .tm-actions{
    gap:16px;
  }

  .tm-btn{
    min-height:54px;
    padding:0 26px;
  }

  .tm-hero-image{
    width:61%;
  }

  .tm-feature-row{
    gap:24px;
    margin-top:-22px;
  }

  .tm-feature{
    min-height:106px;
    padding:20px 24px;
    border-radius:18px;
  }

  .tm-feature-icon{
    width:62px;
    height:62px;
    flex-basis:62px;
  }

  .tm-bottom-grid{
    grid-template-columns:.98fr 1.18fr;
    gap:54px;
    margin-top:42px;
  }

  .tm-live-block h2,
  .tm-steps-block h2{
    font-size:2rem;
  }

  .tm-live-list{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:16px;
  }

  .tm-live-card{
    display:grid;
    grid-template-columns:104px 1fr;
    gap:14px;
    align-items:stretch;
    min-height:142px;
    padding:14px;
    border-radius:18px;
  }

  .tm-live-img{
    width:104px;
    height:104px;
    aspect-ratio:auto;
    margin:0;
  }

  .tm-live-info h3{
    font-size:1rem;
  }

  .tm-live-info strong{
    font-size:.83rem;
  }

  .tm-live-info p,
  .tm-live-info small{
    font-size:.84rem;
  }

  .tm-mini-btn{
    min-height:38px;
    margin-top:8px;
    font-size:.88rem;
  }

  .tm-steps-block{
    padding-left:48px;
    min-height:250px;
  }

  .tm-steps{
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:28px;
  }

  .tm-steps .circle{
    width:74px;
    height:74px;
    font-size:1.8rem;
    margin-bottom:16px;
  }

  .tm-steps h3{
    font-size:1rem;
  }

  .tm-steps p{
    font-size:.86rem;
    max-width:140px;
    margin-left:auto;
    margin-right:auto;
  }

  .tm-lineart{
    width:230px;
    right:6px;
    bottom:-8px;
    opacity:.68;
  }

  .tm-trust{
    margin-top:30px;
  }

  .tm-trust article{
    padding:22px 30px;
  }
}

/* DESKTOP BEI MITTLERER BREITE */
@media (min-width: 761px) and (max-width: 1500px){
  .tm-browser{
    width:min(1440px, calc(100vw - 60px));
  }
  .tm-page-head,
  .tm-main{
    padding-left:44px;
    padding-right:44px;
  }
  .tm-hero h1{
    font-size:4.55rem;
  }
  .tm-bottom-grid{
    gap:34px;
  }
  .tm-steps{
    gap:18px;
  }
  .tm-lineart{
    width:180px;
    opacity:.45;
  }
}

/* UNTERSEITEN: echte Premium-Seite, nicht Backend */
body:not(.home-premium) .wrap{
  width:min(1480px, calc(100vw - 100px));
  padding-top:34px;
}

body:not(.home-premium) .topbar__inner{
  width:min(1480px, calc(100vw - 100px));
}

body:not(.home-premium) .card,
body:not(.home-premium) .panel{
  border-radius:28px;
  padding:30px;
  margin-bottom:22px;
}

body:not(.home-premium) .createHero,
body:not(.home-premium) .lobbyHero,
body:not(.home-premium) .scoreTop,
body:not(.home-premium) .subpage-hero{
  min-height:260px;
  display:flex;
  align-items:center;
  margin-bottom:24px;
  padding:42px;
  border-radius:32px;
}

body:not(.home-premium) .createHero h1,
body:not(.home-premium) .lobbyHero h1,
body:not(.home-premium) .scoreTop h1{
  font-size:clamp(3.2rem,4vw,5.4rem);
  max-width:900px;
}

body:not(.home-premium) .createHero p,
body:not(.home-premium) .lobbyHero p,
body:not(.home-premium) .scoreTop p{
  font-size:1.12rem;
  max-width:840px;
}

body:not(.home-premium) .joinCard{
  max-width:1180px;
}

body:not(.home-premium) .sectionHead h1,
body:not(.home-premium) .sectionHead h2{
  font-size:clamp(1.9rem,2.2vw,2.8rem);
}

body:not(.home-premium) form{
  max-width:none;
}

body:not(.home-premium) .field input,
body:not(.home-premium) .field select,
body:not(.home-premium) .field textarea{
  font-size:1rem;
}

body:not(.home-premium) .btnbar{
  gap:14px;
}

body:not(.home-premium) .table{
  font-size:1rem;
}

/* Score-Erfassung breiter und sauberer */
body:not(.home-premium) .scoregrid{
  grid-template-columns:repeat(2,minmax(0,1fr));
}

body:not(.home-premium) .scorecard{
  padding:20px;
}

body:not(.home-premium) .btn-score{
  min-width:62px;
}

/* Wertungssysteme / Profile schöner */
.profileGrid,
.systemGrid,
.sessionGrid{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}

/* Mobil bleibt schlank */
@media (max-width: 760px){
  body:not(.home-premium) .wrap{
    width:100%;
    padding:14px 14px 96px;
  }

  body:not(.home-premium) .topbar__inner{
    width:100%;
  }

  body:not(.home-premium) .createHero,
  body:not(.home-premium) .lobbyHero,
  body:not(.home-premium) .scoreTop,
  body:not(.home-premium) .subpage-hero{
    min-height:auto;
    padding:22px;
    border-radius:24px;
  }

  body:not(.home-premium) .createHero h1,
  body:not(.home-premium) .lobbyHero h1,
  body:not(.home-premium) .scoreTop h1{
    font-size:2.45rem;
  }

  body:not(.home-premium) .card,
  body:not(.home-premium) .panel{
    padding:18px;
    border-radius:22px;
  }

  body:not(.home-premium) .scoregrid,
  .profileGrid,
  .systemGrid,
  .sessionGrid{
    grid-template-columns:1fr;
  }
}




/* =========================================================
   V22: Layoutfehler unten final korrigiert
   ========================================================= */

@media (min-width: 761px){
  /* gesamte Browserfläche etwas kontrollierter und stabiler */
  .tm-browser{
    width:min(1540px, calc(100vw - 120px));
  }

  .tm-main{
    padding-left:56px;
    padding-right:56px;
    padding-bottom:34px;
  }

  .tm-page-head{
    padding-left:56px;
    padding-right:56px;
  }

  /* Hero weniger brutal hoch, damit unten Luft bleibt */
  .tm-hero{
    min-height:455px;
  }

  .tm-hero-copy{
    padding-top:42px;
    padding-bottom:34px;
  }

  .tm-hero h1{
    font-size:clamp(4.1rem,4.25vw,5.35rem);
    max-width:610px;
  }

  .tm-hero p{
    max-width:560px;
  }

  .tm-feature-row{
    margin-top:-16px;
  }

  /* Unterer Bereich: beide Spalten bekommen genug Platz */
  .tm-bottom-grid{
    grid-template-columns: minmax(540px,.95fr) minmax(520px,1fr);
    gap:42px;
    align-items:start;
    margin-top:38px;
  }

  /* Live-Karten: NICHT mehr zu breite Bildspalte */
  .tm-live-list{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:14px;
  }

  .tm-live-card{
    display:block;
    min-height:auto;
    padding:12px;
    border-radius:18px;
  }

  .tm-live-img{
    width:100%;
    height:104px;
    aspect-ratio:auto;
    margin:0 0 12px;
    border-radius:14px;
  }

  .tm-live-info h3{
    font-size:.98rem;
    line-height:1.18;
    min-height:38px;
    margin-bottom:2px;
  }

  .tm-live-info strong{
    font-size:.82rem;
    line-height:1.15;
    margin-bottom:7px;
  }

  .tm-live-info p,
  .tm-live-info small{
    font-size:.82rem;
    line-height:1.25;
    margin-bottom:7px;
  }

  .tm-mini-btn{
    width:100%;
    min-height:40px;
    margin-top:8px;
  }

  /* So-einfach-Bereich: keine Grafik mehr über dem Text */
  .tm-steps-block{
    padding-left:42px;
    min-height:auto;
    overflow:hidden;
  }

  .tm-steps{
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:20px;
    position:relative;
    z-index:2;
  }

  .tm-steps article{
    min-width:0;
  }

  .tm-steps .circle{
    width:66px;
    height:66px;
    font-size:1.55rem;
    margin-bottom:14px;
  }

  .tm-steps h3{
    font-size:.95rem;
    line-height:1.15;
    min-height:34px;
  }

  .tm-steps p{
    font-size:.8rem;
    line-height:1.25;
    max-width:118px;
  }

  .tm-lineart{
    position:absolute;
    right:0;
    bottom:0;
    width:165px;
    opacity:.16;
    z-index:1;
  }

  /* Trust-Zeile optisch stabil */
  .tm-trust{
    margin-top:28px;
  }
}

/* Bei kleineren Desktopbreiten: unterer Bereich einspaltig, damit nichts quetscht */
@media (min-width: 761px) and (max-width: 1280px){
  .tm-browser{
    width:min(1180px, calc(100vw - 60px));
  }

  .tm-main,
  .tm-page-head{
    padding-left:44px;
    padding-right:44px;
  }

  .tm-bottom-grid{
    grid-template-columns:1fr;
    gap:32px;
  }

  .tm-steps-block{
    border-left:0;
    border-top:1px solid var(--line);
    padding-left:0;
    padding-top:26px;
  }

  .tm-lineart{
    display:none;
  }
}

/* sehr breite Monitore */
@media (min-width: 1700px){
  .tm-browser{
    width:1500px;
  }
}

/* Unterseiten nochmal breiter und sauberer */
@media (min-width: 761px){
  body:not(.home-premium) .wrap,
  body:not(.home-premium) .topbar__inner{
    width:min(1500px, calc(100vw - 120px));
  }

  body:not(.home-premium) .card,
  body:not(.home-premium) .panel{
    padding:32px;
  }

  body:not(.home-premium) .joinCard{
    max-width:1250px;
  }
}
